/* Section: mediaplayer (Figma 23:1703) */
#sec-mediaplayer {
  position: relative;
  width: 1728px;
  height: 1674px;
  overflow: hidden;
  background: #01353e;
  box-sizing: border-box;
  padding: 100px 200px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 40px;
  font-family: "Inter", system-ui, sans-serif;
}
#sec-mediaplayer * { box-sizing: border-box; }
#sec-mediaplayer .mp-bg { position: absolute; inset: 0; pointer-events: none; z-index: 0; }
#sec-mediaplayer .mp-bg img { width: 100%; height: 100%; object-fit: cover; display: block; }

#sec-mediaplayer .mp-img { display: block; width: 100%; height: 100%; }

/* OCR-style mono text used on the cards / screen tag */
#sec-mediaplayer .mp-ocr,
#sec-mediaplayer .mp-eptag,
#sec-mediaplayer .mp-upnext,
#sec-mediaplayer .mp-badge,
#sec-mediaplayer .mp-ep,
#sec-mediaplayer .mp-card-title,
#sec-mediaplayer .mp-card-text {
  font-family: "OCR A Std", "Share Tech Mono", ui-monospace, monospace;
}

/* ---- Media Player window ---- */
#sec-mediaplayer .mp-window {
  position: relative;
  z-index: 1;
  width: 1329px;
  background: #0051c6;
  border-radius: 12px;
  padding: 6px;
  box-shadow: -10px 10px 0 0 #042049;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  overflow: hidden;
  flex: none;
}
#sec-mediaplayer .mp-topstripe { height: 6px; width: 100%; }
#sec-mediaplayer .mp-botstripe { height: 6px; width: 100%; display: block; transform: rotate(180deg); margin-right: 10px; }

#sec-mediaplayer .mp-header { width: 100%; padding: 10px 20px; }
#sec-mediaplayer .mp-header-row { display: flex; gap: 40px; height: 36.89px; align-items: center; width: 100%; }
#sec-mediaplayer .mp-titlegrp { flex: 1 0 0; min-width: 0; display: flex; gap: 40px; align-items: center; }
#sec-mediaplayer .mp-logo { width: 69.64px; height: 17.82px; display: block; flex: none; }
#sec-mediaplayer .mp-title { font-size: 27.55px; color: #fff; white-space: nowrap; flex: none; }
#sec-mediaplayer .mp-logo2 { flex: 1 0 0; min-width: 0; height: 17.82px; display: block; mix-blend-mode: multiply; object-fit: cover; }

#sec-mediaplayer .mp-winbtns { display: flex; gap: 12px; align-items: center; flex: none; }
#sec-mediaplayer .mp-wb {
  width: 36px; height: 36px;
  background: #56f77e;
  border-radius: 6px;
  padding: 3px;
  box-shadow: -2.5px 2.5px 0 0 #01353e;
  display: flex; flex-direction: column; align-items: flex-end; justify-content: space-between;
  overflow: hidden;
}
#sec-mediaplayer .mp-wb-top, #sec-mediaplayer .mp-wb-bot { width: 28px; height: 4px; display: block; }
#sec-mediaplayer .mp-wb-bot { transform: rotate(180deg); }
#sec-mediaplayer .mp-wb-mid { display: flex; align-items: center; justify-content: center; width: 30px; padding: 3px 8px; }
#sec-mediaplayer .mp-wb-x { width: 14px; height: 14px; display: block; }
#sec-mediaplayer .mp-wb-min { width: 21px; height: 2px; display: block; }
#sec-mediaplayer .mp-wb-window { display: block; width: 20px; height: 20px; border: 2px solid #01353e; border-radius: 1px; border-top-width: 6px; }

/* ---- Screen ---- */
#sec-mediaplayer .mp-screen-wrap { width: 100%; padding: 10px 20px; }
#sec-mediaplayer .mp-screen { position: relative; background: #000; height: 664px; border-radius: 5px; overflow: hidden; width: 100%; }
#sec-mediaplayer .mp-video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; display: block; }
#sec-mediaplayer .mp-eptag {
  position: absolute; z-index: 1; left: 11px; top: 15.11px;
  background: #56f77e; border-radius: 5px; padding: 12px 30px;
  color: #000; font-size: 18px; text-transform: uppercase; line-height: 1;
}
/* Mirrors .mp-eptag on the opposite corner. Outlined rather than solid so the
   queue reads as secondary to the episode actually playing. Hidden by
   player.js whenever nothing follows the current episode. */
#sec-mediaplayer .mp-upnext {
  position: absolute; z-index: 1; right: 11px; top: 15.11px;
  border: 2px solid #56f77e; border-radius: 5px; padding: 10px 20px;
  color: #56f77e; font-size: 18px; text-transform: uppercase; line-height: 1;
  background: rgba(0,0,0,0.55);
}
#sec-mediaplayer .mp-upnext[hidden] { display: none; }

/* ---- Progress bar ---- */
#sec-mediaplayer .mp-prog-wrap { width: 100%; padding: 10px 20px; display: flex; flex-direction: column; align-items: center; }
#sec-mediaplayer .mp-track { position: relative; width: 100%; height: 40px; cursor: pointer; touch-action: none; }
#sec-mediaplayer .mp-track-fill {
  position: absolute; top: 50%; transform: translateY(-50%); left: 0; right: 0;
  height: 10px; background: rgba(86,247,126,0.2); border-radius: 10px;
}
/* Elapsed portion. Sits over .mp-track-fill (the unplayed groove). */
#sec-mediaplayer .mp-track-played {
  position: absolute; top: 50%; transform: translateY(-50%); left: 0; width: 0;
  height: 10px; background: #56f77e; border-radius: 10px;
}
#sec-mediaplayer .mp-thumb {
  position: absolute; top: 0; left: 7.37%; margin-left: -4px;
  width: 8px; height: 40px; background: #56f77e;
  border: 2px solid #0051c6; border-radius: 10px;
}
#sec-mediaplayer .mp-track:focus-visible { outline: 2px solid #56f77e; outline-offset: 6px; }

/* ---- Transport controls ---- */
#sec-mediaplayer .mp-trans-wrap { width: 100%; padding: 10px 20px; }
#sec-mediaplayer .mp-trans { position: relative; height: 39.273px; width: 100%; }
#sec-mediaplayer .mp-eject { position: absolute; left: 0; top: 0; height: 100%; width: 33px; }
/* The eject SVGs declare width/height:100% (no intrinsic px size), so a width-only
   rule makes Chrome fall back to the default 150px replaced height — a tall green
   sliver. Pin the height via each SVG's viewBox aspect ratio. */
#sec-mediaplayer .mp-eject-top { position: absolute; left: 0; top: 2.27%; width: 100%; height: auto; aspect-ratio: 32.5583 / 28.8586; display: block; }
#sec-mediaplayer .mp-eject-bot { position: absolute; left: 0.15%; bottom: 2.27%; width: 100%; height: auto; aspect-ratio: 28.625 / 4.38538; display: block; }
/* The artwork keeps its intrinsic size; the wrapper is the coordinate space the
   hit targets are positioned in, so their percentages always line up with the
   glyphs (including the scaled-down mobile player). */
#sec-mediaplayer .mp-transport-wrap {
  position: absolute; left: 50%; transform: translateX(-50%); top: 0;
  width: 428.045px; height: 39.273px;
}
#sec-mediaplayer .mp-transport { display: block; width: 100%; height: 100%; }
#sec-mediaplayer .mp-tbtn {
  position: absolute; top: 0; height: 100%;
  margin: 0; padding: 0; border: 0; background: none;
  cursor: pointer; -webkit-appearance: none; appearance: none;
}
/* Each glyph's bbox in the 428.045-wide artwork, widened ~2% a side. The gaps
   between glyphs are far wider than that, so these never overlap. */
#sec-mediaplayer .mp-tbtn-prev  { left: 0;       width: 11.02%; }
#sec-mediaplayer .mp-tbtn-rew   { left: 16.36%;  width: 15.06%; }
#sec-mediaplayer .mp-tbtn-play  { left: 36.77%;  width: 11.56%; }
#sec-mediaplayer .mp-tbtn-pause { left: 53.68%;  width: 9.55%; }
#sec-mediaplayer .mp-tbtn-fwd   { left: 68.58%;  width: 15.07%; }
#sec-mediaplayer .mp-tbtn-next  { left: 88.99%;  width: 11.01%; }
#sec-mediaplayer .mp-tbtn:focus-visible { outline: 2px solid #56f77e; outline-offset: 2px; }
/* Nothing to advance to (last published episode) — still focusable, just inert. */
#sec-mediaplayer .mp-tbtn[aria-disabled="true"] { cursor: default; }

#sec-mediaplayer .mp-vol { position: absolute; right: 0; top: 0.33px; display: flex; gap: 20px; align-items: center; }
#sec-mediaplayer .mp-vol-btn {
  margin: 0; padding: 0; border: 0; background: none; line-height: 0;
  cursor: pointer; -webkit-appearance: none; appearance: none;
}
#sec-mediaplayer .mp-vol-btn:focus-visible { outline: 2px solid #56f77e; outline-offset: 4px; }
/* Muted: the level bars read as inactive. */
#sec-mediaplayer .mp-vol-bars.mp-vol-off { opacity: 0.3; }
#sec-mediaplayer .mp-vol-spk { width: 38.372px; height: 38.62px; display: block; }
#sec-mediaplayer .mp-vol-bars { width: 94.807px; height: 37.285px; display: block; }

#sec-mediaplayer .mp-divider { width: 100%; padding: 10px 20px; }
#sec-mediaplayer .mp-divider img { width: 100%; height: 17.82px; display: block; mix-blend-mode: multiply; }

/* ---- Episode cards ---- */
#sec-mediaplayer .mp-cards { position: relative; z-index: 1; width: 1329px; display: flex; gap: 40px; align-items: stretch; }
#sec-mediaplayer .mp-card {
  flex: 1 0 0; min-width: 0;
  padding: 24px; border-radius: 7px;
  display: flex; flex-direction: column; justify-content: space-between;
  overflow: hidden;
}
#sec-mediaplayer .mp-card-live { background: #03358c; box-shadow: -10px 10px 0 0 #042049; gap: 40px; }
#sec-mediaplayer .mp-card-dark { background: #042049; box-shadow: -10px 10px 0 0 #03358c; }
#sec-mediaplayer .mp-card-body { display: flex; flex-direction: column; gap: 35px; width: 100%; }
#sec-mediaplayer .mp-card-live .mp-card-body { gap: 40px; }
#sec-mediaplayer .mp-card-head { display: flex; align-items: center; justify-content: space-between; width: 100%; }
#sec-mediaplayer .mp-badge {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 12px 30px; border-radius: 5px;
  color: #fff; font-size: 18px; text-transform: uppercase; line-height: 1; white-space: nowrap;
}
#sec-mediaplayer .mp-badge-live { background: #0051c6; }
#sec-mediaplayer .mp-badge-dark { background: #03358c; }
#sec-mediaplayer .mp-ep { font-size: 32px; color: #fff; text-transform: uppercase; line-height: 1; }
#sec-mediaplayer .mp-card-title { font-size: 24px; color: #56f77e; text-transform: uppercase; line-height: 1.3; width: 100%; }
#sec-mediaplayer .mp-card-text { font-size: 18px; color: #fff; line-height: 1.3; width: 100%; }

/* ---- Card buttons ---- */
/* Playable episode buttons; "Coming soon" cards stay inert (see player.js). */
#sec-mediaplayer .mp-btn[role="button"] { cursor: pointer; }
#sec-mediaplayer .mp-btn[aria-disabled="true"] { cursor: default; }
#sec-mediaplayer .mp-btn {
  border-radius: 6px; padding: 4px;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  overflow: hidden; flex: none; align-self: flex-start;
}
#sec-mediaplayer .mp-btn-top, #sec-mediaplayer .mp-btn-bot { width: 100%; height: 4px; display: block; }
#sec-mediaplayer .mp-btn-bot { transform: rotate(180deg); mix-blend-mode: multiply; }
#sec-mediaplayer .mp-btn-label { display: flex; gap: 10px; align-items: center; justify-content: center; padding: 2px 16px; }
#sec-mediaplayer .mp-btn-label span { font-size: 24px; text-transform: uppercase; white-space: nowrap; line-height: 1; }
#sec-mediaplayer .mp-btn-play { width: 18px; height: 20px; display: block; }
/* display:block above beats the hidden attribute, so the play glyph was showing
   on "Coming soon" buttons too. The glyph marks the episode that is playing. */
#sec-mediaplayer .mp-btn-play[hidden] { display: none; }
#sec-mediaplayer .mp-btn-green { background: #56f77e; box-shadow: -3px 3px 0 0 #0051c6; }
#sec-mediaplayer .mp-btn-green .mp-btn-label span { color: #1374ff; }
#sec-mediaplayer .mp-btn-register { background: #56f77e; box-shadow: -3px 3px 0 0 #1374ff; }
#sec-mediaplayer .mp-btn-register .mp-btn-label span { color: #1374ff; }
#sec-mediaplayer .mp-btn-notify { background: rgba(86,247,126,0.5); box-shadow: -3px 3px 0 0 rgba(19,116,255,0.5); }
#sec-mediaplayer .mp-btn-notify .mp-btn-label span { color: rgba(255,255,255,0.7); }

/* ============================================================
   MOBILE (<= 768px): fluid window, stacked episode cards.
   ============================================================ */

/* wrapper is inert on desktop */
#sec-mediaplayer .mp-window-fit { display: contents; }

@media (max-width: 768px) {
  #sec-mediaplayer { height: auto; overflow: visible; padding: 40px 16px; gap: 24px; }

  /* Scale the whole player window down to fit the viewport as one unit,
     preserving all its internal proportions (JS sets the scale + wrapper height,
     see responsive.js). This avoids distorting the fixed-px transport controls. */
  #sec-mediaplayer .mp-window-fit { display: block; width: 100%; overflow: hidden; }
  #sec-mediaplayer .mp-window { width: 1329px; transform-origin: top left; }

  /* Episode cards: stack full-width, readable */
  #sec-mediaplayer .mp-cards { width: 100%; flex-direction: column; gap: 20px; }
  #sec-mediaplayer .mp-card { width: 100%; flex: none; }
}
