/* Media layer (TV/VDO) — real playback + honest states for the /v1/media/*
 * wiring (media-api.js / media-player.js / media-integration.js).
 * Design rules: tokens.css variables only (imported once by m9-ui.css — this
 * file adds no @import), no hex colors, no new breakpoints, text keeps the
 * token typography (>= 12px) and controls keep the >= 44px touch target. */

.m9-media-poster {
  display: grid;
  place-items: center;
  aspect-ratio: 16 / 9;
  background: var(--m9-neutral-bg);
  color: var(--m9-neutral);
  border-radius: var(--m9-radius-md);
}

.m9-media-poster .m9-icon {
  width: 48px;
  height: 48px;
}

.mini-channel .m9-media-poster {
  width: 96px;
  height: 64px;
  aspect-ratio: auto;
  border-radius: var(--m9-radius-sm);
  flex: none;
}

.m9-media-player {
  display: grid;
  gap: var(--m9-space-3);
}

.m9-media-video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: var(--m9-brand-navy);
  border-radius: var(--m9-radius-lg);
}

.m9-media-modal h2 {
  margin: 0 0 var(--m9-space-3);
  font: var(--m9-type-section-title);
}

.m9-media-state {
  min-width: 0;
}

#vodGrid > .m9-empty-state,
#tvChannels > .m9-empty-state,
#watchContinue > .m9-empty-state,
.continuity-grid > .m9-empty-state {
  grid-column: 1 / -1;
}
