/* Letstudy Demos — client UI (light). Αυστηρό, επαγγελματικό, χωρίς στρογγυλεμένες γωνίες. */
:root {
  --bg: #f4f6fa;
  --bg-2: #ffffff;
  --surface: #ffffff;
  --surface-2: #eef1f7;
  --line: #e1e5ee;
  --line-2: #c9d0de;
  --text: #1b2240;
  --text-2: #3d4766;
  --muted: #5f6987;
  --dim: #8b93ab;
  --teal: #00d4b4;
  --teal-hover: #00bfa2;
  --teal-ink: #00806e;
  --teal-soft: #e3f8f4;
  --coral: #fc6c4d;
  --coral-ink: #c8462b;
  --navy: #2c3659;
  --navy-d: #1d2440;
  --topbar: 64px;
  --side: 280px;
  --shadow: 0 1px 2px rgba(27,34,64,.06), 0 4px 14px rgba(27,34,64,.06);
  --shadow-lg: 0 18px 44px rgba(27,34,64,.16);
  --font: "DM Sans", "Roboto", system-ui, -apple-system, "Segoe UI", sans-serif;
}
[hidden] { display: none !important; }
*, *::before, *::after { box-sizing: border-box; border-radius: 0 !important; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--font); font-size: 15px; line-height: 1.5; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
img { max-width: 100%; display: block; }
:focus-visible { outline: 2px solid var(--teal-ink); outline-offset: 2px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.ico16, .filters-toggle svg { width: 16px; height: 16px; flex: none; }

/* ---------- Brand ---------- */
.brand { display: inline-flex; align-items: center; gap: 12px; }
.brand svg { width: 30px; height: 28px; flex: none; }
.brand-name { font-weight: 700; font-size: 19px; letter-spacing: -.01em; color: var(--navy); }
.brand-sep { width: 1px; height: 22px; background: var(--line-2); }
.brand-tag { font-size: 12px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--teal-ink); }

/* ---------- Topbar ---------- */
.topbar {
  position: fixed; inset: 0 0 auto 0; z-index: 50; height: calc(var(--topbar) + env(safe-area-inset-top, 0px));
  padding: env(safe-area-inset-top, 0px) 28px 0; display: flex; align-items: center; gap: 32px;
  background: rgba(255,255,255,.96); border-bottom: 1px solid var(--line); backdrop-filter: blur(8px);
}
.topnav { display: flex; gap: 4px; height: 100%; }
.topnav a { display: flex; align-items: center; padding: 0 14px; color: var(--muted); font-weight: 500; font-size: 14px; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.topnav a:hover { color: var(--text); }
.topnav a.active { color: var(--text); border-bottom-color: var(--teal); font-weight: 600; }
.topbar .spacer { flex: 1; }
.account { display: flex; align-items: center; gap: 14px; font-size: 13px; color: var(--muted); }
.account strong { color: var(--text); font-weight: 600; display: block; font-size: 14px; }
.account .who { text-align: right; line-height: 1.25; }
.btn-ghost { background: var(--surface); border: 1px solid var(--line-2); padding: 7px 14px; font-size: 13px; color: var(--text-2); display: inline-flex; gap: 6px; align-items: center; }
.btn-ghost:hover { border-color: var(--navy); color: var(--text); }
.filters-toggle { display: none !important; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; border: 1px solid transparent; padding: 12px 22px; font-weight: 600; font-size: 15px; letter-spacing: .01em; transition: background .15s, border-color .15s, color .15s; }
.btn svg { width: 18px; height: 18px; }
.btn-primary { background: var(--teal); color: #04221d; }
.btn-primary:hover { background: var(--teal-hover); }
.btn-secondary { background: var(--surface); border-color: var(--line-2); color: var(--text); }
.btn-secondary:hover { border-color: var(--navy); }
.btn-sm { padding: 8px 14px; font-size: 13px; }

/* ---------- Layout ---------- */
.shell { display: flex; padding-top: calc(var(--topbar) + env(safe-area-inset-top, 0px)); min-height: 100vh;
  background: linear-gradient(90deg, var(--bg-2) calc(var(--side) - 1px), var(--line) calc(var(--side) - 1px), var(--line) var(--side), transparent var(--side)); }
.sidebar {
  position: sticky; top: calc(var(--topbar) + env(safe-area-inset-top, 0px)); align-self: flex-start;
  width: var(--side); flex: none; height: calc(100vh - var(--topbar) - env(safe-area-inset-top, 0px)); overflow-y: auto;
  background: var(--bg-2); border-right: 1px solid var(--line); padding: 20px 20px 40px;
  scrollbar-width: thin; scrollbar-color: var(--line-2) transparent;
}
.main { flex: 1; min-width: 0; padding-bottom: 60px; }

/* ---------- Sidebar ---------- */
.side-nav { display: grid; gap: 2px; margin: 0 -20px 18px; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.side-nav a { display: flex; align-items: center; justify-content: space-between; padding: 9px 20px; font-weight: 500; color: var(--text-2); border-left: 3px solid transparent; }
.side-nav a:hover { background: var(--surface-2); color: var(--text); }
.side-nav a.active { background: var(--teal-soft); border-left-color: var(--teal); color: var(--text); font-weight: 600; }
.side-nav a span { font-size: 12px; color: var(--dim); font-variant-numeric: tabular-nums; }
.search { position: relative; margin-bottom: 18px; }
.search svg { position: absolute; left: 12px; top: 50%; width: 16px; height: 16px; transform: translateY(-50%); color: var(--dim); }
.search input { width: 100%; padding: 11px 12px 11px 38px; background: var(--bg); border: 1px solid var(--line-2); color: var(--text); font: inherit; font-size: 14px; }
.search input:focus { outline: none; border-color: var(--teal-ink); background: #fff; box-shadow: inset 3px 0 0 var(--teal); }
.fgroup { border-top: 1px solid var(--line); padding: 14px 0 8px; }
.fgroup h4 { margin: 0 0 8px; font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); display: flex; justify-content: space-between; align-items: center; }
.fgroup h4 a { letter-spacing: 0; text-transform: none; font-weight: 600; color: var(--teal-ink); }
.fopt { display: flex; align-items: center; gap: 10px; padding: 6px 0; cursor: pointer; font-size: 14px; color: var(--text-2); user-select: none; position: relative; }
.fopt:hover { color: var(--text); }
.fopt input { position: absolute; opacity: 0; pointer-events: none; }
.fopt .box { width: 16px; height: 16px; border: 1px solid var(--line-2); flex: none; display: grid; place-items: center; background: #fff; }
.fopt input[type=radio] + .box { border-radius: 50% !important; }
.fopt input:checked + .box { background: var(--navy); border-color: var(--navy); }
.fopt input[type=checkbox]:checked + .box::after { content: ""; width: 8px; height: 4px; border: 2px solid #fff; border-top: 0; border-right: 0; transform: rotate(-45deg) translate(1px,-1px); }
.fopt input[type=radio]:checked + .box::after { content: ""; width: 6px; height: 6px; background: #fff; border-radius: 50% !important; }
.fopt input:checked ~ .lbl { color: var(--text); font-weight: 600; }
.fopt input:focus-visible + .box { outline: 2px solid var(--teal-ink); outline-offset: 2px; }
.fopt .lbl { flex: 1; }
.fopt .cnt { font-size: 12px; color: var(--dim); font-variant-numeric: tabular-nums; min-width: 14px; text-align: right; }
.fopt.zero { opacity: .45; }
.info-btn { background: none; border: 0; padding: 2px; color: var(--dim); display: inline-flex; }
.info-btn:hover { color: var(--teal-ink); }
.info-btn svg { width: 15px; height: 15px; }
.clear-filters { margin-top: 14px; width: 100%; justify-content: center; }
.side-empty { font-size: 13px; color: var(--dim); padding: 4px 0 10px; }
.side-note { margin-top: 24px; padding: 14px; border: 1px solid var(--line); border-left: 3px solid var(--coral); background: var(--bg); font-size: 13px; color: var(--muted); }
.side-note strong { color: var(--text); display: block; margin-bottom: 4px; }
.side-note a { color: var(--teal-ink); font-weight: 600; }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 440px; display: flex; align-items: flex-end; overflow: hidden; border-bottom: 1px solid var(--line); background: #fff; }
.hero-bg { position: absolute; inset: 0 0 0 30%; background-size: cover; background-position: center; }
.hero-bg.placeholder { inset: 0; background: radial-gradient(900px 420px at 88% 15%, rgba(0,212,180,.20), transparent 60%), radial-gradient(700px 380px at 75% 95%, rgba(252,108,77,.14), transparent 60%), linear-gradient(135deg, #ffffff, #eef2f8); }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, #fff 0%, #fff 30%, rgba(255,255,255,.88) 45%, rgba(255,255,255,.15) 75%, rgba(255,255,255,0) 100%); }
.hero-content { position: relative; z-index: 1; padding: 52px 48px 48px; max-width: 700px; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-size: 12px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--teal-ink); margin-bottom: 14px; }
.eyebrow::before { content: ""; width: 26px; height: 2px; background: var(--teal); }
.hero h1 { font-size: clamp(30px, 4vw, 46px); line-height: 1.08; margin: 0 0 14px; font-weight: 700; letter-spacing: -.02em; color: var(--navy-d); }
.hero p { font-size: 17px; color: var(--text-2); margin: 0 0 22px; max-width: 580px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.meta-line { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; margin-bottom: 18px; font-size: 13px; color: var(--muted); }

/* ---------- Welcome ---------- */
.welcome { padding: 28px 48px 6px; display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; flex-wrap: wrap; }
.welcome h2 { margin: 0; font-size: 22px; font-weight: 700; letter-spacing: -.01em; color: var(--navy-d); }
.welcome p { margin: 4px 0 0; color: var(--muted); font-size: 14px; }
.stats-mini { display: flex; gap: 0; border: 1px solid var(--line); background: #fff; }
.stats-mini div { text-align: left; padding: 10px 18px; border-right: 1px solid var(--line); }
.stats-mini div:last-child { border-right: 0; }
.stats-mini b { display: block; font-size: 20px; font-weight: 700; color: var(--navy-d); font-variant-numeric: tabular-nums; }
.stats-mini span { font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); font-weight: 700; }

/* ---------- Rows ---------- */
.row { padding: 26px 0 4px; }
.row-head { display: flex; align-items: center; justify-content: space-between; padding: 0 48px; margin-bottom: 12px; }
.row-head h3 { margin: 0; font-size: 18px; font-weight: 700; color: var(--navy-d); display: flex; align-items: center; gap: 10px; }
.row-head h3::before { content: ""; width: 3px; height: 18px; background: var(--teal); }
.row-arrows { display: flex; gap: 6px; }
.row-arrows button { width: 34px; height: 34px; border: 1px solid var(--line-2); background: #fff; display: grid; place-items: center; color: var(--muted); }
.row-arrows button:hover { border-color: var(--navy); color: var(--navy); }
.row-arrows svg { width: 16px; height: 16px; }
.track { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(270px, 300px); gap: 16px; overflow-x: auto; padding: 6px 48px 22px; scroll-snap-type: x proximity; scroll-padding: 0 48px; scrollbar-width: none; }
.track::-webkit-scrollbar { display: none; }
.track .card { scroll-snap-align: start; }

/* ---------- Card ---------- */
.card { position: relative; display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease; cursor: pointer; text-align: left; padding: 0; width: 100%; color: var(--text); }
.card:hover, .card:focus-visible { transform: translateY(-4px); border-color: var(--teal); box-shadow: var(--shadow-lg); z-index: 2; outline: none; }
.thumb { position: relative; aspect-ratio: 16/9; overflow: hidden; background: var(--surface-2); }
.thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.card:hover .thumb img { transform: scale(1.04); }
.thumb .ph { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: flex-end; padding: 16px; overflow: hidden; }
.ph-scorm { background: linear-gradient(135deg, #d5f5ef 0%, #f3f6fb 75%); }
.ph-h5p { background: linear-gradient(135deg, #ffe1d9 0%, #f3f6fb 75%); }
.ph-video { background: linear-gradient(135deg, #dde2f0 0%, #f3f6fb 75%); }
.ph .ph-type { font-size: 44px; font-weight: 800; letter-spacing: -.03em; color: var(--navy); opacity: .12; line-height: 1; position: absolute; top: 12px; right: 14px; }
.ph::before { content: ""; position: absolute; left: 0; top: 0; width: 4px; height: 100%; background: var(--teal); }
.ph-h5p::before { background: var(--coral); }
.ph-video::before { background: var(--navy); }
.play-overlay { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(27,34,64,.28); opacity: 0; transition: opacity .2s; }
.play-overlay span { width: 54px; height: 54px; background: var(--teal); display: grid; place-items: center; color: #04221d; }
.play-overlay svg { width: 22px; height: 22px; margin-left: 3px; }
.card:hover .play-overlay { opacity: 1; }
.badge { display: inline-flex; align-items: center; padding: 3px 8px; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; background: #fff; border: 1px solid var(--line-2); color: var(--text); }
.badge-scorm { border-color: var(--teal-ink); color: var(--teal-ink); }
.badge-h5p { border-color: var(--coral-ink); color: var(--coral-ink); }
.badge-video { border-color: var(--navy); color: var(--navy); }
.thumb .badge { position: absolute; top: 10px; left: 10px; }
.seen-flag { position: absolute; bottom: 0; left: 0; right: 0; height: 3px; background: var(--teal); }
.card-body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.card-title { font-weight: 700; font-size: 15px; line-height: 1.3; margin: 0; color: var(--navy-d); }
.card-sum { font-size: 13px; color: var(--muted); margin: 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card-foot { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-top: auto; padding-top: 8px; font-size: 12px; color: var(--dim); }
.card-foot > span:last-child { white-space: nowrap; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { font-size: 11px; padding: 2px 7px; border: 1px solid var(--line-2); color: var(--text-2); background: #fff; white-space: nowrap; }
.chip-btn { cursor: pointer; }
.chip-btn:hover { border-color: var(--teal-ink); color: var(--teal-ink); }

/* ---------- Results ---------- */
.results { padding: 28px 48px; }
.results-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; margin-bottom: 14px; flex-wrap: wrap; }
.results-head h2 { margin: 0; font-size: 22px; font-weight: 700; color: var(--navy-d); }
.results-head p { margin: 0; color: var(--muted); font-size: 14px; }
.active-filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.active-filters button { background: var(--navy); border: 1px solid var(--navy); padding: 5px 10px; font-size: 12px; color: #fff; display: inline-flex; gap: 8px; align-items: center; }
.active-filters button:hover { background: var(--coral-ink); border-color: var(--coral-ink); }
.active-filters button span { opacity: .7; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 18px; }
.empty { padding: 60px 20px; text-align: center; border: 1px dashed var(--line-2); color: var(--muted); background: #fff; }
.empty h3 { color: var(--text); margin: 0 0 6px; }

/* ---------- Modal ---------- */
.modal { position: fixed; inset: 0; z-index: 100; display: flex; align-items: flex-start; justify-content: center; padding: 6vh 16px 16px; background: rgba(27,34,64,.55); overflow-y: auto; backdrop-filter: blur(3px); }
.modal-box { width: min(880px, 100%); background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-lg); position: relative; animation: pop .18s ease; }
@keyframes pop { from { transform: translateY(12px); opacity: 0; } to { transform: none; opacity: 1; } }
.modal-media { position: relative; aspect-ratio: 16/7; overflow: hidden; background: var(--surface-2); }
.modal-media:has(.ph) { aspect-ratio: 16/5; }
.modal-media img { width: 100%; height: 100%; object-fit: cover; }
.modal-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, #fff 2%, transparent 55%); }
.modal-media .ph { position: absolute; inset: 0; }
.modal-close { position: absolute; top: 12px; right: 12px; z-index: 3; width: 38px; height: 38px; background: #fff; border: 1px solid var(--line-2); display: grid; place-items: center; color: var(--text); }
.modal-close:hover { border-color: var(--navy); }
.modal-close svg { width: 18px; height: 18px; }
.modal-body { padding: 0 36px 32px; margin-top: -56px; position: relative; z-index: 2; }
.modal-body h2 { font-size: 30px; margin: 10px 0 12px; letter-spacing: -.02em; line-height: 1.15; color: var(--navy-d); }
.modal-cols { display: grid; grid-template-columns: 1.4fr 1fr; gap: 32px; margin-top: 22px; }
.modal-cols p { margin: 0 0 12px; color: var(--text-2); }
.kv { font-size: 13px; color: var(--muted); display: grid; gap: 8px; align-content: start; }
.kv b { color: var(--text); font-weight: 600; }
.txt-2 { color: var(--text-2); }
.txt-teal { color: var(--teal-ink); }

/* ---------- Tech explainer ---------- */
.tech-list { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); margin-top: 10px; }
.tech { background: #fff; }
.tech summary { list-style: none; padding: 12px 14px; display: flex; gap: 12px; align-items: flex-start; cursor: pointer; }
.tech summary:hover { background: var(--bg); }
.tech summary::-webkit-details-marker { display: none; }
.tech summary .t-name { font-weight: 700; font-size: 14px; display: block; color: var(--navy-d); }
.tech summary .t-sum { font-size: 13px; color: var(--muted); display: block; margin-top: 2px; }
.tech summary .t-ico { margin-left: auto; color: var(--dim); transition: transform .2s; flex: none; }
.tech[open] summary .t-ico { transform: rotate(45deg); color: var(--teal-ink); }
.tech summary .t-mark { width: 3px; align-self: stretch; background: var(--teal); flex: none; }
.tech .t-body { padding: 0 14px 14px 29px; font-size: 14px; color: var(--text-2); white-space: pre-line; }
.section-title { font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin: 0 0 8px; }

/* ---------- Player ---------- */
.player-shell { padding-top: calc(var(--topbar) + env(safe-area-inset-top, 0px)); display: grid; grid-template-columns: minmax(0,1fr) 380px; min-height: 100vh; }
.player-main { background: var(--surface-2); display: flex; flex-direction: column; min-width: 0; }
.player-bar { display: flex; align-items: center; gap: 16px; padding: 12px 24px; border-bottom: 1px solid var(--line); background: #fff; }
.player-bar a.back { display: inline-flex; gap: 8px; align-items: center; color: var(--muted); font-size: 14px; }
.player-bar a.back:hover { color: var(--text); }
.player-bar a.back svg { width: 16px; height: 16px; }
.player-bar .title { font-weight: 700; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--navy-d); }
.player-stage { flex: 1; display: flex; align-items: center; justify-content: center; padding: 24px; min-height: 0; }
.stage-frame { width: 100%; height: 100%; min-height: calc(100vh - var(--topbar) - 120px); background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); position: relative; }
.stage-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; display: block; }
.stage-video { width: 100%; max-width: 1280px; aspect-ratio: 16/9; position: relative; background: #000; box-shadow: var(--shadow-lg); }
.stage-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.stage-h5p { width: 100%; max-width: 1100px; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); align-self: flex-start; }
.stage-h5p iframe { display: block; }
.player-side { background: #fff; border-left: 1px solid var(--line); padding: 26px 26px 40px; overflow-y: auto; max-height: calc(100vh - var(--topbar)); position: sticky; top: var(--topbar); }
.player-side h1 { font-size: 24px; line-height: 1.2; margin: 12px 0 10px; letter-spacing: -.015em; color: var(--navy-d); }
.player-side .lead { color: var(--text-2); margin: 0 0 18px; }
.player-side .details { color: var(--muted); font-size: 14px; white-space: pre-line; margin: 0 0 18px; }
.side-block { border-top: 1px solid var(--line); padding-top: 18px; margin-top: 18px; }
.preview-banner { background: var(--coral); color: #2a0d05; padding: 8px 24px; font-weight: 600; font-size: 13px; }
.related { padding: 8px 0 30px; border-top: 1px solid var(--line); background: var(--bg); grid-column: 1 / -1; }

/* ---------- Technologies page ---------- */
.page { padding: 36px 48px 60px; max-width: 1200px; }
.page h1 { font-size: 34px; margin: 0 0 8px; letter-spacing: -.02em; color: var(--navy-d); }
.page .intro { color: var(--muted); max-width: 720px; margin: 0 0 28px; font-size: 16px; }
.tech-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 16px; }
.tech-card { background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); padding: 24px 24px 24px 27px; position: relative; scroll-margin-top: calc(var(--topbar) + 16px); }
.tech-card::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--teal); }
.tech-card:target { border-color: var(--teal); box-shadow: var(--shadow-lg); }
.tech-card h3 { margin: 0 0 6px; font-size: 18px; color: var(--navy-d); padding-right: 90px; }
.tech-card .s { color: var(--teal-ink); font-size: 14px; font-weight: 500; margin: 0 0 12px; }
.tech-card .d { color: var(--text-2); font-size: 14px; white-space: pre-line; margin: 0; }
.tech-card .n { position: absolute; top: 24px; right: 20px; font-size: 12px; color: var(--teal-ink); font-weight: 600; }
.tech-links a { display: block; padding: 6px 0; font-size: 14px; color: var(--text-2); }
.tech-links a:hover { color: var(--teal-ink); }

/* ---------- Login ---------- */
.auth { min-height: 100vh; display: grid; grid-template-columns: 1.1fr 1fr; }
.auth-art { position: relative; overflow: hidden; color: #fff; background: radial-gradient(900px 500px at 20% 10%, rgba(0,212,180,.25), transparent 60%), radial-gradient(700px 500px at 90% 100%, rgba(252,108,77,.22), transparent 60%), linear-gradient(160deg, #2c3659, #1d2440 70%); padding: 48px; display: flex; flex-direction: column; justify-content: space-between; }
.auth-art .brand-name { color: #fff; }
.auth-art .brand-tag { color: var(--teal); }
.auth-art .brand-sep { background: rgba(255,255,255,.25); }
.auth-art .eyebrow { color: var(--teal); }
.auth-art .grid-lines { position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px); background-size: 56px 56px; }
.auth-art > * { position: relative; }
.auth-art h1 { font-size: clamp(32px, 3.4vw, 50px); line-height: 1.08; letter-spacing: -.025em; margin: 0 0 16px; max-width: 560px; }
.auth-art h1 em { font-style: normal; color: var(--teal); }
.auth-art p { color: #d3d9ea; font-size: 17px; max-width: 520px; margin: 0; }
.auth-feats { display: flex; border: 1px solid rgba(255,255,255,.25); width: max-content; max-width: 100%; flex-wrap: wrap; }
.auth-feats span { padding: 10px 16px; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; font-weight: 700; color: #d3d9ea; border-right: 1px solid rgba(255,255,255,.25); }
.auth-feats span:last-child { border-right: 0; }
.auth-form { display: flex; align-items: center; justify-content: center; padding: 48px 32px; background: #fff; }
.auth-card { width: 100%; max-width: 400px; }
.auth-card h2 { font-size: 26px; margin: 0 0 6px; letter-spacing: -.015em; color: var(--navy-d); }
.auth-card .sub { color: var(--muted); margin: 0 0 28px; }
.field { margin-bottom: 18px; }
.field label { display: block; font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.field input { width: 100%; padding: 13px 14px; background: var(--bg); border: 1px solid var(--line-2); color: var(--text); font: inherit; font-size: 15px; }
.field input:focus { outline: none; border-color: var(--teal-ink); background: #fff; box-shadow: inset 3px 0 0 var(--teal); }
.check { display: flex; gap: 10px; align-items: center; font-size: 14px; color: var(--muted); margin-bottom: 22px; }
.check input { accent-color: var(--teal-ink); width: 16px; height: 16px; }
.alert { padding: 12px 14px; border: 1px solid; border-left-width: 3px; margin-bottom: 20px; font-size: 14px; }
.alert-error { border-color: var(--coral); background: #fff1ed; color: #8f2a14; }
.alert-ok { border-color: var(--teal); background: var(--teal-soft); color: #00574a; }
.auth-foot { margin-top: 28px; font-size: 13px; color: var(--dim); }
.auth-foot a { color: var(--teal-ink); font-weight: 600; }
.w-full { width: 100%; }

.footer { padding: 26px 48px; border-top: 1px solid var(--line); color: var(--dim); font-size: 13px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; background: #fff; }
.footer a { color: var(--teal-ink); }
.pager { display: flex; gap: 6px; align-items: center; justify-content: flex-end; margin-top: 16px; font-size: 13px; }
.pager a, .pager span { padding: 6px 12px; border: 1px solid var(--line-2); background: #fff; }
.pager .disabled { opacity: .4; }
.pager .cur { border: 0; background: none; color: var(--muted); }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .player-shell { grid-template-columns: 1fr; }
  .player-side { position: static; max-height: none; border-left: 0; border-top: 1px solid var(--line); }
  .stage-frame { min-height: 70vh; }
}
@media (max-width: 900px) {
  :root { --topbar: 58px; }
  .topbar { padding: env(safe-area-inset-top, 0px) 16px 0; gap: 12px; }
  .topnav, .account .who, .brand-sep, .brand-tag { display: none; }
  .filters-toggle { display: inline-flex !important; }
  .shell { background: none; }
  .sidebar { position: fixed; z-index: 60; left: 0; top: calc(var(--topbar) + env(safe-area-inset-top, 0px)); transform: translateX(-100%); transition: transform .2s; width: min(320px, 88vw); box-shadow: 20px 0 50px rgba(27,34,64,.2); }
  .sidebar.open { transform: none; }
  .hero { min-height: 360px; }
  .hero-bg { inset: 0; opacity: .35; }
  .hero::after { background: linear-gradient(0deg, #fff 30%, rgba(255,255,255,.6)); }
  .hero-content, .welcome { padding-left: 16px; padding-right: 16px; }
  .row-head { padding: 0 16px; }
  .track { padding: 6px 16px 18px; scroll-padding: 0 16px; grid-auto-columns: minmax(240px, 78vw); }
  .row-arrows { display: none; }
  .results { padding: 22px 16px; }
  .modal-body { padding: 0 18px 24px; }
  .modal-cols { grid-template-columns: 1fr; gap: 18px; }
  .auth { grid-template-columns: 1fr; }
  .auth-art { padding: 28px 16px; min-height: 260px; }
  .auth-art .auth-feats { display: none; }
  .auth-form { padding: 32px 16px; }
  .page { padding: 24px 16px 40px; }
  .tech-grid { grid-template-columns: 1fr; }
  .player-stage { padding: 0; }
  .player-bar { padding: 10px 16px; }
  .player-side { padding: 20px 16px 32px; }
  .footer { padding: 20px 16px; }
}
