/* tv.bluxmemories.com — Cat or Hare TV */
:root {
  --bg: #06141b; --bg2: #081c25; --panel: #0b2330; --panel2: #0f2d3c; --line: #1b4252;
  --text: #f4f7fb; --muted: #94b6c2; --teal: #29cfbe; --gold: #f8d05a; --red: #ff3b47;
  --radius: 16px; --max: 1240px;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.55 "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif; overflow-x: hidden; }
h1, h2, h3 { font-family: Sora, "Plus Jakarta Sans", system-ui, sans-serif; line-height: 1.15; margin: 0; letter-spacing: -.01em; }
a { color: var(--teal); }
img { max-width: 100%; }
button { font: inherit; }
.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 16px; }
.stack { display: flex; flex-direction: column; gap: 16px; }
.muted { color: var(--muted); }
.hidden { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* Header */
.tv-header { position: sticky; top: 0; z-index: 20; background: rgba(4, 16, 22, .92); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.tv-header .inner { display: flex; align-items: center; gap: 18px; min-height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-family: Sora, sans-serif; font-weight: 700; font-size: 18px; white-space: nowrap; }
.brand b { color: var(--gold); }
.brand img { width: 34px; height: 34px; }
.nav { display: flex; gap: 4px; align-items: center; margin-left: auto; }
.nav a { color: var(--muted); text-decoration: none; font-weight: 700; font-size: 15px; padding: 8px 12px; border-radius: 999px; white-space: nowrap; }
.nav a:hover { color: var(--text); background: var(--panel); }
.nav a[aria-current="page"] { color: var(--text); background: var(--panel2); }
.nav .out { color: var(--gold); }
.nav .live-dot { display: none; width: 8px; height: 8px; border-radius: 50%; background: var(--red); margin-right: 6px; vertical-align: 1px; animation: blink 1.4s infinite; }
body.is-live .nav .live-dot { display: inline-block; }
.menu-btn { display: none; margin-left: auto; background: none; border: 1px solid var(--line); color: var(--text); border-radius: 10px; width: 44px; height: 40px; cursor: pointer; }
@media (max-width: 860px) {
  .menu-btn { display: inline-grid; place-items: center; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 64px; flex-direction: column; align-items: stretch; background: #041016; border-bottom: 1px solid var(--line); padding: 8px 16px 16px; }
  .nav.open { display: flex; }
  .nav a { padding: 12px; }
}
@keyframes blink { 50% { opacity: .25; } }

/* Buttons and chips */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 0 22px; border-radius: 999px; border: 1px solid var(--line); background: var(--panel2); color: var(--text); font-weight: 700; text-decoration: none; cursor: pointer; }
.btn:hover { border-color: var(--teal); }
.btn.primary { background: linear-gradient(90deg, var(--teal), var(--gold)); color: #06141b; border: 0; }
.btn.sm { min-height: 38px; padding: 0 16px; font-size: 14px; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 999px; background: var(--panel2); color: var(--muted); font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.chip.live { background: var(--red); color: #fff; }
.chip.live::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #fff; animation: blink 1.4s infinite; }
.chip.break { background: var(--gold); color: #1a1300; }

/* Player */
.player { position: relative; width: 100%; aspect-ratio: 16 / 9; background: #000; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
.player iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.player .placeholder { position: absolute; inset: 0; display: grid; place-items: center; color: var(--muted); text-align: center; padding: 16px; }

/* Live page */
.live-grid { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 20px; padding: 20px 0 8px; align-items: start; }
@media (max-width: 1000px) { .live-grid { grid-template-columns: 1fr; } }
.live-title { display: flex; flex-wrap: wrap; gap: 10px 14px; align-items: center; margin-top: 14px; }
.live-title h1 { font-size: clamp(22px, 3vw, 30px); }
.side { display: flex; flex-direction: column; gap: 16px; }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.card h2 { font-size: 15px; letter-spacing: .1em; text-transform: uppercase; color: var(--teal); margin-bottom: 12px; }
.stage-name { font-family: Sora, sans-serif; font-size: 22px; font-weight: 700; }
.chat { height: 420px; border: 0; width: 100%; border-radius: 12px; background: #0f0f0f; }
@media (max-width: 1000px) { .chat-card { display: none; } }
.board { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.board li { display: grid; grid-template-columns: 28px minmax(0, 1fr) auto; gap: 10px; align-items: center; }
.board .rank { font-family: Sora, sans-serif; font-weight: 700; color: var(--gold); }
.board .name { font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.board .bar { grid-column: 2 / 4; height: 6px; border-radius: 99px; background: var(--panel2); overflow: hidden; }
.board .bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--teal), var(--gold)); }
.board .score { font-weight: 800; font-variant-numeric: tabular-nums; }
.board li.on .name { color: var(--gold); }

/* Off air */
.offair { position: relative; padding: 48px 0 32px; text-align: center; overflow: hidden; }
.offair::before { content: ""; position: absolute; inset: 0; background: radial-gradient(60% 70% at 50% 0%, rgba(41, 207, 190, .18), transparent 70%); pointer-events: none; }
.offair .eyebrow { color: var(--teal); font-weight: 800; letter-spacing: .14em; text-transform: uppercase; font-size: 13px; }
.offair h1 { font-size: clamp(30px, 5vw, 56px); margin: 10px 0 6px; }
.countdown { display: flex; justify-content: center; gap: clamp(8px, 2vw, 18px); margin: 26px 0 10px; }
.countdown div { min-width: clamp(64px, 14vw, 120px); padding: 14px 8px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); }
.countdown strong { display: block; font-family: Sora, sans-serif; font-size: clamp(30px, 6vw, 60px); line-height: 1; font-variant-numeric: tabular-nums; }
.countdown span { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.cta-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 22px; }

/* Sponsor ads */
.ads { position: relative; display: grid; grid-template-columns: minmax(0, 1fr); background: linear-gradient(135deg, var(--panel), var(--bg2)); border: 1px solid var(--line); border-radius: 22px; overflow: hidden; min-height: 240px; }
.ad { grid-area: 1 / 1; display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 28px; align-items: center; padding: 28px; opacity: 0; visibility: hidden; transition: opacity .6s, visibility .6s; color: var(--text); text-decoration: none; }
.ad.on { opacity: 1; visibility: visible; }
.ad .logo { width: 200px; height: 160px; border-radius: 16px; background: #fff; display: grid; place-items: center; overflow: hidden; color: #0b2330; font-weight: 800; font-size: 22px; padding: 14px; text-align: center; }
.ad .logo img { max-width: 100%; max-height: 100%; object-fit: contain; }
.ad .tier { color: var(--gold); font-size: 12px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.ad h3 { font-size: clamp(22px, 3vw, 34px); margin: 6px 0 8px; }
.ad p { margin: 0; color: var(--muted); font-size: 17px; }
.ads .dots { position: absolute; right: 18px; bottom: 14px; display: flex; gap: 6px; }
.ads .dots button { width: 9px; height: 9px; padding: 0; border-radius: 50%; border: 0; background: var(--line); cursor: pointer; }
.ads .dots button[aria-current="true"] { background: var(--gold); }
@media (max-width: 640px) { .ad { grid-template-columns: 1fr; text-align: center; justify-items: center; gap: 16px; padding: 22px 18px 36px; } .ad .logo { width: 160px; height: 120px; } }
.ads-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin: 34px 0 12px; }
.ads-head h2 { font-size: 20px; }

/* Sponsor strip */
.strip { border-top: 1px solid var(--line); margin-top: 48px; padding: 26px 0 8px; }
.strip h2 { font-size: 13px; color: var(--muted); letter-spacing: .14em; text-transform: uppercase; text-align: center; margin-bottom: 16px; font-family: inherit; }
.logos { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.logos a { display: grid; place-items: center; width: 132px; height: 72px; border-radius: 12px; background: #fff; padding: 10px; color: #0b2330; font-weight: 800; font-size: 13px; text-align: center; text-decoration: none; }
.logos img { max-width: 100%; max-height: 100%; object-fit: contain; }

/* Tiles (episodes, catch-up) */
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 12px; flex-wrap: wrap; margin: 40px 0 14px; }
.section-head h2 { font-size: clamp(22px, 2.6vw, 28px); }
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 18px; }
.tile { display: flex; flex-direction: column; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; color: var(--text); text-decoration: none; cursor: pointer; text-align: left; padding: 0; }
.tile:hover { border-color: var(--teal); }
.tile[aria-current="true"] { border-color: var(--gold); box-shadow: 0 0 0 1px var(--gold); }
.thumb { position: relative; aspect-ratio: 16 / 9; background: #000 center / cover no-repeat; }
.thumb::after { content: ""; position: absolute; inset: 0; background: linear-gradient(transparent 55%, rgba(0, 0, 0, .6)); }
.thumb .play { position: absolute; left: 12px; bottom: 10px; z-index: 1; width: 40px; height: 40px; border-radius: 50%; background: rgba(6, 20, 27, .8); display: grid; place-items: center; color: #fff; }
.thumb.audio { background: linear-gradient(135deg, #0f3b4c, #1a5d4f); display: grid; place-items: center; font-size: 46px; }
.tile .body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 4px; }
.tile .label { color: var(--gold); font-size: 12px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.tile h3 { font-size: 17px; }
.tile .meta { color: var(--muted); font-size: 14px; }
.tabs { display: flex; flex-wrap: wrap; gap: 8px; }
.tabs button { min-height: 40px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line); background: var(--panel); color: var(--muted); font-weight: 700; cursor: pointer; }
.tabs button[aria-pressed="true"] { background: var(--teal); border-color: var(--teal); color: #06141b; }
.empty { padding: 40px 16px; text-align: center; color: var(--muted); background: var(--panel); border: 1px dashed var(--line); border-radius: var(--radius); }

/* Podcast */
.pod-hero { display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: 26px; align-items: center; padding: 34px 0 10px; }
.pod-art { width: 180px; height: 180px; border-radius: 22px; background: linear-gradient(135deg, var(--teal), #0a5fa8 60%, var(--gold)); display: grid; place-items: center; font-size: 76px; box-shadow: 0 20px 50px rgba(0, 0, 0, .4); }
.pod-hero h1 { font-size: clamp(28px, 4vw, 44px); margin-bottom: 8px; }
@media (max-width: 640px) { .pod-hero { grid-template-columns: 1fr; text-align: center; justify-items: center; } .pod-hero .cta-row { justify-content: center; } }
.pod-hero .cta-row { justify-content: flex-start; margin-top: 14px; }
.pods { display: flex; flex-direction: column; gap: 12px; }
.pod { display: grid; grid-template-columns: 52px minmax(0, 1fr) auto; gap: 14px; align-items: start; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; }
.pod.on { border-color: var(--gold); }
.pod .pbtn { width: 52px; height: 52px; border-radius: 50%; border: 0; background: linear-gradient(135deg, var(--teal), var(--gold)); color: #06141b; cursor: pointer; display: grid; place-items: center; }
.pod h3 { font-size: 18px; }
.pod .meta { color: var(--muted); font-size: 14px; margin-top: 2px; }
.pod p { margin: 8px 0 0; color: #c9dce3; white-space: pre-line; font-size: 15px; }
.pod .more { margin-top: 8px; display: flex; gap: 14px; flex-wrap: wrap; font-size: 14px; font-weight: 700; }
@media (max-width: 640px) { .pod { grid-template-columns: 44px minmax(0, 1fr); } .pod .pbtn { width: 44px; height: 44px; } .pod .dur { grid-column: 2; } }
.dock { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; background: rgba(4, 16, 22, .96); border-top: 1px solid var(--line); backdrop-filter: blur(10px); }
.dock .inner { display: flex; align-items: center; gap: 14px; padding: 10px 16px; max-width: var(--max); margin: 0 auto; flex-wrap: wrap; }
.dock .now { flex: 1 1 200px; min-width: 0; }
.dock .now strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dock audio { flex: 2 1 320px; min-width: 0; width: 100%; height: 40px; }
.dock .speed { min-width: 58px; }
body.has-dock { padding-bottom: 110px; }

/* Footer */
.tv-footer { padding: 26px 0 40px; color: var(--muted); font-size: 14px; }
.tv-footer .inner { display: flex; flex-wrap: wrap; gap: 10px 22px; justify-content: space-between; }
.tv-footer a { color: var(--muted); }
