/* ==================================================================
   Tema público "Sessão" — base, layout e páginas
   Menu principal: components/menu.css (arquivo próprio)
   ================================================================== */
/* Paletas (DS 4 "Sala escura"). Uma família tipográfica só (Archivo, servida pelo site: assets/core/css/fonts.css);
   cada tema muda a largura dos títulos. Contraste conferido por scripts/accessibility_contrast.php. */
:root {
  /* Claro: papel branco, tinta quente, âmbar queimado só nos detalhes */
  --bg: #F7F6F2;
  --bg-2: #F0EEE9;
  --surface: #FFFFFF;
  --surface-2: #F2F0EB;
  --surface-3: #E7E4DD;
  --text: #2B2722;
  --text-soft: #4A453E;
  --muted: #6A645A;
  --border: #E7E4DD;
  --border-strong: #D7D3CA;
  --hover: rgba(43, 39, 34, .045);
  --accent: #C2410C;
  --accent-hover: #A8360A;
  --accent-ink: #FFFFFF;
  --accent-text: #B03A0B;
  --accent-soft: rgba(194, 65, 12, .1);
  --focus-ring: #C2410C;
  --bulb: #EA6A1A;
  --bulb-off: rgba(194, 65, 12, .2);
  --danger: #B3261E;
  --warning: #8A5300;
  --success: #116B41;
  --info: #2457C5;
  --scrim: linear-gradient(90deg, rgba(250, 250, 248, .97) 0%, rgba(250, 250, 248, .84) 40%, rgba(250, 250, 248, 0) 78%);
  --scrim-bottom: linear-gradient(0deg, var(--bg) 0%, rgba(250, 250, 248, 0) 100%);
  --shadow: 0 1px 2px rgba(26, 24, 21, .06), 0 8px 24px -16px rgba(26, 24, 21, .22);
  --radius: 12px;
  --radius-lg: 16px;
  --font: "Archivo", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-display: "Archivo Condensed", "Archivo", "Arial Narrow", system-ui, sans-serif;
  --header-height: 68px;
  --bottom-nav-height: 0px;
  --gutter: clamp(16px, 3.6vw, 48px);

  --ui-font: var(--font);
  --ui-surface: var(--surface);
  --ui-surface-raised: var(--surface);
  --ui-text: var(--text);
  --ui-text-soft: var(--text-soft);
  --ui-muted: var(--muted);
  --ui-border: var(--border);
  --ui-border-strong: var(--border-strong);
  --ui-hover: var(--hover);
  --ui-subtle: var(--surface-2);
  --ui-input-bg: #FBFAF8;
  --ui-input-border: var(--border-strong);
  --ui-overlay: rgba(26, 24, 21, .5);
  --ui-accent: var(--accent);
  --ui-accent-hover: var(--accent-hover);
  --ui-accent-contrast: var(--accent-ink);
  --ui-accent-soft: var(--accent-soft);
  --ui-danger: var(--danger);
  --ui-danger-soft: rgba(179, 38, 30, .09);
  --ui-warning: var(--warning);
  --ui-warning-soft: rgba(138, 83, 0, .1);
  --ui-success: var(--success);
  --ui-success-soft: rgba(17, 107, 65, .09);
  --ui-info: var(--info);
  --ui-info-soft: rgba(36, 87, 197, .08);
  --ui-shadow-lg: 0 24px 56px -24px rgba(26, 24, 21, .38), 0 2px 6px rgba(26, 24, 21, .06);
  --ui-radius: var(--radius);
  --ui-radius-lg: var(--radius-lg);
  --ui-danger-hover: color-mix(in srgb, var(--danger) 86%, #000);
  --ui-focus: var(--focus-ring);
  color-scheme: light;
}

:root[data-theme="dark"] {
  /* Escuro: grafite quente de sala de projeção; o âmbar é a luz do projetor */
  --bg: #171614;
  --bg-2: #1B1A18;
  --surface: #201F1C;
  --surface-2: #282623;
  --surface-3: #322F2B;
  --text: #E6E1D8;
  --text-soft: #C4BDB2;
  --muted: #A29B90;
  --border: rgba(230, 225, 216, .07);
  --border-strong: rgba(230, 225, 216, .13);
  --hover: rgba(230, 225, 216, .05);
  --accent: #E8A33A;
  --accent-hover: #F2B65A;
  --accent-ink: #1A1206;
  --accent-text: #F0B663;
  --accent-soft: rgba(232, 163, 58, .14);
  --focus-ring: #F0B663;
  --bulb: #F2B65A;
  --bulb-off: rgba(232, 163, 58, .16);
  --danger: #F07068;
  --warning: #E9A24B;
  --success: #4CC38A;
  --info: #7FA7FF;
  --scrim: linear-gradient(90deg, rgba(23, 22, 20, .96) 0%, rgba(23, 22, 20, .78) 42%, rgba(23, 22, 20, 0) 80%);
  --scrim-bottom: linear-gradient(0deg, var(--bg) 0%, rgba(23, 22, 20, 0) 100%);
  --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 12px 32px -18px rgba(0, 0, 0, .8);
  --ui-input-bg: rgba(230, 225, 216, .045);
  --ui-overlay: rgba(8, 7, 6, .72);
  --ui-danger-soft: rgba(240, 112, 104, .13);
  --ui-warning-soft: rgba(233, 162, 75, .13);
  --ui-success-soft: rgba(76, 195, 138, .13);
  --ui-info-soft: rgba(127, 167, 255, .13);
  --ui-shadow-lg: 0 28px 70px -24px rgba(0, 0, 0, .85), 0 0 0 1px rgba(242, 238, 232, .06);
  color-scheme: dark;
}

/* Neon Gamer: roxo elétrico e rosa de fliperama, em linhas finas (sem névoa de brilho) */
:root[data-theme="neon"] {
  --bg: #100E1C;
  --bg-2: #110E1F;
  --surface: #18152D;
  --surface-2: #1C1836;
  --surface-3: #262146;
  --text: #E8E4F7;
  --text-soft: #C4BEE2;
  --muted: #9A94C0;
  --border: rgba(180, 108, 255, .12);
  --border-strong: rgba(180, 108, 255, .24);
  --hover: rgba(180, 108, 255, .08);
  --accent: #B46CFF;
  --accent-hover: #C68BFF;
  --accent-ink: #12051F;
  --accent-text: #D6B6FF;
  --accent-soft: rgba(180, 108, 255, .16);
  --accent-2: #FF4FA3;
  --focus-ring: #D6B6FF;
  --bulb: #FF4FA3;
  --bulb-off: rgba(255, 79, 163, .18);
  --danger: #FF6A8E;
  --warning: #FFC266;
  --success: #4ADE80;
  --info: #6CB2FF;
  --scrim: linear-gradient(90deg, rgba(12, 10, 22, .97) 0%, rgba(12, 10, 22, .8) 42%, rgba(12, 10, 22, 0) 80%);
  --scrim-bottom: linear-gradient(0deg, var(--bg), rgba(12, 10, 22, 0));
  --shadow: 0 1px 2px rgba(0, 0, 0, .5), 0 12px 32px -18px rgba(0, 0, 0, .9);
  --ui-input-bg: rgba(180, 108, 255, .05);
  --ui-overlay: rgba(6, 4, 14, .78);
  --ui-danger-soft: rgba(255, 106, 142, .14);
  --ui-warning-soft: rgba(255, 194, 102, .14);
  --ui-success-soft: rgba(74, 222, 128, .14);
  --ui-info-soft: rgba(108, 178, 255, .14);
  --ui-shadow-lg: 0 28px 70px -24px rgba(0, 0, 0, .9), 0 0 0 1px rgba(180, 108, 255, .22);
  color-scheme: dark;
}

/* ------------------------------ base ------------------------------ */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: var(--header-height); }
body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  padding-bottom: var(--bottom-nav-height);
}
a { color: inherit; }
img { max-width: 100%; display: block; }
h1, h2, h3 { margin: 0; line-height: 1.15; }
p { margin: 0; }
:focus-visible { outline: 3px solid var(--focus-ring); outline-offset: 2px; border-radius: 4px; }
.icon { width: 20px; height: 20px; flex: none; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 300; padding: 10px 14px; background: var(--accent); color: var(--accent-ink); border-radius: 10px; font-weight: 700; text-decoration: none; }
.skip-link:focus { top: 12px; }
[hidden] { display: none !important; }
.site-main { flex: 1; }
.wrap { width: 100%; max-width: 1480px; margin: 0 auto; padding: 0 var(--gutter); }

/* ------------------------------ botões ------------------------------ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 0 22px;
  border-radius: 12px;
  border: 1px solid transparent;
  font: inherit;
  font-weight: 700;
  font-size: .96rem;
  letter-spacing: .005em;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background .18s ease, border-color .18s ease, transform .12s ease, box-shadow .18s ease, filter .18s ease;
}
.btn:active { transform: translateY(1px); }
.btn .icon { width: 18px; height: 18px; }
.btn--primary {
  background: linear-gradient(180deg, var(--accent-hover), var(--accent));
  color: var(--accent-ink);
  box-shadow: 0 1px 1px rgba(0, 0, 0, .06), 0 8px 20px -10px color-mix(in srgb, var(--accent) 70%, transparent);
}
.btn--primary:hover { filter: brightness(1.04); transform: translateY(-1px); box-shadow: 0 2px 2px rgba(0, 0, 0, .06), 0 12px 26px -10px color-mix(in srgb, var(--accent) 75%, transparent); }
.btn--primary:active { transform: translateY(0); }
.btn--glass { background: rgba(255, 255, 255, .12); color: #fff; border-color: rgba(255, 255, 255, .22); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.btn--glass:hover { background: rgba(255, 255, 255, .2); }
.btn--ghost { background: transparent; color: var(--text); border-color: var(--border-strong); }
.btn--ghost:hover { background: var(--hover); }
.btn--block { width: 100%; }
.btn--sm { min-height: 38px; padding: 0 14px; font-size: .88rem; border-radius: 10px; }
.btn.is-loading { position: relative; color: transparent !important; pointer-events: none; }
.btn.is-loading::after {
  content: ""; position: absolute; width: 18px; height: 18px; border-radius: 50%;
  border: 2px solid var(--accent-ink); border-right-color: transparent; animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ------------------------------ formulários ------------------------------ */
.form { display: grid; gap: 16px; }
.field { display: grid; gap: 6px; }
.label { font-weight: 600; font-size: .9rem; }
.input {
  width: 100%;
  min-height: 48px;
  padding: 11px 14px;
  border-radius: 12px;
  border: 1px solid var(--border-strong);
  background: var(--ui-input-bg);
  color: var(--text);
  font: inherit;
  transition: border-color .15s, box-shadow .15s;
}
.input:focus { outline: none; border-color: var(--focus-ring); box-shadow: 0 0 0 3px var(--accent-soft); }
.field.has-error .input { border-color: var(--danger); }
.hint { font-size: .82rem; color: var(--muted); }
.error-text { font-size: .82rem; color: var(--danger); font-weight: 600; }
.input-row { display: flex; gap: 8px; }
.input-row .input { flex: 1; min-width: 0; }
.input-icon-btn { width: 48px; flex: none; display: grid; place-items: center; border-radius: 12px; border: 1px solid var(--border-strong); background: var(--surface); color: var(--text-soft); cursor: pointer; }
.input-icon-btn:hover { color: var(--text); background: var(--hover); }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: .92rem; cursor: pointer; }
.check input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--accent); flex: none; }
.check a { color: var(--accent-text); }

/* ------------------------------ destaque (hero) ------------------------------ */
.hero {
  position: relative;
  min-height: min(86vh, 820px);
  display: flex;
  align-items: flex-end;
  margin-top: calc(var(--header-height) * -1);
  overflow: hidden;
  isolation: isolate;
}
.hero-media { position: absolute; inset: 0; z-index: -2; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: center 25%; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--scrim); }
.hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 40%; z-index: -1; background: var(--scrim-bottom); }
.hero-body { padding: calc(var(--header-height) + 40px) 0 72px; max-width: 760px; }
.hero-kicker { display: inline-flex; gap: 10px; align-items: center; font-weight: 600; color: var(--accent-text); margin-bottom: 14px; }
.hero-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(3rem, 8vw, 7.5rem);
  line-height: .9;
  letter-spacing: .005em;
  text-wrap: balance;
}
.hero-meta { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 16px; color: var(--text-soft); font-weight: 600; font-size: .95rem; }
.hero-meta .rating { color: var(--accent-text); }
.hero-overview { margin-top: 16px; max-width: 60ch; color: var(--text-soft); font-size: 1.05rem; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.hero-dots { display: flex; gap: 8px; margin-top: 30px; }
.hero-dot { width: 28px; height: 4px; border-radius: 2px; border: 0; padding: 0; background: var(--border-strong); cursor: pointer; }
.hero-dot[aria-current="true"] { background: var(--accent); }

/* ------------------------------ letreiro (catálogo vazio) ------------------------------ */
.marquee-hero { padding: calc(var(--header-height) * .25) 0 56px; }
.marquee {
  position: relative;
  padding: clamp(36px, 7vw, 88px) clamp(22px, 6vw, 80px);
  border-radius: 28px;
  background:
    radial-gradient(120% 140% at 0% 0%, var(--accent-soft), transparent 55%),
    var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  overflow: hidden;
}
/* Fileiras de lâmpadas do letreiro de cinema */
.marquee::before, .marquee::after {
  content: "";
  position: absolute;
  left: 22px;
  right: 22px;
  height: 10px;
  background-image: radial-gradient(circle, var(--bulb) 0 3.5px, transparent 4.5px);
  background-size: 26px 10px;
  background-repeat: repeat-x;
  background-position: center;
  filter: drop-shadow(0 0 6px rgba(245, 185, 66, .7));
}
.marquee::before { top: 14px; }
.marquee::after { bottom: 14px; }
.marquee-lights .marquee::before, .marquee-lights .marquee::after { animation: bulbs-on 1.1s steps(6, end) both; }
@keyframes bulbs-on {
  0% { opacity: 0; filter: none; }
  100% { opacity: 1; filter: drop-shadow(0 0 6px rgba(245, 185, 66, .7)); }
}
.marquee-kicker { font-weight: 700; color: var(--accent-text); margin-bottom: 18px; display: flex; align-items: center; gap: 10px; }
.marquee-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(3.2rem, 11vw, 9.5rem);
  line-height: .86;
  letter-spacing: .002em;
  max-width: 11ch;
  text-wrap: balance;
}
.marquee-text { margin-top: 30px; max-width: 54ch; color: var(--text-soft); font-size: 1.08rem; }
.marquee-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.marquee-facts { display: flex; flex-wrap: wrap; gap: 10px 28px; margin-top: 36px; padding-top: 22px; border-top: 1px dashed var(--border-strong); color: var(--muted); font-size: .92rem; }
.marquee-facts strong { color: var(--text); font-variant-numeric: tabular-nums; }

/* ------------------------------ fileiras de conteúdo ------------------------------ */
.rows { display: grid; gap: 40px; padding: 8px 0 64px; }
.row-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 14px; }
.row-title { font-family: var(--font-display); font-weight: 800; font-size: clamp(1.6rem, 3vw, 2.2rem); letter-spacing: .01em; line-height: 1; }
.row-controls { display: flex; gap: 6px; }
.row-btn { width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--border-strong); background: var(--surface); color: var(--text); display: grid; place-items: center; cursor: pointer; }
.row-btn:hover { background: var(--surface-2); }
.row-btn:disabled { opacity: .35; cursor: default; }
.row-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: clamp(132px, 15vw, 210px);
  gap: 14px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding: 0 var(--gutter);
  padding: 4px var(--gutter) 10px;
  margin: 0 calc(var(--gutter) * -1);
  scrollbar-width: none;
}
.row-track::-webkit-scrollbar { display: none; }
.row-track--wide { grid-auto-columns: clamp(240px, 26vw, 360px); }

.card { scroll-snap-align: start; display: grid; gap: 8px; text-decoration: none; color: var(--text); min-width: 0; }
.card-poster {
  position: relative;
  aspect-ratio: 2 / 3;
  border-radius: 12px;
  overflow: hidden;
  background: var(--surface-3);
  display: grid;
  place-items: center;
  color: var(--muted);
  box-shadow: var(--shadow);
}
.card--wide .card-poster { aspect-ratio: 16 / 9; }
.card-poster img { width: 100%; height: 100%; object-fit: cover; transition: transform .25s ease; }
a.card:hover .card-poster img { transform: scale(1.035); }
.card-badge { position: absolute; top: 8px; left: 8px; padding: 2px 8px; border-radius: 6px; font-size: .72rem; font-weight: 700; background: var(--accent); color: var(--accent-ink); }
.card-progress { position: absolute; left: 8px; right: 8px; bottom: 8px; height: 4px; border-radius: 2px; background: rgba(255, 255, 255, .3); overflow: hidden; }
.card-progress i { display: block; height: 100%; background: var(--accent); }
.card-title { font-weight: 600; font-size: .92rem; line-height: 1.3; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.card-meta { font-size: .8rem; color: var(--muted); margin-top: -4px; }

/* ------------------------------ páginas de conteúdo / auth ------------------------------ */
.page-narrow { max-width: 760px; margin: 0 auto; padding: 48px var(--gutter) 80px; }
.page-title { font-family: var(--font-display); font-weight: 800; font-size: clamp(2.4rem, 6vw, 4rem); line-height: .95; margin-bottom: 20px; }
.prose { color: var(--text-soft); font-size: 1.04rem; }
.prose p + p { margin-top: 1em; }

/* Telas de acesso (entrar, criar conta, recuperar senha): css/pages/auth.css */
.notice { padding: 14px 16px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--border); color: var(--text-soft); font-size: .94rem; }

/* ------------------------------ erro e manutenção ------------------------------ */
.status-page { min-height: calc(100vh - var(--header-height) - 120px); display: grid; place-items: center; padding: 48px var(--gutter); text-align: center; }
.status-code { font-family: var(--font-display); font-weight: 800; font-size: clamp(6rem, 22vw, 14rem); line-height: .8; color: var(--accent-text); letter-spacing: .01em; }
.status-title { font-size: clamp(1.5rem, 3.5vw, 2.2rem); margin-top: 16px; letter-spacing: -.02em; }
.status-text { margin: 10px auto 0; color: var(--text-soft); max-width: 52ch; }
.status-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 26px; }
.debug-box { margin: 26px auto 0; max-width: 900px; text-align: left; padding: 14px; border-radius: 12px; background: var(--surface-2); font-size: .8rem; white-space: pre-wrap; overflow: auto; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }

.maintenance { min-height: 100vh; display: grid; place-items: center; padding: 32px var(--gutter); }
.maintenance-card { max-width: 640px; text-align: center; }
.maintenance-word { font-family: var(--font-display); font-weight: 800; font-size: clamp(5rem, 20vw, 12rem); line-height: .8; color: var(--accent-text); }

/* ------------------------------ rodapé ------------------------------ */
.site-footer { border-top: 1px solid var(--border); padding: 36px 0 40px; color: var(--muted); font-size: .9rem; }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 18px 32px; align-items: flex-start; }
.footer-brand { font-family: var(--font-display); font-weight: 800; font-size: 1.6rem; color: var(--text); line-height: 1; }
.footer-desc { margin-top: 6px; max-width: 46ch; }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 20px; list-style: none; margin: 0; padding: 0; }
.footer-links a { text-decoration: none; }
.footer-links a:hover { color: var(--text); }
.footer-bottom { margin-top: 24px; display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; align-items: center; }
.theme-switch { display: inline-flex; gap: 2px; padding: 3px; border-radius: 12px; border: 1px solid var(--border); background: var(--surface); }
.theme-switch button { display: inline-flex; align-items: center; gap: 6px; border: 0; background: transparent; color: var(--muted); font: inherit; font-size: .84rem; font-weight: 600; padding: 6px 10px; border-radius: 9px; cursor: pointer; }
.theme-switch button .icon { width: 16px; height: 16px; }
.theme-switch button.is-active { background: var(--surface-3); color: var(--text); }

/* ------------------------------ responsivo ------------------------------ */
@media (max-width: 900px) {
  .hero { min-height: 74vh; }
  .hero-body { padding-bottom: 48px; }
  .row-controls { display: none; }
}
@media (max-width: 640px) {
  .marquee::before, .marquee::after { background-size: 20px 10px; left: 14px; right: 14px; }
  .hero-actions .btn, .marquee-actions .btn { flex: 1; }
  .footer-bottom { flex-direction: column-reverse; align-items: flex-start; }
}
@media (prefers-reduced-motion: reduce) {
  /* Movimento reduzido: animações e transições praticamente desligadas (os eventos continuam disparando) */
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    animation-delay: 0s !important;
    transition-duration: .01ms !important;
    transition-delay: 0s !important;
    scroll-behavior: auto !important;
  }
  .marquee-lights .marquee::before, .marquee-lights .marquee::after { animation: none; }
  .card-poster img { transition: none; }
}

/* ==================================================================
   Camada de acabamento premium (restyle 2026) — refina profundidade,
   raios, foco e microinterações usando só os tokens acima.
   ================================================================== */

/* seleção de texto */
::selection { background: var(--accent-soft); color: var(--text); }

/* scrollbar moderna e discreta */
* { scrollbar-width: thin; scrollbar-color: var(--border-strong) transparent; }
*::-webkit-scrollbar { width: 10px; height: 10px; }
*::-webkit-scrollbar-thumb { background: var(--border-strong); border-radius: 99px; border: 3px solid transparent; background-clip: padding-box; }
*::-webkit-scrollbar-thumb:hover { background: var(--muted); background-clip: padding-box; }
*::-webkit-scrollbar-track { background: transparent; }

/* links de texto com realce suave */
.prose a, .auth-alt a, .footer-links a { color: var(--accent-text); text-underline-offset: 3px; transition: color .15s; }

/* foco mais refinado (anel suave em vez de contorno duro) */
:focus-visible { outline: 2px solid var(--focus-ring); outline-offset: 2px; border-radius: 6px; }

/* ---- botões: profundidade coerente ---- */
.btn--secondary, .btn--ghost { transition: background .18s ease, border-color .18s ease, transform .12s ease, box-shadow .18s ease, color .18s ease; }
.btn--secondary:hover, .btn--ghost:hover { transform: translateY(-1px); }
.btn--lg { border-radius: 16px; }
.btn--sm { border-radius: 11px; }

/* ---- inputs: raio e foco consistentes ---- */
.input, .select, .textarea, .input-group, .input-icon-btn { border-radius: var(--radius); transition: border-color .16s ease, box-shadow .16s ease, background .16s ease; }
.input:hover:not(:focus), .select:hover:not(:focus), .textarea:hover:not(:focus) { border-color: var(--muted); }
.input:focus, .select:focus, .textarea:focus { box-shadow: 0 0 0 4px var(--accent-soft); }

/* ---- cards de conteúdo: raio e elevação no hover ---- */
.card-poster { border-radius: var(--radius); transition: box-shadow .22s ease, transform .22s ease; }
a.card { transition: transform .22s ease; }
a.card:hover { transform: translateY(-4px); }
a.card:hover .card-poster { box-shadow: 0 1px 2px rgba(0,0,0,.05), 0 18px 40px -16px rgba(0,0,0,.38); }
a.card:hover .card-poster img { transform: scale(1.06); }
.card-badge { border-radius: 8px; backdrop-filter: blur(2px); }

/* ---- painéis: borda viva + leve elevação no hover de links ---- */
.panel { transition: border-color .18s ease, box-shadow .18s ease; }
.stat-card { transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease; }
.stat-card:hover { border-color: var(--border-strong); box-shadow: var(--shadow); transform: translateY(-2px); }

/* ---- chips e badges: toque mais macio ---- */
.chip { transition: background .15s ease, color .15s ease, border-color .15s ease, transform .12s ease; }
.chip:hover { transform: translateY(-1px); }
.badge { letter-spacing: .01em; }

/* ---- tabela: linhas com hover ---- */
.table tbody tr { transition: background .14s ease; }
.table tbody tr:hover { background: var(--hover); }

/* ---- paginação e segmented: acabamento ---- */
.pagination a, .pagination span { border-radius: var(--radius); transition: background .15s ease, border-color .15s ease; }
.segmented { border-radius: 14px; }

/* ---- divisores e seções com respiro ---- */
.section-title, .row-title, .page-head-title, .page-title { text-wrap: balance; }

/* opções de select legíveis no escuro */
:root[data-theme="dark"] .select option,
:root[data-theme="neon"] .select option { color: #F4F4F7; background: #1E1E24; }

/* ==================================================================
   DESIGN PREMIUM 2026 — tipografia Space Grotesk/Inter, profundidade,
   componentes elegantes. Camada final: tem prioridade sobre o acima.
   ================================================================== */

/* --- tipografia de display (Space Grotesk vai até 700) --- */
.hero-title, .marquee-title, .page-title, .page-head-title, .row-title,
.section-title, .status-code, .maintenance-word, .auth-aside-title,
.brand-name, .footer-brand {
  font-weight: 700;
  letter-spacing: -0.02em;
}
.hero-title, .marquee-title { letter-spacing: -0.035em; line-height: .92; }
body { letter-spacing: -0.006em; }

/* --- profundidade sutil no fundo (glow de acento no topo) --- */
body {
  background:
    radial-gradient(90% 60% at 50% -10%, color-mix(in srgb, var(--accent) 7%, transparent), transparent 60%),
    var(--bg);
}
:root[data-theme="dark"] body,
:root[data-theme="neon"] body {
  background:
    radial-gradient(80% 50% at 50% -8%, color-mix(in srgb, var(--accent) 10%, transparent), transparent 62%),
    var(--bg);
}

/* --- botões: pílula premium com brilho e highlight superior --- */
.btn { border-radius: 999px; font-weight: 600; letter-spacing: -0.01em; }
.btn--sm { border-radius: 999px; }
.btn--lg { border-radius: 999px; }
.btn--primary {
  position: relative;
  background: linear-gradient(180deg, color-mix(in srgb, var(--accent-hover) 92%, #fff), var(--accent));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .35),
    0 1px 2px rgba(0, 0, 0, .12),
    0 10px 24px -12px color-mix(in srgb, var(--accent) 78%, transparent);
}
.btn--ghost { border-color: var(--border-strong); background: color-mix(in srgb, var(--surface) 55%, transparent); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.btn--secondary { border-radius: 999px; box-shadow: inset 0 1px 0 color-mix(in srgb, #fff 40%, transparent); }

/* --- cards/painéis: hairline + realce superior + elevação --- */
.panel, .stat-card, .auth-card {
  border-radius: var(--radius-lg);
  box-shadow:
    inset 0 1px 0 color-mix(in srgb, #fff 55%, transparent),
    var(--shadow);
}
:root[data-theme="dark"] .panel,
:root[data-theme="dark"] .stat-card,
:root[data-theme="dark"] .auth-card,
:root[data-theme="neon"] .panel,
:root[data-theme="neon"] .stat-card,
:root[data-theme="neon"] .auth-card {
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .05),
    var(--shadow);
}

/* card de poster: borda hairline + brilho no hover */
.card-poster { box-shadow: 0 1px 2px rgba(0,0,0,.08), 0 10px 26px -18px rgba(0,0,0,.5); }

/* --- inputs premium: preenchidos, raio generoso, foco refinado --- */
.input, .select, .textarea, .modal-input {
  background: var(--surface-2);
  border-color: transparent;
  box-shadow: inset 0 0 0 1px var(--border-strong);
}
:root[data-theme="dark"] .input, :root[data-theme="dark"] .select, :root[data-theme="dark"] .textarea,
:root[data-theme="neon"] .input, :root[data-theme="neon"] .select, :root[data-theme="neon"] .textarea {
  background: rgba(255, 255, 255, .035);
  box-shadow: inset 0 0 0 1px var(--border-strong);
}
.input:focus, .select:focus, .textarea:focus {
  border-color: transparent;
  box-shadow: inset 0 0 0 1.5px var(--accent), 0 0 0 4px var(--accent-soft);
}

/* --- chips: pílula com leve preenchimento --- */
.chip { background: var(--surface-2); border-color: transparent; box-shadow: inset 0 0 0 1px var(--border); }
.chip.is-active, .chip[aria-current="page"], .chip[aria-pressed="true"] { box-shadow: none; }

/* --- badges com leve profundidade --- */
.badge { box-shadow: inset 0 0 0 1px color-mix(in srgb, currentColor 14%, transparent); }

/* --- seções: mais respiro --- */
.rows { gap: 52px; }
.section { margin-top: 44px; }

/* --- avatar com anel sutil --- */
.avatar { box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--text) 8%, transparent); }

/* --- ícones um pouco mais finos e elegantes --- */
.icon, .modal-svg { stroke-width: 1.75; }
.btn .icon { stroke-width: 2; }
