/*
 * narrwhal chrome for the Cast styled media player. Monochrome dark, same
 * palette as the web app (bg #0a0a0a, surfaces #121212/#181818, borders
 * #242424/#333333, text #ededed/#a1a1a1, white accent) — deliberately no
 * chromatic accent. The font is the system stack: bundling Inter would bloat
 * the receiver for a screen viewed from three meters away.
 */

:root {
  --bg: #0a0a0a;
  --surface: #121212;
  --border: #242424;
  --border-2: #333333;
  --text: #ededed;
  --text-2: #a1a1a1;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
}

html,
body {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: var(--bg);
  font-family: var(--font);
}

/*
 * Styled-media-player variables CAF supports. --theme-hue drives the derived
 * accent hues; pinning the progress color to pure white keeps the seek bar on
 * narrwhal's single near-white accent regardless. No splash/logo images —
 * the idle state is our own wordmark overlay below.
 */
cast-media-player {
  --theme-hue: 0;
  --progress-color: #ffffff;
  --splash-image: none;
  --logo-image: none;
  --background-image: none;
  --font-family: var(--font);
}

/* Idle splash — a quiet wordmark on the page background. */
#idle-splash {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg);
  z-index: 10;
}

#idle-splash[hidden] {
  display: none;
}

.wordmark {
  color: var(--text);
  font-size: 64px;
  font-weight: 600;
  letter-spacing: 0.08em;
}

/* Trickplay scrub preview — centered above the control bar. */
#scrub-preview {
  position: absolute;
  left: 50%;
  bottom: 180px;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  z-index: 20;
}

#scrub-preview[hidden] {
  display: none;
}

#scrub-frame {
  background-color: var(--surface);
  background-repeat: no-repeat;
  border: 1px solid var(--border-2);
  border-radius: 4px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.6);
}

#scrub-time {
  color: var(--text);
  background: rgba(18, 18, 18, 0.9);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 4px 10px;
  font-size: 22px;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.04em;
}

/* Skip-segment pill — bottom-right, display-only. */
#segment-pill {
  position: absolute;
  right: 56px;
  bottom: 180px;
  color: var(--text);
  background: rgba(18, 18, 18, 0.9);
  border: 1px solid var(--border-2);
  border-radius: 999px;
  padding: 8px 18px;
  font-size: 20px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  z-index: 20;
}

#segment-pill[hidden] {
  display: none;
}
