/* ==========================================================================
   FighterStat Academy
   Direção: ferramenta de desenvolvedor. Painéis, abas, grade de pontos,
   monoespaçada nos metadados, cor só onde identifica a trilha.
   Cada trilha tem sua própria seção — nada de grade única misturando tudo.
   ========================================================================== */

:root {
  --bg: #08090b;
  --bg-2: #0c0e11;
  --panel: #101318;
  --panel-2: #14181e;
  --line: #1e232b;
  --line-2: #171b21;
  --text: #e8eaee;
  --muted: #7f8794;
  --accent: #ff4d4d;
  --ok: #35c07a;
  --dot: rgb(255 255 255 / .05);
  --shadow: 0 18px 40px -24px rgb(0 0 0 / .9);

  /* Uma cor por trilha. Identifica a seção — não pinta a página. */
  --t-excel: #26d07c;
  --t-pbi:   #f5b81b;
  --t-sql:   #4d9bff;
  --t-py:    #a882ff;

  --sans: "Segoe UI Variable Text", "Segoe UI", Inter, system-ui, -apple-system, sans-serif;
  --display: "Segoe UI Variable Display", "Segoe UI", Inter, system-ui, sans-serif;
  --mono: "Cascadia Mono", Consolas, ui-monospace, "Courier New", monospace;

  --r: 12px;
  --r-sm: 8px;
  --wrap: 1200px;
}

@media (prefers-color-scheme: light) {
  :root {
    --bg: #fafbfc;
    --bg-2: #f1f3f7;
    --panel: #ffffff;
    --panel-2: #f6f8fa;
    --line: #e3e7ee;
    --line-2: #edf0f5;
    --text: #0d1117;
    --muted: #5b6472;
    --accent: #d93636;
    --ok: #14804a;
    --dot: rgb(13 17 23 / .07);
    --shadow: 0 18px 40px -28px rgb(13 17 23 / .35);

    --t-excel: #0f8a52;
    --t-pbi:   #8a6400;
    --t-sql:   #1e63d6;
    --t-py:    #6a3fd0;
  }
}

/* O botão de tema vence a preferência do sistema nos dois sentidos. */
:root[data-theme="dark"] {
  --bg: #08090b; --bg-2: #0c0e11; --panel: #101318; --panel-2: #14181e;
  --line: #1e232b; --line-2: #171b21; --text: #e8eaee; --muted: #7f8794;
  --accent: #ff4d4d; --ok: #35c07a; --dot: rgb(255 255 255 / .05);
  --shadow: 0 18px 40px -24px rgb(0 0 0 / .9);
  --t-excel: #26d07c; --t-pbi: #f5b81b; --t-sql: #4d9bff; --t-py: #a882ff;
}
:root[data-theme="light"] {
  --bg: #fafbfc; --bg-2: #f1f3f7; --panel: #ffffff; --panel-2: #f6f8fa;
  --line: #e3e7ee; --line-2: #edf0f5; --text: #0d1117; --muted: #5b6472;
  --accent: #d93636; --ok: #14804a; --dot: rgb(13 17 23 / .07);
  --shadow: 0 18px 40px -28px rgb(13 17 23 / .35);
  --t-excel: #0f8a52; --t-pbi: #8a6400; --t-sql: #1e63d6; --t-py: #6a3fd0;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 72px; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 15.5px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3 { margin: 0; font-family: var(--display); font-weight: 700; letter-spacing: -.03em; line-height: 1.1; }
p { margin: 0; }
a { color: inherit; }

.wrap { width: min(100% - 44px, var(--wrap)); margin-inline: auto; }
.hidden { display: none !important; }
.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 { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--accent); color: #fff; padding: 10px 16px; border-radius: var(--r-sm); }
.skip:focus { left: 20px; }

:where(a, button, input, [tabindex]):focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }

/* ponto de cor que identifica a trilha */
.d { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--c); flex: none; }

/* ------------------------------------------------------------- botões --- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 9px 16px;
  border: 1px solid var(--line); border-radius: var(--r-sm);
  background: var(--panel); color: var(--text);
  font-family: var(--mono); font-size: 12.5px; font-weight: 600;
  text-decoration: none; cursor: pointer;
  transition: border-color .15s, background .15s, color .15s;
}
.btn:hover { border-color: var(--muted); background: var(--panel-2); }
.btn-lg { padding: 13px 22px; font-size: 13.5px; }
.btn-solid { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn-solid:hover { background: color-mix(in srgb, var(--accent) 82%, #000); border-color: transparent; color: #fff; }

/* --------------------------------------------------------------- topo --- */

.topbar {
  position: sticky; top: 0; z-index: 40;
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  border-bottom: 1px solid var(--line);
}
.topbar-inner { display: flex; align-items: center; gap: 28px; height: 58px; }

.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand-sq {
  display: grid; place-items: center;
  width: 28px; height: 28px; border-radius: 7px;
  background: var(--accent); color: #fff;
  font-family: var(--mono); font-size: 11.5px; font-weight: 700; letter-spacing: -.02em;
}
.brand-txt { font-family: var(--mono); font-size: 13.5px; font-weight: 600; }
.brand-txt b { color: var(--muted); font-weight: 600; }

.nav { display: flex; gap: 4px; margin-left: auto; }
.nav a {
  display: flex; align-items: center; gap: 8px;
  padding: 7px 12px; border-radius: var(--r-sm);
  font-family: var(--mono); font-size: 12.5px; color: var(--muted); text-decoration: none;
  transition: color .15s, background .15s;
}
.nav a:hover { color: var(--text); background: var(--panel); }

.topbar-actions { display: flex; align-items: center; gap: 10px; }
.theme-toggle {
  width: 32px; height: 32px;
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-sm);
  color: var(--muted); font-size: 13px; cursor: pointer;
  transition: color .15s, border-color .15s;
}
.theme-toggle:hover { color: var(--text); border-color: var(--muted); }

@media (max-width: 980px) { .nav { display: none; } .topbar-actions { margin-left: auto; } }

/* --------------------------------------------------------------- hero --- */

.hero { position: relative; padding: 76px 0 0; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background-image: radial-gradient(var(--dot) 1px, transparent 1px);
  background-size: 22px 22px;
  mask-image: linear-gradient(180deg, #000 0%, transparent 82%);
}
.hero-inner { display: grid; grid-template-columns: 1fr 1.05fr; gap: 56px; align-items: center; padding-bottom: 72px; }
@media (max-width: 1040px) { .hero-inner { grid-template-columns: 1fr; gap: 44px; } }

.badge {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 6px 13px 6px 10px;
  border: 1px solid var(--line); border-radius: 999px; background: var(--panel);
  font-family: var(--mono); font-size: 11.5px; color: var(--muted);
}
.pulse { width: 6px; height: 6px; border-radius: 50%; background: var(--ok); animation: pulse 2.6s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .35; } }

.hero h1 { margin-top: 24px; font-size: clamp(40px, 5.4vw, 64px); line-height: 1.04; }
.hero h1 .ac { color: var(--accent); }

.deck { margin-top: 20px; max-width: 50ch; color: var(--muted); font-size: 16px; }
.deck-sm { font-size: 15px; margin-top: 14px; }

.hero-cta { display: flex; gap: 10px; margin-top: 30px; flex-wrap: wrap; }

/* --------------------------------------------------- painel do editor --- */

.editor {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--r);
  box-shadow: var(--shadow); overflow: hidden;
}
.editor-tabs { display: flex; overflow-x: auto; background: var(--panel-2); border-bottom: 1px solid var(--line); }
.etab {
  display: flex; align-items: center; gap: 8px;
  padding: 11px 16px;
  background: transparent; border: 0; border-right: 1px solid var(--line);
  border-top: 2px solid transparent;
  color: var(--muted); font-family: var(--mono); font-size: 12px;
  cursor: pointer; white-space: nowrap;
  transition: color .15s, background .15s, border-color .15s;
}
.etab .d { background: var(--c); opacity: .5; transition: opacity .15s; }
.etab:hover { color: var(--text); }
.etab[aria-selected="true"] { color: var(--text); background: var(--panel); border-top-color: var(--c); }
.etab[aria-selected="true"] .d { opacity: 1; }

.editor-body { padding: 20px 0; min-height: 196px; }
.epanel { display: flex; gap: 18px; margin: 0; font-family: var(--mono); font-size: 13px; line-height: 1.7; overflow-x: auto; }
.epanel .gutter {
  flex: none; padding-left: 18px; text-align: right; color: var(--muted); opacity: .45;
  user-select: none; border-right: 1px solid var(--line-2); padding-right: 12px;
}
.epanel code { display: block; padding-right: 20px; }
.epanel .k { color: var(--t-sql); }
.epanel .f { color: var(--t-py); }
.epanel .s { color: var(--t-excel); }
.epanel .c { color: var(--muted); }

.editor-out { border-top: 1px solid var(--line); background: var(--panel-2); padding: 14px 20px 16px; }
.out-head { font-family: var(--mono); font-size: 11.5px; color: var(--muted); margin-bottom: 12px; }
.out-head .caret { color: var(--accent); margin-right: 6px; }
.out-head em { font-style: normal; opacity: .6; margin-left: 8px; }
.out-rows { display: grid; gap: 7px; }
.out-row { display: grid; grid-template-columns: 92px 1fr; align-items: center; gap: 14px; font-family: var(--mono); font-size: 11.5px; color: var(--muted); }
.out-row i { display: block; height: 6px; border-radius: 3px; width: calc(var(--v) * .62); background: var(--accent); opacity: .7; }

/* ---------------------------------------------------- barra de status --- */

.statusbar { border-block: 1px solid var(--line); background: var(--panel); }
.statusbar-inner { display: flex; flex-wrap: wrap; }
.st {
  display: flex; align-items: baseline; gap: 8px;
  padding: 11px 20px; border-right: 1px solid var(--line);
  font-family: var(--mono); font-size: 11.5px; color: var(--muted);
}
.st:first-child { padding-left: 0; }
.st b { color: var(--text); font-size: 13px; font-weight: 700; }

/* ------------------------------------------------------------ seções --- */

.section { padding: 86px 0; }
.section-tight { padding: 56px 0 0; }
.band { background: var(--bg-2); border-block: 1px solid var(--line); }

.sec-label { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.sec-label span {
  font-family: var(--mono); font-size: 11px; color: var(--muted);
  text-transform: lowercase; letter-spacing: .06em;
}
.sec-label span::before { content: "// "; color: var(--accent); }
.sec-label i { flex: 1; height: 1px; background: var(--line); }
.sec-title { font-size: clamp(26px, 3.2vw, 36px); }

/* -------------------------------------------------- índice de trilhas --- */

.index-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
@media (max-width: 1000px) { .index-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px)  { .index-grid { grid-template-columns: 1fr; } }

.ix {
  display: block; padding: 18px; text-decoration: none;
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--r);
  transition: border-color .15s, background .15s, transform .15s;
}
.ix:hover { border-color: var(--c); background: var(--panel-2); transform: translateY(-2px); }
.ix-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.ix-name { display: flex; align-items: center; gap: 9px; font-family: var(--mono); font-size: 14.5px; font-weight: 600; color: var(--c); }
.ix-n { font-family: var(--mono); font-size: 11px; color: var(--muted); }
.ix-meta { margin-top: 12px; font-family: var(--mono); font-size: 11.5px; color: var(--muted); }
.ix-topics { margin-top: 8px; font-size: 12.5px; color: var(--muted); }

/* ---------------------------------------------- seção de cada trilha --- */

.trilha { padding: 76px 0; border-top: 1px solid var(--line); }
.trilha:nth-of-type(even) { background: var(--bg-2); }

.trilha-head {
  display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: end;
  padding-bottom: 22px; margin-bottom: 26px;
  border-bottom: 1px solid var(--line);
  position: relative;
}
/* filete da cor da trilha ancorado na base do cabeçalho */
.trilha-head::after {
  content: ""; position: absolute; left: 0; bottom: -1px; width: 96px; height: 2px; background: var(--c);
}
@media (max-width: 760px) { .trilha-head { grid-template-columns: 1fr; align-items: start; } }

.trilha-id { display: flex; align-items: center; gap: 14px; }
.trilha-n {
  display: grid; place-items: center;
  width: 34px; height: 34px; border-radius: var(--r-sm);
  border: 1px solid var(--c); color: var(--c);
  font-family: var(--mono); font-size: 12.5px; font-weight: 700;
}
.trilha-head h2 { font-size: clamp(30px, 4vw, 44px); color: var(--c); }
.trilha-desc { margin-top: 14px; max-width: 58ch; color: var(--muted); }
.trilha-topics { margin-top: 14px; display: flex; gap: 7px; flex-wrap: wrap; }
.trilha-topics span {
  padding: 4px 10px; border-radius: 6px;
  background: color-mix(in srgb, var(--c) 12%, transparent);
  border: 1px solid color-mix(in srgb, var(--c) 26%, transparent);
  font-family: var(--mono); font-size: 11.5px; color: var(--c);
}
.trilha-meta { display: flex; gap: 22px; font-family: var(--mono); font-size: 12px; color: var(--muted); }
.trilha-meta b { display: block; color: var(--text); font-size: 17px; font-weight: 700; margin-bottom: 2px; }

/* ----------------------------------------------- módulos dentro da trilha --- */

.modulos { display: grid; gap: 34px; }

.mod-head {
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
  margin-bottom: 14px;
}
.mod-n {
  padding: 4px 9px; border-radius: 6px;
  background: color-mix(in srgb, var(--c) 14%, transparent);
  color: var(--c); font-family: var(--mono); font-size: 11px;
}
.mod-head h3 { font-size: 18px; letter-spacing: -.02em; }
.mod-rule { flex: 1; min-width: 20px; height: 1px; background: var(--line); }
.mod-meta { font-family: var(--mono); font-size: 11.5px; color: var(--muted); }

/* ------------------------------------------------------- aulas (cards) --- */

.lessons { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
@media (max-width: 1000px) { .lessons { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px)  { .lessons { grid-template-columns: 1fr; } }

.lesson {
  position: relative;
  display: flex; flex-direction: column;
  padding: 18px;
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--r);
  transition: border-color .15s, transform .15s, box-shadow .2s;
}
.lesson:hover {
  border-color: color-mix(in srgb, var(--c) 55%, var(--line));
  transform: translateY(-2px);
  box-shadow: 0 12px 28px -20px var(--c);
}

.lesson-top {
  display: flex; align-items: center; justify-content: space-between;
  font-family: var(--mono); font-size: 11.5px; color: var(--muted);
}
.lesson-n { color: var(--muted); transition: color .15s; }
.lesson:hover .lesson-n { color: var(--c); }

.lesson h3 { margin-top: 12px; font-size: 16.5px; line-height: 1.3; }
.lesson h3 .lesson-trigger {
  background: none; border: 0; padding: 0; margin: 0;
  font: inherit; color: inherit; text-align: left; cursor: pointer;
}
/* o ::after estende o alvo de clique ao card todo, sem heading dentro de button */
.lesson-trigger::after { content: ""; position: absolute; inset: 0; z-index: 2; border-radius: var(--r); }
.lesson-trigger:focus-visible { outline: none; }
.lesson-trigger:focus-visible::after { outline: 2px solid var(--accent); outline-offset: -2px; }

.lesson-desc { margin-top: 9px; font-size: 13.5px; color: var(--muted); flex: 1; }
.lesson-foot {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  margin-top: 16px; padding-top: 13px; border-top: 1px solid var(--line-2);
  font-family: var(--mono); font-size: 11px; color: var(--muted);
}
.lesson-lvl { display: flex; align-items: center; gap: 7px; }
.lesson-go { color: var(--muted); transition: color .15s, transform .15s; }
.lesson:hover .lesson-go { color: var(--c); transform: translateX(3px); }

/* ---------------------------------------------------------- percurso --- */

.pipe {
  list-style: none; margin: 34px 0 0; padding: 0;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px;
}
@media (max-width: 1000px) { .pipe { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px)  { .pipe { grid-template-columns: 1fr; } }

.pipe-step {
  position: relative; padding: 22px 20px;
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--r);
}
/* conector entre as etapas */
.pipe-step:not(:last-child)::after {
  content: ""; position: absolute; top: 34px; right: -12px; width: 12px; height: 1px;
  background: var(--line);
}
@media (max-width: 1000px) { .pipe-step:nth-child(2)::after { display: none; } }
@media (max-width: 560px)  { .pipe-step::after { display: none !important; } }

.pipe-n { font-family: var(--mono); font-size: 12px; color: var(--accent); }
.pipe-step h3 { margin-top: 12px; font-size: 18px; }
.pipe-step p { margin-top: 9px; font-size: 14px; color: var(--muted); }
.pipe-out {
  display: block; margin-top: 16px; padding-top: 13px; border-top: 1px solid var(--line-2);
  font-family: var(--mono); font-size: 11px; color: var(--muted);
}

/* ----------------------------------------------------------- prática --- */

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
@media (max-width: 940px) { .split { grid-template-columns: 1fr; gap: 36px; } }

.checks { list-style: none; margin: 24px 0 0; padding: 0; display: grid; gap: 10px; }
.checks li { position: relative; padding-left: 26px; font-size: 14.5px; color: var(--muted); }
.checks li::before { content: "✓"; position: absolute; left: 0; font-family: var(--mono); color: var(--ok); }

.spec { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.spec-head {
  display: flex; justify-content: space-between;
  padding: 11px 18px; background: var(--panel-2); border-bottom: 1px solid var(--line);
  font-family: var(--mono); font-size: 11px; color: var(--muted);
}
.spec-list { margin: 0; }
.spec-list > div { display: grid; grid-template-columns: 140px 1fr; gap: 18px; padding: 15px 18px; border-bottom: 1px solid var(--line-2); }
.spec-list > div:last-child { border-bottom: 0; }
.spec-list dt { font-family: var(--mono); font-size: 12.5px; color: var(--accent); }
.spec-list dd { margin: 0; font-size: 14px; color: var(--muted); }
@media (max-width: 560px) { .spec-list > div { grid-template-columns: 1fr; gap: 6px; } }

/* ------------------------------------------------------------- preço --- */

.price {
  display: grid; grid-template-columns: 320px 1fr; gap: 12px;
  margin-top: 30px;
}
@media (max-width: 860px) { .price { grid-template-columns: 1fr; } }

.price-box {
  padding: 28px 26px;
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--r);
  box-shadow: var(--shadow);
}
.price-label { font-family: var(--mono); font-size: 11px; color: var(--muted); }
.price-value {
  margin: 10px 0 20px;
  font-family: var(--display); font-size: 44px; font-weight: 700; letter-spacing: -.04em;
  line-height: 1;
}
.price-value span { font-size: 22px; color: var(--muted); letter-spacing: -.02em; }
.price-box .btn { width: 100%; }
.price-foot { margin-top: 12px; font-family: var(--mono); font-size: 10.5px; color: var(--muted); }

.price-list {
  list-style: none; margin: 0; padding: 10px 4px;
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 2px 28px;
  align-content: center;
}
@media (max-width: 1000px) { .price-list { grid-template-columns: 1fr; } }
.price-list li {
  position: relative; padding: 10px 0 10px 26px;
  font-size: 14.5px; color: var(--muted);
  border-bottom: 1px solid var(--line-2);
}
.price-list li::before {
  content: "+"; position: absolute; left: 4px;
  font-family: var(--mono); color: var(--accent);
}

/* --------------------------------------------------------- inscrição --- */

.cta-box {
  display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center;
  padding: 40px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--r);
}
@media (max-width: 880px) { .cta-box { grid-template-columns: 1fr; gap: 28px; padding: 30px 24px; } }

.signup { display: flex; gap: 8px; }
.signup input {
  flex: 1; min-width: 0; padding: 11px 14px;
  background: var(--bg); border: 1px solid var(--line); border-radius: var(--r-sm);
  color: var(--text); font-family: var(--mono); font-size: 13px;
}
.signup input::placeholder { color: var(--muted); }
.signup input:focus { outline: 2px solid var(--accent); outline-offset: -1px; border-color: transparent; }
@media (max-width: 480px) { .signup { flex-direction: column; } }

.form-msg { margin-top: 12px; font-family: var(--mono); font-size: 12px; min-height: 18px; }
.form-msg.ok { color: var(--ok); }
.form-msg.err { color: var(--accent); }
.cta-note { margin-top: 6px; font-family: var(--mono); font-size: 10.5px; color: var(--muted); opacity: .75; }

/* ------------------------------------------------------------ rodapé --- */

.footer { border-top: 1px solid var(--line); background: var(--panel); padding: 44px 0 20px; }
.footer-inner { display: flex; justify-content: space-between; gap: 44px; flex-wrap: wrap; padding-bottom: 32px; }
.footer-brand { display: flex; gap: 12px; max-width: 300px; }
.footer-note { margin-top: 6px; font-size: 13.5px; color: var(--muted); }

.footer-nav { display: flex; gap: 60px; flex-wrap: wrap; }
.footer-nav h4 { margin: 0 0 10px; font-family: var(--mono); font-size: 11px; font-weight: 600; color: var(--muted); }
.footer-nav a { display: block; padding: 4px 0; font-size: 14px; text-decoration: none; color: var(--muted); transition: color .15s; }
.footer-nav a:hover { color: var(--text); }

.footer-bottom {
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  padding-top: 18px; border-top: 1px solid var(--line);
  font-family: var(--mono); font-size: 11px; color: var(--muted);
}

/* ------------------------------------------------------------- modal --- */

.modal { position: fixed; inset: 0; z-index: 60; display: grid; place-items: center; padding: 20px; }
.modal[hidden] { display: none; }
.modal-backdrop { position: absolute; inset: 0; background: rgb(4 5 7 / .74); }
.modal-box {
  position: relative; width: min(100%, 560px); max-height: 92vh; overflow-y: auto;
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--r);
  box-shadow: var(--shadow);
}
.modal-bar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 8px 10px 16px; border-bottom: 1px solid var(--line); background: var(--panel-2);
}
.modal-meta { font-family: var(--mono); font-size: 11px; color: var(--track-color, var(--accent)); }
.modal-close {
  padding: 6px 10px; background: transparent; border: 1px solid var(--line); border-radius: 6px;
  color: var(--muted); font-family: var(--mono); font-size: 11px; cursor: pointer;
}
.modal-close:hover { color: var(--text); border-color: var(--muted); }

.modal-player {
  aspect-ratio: 16 / 9; display: grid; place-items: center; align-content: center; gap: 12px;
  background: var(--bg); border-bottom: 1px solid var(--line);
  color: var(--muted); font-family: var(--mono); font-size: 11.5px;
}
.modal-play {
  width: 52px; height: 52px; border-radius: 50%;
  display: grid; place-items: center;
  border: 1px solid var(--track-color, var(--accent));
  color: var(--track-color, var(--accent)); font-size: 16px; padding-left: 3px;
}

.modal-body { padding: 22px; }
.modal-mod { font-family: var(--mono); font-size: 11px; color: var(--muted); margin-bottom: 8px; }
.modal-body h3 { font-size: 21px; }
.modal-body > p:not(.modal-soon):not(.modal-mod) { margin-top: 10px; font-size: 14.5px; color: var(--muted); }
.modal-soon {
  margin-top: 16px; padding: 12px 14px;
  background: var(--panel-2); border: 1px solid var(--line); border-radius: var(--r-sm);
  font-size: 13px; color: var(--muted);
}
.modal-body .btn { margin-top: 16px; }
