:root {
  --bg-1: #04070d;
  --bg-2: #0d1522;
  --panel: rgba(9, 15, 24, 0.72);
  --panel-strong: rgba(7, 11, 18, 0.9);
  --panel-soft: rgba(255, 255, 255, 0.06);
  --text: #f6f2ea;
  --muted: #b9c1d3;
  --muted-soft: #7c88a1;
  --accent: #ff5b2d;
  --accent-soft: rgba(255, 91, 45, 0.18);
  --accent-cool: #74d9ff;
  --line: rgba(255, 255, 255, 0.1);
  --line-strong: rgba(255, 255, 255, 0.18);
  --shadow: 0 28px 80px rgba(0, 0, 0, 0.45);
  --radius-xl: 28px;
  --radius-lg: 22px;
  --radius-md: 16px;
  --radius-sm: 999px;
  --sans: "Avenir Next", "Segoe UI", "Trebuchet MS", sans-serif;
  --serif: "Iowan Old Style", "Georgia", serif;
}

* {
  box-sizing: border-box;
}

html {
  color-scheme: dark;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--sans);
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(116, 217, 255, 0.12), transparent 28%),
    radial-gradient(circle at top right, rgba(255, 91, 45, 0.14), transparent 24%),
    linear-gradient(160deg, #05080e 0%, #0b111c 38%, #0f1826 100%);
  overflow-x: hidden;
  -webkit-tap-highlight-color: transparent;
}

button,
input,
a {
  font: inherit;
  touch-action: manipulation;
}

button {
  border: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

.backdrop,
.backdrop-noise {
  position: fixed;
  inset: 0;
  pointer-events: none;
}

.backdrop {
  background:
    radial-gradient(circle at 50% -10%, rgba(255, 255, 255, 0.08), transparent 30%),
    radial-gradient(circle at 20% 100%, rgba(255, 91, 45, 0.06), transparent 34%);
}

.backdrop-noise {
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 24px 24px;
  opacity: 0.18;
  mix-blend-mode: soft-light;
}

.app-shell {
  position: relative;
  width: min(1500px, calc(100% - 32px));
  margin: 0 auto;
  padding: 22px 0 32px;
}

.panel {
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.015)),
    linear-gradient(180deg, rgba(4, 7, 13, 0.92), rgba(8, 13, 20, 0.82));
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.stage {
  padding: 18px;
}

.feature-head,
.header-actions,
.action-row,
.control-row,
.control-group,
.tool-shelf,
.rail-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.brand-block {
  min-width: 0;
}

.brand-live {
  color: var(--accent);
  text-shadow: 0 0 24px rgba(255, 91, 45, 0.22);
}

.stage-top {
  display: grid;
  grid-template-columns: auto minmax(280px, 1fr) auto;
  gap: 14px;
  align-items: center;
  margin-bottom: 14px;
}

.eyebrow {
  margin: 0 0 8px;
  font-size: 0.72rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--accent-cool);
}

h1,
h2 {
  margin: 0;
  font-family: var(--serif);
  letter-spacing: -0.03em;
}

h1 {
  font-size: clamp(1.8rem, 3vw, 2.75rem);
  line-height: 0.9;
}

h2 {
  font-size: clamp(1.3rem, 2vw, 1.9rem);
  line-height: 1;
}

.description,
.rail-copy,
.meta-line,
.shortcut-list,
.rail-status {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.search-bar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  margin-bottom: 0;
}

.search-field,
.volume-group {
  display: grid;
  gap: 8px;
}

.stage-search {
  align-self: center;
}

.compact-search {
  gap: 0;
}

.search-field span,
.volume-group span,
.fact-label {
  font-size: 0.76rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted-soft);
}

.search-field input {
  width: 100%;
  min-width: 0;
  padding: 13px 16px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
  outline: none;
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.search-field input:focus,
.search-field input:hover {
  border-color: rgba(116, 217, 255, 0.48);
  box-shadow: 0 0 0 4px rgba(116, 217, 255, 0.08);
}

.pill-button,
.preset-chip,
.mini-control,
.result-card {
  transition:
    transform 160ms ease,
    border-color 160ms ease,
    background-color 160ms ease,
    color 160ms ease,
    box-shadow 160ms ease;
}

.pill-button,
.preset-chip,
.mini-control {
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.045);
  color: var(--text);
  padding: 10px 14px;
  cursor: pointer;
}

.primary-button {
  background: linear-gradient(180deg, rgba(255, 91, 45, 0.28), rgba(255, 91, 45, 0.14));
  border-color: rgba(255, 91, 45, 0.42);
  box-shadow: 0 14px 36px rgba(255, 91, 45, 0.16);
}

.pill-button:hover,
.preset-chip:hover,
.mini-control:hover,
.result-card:hover,
.text-link:hover {
  transform: translateY(-1px);
}

.preset-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 0;
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: thin;
}

.category-row {
  flex-wrap: nowrap;
  margin-top: 2px;
  overflow-x: auto;
  padding: 2px 0 6px;
  scroll-snap-type: x proximity;
}

.category-row .preset-chip {
  flex: 0 0 auto;
  white-space: nowrap;
  scroll-snap-align: start;
}

.preset-chip.active,
.result-card.active {
  background: linear-gradient(180deg, rgba(116, 217, 255, 0.2), rgba(116, 217, 255, 0.08));
  border-color: rgba(116, 217, 255, 0.34);
}

.player-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) 380px;
  gap: 16px;
  align-items: start;
}

.player-panel {
  display: grid;
  gap: 12px;
  align-self: start;
}

.player-surface {
  position: relative;
  min-height: clamp(380px, 46vw, 620px);
  border-radius: var(--radius-xl);
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), transparent),
    radial-gradient(circle at top, rgba(116, 217, 255, 0.1), transparent 26%),
    linear-gradient(180deg, rgba(2, 4, 8, 0.84), rgba(2, 4, 8, 0.98));
  border: 1px solid var(--line-strong);
}

.player-surface::before {
  content: "";
  position: absolute;
  inset: -18%;
  background-image: var(--poster-image, none);
  background-position: center;
  background-size: cover;
  filter: blur(42px) saturate(1.12);
  opacity: 0.2;
  transform: scale(1.08);
}

.video-player,
.video-scrim,
.big-play-button,
.status-pill,
.control-dock,
.loading-overlay {
  position: absolute;
  z-index: 1;
}

.video-player {
  inset: 0;
  width: 100%;
  height: 100%;
  background: #000;
  object-fit: contain;
}

.video-scrim {
  inset: auto 0 0;
  height: 42%;
  background: linear-gradient(180deg, transparent, rgba(3, 5, 9, 0.82));
  pointer-events: none;
}

.loading-overlay {
  inset: 0;
  z-index: 2;
  display: block;
  padding: 20px;
  background:
    radial-gradient(circle at center, rgba(255, 255, 255, 0.06), transparent 28%),
    linear-gradient(180deg, rgba(5, 8, 14, 0.74), rgba(5, 8, 14, 0.9));
  backdrop-filter: blur(18px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease;
}

.player-surface.is-loading .loading-overlay {
  opacity: 1;
}

.loading-spinner {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 58px;
  height: 58px;
  margin: 0;
  border-radius: 999px;
  border: 3px solid rgba(255, 255, 255, 0.12);
  border-top-color: rgba(255, 91, 45, 0.92);
  border-right-color: rgba(116, 217, 255, 0.82);
  box-shadow:
    0 0 0 10px rgba(255, 255, 255, 0.025),
    0 18px 44px rgba(0, 0, 0, 0.32);
  animation: player-spin 900ms linear infinite;
}

.loading-label {
  position: absolute;
  top: calc(50% + 56px);
  left: 50%;
  width: max-content;
  max-width: calc(100% - 40px);
  transform: translateX(-50%);
  color: rgba(246, 242, 234, 0.9);
  font-size: 0.88rem;
  letter-spacing: 0.08em;
  text-align: center;
  text-transform: uppercase;
}

@keyframes player-spin {
  from {
    transform: translate(-50%, -50%) rotate(0deg);
  }

  to {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}

.big-play-button {
  z-index: 3;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  min-width: 112px;
  padding: 14px 18px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(5, 8, 14, 0.72);
  color: var(--text);
  font-size: 1rem;
  letter-spacing: 0.04em;
  cursor: pointer;
  backdrop-filter: blur(18px);
}

.big-play-button:hover {
  transform: translate(-50%, calc(-50% - 1px));
}

.player-surface.is-loading .big-play-button {
  opacity: 0;
  pointer-events: none;
}

.big-play-button.is-playing {
  opacity: 0;
  pointer-events: none;
}

.status-pill {
  z-index: 3;
  top: 18px;
  left: 18px;
  max-width: min(70%, 320px);
  padding: 9px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(4, 7, 13, 0.72);
  color: var(--muted);
  font-size: 0.85rem;
  backdrop-filter: blur(18px);
}

.control-dock {
  z-index: 3;
  right: 18px;
  bottom: 18px;
  left: 18px;
  padding: 10px 12px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(5, 8, 14, 0.78);
  backdrop-filter: blur(20px);
}

.status-pill,
.control-dock {
  transition:
    opacity 220ms ease,
    transform 220ms ease,
    filter 220ms ease;
}

.timeline-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 0.86rem;
}

input[type="range"] {
  width: 100%;
  accent-color: var(--accent);
  cursor: pointer;
}

.control-row {
  gap: 18px;
}

.control-group {
  justify-content: flex-start;
  flex-wrap: wrap;
}

.mini-control {
  padding: 7px 11px;
  font-size: 0.86rem;
}

.timeline-fullscreen-button {
  display: none;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.045);
  color: var(--text);
  cursor: pointer;
}

.timeline-fullscreen-button svg {
  width: 16px;
  height: 16px;
}

.volume-group {
  min-width: 140px;
}

.feature-copy {
  display: grid;
  gap: 12px;
  padding: 16px 18px 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.015)),
    linear-gradient(180deg, rgba(7, 11, 18, 0.82), rgba(7, 11, 18, 0.62));
}

.feature-head {
  display: block;
}

.feature-title-block {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.text-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 9px 13px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.03);
  white-space: nowrap;
}

.tool-shelf {
  justify-content: flex-start;
  flex-wrap: wrap;
  gap: 10px;
  scrollbar-width: thin;
}

.tool-shelf .pill-button,
.tool-shelf .text-link {
  padding: 9px 12px;
  font-size: 0.85rem;
}

.toggle-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.045);
  color: var(--text);
  cursor: pointer;
}

.toggle-chip input {
  margin: 0;
  accent-color: var(--accent);
}

.quiet-credit {
  margin-left: auto;
  font-size: 0.76rem;
  letter-spacing: 0.08em;
  color: rgba(185, 193, 211, 0.62);
  text-transform: lowercase;
}

.quiet-credit:hover {
  color: rgba(246, 242, 234, 0.92);
}

.description {
  font-size: 0.95rem;
  line-height: 1.6;
}

.rail {
  display: grid;
  gap: 16px;
  min-height: 0;
  align-self: start;
  position: sticky;
  top: 18px;
}

.rail-panel {
  display: flex;
  flex-direction: column;
  min-height: 0;
  max-height: calc(100vh - 72px);
  overflow: hidden;
  padding: 18px;
}

.rail-copy {
  margin: 12px 0 14px;
}

.rail-status {
  padding: 10px 12px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.035);
}

.rail-footnote {
  margin: 14px 2px 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.results-list {
  display: grid;
  align-content: start;
  flex: 1 1 auto;
  gap: 12px;
  grid-auto-rows: max-content;
  min-height: 0;
  margin-top: 14px;
  max-height: 100%;
  overflow-x: hidden;
  overflow-y: auto;
  padding-right: 6px;
  scrollbar-width: thin;
}

.results-list::-webkit-scrollbar {
  width: 10px;
}

.results-list::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.12);
  border-radius: 999px;
}

.result-card {
  display: grid;
  align-self: start;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 12px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.03);
  color: inherit;
  text-align: left;
  cursor: pointer;
}

.result-card img {
  width: 92px;
  height: 118px;
  object-fit: cover;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.06);
}

.result-card h3 {
  margin: 0 0 6px;
  font-size: 1.02rem;
  line-height: 1.18;
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.result-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
  font-size: 0.92rem;
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.result-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 8px;
}

.result-meta span {
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--muted);
  font-size: 0.78rem;
}

.shortcut-list {
  padding-left: 18px;
  margin: 16px 0 0;
}

.shortcut-list li + li {
  margin-top: 10px;
}

kbd {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 32px;
  padding: 4px 8px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.05);
  font-family: var(--sans);
  font-size: 0.84rem;
}

.is-hidden {
  display: none;
}

@media (hover: hover) and (pointer: fine) and (min-width: 821px) {
  .player-surface .status-pill,
  .player-surface .control-dock {
    opacity: 0;
    transform: translateY(16px);
    filter: blur(8px);
    pointer-events: none;
  }

  .player-surface:hover .status-pill,
  .player-surface:hover .control-dock,
  .player-surface:focus-within .status-pill,
  .player-surface:focus-within .control-dock {
    opacity: 1;
    transform: translateY(0);
    filter: none;
    pointer-events: auto;
  }

  .player-surface:fullscreen .status-pill,
  .player-surface:fullscreen .control-dock {
    opacity: 0;
    transform: translateY(16px);
    filter: blur(8px);
    pointer-events: none;
  }

  .player-surface:fullscreen {
    cursor: none;
  }

  .player-surface:fullscreen.desktop-controls-visible .status-pill,
  .player-surface:fullscreen.desktop-controls-visible .control-dock,
  .player-surface:fullscreen:focus-within .status-pill,
  .player-surface:fullscreen:focus-within .control-dock {
    opacity: 1;
    transform: translateY(0);
    filter: none;
    pointer-events: auto;
  }

  .player-surface:fullscreen.desktop-controls-visible,
  .player-surface:fullscreen.desktop-controls-visible *,
  .player-surface:fullscreen:focus-within,
  .player-surface:fullscreen:focus-within * {
    cursor: auto;
  }
}

@media (max-width: 1200px) {
  .player-layout {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .rail {
    position: static;
    top: auto;
    height: auto;
  }

  .rail-panel {
    height: auto;
    max-height: none;
    min-height: 0;
  }

  .results-list {
    max-height: none;
  }
}

@media (max-width: 820px) {
  html,
  body {
    overflow-x: hidden;
  }

  .app-shell {
    width: min(100%, calc(100% - 12px));
    padding:
      max(8px, env(safe-area-inset-top))
      0
      max(16px, env(safe-area-inset-bottom));
  }

  .stage {
    padding: 14px;
    overflow-x: clip;
  }

  .stage-top,
  .feature-head {
    grid-template-columns: minmax(0, 1fr);
    align-items: stretch;
  }

  .stage-top > *,
  .player-layout,
  .player-panel,
  .player-surface,
  .feature-copy,
  .rail,
  .rail-panel,
  .results-list,
  .result-card,
  .stage-search,
  .category-row,
  .tool-shelf {
    min-width: 0;
    max-width: 100%;
  }

  .control-row,
  .rail-head {
    flex-direction: column;
    align-items: stretch;
  }

  .header-actions,
  .action-row,
  .tool-shelf {
    width: 100%;
  }

  .header-actions {
    display: block;
  }

  .header-actions > button,
  .action-row > *,
  .tool-shelf > .pill-button,
  .tool-shelf > .text-link,
  .tool-shelf > .toggle-chip {
    flex: 1 1 0;
  }

  .header-actions > button {
    width: 100%;
  }

  .search-bar {
    grid-template-columns: 1fr;
  }

  .stage-search {
    grid-template-columns: minmax(0, 1fr) auto;
    width: 100%;
  }

  .search-field input {
    font-size: 16px;
  }

  .player-surface {
    --mobile-control-space: 0px;
    min-height: 0;
    aspect-ratio: 4 / 3;
    width: 100%;
  }

  .player-surface.mobile-controls-visible {
    --mobile-control-space: 60px;
  }

  .player-surface .control-dock {
    opacity: 0;
    transform: translateY(10px);
    pointer-events: none;
  }

  .player-surface.mobile-controls-visible .control-dock {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }

  .video-player {
    inset: 0 0 var(--mobile-control-space) 0;
    height: auto;
    transition: inset 180ms ease;
  }

  .video-scrim {
    bottom: var(--mobile-control-space);
    height: 22%;
    opacity: 0;
    transition: bottom 180ms ease, opacity 180ms ease;
  }

  .player-surface.mobile-controls-visible .video-scrim {
    opacity: 1;
  }

  .big-play-button {
    top: calc((100% - var(--mobile-control-space)) / 2);
    transition: top 180ms ease, opacity 180ms ease;
  }

  .control-dock {
    left: 12px;
    right: 12px;
    bottom: 12px;
    padding: 8px 10px;
    min-height: calc(var(--mobile-control-space) - 8px);
    overflow: hidden;
    box-shadow:
      0 -18px 36px rgba(0, 0, 0, 0.28),
      0 12px 24px rgba(0, 0, 0, 0.22);
  }

  .control-dock::before {
    content: "";
    position: absolute;
    inset: -1px;
    background:
      linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(3, 6, 10, 0.06) 22%, rgba(3, 6, 10, 0.36) 100%),
      radial-gradient(circle at top center, rgba(255, 255, 255, 0.08), transparent 56%);
    pointer-events: none;
  }

  .control-dock > * {
    position: relative;
    z-index: 1;
  }

  .status-pill {
    top: 12px;
    left: 12px;
    max-width: calc(100% - 24px);
    font-size: 0.78rem;
  }

  .player-surface .status-pill {
    opacity: 0;
    transform: translateY(-8px);
    pointer-events: none;
  }

  .player-surface.mobile-controls-visible .status-pill {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }

  .big-play-button {
    min-width: 98px;
    padding: 12px 16px;
  }

  .timeline-row {
    grid-template-columns: 40px minmax(0, 1fr) 40px auto;
    gap: 8px;
    font-size: 0.82rem;
    margin-bottom: 0;
  }

  .timeline-fullscreen-button {
    display: inline-flex;
  }

  .control-row {
    display: none;
  }

  .feature-head {
    display: block;
  }

  .feature-copy {
    padding: 14px;
  }

  .tool-shelf {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .tool-shelf > * {
    min-width: 0;
  }

  .quiet-credit {
    grid-column: 1 / -1;
    margin-left: 0;
    text-align: right;
  }

  .rail-copy {
    margin-bottom: 10px;
  }

  .results-list {
    grid-auto-flow: column;
    grid-auto-columns: minmax(240px, 84%);
    overflow-x: auto;
    overflow-y: hidden;
    max-height: none;
    padding: 2px 2px 8px 0;
    scroll-snap-type: x mandatory;
  }

  .result-card {
    grid-template-columns: 78px minmax(0, 1fr);
    min-height: 100%;
    scroll-snap-align: start;
  }

  .result-card img {
    width: 78px;
    height: 104px;
  }

  .result-card p {
    -webkit-line-clamp: 2;
  }

}

@media (max-width: 560px) {
  .stage {
    padding: 12px;
    border-radius: 22px;
  }

  .app-shell {
    width: 100%;
  }

  .stage-top {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px 10px;
    align-items: center;
  }

  .brand-block {
    grid-column: 1 / -1;
  }

  h1 {
    font-size: clamp(1.7rem, 9vw, 2.2rem);
  }

  .player-surface {
    aspect-ratio: 4 / 3;
    border-radius: 22px;
  }

  .control-dock {
    left: 10px;
    right: 10px;
    bottom: 10px;
    padding: 8px;
    border-radius: 16px;
    min-height: calc(var(--mobile-control-space) - 10px);
    box-shadow:
      0 -14px 28px rgba(0, 0, 0, 0.24),
      0 10px 22px rgba(0, 0, 0, 0.2);
  }

  .timeline-row {
    grid-template-columns: 40px minmax(0, 1fr) 40px auto;
    font-size: 0.78rem;
  }

  .mini-control,
  .tool-shelf .pill-button,
  .tool-shelf .text-link,
  .toggle-chip {
    min-height: 42px;
  }

  .tool-shelf {
    grid-template-columns: 1fr 1fr;
  }

  .stage-search {
    grid-column: 1 / 2;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
  }

  .header-actions {
    grid-column: 2 / 3;
    display: flex;
    width: auto;
  }

  .header-actions > button {
    width: auto;
    min-width: 110px;
    min-height: 46px;
  }

  .stage-search .pill-button,
  .stage-search .search-field,
  .stage-search .search-field input {
    min-width: 0;
  }

  .stage-search .pill-button {
    width: auto;
    min-width: 92px;
  }

  .stage-search .search-field,
  .stage-search .search-field input {
    width: 100%;
  }

  .preset-chip {
    padding: 9px 12px;
    font-size: 0.92rem;
  }

  .category-row,
  .results-list {
    scrollbar-width: none;
  }

  .category-row::-webkit-scrollbar,
  .results-list::-webkit-scrollbar {
    display: none;
  }

  .results-list {
    grid-auto-columns: minmax(230px, 88%);
  }

  .rail-panel {
    padding: 14px;
  }
}


.youtube-player iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.player-surface.is-live #progressInput {
  opacity: 0.65;
}

.player-surface.is-live #progressInput[disabled] {
  cursor: default;
}

.result-card .source-line {
  display: block;
  margin-top: 8px;
  font-size: 0.84rem;
  color: var(--muted-soft);
}


.player-surface > iframe,
.player-surface iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  z-index: 1;
  background: #000;
}
