@font-face { font-family: "Bebas"; src: url("fonts/bebas-neue.woff2") format("woff2"); font-display: swap; }

:root {
  --bg: #141414; --bg2: #1c1c1c; --card: #232323; --text: #f3f3f3; --dim: #a3a3a3; --dim2: #6f6f6f;
  --red: #e50914; --red2: #b20710;
  --pad: clamp(16px, 4vw, 60px);
  --card-w: clamp(150px, 17vw, 300px);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font: 15px/1.45 "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
button { font: inherit; color: inherit; cursor: pointer; }
a { color: inherit; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }

/* nav */
.nav { position: fixed; inset: 0 0 auto; z-index: 30; display: flex; align-items: center; gap: 28px; padding: 14px var(--pad);
  background: linear-gradient(180deg, rgba(0,0,0,.75), rgba(0,0,0,0)); transition: background .3s; }
.nav.solid { background: rgba(20,20,20,.97); box-shadow: 0 2px 12px rgba(0,0,0,.4); }
.brand { font-family: "Bebas", Impact, sans-serif; font-size: 38px; line-height: 1; letter-spacing: 1.5px; color: var(--red); text-decoration: none; text-shadow: 0 2px 10px rgba(0,0,0,.4); }
.links { display: flex; gap: 20px; flex: 1; overflow-x: auto; scrollbar-width: none; }
.links::-webkit-scrollbar { display: none; }
.links a { text-decoration: none; color: #e5e5e5; font-size: 14px; white-space: nowrap; transition: color .2s; }
.links a:hover, .links a.on { color: #fff; font-weight: 600; }
.search { display: flex; align-items: center; border: 1px solid transparent; transition: border-color .25s, background .25s; }
.search.open { border-color: #fff; background: rgba(0,0,0,.8); }
.search-btn { background: none; border: 0; padding: 6px 8px; display: flex; }
.search input { width: 0; padding: 0; border: 0; background: none; color: #fff; font: inherit; outline: none; transition: width .3s, padding .3s; }
.search.open input { width: clamp(140px, 22vw, 260px); padding: 6px 8px 6px 0; }
.search input::-webkit-search-cancel-button { filter: invert(1); }

/* hero */
.hero { position: relative; height: min(56.25vw, 88vh); min-height: 460px; overflow: hidden; background: #000; }
.hero-img, .hero-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-img { filter: brightness(.85); }
.hero-video { opacity: 0; transition: opacity .8s; }
.hero-video.on { opacity: 1; }
.hero-shade { position: absolute; inset: 0;
  background: linear-gradient(77deg, rgba(0,0,0,.85) 0%, rgba(0,0,0,.45) 38%, rgba(0,0,0,0) 70%),
              linear-gradient(0deg, var(--bg) 0%, rgba(20,20,20,.6) 12%, rgba(20,20,20,0) 30%); }
.hero-body { position: absolute; left: var(--pad); bottom: calc(min(9vw, 120px) + 40px); max-width: min(620px, 80vw); }
.hero-tag { display: flex; align-items: center; gap: 10px; color: #ddd; font-size: 14px; letter-spacing: .3px; }
.hero-title { font-family: "Bebas", Impact, sans-serif; font-weight: 400; font-size: clamp(44px, 7vw, 104px); line-height: .92; margin: 10px 0 14px; letter-spacing: 1px; text-shadow: 0 3px 18px rgba(0,0,0,.5); }
.hero-now { margin: 0 0 4px; font-size: clamp(15px, 1.5vw, 20px); font-weight: 600; text-shadow: 0 2px 8px rgba(0,0,0,.6); }
.hero-next { margin: 0; color: #cfcfcf; font-size: clamp(13px, 1.2vw, 16px); text-shadow: 0 2px 8px rgba(0,0,0,.6); }
.hero-actions { display: flex; gap: 12px; margin-top: 22px; }
.btn { display: inline-flex; align-items: center; gap: 10px; border: 0; border-radius: 5px; padding: 11px 26px 11px 20px; font-weight: 700; font-size: 17px; transition: background .2s, transform .15s; }
.btn:active { transform: scale(.97); }
.btn-play { background: #fff; color: #000; }
.btn-play:hover { background: rgba(255,255,255,.78); }
.btn-ghost { background: rgba(109,109,110,.7); color: #fff; }
.btn-ghost:hover { background: rgba(109,109,110,.45); }
.btn .snd-on, .p-icon .snd-on { display: none; }
[aria-pressed="true"] .snd-on, .unmuted .snd-on { display: inline; }
[aria-pressed="true"] .snd-x, .unmuted .snd-x { display: none; }

.live { display: inline-block; background: var(--red); color: #fff; font-size: 11px; font-weight: 800; letter-spacing: .8px; padding: 2px 6px; border-radius: 3px; line-height: 1.3; }

/* rows */
.rows { position: relative; z-index: 2; margin-top: calc(-1 * min(9vw, 120px)); padding-bottom: 40px; }
.row { margin: 0 0 3vw; }
.row-title { margin: 0 var(--pad) 10px; font-size: clamp(16px, 1.5vw, 22px); font-weight: 700; color: #e5e5e5; display: flex; align-items: baseline; gap: 10px; }
.row-title small { font-size: 12px; font-weight: 400; color: var(--dim2); }
.row-wrap { position: relative; }
.track { display: flex; gap: 8px; overflow-x: auto; scroll-snap-type: x proximity; padding: 26px var(--pad) 34px; margin: -26px 0 -34px; scrollbar-width: none; scroll-padding: 0 var(--pad); }
.track::-webkit-scrollbar { display: none; }
.arrow { position: absolute; top: 0; bottom: 0; width: calc(var(--pad) - 6px); min-width: 36px; z-index: 5; border: 0; background: rgba(20,20,20,.55); color: #fff; opacity: 0; transition: opacity .2s, background .2s; display: flex; align-items: center; justify-content: center; }
.arrow.l { left: 0; } .arrow.r { right: 0; }
.row-wrap:hover .arrow { opacity: 1; }
.arrow:hover { background: rgba(20,20,20,.8); }
.arrow[disabled] { visibility: hidden; }

.card { position: relative; flex: 0 0 var(--card-w); scroll-snap-align: start; border: 0; padding: 0; background: none; text-align: left; transition: transform .28s cubic-bezier(.2,.7,.3,1), z-index 0s .28s; z-index: 1; }
.card-media { position: relative; aspect-ratio: 16/9; border-radius: 5px; overflow: hidden; background: var(--card); }
.card-media img.th { width: 100%; height: 100%; object-fit: cover; display: block; transition: filter .2s; }
.card-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(0,0,0,.85) 0%, rgba(0,0,0,0) 55%); }
.card-logo { position: absolute; top: 7px; left: 8px; z-index: 2; height: 22px; max-width: 46%; object-fit: contain; filter: drop-shadow(0 1px 3px rgba(0,0,0,.8)); }
.card .live { position: absolute; top: 8px; right: 8px; z-index: 2; }
.card-cap { position: absolute; left: 9px; right: 9px; bottom: 7px; z-index: 2; }
.card-name { font-weight: 700; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-shadow: 0 1px 4px rgba(0,0,0,.8); }
.card-now { font-size: 12px; color: #d5d5d5; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card-more { position: absolute; left: 0; right: 0; top: 100%; background: var(--bg2); border-radius: 0 0 5px 5px; padding: 9px 10px 10px; opacity: 0; pointer-events: none; transition: opacity .2s; box-shadow: 0 10px 22px rgba(0,0,0,.6); }
.card-more p { margin: 0; font-size: 12px; color: #cfcfcf; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card-more .bar { height: 3px; background: #4d4d4d; border-radius: 2px; margin: 0 0 8px; overflow: hidden; }
.card-more .bar i { display: block; height: 100%; background: var(--red); }
.card.off .th { filter: grayscale(1) brightness(.45); }
.card .off-tag { display: none; position: absolute; inset: 0; z-index: 3; align-items: center; justify-content: center; font-size: 13px; color: #ddd; }
.card.off .off-tag { display: flex; }
@media (hover: hover) {
  .card:hover, .card:focus-visible { transform: scale(1.32); z-index: 10; transition: transform .28s cubic-bezier(.2,.7,.3,1) .35s, z-index 0s; }
  .card:hover .card-media, .card:focus-visible .card-media { border-radius: 5px 5px 0 0; }
  .card:hover .card-more, .card:focus-visible .card-more { opacity: 1; transition-delay: .35s; }
  .track .card:first-child:hover { transform-origin: left center; }
  .track .card:last-child:hover { transform-origin: right center; }
}
.card:focus-visible { outline: 2px solid #fff; outline-offset: 2px; border-radius: 5px; }

/* search results */
.results { padding: 100px var(--pad) 40px; min-height: 70vh; }
.results-title { font-size: 18px; color: var(--dim); font-weight: 500; margin: 0 0 18px; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(var(--card-w), 1fr)); gap: 42px 8px; }
.grid .card { flex: none; }
body.searching .hero, body.searching .rows { display: none; }

.foot { padding: 20px var(--pad) 50px; color: var(--dim2); font-size: 12px; }
.foot a { color: var(--dim); }

/* player */
.player { position: fixed; inset: 0; z-index: 100; background: #000; }
.player video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; background: #000; }
.p-top, .p-bottom { position: absolute; left: 0; right: 0; z-index: 3; padding: 18px var(--pad); transition: opacity .35s; }
.p-top { top: 0; z-index: 6; display: flex; align-items: center; gap: 16px; background: linear-gradient(180deg, rgba(0,0,0,.8), rgba(0,0,0,0)); }
.p-bottom { bottom: 0; background: linear-gradient(0deg, rgba(0,0,0,.9), rgba(0,0,0,0)); padding-top: 60px; }
.player.idle .p-top, .player.idle .p-bottom { opacity: 0; }
.player.idle { cursor: none; }
/* YouTube embeds: leave room for our bars so YouTube's own controls stay clickable */
#pyt { position: absolute; left: 0; right: 0; top: 72px; bottom: 132px; width: 100%; height: calc(100% - 204px); border: 0; z-index: 2; background: #000; }
.player.yt video { display: none; }
.player.yt #pPause, .player.yt #pMute, .player.yt #pVol { display: none; }
.player.yt .p-bottom { padding-top: 18px; }
/* link-out cards (RCTI+, Vidio): logo on a dark stage, opens the official live page */
.card.link .th { object-fit: contain; padding: 16% 24%; background: radial-gradient(ellipse at 50% 40%, #2b2b2b 0%, #141414 75%); }
.card.link .live { background: #fff; color: #141414; }
.src-tag { display: inline-block; margin-left: 6px; font-size: 10px; font-weight: 700; color: #bbb; border: 1px solid #555; border-radius: 3px; padding: 0 4px; vertical-align: 1px; }
.p-head { flex: 1; min-width: 0; }
.p-name { display: flex; align-items: center; gap: 10px; font-size: clamp(18px, 2vw, 26px); font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.p-icon { background: none; border: 0; padding: 6px; display: flex; color: #fff; border-radius: 50%; transition: transform .15s, background .2s; }
.p-icon:hover { transform: scale(1.12); background: rgba(255,255,255,.08); }
.p-text { background: rgba(255,255,255,.12); border: 0; border-radius: 4px; padding: 7px 14px; font-weight: 600; }
.p-text[aria-pressed="true"] { background: #fff; color: #000; }
.p-info { max-width: 820px; }
.p-now { margin: 0 0 8px; font-size: clamp(15px, 1.5vw, 19px); font-weight: 600; }
.p-next { margin: 8px 0 0; color: #bdbdbd; font-size: 14px; }
.p-bar { height: 4px; background: rgba(255,255,255,.25); border-radius: 2px; overflow: hidden; }
.p-bar i { display: block; height: 100%; width: 0; background: var(--red); transition: width .5s; }
.p-ctrl { display: flex; align-items: center; gap: 10px; margin-top: 14px; }
.p-ctrl .sp { flex: 1; }
.p-vol { width: 90px; accent-color: var(--red); }
.ic-play { display: none; }
.paused .ic-play { display: inline; } .paused .ic-pause { display: none; }
.p-msg { position: absolute; inset: 0; z-index: 4; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; text-align: center; padding: 20px; background: rgba(0,0,0,.6); }
.p-msg p { font-size: clamp(18px, 2.2vw, 26px); font-weight: 700; margin: 0; }
.p-msg small { color: var(--dim); }
.p-spin { position: absolute; left: 50%; top: 50%; width: 56px; height: 56px; margin: -28px 0 0 -28px; border: 4px solid rgba(255,255,255,.2); border-top-color: var(--red); border-radius: 50%; animation: spin .9s linear infinite; z-index: 2; }
@keyframes spin { to { transform: rotate(360deg); } }
.p-sched { position: absolute; top: 0; right: 0; bottom: 0; width: min(380px, 88vw); z-index: 5; background: rgba(16,16,16,.96); padding: 76px 22px 24px; overflow-y: auto; box-shadow: -10px 0 30px rgba(0,0,0,.5); }
.p-sched h3 { margin: 0 0 14px; font-size: 18px; }
.p-sched ol { list-style: none; margin: 0; padding: 0; }
.p-sched li { display: grid; grid-template-columns: 52px 1fr; gap: 10px; padding: 10px 0; border-bottom: 1px solid #2a2a2a; font-size: 14px; }
.p-sched li time { color: var(--dim); font-variant-numeric: tabular-nums; }
.p-sched li.now { color: #fff; font-weight: 700; }
.p-sched li.now time { color: var(--red); }
.p-sched .day { grid-template-columns: 1fr; color: var(--dim); font-size: 12px; text-transform: uppercase; letter-spacing: 1px; border: 0; padding: 16px 0 4px; }
.p-sched .empty { color: var(--dim); font-size: 14px; }

/* mobile */
@media (max-width: 760px) {
  :root { --card-w: 40vw; }
  .nav { gap: 14px; padding-top: max(12px, env(safe-area-inset-top)); flex-wrap: wrap; row-gap: 6px; }
  .brand { font-size: 30px; }
  .links { order: 3; flex-basis: 100%; gap: 16px; }
  .links a { font-size: 13px; }
  .search { margin-left: auto; }
  .search.open input { width: 46vw; }
  .hero { height: 78vh; min-height: 420px; }
  .hero-body { bottom: 16%; right: var(--pad); }
  .hero-shade { background: linear-gradient(0deg, var(--bg) 0%, rgba(20,20,20,.75) 30%, rgba(0,0,0,.2) 65%, rgba(0,0,0,.5) 100%); }
  .btn { padding: 9px 18px 9px 14px; font-size: 15px; }
  .rows { margin-top: -40px; }
  .row { margin-bottom: 26px; }
  .arrow { display: none; }
  .card-more { display: none; }
  .p-vol { display: none; }
  .grid { gap: 14px 8px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
  .card:hover { transform: none; }
}
