:root {
  --primary: #1c2740;
  --primary-light: #2a3a5c;
  --accent: #c9a227;
  --accent-soft: rgba(201, 162, 39, 0.16);
  --bg: #f7f6f3;
  --surface: #ffffff;
  --border: #e6e3dc;
  --text: #1a1c1e;
  --muted: #5e646c;
  --radius: 16px;
  --shadow: 0 12px 40px rgba(28, 39, 64, 0.08);
  --plyr-color-main: #c9a227;
  --plyr-font-family: "Outfit", system-ui, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

[hidden] {
  display: none !important;
}

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  font-family: "Outfit", system-ui, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.5;
  padding-left: env(safe-area-inset-left);
  padding-right: env(safe-area-inset-right);
}

.page-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, #ffffff 0%, #f7f6f3 28%, #f4f2ec 100%);
}

.container {
  width: min(1100px, 92vw);
  margin-inline: auto;
}

.site-header {
  padding: 1rem 0;
  border-bottom: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  position: sticky;
  top: 0;
  z-index: 10;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.brand-mark {
  width: 56px;
  height: auto;
  display: block;
  flex-shrink: 0;
}

.brand-title {
  margin: 0;
  font-family: "Bebas Neue", sans-serif;
  font-size: 1.75rem;
  letter-spacing: 0.04em;
  line-height: 1.1;
}

.brand-sub {
  margin: 0;
  font-size: 0.85rem;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-weight: 500;
}

.header-aside {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.romania-clock {
  text-align: right;
  line-height: 1.2;
}

.romania-clock-label {
  display: block;
  font-size: 0.7rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.romania-clock strong {
  display: block;
  font-size: 0.95rem;
  font-variant-numeric: tabular-nums;
  color: var(--primary);
}

.header-link {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.9rem;
  padding: 0.55rem 1rem;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  border: 1px solid var(--border);
  border-radius: 999px;
  transition: color 0.2s, border-color 0.2s;
  -webkit-tap-highlight-color: transparent;
}

.header-link:hover {
  color: var(--text);
  border-color: var(--accent);
}

.main {
  padding: 2.5rem 0 4rem;
}

.hero {
  text-align: center;
  padding: 2.25rem 1.75rem 2.5rem;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  margin-bottom: 3.25rem;
}

.hero-badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--accent);
  border: 1px solid var(--accent-soft);
  padding: 0.35rem 1rem;
  border-radius: 999px;
  margin-bottom: 1rem;
}

.hero-badge.is-live {
  color: #c0392b;
  border-color: rgba(192, 57, 43, 0.28);
  background: #fff4f3;
}

.hero-heading {
  font-family: "Bebas Neue", sans-serif;
  font-size: clamp(2rem, 6vw, 3.25rem);
  letter-spacing: 0.03em;
  margin: 0 0 0.5rem;
  line-height: 1.05;
}

.hero-meta {
  color: var(--muted);
  margin: 0 0 1.75rem;
  font-size: 1.05rem;
}

.match-card.highlight {
  max-width: 640px;
  margin: 0 auto 2rem;
  padding: 1.5rem 1.75rem;
  background: #fffdf7;
  border: 1px solid #ead9a3;
  border-radius: calc(var(--radius) - 4px);
}

.match-competition {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent);
  margin-bottom: 0.75rem;
}

.match-teams {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.75rem 1rem;
  font-weight: 600;
  font-size: clamp(1.1rem, 3vw, 1.35rem);
}

.match-vs {
  color: var(--muted);
  font-weight: 400;
  font-size: 0.9rem;
}

.match-datetime {
  margin-top: 1rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.live-block {
  margin-top: 0.5rem;
}

.live-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  color: #c0392b;
  margin-bottom: 1rem;
}

.live-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #c0392b;
  animation: pulse 1.5s ease infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.85); }
}

.player-wrap {
  max-width: 900px;
  margin: 0 auto;
}

.player-aspect {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: 0 10px 28px rgba(28, 39, 64, 0.1);
}

.broadcast-preroll {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000;
  z-index: 4;
}

.broadcast-preroll.is-joining {
  opacity: 0;
  pointer-events: none;
}

.broadcast-preroll.is-stream::-webkit-media-controls-timeline,
.broadcast-preroll.is-stream::-webkit-media-controls-current-time-display,
.broadcast-preroll.is-stream::-webkit-media-controls-time-remaining-display {
  display: none !important;
}

.preroll-plyr {
  position: absolute;
  inset: 0;
  z-index: 4;
  height: 100%;
  background: #000;
}

.preroll-plyr .broadcast-preroll {
  position: absolute;
}

.broadcast-wait {
  position: absolute;
  inset: 0;
  z-index: 8;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 1.5rem;
  background:
    radial-gradient(ellipse 70% 60% at 50% 45%, #ffffff 0%, #f4f1e8 55%, #e8e2d2 100%);
}

.broadcast-wait img {
  width: min(28%, 140px);
  height: auto;
  display: block;
  filter: drop-shadow(0 8px 18px rgba(28, 39, 64, 0.12));
  opacity: 1;
}

.broadcast-wait .tv-splash-label {
  opacity: 1;
  transform: none;
}

.broadcast-wait-text {
  margin: 0.75rem 0 0;
  text-align: center;
  font-size: clamp(1rem, 2.4vw, 1.25rem);
  font-weight: 600;
  color: var(--primary);
}

.wait-fs-btn {
  position: absolute;
  right: 14px;
  bottom: 14px;
  z-index: 2;
  margin: 0;
  border: 0;
  border-radius: 8px;
  padding: 0.55rem 0.85rem;
  background: rgba(28, 39, 64, 0.82);
  color: #fff;
  font: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
}

.wait-fs-btn:hover {
  background: rgba(28, 39, 64, 0.95);
}

.broadcast-play-gate {
  position: absolute;
  inset: 0;
  z-index: 9;
  margin: 0;
  border: 0;
  background: rgba(12, 16, 24, 0.42);
  color: #fff;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

.broadcast-wait[hidden],
.broadcast-preroll[hidden],
.preroll-plyr[hidden],
.broadcast-play-gate[hidden] {
  display: none !important;
}

.player-mount {
  position: absolute;
  inset: 0;
}

.player-mount .plyr {
  height: 100%;
  border-radius: inherit;
}

.player-mount iframe {
  border: 0;
}

.player-aspect .plyr__controls {
  z-index: 6;
}

.player-aspect.has-splash .plyr__control--overlaid {
  display: none !important;
}

.tv-splash {
  position: absolute;
  inset: 0;
  z-index: 7;
  border: 0;
  margin: 0;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  pointer-events: none;
  color: var(--primary);
  background:
    radial-gradient(ellipse 70% 60% at 50% 45%, #ffffff 0%, #f4f1e8 55%, #e8e2d2 100%);
}

.tv-splash.is-holding {
  opacity: 1;
}

.tv-splash.is-holding img,
.tv-splash.is-holding .tv-splash-label {
  opacity: 1;
  transform: none;
}

.tv-splash.is-animating {
  animation: tv-splash-out 2.4s ease forwards;
}

.tv-splash.is-animating img {
  animation: tv-logo-in 2.4s ease forwards;
}

.tv-splash.is-animating .tv-splash-label {
  animation: tv-word-in 2.4s ease forwards;
}

.tv-splash img {
  width: min(28%, 140px);
  height: auto;
  display: block;
  filter: drop-shadow(0 8px 18px rgba(28, 39, 64, 0.12));
  opacity: 0;
  transform: scale(0.82);
}

.tv-splash-label {
  font-family: "Bebas Neue", sans-serif;
  font-size: clamp(2.4rem, 7vw, 3.6rem);
  letter-spacing: 0.18em;
  line-height: 1;
  color: #c9a227;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.6);
  opacity: 0;
  transform: translateY(10px);
}

@keyframes tv-logo-in {
  0% { opacity: 0; transform: scale(0.82); }
  18% { opacity: 1; transform: scale(1.04); }
  30% { opacity: 1; transform: scale(1); }
  78% { opacity: 1; transform: scale(1); }
  100% { opacity: 0; transform: scale(1.06); }
}

@keyframes tv-word-in {
  0%, 12% { opacity: 0; transform: translateY(12px); }
  28% { opacity: 1; transform: translateY(0); }
  78% { opacity: 1; transform: translateY(0); }
  100% { opacity: 0; transform: translateY(-6px); }
}

@keyframes tv-splash-out {
  0%, 78% { opacity: 1; }
  100% { opacity: 0; }
}

.tv-splash[hidden] {
  display: none !important;
}

.player-aspect:fullscreen .tv-splash img,
.player-aspect:-webkit-full-screen .tv-splash img {
  width: min(18vw, 180px);
}

.player-aspect:fullscreen .tv-splash-label,
.player-aspect:-webkit-full-screen .tv-splash-label,
.player-aspect:fullscreen .broadcast-wait .tv-splash-label,
.player-aspect:-webkit-full-screen .broadcast-wait .tv-splash-label {
  font-size: 4.2rem;
}

.player-aspect:fullscreen .broadcast-wait img,
.player-aspect:-webkit-full-screen .broadcast-wait img {
  width: min(18vw, 180px);
}

.player-aspect:fullscreen,
.player-aspect:-webkit-full-screen {
  width: 100vw;
  height: 100vh;
  max-width: none;
  aspect-ratio: auto;
  border-radius: 0;
  border: 0;
}

.player-aspect:fullscreen .preroll-plyr,
.player-aspect:-webkit-full-screen .preroll-plyr {
  height: 100%;
}

.player-aspect:fullscreen .video-overlays,
.player-aspect:-webkit-full-screen .video-overlays {
  top: 20px;
  right: 20px;
  left: auto;
  gap: 12px;
}

.player-aspect:fullscreen .video-overlay-chip,
.player-aspect:-webkit-full-screen .video-overlay-chip {
  padding: 8px 10px;
}

.player-aspect:fullscreen .video-overlay-logo,
.player-aspect:-webkit-full-screen .video-overlay-logo {
  width: calc(var(--ow, 168px) * 1.65);
  height: calc(var(--oh, 56px) * 1.65);
  max-width: 22vw;
}

.video-overlays {
  position: absolute;
  top: 16px;
  right: 10px;
  left: auto;
  z-index: 5;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
  pointer-events: none;
}

.video-overlay-chip {
  display: block;
  background: #ffffff;
  padding: 6px 8px;
  border-radius: 8px;
  border: 1px solid rgba(28, 39, 64, 0.08);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.16);
}

.video-overlay-logo {
  display: block;
  width: var(--ow, auto);
  height: var(--oh, 56px);
  max-width: min(38vw, 168px);
  object-fit: contain;
}

.live-hint {
  margin-top: 0.75rem;
  font-size: 0.85rem;
  color: var(--muted);
}

.section-head {
  margin-bottom: 1.75rem;
}

.section-head h2 {
  font-family: "Bebas Neue", sans-serif;
  font-size: 2rem;
  letter-spacing: 0.04em;
  margin: 0 0 0.35rem;
}

.section-desc {
  margin: 0;
  color: var(--muted);
}

.archive-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}

.archive-card {
  position: relative;
  border: none;
  padding: 0;
  cursor: pointer;
  text-align: left;
  background: var(--surface);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  transition: transform 0.25s, border-color 0.25s, box-shadow 0.25s;
  color: inherit;
  font: inherit;
  width: 100%;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

.archive-card:hover {
  transform: translateY(-3px);
  border-color: #ead9a3;
  box-shadow: 0 16px 36px rgba(28, 39, 64, 0.1);
}

.archive-thumb {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #eceae4;
}

.archive-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.archive-body {
  padding: 1rem 1.1rem 1.15rem;
}

.archive-competition {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #9a7b1a;
  margin-bottom: 0.35rem;
}

.archive-teams {
  font-weight: 600;
  font-size: 0.98rem;
  line-height: 1.3;
  margin-bottom: 0.35rem;
  color: var(--text);
}

.archive-meta {
  font-size: 0.8rem;
  color: var(--muted);
}

.archive-score {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  background: #ffffff;
  color: var(--primary);
  border: 1px solid #ead9a3;
  padding: 0.35rem 0.65rem;
  border-radius: 8px;
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.05em;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.play-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(201, 162, 39, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.2s;
}

.archive-card:hover .play-icon {
  opacity: 1;
}

.play-icon::after {
  content: "";
  border: 10px solid transparent;
  border-left: 16px solid #1c2740;
  margin-left: 4px;
}

.empty-state {
  text-align: center;
  color: var(--muted);
  padding: 2rem;
}

.site-footer {
  padding: 2rem 0;
  border-top: 1px solid var(--border);
  text-align: center;
  font-size: 0.85rem;
  color: var(--muted);
}

.vod-modal {
  border: none;
  padding: 0;
  width: min(920px, 94vw);
  max-width: min(920px, 94vw);
  background: transparent;
  color: var(--text);
}

.vod-modal::backdrop {
  background: rgba(26, 28, 30, 0.45);
  backdrop-filter: blur(4px);
}

.vod-modal-inner {
  position: relative;
  background: #ffffff;
  border-radius: var(--radius);
  padding: 1rem;
  border: 1px solid var(--border);
  box-shadow: 0 24px 60px rgba(28, 39, 64, 0.18);
}

.vod-close {
  position: absolute;
  top: -0.5rem;
  right: -0.5rem;
  z-index: 2;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: #ffffff;
  color: var(--primary);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.vod-title {
  margin: 0.75rem 0 0;
  font-size: 0.95rem;
  color: var(--muted);
}

/* ——— Arhivă: bară unică peste interviuri + meci ——— */
.vod-loading {
  position: absolute;
  inset: 0;
  z-index: 6;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
  pointer-events: none;
  background:
    radial-gradient(ellipse 70% 60% at 50% 45%, #ffffff 0%, #f4f1e8 55%, #e8e2d2 100%);
}

.vod-loading img {
  width: min(22%, 110px);
  height: auto;
  display: block;
  animation: vod-pulse 1.4s ease-in-out infinite;
}

.vod-loading .tv-splash-label {
  opacity: 1;
  transform: none;
  font-size: clamp(1.8rem, 5vw, 2.6rem);
}

@keyframes vod-pulse {
  0%, 100% { opacity: 0.55; transform: scale(0.97); }
  50% { opacity: 1; transform: scale(1); }
}

.vod-loading[hidden] {
  display: none !important;
}

/* Cât timp rulează un interviu, iframe-ul YouTube stă ascuns în spate. */
.player-mount.is-behind {
  visibility: hidden;
}

.vod-bar {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-top: 0.6rem;
  padding: 0.5rem 0.65rem;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #fbfaf7;
}

.vod-bar[hidden] {
  display: none !important;
}

.vod-btn {
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: var(--primary);
  color: #fff;
  cursor: pointer;
}

.vod-btn:hover {
  filter: brightness(1.12);
}

.vod-icon-play {
  width: 0;
  height: 0;
  border-left: 11px solid currentColor;
  border-top: 7px solid transparent;
  border-bottom: 7px solid transparent;
  margin-left: 3px;
}

.vod-btn.is-playing .vod-icon-play {
  width: 11px;
  height: 13px;
  margin-left: 0;
  border: 0;
  border-left: 3.5px solid currentColor;
  border-right: 3.5px solid currentColor;
}

.vod-icon-sound {
  width: 14px;
  height: 14px;
  border-radius: 2px;
  background: currentColor;
  clip-path: polygon(0 32%, 34% 32%, 62% 4%, 62% 96%, 34% 68%, 0 68%);
}

.vod-btn.is-muted .vod-icon-sound {
  opacity: 0.45;
}

.vod-icon-fs {
  width: 14px;
  height: 14px;
  border: 2px solid currentColor;
  border-radius: 2px;
  clip-path: polygon(0 0, 42% 0, 42% 100%, 0 100%, 0 0, 100% 0, 100% 42%, 0 42%);
}

.vod-time {
  flex: 0 0 auto;
  font-size: 0.8rem;
  font-variant-numeric: tabular-nums;
  color: var(--muted);
}

.vod-segment {
  flex: 0 1 auto;
  max-width: 26%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--primary);
}

.vod-track {
  position: relative;
  flex: 1 1 auto;
  height: 22px;
  cursor: pointer;
  touch-action: none;
}

.vod-track::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 5px;
  transform: translateY(-50%);
  border-radius: 999px;
  background: #e6e1d4;
}

.vod-track-fill {
  position: absolute;
  left: 0;
  top: 50%;
  height: 5px;
  width: 0;
  transform: translateY(-50%);
  border-radius: 999px;
  background: var(--accent);
}

.vod-track-marks {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.vod-mark {
  position: absolute;
  top: 50%;
  width: 2px;
  height: 11px;
  transform: translate(-1px, -50%);
  background: rgba(28, 39, 64, 0.35);
}

.vod-track-knob {
  position: absolute;
  top: 50%;
  left: 0;
  width: 13px;
  height: 13px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.25);
  pointer-events: none;
}

.vod-track:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 6px;
}

/* ——— Mobile & touch ——— */
@media (max-width: 640px) {
  .container {
    width: 100%;
    padding-left: max(1rem, env(safe-area-inset-left, 0px));
    padding-right: max(1rem, env(safe-area-inset-right, 0px));
  }

  .site-header {
    padding: 0.85rem 0;
    padding-top: max(0.85rem, env(safe-area-inset-top));
  }

  .header-inner {
    gap: 0.65rem;
  }

  .brand {
    gap: 0.65rem;
    min-width: 0;
  }

  .brand-mark {
    width: 44px;
    height: auto;
  }

  .brand-title {
    font-size: clamp(1.25rem, 5.5vw, 1.75rem);
    overflow-wrap: anywhere;
  }

  .brand-sub {
    font-size: 0.7rem;
    letter-spacing: 0.14em;
  }

  .header-aside {
    flex-direction: column;
    align-items: flex-end;
    gap: 0.45rem;
  }

  .header-link {
    font-size: 0.8rem;
    padding: 0.45rem 0.75rem;
  }

  .main {
    padding: 1.25rem 0 2.5rem;
  }

  .hero {
    margin-inline: -0.25rem;
    padding: 1.35rem 1rem 1.75rem;
    border-radius: 12px;
    margin-bottom: 2.25rem;
  }

  .hero-meta {
    font-size: 0.95rem;
    margin-bottom: 1.25rem;
  }

  .match-card.highlight {
    padding: 1.15rem 1rem;
    margin-bottom: 1.25rem;
  }

  .match-teams {
    flex-direction: column;
    gap: 0.35rem;
  }

  .match-vs {
    font-size: 0.75rem;
  }

  .match-datetime {
    font-size: 0.88rem;
    line-height: 1.45;
  }

  .player-aspect {
    border-radius: 8px;
  }

  .video-overlays {
    top: 46px;
    right: 6px;
    left: auto;
    gap: 6px;
  }

  .video-overlay-chip {
    padding: 4px 6px;
  }

  .video-overlay-logo {
    width: calc(var(--ow, 110px) * 0.72);
    height: calc(var(--oh, 40px) * 0.72);
    max-width: 34vw;
  }

  .live-hint {
    font-size: 0.8rem;
    padding-inline: 0.25rem;
  }

  .section-head h2 {
    font-size: 1.65rem;
  }

  .archive-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .archive-body {
    padding: 0.9rem 1rem 1rem;
  }

  .archive-teams {
    font-size: 0.9rem;
  }

  .site-footer {
    padding-bottom: max(1.5rem, env(safe-area-inset-bottom));
    font-size: 0.8rem;
    padding-inline: 1rem;
  }

  .vod-modal {
    max-width: 100%;
    width: 100%;
    margin: 0;
    height: 100%;
    max-height: none;
  }

  .vod-modal-inner {
    margin: env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left);
    padding: 0.75rem;
    border-radius: 12px 12px 0 0;
    max-height: calc(100dvh - env(safe-area-inset-top) - env(safe-area-inset-bottom));
    overflow-y: auto;
  }

  .vod-close {
    top: max(0.5rem, env(safe-area-inset-top));
    right: 0.5rem;
    width: 44px;
    height: 44px;
  }

  .vod-bar {
    flex-wrap: wrap;
    gap: 0.45rem 0.5rem;
  }

  .vod-track {
    order: 10;
    flex: 1 1 100%;
    height: 28px;
  }

  .vod-segment {
    max-width: 45%;
  }

  .vod-btn {
    width: 40px;
    height: 40px;
  }
}

@media (hover: none) {
  .archive-card:active {
    transform: scale(0.98);
    border-color: #ead9a3;
  }

  .archive-card .play-icon {
    opacity: 0.85;
    width: 48px;
    height: 48px;
  }

  .header-link:active {
    color: var(--text);
    border-color: var(--accent);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .live-dot {
    animation: none;
  }

  .archive-card {
    transition: none;
  }
}
