:root {
  --bg: #1d2123;
  --bg-strong: #282b30;
  --surface: rgba(40, 43, 48, 0.84);
  --surface-strong: #32363c;
  --surface-dark: #141719;
  --text: #e8edf2;
  --muted: #97a1ab;
  --line: rgba(232, 237, 242, 0.1);
  --accent: #7cc7d9;
  --accent-2: #5f8cff;
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.38);
  --radius-lg: 28px;
  --radius-md: 20px;
  --radius-sm: 14px;
  --watch-panel-height: 560px;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Space Grotesk", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(124, 199, 217, 0.14), transparent 26%),
    radial-gradient(circle at top right, rgba(95, 140, 255, 0.12), transparent 24%),
    linear-gradient(180deg, #282b30 0%, #1d2123 55%, #171a1c 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(243, 240, 234, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(243, 240, 234, 0.03) 1px, transparent 1px);
  background-size: 24px 24px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.5), transparent 85%);
}

.page-shell {
  width: min(1380px, calc(100vw - 32px));
  margin: 0 auto;
  padding: 24px 0 40px;
}

.site-footer {
  margin-top: 28px;
  padding: 10px 6px 0;
  text-align: center;
}

.site-footer p {
  margin: 0;
  color: var(--muted);
  font-size: 0.84rem;
  letter-spacing: 0.04em;
}

.hero,
.panel {
  backdrop-filter: blur(18px);
  background: var(--surface);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: var(--shadow);
}

.hero {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr;
  gap: 24px;
  padding: 28px;
  border-radius: 36px;
  min-height: 320px;
}

.eyebrow,
.section-kicker {
  margin: 0 0 8px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.74rem;
  color: var(--accent-2);
}

.hero h1,
.section-heading h2 {
  margin: 0;
  line-height: 0.96;
}

.hero h1 {
  max-width: 10ch;
  font-size: clamp(3rem, 6vw, 5.6rem);
}

.hero-text {
  max-width: 52ch;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 1.03rem;
  line-height: 1.7;
}

.hero-actions,
.section-heading {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}

.section-actions {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.hero-actions {
  margin-top: 28px;
}

.hero-actions-right {
  justify-content: flex-end;
}

.hero-panel-watch {
  display: block;
}

.hero-actions-watch {
  grid-column: 1 / -1;
  width: 100%;
  justify-content: space-between;
  margin-top: 0;
}

.button,
.refresh-link,
.text-link {
  border: 0;
  border-radius: 999px;
  font: inherit;
  text-decoration: none;
  transition: transform 180ms ease, opacity 180ms ease, background 180ms ease;
}

.button,
.refresh-link {
  cursor: pointer;
}

.button:hover,
.refresh-link:hover,
.text-link:hover {
  transform: translateY(-1px);
}

.button:disabled,
.refresh-link:disabled {
  opacity: 0.6;
  cursor: wait;
  transform: none;
}

.button-primary {
  background: linear-gradient(135deg, #3a4752, #2b3640);
  color: #ecf3f8;
  border: 1px solid rgba(232, 237, 242, 0.1);
  padding: 14px 20px;
}

.button-secondary {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  padding: 14px 20px;
  border: 1px solid var(--line);
}

.button.compact {
  padding: 11px 16px;
}

.hero-panel {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  align-content: start;
}

.stat-card {
  border-radius: var(--radius-md);
  padding: 18px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.stat-card-wide {
  grid-column: 1 / -1;
}

.stat-label {
  display: block;
  color: var(--muted);
  font-size: 0.84rem;
}

.stat-value {
  display: block;
  margin-top: 8px;
  font-size: clamp(2rem, 4vw, 3rem);
}

.layout {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 22px;
  margin-top: 22px;
}

.watch-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) 360px;
  gap: 22px;
  margin-top: 22px;
}

.watch-layout.multi-mode {
  grid-template-columns: 1fr;
}

.watch-layout.multi-mode .multiview-panel {
  order: 1;
  grid-column: 1 / -1;
  min-width: 0;
}

.watch-layout.multi-mode .rail-panel {
  order: 2;
  grid-row: auto;
}

.watch-layout.multi-mode .multiview-picker .stream-rail {
  display: flex;
  flex-wrap: nowrap;
  gap: 10px;
  margin-top: 0;
  width: max-content;
  min-width: 100%;
  max-width: none;
  overflow: visible;
  padding-bottom: 2px;
  scroll-snap-type: x proximity;
  justify-content: flex-start;
  scrollbar-width: thin;
  -webkit-overflow-scrolling: touch;
}

.watch-layout.multi-mode .multiview-picker .rail-card {
  flex: 0 0 72px;
  width: 72px;
  max-width: 72px;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  gap: 6px;
  min-width: 0;
  overflow: hidden;
  scroll-snap-align: start;
}

.watch-layout.multi-mode .multiview-picker .rail-card.active {
  position: relative;
}

.watch-layout.multi-mode .multiview-picker .rail-card.active::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 14px;
  box-shadow: inset 0 0 0 2px rgba(124, 199, 217, 0.9);
  pointer-events: none;
}

.watch-layout.multi-mode .multiview-picker .rail-card img {
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 14px;
}

.watch-layout.multi-mode .multiview-picker .rail-card.active img {
  box-shadow: 0 0 0 1px rgba(124, 199, 217, 0.28), 0 12px 24px rgba(95, 140, 255, 0.12);
}

.watch-layout.multi-mode .multiview-picker .rail-card > div strong {
  display: block;
  font-size: 0.82rem;
  text-align: center;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.watch-layout.multi-mode .multiview-picker .rail-card.active > div strong {
  color: #9dd9e5;
}

.panel {
  border-radius: 30px;
  padding: 22px;
}

.player-panel {
  min-height: var(--watch-panel-height);
}

.player-tools {
  display: flex;
  justify-content: flex-end;
}

.comments-panel {
  min-height: 420px;
}

.sidebar-panel {
  grid-row: span 2;
}

.multiview-panel {
  grid-column: 1 / 2;
}

.comments-status {
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(24, 32, 43, 0.08);
  color: var(--muted);
  font-size: 0.82rem;
}

.comments-status[data-tone="live"] {
  background: rgba(15, 139, 141, 0.14);
  color: var(--accent-2);
}

.comments-status[data-tone="warning"] {
  background: rgba(232, 93, 63, 0.14);
  color: var(--accent);
}

.comments-feed {
  display: grid;
  gap: 12px;
  max-height: var(--comments-feed-max-height, 520px);
  overflow-y: auto;
  margin-top: 18px;
  padding-right: 4px;
  scrollbar-width: thin;
  scrollbar-color: rgba(124, 199, 217, 0.7) rgba(255, 255, 255, 0.06);
  -webkit-overflow-scrolling: touch;
}

.comments-feed::-webkit-scrollbar {
  width: 10px;
}

.comments-feed::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.06);
  border-radius: 999px;
}

.comments-feed::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, rgba(124, 199, 217, 0.9), rgba(95, 140, 255, 0.82));
  border-radius: 999px;
  border: 2px solid rgba(40, 43, 48, 0.9);
}

.comments-feed::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, rgba(146, 214, 228, 1), rgba(117, 158, 255, 0.95));
}

.comments-empty {
  display: grid;
  place-items: center;
  min-height: 220px;
  margin-top: 18px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted);
}

.comment-item {
  border-radius: 20px;
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.comment-meta {
  display: flex;
  gap: 10px;
  align-items: center;
  font-size: 0.8rem;
  color: var(--muted);
}

.comment-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
  flex: 0 0 32px;
  background: rgba(24, 32, 43, 0.08);
}

.comment-item p {
  margin: 10px 0 0;
  line-height: 1.6;
  white-space: pre-wrap;
  word-break: break-word;
}

.full-span {
  grid-column: 1 / -1;
  grid-row: auto;
}

.player-hero h1 {
  max-width: 14ch;
}

.section-heading h2 {
  font-size: clamp(1.8rem, 3vw, 2.6rem);
}

.refresh-link,
.text-link {
  color: var(--text);
  background: transparent;
  padding: 0;
}

.video-frame {
  position: relative;
  margin-top: 18px;
  border-radius: 24px;
  overflow: hidden;
  background: #06090f;
  aspect-ratio: var(--media-ratio, 16 / 9);
  --video-rotation: 0deg;
  --video-scale: 1;
  --video-nudge: 0px;
}

.video-stage {
  width: 100%;
  height: 100%;
  aspect-ratio: var(--media-ratio, 16 / 9);
  margin: 0 auto;
}

.video-stage media-player {
  width: 100%;
  height: 100%;
  aspect-ratio: inherit;
  display: block;
  background: #06090f;
  --media-brand: var(--accent-2);
  --media-focus-ring-color: rgba(124, 199, 217, 0.75);
  --media-control-bg: rgba(20, 23, 25, 0.74);
  --media-control-hover-bg: rgba(40, 43, 48, 0.94);
  --media-tooltip-bg-color: rgba(6, 9, 15, 0.92);
  --media-tooltip-color: var(--text);
  --media-menu-bg: rgba(20, 23, 25, 0.96);
}

.video-stage media-provider {
  width: 100%;
  height: 100%;
  display: block;
  transform: translateZ(0) translateX(var(--video-nudge)) rotate(var(--video-rotation)) scale(var(--video-scale));
  transform-origin: center center;
  transition: transform 180ms ease;
  backface-visibility: hidden;
  transform-style: preserve-3d;
  will-change: transform;
}

.multiview-slot .video-stage media-provider {
  transform: translateZ(0) translateX(var(--video-nudge)) rotate(var(--video-rotation)) scale(var(--video-scale));
  transform-origin: center center;
  transition: transform 180ms ease;
  backface-visibility: hidden;
  transform-style: preserve-3d;
  will-change: transform;
}

.video-stage media-player video {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.video-frame video,
.multiview-slot video {
  width: 100%;
  height: 100%;
  display: block;
  background: #06090f;
  object-fit: contain;
}

.video-frame[data-orientation="portrait"] {
  width: min(100%, 540px);
  max-height: min(82vh, 980px);
  margin-left: auto;
  margin-right: auto;
}

.video-frame[data-orientation="portrait"] .video-stage,
.video-frame[data-orientation="portrait"] .video-stage media-player {
  width: 100%;
  height: 100%;
  max-height: none;
  margin-left: auto;
  margin-right: auto;
}

.video-frame[data-fullscreen="true"][data-orientation="portrait"],
.video-frame[data-fullscreen="true"][data-orientation="portrait"] .video-stage,
.video-frame[data-fullscreen="true"][data-orientation="portrait"] .video-stage media-player,
.video-frame[data-fullscreen="true"][data-orientation="portrait"] video {
  width: 100%;
  max-width: none;
  max-height: none;
  height: 100%;
}

.video-frame[data-orientation="portrait"] video {
  max-height: min(74vh, 900px);
}

.slot-empty,
.empty-state {
  display: grid;
  place-items: center;
  color: rgba(255, 255, 255, 0.82);
}


.player-meta {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 18px;
}

.meta-pill {
  border-radius: 999px;
  background: rgba(124, 199, 217, 0.12);
  color: var(--text);
  padding: 10px 14px;
  font-size: 0.88rem;
}

.live-grid {
  display: grid;
  gap: 14px;
  margin-top: 18px;
}

.live-grid[data-loading="true"] {
  pointer-events: none;
}

.debug-note {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 0.84rem;
}

.filter-group {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}

.filter-chip {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  border-radius: 999px;
  padding: 10px 14px;
  font: inherit;
  cursor: pointer;
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease;
}

.filter-chip:hover {
  transform: translateY(-1px);
}

.filter-chip.active {
  background: linear-gradient(135deg, rgba(124, 199, 217, 0.18), rgba(95, 140, 255, 0.16));
  border-color: rgba(124, 199, 217, 0.28);
}

.refresh-button {
  display: inline-flex;
  gap: 10px;
  align-items: center;
}

.refresh-button i {
  font-size: 0.95rem;
}

.refresh-button.is-loading i {
  animation: spin 0.8s linear infinite;
}

.live-card {
  display: grid;
  grid-template-columns: 116px 1fr;
  gap: 14px;
  padding: 14px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.live-card img {
  width: 116px;
  height: 116px;
  object-fit: cover;
  border-radius: 18px;
}

.live-card h3 {
  margin: 0;
  font-size: 1.22rem;
}

.live-card p {
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.55;
}

.live-card-skeleton {
  align-items: start;
}

.skeleton {
  position: relative;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.08);
}

.skeleton::after {
  content: "";
  position: absolute;
  inset: 0;
  transform: translateX(-100%);
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.14),
    transparent
  );
  animation: skeleton-shimmer 1.1s infinite;
}

.skeleton-thumb {
  width: 116px;
  height: 116px;
  border-radius: 18px;
}

.skeleton-line {
  height: 14px;
  border-radius: 999px;
  margin-bottom: 10px;
}

.skeleton-title {
  width: min(240px, 65%);
  height: 24px;
  margin-bottom: 14px;
}

.skeleton-pill {
  width: 96px;
  height: 32px;
  border-radius: 999px;
}

@keyframes skeleton-shimmer {
  100% {
    transform: translateX(100%);
  }
}

.live-badges,
.live-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 12px;
}

.badge {
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 0.78rem;
  background: rgba(95, 140, 255, 0.12);
  color: var(--text);
}

.live-actions button,
.live-actions a {
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  text-decoration: none;
  font: inherit;
  cursor: pointer;
}

.multiview-grid {
  display: grid;
  gap: 16px;
  margin-top: 18px;
  justify-content: center;
  grid-template-columns: repeat(1, minmax(0, 1fr));
}

.multiview-grid[data-columns="1"] {
  grid-template-columns: minmax(0, 1fr);
}

.multiview-grid[data-columns="2"] {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.multiview-grid[data-columns="3"] {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.multiview-grid[data-columns="4"] {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.multiview-actions {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.multiview-picker {
  margin-top: 14px;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow-x: auto;
  overflow-y: hidden;
  padding-bottom: 6px;
  scrollbar-width: thin;
  scrollbar-color: rgba(124, 199, 217, 0.7) rgba(255, 255, 255, 0.06);
  -webkit-overflow-scrolling: touch;
}

.multiview-picker::-webkit-scrollbar {
  height: 10px;
}

.multiview-picker::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.06);
  border-radius: 999px;
}

.multiview-picker::-webkit-scrollbar-thumb {
  background: linear-gradient(90deg, rgba(124, 199, 217, 0.9), rgba(95, 140, 255, 0.82));
  border-radius: 999px;
  border: 2px solid rgba(40, 43, 48, 0.9);
}

.multiview-picker::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(90deg, rgba(146, 214, 228, 1), rgba(117, 158, 255, 0.95));
}

.rail-panel {
  grid-row: span 2;
  min-width: 0;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: thin;
  scrollbar-color: rgba(124, 199, 217, 0.7) rgba(255, 255, 255, 0.06);
  -webkit-overflow-scrolling: touch;
}

.rail-panel::-webkit-scrollbar {
  height: 10px;
}

.rail-panel::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.06);
  border-radius: 999px;
}

.rail-panel::-webkit-scrollbar-thumb {
  background: linear-gradient(90deg, rgba(124, 199, 217, 0.9), rgba(95, 140, 255, 0.82));
  border-radius: 999px;
  border: 2px solid rgba(40, 43, 48, 0.9);
}

.top-rail-panel {
  margin-top: 22px;
}

.rail-header {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.stream-rail {
  display: flex;
  flex-wrap: nowrap;
  gap: 10px;
  margin-top: 18px;
  width: max-content;
  min-width: 100%;
  overflow: visible;
}

.rail-card {
  display: grid;
  grid-template-columns: 1fr;
  align-items: start;
  gap: 6px;
  flex: 0 0 72px;
  width: 72px;
  max-width: 72px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  cursor: pointer;
  text-align: center;
  overflow: hidden;
  scroll-snap-align: start;
}

.rail-card.active {
  box-shadow: none;
}

.rail-card img {
  width: 100%;
  aspect-ratio: 1 / 1;
  height: auto;
  object-fit: cover;
  border-radius: 14px;
}

.rail-card strong,
.slot-overlay strong {
  font-size: 0.96rem;
}

.slot-overlay span {
  color: rgba(255, 255, 255, 0.78);
}

.rail-card > div {
  min-width: 0;
}

.rail-card > div strong {
  display: block;
  color: var(--text);
  line-height: 1.2;
  font-size: 0.82rem;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.rail-tag {
  align-self: center;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(15, 139, 141, 0.12);
  color: var(--text);
  font-size: 0.75rem;
}

.multiview-slot {
  display: flex;
  flex-direction: column;
  border-radius: 24px;
  overflow: hidden;
  background: var(--surface-dark);
  min-height: 0;
  position: relative;
  --video-rotation: 0deg;
  --video-scale: 1;
  --video-nudge: 0px;
}

.slot-empty {
  min-height: 220px;
  padding: 18px;
  text-align: center;
}

.slot-overlay {
  position: relative;
  z-index: 3;
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: space-between;
  padding: 12px;
  border-radius: 18px 18px 0 0;
  background: rgba(6, 9, 15, 0.72);
  color: white;
  flex-wrap: wrap;
}

.slot-overlay strong {
  display: block;
}

.slot-overlay button {
  border: 0;
  padding: 10px 12px;
  border-radius: 999px;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.12);
  color: white;
}

.slot-actions {
  display: flex;
  gap: 6px;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.multiview-slot video {
  object-fit: contain;
}

.multiview-slot .video-stage {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  aspect-ratio: var(--media-ratio, 3 / 4);
}

.multiview-slot[data-orientation="portrait"] {
  max-height: min(72vh, 760px);
}

.multiview-slot[data-orientation="portrait"] .video-stage,
.multiview-slot[data-orientation="portrait"] .video-stage media-player {
  max-height: min(62vh, 680px);
}

.multiview-slot[data-orientation="portrait"][data-viewport-mode="landscape"] .video-stage {
  aspect-ratio: 16 / 9;
}

.multiview-slot[data-orientation="portrait"] video {
  max-height: min(62vh, 680px);
}

.multiview-slot media-player:fullscreen,
.multiview-slot media-player:fullscreen media-provider,
.multiview-slot media-player:fullscreen video {
  width: 100vw;
  height: 100vh;
  max-width: none;
  max-height: none;
}

.multiview-slot media-player:fullscreen {
  aspect-ratio: auto;
}

.multiview-slot[data-orientation="portrait"][data-viewport-mode="landscape"] video {
  max-height: none;
}

.slot-overlay button[disabled] {
  opacity: 0.4;
  cursor: not-allowed;
}

.empty-state {
  min-height: 180px;
  margin-top: 18px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--muted);
}

@media (max-width: 1120px) {
  .hero,
  .layout,
  .watch-layout {
    grid-template-columns: 1fr;
  }

  .sidebar-panel,
  .comments-panel,
  .multiview-panel,
  .rail-panel {
    grid-column: auto;
    grid-row: auto;
  }

  .multiview-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    justify-content: stretch;
  }

  .multiview-grid[data-count="1"],
  .multiview-grid[data-count="2"],
  .multiview-grid[data-count="3"],
  .multiview-grid[data-count="4"] {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .comments-panel {
    height: auto;
    display: block;
  }

  .comments-feed {
    max-height: 520px;
    min-height: unset;
  }

}

@media (max-width: 900px) {
  .page-shell {
    width: 100%;
    padding: 10px 12px 28px;
  }

  .player-panel {
    min-height: auto;
  }

  .hero,
  .panel {
    border-radius: 24px;
    padding: 18px;
  }

  .hero h1 {
    max-width: 100%;
  }

  .hero-panel,
  .multiview-grid {
    grid-template-columns: 1fr;
  }

  .multiview-slot {
    border-radius: 20px;
  }

  .slot-overlay {
    padding: 10px;
    border-radius: 20px 20px 0 0;
  }

  .slot-overlay button {
    padding: 8px 10px;
  }

  .slot-actions {
    gap: 4px;
  }

  .multiview-slot video {
    width: 100%;
    height: auto;
    aspect-ratio: auto;
    max-height: 72vh;
  }

  .video-frame,
  .video-frame .video-stage,
  .video-frame .video-stage media-player {
    width: 100%;
    max-width: 100%;
  }

  .video-frame[data-orientation="portrait"] {
    width: 100%;
    max-height: min(78vh, calc(100vh - 220px));
    margin-left: auto;
    margin-right: auto;
  }

  .video-frame[data-orientation="portrait"] .video-stage,
  .video-frame[data-orientation="portrait"] .video-stage media-player {
    width: 100%;
    height: 100%;
    max-height: none;
  }

  .video-frame[data-orientation="portrait"] video {
    max-height: none;
  }

  .multiview-slot[data-orientation="portrait"] {
    max-height: 78vh;
  }

  .multiview-slot[data-orientation="portrait"] .video-stage,
  .multiview-slot[data-orientation="portrait"] .video-stage media-player {
    max-height: 68vh;
  }

  .multiview-slot[data-orientation="portrait"][data-viewport-mode="landscape"] .video-stage {
    aspect-ratio: 16 / 9;
  }

  .multiview-slot[data-orientation="portrait"] video {
    max-height: 68vh;
  }

  .multiview-slot media-player:fullscreen,
  .multiview-slot media-player:fullscreen media-provider,
  .multiview-slot media-player:fullscreen video {
    width: 100vw;
    height: 100vh;
    max-width: none;
    max-height: none;
  }

  .multiview-slot[data-orientation="portrait"][data-viewport-mode="landscape"] video {
    max-height: none;
  }

  .watch-layout.multi-mode {
    gap: 16px;
  }

  .watch-layout.multi-mode .multiview-panel {
    padding: 18px;
    border-radius: 24px;
  }

  .watch-layout.multi-mode .multiview-panel .section-heading {
    padding: 0;
  }

  .watch-layout.multi-mode .multiview-grid {
    width: 100%;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
  }

  .watch-layout.multi-mode .multiview-slot {
    width: 100%;
    border-radius: 18px;
    flex: none;
  }

  .watch-layout.multi-mode .slot-overlay {
    border-radius: 18px 18px 0 0;
  }

  .watch-layout.multi-mode .slot-overlay {
    border-radius: 0;
  }

  .multiview-actions,
  .hero-actions-watch {
    flex-direction: column;
    align-items: stretch;
  }

  .live-card {
    grid-template-columns: 1fr;
  }

  .live-card img {
    width: 100%;
    height: 180px;
  }

  .comments-status {
    width: 100%;
    text-align: center;
  }
}
