/* ==========================================================================
   [07] PÁGINA: MANGÁ / OBRA (Banner do topo, capa principal, sinopse, sistema de reações emoji, lista de capítulos e área de comentários)
   ========================================================================== */
.dt-manga-page { max-width: 700px; width: 100%; margin: 0 auto; padding: 20px 10px 60px 10px; box-sizing: border-box; }
.dt-manga-back { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); font-size: 14px; font-weight: 600; margin-bottom: 16px; transition: 0.2s; }
.dt-manga-back:hover { color: #fff; }

.dt-manga-main-card, .dt-manga-module-card { background: #2C2C2C; border-radius: 24px; overflow: hidden; border: 1px solid rgba(255,255,255,0.05); box-shadow: 0 10px 30px rgba(0,0,0,0.3); margin-bottom: 20px; }
.dt-manga-module-card { padding: 24px; }

.dt-manga-banner { position: relative; width: 100%; height: 160px; }
.dt-manga-banner img { width: 100%; height: 100%; object-fit: cover; }
.dt-manga-banner .dt-banner-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: linear-gradient(to top, #2C2C2C 0%, transparent 100%); }

.dt-manga-body { padding: 0 24px 24px 24px; position: relative; }
.dt-manga-top-row { display: flex; gap: 20px; align-items: flex-end; margin-top: -60px; margin-bottom: 24px; }
.dt-manga-cover-wrapper { position: relative; flex-shrink: 0; }
.dt-manga-cover-wrapper img { width: 130px; aspect-ratio: 2/3; border-radius: 16px; border: 4px solid #2C2C2C; object-fit: cover; background: #3B3B3C; box-shadow: 0 10px 20px rgba(0,0,0,0.5);}

.dt-manga-titles { flex: 1; padding-bottom: 4px; }
.dt-manga-titles h1 { margin: 0 0 6px 0; font-size: 24px; font-weight: 900; color: #fff; line-height: 1.1; }
.dt-manga-genres-text { margin: 0; font-size: 12px; color: var(--muted); font-weight: 600; }

/* Botões de Ação Padronizados (Escuros) */
.dt-manga-action-bar { display: flex; gap: 10px; align-items: center; margin-bottom: 24px; flex-wrap: wrap;}
.dt-btn-read-action {
  height: 44px; border-radius: 12px; font-size: 14px; font-weight: 800; display: flex; align-items: center; justify-content: center; gap: 8px; cursor: pointer; transition: 0.2s; flex: 1; min-width: 140px;
  background: #2C2C2C; color: #fff; border: 1px solid rgba(255,255,255,0.05); text-decoration: none;
}
.dt-btn-read-action:hover { background: #3B3B3C; border-color: rgba(255,255,255,0.1); transform: translateY(-2px); }

.dt-btn-icon { background: #3B3B3C; color: #fff; width: 44px; height: 44px; border-radius: 12px; display: flex; justify-content: center; align-items: center; border: none; cursor: pointer; font-size: 16px; transition: 0.2s;}
.dt-btn-icon:hover { background: #4a4a4b; }

/* ==========================================
   ESTATÍSTICAS DA OBRA (NOTA, FORMATO, CAPÍTULOS)
   ========================================== */
.dt-stats-widgets { 
  display: flex; 
  gap: 16px; 
  margin: 24px 0; 
}

.dt-widget { 
  flex: 1; 
  display: flex; 
  align-items: center; 
  justify-content: center; 
  gap: 12px; 
  background: rgba(255, 255, 255, 0.03); 
  border: 1px solid rgba(255, 255, 255, 0.05); 
  padding: 16px 10px; 
  border-radius: 16px; 
  transition: background 0.2s; 
}

.dt-widget:hover { background: rgba(255, 255, 255, 0.06); }

.dt-w-icon { display: flex; align-items: center; justify-content: center; font-size: 20px; }

.dt-w-text { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; }
.dt-w-text strong { color: #fff; font-size: 16px; font-weight: 900; line-height: 1; }
.dt-w-text span { color: rgba(255, 255, 255, 0.4); font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.5px; margin-top: 4px; }

.dt-manga-synopsis-box h4 { margin: 0 0 8px 0; font-size: 14px; color: var(--primary); font-weight: 800; display: flex; align-items: center; gap: 8px; }
.dt-manga-synopsis-box p { margin: 0; font-size: 13px; color: rgba(255,255,255,0.8); line-height: 1.6; }

/* BLOCO: SALVAR NA BIBLIOTECA */
.dt-library-inline-box { text-align: center; }
.dt-lib-inline-title { font-size: 18px; color: #fff; font-weight: 900; margin: 0 0 20px 0; }
.dt-lib-inline-grid { display: flex; justify-content: space-between; gap: 10px; overflow-x: auto; padding-bottom: 8px; scrollbar-width: none; }
.dt-lib-inline-grid::-webkit-scrollbar { display: none; }
.dt-lib-btn { flex: 1; min-width: 80px; background: #3B3B3C; border: 2px solid transparent; border-radius: 16px; display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 16px 10px; cursor: pointer; transition: 0.2s; color: var(--muted); }
.dt-lib-btn i { font-size: 28px; color: #fff; transition: 0.2s; }
.dt-lib-btn span { font-size: 12px; font-weight: 700; color: #fff; }
.dt-lib-btn:hover { background: #4a4a4b; transform: translateY(-4px); }
.dt-lib-btn.active { background: #ff4757; color: #fff; border-color: #ff4757; } 
.dt-lib-btn.active i, .dt-lib-btn.active span { color: #fff; }

/* ==========================================
   REAÇÕES (Estado único e Accent Violeta)
   ========================================== */
.dt-manga-reactions-box { text-align: center; }
.dt-manga-reactions-box h5 { margin: 0 0 4px 0; color: #fff; font-size: 14px; font-weight: 900; letter-spacing: 1px; }
.dt-manga-reactions-box span { font-size: 11px; color: var(--muted); font-weight: 700; text-transform: uppercase; }
.dt-reactions-row { display: flex; justify-content: center; gap: 16px; flex-wrap: wrap; margin-top: 20px; }
.dt-reaction-item { display: flex; flex-direction: column; align-items: center; gap: 4px; cursor: pointer; opacity: 0.7; transition: 0.2s; }
.dt-reaction-item:hover { opacity: 1; transform: translateY(-4px); }
.dt-re-circle { width: 44px; height: 44px; border-radius: 50%; background: #3B3B3C; display: flex; align-items: center; justify-content: center; font-size: 20px; margin-bottom: 4px; border: 1px solid rgba(255,255,255,0.05); transition: all 0.3s ease; }
.dt-reaction-item strong { font-size: 10px; color: #fff; font-weight: 900; letter-spacing: 1px; transition: color 0.3s ease; }
.dt-reaction-item span { font-size: 10px; color: var(--muted); }

/* Estado Ativo (Violeta) */
.dt-reaction-item.active { opacity: 1; transform: translateY(-4px); }
.dt-reaction-item.active .dt-re-circle { border-color: #7C3AED; background: rgba(124, 58, 237, 0.15); }
.dt-reaction-item.active strong { color: #7C3AED; }

/* Capítulos */
.dt-ch-header { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 20px; flex-wrap: wrap; gap: 16px;}
.dt-ch-title-area h3 { margin: 0 0 4px 0; font-size: 18px; color: #fff; font-weight: 900; }
.dt-ch-title-area span { font-size: 12px; color: var(--muted); font-weight: 600; }
.dt-ch-controls { display: flex; gap: 8px; align-items: center; }
.dt-ctrl-btn { background: transparent; border: 1px solid rgba(255,255,255,0.1); color: var(--muted); font-size: 11px; font-weight: 700; padding: 8px 12px; border-radius: 8px; cursor: pointer; display: flex; align-items: center; gap: 6px; transition: 0.2s; }
.dt-ctrl-btn:hover { background: rgba(255,255,255,0.05); color: #fff; }
.dt-c-green { color: #4ade80; border-color: rgba(74,222,128,0.3); }
.dt-c-red { color: #f87171; border-color: rgba(248,113,113,0.3); }

.dt-ch-list { display: flex; flex-direction: column; gap: 8px; margin-bottom: 20px; }
.dt-ch-item { background: #3B3B3C; border-radius: 12px; padding: 12px 16px; display: flex; justify-content: space-between; align-items: center; text-decoration: none; transition: 0.2s; }
.dt-ch-item:hover { background: #4a4a4b; transform: translateX(4px); }
.dt-ch-left { display: flex; align-items: center; gap: 16px; }
.dt-ch-number-box { width: 44px; height: 44px; background: #2C2C2C; border-radius: 8px; display: flex; align-items: center; justify-content: center; color: var(--muted); font-size: 14px; font-weight: 800; border: 1px solid rgba(255,255,255,0.05);}
.dt-ch-texts { display: flex; flex-direction: column; gap: 4px; }
.dt-ch-texts strong { color: #fff; font-size: 14px; font-weight: 800; }
.dt-ch-texts span { color: var(--muted); font-size: 11px; font-weight: 600; display: flex; align-items: center; gap: 6px;}
.dt-read-text span { color: var(--success); font-weight: 800; font-size: 10px; background: rgba(34,197,101,0.1); padding: 2px 6px; border-radius: 4px;}
.dt-ch-right { display: flex; gap: 16px; color: var(--muted); font-size: 16px; }
.dt-ch-right i { cursor: pointer; transition: color 0.2s; }
.dt-ch-right i:hover { color: #fff; }
.dt-ch-item.read { opacity: 0.5; }
.dt-ch-item.read .dt-ch-number-box { background: rgba(34,197,101,0.1); color: var(--success); font-size: 18px; border-color: rgba(34,197,101,0.3);}

.dt-load-more-wrap { text-align: center; border-top: 1px solid rgba(255,255,255,0.05); padding-top: 20px;}
.dt-btn-load-more { background: #3B3B3C; color: #fff; border: none; padding: 12px 24px; border-radius: 12px; font-size: 13px; font-weight: 800; cursor: pointer; transition: 0.2s; }
.dt-btn-load-more:hover { background: #4a4a4b; }

/* ==========================================
   COMENTÁRIOS: HEADER E INPUT (Accent Violeta)
   ========================================== */
.dt-comments-header-new { 
  padding: 32px 24px 20px 24px; 
  border-bottom: 1px solid rgba(255,255,255,0.03); 
  display: flex; 
  flex-direction: column; 
  align-items: flex-start;
  gap: 6px;
}
.dt-comments-header-new h3 { margin: 0; font-size: 22px; font-weight: 900; color: #fff; }
.dt-comments-header-new span { font-size: 14px; color: var(--muted); font-weight: 600; }

.dt-comment-input-area { 
  padding: 30px 24px; 
  border-bottom: 1px solid rgba(255,255,255,0.05); 
  display: flex; gap: 16px; 
  background: transparent; 
}
.dt-comment-form-box { flex: 1; display: flex; flex-direction: column; gap: 16px; }

.dt-comment-form-box textarea { 
  width: 100%; 
  background: #1E1E22; /* <-- O novo "Cinza Input" mais claro e elegante */
  border: 1px solid rgba(255,255,255,0.04); /* Borda quase invisível no estado normal */
  border-radius: 12px; 
  padding: 16px; 
  color: #fff; 
  font-size: 14px; 
  font-family: inherit; 
  resize: vertical; 
  min-height: 90px; 
  outline: none; 
  transition: all 0.3s ease; 
}

.dt-comment-form-box textarea:focus { 
  border-color: #7C3AED; 
  box-shadow: 0 0 0 4px rgba(124, 58, 237, 0.15); 
  background: #1A1A1E; /* Dá uma levíssima escurecida quando o usuário clica dentro, dando profundidade */
}
.dt-comment-form-box textarea::placeholder { color: rgba(255,255,255,0.3); }

.dt-comment-tools { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px;}

/* Switch de Spoiler (Neutro desligado, Violeta ligado) */
.dt-spoiler-switch { display: flex; align-items: center; gap: 10px; cursor: pointer; }
.dt-spoiler-switch input { display: none; }
.dt-slider { width: 36px; height: 20px; background: #3B3B3C; border-radius: 20px; position: relative; transition: 0.3s; }
.dt-slider::after { content: ''; position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; background: var(--muted); border-radius: 50%; transition: 0.3s; }
.dt-spoiler-switch input:checked + .dt-slider { background: #7C3AED; } 
.dt-spoiler-switch input:checked + .dt-slider::after { transform: translateX(16px); background: #fff; }
.dt-switch-text { font-size: 13px; font-weight: 700; color: var(--muted); transition: color 0.3s; }
.dt-spoiler-switch input:checked ~ .dt-switch-text { color: #7C3AED; }

.dt-tools-right { display: flex; align-items: center; gap: 16px; }
.dt-char-counter { font-size: 12px; font-weight: 700; color: var(--muted); }

/* Botão Enviar Accent */
.dt-btn-send-comment { background: #7C3AED; color: #fff; border: none; padding: 12px 28px; border-radius: 10px; font-size: 13px; font-weight: 800; cursor: pointer; transition: 0.3s; text-transform: uppercase; letter-spacing: 0.5px;}
.dt-btn-send-comment:hover { background: #8B5CF6; transform: translateY(-2px); box-shadow: 0 4px 15px rgba(124, 58, 237, 0.25); }
.dt-btn-send-comment:disabled { background: #3B3B3C; color: rgba(255,255,255,0.3); cursor: not-allowed; transform: none; box-shadow: none; }

/* ==========================================
   COMENTÁRIOS: LISTA E ITENS (UI PREMIUM)
   ========================================== */
.dt-comments-list { 
  max-height: 600px; 
  overflow-y: auto; 
  padding: 24px; /* Devolvendo o padding para os blocos respirarem */
  display: flex; 
  flex-direction: column; 
}

.dt-comments-list::-webkit-scrollbar { width: 8px; }
.dt-comments-list::-webkit-scrollbar-thumb { background: #7C3AED; border-radius: 4px; }
.dt-comments-list::-webkit-scrollbar-track { background: transparent; }

/* O fundo sutil retornado, mantendo o espaçamento premium */
.dt-comment-item { 
  background: rgba(255, 255, 255, 0.03); /* Fundo super suave */
  border-radius: 16px; 
  padding: 20px; 
  border: 1px solid rgba(255,255,255,0.02); /* Bordinha quase invisível */
  display: flex; 
  gap: 16px; 
  margin-bottom: 12px; /* Espaço entre os blocos */
}
.dt-comment-item:last-child {
  margin-bottom: 0; 
}

.dt-comment-avatar { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.dt-comment-content { flex: 1; }
.dt-comment-top { display: flex; justify-content: space-between; margin-bottom: 8px; }
.dt-comment-author { display: flex; flex-direction: column; }
.dt-comment-author strong { color: #fff; font-size: 15px; font-weight: 800; display: flex; align-items: center;}
.dt-comment-author span { color: var(--muted); font-size: 12px; margin-top: 2px;}

.dt-badge-author { background: #ffb800; color: #000; font-size: 9px; padding: 2px 6px; border-radius: 6px; margin-left: 8px; font-weight: 900;}
.dt-comment-time { color: var(--muted); font-size: 12px; font-weight: 600;}

.dt-comment-text { color: rgba(255,255,255,0.9); font-size: 15px; line-height: 1.6; margin: 0 0 16px 0; font-weight: 500; }

.dt-comment-actions { display: flex; gap: 24px; }
.dt-comment-actions button { background: transparent; border: none; color: var(--muted); font-size: 13px; font-weight: 700; cursor: pointer; display: flex; align-items: center; gap: 8px; padding: 0; transition: color 0.2s; }
.dt-comment-actions button:hover { color: #fff; }
.dt-comment-actions button i { font-size: 16px; }
.dt-comment-actions button:hover i.bi-heart { color: #ef4444; }

/* Ação de Excluir Lixeira */
.dt-delete-comment { color: #ef4444 !important; }
.dt-delete-comment:hover { color: #dc2626 !important; }

/* Ajuste Mobile */
@media (max-width: 600px) {
  .dt-comment-input-area { padding: 20px 16px; gap: 10px; }
  .dt-comments-list { padding: 0 16px; }
  .dt-comment-item { padding: 20px 0; }
  .dt-tools-right { width: 100%; justify-content: space-between; margin-top: 4px; }
}
/* ==========================================================================
   MODAL ANIMADO DE SALVAR (BIBLIOTECA)
   ========================================================================== */
.dt-modal-overlay {
  position: fixed; top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(0, 0, 0, 0.8); backdrop-filter: blur(5px); -webkit-backdrop-filter: blur(5px);
  z-index: 999; display: flex; justify-content: center; align-items: center;
  opacity: 0; pointer-events: none; transition: 0.3s;
}
.dt-modal-overlay.active { opacity: 1; pointer-events: auto; }

.dt-modal-anim-box { position: relative; overflow: hidden; }
.dt-save-step { display: none; flex-direction: column; align-items: center; width: 100%; text-align: center; justify-content: center; }
.dt-save-step.active { display: flex; animation: fadePop 0.3s ease; }
@keyframes fadePop { from { opacity: 0; transform: scale(0.95); } to { opacity: 1; transform: scale(1); } }

.dt-save-confirm-card { 
  background: #262627; border-radius: 16px; padding: 30px 24px; 
  width: 280px; min-height: 280px; box-shadow: 0 10px 30px rgba(0,0,0,0.5); 
  border: 1px solid rgba(255,255,255,0.05); display: flex; flex-direction: column; justify-content: center; 
}
.dt-scc-icon { width: 48px; height: 48px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 24px; margin-bottom: 16px; color: #fff;}
.dt-scc-red { background: #7C3AED; } /* Deixei o ícone inicial roxo pra combinar */
.dt-scc-green { background: #84cc16; }

.dt-scc-subtitle { margin: 0 0 4px 0; color: #fff; font-size: 12px; font-weight: 600; }
.dt-scc-status-text { margin: 0 0 24px 0; color: #fff; font-size: 24px; font-weight: 900; }
.dt-scc-status-text-success { margin: 0; color: #fff; font-size: 26px; font-weight: 900; text-transform: uppercase; letter-spacing: 1px; }

.dt-btn-scc { border: none; padding: 14px; border-radius: 12px; width: 100%; font-weight: 900; font-size: 13px; cursor: pointer; transition: 0.2s; text-transform: uppercase; }
.dt-btn-dark { background: #3B3B3C; color: #fff; border: 1px solid rgba(255,255,255,0.1); }
.dt-btn-dark:hover { background: #7C3AED; border-color: #7C3AED; box-shadow: 0 4px 15px rgba(124, 58, 237, 0.25); }
/* ==========================================================================
   MEDIA QUERY: AJUSTES MOBILE SÓ PARA O MANGÁ
   ========================================================================== */
@media (max-width: 768px) {
  .dt-manga-page { padding: 10px 10px 90px 10px; }
  .dt-manga-body { padding: 0 16px 24px 16px; }
  .dt-manga-module-card { padding: 16px; }
  .dt-manga-top-row { flex-direction: column; align-items: center; text-align: center; margin-top: -60px;}
  .dt-manga-titles { display: flex; flex-direction: column; align-items: center; }
  .dt-manga-titles h1 { font-size: 20px; }
  
  .dt-manga-action-bar { display: grid; grid-template-columns: 1fr 1fr auto; gap: 8px; }
  .dt-btn-read-action { min-width: 0; width: 100%; font-size: 13px; padding: 0 8px; }
  
  /* ====================================================
     CORREÇÃO: ESTATÍSTICAS MOBILE (ÍCONE EM CIMA)
     ==================================================== */
  .dt-stats-widgets { 
    display: grid; 
    grid-template-columns: 1fr 1fr 1fr; 
    gap: 8px; 
  }
  .dt-widget { 
    padding: 12px 4px; 
    flex-direction: column; /* Joga o ícone pra cima */
    gap: 6px; 
    text-align: center;
  }
  .dt-w-icon { 
    width: auto; 
    height: auto; 
    font-size: 18px; 
  }
  .dt-w-text { 
    align-items: center; /* Centraliza tudo */
  }
  .dt-w-text strong { font-size: 13px; }
  .dt-w-text span { font-size: 9px; margin-top: 2px; }
  
  .dt-ch-header { flex-direction: column; align-items: flex-start; }
  .dt-ch-controls { flex-wrap: wrap; }
  .dt-ch-item { padding: 10px; }
  .dt-ch-left { gap: 10px; }
  .dt-ch-number-box { width: 36px; height: 36px; font-size: 12px; }
  .dt-ch-texts strong { font-size: 12px; }

  /* ====================================================
     CORREÇÃO: TODOS OS 6 BOTÕES VISÍVEIS (GRID 3x2)
     ==================================================== */
  .dt-library-inline-box {
    padding: 20px 16px; 
  }
  .dt-lib-inline-title {
    padding: 0;
    font-size: 16px;
    margin-bottom: 16px;
  }
  .dt-lib-inline-grid { 
    display: grid; 
    grid-template-columns: repeat(3, 1fr); 
    gap: 8px; 
    margin: 0; 
    padding: 0; 
    overflow: hidden; 
  }
  .dt-lib-btn { 
    flex: none; 
    min-width: 0; 
    width: 100%; 
    padding: 12px 4px; 
    gap: 6px;
  }
  .dt-lib-btn i { font-size: 22px; }
  .dt-lib-btn span { font-size: 10px; letter-spacing: -0.2px; }
  .dt-lib-inline-grid::after { display: none; }

  /* ====================================================
     NOVO: AJUSTE MOBILE PREMIUM DOS COMENTÁRIOS
     ==================================================== */
  .dt-comment-input-area { 
    padding: 16px 12px; 
    gap: 10px; 
  }
  .dt-comment-avatar { 
    width: 32px; 
    height: 32px; 
  }
  .dt-comment-form-box {
    gap: 8px; 
  }
  .dt-comment-form-box textarea {
    min-height: 54px; 
    padding: 12px;
    font-size: 13px;
  }
  .dt-comment-tools {
    margin-top: 2px;
  }
  .dt-switch-text {
    font-size: 11px; 
  }
  .dt-slider {
    width: 32px; height: 18px; 
  }
  .dt-slider::after { width: 14px; height: 14px; }
  .dt-spoiler-switch input:checked + .dt-slider::after { transform: translateX(14px); }
  
  .dt-tools-right { 
    width: 100%;
    justify-content: space-between;
    margin-top: 4px;
    gap: 12px; 
  }
  .dt-char-counter {
    font-size: 10px;
  }
  .dt-btn-send-comment {
    padding: 8px 16px;
    font-size: 11px;
    border-radius: 20px; 
  }

  .dt-comments-list {
    padding: 0 16px;

    .dt-comment-item {
    padding: 16px; 
    gap: 12px;
  }
  .dt-comment-author strong { font-size: 13px; }
  .dt-comment-text { font-size: 13px; margin-bottom: 12px;}
  .dt-comment-actions button { font-size: 11px; }
}
/* ... seu css de mobile ... */
    .dt-user-name strong { font-size: 13px; }
    .dt-xp-col { width: 70px; font-size: 12px; }
  } /* <-- Chave que fecha o @media do celular */
   /* <-- Se tiver uma segunda chave sobrando, deixe ela fechar também */
