/* assets/css/styles.css */
/* RSTV Digital – combined styles: hero (two-column) + tiles + stable player */

:root{
  --bg:#0B0D12;
  --panel: rgba(255,255,255,.06);
  --panel2: rgba(255,255,255,.04);
  --stroke: rgba(255,255,255,.10);
  --text:#FFFFFF;
  --muted: rgba(255,255,255,.72);

  /* RSTV Digital */
  --dig-purple:#8F6AFC;
  --dig-blue:#7B83FF;
  --dig-blue-deep:#568BFF;

  --live:#ff2b2b;
  --radius:16px;
}

*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
}
a{color:inherit;text-decoration:none}
img{max-width:100%;display:block}
.wrap{max-width:1200px;margin:0 auto;padding:0 20px}

.muted{color:var(--muted)}
.small{font-size:12px}
.link{text-decoration:underline;text-underline-offset:3px}

/* ===== Topbar ===== */
.topbar{
  position:sticky;
  top:0;
  z-index:50;
  background: rgba(0,0,0,.75);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.topbar__inner{
  height:72px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
}
.brand{display:flex;align-items:center}
.brand__logo{height:44px;width:auto}
.nav{display:flex;gap:18px;align-items:center;flex-wrap:wrap}
.nav__link{color:var(--muted);font-weight:800;letter-spacing:.2px}
.nav__link:hover{color:#fff}
.nav__link.is-active{color:#fff}

/* ===== Buttons ===== */
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:14px 18px;
  border-radius:18px;
  font-weight:900;
  border:1px solid transparent;
  user-select:none;
}
.btn--primary{
  background: linear-gradient(90deg, var(--dig-purple), var(--dig-blue));
  box-shadow: 0 14px 40px rgba(123,131,255,.20);
}
.btn--primary:hover{
  background: linear-gradient(90deg, var(--dig-purple), var(--dig-blue-deep));
}
.btn--ghost{
  border-color: rgba(255,255,255,.14);
  background: rgba(255,255,255,.04);
}
.btn--ghost:hover{background: rgba(255,255,255,.06)}
.btn--full{width:100%}

/* Smaller button for watch actions */
.btn--sm{
  padding:10px 14px;
  border-radius:14px;
  font-weight:900;
}

/* Watch page actions row */
.watchActions{
  display:flex;
  align-items:center;
  gap:10px;
  margin-top:12px;
}

.watchActions .btn--sm{
  background: #ffffff;
  color: #000000;
  border: 1px solid rgba(0,0,0,.15);
}

.watchActions .btn--sm:hover{
  background: #f2f2f2;
}

/* Tile copy button */
.copybtn{
  position:absolute;
  top:12px;
  right:12px;
  width:38px;
  height:38px;
  border-radius:12px;
  border:1px solid rgba(255,255,255,.14);
  background: rgba(0,0,0,.35);
  color:#fff;
  font-weight:900;
  display:flex;
  align-items:center;
  justify-content:center;
  cursor:pointer;
}
.copybtn:hover{
  background: rgba(0,0,0,.55);
  border-color: rgba(123,131,255,.45);
}
.copybtn.is-copied{
  background: linear-gradient(90deg, var(--dig-purple), var(--dig-blue));
  border-color: transparent;
}

/* Make sure tile can position the button */
.tile{ position:relative; }

/* ===== Hero (restores your “before” look) ===== */
.hero{
  padding:56px 0 44px;
  background:
    radial-gradient(900px 480px at 80% 10%, rgba(123,131,255,.45), transparent 60%),
    radial-gradient(760px 420px at 15% 0%, rgba(143,106,252,.45), transparent 60%),
    linear-gradient(180deg, rgba(143,106,252,.10), rgba(123,131,255,.06) 40%, transparent);
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.hero__inner{
  display:grid;
  grid-template-columns: 1.15fr .85fr;
  gap:26px;
  align-items:start;
}
@media (max-width:900px){
  .hero__inner{grid-template-columns:1fr}
}

.kicker{
  margin:0 0 10px;
  text-transform:uppercase;
  letter-spacing:.14em;
  font-weight:900;
  font-size:12px;
  color: rgba(255,255,255,.85);
}
.hero__copy h1{
  margin:0;
  font-size:54px;
  line-height:1.02;
}
@media (max-width:520px){
  .hero__copy h1{font-size:38px}
}
.lead{
  font-size:18px;
  line-height:1.5;
  color: var(--muted);
  margin:12px 0 0;
}
.cta{
  display:flex;
  gap:12px;
  flex-wrap:wrap;
  margin-top:18px;
}
.tagline{
  margin-top:18px;
  font-size:18px;
  color:#fff;
}

/* ===== Featured card (right side) ===== */
.featureCard{
  background: linear-gradient(180deg, rgba(255,255,255,.07), rgba(255,255,255,.03));
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 22px;
  padding:22px;
  box-shadow: 0 30px 90px rgba(0,0,0,.35);
}
.featureCard__top{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
}
.clock{font-weight:800}
.featureCard__title{
  margin:18px 0 8px;
  font-size:32px;
  line-height:1.05;
}
.featureCard__meta{margin:0 0 18px}

/* LIVE pill */
.pill{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:6px 12px;
  border-radius:999px;
  font-size:12px;
  font-weight:900;
  letter-spacing:.06em;
  border:1px solid rgba(255,255,255,.16);
  background: rgba(255,255,255,.06);
}
.pill--live{
  border-color: rgba(255,43,43,.35);
  background: rgba(255,43,43,.12);
}
.pill--live::before{
  content:"";
  width:8px;height:8px;border-radius:50%;
  background: var(--live);
  box-shadow: 0 0 14px rgba(255,43,43,.65);
}

/* ===== Sections ===== */
.section{padding:44px 0}
.section--alt{
  background: rgba(255,255,255,.03);
  border-top: 1px solid rgba(255,255,255,.06);
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.section__head{
  display:flex;
  align-items:baseline;
  justify-content:space-between;
  gap:12px;
  margin-bottom:16px;
}

/* ===== Grid / tiles ===== */
.grid{
  display:grid;
  grid-template-columns: repeat(auto-fill, minmax(240px,1fr));
  gap:16px;
}
.tile{
  background: var(--panel2);
  border:1px solid rgba(255,255,255,.10);
  border-radius: var(--radius);
  padding:14px;
  transition: transform .14s ease, border-color .14s ease, background .14s ease;
}
.tile:hover{
  transform: translateY(-2px);
  border-color: rgba(123,131,255,.35);
  background: rgba(255,255,255,.055);
}
.tile__top{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  margin-bottom:10px;
}
.badge{
  display:inline-flex;
  padding:5px 10px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.05);
  font-weight:900;
  font-size:12px;
  color: rgba(255,255,255,.88);
}
.lcn{
  font-weight:900;
  font-size:12px;
  padding:5px 10px;
  border-radius:999px;
  background: linear-gradient(90deg, rgba(143,106,252,.25), rgba(123,131,255,.22));
  border:1px solid rgba(123,131,255,.25);
  color:#fff;
}
.tile__logo{
  width:100%;
  height:86px;
  object-fit:contain;
  margin:6px 0 10px;
  filter: drop-shadow(0 10px 20px rgba(0,0,0,.22));
}
.tile__name{margin:0 0 6px}
.tile__tag{margin:0}

/* ===== Columns/cards ===== */
.cols{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap:16px;
}
@media (max-width:900px){
  .cols{grid-template-columns:1fr}
}
.card{
  background: var(--panel);
  border:1px solid var(--stroke);
  border-radius: var(--radius);
  padding:18px;
}
.list{margin:0;padding-left:18px}
.list li{margin:6px 0}

/* ===== Watch page header (used on channel.html) ===== */
.watchhead{padding:28px 0 8px}
.watchhead__top{display:flex;gap:12px;align-items:center;margin-bottom:8px}

/* ===== Player (stable sizing to stop “tiny then big”) ===== */
.player{
  background: var(--panel);
  border:1px solid var(--stroke);
  border-radius: var(--radius);
  padding:14px;
}

.player__frame{
  position:relative;
  width:100%;
  aspect-ratio:16 / 9;
  background:#000;
  border-radius:14px;
  overflow:hidden;
  border:1px solid rgba(255,255,255,.10);
}

.player__frame video{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  display:block;
  object-fit:contain;
  background:#000;
}

/* ===== Footer ===== */
.footer{
  padding:28px 0;
  border-top: 1px solid rgba(255,255,255,.08);
  background: rgba(0,0,0,.45);
}
.footer__inner{
  display:flex;
  justify-content:space-between;
  align-items:center;
}

/* =========================
   WATCH PAGE (channel.html)
   ========================= */

.watchhead{
  padding:32px 0 10px;
}

.watchhead__top{
  display:flex;
  align-items:center;
  gap:12px;
  margin-bottom:10px;
}

.watchhead__row{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:14px;
  flex-wrap:wrap;
}

.watchhead h1{
  margin:0;
  font-size:44px;
  line-height:1.05;
}

@media (max-width:520px){
  .watchhead h1{ font-size:34px; }
}

/* Actions row */
.watchActions{
  display:flex;
  align-items:center;
  gap:10px;
  margin-bottom:6px;
}

.btn--sm{
  padding:10px 14px;
  border-radius:16px;
  font-weight:900;
}

/* =========================
   PLAYER (stable sizing)
   ========================= */

.player{
  background: var(--panel);
  border:1px solid var(--stroke);
  border-radius: var(--radius);
  padding:14px;
}

.player__frame{
  position:relative;
  width:100%;
  aspect-ratio:16 / 9;     /* stops tiny->big jump */
  background:#000;
  border-radius:14px;
  overflow:hidden;
  border:1px solid rgba(255,255,255,.10);
}

.player__frame video{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  display:block;
  object-fit:contain;
  background:#000;
}

/* =========================
   COPY BUTTON ON TILES
   ========================= */

.tile{ position:relative; }

.copybtn{
  position:absolute;
  top:12px;
  right:12px;
  width:40px;
  height:40px;
  border-radius:14px;
  border:1px solid rgba(255,255,255,.14);
  background: rgba(0,0,0,.35);
  color:#fff;
  font-weight:900;
  display:flex;
  align-items:center;
  justify-content:center;
  cursor:pointer;
  z-index:2;
}

.copybtn:hover{
  background: rgba(0,0,0,.55);
  border-color: rgba(123,131,255,.45);
}

.copybtn.is-copied{
  background: linear-gradient(90deg, var(--dig-purple), var(--dig-blue));
  border-color: transparent;
}
