/* =====================================================================
   Mavion iPlayer — shared styles, aligned to the Mavion design system
   ---------------------------------------------------------------------
   Used by /iplayer (which ALSO loads mavion.css for the shared chrome,
   grid, cards-base, buttons, footer) and by the standalone sibling pages
   /iplayer/c/:slug, /iplayer/v/:id, /iplayer/studio (which load ONLY
   this sheet). So this file stays self-sufficient: it mirrors the design
   tokens locally and styles every ip-* component on those tokens.

   Spec: premium, cinematic, dark-mode editorial. Hierarchy from scale,
   whitespace, and a serif/sans/mono type system — never bright colour.
   Accent discipline: BLUE only for interactive affordances; RED only for
   live/breaking; everything else white/grey on near-black.
   ===================================================================== */

:root {
  --ip-bg:        #08090b;
  --ip-bg-raised: #0e0f12;
  --ip-bg-card:   #131419;
  --ip-line:      rgba(255,255,255,.075);
  --ip-line-2:    rgba(255,255,255,.15);

  --ip-white:     #fafafa;
  --ip-text:      #e6e7ea;
  --ip-dim:       #9a9ca2;
  --ip-dimmer:    #80828a;

  --ip-red:       #ff3b33;
  --ip-blue:      #4c8dff;
  --ip-blue-soft: rgba(76,141,255,.14);

  --ip-serif: 'Fraunces', 'Playfair Display', Georgia, serif;
  --ip-sans:  'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --ip-mono:  'JetBrains Mono', ui-monospace, 'SF Mono', Consolas, monospace;

  --ip-radius: 16px;
  --ip-ease:   cubic-bezier(.16, 1, .3, 1);
  --ip-ease-soft: cubic-bezier(.4, 0, .2, 1);
}

* { box-sizing: border-box; }

/* The standalone sibling pages still set .ip-body on <body>; on the main
   /iplayer page mavion.css already styles <body>. Both resolve to the
   same near-black stage. */
.ip-body {
  background: var(--ip-bg);
  color: var(--ip-text);
  font-family: var(--ip-sans);
  font-size: 16px;
  line-height: 1.5;
  margin: 0;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
.ip-body img { display: block; max-width: 100%; }
.ip-body :focus-visible { outline: 2px solid var(--ip-blue); outline-offset: 3px; border-radius: 4px; }

/* ═══════════════════════════════════════════════════════════════════
   TOP BAR  (sibling pages only — /iplayer uses the shared .mast chrome)
   ═══════════════════════════════════════════════════════════════════ */
.ip-top {
  display: flex; align-items: center; justify-content: space-between;
  gap: 18px;
  height: 72px;
  padding: 0 max(20px, calc(50vw - 660px));
  background: rgba(11,12,16,.72);
  backdrop-filter: blur(20px) saturate(150%);
  -webkit-backdrop-filter: blur(20px) saturate(150%);
  border-bottom: 1px solid var(--ip-line);
  position: sticky; top: 0;
  z-index: 60;
}
.ip-brand {
  display: inline-flex; align-items: center; gap: 11px;
  text-decoration: none; color: var(--ip-white);
  flex-shrink: 0;
}
.ip-brand__logo {
  width: 26px; height: 26px;
  border-radius: 6px;
  object-fit: contain;
}
.ip-brand__name {
  font-family: var(--ip-serif);
  font-optical-sizing: auto;
  font-size: 1.34rem;
  font-weight: 540;
  letter-spacing: -.01em;
  line-height: 1;
  color: var(--ip-white);
}
.ip-brand__name em { font-style: normal; color: var(--ip-dim); font-weight: 500; }
.ip-top__nav {
  display: inline-flex; gap: 10px; align-items: center;
}

/* MavionSSO pill rendered inline (instead of floating top-right).
   Override widget.js's fixed positioning. */
.cirya-pill.cirya-pill--inline {
  position: static !important;
  top: auto !important;
  right: auto !important;
  z-index: auto !important;
  animation: none !important;
}
.ip-top__link {
  color: var(--ip-dim);
  text-decoration: none;
  padding: 8px 12px;
  border-radius: 9px;
  font-size: .82rem;
  font-weight: 500;
  transition: color .18s var(--ip-ease-soft), background .18s;
}
.ip-top__link:hover { color: var(--ip-white); background: rgba(255,255,255,.05); }
.ip-top__link--cta {
  background: var(--ip-blue-soft);
  color: var(--ip-blue);
  border: 1px solid rgba(76,141,255,.4);
}
.ip-top__link--cta:hover { background: rgba(76,141,255,.22); color: #fff; }

/* ═══════════════════════════════════════════════════════════════════
   PAGE SHELL  (sibling pages — /iplayer wraps its own content in .wrap)
   ═══════════════════════════════════════════════════════════════════ */
.ip-page {
  max-width: 1320px;
  margin: 0 auto;
  padding: clamp(28px, 4vw, 48px) max(20px, 5vw) 96px;
}
.ip-page--wide { max-width: 1320px; }
.ip-section { margin-bottom: clamp(48px, 6vw, 72px); }
.ip-section__head {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 20px;
  padding-bottom: 18px;
  margin-bottom: clamp(22px, 3vw, 32px);
  border-bottom: 1px solid var(--ip-line);
}
.ip-section__title {
  font-family: var(--ip-serif);
  font-optical-sizing: auto;
  font-size: clamp(1.6rem, 3vw, 2.5rem);
  font-weight: 500;
  letter-spacing: -.018em;
  line-height: 1.04;
  color: var(--ip-white);
}
.ip-section__sub {
  font-family: var(--ip-mono);
  font-size: .7rem;
  font-weight: 500;
  color: var(--ip-dimmer);
  letter-spacing: .14em;
  text-transform: uppercase;
  white-space: nowrap;
}

/* shared count chip on /iplayer section heads */
.sec__count {
  font-family: var(--ip-mono);
  font-size: .7rem;
  font-weight: 500;
  color: var(--ip-dimmer);
  letter-spacing: .14em;
  text-transform: uppercase;
  white-space: nowrap;
}

/* ═══════════════════════════════════════════════════════════════════
   PAGE-HEAD CTA  (signed-in chip on /iplayer .phead)
   ═══════════════════════════════════════════════════════════════════ */
.phead__cta {
  display: flex; flex-wrap: wrap; gap: 10px; align-items: center;
  margin-top: clamp(22px, 3vw, 30px);
}
.ip-chip {
  display: inline-flex; align-items: center; gap: 11px;
  padding: 8px 16px 8px 8px;
  background: var(--ip-bg-card);
  border: 1px solid var(--ip-line);
  border-radius: 12px;
  text-decoration: none;
  color: inherit;
  transition: border-color .18s, background .18s;
}
.ip-chip:hover { border-color: var(--ip-line-2); background: var(--ip-bg-raised); }
.ip-chip__avatar {
  width: 30px; height: 30px;
  border-radius: 50%;
  background: linear-gradient(135deg, #2a3142, #161a24);
  border: 1px solid var(--ip-line-2);
  display: inline-flex; align-items: center; justify-content: center;
  color: #cdd9ee;
  font-weight: 700;
  font-size: .72rem;
  overflow: hidden;
  flex-shrink: 0;
}
.ip-chip__avatar img { width: 100%; height: 100%; object-fit: cover; }
.ip-chip__body { display: flex; flex-direction: column; line-height: 1.15; }
.ip-chip__greet {
  font-family: var(--ip-mono);
  font-size: .58rem;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ip-dimmer);
}
.ip-chip__name {
  font-weight: 600;
  font-size: .84rem;
  color: var(--ip-white);
}

/* ═══════════════════════════════════════════════════════════════════
   STATS STRIP
   ═══════════════════════════════════════════════════════════════════ */
.ip-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(16px, 3vw, 40px);
  padding: clamp(22px, 3vw, 30px) 0;
  margin-top: clamp(30px, 4vw, 48px);
  border-top: 1px solid var(--ip-line);
  border-bottom: 1px solid var(--ip-line);
}
.ip-stat { text-align: left; }
.ip-stat__num {
  font-family: var(--ip-serif);
  font-optical-sizing: auto;
  font-size: clamp(1.9rem, 3.4vw, 2.6rem);
  font-weight: 480;
  letter-spacing: -.022em;
  color: var(--ip-white);
  line-height: 1;
  margin-bottom: 9px;
}
.ip-stat__label {
  font-family: var(--ip-mono);
  font-size: .64rem;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ip-dimmer);
}
@media (max-width: 640px) {
  .ip-stats { grid-template-columns: repeat(2, 1fr); gap: 24px 20px; }
}

/* ═══════════════════════════════════════════════════════════════════
   FEATURED  (cinematic lead, mirrors the home hero scrim system)
   ═══════════════════════════════════════════════════════════════════ */
.ip-featured { margin-top: clamp(34px, 5vw, 56px); }
.ip-featured__inner {
  position: relative;
  display: block;
  aspect-ratio: 16/7;
  border-radius: var(--ip-radius);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  isolation: isolate;
  border: 1px solid var(--ip-line);
}
.ip-featured__media { position: absolute; inset: 0; border-radius: 0; z-index: 0; }
.ip-featured__bg {
  position: absolute; inset: 0;
  background: #181b22 center/cover no-repeat;
  filter: saturate(.92) contrast(1.05) brightness(.9);
  transform: scale(1.02);
  transition: transform 1.2s var(--ip-ease), filter .5s var(--ip-ease-soft);
}
.ip-featured__inner:hover .ip-featured__bg { transform: scale(1.06); filter: saturate(1) contrast(1.05) brightness(.98); }
.ip-featured__scrim {
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(90deg, rgba(8,9,11,.94) 0%, rgba(8,9,11,.6) 48%, rgba(8,9,11,.1) 100%);
}
.ip-featured__body {
  position: absolute;
  left: clamp(22px, 3.2vw, 46px); right: clamp(22px, 3.2vw, 46px);
  bottom: clamp(22px, 3.2vw, 46px);
  max-width: 560px;
  z-index: 2;
  display: flex; flex-direction: column;
}
.ip-featured__title {
  font-family: var(--ip-serif);
  font-optical-sizing: auto;
  font-size: clamp(1.6rem, 3.4vw, 2.6rem);
  font-weight: 480;
  letter-spacing: -.022em;
  line-height: 1.04;
  margin: 14px 0 0;
  color: #fff;
  text-wrap: balance;
}
.ip-featured__meta {
  margin-top: 14px;
  color: var(--ip-dim);
}
.ip-featured__btn { margin-top: 22px; align-self: flex-start; pointer-events: none; }
.ip-featured__btn svg { width: 16px; height: 16px; }
@media (max-width: 640px) {
  .ip-featured__inner { aspect-ratio: 4/5; }
  .ip-featured__scrim {
    background: linear-gradient(0deg, rgba(8,9,11,.94) 0%, rgba(8,9,11,.5) 45%, rgba(8,9,11,.1) 100%);
  }
}

/* ═══════════════════════════════════════════════════════════════════
   CHANNEL CARDS
   ═══════════════════════════════════════════════════════════════════ */
/* Standalone sibling channel/video pages still grid via .ip-channels;
   on /iplayer the cards live inside mavion.css's .grid. */
.ip-channels {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: clamp(18px, 2.4vw, 28px);
}
.ip-channel-card {
  display: flex; flex-direction: column;
  text-decoration: none; color: inherit;
  background: var(--ip-bg-card);
  border: 1px solid var(--ip-line);
  border-radius: 14px;
  overflow: hidden;
  transition: border-color .18s var(--ip-ease-soft), transform .25s var(--ip-ease);
}
.ip-channel-card:hover { border-color: var(--ip-line-2); transform: translateY(-3px); }
.ip-channel-card__banner {
  height: 56px;
  background: linear-gradient(135deg, #1c2333, #11141c) center/cover no-repeat;
  border-bottom: 1px solid var(--ip-line);
}
.ip-channel-card__avatar {
  width: 48px; height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, #2a3142, #161a24);
  display: flex; align-items: center; justify-content: center;
  color: #cdd9ee;
  font-family: var(--ip-sans);
  font-weight: 700;
  font-size: 1rem;
  margin: -24px 0 12px 18px;
  border: 2px solid var(--ip-bg-card);
  overflow: hidden;
}
.ip-channel-card__avatar img {
  width: 100%; height: 100%;
  object-fit: cover;
  border-radius: 50%;
}
.ip-channel-card__name {
  font-family: var(--ip-serif);
  font-optical-sizing: auto;
  font-weight: 500;
  font-size: 1.06rem;
  letter-spacing: -.012em;
  color: var(--ip-white);
  margin: 0 0 4px;
  padding: 0 18px;
  display: inline-flex; align-items: center; gap: 6px;
  line-height: 1.2;
}
.ip-channel-card__check {
  width: 15px; height: 15px;
  color: var(--ip-blue);
  flex-shrink: 0;
}
.ip-channel-card__handle {
  font-family: var(--ip-mono);
  font-size: .68rem;
  color: var(--ip-dimmer);
  margin-bottom: 10px;
  padding: 0 18px;
  letter-spacing: .02em;
}
.ip-channel-card__meta {
  font-family: var(--ip-mono);
  font-size: .68rem;
  font-weight: 500;
  color: var(--ip-dim);
  letter-spacing: .02em;
  padding: 0 18px 16px;
  margin-top: auto;
}

/* ═══════════════════════════════════════════════════════════════════
   VIDEO CARDS
   ═══════════════════════════════════════════════════════════════════ */
/* Standalone sibling pages grid via .ip-videos; /iplayer uses .grid. */
.ip-videos {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: clamp(24px, 2.8vw, 36px) clamp(20px, 2.4vw, 28px);
}
.ip-video-card {
  display: block;
  text-decoration: none;
  color: inherit;
}
.ip-video-card__thumb {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 14px;
  display: block;
}
.ip-video-card__thumb img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  filter: saturate(.9) contrast(1.04) brightness(.92);
  transform: scale(1.01);
  transition: transform 1.2s var(--ip-ease), filter .5s var(--ip-ease-soft);
}
.ip-video-card:hover .ip-video-card__thumb img { transform: scale(1.06); filter: saturate(1) contrast(1.04) brightness(1); }
.ip-video-card__noimg {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  color: var(--ip-dimmer);
}
.ip-video-card__noimg svg { width: 38px; height: 38px; opacity: .55; }
.ip-video-card__duration {
  position: absolute;
  bottom: 8px; right: 8px;
  background: rgba(4,6,12,.85);
  color: #fff;
  font-family: var(--ip-mono);
  font-size: .66rem;
  font-weight: 600;
  padding: 3px 7px;
  border-radius: 6px;
  z-index: 2;
}
.ip-video-card__play {
  position: absolute; inset: 0; z-index: 1;
  display: flex; align-items: center; justify-content: center;
  opacity: 0;
  transition: opacity .25s var(--ip-ease-soft);
  background: rgba(4,6,12,.28);
}
.ip-video-card:hover .ip-video-card__play { opacity: 1; }
.ip-video-card__play svg {
  width: 50px; height: 50px;
  padding: 13px;
  color: #fff;
  border-radius: 50%;
  background: rgba(76,141,255,.92);
  box-sizing: border-box;
}
.ip-video-card__body { display: flex; gap: 12px; align-items: flex-start; }
.ip-video-card__channel-avatar {
  width: 32px; height: 32px;
  border-radius: 50%;
  flex-shrink: 0;
  background: linear-gradient(135deg, #2a3142, #161a24);
  border: 1px solid var(--ip-line-2);
  display: flex; align-items: center; justify-content: center;
  color: #cdd9ee;
  font-weight: 700;
  font-size: .7rem;
  overflow: hidden;
}
.ip-video-card__channel-avatar img { width: 100%; height: 100%; object-fit: cover; }
.ip-video-card__text { min-width: 0; flex: 1; }
.ip-video-card__title {
  font-family: var(--ip-serif);
  font-optical-sizing: auto;
  font-size: 1.08rem;
  font-weight: 500;
  letter-spacing: -.012em;
  color: var(--ip-white);
  line-height: 1.18;
  margin-bottom: 8px;
  display: block;
}
.ip-video-card:hover .ip-video-card__title { color: #fff; }
.ip-video-card__channel {
  font-size: .8rem;
  color: var(--ip-dim);
  display: block;
  margin-bottom: 6px;
  text-decoration: none;
}
.ip-video-card__channel:hover { color: var(--ip-blue); }
.ip-video-card__meta {
  font-family: var(--ip-mono);
  font-size: .7rem;
  font-weight: 500;
  color: var(--ip-dimmer);
  letter-spacing: .02em;
}

/* ═══════════════════════════════════════════════════════════════════
   SKELETONS
   ═══════════════════════════════════════════════════════════════════ */
.ip-skel {
  background: var(--ip-bg-card);
  border: 1px solid var(--ip-line);
  border-radius: 12px;
  position: relative;
  overflow: hidden;
}
.ip-skel::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.04), transparent);
  transform: translateX(-100%);
  animation: ip-shimmer 1.6s var(--ip-ease-soft) infinite;
}
@keyframes ip-shimmer { 100% { transform: translateX(100%); } }
.ip-skel--channel { height: 200px; }
.ip-skel--video   { aspect-ratio: 16/9; }

/* ═══════════════════════════════════════════════════════════════════
   EMPTY STATES  (sibling pages — /iplayer uses mavion.css .grid-empty)
   ═══════════════════════════════════════════════════════════════════ */
.ip-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: clamp(48px, 8vw, 80px) 24px;
  background: var(--ip-bg-card);
  border: 1px solid var(--ip-line);
  border-radius: var(--ip-radius);
}
.ip-empty__icon {
  width: 54px; height: 54px;
  margin: 0 auto 18px;
  border-radius: 14px;
  display: grid; place-items: center;
  color: var(--ip-blue);
  background: var(--ip-blue-soft);
  font-size: 24px;
}
.ip-empty p { color: var(--ip-dim); margin: 0 auto 4px; font-size: .96rem; line-height: 1.6; max-width: 440px; }
.ip-empty strong { color: var(--ip-white); }
.ip-empty .ip-btn { margin-top: 18px; }
.ip-empty--rich { padding: clamp(48px, 8vw, 80px) 28px; }
.ip-empty__tiles { display: none; }
.ip-empty__pill {
  display: inline-block;
  padding: 5px 11px;
  background: var(--ip-blue-soft);
  border-radius: 999px;
  font-family: var(--ip-mono);
  font-size: .62rem;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--ip-blue);
  margin-bottom: 14px;
}
.ip-empty__title {
  font-family: var(--ip-serif);
  font-optical-sizing: auto;
  font-size: clamp(1.4rem, 2.6vw, 1.9rem);
  font-weight: 500;
  letter-spacing: -.018em;
  color: var(--ip-white);
  margin-bottom: 8px;
}
.ip-empty--rich p {
  color: var(--ip-dim);
  max-width: 440px;
  margin: 0 auto;
  line-height: 1.6;
  font-size: .96rem;
}
.ip-empty--rich a { color: var(--ip-dim); border-bottom: 1px solid var(--ip-line-2); transition: color .18s; }
.ip-empty--rich a:hover { color: var(--ip-blue); border-color: var(--ip-blue); }

/* ═══════════════════════════════════════════════════════════════════
   BUTTONS  (sibling pages — /iplayer uses mavion.css .btn)
   blue = the only fill (interactive); ghost is hairline; red = destructive.
   ═══════════════════════════════════════════════════════════════════ */
.ip-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 22px;
  border-radius: 11px;
  font-family: var(--ip-sans);
  font-size: .9rem;
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: filter .18s, background .18s, color .18s, border-color .18s, transform .12s;
  white-space: nowrap;
}
.ip-btn svg { width: 16px; height: 16px; }
.ip-btn:active { transform: scale(.98); }
.ip-btn--primary { background: var(--ip-blue); color: #04060c; }
.ip-btn--primary:hover { filter: brightness(1.08); }
.ip-btn--ghost { border-color: var(--ip-line-2); color: var(--ip-text); }
.ip-btn--ghost:hover { border-color: var(--ip-blue); background: var(--ip-blue-soft); color: #fff; }
.ip-btn--sub { background: var(--ip-blue-soft); color: var(--ip-blue); border-color: rgba(76,141,255,.4); }
.ip-btn--sub:hover { background: rgba(76,141,255,.22); color: #fff; }
.ip-btn--subbed {
  background: transparent;
  color: var(--ip-dim);
  border-color: var(--ip-line-2);
}
.ip-btn--subbed:hover { border-color: rgba(255,59,51,.45); color: #ff9f9a; }
.ip-btn--danger { background: transparent; color: #ff9f9a; border-color: rgba(255,59,51,.4); }
.ip-btn--danger:hover { background: rgba(255,59,51,.13); color: #fff; }

/* ═══════════════════════════════════════════════════════════════════
   CHANNEL HEADER  (sibling channel page)
   ═══════════════════════════════════════════════════════════════════ */
.ip-ch-header {
  padding: clamp(34px, 5vw, 52px) max(20px, 5vw);
  margin: 0 0 clamp(28px, 4vw, 40px);
  border-bottom: 1px solid var(--ip-line);
}
.ip-ch-header__row {
  display: flex; align-items: center; gap: 22px;
  flex-wrap: wrap;
  max-width: 1320px; margin: 0 auto;
}
.ip-ch-header__avatar {
  width: 92px; height: 92px;
  border-radius: 50%;
  background: linear-gradient(135deg, #2a3142, #161a24);
  border: 1px solid var(--ip-line-2);
  display: flex; align-items: center; justify-content: center;
  color: #cdd9ee;
  font-family: var(--ip-sans);
  font-size: 1.9rem;
  font-weight: 700;
  flex-shrink: 0;
  overflow: hidden;
}
.ip-ch-header__avatar img { width: 100%; height: 100%; object-fit: cover; }
.ip-ch-header__body { flex: 1; min-width: 220px; }
.ip-ch-header__name {
  font-family: var(--ip-serif);
  font-optical-sizing: auto;
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 500;
  letter-spacing: -.018em;
  line-height: 1.04;
  color: var(--ip-white);
  margin-bottom: 8px;
  display: inline-flex; align-items: center; gap: 9px;
}
.ip-ch-header__check { color: var(--ip-blue); font-size: 18px; }
.ip-ch-header__meta {
  font-family: var(--ip-mono);
  font-size: .72rem;
  font-weight: 500;
  color: var(--ip-dim);
  letter-spacing: .04em;
  margin-bottom: 12px;
}
.ip-ch-header__desc {
  color: var(--ip-text);
  font-size: .96rem;
  line-height: 1.6;
  max-width: 640px;
  margin-bottom: 16px;
}

/* ═══════════════════════════════════════════════════════════════════
   VIDEO PLAYER PAGE  (sibling video page)
   ═══════════════════════════════════════════════════════════════════ */
.ip-player-wrap {
  background: #000;
  border-radius: var(--ip-radius);
  overflow: hidden;
  aspect-ratio: 16/9;
  max-height: 74vh;
  margin-bottom: 22px;
  border: 1px solid var(--ip-line);
}
.ip-player-wrap video {
  width: 100%; height: 100%;
  display: block;
  background: #000;
}
.ip-watch-title {
  font-family: var(--ip-serif);
  font-optical-sizing: auto;
  font-size: clamp(1.4rem, 2.6vw, 2.1rem);
  font-weight: 500;
  letter-spacing: -.018em;
  line-height: 1.06;
  color: var(--ip-white);
  margin-bottom: 8px;
}
.ip-watch-meta {
  font-family: var(--ip-mono);
  font-size: .72rem;
  font-weight: 500;
  color: var(--ip-dimmer);
  letter-spacing: .04em;
  margin-bottom: 20px;
}
.ip-watch-channel {
  display: flex; align-items: center; gap: 14px;
  padding: 18px 0;
  border-top: 1px solid var(--ip-line);
  border-bottom: 1px solid var(--ip-line);
  margin-bottom: 22px;
}
.ip-watch-channel__avatar {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, #2a3142, #161a24);
  border: 1px solid var(--ip-line-2);
  display: flex; align-items: center; justify-content: center;
  color: #cdd9ee;
  font-weight: 700;
  font-size: .9rem;
  overflow: hidden;
  flex-shrink: 0;
}
.ip-watch-channel__avatar img { width: 100%; height: 100%; object-fit: cover; }
.ip-watch-channel__name {
  font-family: var(--ip-serif);
  font-optical-sizing: auto;
  font-weight: 500;
  font-size: 1.1rem;
  letter-spacing: -.01em;
  color: var(--ip-white);
  text-decoration: none;
}
.ip-watch-channel__name:hover { color: #fff; }
.ip-watch-channel__meta {
  font-family: var(--ip-mono);
  font-size: .7rem;
  font-weight: 500;
  color: var(--ip-dimmer);
  letter-spacing: .02em;
}
.ip-watch-channel__spacer { flex: 1; }
.ip-watch-desc {
  background: var(--ip-bg-card);
  border: 1px solid var(--ip-line);
  border-radius: 14px;
  padding: 18px 20px;
  color: var(--ip-text);
  line-height: 1.6;
  font-size: .94rem;
  white-space: pre-wrap;
  margin-bottom: 28px;
}

/* ═══════════════════════════════════════════════════════════════════
   STUDIO  (sibling studio page)
   ═══════════════════════════════════════════════════════════════════ */
.ip-studio-card {
  background: var(--ip-bg-card);
  border: 1px solid var(--ip-line);
  border-radius: var(--ip-radius);
  padding: clamp(22px, 3vw, 30px);
  margin-bottom: 20px;
}
.ip-studio-card h2 {
  font-family: var(--ip-serif);
  font-optical-sizing: auto;
  font-size: 1.4rem;
  font-weight: 500;
  letter-spacing: -.015em;
  color: var(--ip-white);
  margin-bottom: 14px;
}
.ip-row { display: flex; flex-direction: column; gap: 7px; margin-bottom: 16px; }
.ip-row label {
  font-size: .82rem;
  font-weight: 600;
  color: var(--ip-text);
}
.ip-row label .ip-hint {
  font-weight: 400;
  color: var(--ip-dimmer);
  margin-left: 6px;
  font-size: .74rem;
}
.ip-input, .ip-textarea, .ip-select {
  padding: 12px 14px;
  background: var(--ip-bg);
  border: 1px solid var(--ip-line-2);
  border-radius: 11px;
  color: var(--ip-white);
  font-family: inherit;
  font-size: .92rem;
  transition: border-color .18s, box-shadow .18s;
}
.ip-input::placeholder, .ip-textarea::placeholder { color: var(--ip-dimmer); }
.ip-input:focus, .ip-textarea:focus, .ip-select:focus {
  outline: 0;
  border-color: var(--ip-blue);
  box-shadow: 0 0 0 3px var(--ip-blue-soft);
}
.ip-textarea { resize: vertical; min-height: 88px; line-height: 1.55; }
.ip-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
@media (max-width: 640px) { .ip-grid-2 { grid-template-columns: 1fr; } }
.ip-drop {
  border: 1px dashed var(--ip-line-2);
  border-radius: 14px;
  padding: 30px 16px;
  text-align: center;
  cursor: pointer;
  transition: border-color .18s, background .18s;
  background: var(--ip-bg);
}
.ip-drop:hover { border-color: rgba(76,141,255,.45); background: var(--ip-blue-soft); }
.ip-drop.ip-drop--active { border-color: var(--ip-blue); background: var(--ip-blue-soft); }
.ip-drop__icon { font-size: 28px; opacity: .5; margin-bottom: 8px; }
.ip-drop__hint { color: var(--ip-dim); font-size: .86rem; }
.ip-drop__filename { color: var(--ip-blue); font-family: var(--ip-mono); font-size: .78rem; margin-top: 8px; }
.ip-drop input[type=file] { display: none; }
.ip-progress {
  height: 5px;
  background: var(--ip-line);
  border-radius: 999px;
  overflow: hidden;
  margin: 12px 0;
}
.ip-progress__fill {
  height: 100%; width: 0%;
  background: var(--ip-blue);
  transition: width .12s;
}
.ip-status {
  font-size: .84rem;
  color: var(--ip-dim);
  margin-top: 12px;
}
.ip-status.ip-status--ok { color: #74e0a8; }
.ip-status.ip-status--err { color: #ff9f9a; }
.ip-actions { display: flex; gap: 10px; align-items: center; margin-top: 16px; flex-wrap: wrap; }

.ip-mychannels { display: grid; gap: 12px; }
.ip-mychannel {
  display: flex; align-items: center; gap: 14px;
  padding: 14px;
  background: var(--ip-bg);
  border: 1px solid var(--ip-line);
  border-radius: 12px;
  text-decoration: none;
  color: inherit;
  transition: border-color .18s;
}
.ip-mychannel:hover { border-color: var(--ip-line-2); }
.ip-mychannel__avatar {
  width: 42px; height: 42px;
  border-radius: 50%;
  background: linear-gradient(135deg, #2a3142, #161a24);
  border: 1px solid var(--ip-line-2);
  display: flex; align-items: center; justify-content: center;
  color: #cdd9ee;
  font-weight: 700;
  font-size: .85rem;
  flex-shrink: 0;
  overflow: hidden;
}
.ip-mychannel__avatar img { width: 100%; height: 100%; object-fit: cover; }
.ip-mychannel__body { flex: 1; min-width: 0; }
.ip-mychannel__name {
  font-family: var(--ip-serif);
  font-optical-sizing: auto;
  font-weight: 500;
  font-size: 1.02rem;
  color: var(--ip-white);
  margin-bottom: 3px;
}
.ip-mychannel__meta {
  font-family: var(--ip-mono);
  font-size: .7rem;
  font-weight: 500;
  color: var(--ip-dimmer);
  letter-spacing: .02em;
}

/* ═══════════════════════════════════════════════════════════════════
   FOOTER  (sibling pages — /iplayer uses mavion.css .foot)
   ═══════════════════════════════════════════════════════════════════ */
.ip-foot {
  text-align: center;
  padding: 30px 24px;
  font-family: var(--ip-mono);
  font-size: .66rem;
  font-weight: 500;
  color: var(--ip-dimmer);
  letter-spacing: .12em;
  text-transform: uppercase;
  border-top: 1px solid var(--ip-line);
  margin-top: clamp(48px, 7vw, 96px);
}

/* ═══════════════════════════════════════════════════════════════════
   MOTION
   ═══════════════════════════════════════════════════════════════════ */
@media (prefers-reduced-motion: reduce) {
  .ip-skel::after { animation: none; }
  .ip-video-card__thumb img,
  .ip-featured__bg { transform: none !important; transition: none !important; }
  .ip-channel-card:hover { transform: none; }
}

/* ═══════════════════════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════════════════════ */
@media (max-width: 768px) {
  .ip-top { height: 64px; }
}
@media (max-width: 620px) {
  .ip-channels { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 16px; }
  .ip-videos   { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 24px 16px; }
}
