/* MTV News Podcasts — iPod Video player. Pure black stage, white 5G iPod. */

* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --ipod-face-a: #fdfdfd;
  --ipod-face-b: #e7e7ea;
  --ipod-edge: #b7b7bc;
  --wheel-face: #f6f6f8;
  --wheel-text: #a2a2a8;
  --sel-blue: #3875d7;
}

html, body { background: #000; color: #ddd; }
button { touch-action: manipulation; }
body {
  font-family: "Lucida Grande", "Helvetica Neue", Helvetica, Arial, sans-serif;
  min-height: 100dvh;
  display: flex; flex-direction: column; align-items: center;
  padding: 18px 16px 18px;
}

.masthead { text-align: center; margin-bottom: 16px; }
.masthead h1 {
  font-size: 15px; font-weight: 600; letter-spacing: .42em;
  text-transform: uppercase; color: #9a9a9a; text-indent: .42em;
}

main { width: 100%; max-width: 980px; display: flex; flex-direction: column; align-items: center; }

/* ── Stage: iPod + notes panel ─────────────────────────────── */
.stage { position: relative; display: flex; justify-content: center; align-items: flex-start; gap: 26px; width: 100%; }

/* ── The iPod (white-front 5G) ─────────────────────────────── */
/* Width is also capped by viewport HEIGHT so the whole iPod always fits
   on one screen with no scrolling (618/1035 = body aspect; ~100px chrome). */
.ipod {
  width: min(389px, 92vw, calc((100dvh - 130px) * 0.597));
  aspect-ratio: 618 / 1035;
  background: linear-gradient(160deg, var(--ipod-face-a) 0%, var(--ipod-face-b) 78%, #dcdcdf 100%);
  border-radius: 5.5% / 3.3%;
  border: 1px solid var(--ipod-edge);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.9),
    inset 0 -2px 6px rgba(0,0,0,.08),
    0 0 0 2px #1a1a1a,
    0 22px 60px rgba(255,255,255,.07),
    0 10px 40px rgba(0,0,0,.9);
  position: relative;
  flex-shrink: 0;
}

/* Full-bleed screen: video runs to the edge of the white face, clipped by
   the LCD's slightly rounded corners (owner note, 2026-07-20). */
.screen-bezel {
  position: absolute; top: 6.2%; left: 50%; transform: translateX(-50%);
  width: 86%; aspect-ratio: 4 / 3;
  background: #000;
  border-radius: 8px;
  box-shadow: inset 0 0 1px rgba(0,0,0,.5), 0 1px 0 rgba(255,255,255,.55);
  padding: 0;
}
.screen { position: relative; width: 100%; height: 100%; background: #000; overflow: hidden; border-radius: 8px; }
.screen video { width: 100%; height: 100%; display: block; background: #000; }

/* ── In-screen iPod OS menu ────────────────────────────────── */
.ipod-menu {
  position: absolute; inset: 0; background: #fff; overflow: hidden;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  display: flex; flex-direction: column; user-select: none;
}
.ipod-menu.hidden { display: none; }
.menu-bar {
  flex: 0 0 15%; display: flex; align-items: center; justify-content: center;
  position: relative;
  background: linear-gradient(#fdfdfd, #d2d2d6 55%, #c2c2c7);
  border-bottom: 1px solid #8e8e93;
  box-shadow: inset 0 1px 0 #fff;
}
.menu-title { font-size: clamp(10px, 3.4vw, 14px); font-weight: 700; color: #222; }
.menu-batt {
  position: absolute; right: 5%; top: 50%; transform: translateY(-50%);
  width: 8%; aspect-ratio: 23/11;
  border: 1px solid #7a7a80; border-radius: 2px;
  background: linear-gradient(#c8e89a, #7cc03e) content-box;
  padding: 1px;
}
.menu-batt::after {
  content: ""; position: absolute; right: -3px; top: 30%; height: 40%; width: 2px;
  background: #7a7a80; border-radius: 0 1px 1px 0;
}
.menu-list { flex: 1; list-style: none; margin: 0; padding: 0; overflow: hidden; }
.menu-list li {
  height: 14.28%; display: flex; align-items: center;
  padding: 0 10% 0 4%;
  font-size: clamp(9px, 3.1vw, 13px); font-weight: 600; color: #111;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  cursor: pointer; position: relative;
}
.menu-list li.hl {
  background: linear-gradient(#6fb5f8, #2a72d8 50%, #1b62c8);
  color: #fff;
}
.menu-list li.hl::after {
  content: "›"; position: absolute; right: 6.5%; font-weight: 700; color: #fff;
}
.menu-scrollbar {
  position: absolute; top: 15%; bottom: 0; right: 0; width: 4.5%;
  background: linear-gradient(#e8e8ec, #d5d5da);
  border-left: 1px solid #a9a9af;
}
.menu-thumb {
  position: absolute; left: 12%; right: 12%; border-radius: 3px;
  background: linear-gradient(#8fbef2, #3c7fd8);
  border: 1px solid #2a62b0;
}

/* screen controls overlay — hidden state must be untappable (review gate) */
.controls {
  position: absolute; left: 0; right: 0; bottom: 0;
  display: flex; align-items: center; gap: 8px;
  padding: 4px 8px;
  background: linear-gradient(transparent, rgba(0,0,0,.78) 40%);
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity .18s ease, visibility .18s;
}
@media (hover: hover) {
  .screen:hover .controls { opacity: 1; visibility: visible; pointer-events: auto; }
}
.screen.touched .controls,
.screen:focus-within .controls { opacity: 1; visibility: visible; pointer-events: auto; }
.c-btn {
  width: 22px; height: 22px; flex-shrink: 0; border: 0; cursor: pointer;
  background: transparent; position: relative; color: #fff;
}
#btnPlay::after {
  content: ""; position: absolute; inset: 0; margin: auto;
  border-style: solid; border-width: 7px 0 7px 12px;
  border-color: transparent transparent transparent #fff;
  width: 0; height: 0;
}
#btnPlay.playing::after {
  border: 0; width: 10px; height: 13px;
  border-left: 3.5px solid #fff; border-right: 3.5px solid #fff;
}
.c-fs::after {
  content: "⤢"; font-size: 15px; line-height: 22px; color: #fff;
}
.c-info::after {
  content: "ⓘ"; font-size: 14px; line-height: 22px; color: #fff;
}
.progress { flex: 1; height: 22px; position: relative; cursor: pointer; touch-action: none; }
.progress::before {
  content: ""; position: absolute; left: 0; right: 0; top: 50%; transform: translateY(-50%);
  height: 5px; background: rgba(255,255,255,.28); border-radius: 3px;
}
.progress-fill {
  position: absolute; left: 0; top: 50%; transform: translateY(-50%);
  height: 5px; width: 0; background: var(--sel-blue); border-radius: 3px;
}
.time { font-size: 10px; color: #eee; font-variant-numeric: tabular-nums; }

/* ── Click wheel ───────────────────────────────────────────── */
.wheel {
  position: absolute; bottom: 5.4%; left: 50%; transform: translateX(-50%);
  width: 63%; aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 42%, var(--wheel-face), #e4e4e8 72%, #d9d9dd 100%);
  box-shadow: inset 0 1px 3px rgba(0,0,0,.16), inset 0 -1px 1px rgba(255,255,255,.8);
}
.wheel-label {
  position: absolute; border: 0; background: transparent; cursor: pointer;
  color: var(--wheel-text); font-family: inherit;
  font-size: clamp(9px, 2.9vw, 12.5px); font-weight: 700; letter-spacing: .06em;
  padding: 6px 8px;
}
.wheel-label:active { color: #6f6f76; }
.wheel-label svg { display: block; width: 1.35em; height: .75em; fill: currentColor; }
.w-menu { top: 4.5%; left: 50%; transform: translateX(-50%); }
.w-prev { left: 3%;  top: 50%; transform: translateY(-50%); }
.w-next { right: 3%; top: 50%; transform: translateY(-50%); }
.w-play { bottom: 4.5%; left: 50%; transform: translateX(-50%); }
.wheel-center {
  position: absolute; inset: 0; margin: auto;
  width: 37%; aspect-ratio: 1; border-radius: 50%; border: 0; cursor: pointer;
  background: radial-gradient(circle at 50% 34%, #fbfbfd, #e2e2e6 80%);
  box-shadow: inset 0 2px 4px rgba(0,0,0,.14), 0 1px 0 rgba(255,255,255,.85);
}
.wheel-center:active { box-shadow: inset 0 3px 6px rgba(0,0,0,.24); }

/* ── Notes panel: in-flow beside the iPod on wide screens (open by
      default there); bottom-sheet overlay on mobile ─────────── */
.notes {
  background: #101012; border: 1px solid #26262a; border-radius: 10px;
  padding: 18px 18px 22px; overscroll-behavior: contain; position: relative;
}
@media (min-width: 900px) {
  .notes { display: none; width: 330px; flex-shrink: 0; overflow-y: auto;
           max-height: calc(min(389px, 92vw, (100dvh - 130px) * 0.597) * 1.675); }
  .notes.open { display: block; }
}
.notes h2 { font-size: 14px; color: #eee; margin: 0 14px 4px 0; }
.notes-meta { font-size: 11px; color: #6f6f6f; margin-bottom: 12px; }
.notes-placard { font-size: 12.5px; line-height: 1.55; color: #bbb; margin-bottom: 14px; }
.notes-placard:empty { display: none; }
.notes h3 {
  font-size: 10px; letter-spacing: .18em; text-transform: uppercase;
  color: #58585e; margin-bottom: 8px;
}
.notes-transcript { font-size: 12px; line-height: 1.6; color: #9a9aa0; white-space: pre-wrap; }
.notes-close {
  position: absolute; top: 8px; right: 10px; border: 0; background: transparent;
  color: #55555c; font-size: 18px; cursor: pointer; padding: 4px 8px;
}
.notes-close:hover { color: #aaa; }


.infolink-wrap { text-align: center; margin-top: 16px; }
.infolink {
  border: 0; background: none; cursor: pointer; font: inherit;
  font-size: 11.5px; letter-spacing: .04em; color: #7d94bd;
  text-decoration: underline; text-underline-offset: 3px;
}
.infolink:hover { color: #a8bcdf; }

/* ── Toast ─────────────────────────────────────────────────── */
.toast {
  position: fixed; bottom: 22px; left: 50%; transform: translateX(-50%) translateY(8px);
  background: #1c1c1f; color: #ccc; border: 1px solid #333;
  padding: 8px 16px; border-radius: 8px; font-size: 12px; z-index: 40;
  opacity: 0; visibility: hidden; transition: all .25s ease;
}
.toast.show { opacity: 1; visibility: visible; transform: translateX(-50%); }

/* ── Mobile: notes become a bottom-sheet overlay ───────────── */
@media (max-width: 899px) {
  .notes {
    position: fixed; left: 0; right: 0; bottom: 0; top: auto; width: auto;
    max-height: 62vh; overflow-y: auto;
    border-radius: 14px 14px 0 0; border-bottom: 0; z-index: 30;
    padding-bottom: max(22px, env(safe-area-inset-bottom));
    opacity: 0; visibility: hidden; transform: translateY(12px);
    transition: opacity .22s ease, transform .22s ease, visibility .22s;
  }
  .notes.open { opacity: 1; visibility: visible; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}
