/*
 * PHILLYPSS @phillypss / + 55 43 9 9965-9855
 */
:root {
  --bg: #F6F6F4;
  --surface: #FFFFFF;
  --surface-2: #EEEEEB;
  --hover: #E6E6E2;
  --line: #E1E1DD;
  --fg: #181818;
  --muted: #66665F;
  --faint: #9B9B94;
  --live: #E0242E;
  --ok: #1B8A43;
  --warn: #B26A00;
  --on-video: #FFFFFF;
  --on-video-muted: rgba(255, 255, 255, .72);
  --video-panel: rgba(24, 24, 24, .96);
  --display: "Archivo", "Arial Narrow", system-ui, sans-serif;
  --body: "Hanken Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
  --gutter: clamp(16px, 3.2vw, 48px);
  --radius: 12px;
  --accent: var(--fg);
  --on-accent: var(--bg);
  --accent-video: #FFFFFF;
  --on-accent-video: #000000;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #131313; --surface: #1B1B1B; --surface-2: #242424; --hover: #2D2D2D; --line: #2C2C2C;
    --fg: #F1F1EE; --muted: #A3A39C; --faint: #6F6F69; --live: #FF3B45; --ok: #3CC46E; --warn: #F0A030; color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #131313; --surface: #1B1B1B; --surface-2: #242424; --hover: #2D2D2D; --line: #2C2C2C;
  --fg: #F1F1EE; --muted: #A3A39C; --faint: #6F6F69; --live: #FF3B45; --ok: #3CC46E; --warn: #F0A030; color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; }
body { margin: 0; background: var(--bg); color: var(--fg); font-family: var(--body); font-size: 15px; line-height: 1.55; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; }
[hidden] { display: none !important; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
a { color: inherit; text-decoration: none; }
:focus-visible { outline: 2px solid var(--fg); outline-offset: 2px; border-radius: 6px; }
.player :focus-visible { outline-color: var(--on-video); }
svg.i { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
svg.sm { width: 18px; height: 18px; }

.app { padding-inline: var(--gutter); padding-block: 0 40px; max-width: 1600px; margin: 0 auto; display: grid; gap: clamp(48px, 6vw, 80px); }
.h2 { font-family: var(--display); font-stretch: 110%; font-weight: 700; font-size: clamp(22px, 2.2vw, 28px); line-height: 1.15; letter-spacing: -.015em; margin: 0; text-wrap: balance; }
.lede { margin: 6px 0 0; color: var(--muted); max-width: 60ch; }
.page { display: grid; gap: 28px; margin-top: 32px; min-width: 0; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 40px; padding: 0 16px; border-radius: 10px; font-weight: 600; white-space: nowrap; transition: background .15s, color .15s, border-color .15s, opacity .15s; }
.btn-primary { background: var(--accent); color: var(--on-accent); }
.btn-primary:hover { opacity: .88; }
.btn-ghost { border: 1px solid var(--line); background: var(--surface); }
.btn-ghost:hover { background: var(--hover); }
.btn-danger { background: var(--live); color: #fff; }
.btn-danger:hover { opacity: .9; }
.btn-lg { height: 48px; padding: 0 22px; font-size: 16px; }
.btn-lg svg { width: 20px; height: 20px; }
.btn-block { width: 100%; }
.btn-sm { height: 32px; padding: 0 12px; font-size: 13px; border-radius: 8px; }
.icon-btn { width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; color: var(--muted); }
.icon-btn:hover { background: var(--hover); color: var(--fg); }
.link { text-decoration: underline; text-underline-offset: 3px; font-weight: 600; }

.topbar { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; gap: 32px; height: 68px; background: var(--bg); border-bottom: 1px solid var(--line); margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); }
.brand { display: flex; align-items: center; gap: 9px; font-family: var(--display); font-stretch: 125%; font-weight: 800; font-size: 21px; letter-spacing: -.02em; text-transform: lowercase; }
.brand svg { width: 22px; height: 22px; }
.nav { display: flex; gap: 4px; }
.nav a { padding: 8px 12px; border-radius: 8px; color: var(--muted); font-weight: 600; }
.nav a:hover { color: var(--fg); background: var(--hover); }
.nav a[aria-current="page"] { color: var(--fg); box-shadow: inset 0 -2px 0 var(--accent); border-radius: 8px 8px 0 0; }
.brand-logo { height: 30px; width: auto; max-width: 180px; object-fit: contain; display: block; }
.top-tools { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.top-tools form { display: contents; }
.theme-ic-dark { display: none; }
:root[data-theme="dark"] .theme-ic-dark { display: block; }
:root[data-theme="dark"] .theme-ic-light { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-ic-dark { display: block; }
  :root:not([data-theme="light"]) .theme-ic-light { display: none; }
}

.pill { display: inline-flex; align-items: center; gap: 7px; height: 32px; padding: 0 12px; border-radius: 999px; font-size: 13px; font-weight: 600; background: var(--surface-2); color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.pill .dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.pill.ok { color: var(--ok); }
.pill.warn { color: var(--warn); }
.pill.off { color: var(--live); }

.badge { display: inline-flex; align-items: center; height: 22px; padding: 0 8px; border-radius: 6px; font-size: 12px; font-weight: 700; background: var(--surface-2); color: var(--muted); }
.badge.ok { color: var(--ok); }
.badge.warn { color: var(--warn); }
.badge.off { color: var(--live); }

.alert { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); font-weight: 600; margin-top: 20px; }
.alert.success { border-color: color-mix(in srgb, var(--ok) 40%, var(--line)); color: var(--ok); }
.alert.error { border-color: color-mix(in srgb, var(--live) 40%, var(--line)); color: var(--live); }

.art { position: absolute; inset: 0; display: grid; place-items: center; overflow: hidden;
  background:
    radial-gradient(120% 90% at 85% 8%, hsl(var(--h) 72% 55% / .85), transparent 60%),
    radial-gradient(90% 80% at 0% 100%, hsl(calc(var(--h) + 60) 70% 45% / .55), transparent 65%),
    linear-gradient(135deg, hsl(var(--h) 45% 20%), hsl(calc(var(--h) + 30) 50% 9%)); }
.art::after { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(0deg, rgba(255,255,255,.035) 0 1px, transparent 1px 3px); pointer-events: none; }
.art-cover { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.art.has-cover::before { content: ""; position: absolute; inset: 0; background: linear-gradient(transparent 45%, rgba(0,0,0,.55)); z-index: 1; pointer-events: none; }
.art-logo { position: relative; z-index: 1; max-width: 58%; max-height: 52%; object-fit: contain; filter: drop-shadow(0 4px 18px rgba(0,0,0,.35)); }
.art.has-cover .art-logo { position: absolute; right: 8px; bottom: 8px; max-width: 30%; max-height: 28%; padding: 5px 7px; border-radius: 7px; background: rgba(0,0,0,.5); backdrop-filter: blur(6px); filter: none; }
.art-logo ~ b, .art.has-cover b { display: none; }
.art b { position: relative; font-family: var(--display); font-stretch: 125%; font-weight: 800; font-size: clamp(26px, 3.4vw, 42px); letter-spacing: -.03em; color: rgba(255,255,255,.94); text-shadow: 0 2px 24px rgba(0,0,0,.35); }

.live-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--live); animation: pulse 1.8s ease-in-out infinite; flex: none; }
@keyframes pulse { 50% { opacity: .3; } }
.ch-num { font-family: var(--display); font-stretch: 112%; font-weight: 800; font-variant-numeric: tabular-nums; background: var(--on-video); color: #000; border-radius: 5px; padding: 0 6px; font-size: 13px; }

.hero { position: relative; margin-inline: calc(var(--gutter) * -1); height: clamp(480px, 70vh, 680px); overflow: hidden; background: #000; display: flex; align-items: flex-end; }
.hero-slide { position: absolute; inset: 0; opacity: 0; transition: opacity .6s ease; }
.hero-slide[aria-current="true"] { opacity: 1; }
.hero-slide .art { justify-items: end; padding-right: clamp(24px, 10vw, 180px); }
.hero-slide .art b { font-size: clamp(90px, 16vw, 240px); opacity: .9; }
.hero-slide .art:not(.has-cover) .art-logo { max-width: 34%; max-height: 46%; }
.hero-slide .art.has-cover .art-logo { display: none; }
.hero-slide .art.has-cover::after { display: none; }
.hero-logo { height: 22px; width: auto; max-width: 90px; object-fit: contain; }
.hero-next { margin: 0; color: var(--muted); font-size: 14px; }
.hero-next b { color: var(--fg); font-weight: 600; }
.hero::after { content: ""; position: absolute; inset: 0; pointer-events: none; background:
  linear-gradient(90deg, var(--bg) 0%, color-mix(in srgb, var(--bg) 86%, transparent) 28%, color-mix(in srgb, var(--bg) 25%, transparent) 56%, transparent 74%),
  linear-gradient(0deg, var(--bg) 0%, transparent 34%); }
.hero-content { position: relative; z-index: 1; padding: 0 var(--gutter) clamp(76px, 9vw, 116px); max-width: 680px; display: grid; gap: 16px; justify-items: start; }
.hero-live { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 14px; color: var(--muted); }
.hero-live .ch-num { background: var(--fg); color: var(--bg); }
.hero-title { font-family: var(--display); font-stretch: 118%; font-weight: 800; font-size: clamp(38px, 5.6vw, 76px); line-height: .96; letter-spacing: -.03em; margin: 0; text-wrap: balance; }
.hero-desc { margin: 0; font-size: 17px; line-height: 1.5; max-width: 46ch; }
.hero-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 6px; }
.hero-fade { animation: hero-in .5s ease both; }
@keyframes hero-in { from { opacity: 0; transform: translateY(8px); } }
.hero-dots { position: absolute; z-index: 1; right: var(--gutter); bottom: clamp(76px, 9vw, 116px); display: flex; gap: 6px; }
.hero-dot { width: 52px; height: 24px; display: flex; align-items: center; }
.hero-dot span { position: relative; width: 100%; height: 4px; border-radius: 4px; overflow: hidden; background: color-mix(in srgb, var(--fg) 22%, transparent); }
.hero-dot i { position: absolute; inset: 0 auto 0 0; width: 0; background: var(--accent); }

.tags { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; color: var(--muted); font-weight: 500; }
.tag { border: 1px solid currentColor; border-radius: 5px; padding: 0 6px; font-size: 12px; font-weight: 700; opacity: .9; }

.rows { display: grid; gap: clamp(36px, 4vw, 52px); margin-top: clamp(-56px, -4vw, -24px); position: relative; z-index: 1; }
.row { display: grid; gap: 12px; min-width: 0; }
.row-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.row-title { font-family: var(--display); font-stretch: 110%; font-weight: 700; font-size: clamp(18px, 1.6vw, 22px); letter-spacing: -.01em; margin: 0; }
.row-title a:hover { text-decoration: underline; text-underline-offset: 4px; }
.row-nav { display: flex; gap: 6px; }
.row-nav button { width: 34px; height: 34px; border-radius: 9px; border: 1px solid var(--line); background: var(--surface); display: grid; place-items: center; }
.row-nav button:hover:not(:disabled) { background: var(--hover); }
.row-nav button:disabled { opacity: .35; cursor: default; }
.row-nav svg { width: 18px; height: 18px; }
.row-nav .prev svg { transform: rotate(90deg); }
.row-nav .next svg { transform: rotate(-90deg); }
.track { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 5 * 14px) / 6); gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; scrollbar-width: none; padding-block: 3px; }
.track::-webkit-scrollbar { display: none; }
.tile { scroll-snap-align: start; display: grid; gap: 10px; align-content: start; text-align: left; min-width: 0; }
.tile-art { position: relative; aspect-ratio: 16 / 9; border-radius: 10px; overflow: hidden; background: #000; transition: box-shadow .15s; }
.tile:hover .tile-art, .tile:focus-visible .tile-art { box-shadow: 0 0 0 2px var(--bg), 0 0 0 4px var(--fg); }
.tile:focus-visible { outline: none; }
.tile-num { position: absolute; top: 8px; left: 8px; z-index: 1; font-family: var(--display); font-stretch: 112%; font-weight: 800; font-size: 12px; font-variant-numeric: tabular-nums; padding: 1px 6px; border-radius: 5px; background: rgba(0,0,0,.6); color: #fff; }
.tile-live { position: absolute; top: 8px; right: 8px; z-index: 1; display: flex; align-items: center; gap: 5px; font-size: 11px; font-weight: 700; padding: 1px 7px; border-radius: 5px; background: rgba(0,0,0,.6); color: #fff; }
.tile-live .live-dot { width: 6px; height: 6px; }
.tile-lock { gap: 4px; background: var(--accent); color: var(--on-accent); }
.tile-lock svg { width: 12px; height: 12px; }
.tile-bar { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; height: 3px; background: rgba(255,255,255,.25); }
.tile-bar i { display: block; height: 100%; background: var(--live); }
.tile-play { position: absolute; inset: 0; z-index: 2; display: grid; place-items: center; background: rgba(0,0,0,.28); opacity: 0; transition: opacity .15s; }
.tile-play span { width: 46px; height: 46px; border-radius: 50%; background: #fff; color: #000; display: grid; place-items: center; }
.tile-play svg { width: 20px; height: 20px; margin-left: 2px; }
.tile:hover .tile-play, .tile:focus-visible .tile-play { opacity: 1; }
.tile-text { display: grid; gap: 1px; min-width: 0; }
.tile-title { font-weight: 600; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tile-sub { font-size: 13px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.country-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 10px; }
.country { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 10px; background: var(--surface); border: 1px solid var(--line); transition: background .15s, border-color .15s; min-width: 0; }
.country:hover { background: var(--hover); }
.country-flag { font-size: 26px; line-height: 1; }
.country-body { display: grid; min-width: 0; }
.country-name { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.country-count { font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }
.country.is-home { border-color: var(--fg); box-shadow: inset 0 0 0 1px var(--fg); }

.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.field { display: flex; align-items: center; gap: 8px; height: 40px; padding: 0 12px; border: 1px solid var(--line); border-radius: 9px; background: var(--surface); color: var(--muted); min-width: 0; }
.field:focus-within { border-color: var(--faint); }
.field input, .field select { background: none; border: 0; outline: 0; color: var(--fg); min-width: 0; width: 100%; }
.field select { cursor: pointer; }
.field select option { background: var(--surface); color: var(--fg); }

.stage { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 20px; margin-top: 24px; }
.player-col { display: grid; gap: 14px; min-width: 0; align-content: start; }
.player { position: relative; aspect-ratio: 16 / 9; max-width: 100%; border-radius: var(--radius); overflow: hidden; background: #000; color: var(--on-video); isolation: isolate; }
.player:fullscreen { border-radius: 0; aspect-ratio: auto; }
.player video, .player iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; display: block; background: #000; }
.player .art { z-index: 0; }
.player::before, .player::after { content: ""; position: absolute; left: 0; right: 0; pointer-events: none; transition: opacity .35s; z-index: 1; }
.player::before { top: 0; height: 30%; background: linear-gradient(rgba(0,0,0,.6), transparent); }
.player::after { bottom: 0; height: 40%; background: linear-gradient(transparent, rgba(0,0,0,.75)); }
.player.idle { cursor: none; }
.player.idle::before, .player.idle::after, .player.idle .osd, .player.idle .controls { opacity: 0; }
.player.is-youtube::before, .player.is-youtube::after { display: none; }
.osd { position: absolute; top: 0; left: 0; right: 0; z-index: 2; display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: clamp(12px, 2vw, 22px); transition: opacity .35s; pointer-events: none; }
.osd > * { pointer-events: auto; }
.osd-left { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.ch-chip { display: flex; align-items: center; gap: 9px; padding: 5px 11px 5px 5px; border-radius: 8px; background: rgba(0,0,0,.45); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.ch-name { font-weight: 600; font-size: 14px; }
.live-badge { display: inline-flex; align-items: center; gap: 7px; height: 30px; padding: 0 10px; border-radius: 8px; font-weight: 700; font-size: 13px; background: rgba(0,0,0,.45); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); font-variant-numeric: tabular-nums; }
.trial-badge { display: inline-flex; align-items: center; gap: 7px; height: 30px; padding: 0 10px; border-radius: 8px; font-weight: 700; font-size: 13px; background: rgba(0,0,0,.55); font-variant-numeric: tabular-nums; }
.trial-badge.low { background: var(--live); }
.zap { font-family: var(--display); font-stretch: 125%; font-weight: 800; font-size: clamp(32px, 5vw, 60px); font-variant-numeric: tabular-nums; letter-spacing: .06em; text-shadow: 0 2px 20px rgba(0,0,0,.6); line-height: 1; }
.controls { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; padding: 0 clamp(12px, 2vw, 26px) clamp(10px, 1.6vw, 18px); display: grid; gap: 8px; transition: opacity .35s; }
.prog-title { font-family: var(--display); font-stretch: 116%; font-weight: 800; font-size: clamp(22px, 3vw, 40px); line-height: 1.02; letter-spacing: -.02em; text-wrap: balance; max-width: 22ch; }
.prog-meta { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-weight: 500; margin-top: 6px; color: var(--muted); }
.player .prog-meta { color: var(--on-video-muted); }
.btns { display: flex; align-items: center; gap: 2px; }
.btns .spacer { flex: 1; }
.ib { width: 42px; height: 42px; border-radius: 10px; display: grid; place-items: center; transition: background .15s, transform .15s; }
.ib:hover { background: rgba(255,255,255,.14); }
.ib:active { transform: scale(.94); }
.vol { width: 90px; accent-color: var(--on-video); }

.player-state { position: absolute; inset: 0; z-index: 3; display: grid; place-items: center; text-align: center; padding: 24px; pointer-events: none; }
.player-state > div { display: grid; gap: 10px; justify-items: center; max-width: 420px; pointer-events: auto; }
.player-state p { margin: 0; color: var(--on-video-muted); }
.player-state strong { font-family: var(--display); font-stretch: 112%; font-size: clamp(18px, 2.2vw, 24px); }
.spinner { width: 42px; height: 42px; border-radius: 50%; border: 3px solid rgba(255,255,255,.2); border-top-color: #fff; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.paywall { position: absolute; inset: 0; z-index: 5; display: grid; place-items: center; padding: 24px; background: rgba(8,8,8,.82); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); text-align: center; }
.paywall-card { display: grid; gap: 14px; justify-items: center; max-width: 440px; }
.paywall-icon { width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; background: rgba(255,255,255,.1); }
.paywall h2 { margin: 0; font-family: var(--display); font-stretch: 116%; font-weight: 800; font-size: clamp(22px, 3vw, 32px); line-height: 1.05; letter-spacing: -.02em; }
.paywall p { margin: 0; color: var(--on-video-muted); }
.paywall .btn-primary { background: var(--accent-video); color: var(--on-accent-video); }
.btn-on-video, .paywall .btn-ghost { background: transparent; border: 1px solid rgba(255,255,255,.3); color: #fff; }
.btn-on-video:hover, .paywall .btn-ghost:hover { background: rgba(255,255,255,.1); }
.paywall-actions { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; margin-top: 4px; }
.paywall small { color: var(--on-video-muted); font-variant-numeric: tabular-nums; }

.now-playing { display: grid; gap: 4px; min-width: 0; flex: 1; }
.now-channel { display: flex; align-items: center; gap: 8px; color: var(--muted); font-weight: 600; font-size: 14px; }
.now-logo { position: relative; width: 44px; aspect-ratio: 16 / 9; border-radius: 5px; overflow: hidden; }
.now-logo .art b { font-size: 10px; }
.prog-bar { height: 3px; border-radius: 3px; background: var(--line); overflow: hidden; max-width: 420px; margin-top: 6px; }
.prog-bar i { display: block; height: 100%; background: var(--live); }
.prog-desc { margin: 4px 0 0; color: var(--muted); max-width: 70ch; }
.prog-desc:empty, .next-up:empty { display: none; }
.next-up { margin: 2px 0 0; font-size: 14px; color: var(--muted); }
.next-up b { color: var(--fg); font-weight: 600; }
.watch-info { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.keys { display: flex; flex-wrap: wrap; gap: 6px 20px; color: var(--muted); font-size: 13px; }
.keys kbd { font-family: var(--body); font-weight: 600; font-size: 12px; color: var(--fg); background: var(--surface); border: 1px solid var(--line); border-radius: 5px; padding: 0 6px; margin-right: 5px; }

.lineup { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); min-height: 0; }
.lineup-inner { position: absolute; inset: 0; display: flex; flex-direction: column; }
.lineup-head { display: grid; gap: 10px; padding: 16px 16px 12px; border-bottom: 1px solid var(--line); }
.lineup-title { display: flex; align-items: baseline; justify-content: space-between; }
.lineup-title h2 { font-family: var(--display); font-stretch: 110%; font-weight: 700; font-size: 17px; margin: 0; }
.lineup-title span { color: var(--muted); font-size: 13px; font-variant-numeric: tabular-nums; }
.lineup-head .field { background: var(--bg); height: 38px; }
.filters { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 8px; }
.lineup-list { list-style: none; margin: 0; padding: 6px; overflow-y: auto; flex: 1; scrollbar-width: thin; scrollbar-color: var(--line) transparent; }
.lu { width: 100%; display: grid; grid-template-columns: 88px minmax(0, 1fr); gap: 12px; align-items: center; padding: 7px; border-radius: 10px; text-align: left; transition: background .15s; }
.lu:hover { background: var(--hover); }
.lu[aria-current="true"] { background: var(--surface-2); }
.lu-thumb { position: relative; width: 88px; aspect-ratio: 16 / 9; border-radius: 6px; overflow: hidden; }
.lu-thumb .art b { font-size: 15px; }
.lu-thumb .art-logo { max-width: 70%; max-height: 64%; }
.lu-lock { display: inline-flex; color: var(--muted); }
.lu-lock svg { width: 13px; height: 13px; }
.lu-now { font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lu-body { min-width: 0; display: grid; gap: 1px; }
.lu-ch { display: flex; align-items: center; gap: 7px; font-size: 12px; color: var(--muted); font-weight: 600; }
.lu-ch b { color: var(--fg); font-variant-numeric: tabular-nums; }
.lu-ch .live-dot { display: none; width: 6px; height: 6px; }
.lu[aria-current="true"] .lu-ch .live-dot { display: block; }
.lu-title { font-weight: 600; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.empty { padding: 24px 12px; color: var(--muted); }

.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.plan { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; display: grid; gap: 20px; align-content: start; }
.plan.featured { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }
.plan-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.plan-name { font-family: var(--display); font-stretch: 110%; font-weight: 700; font-size: 20px; margin: 0; }
.plan-badge { font-size: 12px; font-weight: 600; padding: 2px 8px; border-radius: 999px; background: var(--accent); color: var(--on-accent); }
.plan-desc { margin: -12px 0 0; color: var(--muted); font-size: 14px; }
.price { display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; }
.price strong { font-family: var(--display); font-stretch: 112%; font-weight: 800; font-size: 40px; letter-spacing: -.02em; line-height: 1; font-variant-numeric: tabular-nums; }
.price span { color: var(--muted); }
.plan ul { list-style: none; margin: 0; padding: 20px 0 0; display: grid; gap: 10px; border-top: 1px solid var(--line); }
.plan li { display: flex; gap: 10px; font-size: 14px; }
.plan li svg { width: 18px; height: 18px; margin-top: 2px; }

.faq { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 24px 48px; }
.faq-list { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 18px 0; font-weight: 600; font-size: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary svg { transition: transform .2s; color: var(--muted); }
.faq details[open] summary svg { transform: rotate(180deg); }
.faq details p { margin: 0 0 18px; color: var(--muted); max-width: 62ch; }

.auth { display: grid; place-items: center; padding-block: clamp(32px, 8vh, 96px); }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(20px, 3vw, 32px); display: grid; gap: 20px; align-content: start; min-width: 0; }
.auth .card { width: min(440px, 100%); }
.card-title { font-family: var(--display); font-stretch: 112%; font-weight: 800; font-size: 26px; letter-spacing: -.02em; margin: 0; line-height: 1.1; }
.section-title { font-family: var(--display); font-stretch: 110%; font-weight: 700; font-size: 17px; margin: 0; }
.card-sub { margin: -12px 0 0; color: var(--muted); }
.form { display: grid; gap: 16px; }
.form-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 16px; }
.label { display: grid; gap: 6px; font-weight: 600; font-size: 14px; }
.input, .textarea, .select { width: 100%; height: 42px; padding: 0 12px; border-radius: 9px; border: 1px solid var(--line); background: var(--bg); color: var(--fg); outline: 0; transition: border-color .15s; }
.textarea { height: auto; min-height: 110px; padding: 10px 12px; resize: vertical; line-height: 1.5; }
.input:focus, .textarea:focus, .select:focus { border-color: var(--fg); }
.input[aria-invalid="true"] { border-color: var(--live); }
.hint { font-size: 13px; color: var(--muted); font-weight: 500; }
.field-error { font-size: 13px; color: var(--live); font-weight: 600; }
.check { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 14px; cursor: pointer; }
.check input { width: 18px; height: 18px; accent-color: var(--fg); }
.form-foot { color: var(--muted); font-size: 14px; text-align: center; }

.checkout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 380px); gap: 20px; align-items: start; }
.summary { display: grid; gap: 12px; }
.summary-line { display: flex; justify-content: space-between; gap: 12px; color: var(--muted); }
.summary-line strong { color: var(--fg); font-variant-numeric: tabular-nums; }
.summary-total { border-top: 1px solid var(--line); padding-top: 12px; font-size: 18px; }
.qr { display: grid; justify-items: center; gap: 16px; text-align: center; }
.qr-box { background: #fff; padding: 14px; border-radius: 12px; border: 1px solid var(--line); line-height: 0; }
.qr-box img, .qr-box canvas { width: 240px; height: 240px; }
.copy-code { width: 100%; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; }
.copy-code input { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12px; }
.pay-status { display: flex; align-items: center; gap: 10px; font-weight: 600; color: var(--muted); }
.pay-status .spinner { width: 18px; height: 18px; border-width: 2px; border-color: var(--line); border-top-color: var(--fg); }
.steps { margin: 0; padding-left: 20px; color: var(--muted); display: grid; gap: 6px; }

.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.table { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 640px; }
.table th, .table td { padding: 12px 16px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table thead th { font-size: 12px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); font-weight: 700; background: var(--surface); }
.table tbody tr:last-child td { border-bottom: 0; }
.table tbody tr:hover { background: color-mix(in srgb, var(--hover) 50%, transparent); }
.table .num { font-variant-numeric: tabular-nums; }
.table .actions { display: flex; gap: 6px; justify-content: flex-end; flex-wrap: wrap; }
.table .actions form { display: contents; }
.muted { color: var(--muted); }

.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; display: grid; gap: 4px; }
.stat span { color: var(--muted); font-size: 13px; font-weight: 600; }
.stat strong { font-family: var(--display); font-stretch: 112%; font-weight: 800; font-size: 30px; letter-spacing: -.02em; font-variant-numeric: tabular-nums; line-height: 1.1; }

.account-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px; }
.kv { display: grid; gap: 10px; margin: 0; }
.kv div { display: flex; justify-content: space-between; gap: 12px; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; font-weight: 600; text-align: right; }

.error-page { display: grid; place-items: center; text-align: center; padding-block: 12vh; gap: 12px; }
.error-code { font-family: var(--display); font-stretch: 125%; font-weight: 800; font-size: clamp(72px, 12vw, 140px); line-height: 1; letter-spacing: -.04em; }

.footer { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding-top: 28px; border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; }
.footer nav { display: flex; flex-wrap: wrap; gap: 20px; }
.footer a:hover { color: var(--fg); }

.toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 16px); opacity: 0; z-index: 50; background: var(--fg); color: var(--bg); font-weight: 600; font-size: 14px; padding: 10px 16px; border-radius: 10px; box-shadow: 0 12px 32px rgba(0,0,0,.2); transition: opacity .2s, transform .2s; pointer-events: none; max-width: calc(100vw - 32px); }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

.guide { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow-x: auto; scrollbar-width: thin; scrollbar-color: var(--line) transparent; --px: 4px; }
.grid { position: relative; width: max-content; }
.g-row { display: flex; height: 64px; border-bottom: 1px solid var(--line); }
.g-row:last-of-type { border-bottom: 0; }
.g-row.ruler { height: 38px; }
.g-ch { position: sticky; left: 0; z-index: 3; width: 200px; flex: none; display: flex; align-items: center; gap: 10px; padding: 0 12px; background: var(--surface); border-right: 1px solid var(--line); min-width: 0; }
.g-ch:hover .g-ch-text span { text-decoration: underline; text-underline-offset: 3px; }
.g-logo { position: relative; width: 52px; flex: none; aspect-ratio: 16 / 9; border-radius: 5px; overflow: hidden; }
.g-logo .art b { font-size: 11px; }
.g-ch-text { display: grid; min-width: 0; }
.g-ch-text b { font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.g-ch-text span { font-weight: 600; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.g-track { position: relative; flex: none; width: calc(var(--span) / 60 * var(--px)); }
.g-cell { position: absolute; top: 6px; bottom: 6px; left: calc(var(--start) / 60 * var(--px) + 2px); width: calc(var(--length) / 60 * var(--px) - 4px); padding: 6px 10px; border-radius: 8px; background: var(--surface-2); overflow: hidden; display: grid; align-content: center; gap: 1px; transition: background .15s; }
.g-cell:hover { background: var(--hover); }
.g-cell.now { background: var(--bg); box-shadow: inset 0 0 0 1px var(--accent); }
.g-cell.past { opacity: .5; }
.g-cell strong { font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.g-cell small { font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.tick { position: absolute; top: 0; bottom: 0; left: calc(var(--at) / 60 * var(--px)); display: flex; align-items: center; padding-left: 8px; font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; border-left: 1px solid var(--line); }
.now-line { position: absolute; top: 0; bottom: 0; left: calc(200px + var(--at) / 60 * var(--px)); width: 2px; background: var(--live); z-index: 2; pointer-events: none; }
.now-line::before { content: attr(data-t); position: absolute; top: 9px; left: 50%; transform: translateX(-50%); background: var(--live); color: #fff; font-size: 11px; font-weight: 700; padding: 1px 6px; border-radius: 5px; font-variant-numeric: tabular-nums; }

.fieldset { border: 1px solid var(--line); border-radius: 10px; padding: 14px 16px; margin: 0; display: grid; gap: 10px; }
.fieldset legend { font-weight: 700; font-size: 14px; padding: 0 6px; }
.fieldset .hint { margin: 0; }
.image-field { display: grid; gap: 6px; }
.image-field-body { display: flex; gap: 14px; align-items: flex-start; flex-wrap: wrap; }
.image-field-actions { display: grid; gap: 8px; flex: 1; min-width: 220px; }
.image-field-actions .input { padding-top: 8px; }
.image-preview { display: grid; place-items: center; flex: none; border-radius: 10px; border: 1px dashed var(--line); background: var(--surface-2); color: var(--faint); overflow: hidden; }
.image-preview img { width: 100%; height: 100%; object-fit: contain; }
.image-preview-logo { width: 120px; height: 68px; padding: 8px; background: repeating-conic-gradient(var(--surface-2) 0 25%, var(--surface) 0 50%) 0 0 / 14px 14px; }
.image-preview-cover { width: 160px; aspect-ratio: 16 / 9; }
.image-preview-cover img { object-fit: cover; }
.color-field { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.color-field input[type="color"] { width: 56px; height: 40px; padding: 2px; border: 1px solid var(--line); border-radius: 9px; background: var(--surface); cursor: pointer; }
.channel-cell { display: flex; align-items: center; gap: 12px; }
.channel-thumb { position: relative; width: 72px; flex: none; aspect-ratio: 16 / 9; border-radius: 6px; overflow: hidden; }
.channel-thumb .art b { font-size: 13px; }
.tile-preview { max-width: 320px; }
.preview-bar { padding: 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg); }

.pagination { display: flex; align-items: center; justify-content: space-between; gap: 12px; color: var(--muted); font-size: 14px; }
.pagination div { display: flex; gap: 8px; }

@media (max-width: 1080px) {
  .stage, .checkout, .account-grid { grid-template-columns: minmax(0, 1fr); }
  .lineup-inner { position: static; }
  .lineup-list { max-height: 440px; }
  .faq { grid-template-columns: minmax(0, 1fr); }
  .track { grid-auto-columns: calc((100% - 2 * 14px) / 3); }
}
@media (max-width: 760px) {
  html { scroll-padding-top: 120px; }
  .topbar { height: auto; flex-wrap: wrap; gap: 4px 12px; padding-block: 10px 6px; }
  .nav { order: 3; flex-basis: 100%; margin-inline: -12px; overflow-x: auto; }
  .hide-sm { display: none !important; }
  .vol, .keys { display: none; }
  .ib { width: 36px; height: 36px; }
  .footer { flex-direction: column; align-items: flex-start; }
  .hero { height: 560px; }
  .hero::after { background: linear-gradient(0deg, var(--bg) 0%, color-mix(in srgb, var(--bg) 88%, transparent) 42%, transparent 78%); }
  .hero-slide .art { justify-items: center; align-items: start; padding: 48px 0 0; }
  .hero-content { padding-bottom: 72px; }
  .hero-desc { font-size: 15px; }
  .hero-dots { left: var(--gutter); right: auto; bottom: 28px; }
  .rows { margin-top: 0; }
  .row-nav { display: none; }
  .track { grid-auto-columns: calc((100% - 14px) / 1.6); }
  .prog-title { font-size: 20px; }
  .g-ch { width: 130px; }
  .g-logo { display: none; }
  .now-line { left: calc(130px + var(--at) / 60 * var(--px)); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0s !important; animation: none !important; }
}
