:root {
  --bg: #14120f;
  --panel: #201d18;
  --line: #3a342b;
  --text: #f3ede2;
  --muted: #b9ae9b;
  --accent: #e0a64b;
  --accent-ink: #1b1408;
  --now: #2a251d;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--text); }
body {
  font: 16px/1.45 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  padding-bottom: calc(64px + env(safe-area-inset-bottom));
}
button { font: inherit; color: inherit; }
a { color: var(--accent); }

.top { padding: 16px 16px 8px; }
.back { display: inline-block; min-height: 28px; margin-bottom: 4px; font-size: 14px; }
.updates { margin: 14px 0; }
.updates button { min-height:44px; padding:10px 14px; border:1px solid var(--line); border-radius:10px; background:var(--panel); cursor:pointer; }
.updates p { margin:6px 0; color:var(--muted); }
.list li.soon { cursor:default; opacity:.8; }
.coming { display:inline-block; color:var(--muted); font-size:13px; margin-top:4px; }
.new-badge { display:inline-block; padding:1px 6px; color:var(--accent-ink); background:var(--accent); border-radius:5px; font-size:12px; }
summary { min-height:44px; padding:10px 0; cursor:pointer; }
#upcoming-apps { margin-top:10px; }
.top h1 { margin: 0; font-size: 24px; }
.sub { margin: 2px 0 0; color: var(--muted); font-size: 14px; }

.player-wrap { position: sticky; top: 0; z-index: 5; background: var(--bg); padding: 0 0 8px; }
.ratio { position: relative; width: 100%; aspect-ratio: 16 / 9; background: #000; }
.ratio > div, .ratio iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.now { display: flex; gap: 8px; align-items: center; padding: 8px 16px 0; }
.now-text { flex: 1; min-width: 0; }
.now-label { color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .06em; }
.now-title { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.now-btns { display: flex; gap: 6px; }
.now-btns button {
  width: 44px; height: 40px; border-radius: 10px; border: 1px solid var(--line);
  background: var(--panel); cursor: pointer;
}
.auto { display: block; padding: 6px 16px 0; color: var(--muted); font-size: 14px; }

main { padding: 8px 16px 16px; max-width: 900px; margin: 0 auto; }
.tab[hidden] { display: none; }
.big {
  width: 100%; padding: 14px; border: 0; border-radius: 12px; cursor: pointer;
  background: var(--accent); color: var(--accent-ink); font-weight: 700; font-size: 17px;
}
.h2 { font-size: 18px; margin: 22px 0 8px; }
.note { color: var(--muted); margin: 4px 0 12px; }

.list { list-style: none; margin: 12px 0 0; padding: 0; }
.list li {
  display: flex; align-items: center; gap: 12px; padding: 10px; margin-bottom: 8px;
  background: var(--panel); border: 1px solid var(--line); border-radius: 12px; cursor: pointer;
}
.list li.playing { border-color: var(--accent); background: var(--now); }
.list img { width: 120px; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 8px; flex: none; background: #000; }
.list .num { color: var(--accent); font-weight: 700; font-size: 13px; }
.list .t { font-size: 15px; }

.cards { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.card {
  display: block; padding: 14px; background: var(--panel); border: 1px solid var(--line);
  border-radius: 12px; color: var(--text); text-decoration: none; cursor: pointer;
}
.card .k { color: var(--muted); font-size: 13px; }
.card .n { font-weight: 600; margin-top: 2px; }
.card.soon { opacity: .8; cursor:default; }
.card.soon .n::after { content: "  Coming soon"; color: var(--accent); font-weight: 400; font-size: 13px; }

.foot { color: var(--muted); font-size: 13px; margin-top: 28px; text-align: center; }

.tabs {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 10; display: grid; grid-template-columns: repeat(4, 1fr);
  background: var(--panel); border-top: 1px solid var(--line); padding-bottom: env(safe-area-inset-bottom);
}
.tabs button {
  background: none; border: 0; padding: 8px 0 10px; cursor: pointer; color: var(--muted); font-size: 12px;
  display: flex; flex-direction: column; align-items: center; gap: 2px;
}
.tabs .ico { font-size: 20px; line-height: 1; }
.tabs button.on { color: var(--accent); }
.tabs-top { position:static; border-top:0; border-bottom:1px solid var(--line); padding-bottom:0; }
.tabs button:focus-visible { outline:2px solid var(--accent); outline-offset:-3px; }

@media (min-width: 900px) {
  .player-wrap { max-width: 900px; margin: 0 auto; }
}
.series-finder a{display:inline-flex;align-items:center;min-height:44px;padding:8px 0;color:var(--gold,#e0a64b)}
.shorts-group{font-weight:700;padding-top:20px}
