/* WATCH PAGE — page-local CSS loaded after /styles.css.
   Keep watch-only layout and polish here. */

#vod-view .player-wrap,
#live-view .player-wrap { max-width: var(--spine); }
#ytclips { margin-top: clamp(32px, 4vw, 56px); }

/* The player is the product. Keep the header useful but visually secondary. */
main > .wrap.page-head:has(.ph-next) {
  align-items: end;
  gap: 18px clamp(24px, 4vw, 56px);
}
main > .wrap.page-head:has(.ph-next) > p {
  max-width: 44rem;
  color: #919bad;
}
.ph-next {
  min-width: min(100%, 286px);
  padding: 13px 14px;
  border: 1px solid rgba(130,255,255,.15);
  border-radius: 14px;
  background:
    radial-gradient(circle at 100% 0,rgba(130,255,255,.10),transparent 44%),
    linear-gradient(145deg,rgba(14,18,28,.88),rgba(8,10,16,.92));
  box-shadow: inset 0 1px rgba(255,255,255,.04);
}
.ph-next .vn-kicker {
  color: #b8eeee;
  font-size: .72rem;
  font-weight: 850;
  letter-spacing: .14em;
}
.ph-next .vn-title {
  color: #eef1f8;
  font-size: clamp(.92rem,1.35vw,1.05rem);
  font-weight: 820;
  line-height: 1.25;
}
.ph-btns {
  width: 100%;
  margin-top: 3px;
}
.ph-btns .btn {
  flex: 1 1 118px;
  min-height: 36px;
  padding: 8px 11px;
  border-radius: 9px;
  font-size: .68rem;
}

/* Give the current stream / VOD one deliberate stage rather than a loose embed. */
#vod-view,
#live-view {
  position: relative;
}
#vod-view .player-wrap:first-child,
#live-view .player-wrap:first-child {
  position: relative;
}
.player-shell {
  overflow: hidden;
  border: 1px solid rgba(130,255,255,.14);
  border-radius: 18px;
  background: #07090e;
  box-shadow:
    inset 0 1px rgba(255,255,255,.035),
    0 30px 72px -52px rgba(69,88,172,.52);
}
#live-view .player-shell.live-glow {
  border-color: rgba(255,84,104,.28);
  box-shadow:
    inset 0 1px rgba(255,255,255,.035),
    0 0 0 1px rgba(255,84,104,.045),
    0 30px 76px -48px rgba(255,84,104,.28);
}

.player-meta.above {
  position: relative;
  margin-bottom: 10px;
  padding: 14px 16px;
  border: 1px solid rgba(255,255,255,.07);
  border-radius: 13px;
  background:
    linear-gradient(145deg,rgba(255,255,255,.025),rgba(255,255,255,.008)),
    rgba(10,12,18,.72);
  box-shadow: inset 0 1px rgba(255,255,255,.03);
}
.player-meta.above h2 {
  color: #eef1f7;
  font-size: clamp(1.06rem,2vw,1.38rem);
  line-height: 1.15;
}
.player-meta.above .sub {
  margin-top: 4px;
  color: #b0bfc8;
  font-size: .8rem;
}
.player-meta.above .vod-share {
  border-color: rgba(255,255,255,.09);
  background: rgba(255,255,255,.025);
}

/* Resume / continue are useful state, so treat them like a compact utility rail. */
.vod-resume {
  margin: 0 0 9px;
  border-color: rgba(130,255,255,.15);
  background:
    linear-gradient(90deg,rgba(130,255,255,.065),rgba(255,255,255,.012)),
    rgba(8,10,16,.78);
}
.vod-resume .mono {
  color: #bacacc;
}

/* Keep the tools under the player visually related instead of separate cards. */
.past-vods,
.vod-chapters {
  border-color: rgba(255,255,255,.075);
  background:
    linear-gradient(145deg,rgba(255,255,255,.018),rgba(255,255,255,.006)),
    rgba(8,10,15,.72);
  box-shadow: inset 0 1px rgba(255,255,255,.025);
}
.past-vods {
  margin-top: 12px;
  border-radius: 13px;
}
.past-vods .pv-label,
.past-vods .pv-all,
.vod-chapters .mono {
  color: #a9d1d5;
}
.past-vods .pv-all:hover {
  color: #abffff;
}
.vod-chapters {
  border-radius: 13px;
}
.vc-head {
  min-height: 44px;
}

/* Live controls read as one command bar directly under the video. */
#live-view .live-category-strip {
  margin-top: 0;
}
.watch-live-controls {
  margin-top: 0;
  padding: 10px;
  border: 1px solid rgba(255,255,255,.07);
  border-radius: 13px;
  background: rgba(8,10,15,.72);
  box-shadow: inset 0 1px rgba(255,255,255,.025);
}
.watch-live-controls .ht-actions .btn {
  min-height: 40px;
}
.watch-live-controls .ht-simulcast {
  color: #b7c5cb;
}
.watch-live-controls .ht-platform-btn {
  min-height: 34px;
  border-radius: 8px;
  background: rgba(255,255,255,.02);
}

/* The Prime ask should feel intentional, not like another generic notice. */
.vod-sub {
  margin-top: 14px;
  border-color: rgba(0,168,225,.16);
  background:
    radial-gradient(circle at 0 50%,rgba(0,168,225,.08),transparent 46%),
    rgba(9,12,18,.76);
}
.vod-sub .vs-k {
  color: #74bfe0;
}

/* Clips: make the content zone visually match the premium tracker surfaces. */
#ytclips .yt-zone {
  border-radius: 18px;
  background:
    radial-gradient(circle at 100% 0,rgba(130,255,255,.06),transparent 28%),
    linear-gradient(145deg,rgba(12,15,23,.88),rgba(7,9,14,.9));
}
#ytclips .clip-bar {
  padding: 9px;
  border: 1px solid rgba(255,255,255,.065);
  border-radius: 12px;
  background: rgba(5,7,11,.46);
}
#ytclips .clip-search {
  border-radius: 9px;
}

@media (min-width: 900px) {
  .ph-next {
    justify-self: end;
  }
}

@media (max-width: 899px) {
  main > .wrap.page-head:has(.ph-next) {
    display: block;
  }
  .ph-next {
    max-width: 100%;
    margin-top: 16px;
  }
}

@media (max-width: 799px) {
  .player-shell {
    border-radius: 14px;
  }
  .player-meta.above {
    padding: 12px 13px;
    border-radius: 11px;
  }
  .watch-live-controls {
    border-radius: 11px;
  }
  .ph-btns .btn {
    min-height: 40px;
  }
  #ytclips .yt-zone {
    border-radius: 15px;
  }
}

@media (max-width: 479px) {
  .ph-next {
    padding: 12px;
  }
  .ph-btns {
    display: grid;
    grid-template-columns: minmax(0,1fr);
  }
  .ph-btns .btn {
    width: 100%;
  }
  .player-meta.above {
    margin-bottom: 8px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .player-shell,
  .ph-next,
  .watch-live-controls {
    scroll-behavior: auto;
  }
}
