:root {
  --accent: #8b2cf5;
  --accent-2: #b46bff;
  --bg: #0a0a0d;
  --bg-2: #121217;
  --card: #17171e;
  --line: #26262f;
  --text: #f2f0f7;
  --muted: #9a97a6;
  --radius: 10px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { background: var(--bg); color: var(--text); font-family: 'Sora', system-ui, sans-serif; }
body { min-height: 100vh; overflow-x: hidden; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }
input, textarea, select { font: inherit; color: var(--text); }
img { display: block; max-width: 100%; }

/* ---------- Topbar ---------- */
.topbar {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 40px;
  background: linear-gradient(to bottom, rgba(10,10,13,.9), rgba(10,10,13,0));
  transition: background .25s;
}
.topbar.solid { background: rgba(10,10,13,.96); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 12px; font-weight: 800; font-size: 22px; letter-spacing: -.5px; }
.brand-bars { display: flex; gap: 3px; }
.brand-bars span { width: 7px; height: 26px; border-radius: 2px; background: var(--accent); }
.brand-bars span:nth-child(1) { opacity: .35; }
.brand-bars span:nth-child(2) { opacity: .65; }
.brand .hl { color: var(--accent-2); }
.brand-tag {
  font-size: 9.5px; font-weight: 600; letter-spacing: 1px; color: var(--accent-2);
  border: 1px solid var(--accent-2); border-radius: 4px; padding: 2px 6px;
}
.brand img { height: 34px; width: auto; }
.top-actions { display: flex; gap: 6px; align-items: center; }
.icon-btn { width: 40px; height: 40px; border-radius: 8px; display: grid; place-items: center; color: #fff; transition: background .2s; }
.icon-btn:hover { background: rgba(255,255,255,.08); }
.icon-btn svg { width: 22px; height: 22px; }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 470px; padding: 130px 70px 80px;
  display: flex; align-items: center;
  background-size: cover; background-position: center right;
}
.hero::before {
  content: ''; position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(10,10,13,.95) 0%, rgba(10,10,13,.7) 40%, rgba(10,10,13,.1) 75%),
    linear-gradient(0deg, var(--bg) 0%, rgba(10,10,13,0) 40%);
}
.hero.no-img {
  background:
    radial-gradient(ellipse at 75% 40%, color-mix(in srgb, var(--accent) 55%, transparent), transparent 60%),
    radial-gradient(ellipse at 20% 100%, color-mix(in srgb, var(--accent) 25%, transparent), transparent 55%),
    var(--bg);
}
.hero-content { position: relative; max-width: 600px; }
.hero h1 { font-size: clamp(28px, 3.4vw, 42px); font-weight: 800; color: var(--accent-2); line-height: 1.15; margin-bottom: 18px; }
.hero p { font-size: 15px; color: #e5e2ee; line-height: 1.6; margin-bottom: 30px; }

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 22px; border-radius: 8px; font-weight: 600; font-size: 14px;
  background: var(--accent); color: #fff;
  box-shadow: 0 0 24px color-mix(in srgb, var(--accent) 55%, transparent);
  transition: transform .15s, filter .15s;
}
.btn:hover { transform: translateY(-1px); filter: brightness(1.12); }
.btn.ghost { background: transparent; border: 1px solid var(--line); box-shadow: none; }
.btn.ghost:hover { border-color: var(--accent); }
.btn.danger { background: #d0314a; box-shadow: none; }
.btn.sm { padding: 8px 14px; font-size: 13px; }
.btn:disabled { opacity: .45; cursor: not-allowed; transform: none; }

/* ---------- Rows ---------- */
.rows { padding: 10px 0 80px; }
.row { margin-bottom: 44px; }
.row-head { padding: 0 56px 18px; }
.row-head h2 { font-size: 16px; font-weight: 700; color: var(--accent-2); }
.row-head p { font-size: 12.5px; color: #d8d5e0; margin-top: 2px; }
.carousel-wrap { position: relative; }
.carousel {
  display: flex; gap: 10px; overflow-x: auto; scroll-behavior: smooth;
  padding: 10px 10px 16px; scrollbar-width: none;
}
.carousel::-webkit-scrollbar { display: none; }
.car-arrow {
  position: absolute; top: 10px; bottom: 16px; width: 46px; z-index: 5;
  display: grid; place-items: center; color: #fff; opacity: 0; transition: opacity .2s;
  background: linear-gradient(90deg, rgba(10,10,13,.85), transparent);
}
.car-arrow.right { right: 0; background: linear-gradient(-90deg, rgba(10,10,13,.85), transparent); }
.car-arrow.left { left: 0; }
.carousel-wrap:hover .car-arrow { opacity: 1; }
.car-arrow svg { width: 28px; height: 28px; }

/* ---------- Poster card ---------- */
.poster {
  position: relative; flex: 0 0 auto; width: 256px; aspect-ratio: 9 / 15;
  border-radius: var(--radius); overflow: hidden; background: var(--card);
  transition: transform .25s, box-shadow .25s;
}
.poster:hover { transform: scale(1.035); box-shadow: 0 0 0 2px var(--accent), 0 10px 40px color-mix(in srgb, var(--accent) 40%, transparent); z-index: 2; }
.poster img { width: 100%; height: 100%; object-fit: cover; }
.poster .ph, .wide-card .ph {
  position: relative; width: 100%; height: 100%;
  background:
    radial-gradient(circle at 50% 34%, color-mix(in srgb, var(--accent) 65%, transparent), transparent 52%),
    linear-gradient(180deg, #1d1033, #0b0a10 75%);
  display: grid; place-items: center;
}
/* perfuração de película nas laterais */
.poster .ph::before, .poster .ph::after {
  content: ''; position: absolute; top: 0; bottom: 0; width: 6px;
  background: repeating-linear-gradient(180deg, rgba(255,255,255,.13) 0 9px, transparent 9px 18px);
}
.poster .ph::before { left: 7px; }
.poster .ph::after { right: 7px; }
.poster .ph svg {
  width: 96px; height: 96px; margin-bottom: 120px; color: #fff;
  filter: drop-shadow(0 0 14px var(--accent)) drop-shadow(0 0 30px color-mix(in srgb, var(--accent) 70%, transparent));
}
.poster .overlay {
  position: absolute; inset: auto 0 0 0; padding: 60px 14px 30px; text-align: center;
  background: linear-gradient(0deg, rgba(8,6,14,.95) 30%, transparent);
}
.poster .kicker { font-size: 10.5px; letter-spacing: 2px; text-transform: uppercase; color: #ddd; }
.poster .title { font-size: 21px; font-weight: 800; text-transform: uppercase; line-height: 1.12; margin-top: 2px; text-shadow: 0 0 18px rgba(0,0,0,.6); }
.poster .title .hl { color: var(--accent-2); }
.poster .tag { font-size: 8.5px; letter-spacing: 4px; color: #aaa; margin-top: 16px; text-transform: uppercase; }
.poster .lock {
  position: absolute; inset: 0; background: rgba(0,0,0,.55); display: grid; place-items: center;
}
.poster .lock svg { width: 34px; height: 34px; }
.progress {
  position: absolute; left: 0; right: 0; bottom: 0; height: 18px;
  display: flex; gap: 2px; background: rgba(10,8,16,.9);
}
.progress .clip { flex: 1; background: color-mix(in srgb, var(--accent) 22%, #1a1622); }
.progress .clip.done { background: var(--accent); }
.progress .pct {
  position: absolute; right: 6px; top: 0; bottom: 0; display: flex; align-items: center;
  font-size: 11px; font-weight: 700; text-shadow: 0 0 4px #000;
}

/* ---------- Selo "Renderizado" ---------- */
.rendered {
  position: absolute; top: 10px; right: 10px; z-index: 2;
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 10px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase;
  padding: 4px 8px; border-radius: 5px; background: var(--accent); color: #fff;
  box-shadow: 0 0 14px color-mix(in srgb, var(--accent) 60%, transparent);
}
.rendered svg { width: 11px; height: 11px; }
.rendered.inline { position: static; vertical-align: middle; margin-left: 10px; font-size: 11px; }

/* ---------- Timeline ---------- */
.timeline {
  background: #0d0c12; border: 1px solid var(--line); border-radius: 10px;
  padding: 10px 12px 12px; margin-bottom: 22px; max-width: 720px;
  font-family: 'JetBrains Mono', monospace;
}
.tl-head { display: flex; justify-content: space-between; gap: 10px; font-size: 10.5px; color: var(--muted); letter-spacing: 1px; margin-bottom: 6px; }
.tl-head span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tl-row { display: flex; gap: 8px; }
.tl-label { width: 28px; flex: none; display: grid; place-items: center; font-size: 10px; color: var(--muted); background: #17151f; border-radius: 4px; margin-top: 14px; }
.tl-area { position: relative; flex: 1; min-width: 0; }
.tl-ruler {
  height: 10px; margin-bottom: 4px;
  background:
    repeating-linear-gradient(90deg, #5a5566 0 1px, transparent 1px 50px) bottom / 100% 10px no-repeat,
    repeating-linear-gradient(90deg, #34303f 0 1px, transparent 1px 10px) bottom / 100% 5px no-repeat;
}
.tl-clips { display: flex; gap: 4px; height: 30px; }
.tl-mod { display: flex; gap: 2px; min-width: 0; }
.tl-clip {
  flex: 1; min-width: 0; border-radius: 4px; overflow: hidden; white-space: nowrap;
  display: flex; align-items: center; padding: 0 6px; font-size: 10px;
  background: #241f2e; border: 1px solid #3a3446; color: #8f8a9c; transition: filter .15s;
}
.tl-clip.done { background: color-mix(in srgb, var(--accent) 70%, #000); border-color: var(--accent-2); color: #fff; }
.tl-clip.current { outline: 2px solid #fff; outline-offset: -2px; color: #fff; }
.tl-clip:hover { filter: brightness(1.3); }
.tl-playhead { position: absolute; top: 0; bottom: -4px; width: 2px; background: #ff3b5c; transform: translateX(-1px); pointer-events: none; }
.tl-playhead::before { content: ''; position: absolute; top: -3px; left: -5px; border: 6px solid transparent; border-top: 8px solid #ff3b5c; border-bottom: 0; }


/* ---------- Card horizontal (calls) ---------- */
.wide-card {
  position: relative; flex: 0 0 auto; width: 380px; aspect-ratio: 16 / 9;
  border-radius: var(--radius); overflow: hidden; background: var(--card);
  transition: transform .25s, box-shadow .25s;
}
.wide-card:hover { transform: scale(1.03); box-shadow: 0 0 0 2px var(--accent), 0 10px 40px color-mix(in srgb, var(--accent) 40%, transparent); z-index: 2; }
.wide-card img { width: 100%; height: 100%; object-fit: cover; }
.wide-card .ph { place-items: start end; padding: 18px; }
.wide-card .ph svg { width: 54px; height: 54px; color: #fff; opacity: .5; }
.wide-card::after { content: ''; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(8,6,14,.92) 10%, transparent 65%); pointer-events: none; }
.wc-play {
  position: absolute; left: 50%; top: 42%; transform: translate(-50%, -50%); z-index: 1;
  width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center;
  background: color-mix(in srgb, var(--accent) 85%, transparent); box-shadow: 0 0 24px var(--accent);
  transition: transform .2s;
}
.wide-card:hover .wc-play { transform: translate(-50%, -50%) scale(1.1); }
.wc-play svg { width: 22px; height: 22px; margin-left: 3px; }
.wc-date, .wc-dur {
  position: absolute; top: 12px; z-index: 1; font-size: 10.5px; font-weight: 600; letter-spacing: 1px;
  padding: 3px 8px; border-radius: 5px; background: rgba(0,0,0,.6);
}
.wc-date { left: 12px; color: var(--accent-2); }
.wc-dur { right: 12px; top: auto; bottom: 14px; color: #ddd; }
.wc-info { position: absolute; left: 14px; right: 80px; bottom: 12px; z-index: 1; }
.wc-niche { font-size: 10.5px; font-weight: 600; letter-spacing: 1.5px; text-transform: uppercase; color: var(--accent-2); margin-bottom: 2px; }
.wc-title { font-size: 16px; font-weight: 700; line-height: 1.25; }
.wc-title .hl { color: var(--accent-2); }
.wide-card .rendered { top: 12px; right: 12px; }

/* ---------- Módulo de calls ---------- */
.call-chip {
  display: inline-flex; align-items: center; gap: 5px; margin-right: 10px; vertical-align: 2px;
  font-size: 10px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase;
  padding: 3px 8px; border-radius: 5px; color: var(--accent-2);
  background: color-mix(in srgb, var(--accent) 22%, transparent);
}
.call-chip svg { width: 13px; height: 13px; }

/* ---------- Course page ---------- */
.page { padding: 100px 56px 80px; max-width: 1400px; margin: 0 auto; }
.course-head { display: grid; grid-template-columns: 240px 1fr; gap: 36px; align-items: end; margin-bottom: 40px; }
.course-head .poster { width: 100%; }
.course-head .poster:hover { transform: none; }
.course-head h1 { font-size: 34px; font-weight: 800; line-height: 1.1; }
.course-head .meta { color: var(--muted); font-size: 13px; margin: 10px 0 16px; }
.course-head .desc { color: #d8d5e0; font-size: 14.5px; line-height: 1.7; max-width: 720px; margin-bottom: 22px; white-space: pre-line; }

.module { background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 12px; overflow: hidden; }
.module-head { display: flex; align-items: center; justify-content: space-between; padding: 18px 22px; width: 100%; text-align: left; }
.module-head h3 { font-size: 15.5px; font-weight: 600; }
.module-head span { font-size: 12.5px; color: var(--muted); }
.module-head .chev { transition: transform .2s; width: 20px; height: 20px; }
.module.open .module-head .chev { transform: rotate(180deg); }
.module-body { display: none; border-top: 1px solid var(--line); }
.module.open .module-body { display: block; }
.lesson-item {
  display: flex; align-items: center; gap: 14px; padding: 13px 22px; font-size: 14px;
  border-bottom: 1px solid var(--line); transition: background .15s;
}
.lesson-item:last-child { border-bottom: 0; }
.lesson-item:hover { background: rgba(255,255,255,.03); }
.lesson-item .check {
  width: 22px; height: 22px; border-radius: 50%; border: 2px solid #3a3a46; flex: none;
  display: grid; place-items: center;
}
.lesson-item.done .check { background: var(--accent); border-color: var(--accent); }
.lesson-item .check svg { width: 13px; height: 13px; }
.lesson-item .grow { flex: 1; }
.lesson-item .dur { color: var(--muted); font-size: 12.5px; }
.lesson-item.active { background: color-mix(in srgb, var(--accent) 14%, transparent); }

/* ---------- Player ---------- */
.player-layout { display: grid; grid-template-columns: 1fr 370px; gap: 26px; }
.player {
  position: relative; aspect-ratio: 16/9; background: #000; border-radius: var(--radius); overflow: hidden;
  box-shadow: 0 0 50px color-mix(in srgb, var(--accent) 22%, transparent);
}
.player iframe, .player video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.player .empty { position: absolute; inset: 0; display: grid; place-items: center; color: var(--muted); font-size: 14px; text-align: center; padding: 20px; }
.crumb { font-size: 13px; color: var(--muted); margin-bottom: 14px; }
.crumb a:hover { color: var(--accent-2); }
.lesson-title { font-size: 24px; font-weight: 700; margin: 22px 0 6px; }
.lesson-actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 18px 0 26px; }
.lesson-desc { color: #d8d5e0; font-size: 14.5px; line-height: 1.75; white-space: pre-line; }
.materials { margin-top: 26px; }
.materials h4 { font-size: 14px; margin-bottom: 10px; }
.mat {
  display: flex; align-items: center; gap: 10px; padding: 12px 14px; border: 1px solid var(--line);
  border-radius: 8px; margin-bottom: 8px; font-size: 13.5px; background: var(--bg-2);
}
.mat:hover { border-color: var(--accent); }
.mat svg { width: 18px; height: 18px; color: var(--accent-2); }
.side { background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius); max-height: calc(100vh - 130px); overflow: auto; position: sticky; top: 90px; }
.side .module { border: 0; border-radius: 0; border-bottom: 1px solid var(--line); margin: 0; }
.side .module-head { padding: 14px 18px; }
.side .lesson-item { padding: 11px 18px; font-size: 13.5px; }

/* ---------- Login ---------- */
.login {
  min-height: 100vh; display: grid; place-items: center; padding: 20px;
  background:
    radial-gradient(ellipse at 70% 20%, color-mix(in srgb, var(--accent) 40%, transparent), transparent 55%),
    radial-gradient(ellipse at 10% 90%, color-mix(in srgb, var(--accent) 22%, transparent), transparent 50%),
    var(--bg);
}
.login-box { width: 100%; max-width: 400px; background: rgba(18,18,23,.85); border: 1px solid var(--line); border-radius: 16px; padding: 38px 32px; backdrop-filter: blur(10px); }
.login-box .brand { justify-content: center; margin-bottom: 26px; }
.login-box h2 { font-size: 19px; text-align: center; margin-bottom: 6px; }
.login-box p.sub { font-size: 13px; color: var(--muted); text-align: center; margin-bottom: 26px; }
.login-box .btn { width: 100%; justify-content: center; margin-top: 8px; }

/* ---------- Forms ---------- */
.field { margin-bottom: 16px; }
.field label { display: block; font-size: 12.5px; color: var(--muted); margin-bottom: 6px; font-weight: 500; }
.field input, .field textarea, .field select {
  width: 100%; padding: 11px 13px; border-radius: 8px; border: 1px solid var(--line);
  background: #0e0e13; outline: none; font-size: 14px;
}
.field textarea { min-height: 100px; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--accent); }
.field .hint { font-size: 11.5px; color: var(--muted); margin-top: 5px; }
.field input[type=checkbox] { width: 16px; height: 16px; padding: 0; accent-color: var(--accent); }
.field input[type=file] { border: 0; padding: 0; background: none; font-size: 13px; }
.field input[type=color] { padding: 3px; height: 42px; width: 70px; }
.check-line { display: flex; align-items: center; gap: 8px; font-size: 13.5px; margin-bottom: 16px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

/* ---------- Admin ---------- */
.admin { display: grid; grid-template-columns: 250px 1fr; min-height: 100vh; padding-top: 72px; }
.admin-nav { border-right: 1px solid var(--line); padding: 24px 14px; background: var(--bg-2); }
.admin-nav button { display: flex; width: 100%; align-items: center; gap: 10px; padding: 11px 14px; border-radius: 8px; font-size: 14px; color: var(--muted); }
.admin-nav button.on, .admin-nav button:hover { background: color-mix(in srgb, var(--accent) 18%, transparent); color: #fff; }
.admin-nav svg { width: 18px; height: 18px; }
.admin-main { padding: 32px 40px 80px; max-width: 1100px; }
.admin-main h1 { font-size: 24px; margin-bottom: 6px; }
.admin-main .lead { color: var(--muted); font-size: 13.5px; margin-bottom: 26px; }
.panel { background: var(--bg-2); border: 1px solid var(--line); border-radius: 12px; padding: 22px; margin-bottom: 18px; }
.panel-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 16px; }
.panel-head h3 { font-size: 16px; }
.list-row {
  display: flex; align-items: center; gap: 14px; padding: 12px 14px; border: 1px solid var(--line);
  border-radius: 8px; margin-bottom: 8px; background: #0e0e13;
}
.list-row .grow { flex: 1; min-width: 0; }
.list-row .grow strong { display: block; font-size: 14px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.list-row .grow small { color: var(--muted); font-size: 12px; }
.list-row .thumb { width: 44px; height: 70px; border-radius: 6px; overflow: hidden; flex: none; background: var(--card); }
.list-row .thumb img, .list-row .thumb .ph { width: 100%; height: 100%; object-fit: cover; }
.list-row .thumb .ph { background: linear-gradient(180deg, color-mix(in srgb, var(--accent) 60%, #000), #0c0b12); }
.mini { display: flex; gap: 4px; }
.mini button { width: 32px; height: 32px; border-radius: 6px; display: grid; place-items: center; color: var(--muted); }
.mini button:hover { background: rgba(255,255,255,.07); color: #fff; }
.mini button.del:hover { color: #ff5470; }
.mini svg { width: 16px; height: 16px; }
.mod-block { border: 1px solid var(--line); border-radius: 10px; margin-bottom: 12px; background: #0e0e13; }
.mod-block > .list-row { border: 0; margin: 0; background: transparent; border-bottom: 1px solid var(--line); border-radius: 0; }
.mod-block .lessons { padding: 10px 12px 12px 28px; }
.mod-block .lessons .list-row { background: var(--bg-2); padding: 9px 12px; }
.upload {
  border: 1.5px dashed #3a3a46; border-radius: 10px; padding: 14px; display: flex; gap: 16px; align-items: center;
}
.upload .prev { width: 90px; aspect-ratio: 9/15; border-radius: 8px; overflow: hidden; background: var(--card); flex: none; }
.upload .prev.wide { width: 200px; aspect-ratio: 16/7; }
.upload .prev img { width: 100%; height: 100%; object-fit: cover; }
.mat-row { display: grid; grid-template-columns: 1fr 1.5fr 36px; gap: 8px; margin-bottom: 8px; }
.mat-row input { padding: 9px 11px; border-radius: 8px; border: 1px solid var(--line); background: #0e0e13; font-size: 13px; outline: none; }
.empty-state { text-align: center; color: var(--muted); padding: 30px; font-size: 14px; }

/* ---------- Banco de mídias ---------- */
.checker {
  background-color: #1c1b22;
  background-image: linear-gradient(45deg, #26252e 25%, transparent 25%), linear-gradient(-45deg, #26252e 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, #26252e 75%), linear-gradient(-45deg, transparent 75%, #26252e 75%);
  background-size: 16px 16px; background-position: 0 0, 0 8px, 8px -8px, -8px 0;
}


.p-logo { width: 64px; height: 64px; border-radius: 12px; overflow: hidden; flex: none; display: grid; place-items: center; background: #1c1b22; }
.p-logo img { width: 100%; height: 100%; object-fit: contain; padding: 10px; }
.p-logo span svg { width: 28px; height: 28px; color: var(--accent-2); }
.p-logo.big { width: 120px; height: 120px; border-radius: 18px; border: 1px solid var(--line); }

.p-head { display: flex; gap: 24px; align-items: center; margin-bottom: 36px; }
.p-head .grow { flex: 1; min-width: 0; }
.p-head h1 { font-size: 30px; font-weight: 800; }
.p-head .meta { color: var(--muted); font-size: 13.5px; margin: 4px 0 14px; }
.p-links { display: flex; flex-wrap: wrap; gap: 8px; }

.kit { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; }
.kit-box { background: var(--bg-2); border: 1px solid var(--line); border-radius: 12px; padding: 18px; }
.kit-box.wide { grid-column: 1 / -1; }
.kit-box h4 { font-size: 12px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--muted); margin-bottom: 12px; }
.kit-box p { font-size: 14px; line-height: 1.7; color: #d8d5e0; white-space: pre-line; }
.kit-hint { font-size: 11px; color: var(--muted); margin-top: 8px; }
.swatches { display: flex; flex-wrap: wrap; gap: 12px; }
.swatch { display: flex; flex-direction: column; align-items: center; gap: 6px; font-family: 'JetBrains Mono', monospace; font-size: 11px; color: #d8d5e0; }
.swatch span { width: 54px; height: 54px; border-radius: 10px; border: 1px solid rgba(255,255,255,.15); transition: transform .15s; }
.swatch:hover span { transform: scale(1.08); }

.m-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; }
.m-card { display: flex; flex-direction: column; background: var(--bg-2); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; transition: border-color .2s; }
.m-card[hidden], .m-section[hidden] { display: none; }
.m-card:hover { border-color: color-mix(in srgb, var(--accent) 60%, var(--line)); }
.m-prev { position: relative; aspect-ratio: 16 / 10; display: grid; place-items: center; overflow: hidden; background: #131219; }
.m-prev img { width: 100%; height: 100%; object-fit: contain; padding: 18px; }
.m-prev img[style] { padding: 0; }
.m-ico svg { width: 40px; height: 40px; color: var(--accent-2); opacity: .8; }
.m-aa { font-size: 48px; font-weight: 800; color: var(--accent-2); }
.m-new { position: absolute; top: 8px; left: 8px; font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; padding: 3px 7px; border-radius: 5px; background: var(--accent); color: #1a1204; }
.m-body { padding: 14px 16px 4px; flex: 1; min-width: 0; }
.m-body strong { display: block; font-size: 14px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.m-body small { color: var(--muted); font-size: 12px; }
.m-missing { color: #ff8a9b; }
.m-proj { font-size: 10.5px; font-weight: 600; letter-spacing: 1.2px; text-transform: uppercase; color: var(--accent-2); margin-bottom: 2px; }
.m-tags { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 8px; }
.m-tags span { font-size: 11px; padding: 2px 8px; border-radius: 99px; background: #201e29; color: #c9c5d4; }
.m-tags.big span { font-size: 13px; padding: 5px 12px; }
.m-actions { display: flex; flex-wrap: wrap; gap: 6px; padding: 12px 16px 16px; }
.m-btn {
  display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 11px; border-radius: 7px;
  font-size: 12.5px; font-weight: 600; border: 1px solid var(--line); color: #e5e2ee;
}
.m-btn svg { width: 14px; height: 14px; }
.m-btn:hover { border-color: var(--accent); }
.m-btn.primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.m-btn.icon { width: 32px; padding: 0; justify-content: center; color: var(--muted); }
.m-btn.icon:hover { color: #fff; }
.m-btn.del:hover { color: #ff5470; border-color: #ff5470; }

.lightbox { max-width: 860px; }
.lb-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 14px; }
.lb-head h3 { margin: 0; }
.lb-stage { border-radius: 10px; display: grid; place-items: center; min-height: 280px; max-height: 60vh; padding: 24px; border: 1px solid var(--line); }
.lb-stage img { max-height: calc(60vh - 48px); object-fit: contain; }
.lb-stage.dark { background: #050507; }
.lb-stage.light { background: #f4f4f6; }
.lb-bg { display: flex; align-items: center; gap: 6px; margin-top: 10px; font-size: 12px; color: var(--muted); }
.lb-bg button { padding: 4px 10px; border-radius: 6px; border: 1px solid var(--line); font-size: 12px; }
.lb-bg button.on { border-color: var(--accent); color: #fff; }
.lb-audio { display: flex; flex-direction: column; align-items: center; gap: 14px; padding: 30px; border: 1px solid var(--line); border-radius: 10px; color: var(--muted); font-size: 14px; }
.lb-audio svg { width: 54px; height: 54px; color: var(--accent-2); }
.lb-audio audio { width: 100%; }
.lb-note { font-size: 13.5px; color: #d8d5e0; margin-top: 14px; white-space: pre-line; }
.lb-actions { padding: 16px 0 0; }

/* ---------- Ouro da Edição ---------- */
body.gold { --accent: #e3a92b; --accent-2: #ffd36b; }
body.gold .btn { color: #1a1204; }
body.gold .btn.ghost { color: var(--text); }
body.gold .m-btn.primary { color: #1a1204; }
body.gold .topbar.solid { border-bottom-color: #3a2f15; }

.spaces {
  position: absolute; left: 50%; transform: translateX(-50%);
  display: flex; gap: 4px; padding: 4px; border-radius: 99px;
  background: rgba(20,19,26,.8); border: 1px solid var(--line); backdrop-filter: blur(8px);
}
.spaces a { display: flex; align-items: center; gap: 7px; padding: 7px 16px; border-radius: 99px; font-size: 13px; font-weight: 600; color: var(--muted); transition: color .2s, background .2s; }
.spaces a:hover { color: #fff; }
.spaces a.on { background: #8b2cf5; color: #fff; }
.spaces a.on.gold { background: linear-gradient(180deg, #f6c75a, #c98a17); color: #1a1204; }
.spaces .ouro-mark { width: 20px; height: 14px; }

.ouro-brand { gap: 10px; }
.ouro-mark { width: 40px; height: 28px; flex: none; filter: drop-shadow(0 0 10px rgba(244,189,60,.35)); }
.ouro-word {
  font-weight: 800; font-size: 20px; letter-spacing: 1px; display: flex; align-items: baseline; gap: 6px;
  background: linear-gradient(180deg, #fff0b8, #f4bd3c 55%, #c98a17); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.ouro-word small { font-size: 12px; font-weight: 500; letter-spacing: 0; font-style: italic; }

.ouro-hero {
  position: relative; text-align: center; padding: 30px 20px 46px; margin: -10px -56px 36px;
  background: radial-gradient(ellipse at 50% 0%, rgba(227,169,43,.22), transparent 65%);
  border-bottom: 1px solid #2a2416;
  display: flex; flex-direction: column; align-items: center;
}
.ouro-hero-mark .ouro-mark { width: 92px; height: 64px; filter: drop-shadow(0 0 26px rgba(244,189,60,.55)); }
.ouro-hero h1 { font-size: 44px; font-weight: 800; margin: 14px 0 8px; letter-spacing: -1px; }
.ouro-hero h1 span { background: linear-gradient(180deg, #fff0b8, #f4bd3c 55%, #c98a17); -webkit-background-clip: text; background-clip: text; color: transparent; }
.ouro-hero p { color: #d8d5e0; font-size: 15px; max-width: 560px; line-height: 1.6; margin-bottom: 24px; }
.ouro-hero .m-search { width: 100%; max-width: 560px; }

.o-block { margin-bottom: 44px; }
.o-block[hidden] { display: none; }
.o-block-head { margin-bottom: 16px; }
.o-block-head h2 { font-size: 19px; font-weight: 700; }
.o-block-head h2 em { font-style: normal; font-size: 13px; color: var(--muted); font-weight: 500; margin-left: 6px; }
.o-block-head p { font-size: 13px; color: var(--muted); margin-top: 3px; }
.o-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 18px; }
.o-card {
  display: flex; flex-direction: column; border-radius: 14px; overflow: hidden;
  background: var(--bg-2); border: 1px solid var(--line); transition: transform .2s, border-color .2s, box-shadow .2s;
}
.o-card:hover { transform: translateY(-3px); border-color: var(--accent); box-shadow: 0 12px 40px rgba(227,169,43,.15); }
.o-logo { aspect-ratio: 16 / 10; display: grid; place-items: center; background: radial-gradient(circle at 50% 45%, rgba(227,169,43,.16), transparent 60%), #111016; }
.o-logo img { width: 42%; height: 60%; object-fit: contain; }
.o-logo span svg { width: 46px; height: 46px; color: var(--accent-2); }
.o-info { padding: 16px 18px 18px; }
.o-info strong { display: block; font-size: 16px; }
.o-info small { display: block; color: var(--muted); font-size: 12.5px; margin-top: 2px; }
.o-count { display: inline-flex; align-items: center; gap: 4px; margin-top: 12px; font-size: 12.5px; font-weight: 600; color: var(--accent-2); }
.o-count svg { width: 14px; height: 14px; }

.m-search {
  display: flex; align-items: center; gap: 10px; padding: 0 16px; height: 48px; max-width: 520px;
  border: 1px solid var(--line); border-radius: 12px; background: var(--bg-2);
}
.m-search:focus-within { border-color: var(--accent); }
.m-search svg { width: 18px; height: 18px; color: var(--muted); }
.m-search input { flex: 1; background: none; border: 0; outline: none; font-size: 14px; }
.p-admin { display: flex; align-items: center; gap: 8px; align-self: flex-start; }

/* ---------- Modal / toast ---------- */
.modal-bg { position: fixed; inset: 0; background: rgba(0,0,0,.7); z-index: 100; display: grid; place-items: center; padding: 20px; backdrop-filter: blur(3px); }
.modal { width: 100%; max-width: 620px; max-height: 90vh; overflow: auto; background: var(--bg-2); border: 1px solid var(--line); border-radius: 14px; padding: 26px; }
.modal h3 { font-size: 18px; margin-bottom: 20px; }
.modal-foot { display: flex; justify-content: flex-end; gap: 10px; margin-top: 10px; }
#toast {
  position: fixed; bottom: 26px; left: 50%; transform: translateX(-50%) translateY(30px); opacity: 0; z-index: 200;
  background: #1f1b29; border: 1px solid var(--accent); padding: 12px 20px; border-radius: 10px; font-size: 14px;
  transition: all .25s; pointer-events: none;
}
#toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  .player-layout { grid-template-columns: 1fr; }
  .side { position: static; max-height: none; }
  .admin { grid-template-columns: 1fr; }
  .admin-nav { display: flex; overflow-x: auto; gap: 6px; border-right: 0; border-bottom: 1px solid var(--line); padding: 10px 16px; }
  .admin-nav button { width: auto; white-space: nowrap; }
}
@media (max-width: 700px) {
  .topbar { padding: 14px 16px; }
  .brand { font-size: 18px; }
  .hero { padding: 110px 20px 60px; min-height: 420px; }
  .row-head { padding: 0 16px 14px; }
  .carousel { padding-left: 16px; }
  .poster { width: 168px; }
  .wide-card { width: 280px; }
  .poster .ph svg { width: 64px; height: 64px; margin-bottom: 90px; }
  .poster .title { font-size: 15px; }
  .page { padding: 90px 16px 60px; }
  .course-head { grid-template-columns: 1fr; }
  .course-head .poster { width: 180px; }
  .admin-main { padding: 22px 16px 60px; }
  .spaces { position: static; transform: none; order: 3; width: 100%; justify-content: center; margin-top: 10px; }
  .topbar { flex-wrap: wrap; }
  .ouro-hero { margin: -10px -16px 30px; }
  .ouro-hero h1 { font-size: 32px; }
  .p-head { flex-direction: column; align-items: flex-start; }
  .m-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }
  .grid-2 { grid-template-columns: 1fr; }
  .upload { flex-direction: column; align-items: flex-start; }
}


/* =========================================================
   Animações
   ========================================================= */
@keyframes pageIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes wordIn { from { opacity: 0; transform: translateY(0.5em) rotate(2deg); filter: blur(6px); } to { opacity: 1; transform: none; filter: none; } }
@keyframes drift1 { 0%, 100% { transform: translate(0, 0) scale(1); } 50% { transform: translate(-6%, 8%) scale(1.15); } }
@keyframes drift2 { 0%, 100% { transform: translate(0, 0) scale(1.1); } 50% { transform: translate(8%, -6%) scale(.95); } }
@keyframes glowPulse { 0%, 100% { box-shadow: 0 0 22px color-mix(in srgb, var(--accent) 50%, transparent); } 50% { box-shadow: 0 0 40px color-mix(in srgb, var(--accent) 85%, transparent); } }
@keyframes shimmer { 0% { background-position: -150% 0; } 60%, 100% { background-position: 250% 0; } }
@keyframes floaty { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@keyframes sparkle { 0%, 100% { opacity: 0; transform: scale(.4); } 50% { opacity: 1; transform: scale(1); } }
@keyframes growX { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes boxIn { from { opacity: 0; transform: translateY(24px) scale(.97); } to { opacity: 1; transform: none; } }

#app.page-enter > main, #app.page-enter > .admin, #app.page-enter > .login { animation: pageIn .5s cubic-bezier(.2,.7,.2,1) both; }

/* revelar ao rolar */
.reveal { opacity: 0; transform: translateY(26px) scale(.98); transition: opacity .6s ease, transform .7s cubic-bezier(.2,.7,.2,1); transition-delay: var(--d, 0ms); }
.reveal.in { opacity: 1; transform: none; }

/* título palavra por palavra */
h1 .w { display: inline-block; animation: wordIn .7s cubic-bezier(.2,.7,.2,1) both; animation-delay: var(--d, 0ms); }

/* banner: luzes que se movem + luz que segue o mouse */
.hero { overflow: hidden; }
.hero > .hero-content { z-index: 2; }
.hero::after {
  content: ''; position: absolute; inset: -20%; pointer-events: none; z-index: 1;
  background:
    radial-gradient(400px circle at var(--sx, 70%) var(--sy, 40%), color-mix(in srgb, var(--accent) 22%, transparent), transparent 60%),
    radial-gradient(30% 40% at 78% 35%, color-mix(in srgb, var(--accent) 35%, transparent), transparent 70%),
    radial-gradient(25% 35% at 60% 80%, color-mix(in srgb, var(--accent-2) 22%, transparent), transparent 70%);
  animation: drift1 14s ease-in-out infinite;
  mix-blend-mode: screen;
}
.hero p { animation: pageIn .8s .45s both; }
.hero .btn { animation: pageIn .8s .6s both, glowPulse 3s 1.4s ease-in-out infinite; }

/* botões */
.btn { position: relative; overflow: hidden; }
.btn::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,.35) 50%, transparent 70%);
  background-size: 250% 100%; background-position: -150% 0;
}
.btn:hover::after { animation: shimmer 1s ease; }
.btn:active { transform: scale(.97); }

/* cards: inclinação 3D + brilho que segue o mouse */
.poster, .o-card, .wide-card { transform-style: preserve-3d; will-change: transform; }
.poster.tilting, .wide-card.tilting, .o-card.tilting {
  transform: perspective(900px) rotateX(var(--rx, 0)) rotateY(var(--ry, 0)) scale(1.04);
  transition: transform .12s ease-out, box-shadow .25s;
}
.poster::after, .o-card::after, .wide-card::before {
  content: ''; position: absolute; inset: 0; pointer-events: none; z-index: 3; opacity: 0; transition: opacity .3s;
  background: radial-gradient(360px circle at var(--mx, 50%) var(--my, 50%), rgba(255,255,255,.18), transparent 45%);
}
.o-card { position: relative; }
.poster.tilting::after, .o-card.tilting::after, .wide-card.tilting::before { opacity: 1; }
.poster img, .poster .ph { transition: transform .6s cubic-bezier(.2,.7,.2,1); }
.poster:hover img, .poster:hover .ph { transform: scale(1.06); }
.poster .ph svg { animation: floaty 5s ease-in-out infinite; }

/* progresso */
.progress { transform-origin: left; animation: growX .9s cubic-bezier(.2,.7,.2,1) both; animation-delay: .3s; }
.tl-clips { transform-origin: left; animation: growX 1s cubic-bezier(.2,.7,.2,1) both; }
.tl-playhead { transition: left 1s cubic-bezier(.2,.7,.2,1); animation: pageIn .6s .8s both; }
.rendered { animation: boxIn .5s .4s both; }

/* módulos e aulas */
.module-body { animation: none; }
.module.open .module-body .lesson-item { animation: pageIn .4s both; animation-delay: var(--d, 0ms); }
.lesson-item .check { transition: transform .3s cubic-bezier(.3,1.6,.5,1), background .3s; }
.lesson-item.done .check { transform: scale(1.1); }
.module-head .chev { transition: transform .35s cubic-bezier(.3,1.4,.5,1); }

/* login com aurora animada */
.login { position: relative; overflow: hidden; }
.login::before, .login::after {
  content: ''; position: absolute; width: 70vmax; height: 70vmax; border-radius: 50%; filter: blur(80px); opacity: .5; pointer-events: none;
}
.login::before { background: var(--accent); top: -35vmax; right: -20vmax; animation: drift1 16s ease-in-out infinite; }
.login::after { background: color-mix(in srgb, var(--accent-2) 70%, #1b6cff); bottom: -40vmax; left: -25vmax; opacity: .25; animation: drift2 20s ease-in-out infinite; }
.login-box { position: relative; z-index: 1; animation: boxIn .8s cubic-bezier(.2,.7,.2,1) both; }

/* topo: troca de espaço */
.spaces a { transition: color .25s, background .35s, transform .2s; }
.spaces a:hover { transform: translateY(-1px); }

/* Ouro: brilho dourado passando + barra flutuando + faíscas */
.ouro-word, .ouro-hero h1 span {
  background-image: linear-gradient(110deg, #c98a17 0%, #f4bd3c 30%, #fff6d6 45%, #f4bd3c 60%, #c98a17 100%);
  background-size: 250% 100%; animation: shimmer 4.5s ease-in-out infinite;
}
.ouro-hero-mark { position: relative; animation: floaty 4s ease-in-out infinite; }
.ouro-hero-mark::before, .ouro-hero-mark::after {
  content: '✦'; position: absolute; color: #ffe39a; font-size: 14px; animation: sparkle 2.4s ease-in-out infinite;
}
.ouro-hero-mark::before { top: -6px; right: -14px; }
.ouro-hero-mark::after { bottom: 6px; left: -16px; font-size: 10px; animation-delay: 1.2s; }
.ouro-hero { overflow: hidden; }
.ouro-hero::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(420px circle at var(--sx, 50%) var(--sy, 30%), rgba(244,189,60,.12), transparent 60%);
}
.ouro-hero > * { position: relative; z-index: 1; }
.spaces a.on.gold { background-image: linear-gradient(110deg, #c98a17, #f6c75a 40%, #fff2c4 50%, #f6c75a 60%, #c98a17); background-size: 250% 100%; animation: shimmer 5s ease-in-out infinite; }
.o-card:hover .o-logo img { transform: scale(1.08); }
.o-logo img { transition: transform .5s cubic-bezier(.2,.7,.2,1); }
.swatch span { transition: transform .25s cubic-bezier(.3,1.6,.5,1); }

/* modais */
.modal-bg { animation: pageIn .25s ease both; }
.modal { animation: boxIn .35s cubic-bezier(.2,.7,.2,1) both; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- Luz do cursor na página inteira ---------- */
#app { position: relative; z-index: 1; }
.cursor-fx { position: fixed; inset: 0; pointer-events: none; opacity: 0; transition: opacity .6s; }
.cursor-on .cursor-fx { opacity: 1; }
.cursor-dots {
  z-index: 0;
  background-image: radial-gradient(color-mix(in srgb, var(--accent-2) 55%, transparent) 1px, transparent 1.6px);
  background-size: 22px 22px;
  -webkit-mask-image: radial-gradient(260px circle at var(--cx, -999px) var(--cy, -999px), #000 0%, rgba(0,0,0,.35) 45%, transparent 75%);
  mask-image: radial-gradient(260px circle at var(--cx, -999px) var(--cy, -999px), #000 0%, rgba(0,0,0,.35) 45%, transparent 75%);
}
.cursor-glow {
  z-index: 60; mix-blend-mode: screen;
  background: radial-gradient(520px circle at var(--cx, -999px) var(--cy, -999px), color-mix(in srgb, var(--accent) 13%, transparent), transparent 65%);
}

/* bordas que acendem perto do cursor */
.m-card, .module, .kit-box, .panel, .list-row, .side, .timeline { position: relative; }
.poster::before, .o-card::before, .m-card::before, .module::before, .kit-box::before,
.panel::before, .list-row::before, .side::before, .timeline::before {
  content: ''; position: absolute; inset: 0; border-radius: inherit; padding: 1px; pointer-events: none; z-index: 4;
  background: radial-gradient(260px circle at var(--gx, -999px) var(--gy, -999px), var(--accent-2), color-mix(in srgb, var(--accent) 40%, transparent) 40%, transparent 70%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  opacity: 0; transition: opacity .4s;
}
.lit::before { opacity: 1; }
/* fundo dos cards ganha um leve reflexo interno também */
.m-card.lit, .module.lit, .kit-box.lit, .panel.lit, .side.lit, .o-card.lit {
  background-image: radial-gradient(380px circle at var(--gx) var(--gy), color-mix(in srgb, var(--accent) 7%, transparent), transparent 60%);
}


/* =========================================================
   Ajustes: transição do banner, ícones 3D, degradês suaves
   ========================================================= */

/* banner some suavemente no fundo, sem linha dura */
.hero {
  padding-bottom: 120px;
  -webkit-mask-image: linear-gradient(#000 0 74%, transparent 100%);
  mask-image: linear-gradient(#000 0 74%, transparent 100%);
}
.hero.no-img {
  background:
    radial-gradient(ellipse 55% 65% at 76% 34%, color-mix(in srgb, var(--accent) 30%, transparent), transparent 72%),
    radial-gradient(ellipse 45% 55% at 12% 95%, color-mix(in srgb, var(--accent) 10%, transparent), transparent 72%);
}
.hero::before { background: linear-gradient(90deg, rgba(10,10,13,.85) 0%, rgba(10,10,13,.4) 45%, transparent 80%); }
.hero::after {
  background:
    radial-gradient(400px circle at var(--sx, 70%) var(--sy, 40%), color-mix(in srgb, var(--accent) 14%, transparent), transparent 65%),
    radial-gradient(30% 40% at 78% 35%, color-mix(in srgb, var(--accent) 20%, transparent), transparent 75%);
}
.rows { position: relative; margin-top: -70px; }

/* granulado bem fino por cima de tudo: quebra as faixas dos degradês */
body::after {
  content: ''; position: fixed; inset: 0; pointer-events: none; z-index: 80; opacity: .06; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* capa gerada: brilho mais leve e espalhado */
.poster .ph, .wide-card .ph {
  background:
    radial-gradient(ellipse 70% 45% at 50% 34%, color-mix(in srgb, var(--accent) 26%, transparent), transparent 75%),
    radial-gradient(ellipse 90% 40% at 50% 100%, color-mix(in srgb, var(--accent) 10%, transparent), transparent 80%),
    linear-gradient(180deg, #140c22 0%, #0d0b13 55%, #0b0a10 100%);
}
.poster .ph::before, .poster .ph::after { background: repeating-linear-gradient(180deg, rgba(255,255,255,.07) 0 9px, transparent 9px 18px); }
.poster .overlay { background: linear-gradient(0deg, rgba(8,6,14,.92) 25%, rgba(8,6,14,.55) 60%, transparent); }

/* ícone 3D: espessura, pedestal com anel de luz girando e sombra */
@keyframes float3d {
  0%, 100% { transform: translateY(0) rotateY(-24deg) rotateX(10deg); }
  50% { transform: translateY(-12px) rotateY(24deg) rotateX(-4deg); }
}
@keyframes shadow3d { 0%, 100% { transform: scale(1); opacity: .75; } 50% { transform: scale(.7); opacity: .4; } }
@keyframes ringSpin { from { transform: rotateX(74deg) rotateZ(0deg); } to { transform: rotateX(74deg) rotateZ(360deg); } }

.ph-stage {
  position: absolute; left: 50%; top: 35%; width: 150px; height: 170px;
  display: grid; place-items: center; perspective: 520px; transform-style: preserve-3d;
  transform: translate(-50%, -50%) translate(calc(var(--px, 0) * 26px), calc(var(--py, 0) * 20px));
  transition: transform .35s cubic-bezier(.2,.7,.2,1);
}
.poster .ph .ph-stage svg {
  position: relative; z-index: 2; width: 88px; height: 88px; margin: 0 0 30px; color: #fff;
  stroke-width: 1.6;
  animation: float3d 7s ease-in-out infinite;
  filter:
    drop-shadow(0 1px 0 color-mix(in srgb, var(--accent-2) 85%, #fff))
    drop-shadow(0 1.5px 0 color-mix(in srgb, var(--accent) 85%, #fff))
    drop-shadow(0 1.5px 0 var(--accent))
    drop-shadow(0 1.5px 0 color-mix(in srgb, var(--accent) 70%, #000))
    drop-shadow(0 8px 14px rgba(0,0,0,.55))
    drop-shadow(0 0 22px color-mix(in srgb, var(--accent) 70%, transparent));
}
.ph-ring {
  position: absolute; bottom: 8px; width: 120px; height: 120px; border-radius: 50%;
  background: conic-gradient(from 0deg, transparent 0 55%, color-mix(in srgb, var(--accent-2) 90%, #fff) 75%, transparent 90%);
  -webkit-mask: radial-gradient(closest-side, transparent 86%, #000 88%, #000 98%, transparent 100%);
  mask: radial-gradient(closest-side, transparent 86%, #000 88%, #000 98%, transparent 100%);
  box-shadow: 0 0 30px color-mix(in srgb, var(--accent) 35%, transparent);
  animation: ringSpin 5s linear infinite;
}
.ph-ring::after {
  content: ''; position: absolute; inset: 0; border-radius: 50%;
  border: 1px solid color-mix(in srgb, var(--accent-2) 30%, transparent);
}
.ph-shadow {
  position: absolute; bottom: 52px; width: 70px; height: 16px; border-radius: 50%;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--accent) 55%, #000), transparent);
  filter: blur(3px); animation: shadow3d 7s ease-in-out infinite;
}
.poster:hover .ph { transform: none; }
.poster:hover .ph-stage svg { animation-duration: 3.5s; }
@media (max-width: 700px) {
  .ph-stage { transform: translate(-50%, -50%) scale(.72); }
}


/* =========================================================
   Tipografia: Sora (estrutura) + Instrument Serif (destaques)
   A palavra entre [colchetes] vira serifada em itálico.
   ========================================================= */
:root { --serif: 'Instrument Serif', 'Times New Roman', serif; }
body { letter-spacing: -0.01em; }
h1, h2, h3 { letter-spacing: -0.03em; }
.serif, .hl { font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: 0; }

/* banner */
.hero h1 { font-weight: 600; color: #fff; font-size: clamp(34px, 4.2vw, 58px); line-height: 1.02; letter-spacing: -0.045em; max-width: 680px; }
.hero h1 .hl { color: var(--accent-2); font-size: 1.12em; letter-spacing: -0.01em; }
.hero p { font-weight: 300; font-size: 16px; color: #cfcbd9; max-width: 520px; }

/* capas dos cursos */
.poster .kicker { font-weight: 600; font-size: 10px; letter-spacing: .32em; color: #cfc9dc; }
.poster .title { font-weight: 800; font-size: 22px; letter-spacing: -0.02em; line-height: 1; margin-top: 6px; }
.poster .title .hl {
  display: block; text-transform: none; font-size: 1.55em; line-height: .95; color: var(--accent-2);
  text-shadow: 0 0 24px color-mix(in srgb, var(--accent) 70%, transparent);
}
.poster .tag { font-weight: 500; font-size: 8px; letter-spacing: .5em; margin-top: 14px; }
.wc-title .hl { font-size: 1.2em; }

/* títulos de fileira, curso e aula */
.row-head h2 { font-weight: 600; font-size: 18px; color: #fff; letter-spacing: -0.02em; }
.row-head p { font-weight: 300; color: var(--muted); }
.course-head h1, .p-head h1 { font-weight: 700; letter-spacing: -0.04em; }
.lesson-title { font-weight: 600; letter-spacing: -0.03em; }
.brand .hl { font-size: 1.15em; }

/* Ouro */
.ouro-hero h1 { font-weight: 600; letter-spacing: -0.045em; font-size: 54px; }
.ouro-hero h1 span { font-size: 1.15em; padding-right: .08em; }
.ouro-word small { font-family: var(--serif); font-size: 15px; }


/* =========================================================
   Capas com foto: roxo como efeito + parallax
   ========================================================= */
.poster img {
  transform: translate3d(calc(var(--px, 0) * -22px), calc(var(--py, 0) * -22px + var(--sp, 0px)), 0) scale(1.14);
  transition: transform .5s cubic-bezier(.2,.7,.2,1), filter .6s;
  filter: saturate(.9) contrast(1.04);
}
.poster.tilting img { transition: transform .12s ease-out, filter .6s; }
.poster:hover img { transform: translate3d(calc(var(--px, 0) * -22px), calc(var(--py, 0) * -22px + var(--sp, 0px)), 0) scale(1.18); filter: saturate(1.05) contrast(1.06); }

/* camada roxa: tinge a foto e se recolhe no hover, revelando as cores reais */
.poster .tint {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    radial-gradient(120% 70% at 50% 30%, color-mix(in srgb, var(--accent) 55%, transparent), transparent 70%),
    linear-gradient(180deg, color-mix(in srgb, var(--accent) 45%, #000) 0%, color-mix(in srgb, var(--accent) 30%, #000) 55%, #08060e 100%);
  mix-blend-mode: color;
  opacity: .62;
  transition: opacity .7s cubic-bezier(.2,.7,.2,1);
}
.poster .tint::after {
  /* brilho lilás de baixo pra cima, como luz de neon refletindo */
  content: ''; position: absolute; inset: 0; mix-blend-mode: soft-light;
  background: linear-gradient(0deg, color-mix(in srgb, var(--accent-2) 70%, transparent), transparent 55%);
  opacity: .6;
}
.poster:hover .tint { opacity: .12; }

/* texto da capa anda no sentido contrário da foto: sensação de profundidade */
.poster .overlay { z-index: 2; transform: translate3d(calc(var(--px, 0) * 10px), calc(var(--py, 0) * 8px), 0); transition: transform .5s cubic-bezier(.2,.7,.2,1); }
.poster.tilting .overlay { transition: transform .12s ease-out; }
.poster .progress, .poster .rendered, .poster .lock { z-index: 3; }


/* =========================================================
   Ouro da Edição: estrutura nova + degradê sem corte
   Luz do mouse mais contida
   ========================================================= */
.ouro-hero {
  border-bottom: 0; overflow: visible; margin: -10px -56px 20px; padding: 26px 20px 50px;
  background: radial-gradient(ellipse 45% 60% at 50% 38%, rgba(227,169,43,.13), rgba(227,169,43,.04) 50%, transparent 75%);
}
.ouro-hero::after { display: none; }
.ouro-hero h1 { font-size: 46px; margin: 10px 0 6px; }
.ouro-hero p { margin-bottom: 20px; }
.ouro-hero-mark .ouro-mark { width: 72px; height: 50px; }

.row-flex { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; }
.row-actions { display: flex; gap: 8px; }

.shelf-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; }
.shelf {
  position: relative; display: flex; flex-direction: column; gap: 4px; padding: 20px;
  background: var(--bg-2); border: 1px solid var(--line); border-radius: 14px;
  transition: transform .2s, border-color .2s;
}
.shelf:hover { transform: translateY(-3px); border-color: color-mix(in srgb, var(--accent) 60%, var(--line)); }
.shelf-ico {
  width: 42px; height: 42px; border-radius: 11px; display: grid; place-items: center; margin-bottom: 10px;
  background: color-mix(in srgb, var(--accent) 14%, transparent); color: var(--accent-2);
}
.shelf-ico svg { width: 22px; height: 22px; }
.shelf-ico.big { width: 64px; height: 64px; border-radius: 16px; margin: 0; }
.shelf-ico.big svg { width: 32px; height: 32px; }
.shelf strong { font-size: 16px; font-weight: 600; letter-spacing: -.02em; }
.shelf small { color: var(--muted); font-size: 12.5px; }
.shelf-subs { display: flex; flex-wrap: wrap; gap: 5px; margin: 12px 0 2px; }
.shelf-subs span { font-size: 11px; padding: 3px 8px; border-radius: 99px; background: #1e1c25; color: #bdb8c9; }
.shelf .o-count { margin-top: 10px; }

.shelf-head { display: flex; align-items: center; gap: 18px; margin-bottom: 22px; }
.shelf-head .grow { flex: 1; }
.shelf-head h1 { font-size: 30px; font-weight: 700; letter-spacing: -.04em; }
.shelf-head p { color: var(--muted); font-size: 13.5px; margin-top: 2px; }
.shelf-bar { position: sticky; top: 70px; z-index: 5; display: flex; flex-direction: column; gap: 12px; padding: 12px 0 16px; margin-bottom: 18px; background: linear-gradient(var(--bg) 75%, transparent); }
.shelf-bar .m-search { max-width: 420px; height: 42px; }
.m-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.m-chips button { padding: 7px 13px; border-radius: 99px; font-size: 12.5px; border: 1px solid var(--line); background: var(--bg-2); color: #d8d5e0; }
.m-chips button em { font-style: normal; color: var(--muted); margin-left: 3px; }
.m-chips button.dim { opacity: .55; }
.m-chips button.on { background: var(--accent); border-color: var(--accent); color: #1a1204; opacity: 1; }
.m-chips button.on em { color: inherit; }
.m-section .o-block-head { margin-bottom: 12px; }
.m-section.o-block { margin-bottom: 30px; }
.m-empty-slot {
  padding: 18px; border: 1px dashed #34313d; border-radius: 12px; color: var(--muted); font-size: 13px;
}
.m-empty-slot button { color: var(--accent-2); text-decoration: underline; font-size: 13px; }

/* luz do mouse: raio menor e mais suave */
.cursor-glow { background: radial-gradient(300px circle at var(--cx, -999px) var(--cy, -999px), color-mix(in srgb, var(--accent) 9%, transparent), transparent 70%); }
.cursor-dots {
  -webkit-mask-image: radial-gradient(160px circle at var(--cx, -999px) var(--cy, -999px), #000 0%, rgba(0,0,0,.3) 50%, transparent 80%);
  mask-image: radial-gradient(160px circle at var(--cx, -999px) var(--cy, -999px), #000 0%, rgba(0,0,0,.3) 50%, transparent 80%);
  opacity: .7;
}
.poster::before, .o-card::before, .m-card::before, .module::before, .kit-box::before,
.panel::before, .list-row::before, .side::before, .timeline::before {
  background: radial-gradient(170px circle at var(--gx, -999px) var(--gy, -999px), var(--accent-2), color-mix(in srgb, var(--accent) 35%, transparent) 40%, transparent 70%);
}
.m-card.lit, .module.lit, .kit-box.lit, .panel.lit, .side.lit, .o-card.lit {
  background-image: radial-gradient(220px circle at var(--gx) var(--gy), color-mix(in srgb, var(--accent) 5%, transparent), transparent 65%);
}
.hero::after {
  background:
    radial-gradient(260px circle at var(--sx, 70%) var(--sy, 40%), color-mix(in srgb, var(--accent) 10%, transparent), transparent 65%),
    radial-gradient(30% 40% at 78% 35%, color-mix(in srgb, var(--accent) 20%, transparent), transparent 75%);
}
@media (max-width: 700px) {
  .ouro-hero { margin: -10px -16px 16px; }
  .row-flex { flex-direction: column; align-items: flex-start; }
}

.shelf::before { content: ''; position: absolute; inset: 0; border-radius: inherit; padding: 1px; pointer-events: none; background: radial-gradient(170px circle at var(--gx, -999px) var(--gy, -999px), var(--accent-2), transparent 70%); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; opacity: 0; transition: opacity .4s; }


/* =========================================================
   Parallax em camadas: fundo quase parado, personagem na frente
   ========================================================= */
.poster img.bg {
  transform: translate3d(calc(var(--px, 0) * -8px), calc(var(--py, 0) * -8px + var(--sp, 0px) * .5), 0) scale(1.08);
}
.poster:hover img.bg { transform: translate3d(calc(var(--px, 0) * -8px), calc(var(--py, 0) * -8px + var(--sp, 0px) * .5), 0) scale(1.1); }

/* com recorte: o fundo mal se mexe e fica levemente desfocado; quem anda é o personagem */
.poster.layered img.bg {
  transform: translate3d(calc(var(--px, 0) * -3px), calc(var(--py, 0) * -3px + var(--sp, 0px) * .2), 0) scale(1.05);
  filter: saturate(.85) brightness(.88) blur(.4px);
}
.poster.layered:hover img.bg { transform: translate3d(calc(var(--px, 0) * -3px), calc(var(--py, 0) * -3px + var(--sp, 0px) * .2), 0) scale(1.06); filter: saturate(1) brightness(.92) blur(1px); }
.poster img.cut {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none;
  transform-origin: 50% 75%;
  transform: translate3d(calc(var(--px, 0) * 10px), calc(var(--py, 0) * 7px + var(--sp, 0px) * -.35), 0) scale(1.07);
  filter: drop-shadow(0 12px 20px rgba(0,0,0,.45));
  transition: transform .5s cubic-bezier(.2,.7,.2,1), filter .6s;
}
.poster.tilting img.cut { transition: transform .12s ease-out, filter .6s; }
.poster:hover img.cut { transform: translate3d(calc(var(--px, 0) * 10px), calc(var(--py, 0) * 7px + var(--sp, 0px) * -.35), 0) scale(1.11); filter: drop-shadow(0 16px 26px rgba(0,0,0,.55)) saturate(1.05); }


/* =========================================================
   Setas das fileiras: botões flutuantes, sem faixa escura por cima das capas
   ========================================================= */
.car-arrow {
  top: 50%; bottom: auto; width: 44px; height: 44px; margin-top: -22px; border-radius: 50%;
  background: rgba(16, 14, 22, .72); border: 1px solid rgba(255,255,255,.12);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 8px 24px rgba(0,0,0,.45);
  opacity: 0; pointer-events: none; transition: opacity .25s, transform .2s, background .2s;
}
.car-arrow.left { left: 14px; background: rgba(16, 14, 22, .72); }
.car-arrow.right { right: 14px; background: rgba(16, 14, 22, .72); }
.car-arrow svg { width: 20px; height: 20px; }
.car-arrow:hover { background: var(--accent); transform: scale(1.08); }
.carousel-wrap.can-left:hover .car-arrow.left,
.carousel-wrap.can-right:hover .car-arrow.right { opacity: 1; pointer-events: auto; }
.carousel-wrap:hover .car-arrow { opacity: 0; }
.carousel-wrap.can-left:hover .car-arrow.left, .carousel-wrap.can-right:hover .car-arrow.right { opacity: 1; }


/* Escurecido das capas (bordas + base para o título): fica numa camada presa ao card,
   por cima do fundo e do personagem, então acompanha o zoom e nunca "descola" da imagem */
.poster .shade {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    radial-gradient(140% 95% at 50% 32%, transparent 58%, rgba(8, 6, 14, .5) 100%),
    linear-gradient(0deg, rgba(8, 6, 14, .96) 0%, rgba(8, 6, 14, .72) 24%, rgba(8, 6, 14, .25) 44%, transparent 58%);
}
.poster .overlay { background: none; }

/* Parallax em camadas mais contido: fundo e personagem com o mesmo zoom e o mesmo centro;
   só um deslocamento pequeno entre eles, para imperfeições do recorte não aparecerem */
.poster.layered img.bg { transform: translate3d(calc(var(--px, 0) * -2px), calc(var(--py, 0) * -2px + var(--sp, 0px) * .15), 0) scale(1.06); }
.poster.layered:hover img.bg { transform: translate3d(calc(var(--px, 0) * -2px), calc(var(--py, 0) * -2px + var(--sp, 0px) * .15), 0) scale(1.09); filter: saturate(1) brightness(.9) blur(.8px); }
.poster img.cut { transform-origin: 50% 50%; transform: translate3d(calc(var(--px, 0) * 4px), calc(var(--py, 0) * 3px + var(--sp, 0px) * -.15), 0) scale(1.06); }
.poster:hover img.cut { transform: translate3d(calc(var(--px, 0) * 4px), calc(var(--py, 0) * 3px + var(--sp, 0px) * -.15), 0) scale(1.09); }
