/* EZALIO Play viewer website - EZALIO brand */
:root {
  --bg: #0b0f1a;
  --bg-2: #0f1424;
  --surface: #141a2a;
  --surface-2: #1c2336;
  --line: rgba(255, 255, 255, 0.08);
  --line-2: rgba(255, 255, 255, 0.16);
  --text: #f4f4f8;
  --muted: #a3a3b8;
  --faint: #6c6c82;
  --accent: #7b6cf6;
  --accent-2: #4f9bff;
  --grad: linear-gradient(120deg, #3b82f6 0%, #6c5ce7 55%, #a855f7 100%);
  --gold: #f2c14e;
  --live: #ff4d5e;
  --ok: #3ddc97;
  --radius: 14px;
  --radius-sm: 9px;
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.55);
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --nav-h: 68px;
  --gutter: clamp(16px, 4vw, 56px);
  color-scheme: dark;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--font); -webkit-font-smoothing: antialiased; }
body { min-height: 100vh; overflow-x: hidden; }
body.has-music { padding-bottom: 84px; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; border: 0; background: none; cursor: pointer; }
input, select, textarea { font: inherit; color: inherit; }
img { display: block; max-width: 100%; }
[hidden] { display: none !important; }
::selection { background: rgba(124, 108, 246, 0.4); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ---------- logo ---------- */
.logo { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; letter-spacing: 0.16em; font-size: 19px; white-space: nowrap; }
.logo-mark { width: 30px; height: auto; flex: none; }
.logo b { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------- buttons / inputs ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 9px; height: 46px; padding: 0 22px; border-radius: 999px; font-weight: 650; font-size: 15px; transition: transform .15s ease, background .2s, opacity .2s; white-space: nowrap; }
.btn:active { transform: scale(0.97); }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn-primary { background: #fff; color: #0a0a10; }
.btn-primary:hover { background: #e6e6ef; }
.btn-accent { background: var(--grad); color: #fff; box-shadow: 0 10px 30px rgba(110, 120, 255, 0.35); }
.btn-accent:hover { filter: brightness(1.08); }
.btn-ghost { background: rgba(255, 255, 255, 0.12); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.btn-ghost:hover { background: rgba(255, 255, 255, 0.2); }
.btn-line { border: 1px solid var(--line-2); }
.btn-line:hover { background: rgba(255, 255, 255, 0.06); }
.btn-danger { background: rgba(255, 77, 94, 0.14); color: #ff8a96; }
.btn-danger:hover { background: rgba(255, 77, 94, 0.24); }
.btn-sm { height: 36px; padding: 0 15px; font-size: 14px; }
.btn-block { width: 100%; }
.icon-btn { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, 0.1); border: 1px solid var(--line-2); transition: background .2s, transform .15s; flex: none; }
.icon-btn:hover { background: rgba(255, 255, 255, 0.2); }
.icon-btn svg { width: 20px; height: 20px; }
.icon-btn.active { background: #fff; color: #0a0a10; }
.field { display: grid; gap: 7px; margin-bottom: 16px; }
.field label { font-size: 13px; color: var(--muted); font-weight: 600; }
.input { height: 50px; border-radius: 12px; border: 1px solid var(--line-2); background: rgba(255, 255, 255, 0.04); padding: 0 16px; outline: none; transition: border .2s, background .2s; width: 100%; }
.input:focus { border-color: var(--accent); background: rgba(124, 108, 246, 0.07); }
textarea.input { height: auto; min-height: 90px; padding: 12px 16px; resize: vertical; }
.form-error { color: #ff8a96; font-size: 14px; min-height: 20px; margin: 4px 0 12px; }
.check { display: flex; align-items: center; gap: 10px; font-size: 15px; cursor: pointer; }
.check input { width: 18px; height: 18px; accent-color: var(--accent); }

/* ---------- top nav ---------- */
.nav { position: fixed; inset: 0 0 auto 0; height: var(--nav-h); z-index: 50; display: flex; align-items: center; gap: 28px; padding: 0 var(--gutter); background: linear-gradient(180deg, rgba(11, 15, 26, 0.92), rgba(11, 15, 26, 0)); transition: background .3s; }
.nav.solid { background: rgba(11, 15, 26, 0.94); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); border-bottom: 1px solid var(--line); }
.nav-links { display: flex; gap: 4px; }
.nav-links a { white-space: nowrap; padding: 8px 13px; border-radius: 999px; color: var(--muted); font-weight: 600; font-size: 15px; transition: color .2s, background .2s; display: inline-flex; align-items: center; gap: 7px; }
.nav-links a:hover { color: var(--text); }
.nav-links a.active { color: var(--text); background: rgba(255, 255, 255, 0.09); }
.nav-right { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.live-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--live); box-shadow: 0 0 0 3px rgba(255, 77, 94, 0.25); animation: pulse 1.8s infinite; display: inline-block; }
@keyframes pulse { 50% { box-shadow: 0 0 0 6px rgba(255, 77, 94, 0); } }
.avatar { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; font-weight: 800; font-size: 16px; color: #fff; flex: none; }
.avatar.lg { width: 128px; height: 128px; border-radius: 26px; font-size: 52px; }
.menu-wrap { position: relative; }
.menu { position: absolute; right: 0; top: calc(100% + 10px); min-width: 230px; background: var(--surface); border: 1px solid var(--line-2); border-radius: var(--radius); padding: 8px; box-shadow: var(--shadow); }
.menu a, .menu button { display: flex; width: 100%; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 9px; font-size: 14.5px; text-align: left; }
.menu a:hover, .menu button:hover { background: rgba(255, 255, 255, 0.07); }
.menu hr { border: 0; border-top: 1px solid var(--line); margin: 6px 0; }
.menu .avatar { width: 28px; height: 28px; font-size: 13px; border-radius: 8px; }
.tabbar { display: none; }

/* ---------- layout ---------- */
.page { padding: calc(var(--nav-h) + 24px) var(--gutter) 60px; }
.page-title { font-size: clamp(28px, 4vw, 40px); font-weight: 800; letter-spacing: -0.02em; margin: 6px 0 22px; }
.section-title { font-size: 20px; font-weight: 750; margin: 0 0 14px; letter-spacing: -0.01em; display: flex; align-items: center; gap: 10px; }
.muted { color: var(--muted); }
.faint { color: var(--faint); }
.pill { display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 10px; border-radius: 999px; font-size: 12.5px; font-weight: 700; background: rgba(255, 255, 255, 0.1); }
.pill.gold { background: rgba(242, 193, 78, 0.16); color: var(--gold); }
.pill.live { background: var(--live); color: #fff; letter-spacing: 0.06em; }
.pill.ok { background: rgba(61, 220, 151, 0.15); color: var(--ok); }
.chips { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 22px; }
.chip { height: 36px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line-2); font-weight: 600; font-size: 14px; color: var(--muted); transition: all .2s; }
.chip:hover { color: var(--text); }
.chip.active { background: #fff; color: #0a0a10; border-color: #fff; }
.empty { text-align: center; padding: 70px 20px; color: var(--muted); }
.empty h3 { color: var(--text); font-size: 20px; margin: 14px 0 6px; }
.empty svg { width: 46px; height: 46px; opacity: 0.5; }
.spinner { width: 34px; height: 34px; border: 3px solid rgba(255, 255, 255, 0.15); border-top-color: #fff; border-radius: 50%; animation: spin .8s linear infinite; margin: 80px auto; }
@keyframes spin { to { transform: rotate(360deg); } }
.meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; color: var(--muted); font-size: 14.5px; font-weight: 550; }
.meta .rating { border: 1px solid var(--line-2); border-radius: 5px; padding: 1px 6px; font-size: 12.5px; color: var(--text); }
.meta .q { background: rgba(255, 255, 255, 0.12); border-radius: 5px; padding: 1px 7px; font-size: 12px; font-weight: 800; color: var(--text); }
.dot-sep::before { content: "•"; margin-right: 10px; color: var(--faint); }

/* ---------- hero ---------- */
.hero { position: relative; height: min(82vh, 760px); min-height: 520px; overflow: hidden; }
.hero-slide { position: absolute; inset: 0; opacity: 0; transition: opacity 1s ease; }
.hero-slide.on { opacity: 1; }
.hero-bg { position: absolute; inset: 0; background-size: cover; background-position: center; transform: scale(1.04); transition: transform 9s ease-out; }
.hero-slide.on .hero-bg { transform: scale(1); }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(11, 15, 26, 0.92) 0%, rgba(11, 15, 26, 0.55) 45%, rgba(11, 15, 26, 0.05) 75%), linear-gradient(0deg, var(--bg) 0%, rgba(11, 15, 26, 0) 35%); pointer-events: none; }
.hero-content { position: absolute; z-index: 2; left: var(--gutter); bottom: 17%; max-width: 620px; right: var(--gutter); }
.hero-kicker { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 800; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); margin-bottom: 14px; }
.hero-kicker i { width: 22px; height: 2px; background: var(--grad); display: inline-block; }
.hero h1 { font-size: clamp(38px, 6.4vw, 78px); line-height: 0.98; margin: 0 0 14px; letter-spacing: -0.03em; font-weight: 850; }
.hero .tagline { font-size: clamp(17px, 1.6vw, 21px); font-weight: 600; margin: 0 0 12px; }
.hero p.syn { color: #d0d0dc; font-size: 16px; line-height: 1.55; margin: 14px 0 26px; max-width: 540px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.hero-dots { position: absolute; z-index: 3; right: var(--gutter); bottom: 18%; display: flex; gap: 8px; }
.hero-dots button { width: 28px; height: 4px; border-radius: 3px; background: rgba(255, 255, 255, 0.25); transition: background .3s, width .3s; }
.hero-dots button.on { background: #fff; width: 44px; }

/* ---------- rows ---------- */
.rows { position: relative; z-index: 4; margin-top: -90px; }
.rows.flat { margin-top: 0; }
.row { margin-bottom: 38px; }
.row-head { display: flex; align-items: center; justify-content: space-between; padding: 0 var(--gutter); margin-bottom: 12px; }
.row-head h2 { font-size: 19px; font-weight: 750; margin: 0; letter-spacing: -0.01em; display: flex; align-items: center; gap: 10px; }
.row-arrows { display: flex; gap: 8px; }
.row-arrows button { width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line-2); display: grid; place-items: center; opacity: 0.8; }
.row-arrows button:hover { background: rgba(255, 255, 255, 0.1); opacity: 1; }
.row-arrows svg { width: 16px; height: 16px; }
.scroller { display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 6px var(--gutter) 12px; scroll-padding: 0 var(--gutter); scrollbar-width: none; }
.scroller::-webkit-scrollbar { display: none; }
.scroller > * { scroll-snap-align: start; flex: none; }

.card { position: relative; width: clamp(140px, 14vw, 196px); border-radius: var(--radius-sm); cursor: pointer; transition: transform .25s ease; }
.card:hover { transform: translateY(-4px); }
.card .art { aspect-ratio: 2 / 3; border-radius: var(--radius-sm); overflow: hidden; background: var(--surface); position: relative; box-shadow: 0 10px 26px rgba(0, 0, 0, 0.4); }
.card .art img { width: 100%; height: 100%; object-fit: cover; }
.card .art::after { content: ""; position: absolute; inset: 0; border-radius: inherit; border: 1px solid rgba(255, 255, 255, 0.07); pointer-events: none; }
.card .lock { position: absolute; top: 8px; right: 8px; height: 24px; padding: 0 8px; border-radius: 999px; background: rgba(0, 0, 0, 0.7); color: var(--gold); font-size: 11px; font-weight: 800; display: flex; align-items: center; gap: 4px; letter-spacing: 0.04em; }
.card .lock svg { width: 11px; height: 11px; }
.card .badge-new { position: absolute; top: 8px; left: 8px; height: 22px; padding: 0 8px; border-radius: 6px; background: var(--grad); font-size: 11px; font-weight: 800; display: flex; align-items: center; letter-spacing: 0.06em; }
.card .cap { margin-top: 9px; font-size: 14px; font-weight: 650; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card .sub { font-size: 12.5px; color: var(--faint); margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card.wide { width: clamp(240px, 24vw, 320px); }
.card.wide .art { aspect-ratio: 16 / 9; }
.progress { height: 4px; background: rgba(255, 255, 255, 0.2); border-radius: 3px; overflow: hidden; }
.progress i { display: block; height: 100%; background: var(--grad); border-radius: 3px; }
.card.wide .progress { position: absolute; left: 10px; right: 10px; bottom: 10px; }
.card.wide .play-ov { position: absolute; inset: 0; display: grid; place-items: center; opacity: 0; transition: opacity .2s; background: rgba(0, 0, 0, 0.3); }
.card.wide:hover .play-ov { opacity: 1; }
.play-ov span { width: 52px; height: 52px; border-radius: 50%; background: rgba(255, 255, 255, 0.92); color: #000; display: grid; place-items: center; }
.play-ov svg { width: 22px; height: 22px; margin-left: 3px; }
.card.rank { width: clamp(200px, 20vw, 260px); display: flex; align-items: flex-end; }
.card.rank .num { font-size: clamp(110px, 11vw, 150px); font-weight: 900; line-height: 0.78; letter-spacing: -0.08em; color: var(--bg); -webkit-text-stroke: 2px rgba(255, 255, 255, 0.55); margin-right: -14px; flex: none; z-index: 0; }
.card.rank .art { width: 62%; flex: none; z-index: 1; }
.card.square { width: clamp(150px, 15vw, 200px); }
.card.square .art { aspect-ratio: 1; }
.card.channel { width: clamp(230px, 22vw, 290px); background: var(--surface); border: 1px solid var(--line); padding: 14px; border-radius: var(--radius); display: grid; grid-template-columns: 58px 1fr; gap: 12px; align-items: center; }
.card.channel img { width: 58px; height: 58px; border-radius: 14px; }
.card.channel .cap { margin: 0; }
.card.channel .sub { margin-top: 3px; }
.card.channel .progress { grid-column: 1 / -1; margin-top: 2px; }
.card.channel .ch-top { display: flex; align-items: center; gap: 7px; font-size: 11.5px; font-weight: 800; color: var(--live); letter-spacing: 0.08em; }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(clamp(140px, 14vw, 186px), 1fr)); gap: 22px 14px; }
.grid .card, .grid .card.square { width: auto; }
.grid.wide { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }

/* ---------- title detail ---------- */
.detail-hero { position: relative; min-height: 78vh; display: flex; align-items: flex-end; padding: calc(var(--nav-h) + 40px) var(--gutter) 46px; }
.detail-hero .bg { position: absolute; inset: 0; background-size: cover; background-position: center; }
.detail-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(11, 15, 26, 0.95) 0%, rgba(11, 15, 26, 0.6) 50%, rgba(11, 15, 26, 0.15) 100%), linear-gradient(0deg, var(--bg) 0%, rgba(11, 15, 26, 0) 40%); }
.detail-inner { position: relative; z-index: 2; display: grid; grid-template-columns: 240px 1fr; gap: 40px; align-items: end; max-width: 1180px; width: 100%; }
.detail-inner .poster { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); aspect-ratio: 2 / 3; }
.detail-inner h1 { font-size: clamp(34px, 5vw, 62px); margin: 0 0 10px; letter-spacing: -0.03em; line-height: 1; }
.detail-inner .tagline { font-size: 18px; font-weight: 600; margin: 4px 0 14px; color: #dcdce6; }
.detail-inner p.syn { color: #cfcfdb; font-size: 16px; line-height: 1.6; max-width: 640px; margin: 16px 0 24px; }
.facts { display: grid; grid-template-columns: max-content 1fr; gap: 6px 18px; font-size: 14px; margin-top: 22px; max-width: 640px; }
.facts dt { color: var(--faint); }
.facts dd { margin: 0; color: #d6d6e0; }
.credits-note { margin-top: 16px; font-size: 12.5px; color: var(--faint); max-width: 640px; line-height: 1.5; }
.season-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }
.select { height: 42px; border-radius: 10px; background: var(--surface-2); border: 1px solid var(--line-2); padding: 0 14px; font-weight: 650; }
.episodes { display: grid; gap: 10px; }
.episode { display: grid; grid-template-columns: 40px 210px 1fr; gap: 18px; align-items: center; padding: 14px; border-radius: var(--radius); cursor: pointer; transition: background .2s; border: 1px solid transparent; }
.episode:hover { background: var(--surface); border-color: var(--line); }
.episode .n { font-size: 22px; font-weight: 800; color: var(--faint); text-align: center; }
.episode .thumb { position: relative; aspect-ratio: 16 / 9; border-radius: 10px; overflow: hidden; background: var(--surface-2); }
.episode .thumb img { width: 100%; height: 100%; object-fit: cover; }
.episode .thumb .progress { position: absolute; left: 8px; right: 8px; bottom: 8px; }
.episode h4 { margin: 0 0 6px; font-size: 16px; display: flex; justify-content: space-between; gap: 10px; }
.episode h4 span { color: var(--faint); font-weight: 550; font-size: 14px; flex: none; }
.episode p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.5; }

/* ---------- live TV ---------- */
.live-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 26px; }
.live-feature { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(260px, 1fr); gap: 22px; background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 18px; }
.live-preview { position: relative; aspect-ratio: 16 / 9; border-radius: 14px; overflow: hidden; background: #000; }
.live-preview video { width: 100%; height: 100%; object-fit: cover; }
.live-preview .ov { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: space-between; padding: 16px; background: linear-gradient(0deg, rgba(0, 0, 0, 0.75), rgba(0, 0, 0, 0) 50%); }
.live-preview .ov .bottom { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; }
.live-preview .locked-ov { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; background: rgba(11, 15, 26, 0.86); padding: 20px; }
.live-info h2 { margin: 6px 0 6px; font-size: 26px; }
.live-info .now { font-size: 17px; font-weight: 650; margin: 16px 0 4px; }
.live-info .next { color: var(--muted); font-size: 14px; margin-top: 14px; }
.guide { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; overflow: hidden; }
.guide-head { display: flex; align-items: center; justify-content: space-between; padding: 16px 18px; border-bottom: 1px solid var(--line); gap: 12px; flex-wrap: wrap; }
.guide-scroll { overflow-x: auto; position: relative; }
.guide-table { position: relative; min-width: 100%; }
.guide-times { display: flex; height: 38px; border-bottom: 1px solid var(--line); position: sticky; top: 0; background: var(--surface); z-index: 3; }
.guide-times .corner { width: 200px; flex: none; position: sticky; left: 0; background: var(--surface); z-index: 4; border-right: 1px solid var(--line); }
.guide-times .t { flex: none; font-size: 12.5px; color: var(--muted); font-weight: 650; padding: 10px 10px; border-left: 1px solid var(--line); }
.guide-row { display: flex; height: 70px; border-bottom: 1px solid var(--line); }
.guide-ch { width: 200px; flex: none; display: flex; align-items: center; gap: 12px; padding: 0 14px; position: sticky; left: 0; z-index: 2; background: var(--surface); border-right: 1px solid var(--line); cursor: pointer; }
.guide-ch:hover { background: var(--surface-2); }
.guide-ch.on { background: #211d42; }
.guide-ch img { width: 40px; height: 40px; border-radius: 10px; }
.guide-ch b { font-size: 14px; display: block; }
.guide-ch small { color: var(--faint); font-size: 12px; }
.guide-progs { position: relative; flex: none; }
.prog { position: absolute; top: 6px; bottom: 6px; border-radius: 10px; background: var(--surface-2); padding: 8px 12px; overflow: hidden; cursor: pointer; border: 1px solid transparent; transition: background .2s, border .2s; }
.prog:hover { border-color: var(--line-2); background: #252e45; }
.prog.now { background: linear-gradient(120deg, rgba(124, 108, 246, 0.32), rgba(59, 130, 246, 0.18)); border-color: rgba(124, 108, 246, 0.45); }
.prog b { display: block; font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.prog small { color: var(--muted); font-size: 12px; white-space: nowrap; }
.now-line { position: absolute; top: 0; bottom: 0; width: 2px; background: var(--live); z-index: 2; pointer-events: none; }
.now-line::before { content: ""; position: absolute; top: 0; left: -4px; width: 10px; height: 10px; border-radius: 50%; background: var(--live); }

/* ---------- music ---------- */
.music-hero { display: grid; grid-template-columns: 1.2fr 1fr; gap: 22px; margin-bottom: 36px; }
.music-banner { position: relative; border-radius: 22px; overflow: hidden; min-height: 280px; padding: 30px; display: flex; flex-direction: column; justify-content: flex-end; background: radial-gradient(circle at 80% 20%, rgba(59, 130, 246, 0.45), transparent 55%), radial-gradient(circle at 10% 90%, rgba(124, 108, 246, 0.6), transparent 60%), #140f2e; }
.music-banner h2 { font-size: clamp(30px, 4vw, 46px); margin: 0 0 8px; letter-spacing: -0.02em; }
.track-list { display: grid; gap: 2px; }
.track { display: grid; grid-template-columns: 34px 46px minmax(0, 1fr) auto auto; gap: 14px; align-items: center; padding: 8px 12px; border-radius: 10px; cursor: pointer; transition: background .15s; }
.track:hover { background: rgba(255, 255, 255, 0.06); }
.track.playing { background: rgba(124, 108, 246, 0.14); }
.track.playing .t-title { color: #b7adff; }
.track .t-n { color: var(--faint); font-weight: 700; text-align: center; font-size: 14px; }
.track img { width: 46px; height: 46px; border-radius: 8px; }
.track .t-title { font-weight: 650; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.track .t-sub { color: var(--faint); font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.track .t-dur { color: var(--faint); font-size: 13.5px; font-variant-numeric: tabular-nums; }
.like-btn { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; color: var(--faint); }
.like-btn:hover { color: var(--text); }
.like-btn.on { color: #ff7ab6; }
.like-btn svg { width: 18px; height: 18px; }
.album-head { display: grid; grid-template-columns: 260px 1fr; gap: 34px; align-items: end; margin-bottom: 30px; }
.album-head img { width: 100%; border-radius: 16px; box-shadow: var(--shadow); }
.album-head h1 { font-size: clamp(32px, 5vw, 58px); margin: 6px 0 10px; letter-spacing: -0.03em; }
.artist-chip { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; }
.artist-chip img { width: 30px; height: 30px; border-radius: 50%; }
.artist-card { text-align: center; cursor: pointer; width: 160px; }
.artist-card img { width: 160px; height: 160px; border-radius: 50%; box-shadow: 0 12px 30px rgba(0, 0, 0, 0.45); transition: transform .25s; }
.artist-card:hover img { transform: scale(1.04); }
.artist-card b { display: block; margin-top: 12px; font-size: 15px; }

/* ---------- music bar ---------- */
#music-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; height: 84px; background: rgba(13, 18, 32, 0.96); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); border-top: 1px solid var(--line); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr) minmax(0, 1fr); align-items: center; padding: 0 22px; gap: 20px; }
.mb-now { display: flex; align-items: center; gap: 14px; min-width: 0; }
.mb-now img { width: 54px; height: 54px; border-radius: 9px; cursor: pointer; }
.mb-now .txt { min-width: 0; }
.mb-now b { display: block; font-size: 14.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mb-now small { color: var(--muted); font-size: 13px; }
.mb-center { display: grid; gap: 6px; justify-items: center; }
.mb-ctrls { display: flex; align-items: center; gap: 14px; }
.mb-ctrls button { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%; color: var(--muted); }
.mb-ctrls button:hover { color: var(--text); }
.mb-ctrls button.on { color: var(--accent-2); }
.mb-ctrls button svg { width: 18px; height: 18px; }
.mb-ctrls .mb-play { width: 42px; height: 42px; background: #fff; color: #000; }
.mb-ctrls .mb-play:hover { color: #000; transform: scale(1.05); }
.mb-seek { display: flex; align-items: center; gap: 10px; width: 100%; max-width: 560px; font-size: 12px; color: var(--faint); font-variant-numeric: tabular-nums; }
.range { -webkit-appearance: none; appearance: none; width: 100%; height: 4px; border-radius: 3px; background: rgba(255, 255, 255, 0.18); outline: none; cursor: pointer; background-image: linear-gradient(#fff, #fff); background-repeat: no-repeat; background-size: 0% 100%; }
.range::-webkit-slider-thumb { -webkit-appearance: none; width: 13px; height: 13px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.15); }
.range::-moz-range-thumb { width: 13px; height: 13px; border-radius: 50%; background: #fff; border: 0; }
.mb-right { display: flex; justify-content: flex-end; align-items: center; gap: 10px; }
.mb-right .range { width: 110px; }
.mb-right button { width: 34px; height: 34px; display: grid; place-items: center; color: var(--muted); }
.mb-right button svg { width: 18px; height: 18px; }

/* ---------- video player ---------- */
.player { position: fixed; inset: 0; z-index: 200; background: #000; display: flex; align-items: center; justify-content: center; }
.player video { width: 100%; height: 100%; object-fit: contain; background: #000; }
.player .p-ui { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: space-between; transition: opacity .35s; background: linear-gradient(180deg, rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0) 22%, rgba(0, 0, 0, 0) 66%, rgba(0, 0, 0, 0.85)); }
.player.idle .p-ui { opacity: 0; cursor: none; }
.p-top { display: flex; align-items: center; gap: 16px; padding: 22px 26px; }
.p-top .p-title { font-size: 18px; font-weight: 700; }
.p-top .p-sub { font-size: 13.5px; color: var(--muted); }
.p-bottom { padding: 0 26px 24px; }
.p-seek { display: flex; align-items: center; gap: 14px; font-size: 13.5px; font-variant-numeric: tabular-nums; color: #ddd; margin-bottom: 12px; }
.p-seek .range { height: 5px; }
.p-ctrls { display: flex; align-items: center; gap: 10px; }
.p-ctrls button { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; }
.p-ctrls button:hover { background: rgba(255, 255, 255, 0.12); }
.p-ctrls button svg { width: 26px; height: 26px; }
.p-ctrls .spacer { flex: 1; }
.p-ctrls .p-label { font-weight: 650; font-size: 15px; padding: 0 10px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.p-center { position: absolute; inset: 0; display: grid; place-items: center; pointer-events: none; }
.p-center .spinner { margin: 0; width: 54px; height: 54px; }
.p-msg { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; padding: 30px; background: rgba(0, 0, 0, 0.75); }
.next-up { position: absolute; right: 28px; bottom: 120px; background: rgba(20, 26, 42, 0.95); border: 1px solid var(--line-2); border-radius: 16px; padding: 16px 18px; display: flex; gap: 14px; align-items: center; box-shadow: var(--shadow); }
.p-vol { display: flex; align-items: center; gap: 6px; }
.p-vol .range { width: 90px; }

/* ---------- modal / toast ---------- */
.modal-back { position: fixed; inset: 0; z-index: 300; background: rgba(3, 5, 12, 0.72); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); display: grid; place-items: center; padding: 20px; animation: fade .2s ease; }
.modal { width: min(460px, 100%); background: var(--surface); border: 1px solid var(--line-2); border-radius: 22px; padding: 28px; box-shadow: var(--shadow); animation: pop .22s ease; max-height: calc(100vh - 40px); overflow-y: auto; }
.modal.wide { width: min(880px, 100%); }
.modal h3 { margin: 0 0 10px; font-size: 22px; letter-spacing: -0.01em; }
.modal p { color: var(--muted); line-height: 1.55; margin: 0 0 20px; }
.modal-actions { display: flex; gap: 10px; justify-content: flex-end; flex-wrap: wrap; margin-top: 8px; }
.modal-icon { width: 54px; height: 54px; border-radius: 16px; display: grid; place-items: center; background: rgba(124, 108, 246, 0.16); color: #b7adff; margin-bottom: 16px; }
.modal-icon.danger { background: rgba(255, 77, 94, 0.15); color: #ff8a96; }
.modal-icon svg { width: 26px; height: 26px; }
@keyframes fade { from { opacity: 0; } }
@keyframes pop { from { opacity: 0; transform: scale(0.96) translateY(8px); } }
#toast-root { position: fixed; z-index: 400; left: 50%; bottom: 100px; transform: translateX(-50%); display: grid; gap: 8px; }
.toast { background: #f4f4f8; color: #0a0a10; padding: 12px 20px; border-radius: 999px; font-weight: 650; font-size: 14.5px; box-shadow: var(--shadow); animation: pop .2s ease; white-space: nowrap; }

/* ---------- auth / landing ---------- */
.landing { min-height: 100vh; position: relative; overflow: hidden; }
.landing-bg { position: absolute; inset: 0; display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; padding: 12px; transform: rotate(-8deg) scale(1.35); opacity: 0.38; }
.landing-bg img { width: 100%; border-radius: 10px; aspect-ratio: 2 / 3; object-fit: cover; }
.landing::after { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse at center, rgba(11, 15, 26, 0.55) 0%, rgba(11, 15, 26, 0.94) 70%), linear-gradient(0deg, var(--bg), rgba(11, 15, 26, 0) 40%); }
.landing-top { position: relative; z-index: 2; display: flex; justify-content: space-between; align-items: center; padding: 24px var(--gutter); }
.landing-center { position: relative; z-index: 2; text-align: center; max-width: 780px; margin: 0 auto; padding: 12vh 20px 10vh; }
.landing-center h1 { font-size: clamp(40px, 7vw, 76px); line-height: 1; letter-spacing: -0.035em; margin: 0 0 18px; font-weight: 850; }
.landing-center h1 span { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.landing-center p { font-size: clamp(17px, 2vw, 21px); color: #cfcfdb; margin: 0 0 30px; }
.feature-strip { position: relative; z-index: 2; display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; padding: 0 var(--gutter) 60px; max-width: 1200px; margin: 0 auto; }
.feature { background: rgba(20, 26, 42, 0.8); border: 1px solid var(--line); border-radius: 18px; padding: 22px; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.feature .fi { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: rgba(124, 108, 246, 0.16); color: #c1b8ff; margin-bottom: 14px; }
.feature .fi svg { width: 22px; height: 22px; }
.feature h3 { margin: 0 0 6px; font-size: 17px; }
.feature p { margin: 0; color: var(--muted); font-size: 14.5px; line-height: 1.5; }
.plans-wrap { position: relative; z-index: 2; padding: 20px var(--gutter) 80px; max-width: 1200px; margin: 0 auto; }
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.plan { background: var(--surface); border: 1px solid var(--line-2); border-radius: 20px; padding: 24px; display: flex; flex-direction: column; position: relative; transition: border .2s, transform .2s; }
.plan.current { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent) inset; }
.plan .p-name { display: flex; align-items: center; gap: 10px; font-size: 19px; font-weight: 800; margin-bottom: 4px; }
.plan .p-name i { width: 12px; height: 12px; border-radius: 4px; }
.plan .price { font-size: 38px; font-weight: 850; margin: 12px 0 2px; letter-spacing: -0.02em; }
.plan .price small { font-size: 15px; color: var(--muted); font-weight: 600; }
.plan ul { list-style: none; padding: 0; margin: 18px 0 22px; display: grid; gap: 10px; font-size: 14.5px; flex: 1; }
.plan li { display: flex; gap: 10px; align-items: flex-start; color: #d6d6e0; }
.plan li svg { width: 17px; height: 17px; flex: none; margin-top: 1px; color: var(--ok); }
.plan li.no { color: var(--faint); }
.plan li.no svg { color: var(--faint); }
.auth-card { position: relative; z-index: 2; width: min(440px, calc(100% - 32px)); margin: 4vh auto 60px; background: rgba(20, 26, 42, 0.92); border: 1px solid var(--line-2); border-radius: 24px; padding: 34px; backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); box-shadow: var(--shadow); }
.auth-card h2 { margin: 0 0 6px; font-size: 28px; letter-spacing: -0.02em; }
.auth-card .sub { color: var(--muted); margin: 0 0 24px; }
.auth-switch { text-align: center; margin-top: 18px; color: var(--muted); font-size: 14.5px; }
.auth-switch a { color: var(--text); font-weight: 700; }

/* ---------- profiles ---------- */
.profiles-page { min-height: 100vh; display: grid; place-items: center; text-align: center; padding: 40px 20px; }
.profiles-page h1 { font-size: clamp(30px, 5vw, 48px); margin: 0 0 40px; letter-spacing: -0.02em; }
.profile-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 28px; margin-bottom: 44px; }
.profile-tile { width: 140px; cursor: pointer; position: relative; }
.profile-tile .avatar { margin: 0 auto 12px; transition: transform .2s, box-shadow .2s; }
.profile-tile:hover .avatar { transform: scale(1.05); box-shadow: 0 0 0 3px #fff; }
.profile-tile b { font-size: 16px; color: var(--muted); }
.profile-tile:hover b { color: var(--text); }
.profile-tile .kid { position: absolute; top: 96px; left: 50%; transform: translateX(-50%); }
.profile-tile .edit-ov { position: absolute; top: 0; left: 6px; width: 128px; height: 128px; border-radius: 26px; display: grid; place-items: center; background: rgba(0, 0, 0, 0.55); }
.profile-tile .edit-ov svg { width: 34px; height: 34px; }
.add-tile .avatar { background: transparent; border: 2px dashed var(--line-2); color: var(--muted); }
.avatar-pick { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 18px; }
.avatar-pick button { border-radius: 12px; outline: 2px solid transparent; outline-offset: 2px; }
.avatar-pick button.on { outline-color: #fff; }

/* ---------- account ---------- */
.account { max-width: 920px; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 24px; margin-bottom: 18px; }
.panel h3 { margin: 0 0 4px; font-size: 18px; }
.panel .row-line { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 14px 0; border-top: 1px solid var(--line); flex-wrap: wrap; }
.panel .row-line:first-of-type { border-top: 0; }
.plan-banner { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; padding: 22px; border-radius: 16px; background: linear-gradient(120deg, rgba(124, 108, 246, 0.2), rgba(59, 130, 246, 0.08)); border: 1px solid rgba(124, 108, 246, 0.3); margin-top: 14px; }
.plan-banner .pb-name { font-size: 24px; font-weight: 800; }
.notice { display: flex; gap: 14px; align-items: center; padding: 14px 18px; border-radius: 14px; background: rgba(242, 193, 78, 0.1); border: 1px solid rgba(242, 193, 78, 0.28); color: #f6d98e; margin: 0 var(--gutter) 26px; font-size: 14.5px; position: relative; z-index: 5; flex-wrap: wrap; }
.notice .btn { margin-left: auto; }

/* ---------- search ---------- */
.search-box { position: relative; max-width: 720px; margin-bottom: 30px; }
.search-box svg { position: absolute; left: 18px; top: 50%; transform: translateY(-50%); width: 20px; height: 20px; color: var(--muted); }
.search-box input { height: 58px; font-size: 18px; padding-left: 52px; border-radius: 16px; }

/* ---------- responsive ---------- */
@media (max-width: 1000px) {
  .feature-strip { grid-template-columns: repeat(2, 1fr); }
  .live-feature { grid-template-columns: 1fr; }
  .music-hero { grid-template-columns: 1fr; }
}
@media (max-width: 880px) {
  :root { --nav-h: 58px; }
  .nav { gap: 12px; }
  .nav-links { display: none; }
  .nav .logo { font-size: 19px; }
  .tabbar { display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 70; height: calc(62px + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom); background: rgba(11, 15, 26, 0.97); border-top: 1px solid var(--line); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); }
  .tabbar a { display: grid; place-items: center; align-content: center; gap: 3px; font-size: 10.5px; font-weight: 650; color: var(--faint); }
  .tabbar a svg { width: 22px; height: 22px; }
  .tabbar a.active { color: var(--text); }
  body { padding-bottom: 62px; }
  body.has-music { padding-bottom: 136px; }
  #music-bar { bottom: calc(62px + env(safe-area-inset-bottom)); height: 66px; grid-template-columns: minmax(0, 1fr) auto; padding: 0 12px; }
  .mb-center .mb-seek, .mb-right, .mb-ctrls .mb-hide { display: none; }
  .mb-now img { width: 44px; height: 44px; }
  .hero { height: 76vh; min-height: 480px; }
  .hero::after { background: linear-gradient(0deg, var(--bg) 8%, rgba(11, 15, 26, 0.45) 60%, rgba(11, 15, 26, 0.2)); }
  .hero-content { bottom: 70px; }
  .hero-dots { bottom: 30px; left: var(--gutter); right: auto; }
  .hero p.syn { display: none; }
  .rows { margin-top: -20px; }
  .row-arrows { display: none; }
  .detail-inner { grid-template-columns: 1fr; gap: 20px; }
  .detail-inner .poster { width: 150px; }
  .episode { grid-template-columns: 120px 1fr; gap: 12px; padding: 10px 0; }
  .episode .n { display: none; }
  .episode p { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: 13px; }
  .feature-strip { grid-template-columns: 1fr; }
  .landing-bg { grid-template-columns: repeat(3, 1fr); }
  .album-head { grid-template-columns: 1fr; }
  .album-head img { width: 200px; }
  .track { grid-template-columns: 46px minmax(0, 1fr) auto; }
  .track .t-n, .track .t-dur { display: none; }
  .guide-ch, .guide-times .corner { width: 120px; }
  .guide-ch img { width: 32px; height: 32px; }
  .guide-ch small { display: none; }
  .p-vol .range, .p-ctrls .p-label { display: none; }
  .p-top, .p-bottom { padding-left: 14px; padding-right: 14px; }
  .modal { padding: 22px; }
  #toast-root { bottom: 150px; }
  .auth-card { padding: 24px; }
}
@media (min-width: 881px) and (max-width: 1080px) {
  .nav { gap: 16px; }
  .nav-links a { padding: 8px 9px; font-size: 14px; }
}
/* icons never grow beyond their box (Safari sizes unsized SVGs to the full width) */
svg { flex: none; }
.notice > svg { width: 22px; height: 22px; }
.notice > span { flex: 1; min-width: 200px; }
.pill { white-space: nowrap; }
.plan .p-name { flex-wrap: wrap; row-gap: 6px; }
/* Top 10: number and poster side by side, evenly spaced */
.card.rank { width: clamp(190px, 18vw, 240px); }
.card.rank .num { font-size: clamp(96px, 9vw, 132px); margin-right: -10px; -webkit-text-stroke: 2px rgba(255, 255, 255, 0.4); }
.card.rank .art { width: 64%; }

/* ---------- live TV inside the player: channel list, info banner, number entry ---------- */
.player .ch-panel { position: absolute; z-index: 5; top: 0; bottom: 0; left: 0; width: min(420px, 92vw); display: flex; flex-direction: column;
  background: rgba(11, 15, 26, 0.94); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); border-right: 1px solid var(--line-2);
  transform: translateX(-102%); transition: transform .28s ease; box-shadow: 30px 0 80px rgba(0, 0, 0, 0.5); }
.player.panel-open .ch-panel { transform: none; }
.player.panel-open .p-ui { opacity: 1; }
.ch-head { display: flex; align-items: center; gap: 12px; padding: 20px 18px 12px; }
.ch-head b { font-size: 19px; }
.ch-head .ch-hint { font-size: 11.5px; margin-left: auto; text-align: right; }
.ch-head .icon-btn { width: 38px; height: 38px; }
.ch-cats { display: flex; gap: 8px; overflow-x: auto; padding: 4px 18px 14px; scrollbar-width: none; border-bottom: 1px solid var(--line); }
.ch-cats::-webkit-scrollbar { display: none; }
.ch-cats .chip { flex: none; height: 32px; padding: 0 13px; font-size: 13px; }
.ch-list { flex: 1; overflow-y: auto; padding: 8px 10px 20px; }
.ch-item { display: grid; grid-template-columns: 30px 46px minmax(0, 1fr) 34px; gap: 12px; align-items: center; padding: 10px 8px; border-radius: 12px;
  cursor: pointer; border: 1px solid transparent; transition: background .15s, border-color .15s; }
.ch-item:hover, .ch-item.focus { background: rgba(255, 255, 255, 0.07); }
.ch-item.focus { border-color: rgba(255, 255, 255, 0.28); }
.ch-item.on { background: linear-gradient(120deg, rgba(59, 130, 246, 0.25), rgba(168, 85, 247, 0.2)); border-color: rgba(124, 108, 246, 0.6); }
.ch-item img { width: 46px; height: 46px; border-radius: 11px; }
.ch-num { font-weight: 800; color: var(--muted); font-variant-numeric: tabular-nums; text-align: center; font-size: 14px; }
.ch-txt { min-width: 0; }
.ch-txt b { display: block; font-size: 14.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ch-txt small { display: block; color: var(--muted); font-size: 12.5px; margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ch-txt .progress { margin-top: 7px; height: 3px; }
.ch-fav { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; color: var(--faint); }
.ch-fav:hover { color: var(--text); background: rgba(255, 255, 255, 0.08); }
.ch-fav.on { color: #ff7ab6; }
.ch-fav svg { width: 17px; height: 17px; }
.ch-empty { padding: 40px 20px; text-align: center; color: var(--muted); line-height: 1.5; }
.player .osd { position: absolute; z-index: 4; left: 50%; transform: translateX(-50%); bottom: 120px; width: min(620px, calc(100% - 32px)); display: flex; gap: 16px; align-items: center;
  padding: 16px 18px; border-radius: 18px; background: rgba(11, 15, 26, 0.9); border: 1px solid var(--line-2); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5); animation: pop .2s ease; }
.player .osd img { width: 64px; height: 64px; border-radius: 15px; flex: none; }
.osd-txt { flex: 1; min-width: 0; }
.osd-ch { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); font-weight: 650; margin-bottom: 4px; }
.osd-ch .ch-num { color: var(--text); }
.osd-txt b { display: block; font-size: 18px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.osd-time { color: var(--muted); font-size: 13px; margin: 3px 0 8px; }
.osd-next { color: var(--faint); font-size: 13px; margin-top: 8px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.player .ch-input { position: absolute; z-index: 6; top: 26px; right: 30px; min-width: 96px; padding: 10px 20px; border-radius: 16px; text-align: center;
  font-size: 46px; font-weight: 850; font-variant-numeric: tabular-nums; background: rgba(11, 15, 26, 0.85); border: 1px solid var(--line-2); letter-spacing: 0.04em; }
.fs-toasts { position: absolute; z-index: 10; left: 50%; bottom: 40px; transform: translateX(-50%); display: grid; gap: 8px; }
.player.panel-open .osd { left: calc(50% + 210px); width: min(520px, calc(100% - 460px)); }
@media (max-width: 880px) {
  .player.panel-open .osd { display: none; }
  .ch-head .ch-hint { display: none; }
  .player .osd { bottom: 100px; }
  .player .osd img { width: 48px; height: 48px; }
}

/* ---------- category tiles ---------- */
.genre-tile { position: relative; flex: none; width: clamp(170px, 15vw, 220px); aspect-ratio: 16 / 9; border-radius: var(--radius); padding: 14px 16px;
  display: flex; flex-direction: column; justify-content: flex-end; overflow: hidden; background: linear-gradient(135deg, var(--ga), var(--gb));
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.35); transition: transform .2s ease, box-shadow .2s ease; }
.genre-tile::before { content: ""; position: absolute; right: -30px; top: -30px; width: 120px; height: 120px; border-radius: 50%; background: rgba(255, 255, 255, 0.14); }
.genre-tile::after { content: ""; position: absolute; inset: 0; border-radius: inherit; border: 1px solid rgba(255, 255, 255, 0.16); }
.genre-tile:hover { transform: translateY(-4px); box-shadow: 0 16px 34px rgba(0, 0, 0, 0.45); }
.genre-tile b { position: relative; font-size: 18px; font-weight: 800; letter-spacing: -0.01em; }
.genre-tile small { position: relative; font-size: 12.5px; opacity: 0.85; margin-top: 2px; }
.genre-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 14px; }
.genre-grid .genre-tile { width: auto; }

/* ---------- search button in the top bar ---------- */
.nav-search { display: inline-flex; align-items: center; gap: 9px; height: 38px; padding: 0 10px 0 13px; border-radius: 999px; border: 1px solid var(--line-2);
  color: var(--muted); background: rgba(255, 255, 255, 0.04); font-size: 14px; font-weight: 600; transition: background .2s, color .2s; }
.nav-search:hover { color: var(--text); background: rgba(255, 255, 255, 0.09); }
.nav-search svg { width: 17px; height: 17px; }
kbd { display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 6px; border: 1px solid var(--line-2); background: rgba(255, 255, 255, 0.06);
  font: 600 11.5px var(--font); color: var(--muted); }
@media (max-width: 1080px) { .nav-search span, .nav-search kbd { display: none; } .nav-search { width: 40px; padding: 0; justify-content: center; } }

/* ---------- quick search overlay ---------- */
.qs-back { position: fixed; inset: 0; z-index: 350; background: rgba(3, 5, 12, 0.66); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  display: flex; justify-content: center; align-items: flex-start; padding: 10vh 16px 16px; animation: fade .15s ease; }
.qs { width: min(680px, 100%); max-height: 76vh; display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line-2); border-radius: 20px;
  box-shadow: var(--shadow); overflow: hidden; animation: pop .18s ease; }
.qs-input { display: flex; align-items: center; gap: 12px; padding: 0 18px; border-bottom: 1px solid var(--line); }
.qs-input svg { width: 20px; height: 20px; color: var(--muted); }
.qs-input input { flex: 1; height: 62px; border: 0; outline: none; background: transparent; font-size: 18px; color: var(--text); min-width: 0; }
.qs-input input::-webkit-search-cancel-button { display: none; }
.qs-results { overflow-y: auto; padding: 8px; }
.qs-group { font-size: 11.5px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: var(--faint); padding: 12px 12px 6px; }
.qs-item { display: grid; grid-template-columns: 46px minmax(0, 1fr) 20px; gap: 14px; align-items: center; padding: 8px 12px; border-radius: 12px; cursor: pointer; }
.qs-item.focus, .qs-item:hover { background: rgba(124, 108, 246, 0.16); }
.qs-item img { width: 46px; height: 46px; border-radius: 9px; object-fit: cover; }
.qs-item img.tall { width: 34px; height: 50px; margin: 0 6px; border-radius: 6px; }
.qs-ic { width: 46px; height: 46px; border-radius: 11px; display: grid; place-items: center; background: rgba(255, 255, 255, 0.07); color: var(--muted); }
.qs-ic svg { width: 20px; height: 20px; }
.qs-txt b { display: block; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.qs-txt small { display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: 13px; margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.qs-go { color: var(--faint); opacity: 0; }
.qs-go svg { width: 16px; height: 16px; }
.qs-item.focus .qs-go { opacity: 1; }
.qs-empty { padding: 40px 20px; text-align: center; color: var(--muted); }
.qs-foot { display: flex; gap: 16px; align-items: center; padding: 10px 18px; border-top: 1px solid var(--line); font-size: 12px; color: var(--faint); flex-wrap: wrap; }
.qs-foot span { display: inline-flex; align-items: center; gap: 5px; }
.qs-foot a { margin-left: auto; color: var(--text); font-weight: 650; }
@media (max-width: 880px) { .qs-back { padding-top: 12px; } .qs { max-height: calc(100vh - 100px); } .qs-foot span { display: none; } }

/* ---------- player controls: icon + word, tip on hover ---------- */
.p-ctrls { gap: 4px; align-items: flex-end; }
.p-ctrls .pc { position: relative; width: auto; height: auto; min-width: 64px; padding: 8px 8px 6px; border-radius: 12px; display: flex; flex-direction: column; align-items: center; gap: 5px; }
.p-ctrls .pc:hover { background: rgba(255, 255, 255, 0.12); }
.p-ctrls .pc svg { width: 26px; height: 26px; }
.p-ctrls .pc span { font-size: 11.5px; font-weight: 650; color: #d9dbe6; white-space: nowrap; letter-spacing: 0.01em; }
.p-ctrls .pc[data-act="toggle"] svg { width: 30px; height: 30px; }
.pc-sep { width: 1px; height: 34px; background: rgba(255, 255, 255, 0.16); margin: 0 8px 10px; flex: none; }
.p-vol { align-items: flex-end; gap: 2px; }
.p-vol .range { width: 100px; margin-bottom: 22px; }
.pc[data-tip]::after { content: attr(data-tip); position: absolute; bottom: calc(100% + 8px); left: 50%; transform: translateX(-50%) translateY(4px); white-space: nowrap;
  background: rgba(11, 15, 26, 0.96); border: 1px solid var(--line-2); color: var(--text); font-size: 12.5px; font-weight: 600; padding: 7px 11px; border-radius: 9px;
  opacity: 0; pointer-events: none; transition: opacity .15s, transform .15s; z-index: 3; }
.pc[data-tip]:hover::after { opacity: 1; transform: translateX(-50%); }
.p-ctrls .pc:last-child[data-tip]::after { left: auto; right: 0; transform: translateY(4px); }
.p-ctrls .pc:last-child[data-tip]:hover::after { transform: none; }
.p-ctrls .pc:first-child[data-tip]::after { left: 0; transform: translateY(4px); }
.p-ctrls .pc:first-child[data-tip]:hover::after { transform: none; }
.p-top .btn svg { width: 18px; height: 18px; }
@media (max-width: 880px) {
  .p-ctrls { gap: 0; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
  .p-ctrls .pc { min-width: 54px; padding: 6px 4px; }
  .p-ctrls .pc svg { width: 22px; height: 22px; }
  .p-ctrls .pc span { font-size: 10.5px; }
  .pc-sep { margin: 0 4px 10px; }
  .pc[data-tip]::after { display: none; }
}
/* YouTube videos inside the player */
.player iframe.yt { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: #000; }
.player.is-yt .p-ui { bottom: auto; height: auto; background: linear-gradient(180deg, rgba(0, 0, 0, 0.75), rgba(0, 0, 0, 0)); padding-bottom: 30px; }
.player.is-yt .p-bottom { display: none; }
.player.is-yt .p-ui { right: auto; width: auto; background: none; padding-bottom: 0; }
.player.is-yt .p-top { padding: 14px 16px; }
.player.is-yt .p-top > div { display: none; }
.player.is-yt .p-top .btn { background: rgba(11, 15, 26, 0.85); }

/* =================== premium look: big 4K banners, title logos, spotlight cards =================== */
.hero { height: min(92vh, 900px); min-height: 560px; }
.hero-bg { background-position: center 22%; filter: saturate(1.06) contrast(1.03); }
.hero::after { background:
  linear-gradient(90deg, rgba(11, 15, 26, 0.94) 0%, rgba(11, 15, 26, 0.72) 30%, rgba(11, 15, 26, 0.18) 62%, rgba(11, 15, 26, 0) 80%),
  linear-gradient(0deg, var(--bg) 0%, rgba(11, 15, 26, 0.55) 18%, rgba(11, 15, 26, 0) 42%),
  linear-gradient(180deg, rgba(11, 15, 26, 0.55) 0%, rgba(11, 15, 26, 0) 18%); }
.hero-content { bottom: 19%; max-width: 640px; }
.title-logo { margin: 4px 0 18px; line-height: 0; }
.title-logo img { max-width: min(520px, 80vw); max-height: 170px; width: auto; height: auto; object-fit: contain; object-position: left bottom;
  filter: drop-shadow(0 6px 24px rgba(0, 0, 0, 0.55)); }
.hero .tagline { font-size: clamp(17px, 1.5vw, 20px); font-weight: 600; letter-spacing: 0.005em; color: #f1f1f6; }
.hero .meta { margin-top: 10px; }
.hero p.syn { font-size: 16.5px; color: #d7d8e2; }
.hero .btn { height: 52px; padding: 0 26px; font-size: 16px; }
.hero .btn-primary { box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35); }
.hero-kicker { color: #cdd0de; }
.detail-hero { min-height: 86vh; }
.detail-hero .bg { background-position: center 20%; }
.detail-inner .title-logo img { max-height: 150px; max-width: min(480px, 80vw); }
.soon-note { display: flex; align-items: center; gap: 12px; margin: 18px 0 4px; padding: 12px 16px; border-radius: 14px; max-width: 560px;
  background: rgba(124, 108, 246, 0.14); border: 1px solid rgba(124, 108, 246, 0.35); color: #dcd8ff; font-size: 14.5px; }
.soon-note svg { width: 20px; height: 20px; flex: none; color: #c8bfff; }

/* spotlight (wide) cards with the title logo */
.card.spot { width: clamp(300px, 30vw, 440px); }
.card.spot .art { aspect-ratio: 16 / 9; }
.card.spot .art::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(0deg, rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0) 55%); }
.card.spot .spot-logo { position: absolute; z-index: 2; left: 16px; bottom: 14px; width: auto; height: auto; max-width: 58%; max-height: 34%; object-fit: contain;
  object-position: left bottom; filter: drop-shadow(0 3px 12px rgba(0, 0, 0, 0.6)); }
.card.spot .spot-name { position: absolute; z-index: 2; left: 16px; bottom: 14px; font-size: 20px; }
.card .soon { position: absolute; z-index: 2; top: 10px; left: 10px; height: 24px; padding: 0 10px; border-radius: 999px; display: inline-flex; align-items: center;
  font-size: 11px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; background: rgba(11, 15, 26, 0.78); border: 1px solid rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.card .art { transition: box-shadow .25s ease, transform .25s ease; }
.card:hover .art { box-shadow: 0 18px 40px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(255, 255, 255, 0.14); }
.card:hover { transform: translateY(-5px); }
.row-head h2 { font-size: 20px; }

/* footer */
.site-foot { border-top: 1px solid var(--line); margin-top: 40px; padding: 34px var(--gutter) 60px; color: var(--faint); font-size: 13px; }
.foot-in { max-width: 1400px; margin: 0 auto; display: grid; gap: 14px; }
.foot-links { display: flex; gap: 22px; flex-wrap: wrap; }
.foot-links a { color: var(--muted); font-weight: 600; }
.foot-links a:hover { color: var(--text); }
.site-foot p { margin: 0; line-height: 1.6; max-width: 820px; }
.site-foot .logo { font-size: 15px; }
.site-foot .logo-mark { width: 24px; }
@media (max-width: 880px) {
  .hero { height: 80vh; min-height: 520px; }
  .title-logo img { max-height: 110px; max-width: 76vw; }
  .hero .btn { height: 46px; padding: 0 18px; font-size: 15px; }
  .card.spot { width: 82vw; }
}
.player.is-yt .p-top { padding: 62px 16px 0; }
@media (max-width: 880px) {
  .hero-actions { flex-wrap: nowrap; gap: 8px; }
  .hero .btn { padding: 0 14px; font-size: 14.5px; height: 44px; }
  .hero .icon-btn { width: 44px; height: 44px; }
}

/* =================== rows and grids that always fill the screen (any width) =================== */
/* --per = how many poster cards are visible in a row (the fraction peeks the next card). Rows on Home / Movies /
   Series have at least 8 titles (FULL_ROW on the server) > 7.4, so a row can never end in empty space. */
:root { --per: 7.4; --cols: 7; --gap: 14px; }
@media (max-width: 1600px) { :root { --per: 6.4; --cols: 6; } }
@media (max-width: 1280px) { :root { --per: 5.4; --cols: 5; } }
@media (max-width: 1024px) { :root { --per: 4.4; --cols: 4; } }
@media (max-width: 880px)  { :root { --per: 3.4; --cols: 3; --gap: 12px; } }
@media (max-width: 560px)  { :root { --per: 2.4; --cols: 2; --gap: 10px; } }
:root { --card: calc((100vw - 2 * var(--gutter) - (var(--per) - 1) * var(--gap)) / var(--per)); }
.scroller { gap: var(--gap); }
.scroller > .card { width: var(--card); }
.scroller > .card.wide, .scroller > .card.spot { width: calc(var(--card) * 2 + var(--gap)); }
.scroller > .card.rank { width: calc(var(--card) * 1.45); }
.scroller > .card.rank .art { width: 66%; }
.scroller > .card.rank .num { font-size: calc(var(--card) * 0.62); }
.scroller > .card.channel { width: max(240px, calc(var(--card) * 1.7)); }
.scroller > .card.square { width: var(--card); }
.scroller > .genre-tile { width: calc(var(--card) * 1.25); }
.scroller > .artist-card { width: var(--card); }
.scroller > .artist-card img { width: 100%; height: auto; aspect-ratio: 1; }

/* grids (Browse all, categories, My List, search): full lines, last line centred */
.grid, .grid.wide, .genre-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 26px var(--gap); }
.grid > *, .grid .card, .grid .card.square { width: calc((100% - (var(--cols) - 1) * var(--gap)) / var(--cols)); flex: none; }
.grid.wide > * { width: calc((100% - (max(var(--cols) / 2, 1) - 1) * var(--gap)) / max(var(--cols) / 2, 1)); }
.genre-grid > .genre-tile { width: calc((100% - (var(--cols) - 2) * var(--gap)) / (var(--cols) - 1)); }
@media (max-width: 560px) { .genre-grid > .genre-tile { width: calc((100% - var(--gap)) / 2); } }

/* music: few albums / artists -> larger, centred, symmetrical */
.grid.fit { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 320px)); justify-content: center; gap: 26px 22px; }
.grid.fit > *, .grid.fit .card.square { width: auto; }
.artists-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 28px 56px; margin-bottom: 40px; }
.artists-row .artist-card { width: 190px; }
.artists-row .artist-card img { width: 190px; height: 190px; }
.music-hero .panel { display: flex; flex-direction: column; }
.music-hero .track-list { flex: 1; align-content: space-between; }
.grid.fit { display: flex; flex-wrap: wrap; justify-content: center; gap: 26px 22px; }
.grid.fit > *, .grid.fit .card.square { width: clamp(140px, calc((100% - 2 * 22px) / 3), 320px); }
@media (max-width: 560px) { .grid.fit > *, .grid.fit .card.square { width: calc((100% - 22px) / 2); } }
.prog.nogd { background: linear-gradient(90deg, rgba(124, 108, 246, 0.22), rgba(59, 130, 246, 0.08) 60%, rgba(59, 130, 246, 0.02)); border-color: rgba(124, 108, 246, 0.3); }
.prog.nogd b { display: flex; align-items: center; gap: 8px; }
.prog.nogd small { position: sticky; left: 212px; display: block; width: max-content; }
.artist-scroll { margin: 0 calc(-1 * var(--gutter)) 40px; }
.artist-scroll .artist-card img { border-radius: 50%; }
.mb-right .mb-xfade { width: auto; height: 32px; padding: 0 10px; border-radius: 999px; display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; border: 1px solid var(--line-2); color: var(--muted); }
.mb-right .mb-xfade svg { width: 15px; height: 15px; }
.mb-right .mb-xfade.on { color: #fff; border-color: rgba(124, 108, 246, 0.6); background: rgba(124, 108, 246, 0.2); }

/* ---------- subtitles ---------- */
.player video::cue { font-family: var(--font); font-weight: 600; line-height: 1.35; color: #fff; background: rgba(0, 0, 0, 0.72); }
.player.sub-s video::cue { font-size: 70%; }
.player.sub-m video::cue { font-size: 100%; }
.player.sub-l video::cue { font-size: 140%; }
.player.sub-nobg video::cue { background: transparent; text-shadow: 0 0 4px #000, 0 2px 3px #000, 0 0 1px #000; }
.sub-menu { position: absolute; z-index: 7; right: 24px; bottom: 112px; width: min(340px, calc(100% - 32px)); max-height: min(60vh, 520px); display: flex; flex-direction: column;
  background: rgba(11, 15, 26, 0.95); border: 1px solid var(--line-2); border-radius: 18px; box-shadow: var(--shadow); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); animation: pop .18s ease; }
.sm-head { display: flex; align-items: center; gap: 10px; padding: 14px 14px 10px 18px; border-bottom: 1px solid var(--line); }
.sm-head svg { width: 20px; height: 20px; }
.sm-head b { flex: 1; font-size: 16px; }
.sm-x { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; }
.sm-x:hover { background: rgba(255, 255, 255, 0.1); }
.sm-x svg { width: 16px; height: 16px; }
.sm-list { overflow-y: auto; padding: 6px; }
.sm-item { width: 100%; display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 10px; text-align: left; font-size: 14.5px; font-weight: 600; color: #d8dae6; }
.sm-item:hover { background: rgba(255, 255, 255, 0.08); }
.sm-item.on { color: #fff; background: rgba(124, 108, 246, 0.2); }
.sm-item svg, .sm-item i { width: 16px; height: 16px; flex: none; display: inline-block; }
.sm-empty { padding: 14px 12px; color: var(--muted); font-size: 14px; }
.sm-row { display: flex; align-items: center; gap: 6px; padding: 10px 14px; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); }
.sm-row span { flex: 1; }
.sm-pill { height: 30px; padding: 0 11px; border-radius: 999px; border: 1px solid var(--line-2); font-size: 12.5px; font-weight: 700; color: var(--muted); }
.sm-pill.on { background: #fff; color: #0a0a10; border-color: #fff; }
@media (max-width: 880px) { .sub-menu { right: 12px; bottom: 96px; } }
.guide-ch { gap: 10px; padding-right: 6px; }
.guide-ch .gc-txt { flex: 1; min-width: 0; }
.guide-ch .gc-txt b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gc-fav { width: 30px; height: 30px; flex: none; border-radius: 50%; display: grid; place-items: center; color: var(--faint); opacity: 0.75; transition: color .15s, opacity .15s, background .15s; }
.gc-fav svg { width: 16px; height: 16px; }
.gc-fav:hover { opacity: 1; color: var(--text); background: rgba(255, 255, 255, 0.08); }
.gc-fav.on { color: #ff7ab6; opacity: 1; }
.guide-ch, .guide-times .corner { width: 230px; }
.guide-times .corner { flex: none; }
@media (max-width: 880px) { .guide-ch, .guide-times .corner { width: 150px; } .gc-fav { width: 26px; height: 26px; } }

/* =================== card frames: fine hairline always, clear ring when selected =================== */
:root { --frame: rgba(255, 255, 255, 0.13); --ring: 0 0 0 2px rgba(255, 255, 255, 0.92), 0 0 0 5px rgba(124, 108, 246, 0.35); }
.card .art::after, .episode .thumb::after { content: ""; position: absolute; inset: 0; border-radius: inherit; border: 1px solid var(--frame); pointer-events: none; z-index: 3; }
.episode .thumb { position: relative; }
.card.channel { border-color: var(--frame); }
.genre-tile::after { border-color: rgba(255, 255, 255, 0.2); }
.card, .genre-tile, .artist-card, .episode { outline: none; }
.card .art, .card.channel, .genre-tile, .artist-card img, .episode .thumb { transition: transform .22s ease, box-shadow .22s ease; }
.card:hover .art, .card:focus-visible .art { box-shadow: var(--ring), 0 18px 40px rgba(0, 0, 0, 0.55); transform: scale(1.03); }
.card.rank:hover .art, .card.rank:focus-visible .art { transform: scale(1.04); }
.card.channel:hover, .card.channel:focus-visible { box-shadow: var(--ring); transform: translateY(-3px); }
.card.channel:hover .art, .card.channel:focus-visible .art { box-shadow: none; transform: none; }
.genre-tile:hover, .genre-tile:focus-visible { box-shadow: var(--ring), 0 16px 34px rgba(0, 0, 0, 0.45); transform: translateY(-3px) scale(1.02); }
.artist-card:hover img, .artist-card:focus-visible img { box-shadow: var(--ring); transform: scale(1.04); }
.episode:hover .thumb, .episode:focus-visible .thumb { box-shadow: var(--ring); }
.episode:focus-visible { background: var(--surface); border-color: var(--line); }
.card:hover, .card:focus-visible { transform: none; }
.scroller { padding-top: 10px; padding-bottom: 16px; }
.grid { padding: 6px 4px; }
.card .soon.sugg { background: rgba(124, 108, 246, 0.85); border-color: rgba(255, 255, 255, 0.25); }
.ch-heart { display: inline-flex; color: #ff7ab6; margin-left: 4px; }
.ch-heart svg { width: 12px; height: 12px; }

/* TV guide + player channel list: channels as framed cards, same style as the other cards */
.guide-ch { width: 216px; margin: 6px 8px 6px 6px; height: calc(100% - 12px); border-radius: 12px; border: 1px solid var(--frame);
  background: var(--surface-2); outline: 6px solid var(--surface); transition: box-shadow .2s ease, background .2s ease; }
.guide-ch:hover { background: #222a40; box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.9); }
.guide-ch.on { background: #231f45; box-shadow: inset 0 0 0 2px rgba(124, 108, 246, 0.95); }
.guide-ch img { border-radius: 10px; box-shadow: 0 0 0 1px var(--frame); }
.guide-row { border-bottom-color: transparent; }
.ch-item { border: 1px solid var(--frame); background: rgba(255, 255, 255, 0.03); margin-bottom: 6px; }
.ch-item:hover { box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.85); }
.ch-item.focus { box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.9); border-color: transparent; }
.ch-item.on { box-shadow: inset 0 0 0 2px rgba(124, 108, 246, 0.95); }
.ch-item img { box-shadow: 0 0 0 1px var(--frame); }
.card.channel img { box-shadow: 0 0 0 1px var(--frame); }
@media (max-width: 880px) { .guide-ch { width: 136px; margin: 5px 7px 5px 5px; height: calc(100% - 10px); } }

/* ---------- music filters + No. 1 banner ---------- */
.music-filters { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 12px; }
.music-filters .chips { margin: 0; }
.m-search { margin: 0 0 0 auto; flex: 0 1 360px; }
.m-search input { height: 44px; font-size: 15px; border-radius: 999px; }
.m-styles { margin-bottom: 26px; }
.m-styles .chip { height: 32px; font-size: 13px; }
.music-banner.m-top { padding: 0; justify-content: center; background: #120f24; }
.music-banner.m-top::before { content: ""; position: absolute; inset: -40px; background: var(--cover) center / cover; filter: blur(40px) saturate(1.3) brightness(0.55); }
.m-top-in { position: relative; display: flex; align-items: center; gap: 28px; padding: 28px; }
.m-top-in img { width: clamp(140px, 16vw, 220px); aspect-ratio: 1; object-fit: cover; border-radius: 14px; box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5), 0 0 0 1px var(--frame); flex: none; }
.m-top-in h2 { font-size: clamp(24px, 3vw, 38px); margin: 6px 0 6px; line-height: 1.1; }
@media (max-width: 880px) { .m-search { flex: 1 1 100%; margin: 0; } .m-top-in { flex-direction: column; align-items: flex-start; } }

/* ---------- My List ---------- */
.ml-sec { margin-bottom: 40px; }
.ml-sec .section-title svg { width: 20px; height: 20px; color: var(--muted); }
.ml-n { display: inline-grid; place-items: center; min-width: 26px; height: 22px; padding: 0 8px; border-radius: 11px; background: rgba(255, 255, 255, 0.1); font-size: 12.5px; color: var(--muted); }
.ml-empty { display: flex; align-items: center; gap: 16px; padding: 18px 20px; border-radius: 16px; border: 1px dashed var(--line-2); background: rgba(255, 255, 255, 0.02); flex-wrap: wrap; }
.ml-empty > svg { width: 28px; height: 28px; color: #c8bfff; flex: none; }
.ml-empty div { flex: 1; min-width: 220px; }
.ml-empty b { font-size: 15.5px; }
.ml-empty p { margin: 3px 0 0; color: var(--muted); font-size: 14px; }

/* ---------- save buttons on cards (+ / ✓, ♥ for channels) ---------- */
.qa { position: absolute; z-index: 4; right: 8px; bottom: 8px; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(11, 15, 26, 0.78); border: 1px solid rgba(255, 255, 255, 0.35); color: #fff; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  opacity: 0; transform: scale(0.9); transition: opacity .18s ease, transform .18s ease, background .15s; cursor: pointer; }
.qa svg { width: 17px; height: 17px; }
.qa:hover { background: #fff; color: #0b0f1a; }
.qa.on { background: var(--accent); border-color: transparent; color: #fff; }
.qa.heart.on { background: rgba(11, 15, 26, 0.78); color: #ff7ab6; border-color: rgba(255, 122, 182, 0.5); }
.card:hover .qa, .card:focus-within .qa, .qa.on { opacity: 1; transform: none; }
.card.channel { position: relative; }
.card.channel .qa { top: 10px; right: 10px; bottom: auto; width: 30px; height: 30px; }
.card.rank .qa { right: 6px; bottom: 6px; }
@media (hover: none) { .qa { opacity: 0.92; transform: none; width: 30px; height: 30px; } .qa svg { width: 15px; height: 15px; } }

/* =================== announcement bar =================== */
:root { --ann-h: 0px; }
#ann-bar { position: fixed; z-index: 55; left: 0; right: 0; top: 0; }
.nav { top: var(--ann-h); }
body { padding-top: var(--ann-h); }
.ann { color: #fff; font-size: 14px; font-weight: 600; box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25); }
.ann-in { display: flex; align-items: center; gap: 12px; height: 42px; padding: 0 var(--gutter); }
.ann-info { background: linear-gradient(90deg, #3b82f6, #6c5ce7 55%, #a855f7); }
.ann-custom .ann-tag { background: var(--look-tag); color: #fff; }
.ann-custom .ann-cta { background: var(--look-ink); color: #000; }
.ann-custom .ann-x, .ann-custom .ann-count { color: inherit; }
.ann-offer { background: linear-gradient(90deg, #8a6418, #d4a73a 35%, #f2c14e 50%, #d4a73a 65%, #8a6418); color: #1a1205; }
.ann-maintenance { background: linear-gradient(90deg, #b45309, #f59e0b); color: #1c1102; }
.ann-important { background: linear-gradient(90deg, #b91c1c, #ef4444); }
.ann-tag { flex: none; height: 22px; padding: 0 9px; border-radius: 6px; display: inline-flex; align-items: center; font-size: 10.5px; font-weight: 900;
  letter-spacing: 0.12em; text-transform: uppercase; background: rgba(0, 0, 0, 0.22); color: inherit; }
.ann-offer .ann-tag { background: #1a1205; color: #f2c14e; }
.ann-ic { flex: none; display: grid; place-items: center; }
.ann-ic svg { width: 18px; height: 18px; }
.ann-text { flex: 1; min-width: 0; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 3%, #000 97%, transparent); mask-image: linear-gradient(90deg, transparent, #000 3%, #000 97%, transparent); }
.ann-run { display: flex; justify-content: center; white-space: nowrap; }
.ann-run span { padding: 0 2px; }
.ann-run.ticker { justify-content: flex-start; width: max-content; animation: ann-scroll linear infinite; }
.ann-run.ticker span { padding-right: 90px; }
.ann-text:hover .ann-run.ticker, .p-ticker:hover .ann-run.ticker { animation-play-state: paused; }
@keyframes ann-scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.ann-when { font-weight: 800; }
.ann-cta { flex: none; height: 28px; padding: 0 14px; border-radius: 999px; display: inline-flex; align-items: center; font-size: 13px; font-weight: 800;
  background: rgba(255, 255, 255, 0.95); color: #0b0f1a; }
.ann-offer .ann-cta { background: #1a1205; color: #f2c14e; }
.ann-cta:hover { filter: brightness(1.08); }
.ann-count { flex: none; font-size: 12px; opacity: 0.8; }
.ann-x { flex: none; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; color: inherit; opacity: 0.85; }
.ann-x:hover { opacity: 1; background: rgba(0, 0, 0, 0.18); }
.ann-x svg { width: 15px; height: 15px; }
.p-ticker { position: absolute; z-index: 3; left: 0; right: 0; bottom: 98px; display: flex; align-items: center; gap: 12px; height: 38px; padding: 0 20px;
  color: #fff; font-weight: 700; font-size: 14.5px; opacity: 0.94; }
.p-ticker .sep { font-style: normal; opacity: 0.6; padding: 0 22px; }
.player.idle .p-ticker { bottom: 0; }
@media (max-width: 880px) {
  .ann-in { height: 40px; gap: 8px; font-size: 13px; }
  .ann-count { display: none; }
  .ann-cta { height: 26px; padding: 0 10px; font-size: 12px; }
  .p-ticker { bottom: 92px; font-size: 13px; }
}

/* ---------- live messages + bell ---------- */
.lm-card { position: fixed; z-index: 260; top: calc(var(--ann-h) + 84px); right: 24px; width: min(360px, calc(100vw - 32px)); padding: 14px 16px 16px; border-radius: 16px;
  background: rgba(17, 22, 36, 0.96); border: 1px solid var(--line-2); box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  overflow: hidden; animation: lm-in .3s ease; }
.player .lm-card { position: absolute; top: 84px; }
.lm-card.out { opacity: 0; transform: translateX(20px); transition: all .25s ease; }
@keyframes lm-in { from { opacity: 0; transform: translateX(30px); } }
.lm-card::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--grad); }
.lm-offer::before { background: linear-gradient(#f2c14e, #a8781e); }
.lm-maintenance::before { background: #f59e0b; }
.lm-important::before { background: #ef4444; }
.lm-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; }
.lm-from { font-size: 11px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.lm-offer .lm-from { color: var(--gold); }
.lm-maintenance .lm-from { color: #fbbf24; }
.lm-important .lm-from { color: #f87171; }
.lm-x { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; color: var(--muted); }
.lm-x:hover { background: rgba(255, 255, 255, 0.1); color: var(--text); }
.lm-x svg { width: 15px; height: 15px; }
.lm-card p { margin: 0 0 12px; font-size: 15px; line-height: 1.45; font-weight: 600; }
.lm-cta { display: inline-flex; align-items: center; height: 34px; padding: 0 16px; border-radius: 999px; background: #fff; color: #0b0f1a; font-weight: 750; font-size: 13.5px; }
.lm-timer { position: absolute; left: 0; bottom: 0; height: 3px; width: 100%; background: rgba(255, 255, 255, 0.35); transition: width .1s linear; }
.lm-urgent { z-index: 300; position: absolute; }
.bell-btn { position: relative; background: transparent; border: 0; }
.bell-btn svg { width: 20px; height: 20px; }
.bell-n { position: absolute; top: 4px; right: 3px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: #ef4444; color: #fff; font-size: 10.5px; font-weight: 800; display: grid; place-items: center; }
.bell-panel { width: min(380px, calc(100vw - 24px)); max-height: 70vh; overflow-y: auto; padding: 0; right: -60px; }
.bp-head { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px; border-bottom: 1px solid var(--line); position: sticky; top: 0; background: var(--surface); }
.bp-item { display: flex; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.bp-item p { margin: 0 0 4px; font-size: 14px; line-height: 1.45; }
.bp-item small { color: var(--faint); font-size: 12px; display: block; margin-bottom: 6px; }
.bp-item .lm-cta { height: 28px; padding: 0 12px; font-size: 12.5px; }
.bp-dot { width: 8px; height: 8px; border-radius: 50%; background: transparent; margin-top: 6px; flex: none; }
.bp-item.new .bp-dot { background: var(--accent-2); }
.bp-item.new { background: rgba(124, 108, 246, 0.07); }
.bp-empty { padding: 26px 18px; color: var(--muted); font-size: 14px; text-align: center; }
@media (max-width: 880px) { .lm-card, .player .lm-card { top: auto; bottom: 150px; right: 12px; } .bell-panel { right: -100px; } }

/* ---------- phones: portrait banner, whole wide picture when there is none ---------- */
.hero-fill, .hero-bg-m, .detail-hero .bg-m, .detail-hero .hero-fill { display: none; }
@media (max-width: 700px) {
  .hero-slide.has-m .hero-bg:not(.hero-bg-m) { display: none; }
  .hero-slide.has-m .hero-bg-m { display: block; background-position: center top; }
  .hero-slide.no-m .hero-fill, .detail-hero.no-m .hero-fill { display: block; position: absolute; inset: -40px; background-size: cover; background-position: center;
    filter: blur(28px) brightness(.45) saturate(1.2); transform: scale(1.1); }
  .hero-slide.no-m .hero-bg { inset: calc(var(--nav-h) + env(safe-area-inset-top)) 0 auto 0; height: 56.25vw; background-size: cover; background-position: center;
    -webkit-mask-image: linear-gradient(180deg, #000 70%, transparent); mask-image: linear-gradient(180deg, #000 70%, transparent); }
  .detail-hero.has-m .bg:not(.bg-m) { display: none; }
  .detail-hero.has-m .bg-m { display: block; background-position: center top; }
  .detail-hero.no-m .bg { inset: calc(var(--nav-h) + env(safe-area-inset-top)) 0 auto 0; height: 56.25vw;
    -webkit-mask-image: linear-gradient(180deg, #000 70%, transparent); mask-image: linear-gradient(180deg, #000 70%, transparent); }
}

/* ---------- player on phones: reachable close, room for the notch / home bar, tidy controls ---------- */
.p-x { flex: none; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.16); color: #fff; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.p-x:hover { background: rgba(255, 255, 255, 0.22); }
.p-x svg { width: 20px; height: 20px; }
.p-top { padding-top: max(22px, calc(env(safe-area-inset-top) + 10px)); padding-left: max(26px, env(safe-area-inset-left)); padding-right: max(26px, env(safe-area-inset-right)); }
.p-bottom { padding-bottom: max(24px, calc(env(safe-area-inset-bottom) + 10px)); padding-left: max(26px, env(safe-area-inset-left)); padding-right: max(26px, env(safe-area-inset-right)); }
@media (max-width: 600px) {
  .p-top { padding-left: 14px; padding-right: 14px; gap: 10px; }
  .p-top [data-act="close"].btn { display: none; }
  .p-top .p-title { font-size: 16px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .p-bottom { padding-left: 8px; padding-right: 8px; }
  .p-ctrls { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 0; overflow: visible; }
  .p-ctrls > .pc, .p-ctrls .p-vol > .pc { flex: 0 0 calc(100% / var(--cols, 4)); }
  .p-ctrls .pc-sep, .p-ctrls .spacer { display: none; }
  .p-ctrls .p-vol { display: contents; }
  .p-ctrls .pc { min-width: 0; width: 100%; padding: 8px 2px 6px; }
  .p-ctrls .pc span { font-size: 11px; }
}

/* channel list on phones: below the notch, swipe-free close button easy to reach */
.ch-head { padding-top: max(20px, calc(env(safe-area-inset-top) + 8px)); padding-left: max(18px, env(safe-area-inset-left)); }
.ch-list { padding-bottom: max(20px, calc(env(safe-area-inset-bottom) + 12px)); }
@media (max-width: 600px) { .player .ch-panel { width: 100vw; } .ch-head .icon-btn { width: 44px; height: 44px; margin-left: auto; background: rgba(255,255,255,.1); } }
@media (max-width: 600px) { .player .osd { bottom: calc(env(safe-area-inset-bottom) + 175px); left: 12px; right: 12px; width: auto; transform: none; } }

/* Back arrow on inner pages (film, album, artist, category, account…) */
.nav-back { flex: none; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; margin-right: -8px;
  background: rgba(255, 255, 255, 0.1); border: 1px solid rgba(255, 255, 255, 0.14); color: #fff; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.nav-back:hover { background: rgba(255, 255, 255, 0.2); }
.nav-back svg { width: 20px; height: 20px; }
@media (max-width: 600px) { .nav-back + .nav-logo svg, .nav-back + .nav-logo img { max-width: 150px; } }
/* YouTube trailers: taps go to the video, so our close button must never fade away */
.player.is-yt.idle .p-ui { opacity: 1; cursor: auto; }
.player.is-yt .p-top { padding-top: max(14px, calc(env(safe-area-inset-top) + 8px)); }

/* resume */
.resume-note { position: absolute; z-index: 6; left: 50%; top: max(84px, calc(env(safe-area-inset-top) + 70px)); transform: translateX(-50%); display: flex; align-items: center; gap: 12px;
  padding: 8px 8px 8px 16px; border-radius: 99px; background: rgba(14, 18, 32, 0.88); border: 1px solid rgba(255, 255, 255, 0.14); font-size: 14px; white-space: nowrap;
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); transition: opacity .5s; animation: fade .3s ease; }
.resume-note.out { opacity: 0; }
.resume-note button { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 14px; border-radius: 99px; background: #fff; color: #0b0f1a; font-weight: 700; font-size: 13.5px; }
.resume-note button svg { width: 16px; height: 16px; }
.live-title { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.back-ch { margin-left: auto; height: 44px; font-size: 15px; letter-spacing: 0; gap: 8px; padding: 0 18px 0 6px; }
.back-ch img { width: 32px; height: 32px; border-radius: 21%; object-fit: contain; }
.back-ch svg { width: 16px; height: 16px; }
@media (max-width: 600px) { .back-ch { margin-left: 0; width: 100%; justify-content: center; } }
.mb-resume { color: #b9b0ff; font-weight: 600; }
.live-art, .card .art.live-art { position: relative; display: grid; place-items: center; background: linear-gradient(180deg, var(--tile-a, #1b2340), var(--tile-b, #0e1322)); }
.live-art-bg { display: none; }
.live-art .live-logo { position: relative; height: 100%; width: auto; max-width: none; object-fit: contain; border-radius: 0; }
.live-badge { position: absolute; left: 10px; top: 10px; display: inline-flex; align-items: center; gap: 6px; padding: 3px 9px; border-radius: 6px; background: #e5484d; color: #fff; font-size: 11px; font-weight: 800; letter-spacing: .08em; }
.live-badge .live-dot { background: #fff; box-shadow: none; }
.card .art.live-art img.live-logo { position: absolute; top: -18%; bottom: auto; left: 50%; right: auto; width: auto; height: 136%; max-width: none; aspect-ratio: 1; object-fit: contain; transform: translateX(-50%); transition: transform .3s; }
.card:hover .art.live-art img.live-logo { transform: translateX(-50%) scale(1.04); }
/* phones held upright: the video box hugs the picture, so subtitles sit on the picture (not under the buttons) */
@media (orientation: portrait) and (max-width: 700px) {
  .player video { height: auto; max-height: 100%; aspect-ratio: 16 / 9; }
}
/* no grey flash when tapping buttons on iPhone */
html { -webkit-tap-highlight-color: transparent; }
button, a, [role="button"] { -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
/* phones held upright: picture centred in the screen */
@media (orientation: portrait) and (max-width: 700px) {
  /* no transform on the video (on iPhone it makes everything drawn over the video flicker) */
  .player video { position: absolute; left: 0; width: 100%; aspect-ratio: auto; height: calc(100vw * 9 / 16); top: calc(50% - 100vw * 9 / 32); transform: none; }
}

/* touch screens: no sticky hover highlight on the player buttons */
@media (hover: none) {
  .p-ctrls button:hover, .p-ctrls .pc:hover { background: none; }
  .p-ctrls .pc:active { background: rgba(255, 255, 255, 0.14); }
}

/* PIN pad + profile lock */
.pin-pad { text-align: center; }
.pin-pad .pin-av { display: flex; justify-content: center; margin-bottom: 12px; }
.pin-pad p { margin-bottom: 14px; }
.pin-dots { display: flex; justify-content: center; gap: 16px; margin: 6px 0 10px; }
.pin-dots i { width: 16px; height: 16px; border-radius: 50%; border: 2px solid rgba(255,255,255,.5); transition: background .15s, transform .15s; }
.pin-dots i.on { background: #fff; border-color: #fff; transform: scale(1.08); }
.pin-dots.shake { animation: shake .4s; }
@keyframes shake { 20%, 60% { transform: translateX(-8px); } 40%, 80% { transform: translateX(8px); } }
.pin-keys { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; max-width: 280px; margin: 8px auto 0; }
.pin-keys button { height: 58px; border-radius: 16px; background: rgba(255,255,255,.07); border: 1px solid var(--line-2); font-size: 22px; font-weight: 650; color: #fff; display: grid; place-items: center; }
.pin-keys button:active { background: rgba(255,255,255,.2); }
.pin-keys button svg { width: 22px; height: 22px; }
.p-lock svg { width: 14px; height: 14px; vertical-align: -2px; opacity: .8; }
.pin-set { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.pin-set .pill svg { width: 13px; height: 13px; }
.pin-input { margin-top: 10px; letter-spacing: .4em; font-size: 20px; text-align: center; max-width: 200px; }

/* skip intro / recap + next episode countdown */
.skip-btn { position: absolute; z-index: 6; right: max(26px, env(safe-area-inset-right)); bottom: calc(max(24px, env(safe-area-inset-bottom)) + 120px);
  display: inline-flex; align-items: center; gap: 8px; height: 46px; padding: 0 20px; border-radius: 12px; background: rgba(255,255,255,.94); color: #0b0f1a;
  font-weight: 800; font-size: 15px; box-shadow: 0 10px 30px rgba(0,0,0,.4); animation: fade .25s ease; }
.skip-btn svg { width: 18px; height: 18px; }
.player .next-up { right: max(26px, env(safe-area-inset-right)); bottom: calc(max(24px, env(safe-area-inset-bottom)) + 120px); width: min(440px, calc(100% - 32px));
  padding: 12px; gap: 14px; align-items: center; z-index: 6; animation: fade .3s ease; }
.next-up img { width: 132px; aspect-ratio: 16/9; object-fit: cover; border-radius: 10px; flex: none; }
.next-up .nu-txt { min-width: 0; flex: 1; }
.next-up small { display: block; font-size: 11px; font-weight: 800; letter-spacing: .1em; color: var(--muted); }
.next-up b { display: block; margin: 3px 0 10px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nu-acts { display: flex; gap: 8px; flex-wrap: wrap; }
.nu-ring { position: absolute; top: 10px; right: 10px; width: 26px; height: 26px; transform: rotate(-90deg); }
.nu-ring circle { fill: none; stroke: rgba(255,255,255,.15); stroke-width: 3; }
.nu-ring .p { stroke: #fff; stroke-dasharray: 100.5; stroke-dashoffset: 0; transition: stroke-dashoffset 1s linear; }
@media (max-width: 600px) {
  .skip-btn, .player .next-up { bottom: calc(env(safe-area-inset-bottom) + 175px); right: 12px; }
  .player .next-up { left: 12px; width: auto; }
  .next-up img { width: 96px; }
}

/* thumbs */
.rate { display: inline-flex; gap: 6px; }
.rate-btn { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.28); background: rgba(255,255,255,.06); color: #fff; transition: background .15s, transform .15s; }
.rate-btn svg { width: 20px; height: 20px; }
.rate-btn.on { background: #fff; color: #0b0f1a; border-color: #fff; }
.rate-btn:active { transform: scale(.92); }
@media (hover: hover) { .rate-btn:hover { background: rgba(255,255,255,.16); } .rate-btn.on:hover { background: #fff; } }
#d-remind.on { background: rgba(124,108,246,.22); border-color: rgba(124,108,246,.6); }

/* profile pictures */
.avatar.pic { background: none; padding: 0; overflow: hidden; }
.avatar.pic svg { width: 100%; height: 100%; display: block; }
.avatar-pick { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin: 12px 0 18px; }
.avatar-pick button { border-radius: 18px; padding: 3px; border: 2px solid transparent; transition: transform .15s, border-color .15s; }
.avatar-pick button .avatar { width: 100%; height: auto; aspect-ratio: 1; border-radius: 14px; }
.avatar-pick button.on { border-color: #fff; transform: scale(1.04); }
@media (hover: hover) { .avatar-pick button:hover { transform: scale(1.06); } }
.av-themes { margin: 4px 0 0; flex-wrap: wrap; gap: 6px; }
.av-themes .chip { height: 32px; font-size: 13px; }
.pf-top { display: flex; align-items: center; gap: 14px; margin: 6px 0 10px; }
.pf-top .avatar.lg { width: 72px; height: 72px; border-radius: 18px; }
.pf-top-txt b { display: block; } .pf-top-txt small { color: var(--muted); }
/* long dialogs on phones: the buttons stay visible at the bottom */
.modal .modal-actions { position: sticky; bottom: -28px; margin: 8px -28px -28px; padding: 14px 28px calc(14px + env(safe-area-inset-bottom)); background: var(--surface); border-top: 1px solid var(--line); z-index: 2; }
@media (max-width: 880px) { .modal .modal-actions { bottom: -22px; margin: 8px -22px -22px; padding-left: 22px; padding-right: 22px; } }
@media (max-width: 480px) { .modal .modal-actions { flex-wrap: nowrap; gap: 8px; } .modal .modal-actions .btn { padding: 0 14px; flex: 1 1 auto; justify-content: center; } .modal .modal-actions [data-del] { flex: 0 0 auto; } }

/* silent trailer previews */
.hover-prev { position: absolute; inset: 0; z-index: 1; overflow: hidden; opacity: 0; transition: opacity .6s ease; pointer-events: none; background: #000; }
.hover-prev.on { opacity: 1; }
.hover-prev iframe, .hover-prev video { position: absolute; top: 50%; left: 50%; border: 0; transform: translate(-50%, -50%); object-fit: cover; }
.card .art { position: relative; }
.card .art .qa, .card .art .badge-new, .card .art .lock-badge { z-index: 2; }
.hero-bg .hover-prev { inset: 0; }
/* only the visible banner slide receives the mouse (hidden slides lie on top of it) */
.hero-slide:not(.on) { pointer-events: none; }

/* banner preview (from the console) */
.bp-bar { position: fixed; z-index: 90; left: 50%; bottom: 20px; transform: translateX(-50%); display: flex; align-items: center; gap: 12px; padding: 8px 10px 8px 16px;
  border-radius: 99px; background: rgba(14, 18, 32, .94); border: 1px solid rgba(255,255,255,.16); box-shadow: 0 14px 40px rgba(0,0,0,.5); font-size: 13.5px; white-space: nowrap;
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.bp-dot { width: 9px; height: 9px; border-radius: 50%; background: #f2c14e; box-shadow: 0 0 0 4px rgba(242,193,78,.2); }
.bp-seg { display: inline-flex; border: 1px solid var(--line-2); border-radius: 99px; overflow: hidden; }
.bp-seg button { padding: 6px 14px; font-size: 13px; color: var(--muted); }
.bp-seg button.on { background: #fff; color: #0b0f1a; font-weight: 700; }
.bp-nav { position: absolute; }
.bp-main .hero-actions { pointer-events: none; }
.bp-rows { padding: 0 var(--gutter) 40px; display: grid; gap: 22px; margin-top: -40px; position: relative; z-index: 3; }
.bp-row-ghost { height: 150px; border-radius: 14px; background: linear-gradient(90deg, rgba(255,255,255,.05), rgba(255,255,255,.02)); }
.bp-phone-wrap { min-height: 100vh; display: grid; place-items: center; padding: 24px 20px 90px; background: radial-gradient(circle at 50% 30%, #1b2240, #0b0f1a 70%); }
.bp-phone { width: 390px; height: 844px; max-height: calc(100vh - 110px); aspect-ratio: 390 / 844; border-radius: 46px; padding: 12px; background: #05070d;
  box-shadow: 0 0 0 2px #2a3150, 0 30px 80px rgba(0,0,0,.6); }
.bp-phone iframe { width: 100%; height: 100%; border: 0; border-radius: 36px; background: #0b0f1a; }
@media (max-width: 760px) { .bp-bar .muted { display: none; } }

/* Live TV: channel list next to the preview (same height as the video) */
.live-feature { align-items: stretch; }
.live-side { position: relative; min-height: 0; }
.live-side-in { position: absolute; inset: 0; display: flex; flex-direction: column; gap: 12px; min-height: 0; }
.live-info .li-head { display: flex; align-items: center; gap: 12px; }
.live-info .li-head img { width: 48px; height: 48px; border-radius: 12px; object-fit: contain; background: #fff; flex: none; }
.live-info .li-num { font-size: 11.5px; font-weight: 700; letter-spacing: .04em; }
.live-info h2 { font-size: 21px; margin: 2px 0 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.live-info .now { font-size: 14.5px; font-weight: 650; margin: 12px 0 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.live-info .li-tag { font-size: 10px; font-weight: 800; letter-spacing: .1em; background: #e5484d; color: #fff; border-radius: 5px; padding: 2px 6px; margin-right: 8px; vertical-align: 1px; }
.live-info .next { font-size: 13px; margin-top: 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.live-info .li-acts { display: flex; gap: 8px; margin-top: 12px; flex-wrap: wrap; }
.side-tools { display: grid; gap: 8px; }
.side-search { display: flex; align-items: center; gap: 8px; height: 38px; padding: 0 12px; border-radius: 10px; background: rgba(255,255,255,.05); border: 1px solid var(--line-2); }
.side-search svg { width: 16px; height: 16px; color: var(--muted); flex: none; }
.side-search input { flex: 1; background: none; border: 0; outline: none; color: #fff; font: inherit; font-size: 14px; min-width: 0; }
.side-cats { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; }
.side-cats::-webkit-scrollbar { display: none; }
.side-cats .chip { height: 30px; font-size: 12.5px; padding: 0 12px; flex: none; }
.side-list { flex: 1; min-height: 0; overflow-y: auto; display: grid; align-content: start; gap: 6px; padding-right: 4px; outline: none; scrollbar-width: thin; }
.sl-item { display: grid; grid-template-columns: 30px 40px minmax(0, 1fr) auto auto; align-items: center; gap: 10px; padding: 7px 8px; border-radius: 12px;
  border: 1px solid var(--line); background: rgba(255,255,255,.025); cursor: pointer; transition: background .15s, border-color .15s; }
.sl-item.on { border-color: rgba(124,108,246,.8); background: linear-gradient(90deg, rgba(79,155,255,.16), rgba(124,108,246,.16)); }
.sl-item.focus { outline: 2px solid #fff; outline-offset: 1px; }
@media (hover: hover) { .sl-item:hover { background: rgba(255,255,255,.07); } }
.sl-num { font-size: 12.5px; font-weight: 800; color: var(--muted); text-align: right; font-variant-numeric: tabular-nums; }
.sl-item img { width: 40px; height: 40px; border-radius: 9px; object-fit: contain; background: #fff; }
.sl-txt { min-width: 0; }
.sl-txt b { display: block; font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sl-txt small { display: block; font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sl-txt .progress { margin-top: 5px; height: 3px; }
.sl-live { display: grid; place-items: center; }
.sl-fav { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; color: var(--muted); }
.sl-fav svg { width: 16px; height: 16px; }
.sl-fav.on { color: #ff5d8f; }
.sl-empty { color: var(--muted); font-size: 13.5px; padding: 16px 6px; }
@media (max-width: 880px) {
  .live-feature { grid-template-columns: minmax(0, 1fr); }
  .live-side-in { position: static; }
  .side-list { max-height: 420px; }
}

/* casting to a TV */
.cast-ov { position: absolute; inset: 0; z-index: 5; display: grid; place-items: center; text-align: center; background: radial-gradient(circle at 50% 40%, rgba(40,48,90,.92), rgba(5,7,13,.96)); }
.cast-ov svg { width: 54px; height: 54px; color: #b9b0ff; margin: 0 auto 12px; display: block; }
.cast-ov b { display: block; font-size: 20px; margin-bottom: 4px; }
.cast-ov small { display: block; color: var(--muted); margin-bottom: 16px; }
@media (max-width: 600px) { .player .osd, .skip-btn, .player .next-up { bottom: calc(env(safe-area-inset-bottom) + 232px); } }

/* language choice */
.lang-row { display: inline-flex; border: 1px solid var(--line-2); border-radius: 99px; overflow: hidden; }
.lang-row button { padding: 5px 11px; font-size: 12.5px; color: var(--muted); white-space: nowrap; }
.lang-row button.on { background: #fff; color: #0b0f1a; font-weight: 700; }
.menu-lang { padding: 8px 12px 10px; display: grid; gap: 6px; }
.menu-lang small { color: var(--faint); font-size: 11.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
@media (max-width: 520px) { .landing-top .lang-row button { padding: 5px 8px; font-size: 11.5px; } }

/* business logo (EZALIO platform) */
.logo-img { letter-spacing: 0; }
.logo-wide { height: 34px; width: auto; max-width: 220px; object-fit: contain; display: block; }
.site-foot .logo-wide { height: 26px; }
.site-foot .powered { font-size: 12px; color: var(--faint); margin: 0 0 6px; } .site-foot .powered b { color: var(--muted); }
@media (max-width: 600px) { .logo-wide { height: 28px; max-width: 160px; } }
/* Live TV side list: never spill over the guide. Two columns only when there is room; the list is at least 440 px tall. */
.live-side { min-height: 440px; }
.live-side-in { overflow: hidden; }
@media (max-width: 1199px) {
  .live-feature { grid-template-columns: minmax(0, 1fr); }
  .live-side { min-height: 0; }
  .live-side-in { position: static; overflow: visible; }
  .side-list { max-height: 420px; }
}
/* film page buttons: wrap onto a second line on small screens (never wider than the screen) */
.detail-hero .hero-actions { flex-wrap: wrap; }
/* phones: Back arrow + logo + buttons must fit; with Back, show only the logo icon */
@media (max-width: 600px) { .nav-back + .nav-logo .logo > span, .nav-back + .nav-logo .logo-wide { display: none; } .nav-back + .nav-logo .logo-img::before { content: none; } }
@media (max-width: 600px) { .nav-back + .nav-logo .logo-img { display: none; } }

/* business's own section icons (Console › Menu & sections) */
.nav-links a .own-ic { width: 18px; height: 18px; object-fit: contain; vertical-align: -3px; margin-right: 6px; border-radius: 4px; }
.tabbar a .own-ic { width: 22px; height: 22px; object-fit: contain; border-radius: 5px; }

/* Radio (stations as square logo cards, live player in the bottom bar) */
.radio-page .page-title svg { width: 30px; height: 30px; vertical-align: -4px; margin-right: 4px; }
.radio-tools { display: flex; gap: 14px; align-items: flex-start; flex-wrap: wrap; margin-bottom: 8px; }
.radio-tools .chips { flex: 1; min-width: 0; margin-bottom: 14px; }
.radio-search { width: min(320px, 100%); height: 40px; }
.radio-art { background: linear-gradient(180deg, #1b2340, #0e1322); display: grid; place-items: center; }
.card .art.radio-art img { position: relative; inset: auto; width: 100%; height: 100%; object-fit: cover; transform: none; }
.radio-card .radio-eq { position: absolute; left: 10px; bottom: 10px; display: none; gap: 3px; align-items: flex-end; height: 18px; padding: 5px 7px; border-radius: 8px; background: rgba(0,0,0,.6); }
.radio-card .radio-eq i { width: 3px; background: #fff; border-radius: 2px; animation: radio-eq .9s ease-in-out infinite; }
.radio-card .radio-eq i:nth-child(2) { animation-delay: .25s; } .radio-card .radio-eq i:nth-child(3) { animation-delay: .5s; }
.radio-card.on .radio-eq { display: flex; }
.radio-card.on .art { box-shadow: 0 0 0 3px var(--accent, #6c5ce7); }
@keyframes radio-eq { 0%, 100% { height: 4px; } 50% { height: 14px; } }
.mb-live { display: inline-flex; align-items: center; gap: 5px; color: #ff6b70; font-weight: 800; letter-spacing: .06em; font-size: 11px; }
.mb-radio-note { text-align: center; font-size: 12px; color: var(--muted, #a3a3b8); margin-top: 4px; }
.mb-now img.mb-radio-logo { object-fit: cover; cursor: default; }
.empty-note { color: var(--muted, #a3a3b8); text-align: center; padding: 60px 0; }
.radio-tools { flex-direction: column-reverse; align-items: stretch; gap: 12px; }
.radio-tools .chips { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-bottom: 10px; padding-bottom: 2px; }
.radio-tools .chips::-webkit-scrollbar { display: none; }
.radio-tools .chip { white-space: nowrap; flex: none; }
.radio-search { width: 100%; max-width: 420px; }
.card .art.radio-art { border-radius: 21%; background: none; overflow: hidden; }
.radio-card.on .art { box-shadow: 0 0 0 3px var(--accent, #6c5ce7), 0 10px 30px rgba(108,92,231,.35); }
/* radio cards = same shape as music album cards; the logo tile fills the card (its own rounded corners cropped) */
.card .art.radio-art { border-radius: var(--radius-sm); background: var(--surface); }
.card .art.radio-art img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.12); }
.card:hover .art.radio-art img { transform: scale(1.16); }
.card .art.radio-art::after { content: ""; position: absolute; inset: 0; border-radius: inherit; border: 1px solid rgba(255, 255, 255, 0.08); pointer-events: none; }
.radio-card.on .art { box-shadow: 0 0 0 2px var(--accent, #6c5ce7), 0 10px 26px rgba(0, 0, 0, 0.4); }

/* ---- Radio: wide colour tiles (station colour from its logo), logo badge, name + genre ---- */
.grid.radio-grid { --rcols: 4; gap: 18px; }
.grid.radio-grid > .radio-tile { width: calc((100% - (var(--rcols) - 1) * 18px) / var(--rcols)); }
@media (max-width: 1400px) { .grid.radio-grid { --rcols: 3; } }
@media (max-width: 980px) { .grid.radio-grid { --rcols: 2; } }
@media (max-width: 560px) { .grid.radio-grid { --rcols: 1; gap: 12px; } }
.radio-tile { position: relative; display: flex; align-items: center; gap: 16px; aspect-ratio: 2.35 / 1; padding: 0 18px; border-radius: var(--radius);
  background: radial-gradient(120% 140% at 0% 0%, rgba(255,255,255,.14), transparent 55%), linear-gradient(135deg, var(--c1), var(--c2));
  box-shadow: 0 12px 28px rgba(0,0,0,.35); overflow: hidden; cursor: pointer; transition: transform .2s ease, box-shadow .2s ease; color: #fff; }
.radio-tile::before { content: ""; position: absolute; right: -40px; top: -40px; width: 150px; height: 150px; border-radius: 50%; background: rgba(255,255,255,.10); }
.radio-tile::after { content: ""; position: absolute; inset: 0; border-radius: inherit; border: 1px solid rgba(255,255,255,.16); pointer-events: none; }
.radio-tile:hover { transform: translateY(-3px); box-shadow: 0 18px 36px rgba(0,0,0,.45); }
.radio-tile.on { box-shadow: 0 0 0 2px #fff, 0 18px 36px rgba(0,0,0,.45); }
.rt-badge { position: relative; flex: none; width: 34%; max-width: 104px; aspect-ratio: 1; border-radius: 22%; overflow: hidden; background: #fff; box-shadow: 0 8px 20px rgba(0,0,0,.3); }
.rt-badge img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.12); }
.rt-text { position: relative; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.rt-text b { font-size: clamp(15px, 1.25vw, 18px); font-weight: 800; letter-spacing: -.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rt-text small { font-size: 13px; opacity: .8; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rt-top { position: absolute; top: 12px; right: 14px; display: flex; gap: 8px; align-items: center; }
.rt-live { display: inline-flex; align-items: center; gap: 5px; font-size: 10px; font-weight: 800; letter-spacing: .1em; padding: 3px 8px; border-radius: 6px; background: rgba(0,0,0,.35); }
.rt-live i { width: 6px; height: 6px; border-radius: 50%; background: #ff5a5f; }
.rt-flag { font-size: 16px; line-height: 1; }
.radio-tile .radio-eq { position: absolute; right: 14px; bottom: 12px; display: none; gap: 3px; align-items: flex-end; height: 18px; padding: 5px 7px; border-radius: 8px; background: rgba(0,0,0,.35); }
.radio-tile .radio-eq i { width: 3px; background: #fff; border-radius: 2px; animation: radio-eq .9s ease-in-out infinite; }
.radio-tile .radio-eq i:nth-child(2) { animation-delay: .25s; } .radio-tile .radio-eq i:nth-child(3) { animation-delay: .5s; }
.radio-tile.on .radio-eq { display: flex; }
.radio-tile .qa { position: absolute; right: 12px; bottom: 10px; opacity: 0; transition: opacity .2s; }
.radio-tile:hover .qa { opacity: 1; } .radio-tile.on .qa { right: 64px; }
.scroller > .radio-tile { width: clamp(260px, calc(var(--card) * 1.9), 380px); flex: none; }

/* ---- Music: full covers, title + artist on a frosted strip inside the cover, play button ---- */
.album-card .art { border-radius: 14px; box-shadow: 0 16px 34px rgba(0,0,0,.45); }
.album-card .al-cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 26px 12px 10px; display: flex; flex-direction: column; gap: 2px;
  background: linear-gradient(180deg, transparent, rgba(8,10,18,.55) 35%, rgba(8,10,18,.85)); backdrop-filter: blur(2px); }
.album-card .al-cap b { font-size: 14px; font-weight: 750; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.album-card .al-cap small { font-size: 12px; color: rgba(255,255,255,.72); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.album-card .al-play { position: absolute; right: 10px; bottom: 54px; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; border: 0; cursor: pointer;
  background: #fff; color: #0b0f1a; box-shadow: 0 8px 20px rgba(0,0,0,.4); opacity: 0; transform: translateY(6px); transition: opacity .2s, transform .2s; }
.album-card .al-play svg { width: 18px; height: 18px; margin-left: 2px; }
.album-card:hover .al-play, .album-card:focus-visible .al-play { opacity: 1; transform: none; }
@media (hover: none) { .album-card .al-play { opacity: 1; transform: none; width: 38px; height: 38px; } }
.music-page { position: relative; }
.music-glow { position: absolute; left: 50%; top: -120px; width: 120%; max-width: 1600px; height: 560px; transform: translateX(-50%); background: var(--glow) center / cover;
  filter: blur(90px) saturate(1.4); opacity: .22; pointer-events: none; z-index: -1; mask-image: linear-gradient(180deg, #000 30%, transparent); -webkit-mask-image: linear-gradient(180deg, #000 30%, transparent); }
@media (max-width: 560px) { .radio-tile { aspect-ratio: 3.1 / 1; padding: 0 14px; gap: 14px; } .rt-badge { width: 27%; } .rt-top { top: 10px; right: 12px; } }
.album-card .al-cap { backdrop-filter: none; padding: 34px 12px 11px; background: linear-gradient(180deg, transparent, rgba(8,10,18,.62) 45%, rgba(8,10,18,.9)); }
.album-card .qa { top: 8px; bottom: auto; right: 8px; }
.album-card .al-play { bottom: auto; top: 50%; right: 50%; transform: translate(50%, -40%); width: 54px; height: 54px; }
.album-card:hover .al-play, .album-card:focus-visible .al-play { transform: translate(50%, -50%); }
@media (hover: none) { .album-card .al-play { opacity: 0; } }
/* radio tiles get the same highlight frame as every other card (hover + keyboard focus); playing = white frame */
.radio-tile:hover, .radio-tile:focus-visible { box-shadow: var(--ring), 0 18px 40px rgba(0, 0, 0, 0.55); transform: translateY(-3px); outline: none; }
.radio-tile.on:hover, .radio-tile.on:focus-visible { box-shadow: 0 0 0 2px #fff, var(--ring), 0 18px 40px rgba(0, 0, 0, 0.55); }
.album-card:hover .art, .album-card:focus-visible .art { box-shadow: var(--ring), 0 18px 40px rgba(0, 0, 0, 0.55); }
/* replay */
.pill.behind { background: rgba(242, 193, 78, .18); color: #f2c14e; font-weight: 800; }
.prog.replay { border-left: 3px solid rgba(124, 108, 246, .8); }
.prog.replay small::after { content: " · ⟲ Watch again"; color: #b9b0ff; }
/* account: redeem a code + invite friends side by side */
.acct-duo { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.acct-duo .panel { margin: 0; }
.acct-duo h3 svg { width: 20px; height: 20px; vertical-align: -4px; margin-right: 4px; }
@media (max-width: 760px) { .acct-duo { grid-template-columns: 1fr; } }
.code-row { display: flex; gap: 10px; } .code-row .input { flex: 1; min-width: 0; text-transform: uppercase; }
#invite-link { text-transform: none; }
.code-details { margin: 0 0 14px; font-size: 14px; color: var(--muted, #a3a3b8); } .code-details summary { cursor: pointer; }
.notice svg { width: 16px; height: 16px; vertical-align: -3px; }
.acct-duo { margin-bottom: 18px; }
.code-row .input::placeholder { text-transform: none; }
.prog.reminded { box-shadow: inset 0 0 0 1.5px rgba(242, 193, 78, .7); }
.prog.reminded b::after { content: " 🔔"; font-size: 11px; }

/* privacy: choice bar, legal pages, account privacy panel */
.consent-bar { position: fixed; left: 50%; bottom: 18px; transform: translateX(-50%); z-index: 90; width: min(760px, calc(100% - 24px)); display: flex; gap: 18px; align-items: center;
  padding: 16px 18px; border-radius: 16px; background: rgba(16, 20, 34, .96); border: 1px solid var(--line); box-shadow: 0 20px 60px rgba(0,0,0,.55); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.consent-bar p { margin: 4px 0 0; color: var(--muted); font-size: 13.5px; line-height: 1.5; }
.consent-bar a { color: var(--text); text-decoration: underline; }
.consent-btns { display: flex; gap: 8px; flex-shrink: 0; }
@media (max-width: 640px) { .consent-bar { flex-direction: column; align-items: stretch; bottom: calc(76px + env(safe-area-inset-bottom)); } .consent-btns .btn { flex: 1; } }
.consent-opt { display: flex; gap: 10px; align-items: flex-start; text-align: left; margin: 6px 0 4px; padding: 12px; border: 1px solid var(--line); border-radius: 12px; }
.consent-opt input { margin-top: 3px; width: 18px; height: 18px; accent-color: var(--accent, #6C5CE7); }
.consent-opt small { color: var(--muted); }
.check-line { display: flex; gap: 10px; align-items: flex-start; margin: 0 0 14px; font-size: 13.5px; color: var(--muted); cursor: pointer; line-height: 1.45; }
.check-line input { margin-top: 2px; accent-color: var(--accent); width: 16px; height: 16px; flex: none; }
.auth-legal { margin: 12px 0 0; font-size: 12.5px; color: var(--faint); text-align: center; line-height: 1.5; }
.auth-legal a { color: var(--muted); text-decoration: underline; }
.priv-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.priv-grid > div { display: flex; flex-direction: column; gap: 6px; padding: 16px; border: 1px solid var(--line); border-radius: 14px; background: rgba(255,255,255,.02); }
.priv-grid small { color: var(--muted); font-size: 13px; line-height: 1.45; flex: 1; }
.priv-grid .btn { align-self: flex-start; margin-top: 6px; }
@media (max-width: 760px) { .priv-grid { grid-template-columns: 1fr; } }
.legal-page { max-width: 820px; margin: 0 auto; padding: 24px var(--gutter, 20px) 60px; }
.legal-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 26px; }
.legal-text { background: var(--panel, #121726); border: 1px solid var(--line); border-radius: 18px; padding: 10px 30px 26px; line-height: 1.65; color: var(--muted); }
.legal-text h2 { color: var(--text); font-size: 19px; margin: 26px 0 8px; }
.legal-text h2:first-child { font-size: 28px; margin-top: 18px; }
.legal-text ul { padding-left: 20px; } .legal-text li { margin: 4px 0; }
.legal-text a, .legal-foot a { color: var(--text); }
.legal-foot { text-align: center; margin-top: 20px; color: var(--faint); font-size: 13px; }
.yt-ask { max-width: 420px; margin: 0 16px; text-align: center; padding: 22px; border-radius: 16px; background: rgba(8,10,18,.85); border: 1px solid rgba(255,255,255,.12); pointer-events: auto; }
.yt-ask p { color: rgba(255,255,255,.7); font-size: 14px; margin: 6px 0 16px; }
.card .badge-leave { background: linear-gradient(135deg, #f59e0b, #ef4444); letter-spacing: .04em; font-size: 10.5px; }
.leave-note { display: flex; gap: 10px; align-items: center; margin-top: 14px; padding: 10px 14px; border-radius: 12px; background: rgba(245,158,11,.1); border: 1px solid rgba(245,158,11,.3); color: var(--muted); font-size: 14px; max-width: 560px; }
.leave-note svg { width: 18px; height: 18px; color: #f59e0b; flex-shrink: 0; } .leave-note b { color: var(--text); }

/* content packs / add-ons */
.pack-note { display: flex; gap: 10px; align-items: center; margin-top: 14px; padding: 10px 12px 10px 14px; border-radius: 12px; max-width: 560px;
  background: color-mix(in srgb, var(--c) 14%, transparent); border: 1px solid color-mix(in srgb, var(--c) 45%, transparent); color: var(--muted); font-size: 14px; }
.pack-note svg { width: 18px; height: 18px; flex-shrink: 0; color: var(--text); } .pack-note b { color: var(--text); } .pack-note span { flex: 1; }
.pack-mini { display: flex; justify-content: space-between; padding: 10px 14px; border-radius: 12px; margin: 0 0 10px; text-align: left;
  background: color-mix(in srgb, var(--c) 16%, transparent); border: 1px solid color-mix(in srgb, var(--c) 45%, transparent); }
.addon-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.addon { border-radius: 16px; overflow: hidden; border: 1px solid var(--line); background: rgba(255,255,255,.02); display: flex; flex-direction: column; }
.addon-art { height: 110px; display: flex; gap: 6px; padding: 10px; align-items: center; overflow: hidden; position: relative;
  background: linear-gradient(135deg, var(--c), color-mix(in srgb, var(--c) 25%, #0b0f1a)); }
.addon-art img { height: 88px; width: 60px; object-fit: cover; border-radius: 8px; flex-shrink: 0; box-shadow: 0 6px 14px rgba(0,0,0,.35); }
.addon-art img.logo { width: 88px; object-fit: contain; background: rgba(255,255,255,.1); }
.addon-art img.full { position: absolute; inset: 0; width: 100%; height: 100%; border-radius: 0; }
.addon-body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.addon-body p { margin: 0; font-size: 14px; } .addon-body .btn { align-self: flex-start; margin-top: 8px; }
.addon-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; } .addon-head b { font-size: 17px; }
.addon-price { font-weight: 800; } .addon-price small { color: var(--muted); font-weight: 500; }

/* help centre + chat */
.help-page { max-width: 880px; }
.help-hero { text-align: center; padding: 26px 0 30px; } .help-hero h1 { font-size: clamp(28px, 4vw, 40px); margin: 0 0 18px; }
.help-search { position: relative; max-width: 560px; margin: 0 auto; } .help-search svg { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); width: 20px; height: 20px; color: var(--muted); }
.help-search .input { height: 54px; padding-left: 48px; font-size: 16px; border-radius: 16px; }
.help-cat { margin-bottom: 26px; } .help-cat h2 { font-size: 18px; margin: 0 0 10px; color: var(--muted); letter-spacing: .02em; }
.help-art { border: 1px solid var(--line); border-radius: 14px; background: rgba(255,255,255,.02); margin-bottom: 8px; overflow: hidden; }
.help-art summary { list-style: none; cursor: pointer; padding: 15px 18px; font-weight: 700; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.help-art summary::-webkit-details-marker { display: none; }
.help-art .chev svg { width: 18px; height: 18px; transition: transform .2s; color: var(--muted); } .help-art[open] .chev svg { transform: rotate(180deg); }
.help-art[open] { background: rgba(124,108,246,.06); border-color: rgba(124,108,246,.3); }
.help-body { padding: 0 18px 16px; color: var(--muted); line-height: 1.65; } .help-body p { margin: 0 0 10px; }
.help-vote { display: flex; gap: 8px; align-items: center; font-size: 13.5px; color: var(--faint); margin-top: 6px; flex-wrap: wrap; }
.help-contact { display: flex; justify-content: space-between; align-items: center; gap: 18px; flex-wrap: wrap; margin-top: 10px; }
.help-contact h3 { margin: 0 0 4px; } .help-contact p { margin: 0; } .help-contact-btns { display: flex; gap: 10px; flex-wrap: wrap; }
.help-contact-btns svg { width: 18px; height: 18px; }
.chat { margin-top: 16px; padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.chat-head { padding: 14px 18px; border-bottom: 1px solid var(--line); } .chat-head small { display: block; color: var(--faint); margin-top: 2px; }
.chat-msgs { padding: 16px 18px; max-height: 420px; min-height: 160px; overflow-y: auto; display: flex; flex-direction: column; gap: 10px; }
.chat-hello { color: var(--muted); text-align: center; padding: 30px 10px; }
.chat-msg { display: flex; flex-direction: column; max-width: 78%; } .chat-msg small { color: var(--faint); font-size: 11.5px; margin-top: 3px; }
.chat-msg.user { align-self: flex-end; align-items: flex-end; } .chat-msg.staff { align-self: flex-start; }
.chat-bubble { padding: 10px 14px; border-radius: 18px; line-height: 1.5; font-size: 14.5px; }
.chat-msg.user .chat-bubble { background: var(--grad); color: #fff; border-bottom-right-radius: 5px; }
.chat-msg.staff .chat-bubble { background: rgba(255,255,255,.08); border-bottom-left-radius: 5px; }
.chat-form { display: flex; gap: 10px; padding: 12px; border-top: 1px solid var(--line); align-items: flex-end; }
.chat-form .input { flex: 1; min-height: 46px; resize: none; padding-top: 12px; } .chat-form .btn { height: 46px; width: 52px; padding: 0; } .chat-form .btn svg { width: 20px; height: 20px; }

/* screen time */
.st-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 10px; } .st-grid small { display: block; color: var(--faint); font-size: 12px; margin-bottom: 4px; }
@media (max-width: 520px) { .st-grid { grid-template-columns: 1fr 1fr; } .st-grid > div:first-child { grid-column: 1 / -1; } }
.st-extra { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: 10px; font-size: 13.5px; }
.seg-pick { display: flex; gap: 8px; justify-content: center; margin: 6px 0 16px; flex-wrap: wrap; }
.seg-pick button { border: 1px solid var(--line); background: rgba(255,255,255,.04); color: inherit; border-radius: 999px; padding: 8px 16px; font: inherit; font-weight: 700; cursor: pointer; }
.seg-pick button.on { background: var(--grad); border-color: transparent; color: #fff; }
.tv-code { text-align: center; font-size: 30px; letter-spacing: 0.3em; font-weight: 700; text-transform: uppercase; }
