/* Contos eróticos: ranking da comunidade ("vote no que vira a próxima novelinha"), leitura e envio.
   Cores e botões vêm de namorada.css (--nm-*, .nm-btn); a casca (menu, .nv-app, .nv-secao) de novelinhas.css. */

.ct-hero { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 22px; align-items: center; background: linear-gradient(135deg, rgba(255, 79, 139, 0.14), rgba(255, 138, 61, 0.06)), var(--nm-surface); border: 1px solid var(--nm-line); border-radius: 22px; padding: 22px; }
.ct-hero .in-kicker { margin: 0 0 6px; color: var(--nm-hot); font-weight: 800; font-size: 12.5px; text-transform: uppercase; letter-spacing: 0.06em; }
.ct-hero h1 { margin: 0; font-size: clamp(24px, 3.6vw, 34px); font-weight: 900; letter-spacing: -0.01em; line-height: 1.1; }
.ct-hero h1 em { font-style: normal; background: var(--nm-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.ct-hero p { color: var(--nm-ink-2); margin: 10px 0 0; font-size: 15px; line-height: 1.5; max-width: 640px; }
.ct-bela { width: 150px; height: 190px; object-fit: cover; object-position: top; border-radius: 18px; border: 1px solid var(--nm-line); }
.ct-acoes { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.ct-regra { color: var(--nm-ink-3); font-size: 12.5px; }

.ct-lista { display: grid; gap: 10px; }
.ct-item { display: grid; grid-template-columns: 54px minmax(0, 1fr) auto; gap: 14px; align-items: center; background: var(--nm-surface); border: 1px solid var(--nm-line); border-radius: 18px; padding: 14px 16px; text-align: left; color: var(--nm-ink); }
.ct-item.top { border-color: rgba(255, 207, 90, 0.45); background: linear-gradient(135deg, rgba(255, 207, 90, 0.08), var(--nm-surface)); }
.ct-pos { display: grid; place-items: center; width: 54px; height: 54px; border-radius: 16px; background: var(--nm-surface-2); font-weight: 900; font-size: 20px; color: var(--nm-ink-2); }
.ct-item.top .ct-pos { background: rgba(255, 207, 90, 0.18); color: #ffcf5a; }
.ct-pos small { display: block; font-size: 10px; font-weight: 800; letter-spacing: 0.04em; color: var(--nm-ink-3); line-height: 1; margin-top: 2px; }
.ct-corpo { min-width: 0; cursor: pointer; }
.ct-corpo h3 { margin: 0; font-size: 17px; line-height: 1.25; }
.ct-corpo p { margin: 4px 0 6px; color: var(--nm-ink-2); font-size: 14px; line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ct-meta { display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: center; font-size: 12.5px; color: var(--nm-ink-3); }
.ct-meta img { width: 20px; height: 20px; border-radius: 50%; object-fit: cover; vertical-align: middle; margin-right: 4px; }
.ct-meta .ct-tag { padding: 2px 8px; border-radius: 999px; background: var(--nm-surface-2); border: 1px solid var(--nm-line); }
.ct-meta .ct-tag.virou { background: rgba(61, 220, 132, 0.12); color: var(--nm-online); border-color: rgba(61, 220, 132, 0.3); }
.ct-meta .ct-tag.pending { background: rgba(255, 207, 90, 0.12); color: #ffcf5a; }
.ct-meta .ct-tag.rejected { background: rgba(255, 122, 122, 0.12); color: #ff8a8a; }
.ct-voto { display: grid; justify-items: center; gap: 2px; min-width: 64px; font: inherit; color: var(--nm-ink-2); background: var(--nm-surface-2); border: 1px solid var(--nm-line); border-radius: 16px; padding: 8px 10px; cursor: pointer; }
.ct-voto b { font-size: 18px; color: var(--nm-ink); }
.ct-voto span { font-size: 11px; font-weight: 800; letter-spacing: 0.03em; }
.ct-voto.on { background: rgba(255, 79, 139, 0.16); border-color: rgba(255, 79, 139, 0.5); color: #ffb3cd; }
.ct-voto.on b { color: #fff; }
.ct-voto:disabled { opacity: 0.5; cursor: default; }
.ct-ler { font: inherit; font-weight: 800; color: var(--nm-hot); background: none; border: 0; padding: 0; cursor: pointer; }

/* Leitura */
.ct-dlg { width: min(760px, 94vw); max-height: 92vh; overflow: auto; background: #111114; color: var(--nm-ink); border: 1px solid var(--nm-line); border-radius: 22px; padding: 0; }
.ct-dlg::backdrop { background: rgba(0, 0, 0, 0.78); }
.ct-dlg-top { position: sticky; top: 0; display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 12px 18px; background: rgba(17, 17, 20, 0.95); backdrop-filter: blur(8px); border-bottom: 1px solid var(--nm-line); z-index: 2; }
.ct-dlg-top .ct-meta { font-size: 13px; }
.ct-x { font: inherit; font-size: 22px; line-height: 1; color: var(--nm-ink-2); background: var(--nm-surface-2); border: 0; border-radius: 50%; width: 36px; height: 36px; cursor: pointer; }
.ct-texto { padding: 22px clamp(18px, 5vw, 56px) 30px; }
.ct-texto h2 { font-family: Georgia, "Times New Roman", serif; font-size: clamp(26px, 4vw, 34px); line-height: 1.15; margin: 0 0 8px; }
.ct-texto .ct-chamada { color: var(--nm-ink-2); font-style: italic; margin: 0 0 22px; font-size: 16px; }
.ct-texto p.ct-par { font-family: Georgia, "Times New Roman", serif; font-size: 18.5px; line-height: 1.7; margin: 0 0 1.1em; color: #ece7e2; }
.ct-fim { display: grid; gap: 12px; justify-items: start; margin-top: 26px; padding-top: 18px; border-top: 1px solid var(--nm-line); }
.ct-fim .ct-voto { justify-items: start; grid-auto-flow: column; align-items: center; gap: 10px; padding: 12px 18px; border-radius: 999px; }

/* Envio */
.ct-form { display: grid; gap: 14px; padding: 22px; }
.ct-form h2 { margin: 0; font-size: 22px; }
.ct-form label { display: grid; gap: 6px; font-size: 13.5px; color: var(--nm-ink-2); }
.ct-form input, .ct-form textarea, .ct-form select { font: inherit; color: var(--nm-ink); background: var(--nm-surface-2); border: 1px solid var(--nm-line); border-radius: 12px; padding: 11px 12px; }
.ct-form textarea { min-height: 260px; line-height: 1.55; resize: vertical; }
.ct-form .ct-conta { font-size: 12px; color: var(--nm-ink-3); text-align: right; }
.ct-form .ct-regras { font-size: 13px; color: var(--nm-ink-2); line-height: 1.5; background: var(--nm-surface-2); border-radius: 12px; padding: 10px 12px; }
.ct-form .ct-erro { color: #ff8a8a; font-size: 13.5px; min-height: 1em; }
.ct-form .ct-botoes { display: flex; flex-wrap: wrap; gap: 10px; justify-content: flex-end; }
.ct-vazio { border: 1px dashed var(--nm-line); border-radius: 16px; padding: 24px; text-align: center; color: var(--nm-ink-2); }

@media (max-width: 760px) {
  .ct-hero { grid-template-columns: 1fr; padding: 18px; }
  .ct-bela { width: 100%; height: 220px; object-position: 50% 20%; }
  .ct-item { grid-template-columns: 44px minmax(0, 1fr); }
  .ct-pos { width: 44px; height: 44px; font-size: 17px; border-radius: 12px; }
  .ct-voto { grid-column: 1 / -1; grid-auto-flow: column; justify-content: start; gap: 10px; padding: 8px 14px; border-radius: 999px; }
}
