/* =====================================================================
   Mavion — /watch (Network · Live television)
   ---------------------------------------------------------------------
   Page-scoped layer on top of the shared design system (mavion.css).
   Uses only design tokens. Accent discipline: RED only on live/breaking
   indicators (badge dot, NOW tag); BLUE only on interactive affordances
   (active platform tab, focus rings). Everything else white/grey on
   near-black. Radius 14–16px, 1px hairlines, calm motion.
   ===================================================================== */

/* ════════════════════════ Live player ════════════════════════ */
.watch-player { padding-top: clamp(26px, 4vw, 48px); }

/* Platform switch — pill segmented control. Active = blue (interactive). */
.watch-stream-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
}
.watch-stream-tab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 11px;
  border: 1px solid var(--line-2);
  background: transparent;
  color: var(--dim);
  font-family: var(--sans);
  font-weight: 600;
  font-size: .84rem;
  cursor: pointer;
  transition: color .18s, background .18s, border-color .18s;
}
.watch-stream-tab svg { flex-shrink: 0; }
.watch-stream-tab:hover { color: var(--blue); border-color: rgba(76,141,255,.4); background: var(--blue-soft); }
.watch-stream-tab.active {
  background: var(--blue);
  border-color: var(--blue);
  color: #04060c;
}

/* Player frame — cinematic, hairline ring, 16:9 */
.watch-player__frame {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: #000;
  border: 1px solid var(--line);
  box-shadow: 0 30px 80px rgba(0,0,0,.55);
}

.watch-embed {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

/* Offline state */
.watch-embed__offline {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 4px;
  background: var(--bg-raised);
  color: var(--text);
  z-index: 2;
  padding: 2rem;
}
.watch-embed__icon {
  font-size: 46px;
  color: var(--dimmer);
  margin-bottom: 8px;
}
.watch-embed__offline h3 {
  margin: 4px 0 2px;
  font-family: var(--serif);
  font-optical-sizing: auto;
  font-weight: 500;
  font-size: clamp(1.3rem, 2.6vw, 1.7rem);
  letter-spacing: -.018em;
  color: var(--white);
}
.watch-embed__offline p {
  color: var(--dim);
  font-size: .9rem;
  margin: 0 0 14px;
}

/* Now playing */
.watch-now {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 30px;
  margin-top: 26px;
  padding: 26px 0 4px;
  border-top: 1px solid var(--line);
}
.watch-now__label {
  font-family: var(--mono);
  font-size: .68rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .18em;
  color: var(--dimmer);
  margin-bottom: 12px;
  display: block;
}
.watch-now__title h1 {
  font-family: var(--serif);
  font-optical-sizing: auto;
  font-size: clamp(1.7rem, 3.4vw, 2.7rem);
  font-weight: 500;
  letter-spacing: -.02em;
  color: var(--white);
  line-height: 1.06;
  margin-bottom: 12px;
}
.watch-now__title p {
  color: var(--dim);
  font-size: .98rem;
  max-width: 60ch;
  line-height: 1.6;
}
.watch-now__actions {
  display: flex;
  gap: 12px;
  flex-shrink: 0;
}
.watch-now__actions .btn { white-space: nowrap; }

/* ════════════════════════ Channels ════════════════════════ */
.watch-channels__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: clamp(20px, 2.4vw, 30px);
}

.channel-card {
  display: block;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color .2s var(--ease-soft), transform .3s var(--ease), background .2s;
}
.channel-card:hover {
  transform: translateY(-4px);
  border-color: var(--line-2);
}
.channel-card.active {
  border-color: var(--blue);
  box-shadow: 0 0 0 1px var(--blue), 0 18px 40px rgba(76,141,255,.12);
}
.channel-card__thumb {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 0;
}
.channel-card__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(.92) contrast(1.04) brightness(.92);
  transition: transform .6s var(--ease), filter .3s;
}
.channel-card:hover .channel-card__thumb img { transform: scale(1.05); filter: saturate(1) contrast(1.04) brightness(1); }

/* LIVE badge — RED is reserved for live state only */
.channel-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: rgba(8,9,11,.72);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,59,51,.4);
  color: #ff9f9a;
  padding: 5px 10px 5px 9px;
  border-radius: 999px;
  font-family: var(--mono);
  font-size: .6rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.channel-badge .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 0 0 rgba(255,59,51,.55);
  animation: watch-pulse 2s var(--ease-soft) infinite;
}
.channel-card h3 {
  font-size: 1.06rem;
  margin: 16px 18px 5px;
}
.channel-card p {
  margin: 0 18px 18px;
  font-size: .86rem;
}

/* ════════════════════════ On demand ════════════════════════ */
/* Tabs use the shared .chip / .chips system (see mavion.css). Filter
   chips inherit .is-active styling; nothing else needed here. */

/* Episode cards — generated by watch.js as .od-card. Home-card feel. */
.od-card {
  display: block;
  cursor: pointer;
}
.od-card__thumb {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 12px;
  margin-bottom: 14px;
  background: linear-gradient(135deg, #181b22, #0b0c10);
}
.od-card__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(.92) contrast(1.04) brightness(.92);
  transition: transform .6s var(--ease), filter .3s;
}
.od-card:hover .od-card__thumb img { transform: scale(1.05); filter: saturate(1) contrast(1.04) brightness(1); }
.od-card__thumb::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(8,9,11,.5), transparent 55%);
}
/* Play affordance — neutral glass, blue ring on hover (interactive) */
.od-card__play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(.86);
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: rgba(8,9,11,.6);
  border: 1px solid var(--line-2);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity .25s var(--ease-soft), transform .25s var(--ease), border-color .2s, background .2s;
  z-index: 2;
}
.od-card:hover .od-card__play {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
  border-color: var(--blue);
  background: var(--blue-soft);
}
.od-card__play .material-symbols-rounded { color: var(--white); font-size: 1.7rem; }
.od-card__duration {
  position: absolute;
  bottom: 10px;
  right: 10px;
  background: rgba(8,9,11,.78);
  backdrop-filter: blur(6px);
  border: 1px solid var(--line);
  color: var(--text);
  font-family: var(--mono);
  font-size: .66rem;
  font-weight: 500;
  padding: 4px 8px;
  border-radius: 7px;
  z-index: 2;
}
.od-card h3 {
  font-family: var(--serif);
  font-optical-sizing: auto;
  font-weight: 500;
  font-size: 1.14rem;
  letter-spacing: -.012em;
  line-height: 1.16;
  color: var(--white);
  margin: 0 0 8px;
  transition: color .18s var(--ease-soft);
}
.od-card:hover h3 { color: #fff; }
.od-card p {
  font-size: .9rem;
  color: var(--dim);
  line-height: 1.55;
  margin: 0 0 14px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.od-card__meta {
  display: flex;
  gap: 16px;
  font-family: var(--mono);
  font-size: .68rem;
  letter-spacing: .04em;
  color: var(--dimmer);
}
.od-card__meta span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  text-transform: capitalize;
}
.od-card__meta .material-symbols-rounded { font-size: 14px; }

/* ════════════════════════ Schedule ════════════════════════ */
.watch-schedule__list {
  display: flex;
  flex-direction: column;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.watch-schedule__item {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 18px 24px;
  border-bottom: 1px solid var(--line);
  transition: background .18s;
}
.watch-schedule__item:last-child { border-bottom: 0; }
.watch-schedule__item:hover { background: rgba(255,255,255,.02); }
/* Current slot — neutral lift + blue marker (it's the "you are here" state) */
.watch-schedule__item--now {
  background: var(--bg-raised);
  box-shadow: inset 3px 0 0 var(--blue);
}
.watch-schedule__item--next { background: rgba(255,255,255,.015); }
.watch-schedule__time {
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
  font-size: 1.02rem;
  font-weight: 600;
  color: var(--white);
  min-width: 58px;
}
.watch-schedule__info h4 {
  font-size: .98rem;
  font-weight: 600;
  color: var(--white);
  margin: 0 0 4px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.watch-schedule__info p {
  font-size: .82rem;
  color: var(--dim);
  margin: 0;
}
.watch-schedule__tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--mono);
  font-size: .6rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  padding: 3px 9px;
  border-radius: 999px;
  border: 1px solid var(--line-2);
  background: transparent;
  color: var(--dim);
}
/* NOW = live → RED only here */
.watch-schedule__tag--live {
  border-color: rgba(255,59,51,.4);
  background: var(--red-soft);
  color: #ff9f9a;
}
.watch-schedule__tag .live-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 0 0 rgba(255,59,51,.55);
  animation: watch-pulse 2s var(--ease-soft) infinite;
}

@keyframes watch-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(255,59,51,.5); }
  70%  { box-shadow: 0 0 0 7px rgba(255,59,51,0); }
  100% { box-shadow: 0 0 0 0 rgba(255,59,51,0); }
}

/* ════════════════════════ Responsive ════════════════════════ */
@media (max-width: 860px) {
  .watch-now { flex-direction: column; }
  .watch-now__actions { width: 100%; }
  .watch-now__actions .btn { flex: 1; }
}
@media (max-width: 620px) {
  .watch-channels__grid { grid-template-columns: 1fr 1fr; gap: 16px; }
  .channel-card h3 { font-size: .98rem; margin: 13px 14px 4px; }
  .channel-card p { margin: 0 14px 14px; font-size: .8rem; }
  .watch-schedule__item { gap: 16px; padding: 14px 18px; }
  .watch-schedule__time { font-size: .94rem; min-width: 50px; }
}

@media (prefers-reduced-motion: reduce) {
  .channel-badge .dot,
  .watch-schedule__tag .live-dot { animation: none; }
  .channel-card__thumb img,
  .od-card__thumb img { transition: none; }
}
