:root {
  color-scheme: light;
  --bg: #f7f9fc;
  --panel: #ffffff;
  --panel-soft: #eef5ff;
  --text: #111827;
  --muted: #5f6c80;
  --border: #dbe4f0;
  --accent: #1769e0;
  --accent-strong: #0f56bd;
  --accent-2: #087b73;
  --danger: #dc2626;
  --warning: #d97706;
  --favorite: #e11d48;
  --button-text: #ffffff;
  --shadow: 0 18px 50px rgba(24, 45, 74, 0.10);
  --radius: 8px;
  --control-height: 2.55rem;
}

[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0d1117;
  --panel: #141b24;
  --panel-soft: #162333;
  --text: #eef4ff;
  --muted: #9cacbf;
  --border: #263547;
  --accent: #58a0ff;
  --accent-strong: #7eb6ff;
  --accent-2: #37d3c8;
  --danger: #f87171;
  --warning: #fbbf24;
  --favorite: #fb7185;
  --button-text: #06111f;
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.26);
}

* { box-sizing: border-box; }
html { min-height: 100%; }
body {
  margin: 0;
  min-height: 100%;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
}

a { color: inherit; }
button, input, select { font: inherit; }
[hidden] { display: none !important; }

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.app-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem clamp(1rem, 3vw, 2rem);
  border-bottom: 1px solid var(--border);
  background: color-mix(in srgb, var(--panel), transparent 8%);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  min-width: 12rem;
  text-decoration: none;
}

.brand-logo {
  display: block;
  width: 2.35rem;
  height: 2.35rem;
  border-radius: var(--radius);
  object-fit: cover;
}

.brand strong {
  display: block;
  font-size: 1.05rem;
  line-height: 1.1;
}

.brand small {
  display: block;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.2;
}

.header-actions {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.55rem;
  margin-left: auto;
}

.language-menu {
  position: relative;
}

.button,
.select-control,
input[type="search"] {
  min-height: var(--control-height);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--panel);
  color: var(--text);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0 0.85rem;
  text-decoration: none;
  cursor: pointer;
}

.button.primary {
  border-color: var(--accent);
  background: var(--accent);
  color: var(--button-text);
  font-weight: 750;
}

.button.primary:hover {
  background: var(--accent-strong);
}

.button.secondary,
.small-button {
  background: var(--panel-soft);
}

.button.secondary:hover,
.select-control:hover,
.small-button:hover,
.icon-button:hover,
.language-menu summary:hover {
  border-color: color-mix(in srgb, var(--accent), var(--border) 35%);
}

.button.disabled {
  pointer-events: none;
  opacity: 0.52;
}

.select-control {
  padding: 0 2.1rem 0 0.75rem;
}

.language-menu summary {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  height: 2.35rem;
  padding: 0 0.65rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--panel);
  color: var(--muted);
  list-style: none;
  user-select: none;
  cursor: pointer;
}

.language-menu summary::-webkit-details-marker {
  display: none;
}

.language-menu summary span:not(.visually-hidden) {
  color: var(--text);
  font-size: 1.05rem;
  font-weight: 800;
  min-width: 2.1rem;
}

.language-menu[open] .chevron-icon {
  transform: rotate(180deg);
}

.language-popover {
  position: absolute;
  top: calc(100% + 0.55rem);
  right: 0;
  z-index: 40;
  display: grid;
  gap: 0.25rem;
  min-width: 11.5rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.35rem;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.language-popover button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  width: 100%;
  border: 0;
  border-radius: var(--radius);
  padding: 0.65rem 0.7rem;
  background: transparent;
  color: var(--text);
  text-align: left;
  cursor: pointer;
}

.language-popover button:hover,
.language-popover button[aria-current="page"] {
  background: var(--panel-soft);
}

.language-popover button > span {
  display: grid;
  gap: 0.1rem;
}

.language-popover strong {
  font-size: 0.92rem;
}

.language-popover small {
  color: var(--muted);
  font-size: 0.78rem;
}

.icon-button {
  display: inline-grid;
  place-items: center;
  width: 2.35rem;
  height: 2.35rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--panel);
  color: var(--text);
  text-decoration: none;
  cursor: pointer;
}

.icon-button svg {
  width: 1.15rem;
  height: 1.15rem;
}

.mobile-filter-toggle {
  display: none;
}

.account-link {
  position: relative;
}

.account-menu {
  position: relative;
}

.account-menu summary {
  list-style: none;
  user-select: none;
}

.account-menu summary::-webkit-details-marker {
  display: none;
}

.account-link[data-authenticated="true"]::after {
  position: absolute;
  right: 0.34rem;
  bottom: 0.34rem;
  width: 0.5rem;
  height: 0.5rem;
  border: 2px solid var(--panel);
  border-radius: 999px;
  background: var(--accent-2);
  content: "";
}

.account-popover {
  position: absolute;
  top: calc(100% + 0.55rem);
  right: 0;
  z-index: 40;
  display: grid;
  gap: 0.35rem;
  width: min(20rem, calc(100vw - 1.5rem));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.55rem;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.account-identity {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  min-width: 0;
  padding: 0.45rem;
}

.account-identity > span:last-child {
  display: grid;
  gap: 0.16rem;
  min-width: 0;
}

.account-identity strong,
.account-identity small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.account-identity strong {
  font-size: 0.92rem;
}

.account-identity small {
  color: var(--muted);
  font-size: 0.78rem;
}

.account-avatar {
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 999px;
  background: var(--panel-soft);
  color: var(--accent);
}

.account-role {
  justify-self: start;
  margin: -0.15rem 0.45rem 0.35rem;
  border-radius: 999px;
  padding: 0.2rem 0.5rem;
  background: color-mix(in srgb, var(--accent), transparent 88%);
  color: var(--accent);
  font-size: 0.72rem;
  font-weight: 750;
}

.account-menu-action {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  width: 100%;
  border: 0;
  border-radius: var(--radius);
  padding: 0.65rem 0.7rem;
  background: transparent;
  color: var(--text);
  font: inherit;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
}

.account-menu-action:hover {
  background: var(--panel-soft);
}

.account-sign-out {
  color: var(--danger);
}

.theme-toggle {
  padding: 0;
}

.icon {
  display: block;
  flex: 0 0 auto;
}

.moon-icon,
[data-theme="dark"] .sun-icon {
  display: none;
}

[data-theme="dark"] .moon-icon {
  display: block;
}

.check-icon {
  color: var(--accent);
}

.language-popover button:not([aria-current="page"]) .check-icon {
  visibility: hidden;
}

.shell {
  width: min(1440px, 100%);
  margin: 0 auto;
  padding: clamp(1rem, 2vw, 1.5rem);
}

.editorial-band {
  display: grid;
  grid-template-columns: minmax(16rem, 0.85fr) minmax(0, 1.65fr);
  gap: clamp(1.5rem, 4vw, 4rem);
  margin-top: clamp(2rem, 5vw, 4rem);
  padding: clamp(2rem, 5vw, 4rem) 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.editorial-intro {
  align-self: start;
}

.editorial-intro h2 {
  margin: 0.25rem 0 0.8rem;
  font-size: clamp(1.55rem, 3vw, 2.25rem);
  line-height: 1.1;
}

.editorial-intro > p:not(.eyebrow) {
  margin: 0 0 1rem;
  color: var(--muted);
  line-height: 1.65;
}

.text-link {
  color: var(--accent);
  font-weight: 800;
  text-underline-offset: 0.2em;
}

.editorial-principles {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1rem, 2vw, 2rem);
}

.editorial-principles section {
  min-width: 0;
  padding-left: 1rem;
  border-left: 3px solid color-mix(in srgb, var(--accent), var(--border) 48%);
}

.editorial-principles h3 {
  margin: 0 0 0.5rem;
  font-size: 1rem;
}

.editorial-principles p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.6;
}

.site-footer {
  margin-top: clamp(2rem, 5vw, 4rem);
  border-top: 1px solid var(--border);
  background: color-mix(in srgb, var(--panel), var(--bg) 34%);
}

.site-footer-inner {
  display: grid;
  grid-template-columns: minmax(14rem, 1fr) minmax(18rem, 2fr);
  gap: 1.5rem 3rem;
  width: min(1440px, 100%);
  margin: 0 auto;
  padding: 2rem clamp(1rem, 2vw, 1.5rem);
}

.footer-brand strong {
  font-size: 1.05rem;
}

.footer-brand p,
.footer-copyright {
  margin: 0.45rem 0 0;
  color: var(--muted);
  font-size: 0.85rem;
  line-height: 1.55;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  align-content: start;
  justify-content: flex-end;
  gap: 0.65rem 1.25rem;
}

.footer-links a {
  color: var(--text);
  font-size: 0.88rem;
  font-weight: 750;
  text-decoration: none;
}

.footer-links a:hover,
.footer-links a:focus-visible {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.footer-copyright {
  grid-column: 1 / -1;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}

.content-shell {
  width: min(960px, 100%);
  margin: 0 auto;
  padding: clamp(1.25rem, 4vw, 3rem) clamp(1rem, 3vw, 2rem);
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-bottom: clamp(2rem, 5vw, 4rem);
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 700;
}

.breadcrumb a {
  color: var(--accent);
}

.content-article {
  max-width: 760px;
}

.content-article h1 {
  max-width: 15ch;
  margin: 0.35rem 0 1rem;
  font-size: clamp(2.25rem, 7vw, 4.5rem);
  line-height: 0.98;
}

.content-lead {
  margin: 0;
  color: var(--muted);
  font-size: clamp(1.1rem, 2.5vw, 1.35rem);
  line-height: 1.6;
}

.content-updated {
  margin: 1rem 0 0;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
}

.content-body {
  margin-top: clamp(2.5rem, 7vw, 5rem);
}

.content-body h2 {
  margin: 2.5rem 0 0.75rem;
  font-size: clamp(1.25rem, 3vw, 1.6rem);
}

.content-body h2:first-child {
  margin-top: 0;
}

.content-body p,
.content-body li {
  color: color-mix(in srgb, var(--text), var(--muted) 28%);
  font-size: 1rem;
  line-height: 1.75;
}

.content-body ul {
  display: grid;
  gap: 0.65rem;
  padding-left: 1.35rem;
}

.content-body a {
  color: var(--accent);
  font-weight: 700;
  text-underline-offset: 0.2em;
}

.toolbar {
  position: relative;
  display: grid;
  grid-template-columns: minmax(19rem, 1.35fr) minmax(0, 2fr);
  gap: 0.9rem;
  align-items: end;
  padding: 0.85rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: color-mix(in srgb, var(--panel), var(--panel-soft) 14%);
  box-shadow: var(--shadow);
}

.search-field,
.filter-row label {
  display: grid;
  gap: 0.32rem;
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.025em;
}

.search-input-wrap {
  position: relative;
  min-width: 0;
}

.search-input-wrap > svg {
  position: absolute;
  top: 50%;
  left: 0.78rem;
  z-index: 1;
  width: 1.05rem;
  height: 1.05rem;
  color: var(--muted);
  pointer-events: none;
  transform: translateY(-50%);
}

.search-input-wrap:focus-within > svg {
  color: var(--accent);
}

.search-input-wrap input[type="search"] {
  width: 100%;
  padding: 0 0.85rem 0 2.35rem;
  border-color: color-mix(in srgb, var(--border), var(--accent) 8%);
  background: var(--panel);
  font-size: 0.94rem;
}

.filter-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(9rem, 1fr)) auto;
  align-items: end;
  gap: 0.55rem;
}

.filter-row label {
  min-width: 0;
}

.filter-row .select-control {
  width: 100%;
  border-color: color-mix(in srgb, var(--border), var(--accent) 6%);
  background-color: var(--panel);
  font-size: 0.9rem;
  font-weight: 700;
}

.filter-actions {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.24rem;
  min-height: var(--control-height);
  padding: 0.22rem;
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) + 2px);
  background: color-mix(in srgb, var(--panel-soft), var(--panel) 36%);
}

.filter-actions:empty,
.filter-actions:not(:has(.icon-button:not([hidden]))) {
  display: none;
}

.filter-actions .icon-button {
  align-self: center;
  flex: 0 0 auto;
  width: calc(var(--control-height) - 0.44rem);
  height: calc(var(--control-height) - 0.44rem);
  border-color: transparent;
  background: transparent;
  border-radius: calc(var(--radius) - 1px);
}

.filter-actions .icon-button:hover,
.filter-actions .icon-button:focus-visible {
  border-color: color-mix(in srgb, var(--accent), var(--border) 55%);
  background: var(--panel);
}

.favorites-filter-button {
  align-self: end;
  color: var(--favorite);
}

.favorites-filter-button[aria-pressed="true"] {
  background: color-mix(in srgb, var(--favorite), var(--panel) 88%);
  border-color: color-mix(in srgb, var(--favorite), var(--border) 42%);
}

.unverified-filter-button {
  align-self: end;
  color: var(--accent-2);
}

.unverified-filter-button[aria-pressed="true"] {
  background: color-mix(in srgb, var(--accent-2), var(--panel) 84%);
  border-color: color-mix(in srgb, var(--accent-2), var(--border) 36%);
  color: var(--accent-2);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent-2), transparent 76%);
}

.recently-verified-filter-button {
  align-self: end;
  color: #7c3aed;
}

.recently-verified-filter-button[aria-pressed="true"] {
  background: color-mix(in srgb, #7c3aed, var(--panel) 88%);
  border-color: color-mix(in srgb, #7c3aed, var(--border) 42%);
  color: #6d28d9;
  box-shadow: 0 0 0 3px color-mix(in srgb, #7c3aed, transparent 82%);
}

.favorites-filter-button[aria-pressed="true"] svg,
.unverified-filter-button[aria-pressed="true"] svg {
  fill: currentColor;
}

.recently-verified-filter-button svg {
  fill: none;
}

.filter-chips {
  display: flex;
  grid-column: 1 / -1;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  min-width: 0;
}

.filter-chips[hidden] {
  display: none;
}

.filter-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.42rem;
  min-height: 2.1rem;
  max-width: min(100%, 28rem);
  border: 1px solid color-mix(in srgb, var(--accent), var(--border) 52%);
  border-radius: 999px;
  padding: 0.28rem 0.65rem;
  background: color-mix(in srgb, var(--accent), var(--panel) 91%);
  color: var(--text);
  font-size: 0.78rem;
  font-weight: 800;
  line-height: 1.2;
  cursor: pointer;
}

.filter-chip:hover,
.filter-chip:focus-visible {
  border-color: var(--accent);
  background: color-mix(in srgb, var(--accent), var(--panel) 84%);
}

.filter-chip-label {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.filter-chip-remove {
  color: var(--muted);
  font-size: 1rem;
  line-height: 1;
}

.filter-chip[data-filter-action="clear"] {
  border-color: transparent;
  background: transparent;
  color: var(--muted);
}

.report-reason-filter {
  display: inline-grid;
  grid-template-columns: auto minmax(12rem, 16rem);
  align-items: center;
  gap: 0.55rem;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
}

.report-reason-filter[hidden] {
  display: none;
}

.channel-browser-report-reason {
  grid-template-columns: minmax(0, 1fr);
  gap: 0.35rem;
  margin-top: 0.65rem;
  color: rgba(203, 213, 225, 0.78);
}

.channel-browser-report-reason .select-control {
  width: 100%;
}

.recommendations-panel {
  display: grid;
  gap: 0.75rem;
  padding: 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: color-mix(in srgb, var(--panel), var(--panel-soft) 28%);
  box-shadow: var(--shadow);
}

.directory-recommendations {
  margin: 0 0 1rem;
  min-height: 12rem;
}

.recommendation-skeleton {
  min-height: 9rem;
  border-radius: calc(var(--radius) * 0.8);
  background: linear-gradient(100deg, var(--panel-soft) 25%, color-mix(in srgb, var(--panel-soft), var(--accent) 12%) 42%, var(--panel-soft) 59%);
  background-size: 260% 100%;
  animation: channel-skeleton-shimmer 1.15s ease-in-out infinite;
}

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

.recommendations-header h2 {
  margin: 0;
  font-size: 1.1rem;
  line-height: 1.2;
}

.recommendations-header-actions {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  min-width: 0;
}

.recommendations-reason {
  margin: 0;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 750;
  text-align: right;
  white-space: nowrap;
}

.recommendation-scroll-controls {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.recommendation-scroll-button {
  width: 2rem;
  height: 2rem;
}

.recommendation-strip {
  display: grid;
  grid-auto-columns: minmax(18rem, 22rem);
  grid-auto-flow: column;
  gap: 0.85rem;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 0 0.15rem 0.55rem;
  overscroll-behavior-inline: contain;
  scroll-snap-type: x proximity;
  scrollbar-width: thin;
  scrollbar-color: color-mix(in srgb, var(--accent), transparent 42%) transparent;
}

.recommendation-strip::-webkit-scrollbar {
  height: 0.55rem;
}

.recommendation-strip::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: color-mix(in srgb, var(--accent), transparent 52%);
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: clamp(1rem, 4vw, 2rem);
  background: rgba(9, 16, 28, 0.46);
}

.modal-backdrop[hidden] {
  display: none;
}

.favorite-signin-prompt {
  position: fixed;
  right: 1rem;
  bottom: max(1rem, env(safe-area-inset-bottom));
  z-index: 75;
  display: grid;
  gap: 0.85rem;
  width: min(27rem, calc(100vw - 2rem));
  border: 1px solid color-mix(in srgb, var(--accent), var(--border) 55%);
  border-radius: var(--radius);
  padding: 1rem;
  background: var(--panel);
  box-shadow: 0 20px 55px rgba(5, 13, 24, 0.22);
}

.favorite-signin-prompt[hidden] {
  display: none;
}

.favorite-signin-prompt p {
  margin: 0;
  font-weight: 760;
  line-height: 1.45;
}

.snapshot-success-notice {
  position: fixed;
  right: 1rem;
  bottom: max(1rem, env(safe-area-inset-bottom));
  z-index: 76;
  display: grid;
  gap: 0.85rem;
  width: min(36rem, calc(100vw - 2rem));
  border: 1px solid color-mix(in srgb, var(--accent), var(--border) 48%);
  border-radius: var(--radius);
  padding: 1rem;
  background: var(--panel);
  box-shadow: 0 20px 55px rgba(5, 13, 24, 0.24);
}

.snapshot-success-notice[hidden] {
  display: none;
}

.snapshot-success-copy {
  display: grid;
  gap: 0.2rem;
  line-height: 1.4;
}

.snapshot-success-copy span {
  color: var(--muted);
}

.snapshot-success-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.favorite-signin-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.editor-modal {
  width: min(44rem, 100%);
  max-height: min(90vh, 48rem);
  overflow: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem;
  background: var(--panel);
  box-shadow: var(--shadow);
}

#channelEditForm {
  width: min(72rem, 100%);
  max-height: min(92vh, 58rem);
}

#channelEditForm .editor-header {
  position: sticky;
  top: -1rem;
  z-index: 12;
  margin: -1rem -1rem 0;
  padding: 1rem;
  border-bottom: 1px solid var(--border);
  background: color-mix(in srgb, var(--panel), transparent 2%);
}

#channelEditForm .channel-editor-actions {
  position: sticky;
  bottom: -1rem;
  z-index: 12;
  margin: 0 -1rem -1rem;
  padding: 0.85rem 1rem max(0.85rem, env(safe-area-inset-bottom));
  border-top: 1px solid var(--border);
  background: color-mix(in srgb, var(--panel), transparent 2%);
  box-shadow: 0 -12px 24px color-mix(in srgb, var(--text), transparent 94%);
}

.editor-header,
.editor-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.channel-editor-actions {
  justify-content: stretch;
}

.editor-action-spacer {
  flex: 1 1 auto;
}

.button.danger {
  border-color: color-mix(in srgb, var(--danger), var(--border) 35%);
  background: color-mix(in srgb, var(--danger), var(--panel) 90%);
  color: var(--danger);
  font-weight: 800;
}

.button.danger:hover {
  border-color: var(--danger);
  background: color-mix(in srgb, var(--danger), var(--panel) 82%);
}

.editor-header h2 {
  margin: 0;
  font-size: 1.2rem;
  line-height: 1.25;
}

.editor-close {
  flex: 0 0 auto;
  font-size: 1.25rem;
  line-height: 1;
}

.editor-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
  margin-top: 1rem;
}

.editor-grid label {
  display: grid;
  gap: 0.35rem;
  min-width: 0;
}

.editor-field {
  display: grid;
  align-content: start;
  gap: 0.35rem;
  min-width: 0;
}

.editor-grid .editor-full {
  grid-column: 1 / -1;
}

.editor-grid .editor-toggle {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  min-height: var(--control-height);
  padding: 0.75rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--soft-panel);
}

.editor-grid span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
}

.editor-grid .field-hint {
  color: var(--muted);
  font-size: 0.72rem;
  line-height: 1.35;
}

.editor-grid input {
  width: 100%;
  min-height: var(--control-height);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0 0.75rem;
  background: var(--panel);
  color: var(--text);
}

.editor-grid .editor-toggle input {
  width: 1.15rem;
  height: 1.15rem;
  min-height: 0;
  flex: 0 0 auto;
}

.editor-grid .editor-toggle span {
  color: var(--text);
  font-size: 0.9rem;
}

.editor-grid select,
.editor-grid textarea {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--panel);
  color: var(--text);
}

.editor-grid textarea {
  min-height: 7rem;
  padding: 0.75rem;
  resize: vertical;
}

.editor-grid textarea[readonly] {
  color: var(--muted);
  resize: none;
}

.report-modal {
  width: min(34rem, 100%);
}

.report-grid {
  grid-template-columns: 1fr;
}

.editor-status {
  min-height: 1.3rem;
  margin: 0.8rem 0 0;
  color: var(--muted);
  font-size: 0.86rem;
}

.editor-status[data-tone="error"] {
  color: var(--danger);
}

.editor-status[data-tone="ok"] {
  color: var(--accent-2);
}

.metadata-review-panel {
  display: grid;
  gap: 0.8rem;
  margin-top: 1rem;
  padding: 1rem;
  border: 1px solid color-mix(in srgb, var(--accent), var(--border) 58%);
  border-radius: var(--radius);
  background: color-mix(in srgb, var(--accent), var(--panel) 96%);
}

.metadata-review-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.metadata-review-panel h3,
.metadata-review-panel .eyebrow,
.metadata-review-status {
  margin: 0;
}

.metadata-review-panel h3 {
  font-size: 1rem;
}

.metadata-review-status {
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.5;
}

.metadata-review-status[data-tone="error"] {
  color: var(--danger);
}

.metadata-review-status[data-tone="ok"] {
  color: var(--accent-2);
  font-weight: 800;
}

.metadata-review-status[data-tone="warning"] {
  color: color-mix(in srgb, var(--warning), var(--text) 24%);
  font-weight: 760;
}

.metadata-review-steps {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.metadata-review-steps li {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 0.3rem;
  min-width: 0;
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 800;
  text-align: center;
}

.metadata-review-steps li::before {
  z-index: 1;
  width: 0.8rem;
  height: 0.8rem;
  border: 2px solid var(--border);
  border-radius: 50%;
  background: var(--panel);
  content: '';
}

.metadata-review-steps li:not(:first-child)::after {
  position: absolute;
  top: 0.36rem;
  right: 50%;
  left: -50%;
  height: 2px;
  background: var(--border);
  content: '';
}

.metadata-review-steps li[data-state="complete"]::before,
.metadata-review-steps li[data-state="complete"]::after {
  border-color: var(--accent-2);
  background: var(--accent-2);
}

.metadata-review-steps li[data-state="active"] {
  color: var(--accent);
}

.metadata-review-steps li[data-state="active"]::before {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent), transparent 82%);
}

.metadata-review-steps li[data-state="error"] {
  color: var(--danger);
}

.metadata-review-steps li[data-state="error"]::before {
  border-color: var(--danger);
  background: color-mix(in srgb, var(--danger), var(--panel) 82%);
}

.metadata-review-overview {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  padding-top: 0.15rem;
}

.metadata-review-overview-copy {
  display: grid;
  flex: 1 1 36rem;
  gap: 0.65rem;
  min-width: 0;
}

.metadata-review-overview-copy > strong {
  font-size: 1rem;
  line-height: 1.4;
}

.metadata-review-counts,
.metadata-review-overview-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.metadata-review-overview-actions {
  justify-content: flex-end;
}

.metadata-review-count {
  display: inline-flex;
  align-items: center;
  min-height: 1.8rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.25rem 0.65rem;
  background: var(--panel);
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
}

.metadata-review-count[data-state="ready"] {
  border-color: color-mix(in srgb, var(--accent), var(--border) 48%);
  color: var(--accent);
}

.metadata-review-count[data-state="attention"] {
  border-color: color-mix(in srgb, var(--warning), var(--border) 48%);
  color: color-mix(in srgb, var(--warning), var(--text) 24%);
}

.metadata-review-count[data-state="evidence-conflict"] {
  border-color: color-mix(in srgb, var(--danger), var(--border) 48%);
  color: var(--danger);
}

.metadata-review-count[data-state="manual"] {
  border-color: color-mix(in srgb, var(--warning), var(--border) 48%);
  color: color-mix(in srgb, var(--warning), var(--text) 24%);
}

.metadata-review-count[data-state="confirmed"] {
  border-color: color-mix(in srgb, var(--accent-2), var(--border) 48%);
  color: var(--accent-2);
}

.metadata-review-count[hidden] {
  display: none;
}

.metadata-review-inline {
  display: grid;
  gap: 0.5rem;
  min-width: 0;
  margin-top: 0.1rem;
  border: 1px solid color-mix(in srgb, var(--accent), var(--border) 42%);
  border-radius: calc(var(--radius) * 0.75);
  padding: 0.6rem 0.7rem;
  background: color-mix(in srgb, var(--accent), var(--panel) 96%);
  overflow-wrap: anywhere;
}

.metadata-review-inline[hidden] {
  display: none;
}

.metadata-review-inline[data-state="applied"] {
  border-color: color-mix(in srgb, var(--accent-2), var(--border) 42%);
  background: color-mix(in srgb, var(--accent-2), var(--panel) 95%);
}

.metadata-review-inline[data-state="attention"] {
  border-color: color-mix(in srgb, var(--warning), var(--border) 35%);
  background: color-mix(in srgb, var(--warning), var(--panel) 95%);
}

.metadata-review-inline[data-state="evidence_conflict"] {
  border-color: color-mix(in srgb, var(--danger), var(--border) 35%);
  background: color-mix(in srgb, var(--danger), var(--panel) 96%);
}

.metadata-review-inline[data-state="manual"] {
  border-color: color-mix(in srgb, var(--warning), var(--border) 35%);
  background: color-mix(in srgb, var(--warning), var(--panel) 95%);
}

.metadata-review-inline[data-state="dismissed"] {
  border-color: var(--border);
  background: var(--panel-soft);
}

.metadata-review-inline-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem;
}

.metadata-review-inline-title {
  color: var(--accent);
  font-size: 0.76rem;
  font-weight: 850;
}

.metadata-review-inline[data-state="applied"] .metadata-review-inline-title {
  color: var(--accent-2);
}

.metadata-review-inline[data-state="attention"] .metadata-review-inline-title {
  color: color-mix(in srgb, var(--warning), var(--text) 24%);
}

.metadata-review-inline[data-state="evidence_conflict"] .metadata-review-inline-title {
  color: var(--danger);
}

.metadata-review-inline[data-state="manual"] .metadata-review-inline-title,
.metadata-review-inline[data-state="dismissed"] .metadata-review-inline-title {
  color: var(--muted);
}

.metadata-review-inline-value {
  color: var(--text);
  font-size: 0.82rem;
  font-weight: 780;
  line-height: 1.45;
}

.metadata-review-conflict-comparison {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.55rem;
}

.metadata-review-conflict-value {
  display: grid;
  gap: 0.2rem;
  min-width: 0;
  border: 1px solid color-mix(in srgb, var(--danger), var(--border) 68%);
  border-radius: calc(var(--radius) * 0.55);
  padding: 0.5rem 0.6rem;
  background: var(--panel);
}

.metadata-review-conflict-value span {
  color: var(--muted);
  font-size: 0.66rem;
  font-weight: 800;
}

.metadata-review-conflict-value strong {
  color: var(--text);
  font-size: 0.78rem;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.metadata-review-confidence {
  display: inline-flex;
  align-self: flex-start;
  flex: 0 0 auto;
  border-radius: 999px;
  padding: 0.18rem 0.45rem;
  background: color-mix(in srgb, var(--accent), transparent 88%);
  color: var(--accent);
  font-size: 0.68rem;
  font-weight: 850;
}

.metadata-review-inline-note,
.metadata-review-apply-feedback {
  margin: 0;
  color: var(--muted);
  font-size: 0.72rem;
  line-height: 1.45;
}

.metadata-review-sources {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.4rem;
  color: var(--muted);
  font-size: 0.7rem;
}

.metadata-review-sources > strong {
  color: var(--accent-2);
  font-weight: 850;
}

.metadata-review-source {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  border: 1px solid color-mix(in srgb, var(--accent-2), var(--border) 55%);
  border-radius: 999px;
  padding: 0.18rem 0.55rem;
  background: color-mix(in srgb, var(--accent-2), var(--panel) 95%);
  color: var(--accent-2);
  font-weight: 800;
  text-decoration: none;
}

.metadata-review-sources[data-kind="candidate"] > strong,
.metadata-review-sources[data-kind="candidate"] .metadata-review-source {
  color: color-mix(in srgb, var(--warning), var(--text) 24%);
}

.metadata-review-sources[data-kind="candidate"] .metadata-review-source {
  border-color: color-mix(in srgb, var(--warning), var(--border) 48%);
  background: color-mix(in srgb, var(--warning), var(--panel) 94%);
}

.metadata-review-source-note {
  width: 100%;
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 700;
}

.metadata-review-source:hover,
.metadata-review-source:focus-visible {
  border-color: var(--accent-2);
  text-decoration: underline;
}

.metadata-review-source-empty {
  margin: 0;
  color: color-mix(in srgb, var(--warning), var(--text) 24%);
  font-size: 0.7rem;
  font-weight: 760;
  line-height: 1.45;
}

.metadata-review-inline-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.metadata-review-apply-feedback {
  border-left: 3px solid var(--accent);
  padding: 0.45rem 0.65rem;
  background: color-mix(in srgb, var(--accent), var(--panel) 96%);
  color: var(--text);
  font-weight: 760;
}

.metadata-review-apply-feedback[hidden],
.metadata-review-warnings[hidden] {
  display: none;
}

.metadata-review-warnings {
  margin: 0;
  padding-left: 1.2rem;
  color: var(--muted);
  font-size: 0.74rem;
  line-height: 1.5;
}

.editor-grid .metadata-review-input-applied {
  border-color: var(--accent-2);
  outline: 3px solid color-mix(in srgb, var(--accent-2), transparent 80%);
  background: color-mix(in srgb, var(--accent-2), var(--panel) 96%);
}

.metadata-review-notice {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.7rem;
  margin-top: 0.8rem;
  padding: 0.7rem;
  border: 1px solid color-mix(in srgb, var(--accent), var(--border) 55%);
  border-radius: var(--radius);
  background: color-mix(in srgb, var(--accent), var(--panel) 94%);
}

.metadata-review-notice[hidden] {
  display: none;
}

.metadata-review-notice div {
  display: grid;
  gap: 0.15rem;
}

.metadata-review-notice strong {
  font-size: 0.84rem;
}

.metadata-review-notice span {
  color: var(--muted);
  font-size: 0.76rem;
}

.player-panel {
  position: sticky;
  top: 5rem;
  display: grid;
  gap: 0.85rem;
}

.player-shell {
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #000;
  position: relative;
}

#preview {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
}

#preview::-webkit-media-controls-fullscreen-button {
  display: none !important;
}

.player-corner-actions {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  z-index: 4;
  display: flex;
  gap: 0.5rem;
  transition: opacity 180ms ease, transform 180ms ease;
}

.player-fullscreen-toggle,
.smart-caption-toggle {
  position: relative;
  border-color: rgba(255, 255, 255, 0.52);
  background: rgba(12, 21, 36, 0.72);
  color: #fff;
}

.tv-stage.stage-controls-hidden .player-corner-actions {
  opacity: 0;
  pointer-events: none;
  transform: translateY(0.35rem);
}

.tv-stage.stage-controls-hidden .player-corner-actions:has(.stage-icon-button:focus-visible),
.tv-stage.stage-controls-hidden .tv-stage-actions:has(.stage-icon-button:focus-visible) {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.player-shell:fullscreen,
.player-shell:-webkit-full-screen,
.player-shell.player-fallback-fullscreen {
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  border: 0;
  border-radius: 0;
}

.player-shell.player-fallback-fullscreen {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: #000;
}

body.player-fallback-fullscreen-active {
  overflow: hidden;
}

.player-shell:fullscreen #preview,
.player-shell:-webkit-full-screen #preview,
.player-shell.player-fallback-fullscreen #preview {
  width: 100%;
  height: 100%;
  aspect-ratio: auto;
  object-fit: contain;
}

.player-shell:fullscreen .smart-caption-overlay,
.player-shell:-webkit-full-screen .smart-caption-overlay,
.player-shell.player-fallback-fullscreen .smart-caption-overlay {
  bottom: max(5.5rem, env(safe-area-inset-bottom));
  max-width: min(86vw, 64rem);
  font-size: clamp(1.15rem, 2.4vw, 2rem);
}

.player-status {
  display: none !important;
}

.player-mode {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 2;
  padding: 0.32rem 0.65rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.55);
  background: rgba(12, 21, 36, 0.72);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0;
}

.player-mode[data-mode="proxy"] {
  display: inline-flex;
}

.selected-copy {
  position: relative;
  padding: 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--panel);
}

.selected-copy:has(.player-caption-actions > :not([hidden])) {
  padding-right: 12.5rem;
}

.player-caption-actions {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  display: flex;
  gap: 0.45rem;
}

.player-caption-toggle {
  color: var(--accent);
}

.player-caption-toggle[aria-pressed="true"] {
  border-color: color-mix(in srgb, var(--accent), var(--border) 45%);
  background: color-mix(in srgb, var(--accent), transparent 84%);
}

.selected-admin-action {
  color: var(--accent);
}

.selected-delete-channel {
  border-color: color-mix(in srgb, #dc2626, var(--border) 55%);
  color: #dc2626;
}

.selected-delete-channel:hover,
.selected-delete-channel:focus-visible {
  border-color: #dc2626;
  background: color-mix(in srgb, #dc2626, transparent 90%);
}

.smart-caption-toggle[data-state="working"] {
  animation: smart-caption-pulse 1.15s ease-in-out infinite;
}

.smart-caption-overlay {
  position: absolute;
  z-index: 3;
  left: 50%;
  bottom: 4.6rem;
  width: max-content;
  max-width: min(90%, 42rem);
  transform: translateX(-50%);
  padding: 0.48rem 0.78rem;
  border-radius: 0.35rem;
  background: rgba(0, 0, 0, 0.78);
  color: #fff;
  font-size: clamp(0.92rem, 2.1vw, 1.22rem);
  font-weight: 750;
  line-height: 1.38;
  text-align: center;
  text-wrap: balance;
  pointer-events: none;
  text-shadow: 0 1px 2px #000;
}

.smart-caption-overlay[data-tone="status"] {
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.82rem;
  font-weight: 700;
}

@keyframes smart-caption-pulse {
  50% { opacity: 0.56; }
}

.selected-description {
  margin: 0.75rem 0 0;
  color: var(--muted);
  line-height: 1.55;
}

.selected-schedule {
  display: inline-flex;
  margin-top: 0.75rem;
  color: var(--accent);
  font-weight: 750;
}

.selected-trust-panel {
  display: grid;
  gap: 0;
  margin-top: 1rem;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) + 2px);
  background: color-mix(in srgb, var(--panel), var(--panel-soft) 22%);
}

.selected-trust-panel[hidden] {
  display: none;
}

.selected-trust-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.8rem 0.95rem;
  border-bottom: 1px solid var(--border);
}

.selected-trust-heading h3 {
  margin: 0;
  font-size: 0.98rem;
}

.selected-trust-heading h3::before {
  margin-right: 0.42rem;
  color: var(--accent);
  content: '◇';
}

.selected-trust-evidence {
  color: var(--muted);
  font-size: 0.76rem;
}

.selected-trust-body {
  display: grid;
  grid-template-columns: 10.5rem minmax(0, 1fr);
  gap: 1rem;
  padding: 1rem;
}

.selected-trust-score {
  position: relative;
  display: grid;
  place-items: center;
  align-self: center;
  width: 9rem;
  height: 9rem;
}

.selected-trust-score svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.selected-trust-score circle {
  fill: none;
  stroke-width: 8;
}

.selected-trust-score-track {
  stroke: var(--panel-soft);
}

.selected-trust-score-arc {
  stroke: var(--accent);
  stroke-linecap: round;
  stroke-dasharray: 302;
  stroke-dashoffset: 302;
  transition: stroke-dashoffset 220ms ease;
}

.selected-trust-score strong {
  z-index: 1;
  margin-top: -0.3rem;
  font-size: 2rem;
  line-height: 1;
}

.selected-trust-score span {
  z-index: 1;
  margin-top: -2.8rem;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 800;
}

.selected-trust-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.55rem;
  margin: 0;
}

.selected-trust-facts div {
  min-width: 0;
  padding: 0.7rem 0.8rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--panel);
}

.selected-trust-facts .selected-trust-availability {
  grid-column: 1 / -1;
}

.selected-trust-facts dt {
  color: var(--muted);
  font-size: 0.72rem;
}

.selected-trust-facts dd {
  margin: 0.14rem 0 0;
  overflow-wrap: anywhere;
  font-size: 0.86rem;
  font-weight: 760;
}

.selected-trust-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.75rem 0.95rem;
  border-top: 1px solid var(--border);
}

.selected-verification-link {
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: 800;
}

.selected-verification-link[hidden] {
  display: none;
}

.text-button {
  min-height: 2.15rem;
  padding: 0.35rem 0.55rem;
  border-color: transparent;
  background: transparent;
  color: var(--accent);
}

@media (max-width: 700px) {
  .selected-trust-body {
    grid-template-columns: 1fr;
  }

  .selected-trust-score {
    width: 7.6rem;
    height: 7.6rem;
    margin: 0 auto;
  }

  .selected-trust-facts {
    grid-template-columns: 1fr;
  }

  .selected-trust-facts .selected-trust-availability {
    grid-column: auto;
  }

  .selected-trust-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .selected-trust-actions .button {
    width: 100%;
  }
}

.admin-claims-button {
  position: relative;
  align-self: end;
  color: var(--accent);
}

@media (hover: hover) and (pointer: fine) {
  .admin-claims-button::after {
    position: absolute;
    top: calc(100% + 0.45rem);
    right: 0;
    z-index: 60;
    width: max-content;
    max-width: min(16rem, calc(100vw - 2rem));
    padding: 0.42rem 0.58rem;
    border: 1px solid var(--border);
    border-radius: 0.5rem;
    background: var(--text);
    box-shadow: var(--shadow);
    color: var(--panel);
    content: attr(aria-label);
    font-size: 0.75rem;
    font-weight: 750;
    line-height: 1.2;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-0.2rem);
    transition: opacity 120ms ease, transform 120ms ease;
    white-space: nowrap;
  }

  .admin-claims-button:hover::after,
  .admin-claims-button:focus-visible::after {
    opacity: 1;
    transform: translateY(0);
  }
}

.admin-claims-modal {
  width: min(760px, calc(100vw - 2rem));
}

.admin-claims-list {
  display: grid;
  gap: 0.75rem;
  max-height: min(62vh, 38rem);
  overflow: auto;
}

.admin-claims-section-title {
  margin: 1.1rem 0 0;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
  font-size: 1rem;
}

.admin-claim-card {
  display: grid;
  gap: 0.45rem;
  padding: 0.9rem;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: color-mix(in srgb, var(--panel), var(--page) 24%);
}

.admin-claim-card h3,
.admin-claim-card p {
  margin: 0;
}

.admin-claim-meta {
  color: var(--muted);
  overflow-wrap: anywhere;
}

.admin-claim-actions {
  display: flex;
  gap: 0.5rem;
  justify-content: flex-end;
}

.leaderboard-panel {
  padding: 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--panel);
}

.tv-stage-details.leaderboard-hidden {
  grid-template-columns: 1fr;
}

.tv-stage-details.leaderboard-hidden .selected-copy {
  grid-column: 1 / -1;
}

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

.favorite-leaderboard {
  display: grid;
  gap: 0.55rem;
  margin: 0.7rem 0 0;
  padding: 0;
  list-style: none;
}

.favorite-leaderboard li {
  display: grid;
  grid-template-columns: 1.5rem minmax(0, 1fr) auto;
  gap: 0.55rem;
  align-items: center;
  min-width: 0;
}

.leaderboard-rank {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 850;
  text-align: right;
}

.leaderboard-channel {
  min-width: 0;
  border: 0;
  padding: 0;
  overflow: hidden;
  background: transparent;
  color: var(--text);
  cursor: pointer;
  font-weight: 750;
  text-align: left;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.leaderboard-count {
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  color: var(--favorite);
  font-size: 0.76rem;
  font-weight: 850;
}

.leaderboard-count svg {
  width: 0.82rem;
  height: 0.82rem;
}

.favorite-leaderboard li.leaderboard-empty {
  display: block;
  min-width: 0;
  overflow: hidden;
  color: var(--muted);
  font-size: 0.86rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.eyebrow {
  margin: 0 0 0.35rem;
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 850;
  text-transform: uppercase;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.selected-copy h2 {
  margin: 0;
  font-size: 1.2rem;
  line-height: 1.25;
}

.selected-copy p {
  color: var(--muted);
}

/* Immersive television stage */
.shell {
  width: min(1680px, 100%);
}

.tv-experience {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0.85rem;
  margin-bottom: clamp(2rem, 5vw, 4.5rem);
}

.tv-experience.community-open {
  grid-template-columns: minmax(0, 1fr) minmax(20rem, 23rem);
}

.tv-experience > .tv-browse-layout {
  grid-column: 1;
  grid-row: 1;
}

.tv-browse-layout {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: minmax(19rem, 21rem) minmax(0, 1fr);
  min-width: 0;
  overflow: hidden;
  border: 1px solid #1f2b38;
  border-radius: var(--radius);
  background: #071019;
  box-shadow: 0 24px 70px rgba(5, 13, 24, 0.24);
}

.tv-browse-layout > .tv-stage {
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.channel-browser {
  position: relative;
  z-index: 18;
  display: grid;
  grid-template-rows: auto auto auto auto auto auto minmax(8rem, 1fr);
  min-width: 0;
  max-height: min(52rem, calc(100vh - 6.5rem));
  overflow: hidden;
  border-right: 1px solid rgba(148, 163, 184, 0.2);
  padding: 1rem;
  background: #0a1623;
  color: #f8fafc;
}

.channel-browser-header {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 0.65rem;
  align-items: center;
  padding-bottom: 0.75rem;
}

.channel-browser-header h2 {
  margin: 0.1rem 0 0;
  font-size: 1.05rem;
  line-height: 1.2;
}

.channel-browser-global-search {
  min-width: 0;
  padding: 0 0 0.8rem;
}

.channel-browser-global-search .search-input-wrap input[type="search"] {
  min-height: 2.65rem;
  border-color: rgba(148, 163, 184, 0.26);
  border-radius: 7px;
  background: #132438;
  color: #f8fafc;
}

.channel-browser-global-search .search-input-wrap > svg {
  color: #8da2ba;
}

.channel-browser-global-search .search-input-wrap:focus-within > svg {
  color: #76aaff;
}

.channel-browser-global-search .search-input-wrap input[type="search"]::placeholder {
  color: rgba(203, 213, 225, 0.62);
  opacity: 1;
}

.channel-browser-global-search .search-input-wrap input[type="search"]:hover {
  border-color: rgba(148, 163, 184, 0.42);
  background: #172a40;
}

.channel-browser-global-search .search-input-wrap input[type="search"]:focus {
  border-color: #4c91f7;
  background: #172a40;
  box-shadow: 0 0 0 3px rgba(76, 145, 247, 0.16);
}

.channel-browser-admin-actions {
  justify-content: flex-start;
  min-height: 0;
  margin: 0 0 0.8rem;
  border-color: rgba(148, 163, 184, 0.22);
  background: rgba(17, 31, 47, 0.82);
}

.channel-browser-admin-actions .icon-button:hover,
.channel-browser-admin-actions .icon-button:focus-visible {
  background: rgba(248, 250, 252, 0.1);
}

.channel-browser-kicker {
  color: #76aaff;
  font-size: 0.62rem;
  font-weight: 850;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.channel-browser-back,
.channel-browser-close {
  min-height: 2.1rem;
  border: 1px solid rgba(148, 163, 184, 0.28);
  border-radius: 6px;
  padding: 0 0.58rem;
  background: rgba(17, 31, 47, 0.9);
  color: rgba(248, 250, 252, 0.82);
  font-size: 0.72rem;
  font-weight: 800;
  cursor: pointer;
}

.channel-browser-close {
  display: none;
}

.channel-browser-back:hover,
.channel-browser-back:focus-visible,
.channel-browser-close:hover,
.channel-browser-close:focus-visible {
  border-color: #76aaff;
  color: #fff;
}

.channel-browser-back:disabled {
  opacity: 0.36;
  cursor: default;
}

.channel-browser-breadcrumbs {
  display: flex;
  align-items: center;
  gap: 0.28rem;
  min-width: 0;
  overflow-x: auto;
  padding: 0 0 0.8rem;
  scrollbar-width: none;
}

.channel-browser-breadcrumbs::-webkit-scrollbar {
  display: none;
}

.channel-browser-crumb {
  flex: 0 0 auto;
  min-height: 1.85rem;
  border: 1px solid rgba(148, 163, 184, 0.26);
  border-radius: 6px;
  padding: 0.25rem 0.55rem;
  background: rgba(17, 31, 47, 0.78);
  color: rgba(248, 250, 252, 0.82);
  font-size: 0.7rem;
  font-weight: 800;
  cursor: pointer;
}

.channel-browser-crumb:hover,
.channel-browser-crumb:focus-visible,
.channel-browser-crumb[data-current="true"] {
  border-color: #4c91f7;
  background: rgba(23, 105, 224, 0.26);
  color: #8cbcff;
}

.channel-browser-crumb-separator {
  color: rgba(148, 163, 184, 0.56);
  font-size: 0.72rem;
}

.channel-browser-step {
  min-height: 0;
  padding: 0.75rem 0;
  border-top: 1px solid rgba(148, 163, 184, 0.16);
  border-bottom: 1px solid rgba(148, 163, 184, 0.16);
}

.channel-browser-step-heading,
.channel-browser-results-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem;
}

.channel-browser-step-heading > span,
.channel-browser-results-heading > span {
  color: rgba(203, 213, 225, 0.7);
  font-size: 0.68rem;
  font-weight: 850;
  letter-spacing: 0.045em;
  text-transform: uppercase;
}

.channel-browser-step-heading button,
.channel-browser-favorites {
  border: 0;
  padding: 0.15rem;
  background: transparent;
  color: #69a5ff;
  font-size: 0.72rem;
  font-weight: 800;
  cursor: pointer;
}

.channel-browser-search {
  display: block;
  margin-top: 0.55rem;
}

.channel-browser-search input {
  width: 100%;
  min-height: 2.15rem;
  border: 1px solid rgba(148, 163, 184, 0.24);
  border-radius: 6px;
  padding: 0 0.65rem;
  background: rgba(4, 11, 19, 0.62);
  color: #f8fafc;
  font-size: 0.78rem;
  outline: 0;
}

.channel-browser-search input::placeholder {
  color: rgba(203, 213, 225, 0.48);
}

.channel-browser-search input:focus {
  border-color: #4c91f7;
  box-shadow: 0 0 0 2px rgba(23, 105, 224, 0.2);
}

.channel-browser-facets {
  display: grid;
  gap: 0.28rem;
  max-height: 11.25rem;
  margin-top: 0.55rem;
  overflow-y: auto;
  padding-right: 0.15rem;
  scrollbar-color: rgba(118, 170, 255, 0.42) transparent;
  scrollbar-width: thin;
}

.channel-browser-facet {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.55rem;
  align-items: center;
  width: 100%;
  min-height: 2rem;
  border: 1px solid transparent;
  border-radius: 6px;
  padding: 0.35rem 0.55rem;
  background: transparent;
  color: rgba(248, 250, 252, 0.82);
  text-align: left;
  cursor: pointer;
}

.channel-browser-facet:hover,
.channel-browser-facet:focus-visible {
  border-color: rgba(118, 170, 255, 0.46);
  background: rgba(51, 94, 145, 0.18);
}

.channel-browser-facet[data-active="true"] {
  border-color: #4c91f7;
  background: rgba(23, 105, 224, 0.66);
  color: #fff;
}

.channel-browser-facet-name {
  overflow: hidden;
  font-size: 0.78rem;
  font-weight: 760;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.channel-browser-facet-count {
  color: rgba(203, 213, 225, 0.66);
  font-size: 0.7rem;
  font-variant-numeric: tabular-nums;
}

.channel-browser-facet[data-active="true"] .channel-browser-facet-count {
  color: rgba(255, 255, 255, 0.86);
}

.channel-browser-results-heading {
  padding: 0.8rem 0 0.55rem;
}

.channel-browser-favorites {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  color: #fb7185;
}

.channel-browser-favorites svg {
  width: 0.9rem;
  height: 0.9rem;
}

.channel-browser-favorites[data-active="true"] svg {
  fill: currentColor;
}

.channel-browser-channels {
  display: grid;
  align-content: start;
  gap: 0.35rem;
  min-height: 0;
  overflow-y: auto;
  padding-right: 0.15rem;
  scrollbar-color: rgba(118, 170, 255, 0.42) transparent;
  scrollbar-width: thin;
}

.channel-browser-channel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 2rem;
  gap: 0.28rem;
  min-width: 0;
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: 7px;
  background: rgba(10, 22, 35, 0.62);
  content-visibility: auto;
  contain-intrinsic-size: auto 4rem;
}

.channel-browser-channel[data-active="true"] {
  border-color: #4c91f7;
  background: rgba(23, 105, 224, 0.16);
}

.channel-browser-play {
  display: grid;
  grid-template-columns: 2.7rem minmax(0, 1fr);
  gap: 0.58rem;
  align-items: center;
  min-width: 0;
  min-height: 3.3rem;
  border: 0;
  padding: 0.34rem;
  background: transparent;
  color: #f8fafc;
  text-align: left;
  cursor: pointer;
}

.channel-browser-play:hover .channel-browser-channel-name,
.channel-browser-play:focus-visible .channel-browser-channel-name {
  color: #8cbcff;
}

.channel-browser-logo {
  display: grid;
  place-items: center;
  width: 2.7rem;
  height: 2.7rem;
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 6px;
  background: #f8fafc;
  color: #334155;
  font-size: 0.66rem;
  font-weight: 900;
}

.channel-browser-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.channel-browser-channel-copy {
  display: grid;
  gap: 0.16rem;
  min-width: 0;
}

.channel-browser-channel-name,
.channel-browser-channel-meta {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.channel-browser-channel-name {
  font-size: 0.76rem;
  font-weight: 820;
}

.channel-browser-channel-meta {
  color: rgba(203, 213, 225, 0.66);
  font-size: 0.66rem;
  font-weight: 700;
}

.channel-browser-now-playing {
  color: #69a5ff;
  font-size: 0.62rem;
  font-weight: 850;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.channel-browser-channel-favorite,
.channel-browser-channel-admin-action {
  display: inline-grid;
  place-items: center;
  align-self: stretch;
  width: 2rem;
  border: 0;
  border-left: 1px solid rgba(148, 163, 184, 0.12);
  background: transparent;
  color: rgba(203, 213, 225, 0.54);
  cursor: pointer;
}

.channel-browser-channel-admin-action:hover,
.channel-browser-channel-admin-action:focus-visible {
  color: #76aaff;
}

.channel-browser-channel-favorite:hover,
.channel-browser-channel-favorite:focus-visible,
.channel-browser-channel-favorite[data-active="true"] {
  color: #fb7185;
}

.channel-browser-channel-favorite[data-active="true"] svg {
  fill: currentColor;
}

.channel-browser-channel-favorite svg,
.channel-browser-channel-admin-action svg {
  width: 0.95rem;
  height: 0.95rem;
}

.channel-browser-empty {
  margin: 0;
  padding: 0.8rem 0.2rem;
  color: rgba(203, 213, 225, 0.64);
  font-size: 0.76rem;
  line-height: 1.45;
}

.channel-browser-load-more {
  width: 100%;
  min-height: 2.7rem;
  margin-top: 0.2rem;
  border: 1px solid rgba(118, 170, 255, 0.42);
  border-radius: 7px;
  background: rgba(23, 105, 224, 0.14);
  color: #a9caff;
  font: inherit;
  font-size: 0.72rem;
  font-weight: 800;
  cursor: pointer;
}

.channel-browser-load-more:hover,
.channel-browser-load-more:focus-visible {
  border-color: #76aaff;
  background: rgba(23, 105, 224, 0.24);
}

.channel-browser-load-more:disabled {
  cursor: wait;
  opacity: 0.62;
}

.channel-browser-toggle,
.channel-browser-scrim {
  display: none;
}

.mobile-channel-browser-toggle {
  display: none;
}

.tv-stage {
  position: relative;
  min-width: 0;
  overflow: hidden;
  border: 1px solid #1f2b38;
  border-radius: var(--radius);
  padding: clamp(0.55rem, 1.3vw, 1rem);
  background: #071019;
  box-shadow: 0 24px 70px rgba(5, 13, 24, 0.24);
  color: #f8fafc;
}

.tv-screen-frame {
  position: relative;
  isolation: isolate;
  width: min(100%, calc((100vh - 9rem) * 16 / 9));
  aspect-ratio: 16 / 9;
  margin: 0 auto;
  overflow: hidden;
  border: 5px solid #03070b;
  border-radius: var(--radius);
  background: #000;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.38);
}

.tv-screen-frame::after {
  position: absolute;
  z-index: 9;
  inset: 0;
  background: #000;
  content: "";
  opacity: 0;
  pointer-events: none;
  transition: opacity 140ms ease;
}

.tv-stage.powered-off .tv-screen-frame::after {
  opacity: 1;
}

.tv-stage.powered-off .tv-stage-channel,
.tv-stage.powered-off .tv-stage-actions,
.tv-stage.powered-off .recommendations-panel {
  opacity: 0;
  pointer-events: none;
}

.tv-screen-frame .player-shell {
  width: 100%;
  height: 100%;
  overflow: hidden;
  border: 0;
  border-radius: 0;
  background: #000;
}

.tv-screen-frame #preview {
  width: 100%;
  height: 100%;
  aspect-ratio: auto;
  object-fit: contain;
}

.tv-stage-channel {
  position: absolute;
  left: clamp(0.8rem, 2vw, 1.5rem);
  bottom: clamp(6.8rem, 10vw, 8.4rem);
  z-index: 4;
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  max-width: min(34rem, calc(100% - 16rem));
  color: #fff;
  pointer-events: none;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.9);
}

.tv-stage-channel > span:last-child {
  display: grid;
  gap: 0.12rem;
  min-width: 0;
}

.tv-stage-channel small {
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.68rem;
  font-weight: 850;
  text-transform: uppercase;
}

.tv-stage-channel strong,
.tv-stage-channel span span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tv-stage-channel strong {
  font-size: clamp(1rem, 2vw, 1.45rem);
  line-height: 1.15;
}

.tv-stage-channel span span {
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.78rem;
  font-weight: 700;
}

.live-indicator {
  width: 0.62rem;
  height: 0.62rem;
  margin-top: 0.28rem;
  border: 2px solid rgba(255, 255, 255, 0.82);
  border-radius: 50%;
  background: #ef4444;
  box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.22);
}

.tv-stage-actions {
  position: absolute;
  right: clamp(0.8rem, 2vw, 1.5rem);
  bottom: clamp(6.8rem, 10vw, 8.4rem);
  z-index: 6;
  display: flex;
  gap: 0.5rem;
}

.tv-stage-channel,
.tv-stage-actions,
.tv-stage .recommendations-panel {
  transition: opacity 180ms ease, transform 180ms ease;
}

.tv-stage.stage-controls-hidden .tv-stage-channel,
.tv-stage.stage-controls-hidden .tv-stage-actions {
  opacity: 0;
  pointer-events: none;
}

.tv-stage.stage-controls-hidden .tv-stage-channel,
.tv-stage.stage-controls-hidden .tv-stage-actions {
  transform: translateY(0.35rem);
}

@media (min-width: 801px) {
  .tv-stage.stage-controls-hidden .recommendations-panel {
    opacity: 0;
    pointer-events: none;
    transform: translateY(0.45rem);
  }
}

.stage-icon-button {
  display: inline-grid;
  place-items: center;
  width: 2.7rem;
  height: 2.7rem;
  border: 1px solid rgba(255, 255, 255, 0.36);
  border-radius: var(--radius);
  background: rgba(5, 13, 24, 0.72);
  color: #fff;
  backdrop-filter: blur(12px);
  cursor: pointer;
}

.stage-icon-button:hover,
.stage-icon-button:focus-visible {
  border-color: rgba(255, 255, 255, 0.78);
  background: rgba(5, 13, 24, 0.9);
}

.channel-browser-toggle[aria-expanded="true"],
.player-fullscreen-toggle[aria-pressed="true"],
.smart-caption-toggle[aria-pressed="true"] {
  border-color: #60a5fa;
  background: rgba(37, 116, 171, 0.88);
  box-shadow: 0 0 0 1px rgba(96, 165, 250, 0.32);
}

.stage-icon-button svg {
  width: 1.2rem;
  height: 1.2rem;
}

.community-toggle {
  position: relative;
}

.share-channel-button[data-state="copied"] {
  border-color: #6ee7b7;
  background: rgba(5, 150, 105, 0.88);
  color: #fff;
}

.share-channel-button[data-state="error"] {
  border-color: #fca5a5;
  background: rgba(185, 28, 28, 0.88);
  color: #fff;
}

.share-feedback {
  position: absolute;
  right: 0;
  bottom: calc(100% + 0.55rem);
  width: max-content;
  max-width: min(15rem, 70vw);
  padding: 0.38rem 0.58rem;
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: 0.45rem;
  background: rgba(5, 13, 24, 0.92);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 800;
  line-height: 1.25;
  text-align: center;
  pointer-events: none;
  box-shadow: 0 0.4rem 1.1rem rgba(0, 0, 0, 0.24);
}

.community-viewer-badge {
  position: absolute;
  top: -0.38rem;
  right: -0.38rem;
  display: inline-grid;
  place-items: center;
  min-width: 1.25rem;
  height: 1.25rem;
  border: 2px solid #071019;
  border-radius: 999px;
  padding: 0 0.25rem;
  background: #22c55e;
  color: #04120a;
  font-size: 0.62rem;
  font-weight: 900;
}

.stage-remote-toggle {
  display: none;
}

.tv-remote {
  position: absolute;
  top: 50%;
  right: clamp(0.9rem, 2vw, 1.75rem);
  z-index: 12;
  width: clamp(9rem, 10vw, 9.75rem);
  max-height: calc(100% - 1.25rem);
  overflow-y: auto;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 2.25rem;
  padding: 1rem 0.75rem 1.1rem;
  background: #171c22;
  color: #f8fafc;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    inset 0 -1px 0 rgba(0, 0, 0, 0.6),
    0 24px 60px rgba(0, 0, 0, 0.58);
  opacity: 0;
  pointer-events: none;
  transform: translate(0.65rem, -50%) scale(0.98);
  transition: opacity 160ms ease, transform 160ms ease;
  scrollbar-width: none;
}

.tv-remote::-webkit-scrollbar {
  display: none;
}

.tv-remote::before {
  position: absolute;
  top: 0.42rem;
  left: 50%;
  width: 2.3rem;
  height: 0.18rem;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.72);
  content: "";
  transform: translateX(-50%);
}

.tv-stage.remote-visible .tv-remote {
  opacity: 1;
  pointer-events: auto;
  transform: translate(0, -50%) scale(1);
}

.tv-remote-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  padding: 0.25rem 0.15rem 0.65rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.tv-remote-head img {
  width: 1.65rem;
  height: 1.65rem;
  border-radius: 6px;
  object-fit: cover;
  opacity: 0.9;
}

.remote-button {
  display: inline-grid;
  place-items: center;
  min-width: 2.2rem;
  min-height: 2.2rem;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 50%;
  background: #242b33;
  color: #f8fafc;
  font-size: 0.75rem;
  font-weight: 850;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 2px 5px rgba(0, 0, 0, 0.28);
  cursor: pointer;
}

.remote-button:hover,
.remote-button:focus-visible {
  border-color: #69a5ff;
  background: #2c3a48;
  color: #fff;
}

.remote-button svg {
  width: 1rem;
  height: 1rem;
}

.remote-power {
  min-width: 2.05rem;
  min-height: 2.05rem;
  border-color: rgba(248, 113, 113, 0.44);
  background: #211f23;
  color: #f87171;
}

.remote-power[data-active="true"] {
  border-color: #ef4444;
  background: #ef4444;
  color: #fff;
  box-shadow: 0 2px 10px rgba(239, 68, 68, 0.42);
}

.remote-dpad {
  display: grid;
  grid-template-columns: repeat(3, 2.25rem);
  grid-template-rows: repeat(3, 2.25rem);
  justify-content: center;
  width: 7.35rem;
  height: 7.35rem;
  margin: 0.9rem auto 1rem;
  padding: 0.3rem;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 50%;
  background: #222931;
  box-shadow:
    inset 0 2px 7px rgba(255, 255, 255, 0.05),
    inset 0 -5px 10px rgba(0, 0, 0, 0.3),
    0 3px 8px rgba(0, 0, 0, 0.28);
}

.remote-dpad .remote-button {
  width: 2.25rem;
  height: 2.25rem;
  min-width: 0;
  min-height: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  box-shadow: none;
}

.remote-dpad .remote-button:hover,
.remote-dpad .remote-button:focus-visible {
  background: rgba(255, 255, 255, 0.08);
}

.remote-up { grid-column: 2; grid-row: 1; }
.remote-left { grid-column: 1; grid-row: 2; }
.remote-ok {
  grid-column: 2;
  grid-row: 2;
  border: 1px solid rgba(118, 170, 255, 0.55) !important;
  background: #1769e0 !important;
  box-shadow: 0 2px 8px rgba(23, 105, 224, 0.38) !important;
}
.remote-right { grid-column: 3; grid-row: 2; }
.remote-down { grid-column: 2; grid-row: 3; }

.remote-rockers {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem;
  margin-inline: 0.2rem;
}

.remote-rocker {
  display: grid;
  grid-template-rows: 2.15rem 1.35rem 2.15rem;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  background: #242b33;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.07),
    0 2px 5px rgba(0, 0, 0, 0.22);
}

.remote-rocker .remote-button {
  min-width: 0;
  min-height: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  font-size: 1rem;
  box-shadow: none;
}

.remote-rocker span {
  align-self: center;
  color: rgba(255, 255, 255, 0.58);
  font-size: 0.62rem;
  font-weight: 850;
  text-align: center;
}

.remote-quick-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.55rem;
  margin: 0.85rem 0.35rem 0;
}

.remote-quick-actions .remote-button {
  width: 2.3rem;
  height: 2.3rem;
  min-width: 0;
  min-height: 0;
  justify-self: center;
}

.remote-favorite {
  color: #fb7185;
}

.remote-favorite[data-active="true"] svg {
  fill: currentColor;
}

.tv-stage .recommendations-panel {
  position: absolute;
  right: clamp(13.4rem, 16vw, 15rem);
  bottom: clamp(0.85rem, 1.6vw, 1.25rem);
  left: clamp(0.85rem, 1.6vw, 1.25rem);
  z-index: 7;
  display: grid;
  grid-template-columns: minmax(12.5rem, 14rem) minmax(0, 1fr);
  gap: 0.7rem;
  align-items: center;
  padding: 0.55rem;
  border-color: rgba(255, 255, 255, 0.18);
  background: rgba(5, 13, 24, 0.78);
  box-shadow: none;
  backdrop-filter: blur(14px);
}

.tv-stage .recommendations-header {
  align-items: center;
  gap: 0.45rem;
  color: #f8fafc;
}

.tv-stage .recommendations-header h2 {
  overflow: hidden;
  color: #fff;
  font-size: 0.84rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tv-stage .recommendations-header .eyebrow {
  margin-bottom: 0.18rem;
  color: #76aaff;
  font-size: 0.62rem;
}

.tv-stage .recommendations-header-actions {
  margin-left: auto;
}

.tv-stage .recommendations-reason {
  display: none;
}

.tv-stage .recommendation-scroll-button {
  width: 1.8rem;
  height: 1.8rem;
  border-color: rgba(255, 255, 255, 0.18);
  background: #172230;
  color: #f8fafc;
}

.tv-stage .recommendation-strip {
  grid-auto-columns: 9.5rem;
  gap: 0.55rem;
  padding: 0 0 0.2rem;
}

.stage-channel-tile {
  position: relative;
  min-width: 0;
  scroll-snap-align: start;
}

.stage-channel-button {
  position: relative;
  display: block;
  width: 100%;
  height: 4.2rem;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 6px;
  padding: 0;
  background: #121b25;
  color: #fff;
  cursor: pointer;
}

.stage-channel-button:hover,
.stage-channel-button:focus-visible,
.stage-channel-button[data-active="true"] {
  border-color: #76aaff;
  box-shadow: inset 0 0 0 1px #76aaff;
}

.stage-channel-button img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.78;
}

.stage-channel-name {
  position: absolute;
  right: 0.35rem;
  bottom: 0.3rem;
  left: 0.35rem;
  overflow: hidden;
  font-size: 0.68rem;
  font-weight: 800;
  text-align: left;
  text-overflow: ellipsis;
  text-shadow: 0 1px 5px #000;
  white-space: nowrap;
  transition: opacity 150ms ease;
}

.stage-channel-hover {
  position: absolute;
  inset: 0;
  display: grid;
  align-content: end;
  gap: 0.18rem;
  min-width: 0;
  padding: 0.45rem;
  background: linear-gradient(to top, rgba(3, 8, 14, 0.96), rgba(3, 8, 14, 0.62));
  opacity: 0;
  pointer-events: none;
  text-align: left;
  transform: translateY(0.3rem);
  transition: opacity 150ms ease, transform 150ms ease;
}

.stage-channel-hover strong,
.stage-channel-hover-meta {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.stage-channel-hover strong {
  font-size: 0.72rem;
}

.stage-channel-hover-meta {
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.58rem;
  font-weight: 750;
}

.stage-channel-button:hover .stage-channel-name,
.stage-channel-button:focus-visible .stage-channel-name {
  opacity: 0;
}

.stage-channel-button:hover .stage-channel-hover,
.stage-channel-button:focus-visible .stage-channel-hover {
  opacity: 1;
  transform: translateY(0);
}

.stage-channel-fallback {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: rgba(255, 255, 255, 0.72);
  font-size: 1.1rem;
  font-weight: 900;
}

.tv-stage-details {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(18rem, 0.8fr);
  grid-column: 1 / -1;
  gap: 0.85rem;
  margin-top: 0;
}

.tv-stage-details .selected-copy,
.tv-stage-details .leaderboard-panel {
  min-height: 7.5rem;
}

.tv-stage-details.trust-visible .selected-copy,
.tv-stage-details.trust-visible .leaderboard-panel {
  grid-column: 1 / -1;
}

.community-panel {
  position: relative;
  grid-column: 2;
  grid-row: 1;
  display: grid;
  grid-template-rows: auto minmax(10rem, 1fr) auto auto;
  min-width: 0;
  max-height: min(52rem, calc(100vh - 8rem));
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: 0 20px 55px rgba(5, 13, 24, 0.18);
}

.community-panel-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 1rem;
  border-bottom: 1px solid var(--border);
}

.community-panel-header h2 {
  max-width: 16rem;
  margin: 0;
  overflow: hidden;
  font-size: 1rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.community-presence {
  display: flex;
  align-items: center;
  gap: 0.42rem;
  margin: 0.35rem 0 0;
  color: var(--muted);
  font-size: 0.76rem;
}

.community-presence-dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 0 3px color-mix(in srgb, #22c55e, transparent 78%);
}

.community-messages {
  min-height: 0;
  padding: 0.8rem 1rem;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.community-message {
  display: grid;
  gap: 0.22rem;
  margin-bottom: 0.8rem;
}

.community-message-meta {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  min-width: 0;
}

.community-message-meta strong {
  min-width: 0;
  overflow: hidden;
  font-size: 0.78rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.community-message-meta time {
  flex: none;
  color: var(--muted);
  font-size: 0.68rem;
}

.community-report-content {
  flex: none;
  margin-left: auto;
  border: 0;
  padding: 0;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 0.68rem;
  font-weight: 750;
}

.community-report-content:hover,
.community-report-content:focus-visible {
  color: var(--danger);
}

.community-message-admin {
  color: var(--accent);
}

.community-message p {
  margin: 0;
  overflow-wrap: anywhere;
  font-size: 0.88rem;
  line-height: 1.45;
}

.community-empty {
  margin: 1rem 0;
  color: var(--muted);
  font-size: 0.86rem;
  text-align: center;
}

.community-new-messages {
  justify-self: center;
  margin-bottom: 0.45rem;
  border: 0;
  border-radius: 999px;
  padding: 0.38rem 0.72rem;
  background: var(--accent);
  color: #fff;
  cursor: pointer;
  font-size: 0.72rem;
  font-weight: 800;
}

.community-chat-status {
  min-height: 1.05rem;
  margin: 0;
  padding: 0 1rem 0.35rem;
  color: var(--muted);
  font-size: 0.72rem;
}

.community-chat-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.5rem;
  padding: 0.8rem;
  border-top: 1px solid var(--border);
}

.community-chat-form input {
  min-width: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.72rem 0.8rem;
  background: var(--panel-soft);
  color: var(--text);
}

.community-reviews {
  grid-column: 1 / -1;
  padding: 1rem;
  border-top: 1px solid var(--border);
  background: var(--panel);
}

.community-reviews-header,
.community-review-actions,
.community-rating-editor {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.community-reviews-header h2 {
  margin: 0;
  font-size: 1.15rem;
}

.community-rating-summary {
  display: grid;
  justify-items: end;
}

.community-rating-summary strong {
  font-size: 1.65rem;
  line-height: 1;
}

.community-rating-summary span {
  margin-top: 0.25rem;
  color: var(--muted);
  font-size: 0.75rem;
}

.community-rating-editor {
  justify-content: flex-start;
  margin-top: 1rem;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 750;
}

.community-stars {
  display: flex;
  gap: 0.18rem;
}

.community-star {
  display: inline-grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  border: 0;
  background: transparent;
  color: #9aa5b4;
  cursor: pointer;
  font-size: 1.35rem;
}

.community-star[data-active="true"] {
  color: #f4b400;
}

.community-review-form {
  display: grid;
  gap: 0.5rem;
  margin-top: 0.85rem;
}

.community-review-form label {
  font-size: 0.82rem;
  font-weight: 750;
}

.community-review-form textarea {
  width: 100%;
  resize: vertical;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.75rem;
  background: var(--panel-soft);
  color: var(--text);
  font: inherit;
  line-height: 1.45;
}

.community-review-actions span {
  color: var(--muted);
  font-size: 0.76rem;
}

.community-review-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
  margin-top: 1rem;
}

.community-review {
  min-width: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.8rem;
  background: var(--panel-soft);
}

.community-review header,
.community-review footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
}

.community-review header time,
.community-review footer {
  color: var(--muted);
  font-size: 0.7rem;
}

.community-review-stars {
  color: #f4b400;
  letter-spacing: 0;
}

.community-review-actions-inline {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.community-review p {
  margin: 0.65rem 0;
  overflow-wrap: anywhere;
  line-height: 1.5;
}

.community-helpful {
  border: 0;
  padding: 0;
  background: transparent;
  color: var(--accent);
  cursor: pointer;
  font-weight: 750;
}

@media (max-width: 1180px) {
  .tv-experience.community-open {
    grid-template-columns: minmax(0, 1fr);
  }

  .community-panel {
    position: fixed;
    top: max(0.75rem, env(safe-area-inset-top));
    right: 0.75rem;
    bottom: max(0.75rem, env(safe-area-inset-bottom));
    z-index: 120;
    width: min(24rem, calc(100vw - 1.5rem));
    max-height: none;
    box-shadow: 0 28px 80px rgba(5, 13, 24, 0.38);
  }
}

@media (max-width: 1100px) {
  .tv-browse-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .channel-browser {
    position: absolute;
    inset: 0 auto 0 0;
    width: min(21rem, calc(100% - 3rem));
    max-height: none;
    border-right-color: rgba(148, 163, 184, 0.3);
    box-shadow: 18px 0 50px rgba(0, 0, 0, 0.46);
    transform: translateX(-105%);
    transition: transform 180ms ease;
  }

  body.channel-browser-open .channel-browser {
    transform: translateX(0);
  }

  .channel-browser-close,
  .channel-browser-toggle {
    display: inline-grid;
  }

  .mobile-channel-browser-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    width: 100%;
    min-height: 2.85rem;
    border: 1px solid rgba(23, 105, 224, 0.3);
    border-radius: 9px;
    background: rgba(23, 105, 224, 0.09);
    color: #155bbf;
    font: inherit;
    font-weight: 800;
    cursor: pointer;
  }

  .mobile-channel-browser-toggle svg {
    width: 1.2rem;
    height: 1.2rem;
  }

  [data-theme="dark"] .mobile-channel-browser-toggle {
    border-color: rgba(118, 170, 255, 0.4);
    background: rgba(23, 105, 224, 0.17);
    color: #a9caff;
  }

  .channel-browser-scrim {
    position: absolute;
    z-index: 17;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
    padding: 0;
    background: rgba(2, 8, 15, 0.68);
    cursor: pointer;
  }
}

@media (max-width: 980px) {
  .editorial-band {
    grid-template-columns: 1fr;
  }

  .editorial-principles {
    grid-template-columns: 1fr;
  }

  .site-footer-inner {
    grid-template-columns: 1fr;
  }

  .footer-links {
    justify-content: flex-start;
  }

  .toolbar {
    grid-template-columns: 1fr;
  }

  .filter-row {
    grid-template-columns: repeat(3, minmax(0, 1fr)) auto;
  }

  .player-panel {
    position: static;
    order: -1;
  }
}

@media (max-width: 700px) {
  #channelEditor {
    place-items: stretch;
    padding: 0;
  }

  #channelEditForm {
    width: 100%;
    max-height: 100dvh;
    border: 0;
    border-radius: 0;
  }

  .app-header {
    align-items: center;
    flex-wrap: wrap;
  }

  .header-actions {
    flex: 1 0 auto;
    justify-content: flex-end;
  }

  .brand {
    min-width: 0;
  }

  .brand small {
    display: none;
  }

  .shell {
    padding: 0.75rem;
  }

  .editorial-band {
    gap: 1.5rem;
    margin-top: 2rem;
    padding: 2rem 0;
  }

  .content-shell {
    padding: 1.25rem 1rem 2.5rem;
  }

  .breadcrumb {
    margin-bottom: 2rem;
  }

  .content-article h1 {
    font-size: clamp(2rem, 12vw, 2.75rem);
  }

  .site-footer-inner {
    padding: 1.5rem 1rem;
  }

  .toolbar {
    grid-template-columns: minmax(0, 1fr) var(--control-height);
    gap: 0.55rem;
    align-items: center;
    padding: 0.65rem;
  }

  .search-field {
    min-width: 0;
  }

  .search-field label {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
  }

  input[type="search"] {
    min-width: 0;
    padding: 0 0.72rem;
    font-size: 0.92rem;
  }

  .mobile-filter-toggle {
    display: inline-grid;
    width: var(--control-height);
    height: var(--control-height);
  }

  .mobile-filter-toggle[aria-expanded="true"] {
    border-color: color-mix(in srgb, var(--accent), var(--border) 30%);
    background: color-mix(in srgb, var(--accent), var(--panel) 86%);
    color: var(--accent);
  }

  .filter-row {
    position: absolute;
    top: calc(100% + 0.45rem);
    right: 0.65rem;
    left: 0.65rem;
    z-index: 30;
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.45rem;
    max-height: min(70vh, 24rem);
    overflow-y: auto;
    padding: 0.65rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--panel);
    box-shadow: var(--shadow);
  }

  body:not(.filters-open) .filter-row {
    display: none;
  }

  .filter-row label {
    width: 100%;
    gap: 0.35rem;
  }

  .filter-row .select-control {
    width: 100%;
  }

  .filter-actions {
    display: grid;
    grid-template-columns: repeat(6, minmax(2.3rem, 1fr));
    width: 100%;
  }

  .filter-actions:not(:has(.icon-button:not([hidden]))) {
    display: none;
  }

  .filter-actions .icon-button,
  .favorites-filter-button,
  .unverified-filter-button,
  .recently-verified-filter-button,
  .admin-claims-button {
    width: 100%;
    min-width: 0;
    height: calc(var(--control-height) - 0.44rem);
  }

  .filter-row .button {
    width: 100%;
    padding-inline: 0.75rem;
  }

  .filter-chips {
    gap: 0.42rem;
  }

  .filter-chip {
    min-height: 2.4rem;
  }

  .favorite-signin-prompt {
    right: 0.75rem;
    bottom: max(0.75rem, env(safe-area-inset-bottom));
    width: calc(100vw - 1.5rem);
  }

  .snapshot-success-notice {
    right: 0.75rem;
    bottom: max(0.75rem, env(safe-area-inset-bottom));
    width: calc(100vw - 1.5rem);
  }

  .language-menu summary {
    padding: 0 0.45rem;
  }

  .language-menu summary span:not(.visually-hidden) {
    min-width: 1.65rem;
    font-size: 0.86rem;
  }

  .language-popover {
    right: -3.1rem;
  }

  .recommendations-panel {
    padding: 0.75rem;
  }

  .recommendations-header {
    align-items: start;
    gap: 0.65rem;
  }

  .recommendations-header-actions {
    align-items: end;
    flex-direction: column;
    gap: 0.4rem;
  }

  .recommendations-reason {
    max-width: 11rem;
    font-size: 0.76rem;
    white-space: normal;
  }

  .recommendation-strip {
    grid-auto-columns: minmax(18rem, calc(100vw - 2.8rem));
  }

  .editor-grid {
    grid-template-columns: 1fr;
  }

  .channel-editor-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .channel-editor-actions .editor-action-spacer {
    display: none;
  }

  .metadata-review-panel-header,
  .metadata-review-overview,
  .metadata-review-inline-head {
    align-items: stretch;
    flex-direction: column;
  }

  .metadata-review-overview-actions,
  .metadata-review-inline-actions {
    display: grid;
    grid-template-columns: 1fr;
    width: 100%;
  }

  .metadata-review-overview-copy {
    flex: 0 1 auto;
    width: 100%;
  }

  .metadata-review-overview-actions .button,
  .metadata-review-inline-actions .small-button {
    width: 100%;
    min-height: 2.55rem;
  }

  .metadata-review-counts {
    align-items: stretch;
    display: grid;
    grid-template-columns: 1fr;
  }

  .metadata-review-conflict-comparison {
    grid-template-columns: 1fr;
  }

  .metadata-review-steps li {
    font-size: 0.61rem;
  }

  .metadata-review-steps li span {
    overflow-wrap: anywhere;
  }

  .metadata-review-notice {
    align-items: stretch;
    flex-direction: column;
  }
}

@media (max-width: 980px) {
  .tv-stage-details {
    grid-template-columns: 1fr;
  }

  .tv-stage-details .leaderboard-panel {
    min-height: 0;
  }
}

@media (max-width: 800px) {
  .tv-screen-frame {
    width: 100%;
  }

  .tv-stage .recommendations-panel {
    position: relative;
    right: auto;
    bottom: auto;
    left: auto;
    grid-template-columns: 12.5rem minmax(0, 1fr);
    margin-top: 0.55rem;
  }

  .tv-stage .recommendation-strip {
    grid-auto-columns: 8.5rem;
  }

  .stage-remote-toggle {
    display: inline-grid;
  }

  .tv-remote {
    position: fixed;
    top: auto;
    right: 0.75rem;
    bottom: max(0.75rem, env(safe-area-inset-bottom));
    left: 0.75rem;
    z-index: 100;
    display: grid;
    grid-template-columns: auto minmax(8.25rem, 1fr) auto;
    gap: 0.65rem;
    align-items: center;
    width: auto;
    max-height: none;
    overflow: visible;
    opacity: 0;
    transform: translateY(calc(100% + 1.5rem));
  }

  .tv-stage.remote-visible .tv-remote {
    opacity: 1;
    transform: translateY(0);
  }

  .tv-remote-head {
    display: grid;
    gap: 0.45rem;
    padding: 0;
    border: 0;
  }

  .tv-remote-head img {
    display: none;
  }

  .remote-dpad {
    grid-template-columns: repeat(3, 2.4rem);
    grid-template-rows: repeat(3, 2.4rem);
    margin: 0;
  }

  .remote-dpad .remote-button {
    width: 2.4rem;
    height: 2.4rem;
  }

  .remote-rockers {
    display: none;
  }

  .remote-quick-actions {
    grid-template-columns: repeat(2, 2.35rem);
    margin: 0;
  }
}

@media (max-width: 700px) {
  .tv-experience {
    margin-bottom: 2rem;
  }

  .channel-browser {
    position: fixed;
    top: auto;
    right: 0;
    bottom: 0;
    left: 0;
    width: 100%;
    height: min(76vh, 42rem);
    max-height: none;
    border-top: 1px solid rgba(148, 163, 184, 0.3);
    border-right: 0;
    border-radius: var(--radius) var(--radius) 0 0;
    padding-bottom: max(1rem, env(safe-area-inset-bottom));
    box-shadow: 0 -22px 60px rgba(0, 0, 0, 0.52);
    transform: translateY(105%);
  }

  body.channel-browser-open .channel-browser {
    transform: translateY(0);
  }

  .channel-browser-scrim {
    position: fixed;
    z-index: 17;
  }

  .channel-browser-facets {
    max-height: 9rem;
  }

  .tv-stage {
    padding: 0.45rem;
  }

  .community-panel {
    top: auto;
    right: 0;
    bottom: 0;
    left: 0;
    width: 100%;
    height: min(72vh, 38rem);
    border-right: 0;
    border-bottom: 0;
    border-left: 0;
    border-radius: var(--radius) var(--radius) 0 0;
    padding-bottom: env(safe-area-inset-bottom);
  }

  .community-review-list {
    grid-template-columns: 1fr;
  }

  .community-reviews-header {
    align-items: flex-start;
  }

  .tv-screen-frame {
    border-width: 3px;
  }

  .tv-stage-channel {
    left: 0.65rem;
    bottom: 3.6rem;
    max-width: calc(100% - 7rem);
  }

  .tv-stage-channel small,
  .tv-stage-channel span span {
    display: none;
  }

  .tv-stage-channel strong {
    font-size: 0.92rem;
  }

  .live-indicator {
    width: 0.52rem;
    height: 0.52rem;
  }

  .tv-stage-actions {
    right: 0.65rem;
    bottom: 3.35rem;
  }

  .stage-icon-button {
    width: 2.25rem;
    height: 2.25rem;
  }

  .tv-stage .recommendations-panel {
    grid-template-columns: 1fr;
    gap: 0.45rem;
    padding: 0.5rem;
  }

  .tv-stage .recommendations-header {
    align-items: center;
  }

  .tv-stage .recommendations-header-actions {
    flex-direction: row;
    align-items: center;
  }

  .tv-stage .recommendation-strip {
    grid-auto-columns: minmax(7.8rem, 40vw);
  }

  .stage-channel-button {
    height: 3.8rem;
  }

  .tv-stage-details {
    gap: 0.65rem;
    margin-top: 0.65rem;
  }

  .player-fullscreen-toggle {
    top: 0.5rem;
    right: 0.5rem;
  }
}

/* Flat channel menu — selected Product Design option 1 */
.tv-browse-layout {
  grid-template-columns: 20rem minmax(0, 1fr);
  transition: grid-template-columns 180ms ease;
}

.channel-browser {
  position: absolute;
  inset: 0 auto 0 0;
  width: 20rem;
  grid-template-rows: none;
  grid-auto-rows: max-content;
  align-content: start;
  max-height: none;
  overflow-x: hidden;
  overflow-y: auto;
  padding: 0 1rem 1rem;
  background: #081521;
  transition: opacity 150ms ease, padding 180ms ease, transform 180ms ease;
  scrollbar-color: rgba(118, 170, 255, 0.42) transparent;
  scrollbar-width: thin;
}

.tv-browse-layout > .tv-stage {
  grid-column: 2;
}

.channel-browser-header {
  grid-template-columns: minmax(0, 1fr) auto auto;
  min-height: 4.5rem;
  padding: 0;
  border-bottom: 1px solid rgba(148, 163, 184, 0.18);
}

.channel-browser-header h2 {
  font-size: 1.08rem;
}

.channel-browser-collapse {
  display: inline-grid;
  place-items: center;
  width: 2.45rem;
  height: 2.45rem;
  border: 1px solid rgba(148, 163, 184, 0.25);
  border-radius: 7px;
  background: rgba(17, 31, 47, 0.82);
  color: rgba(248, 250, 252, 0.82);
  cursor: pointer;
}

.channel-browser-collapse:hover,
.channel-browser-collapse:focus-visible {
  border-color: #76aaff;
  color: #fff;
}

.channel-browser-collapse svg {
  width: 1.1rem;
  height: 1.1rem;
}

.tv-browse-layout.sidebar-collapsed {
  grid-template-columns: 0 minmax(0, 1fr);
}

.tv-browse-layout.sidebar-collapsed .channel-browser {
  overflow: hidden;
  border-right: 0;
  padding-inline: 0;
  opacity: 0;
  pointer-events: none;
  transform: translateX(-100%);
}

.channel-browser-toggle {
  display: inline-grid;
  transition: border-color 150ms ease, background 150ms ease, color 150ms ease;
}

.channel-browser-toggle svg rect:last-child {
  transition: opacity 150ms ease;
}

.channel-browser-toggle[aria-expanded="false"] {
  border-color: rgba(255, 255, 255, 0.36);
  background: rgba(5, 13, 24, 0.72);
  color: #fff;
  box-shadow: none;
}

.channel-browser-toggle[aria-expanded="false"] svg rect:last-child {
  opacity: 0.34;
}

.channel-browser-toggle[aria-expanded="true"] {
  border-color: #60a5fa;
  background: rgba(37, 116, 171, 0.88);
  color: #fff;
  box-shadow: 0 0 0 1px rgba(96, 165, 250, 0.32);
}

.channel-browser-toggle[aria-expanded="true"] svg rect:last-child {
  opacity: 1;
}

.channel-browser-breadcrumbs {
  display: grid;
  gap: 0;
  overflow: visible;
  padding: 0;
}

.channel-browser-crumb {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.75rem;
  align-items: center;
  width: 100%;
  min-height: 3.45rem;
  border: 0;
  border-bottom: 1px solid rgba(148, 163, 184, 0.15);
  border-radius: 0;
  padding: 0 0.2rem;
  background: transparent;
  color: rgba(241, 245, 249, 0.82);
  font-size: 0.84rem;
  font-weight: 760;
  text-align: left;
}

.channel-browser-crumb:hover,
.channel-browser-crumb:focus-visible,
.channel-browser-crumb[data-current="true"] {
  border-color: rgba(118, 170, 255, 0.4);
  background: transparent;
  color: #8cbcff;
}

.channel-browser-crumb[data-current="true"] {
  box-shadow: inset 3px 0 0 #3b82f6;
  padding-left: 0.75rem;
}

.channel-browser-crumb-arrow {
  color: rgba(148, 163, 184, 0.68);
  font-size: 1.25rem;
  font-weight: 500;
}

.channel-browser-step {
  padding: 0.85rem 0 0.2rem;
  border: 0;
}

.channel-browser-step-heading {
  padding: 0 0.2rem 0.35rem;
}

.channel-browser-facets {
  gap: 0;
  max-height: 13rem;
  margin-top: 0.25rem;
  padding: 0;
}

.channel-browser-facet {
  min-height: 2.65rem;
  border: 0;
  border-bottom: 1px solid rgba(148, 163, 184, 0.12);
  border-radius: 0;
  padding: 0.35rem 0.2rem;
}

.channel-browser-facet:hover,
.channel-browser-facet:focus-visible,
.channel-browser-facet[data-active="true"] {
  border-color: rgba(118, 170, 255, 0.28);
  background: rgba(23, 105, 224, 0.13);
  color: #fff;
}

.channel-browser-results-heading {
  margin-top: 0.25rem;
  padding: 0.9rem 0.2rem 0.5rem;
  border-top: 1px solid rgba(148, 163, 184, 0.18);
}

.channel-browser-channels {
  gap: 0;
  overflow: visible;
  padding: 0;
}

.channel-browser-channel {
  grid-template-columns: minmax(0, 1fr) 2.1rem;
  gap: 0;
  border: 0;
  border-bottom: 1px solid rgba(148, 163, 184, 0.13);
  border-radius: 0;
  background: transparent;
}

.channel-browser-channel[data-active="true"] {
  border-color: rgba(118, 170, 255, 0.35);
  background: rgba(23, 105, 224, 0.15);
  box-shadow: inset 3px 0 0 #3b82f6;
}

.channel-browser-play {
  grid-template-columns: 3rem minmax(0, 1fr);
  min-height: 4rem;
  padding: 0.42rem 0.35rem;
}

.channel-browser-logo {
  width: 3rem;
  height: 3rem;
  border-radius: 5px;
}

.channel-browser-channel-name {
  font-size: 0.82rem;
}

.channel-browser-channel-favorite,
.channel-browser-channel-admin-action {
  width: 2.1rem;
  border-left: 0;
}

.tv-stage-channel {
  display: none;
}

.tv-stage-actions {
  right: calc(clamp(0.8rem, 2vw, 1.5rem) + 6.4rem);
  bottom: 3.8rem;
}

.player-corner-actions {
  top: auto;
  right: clamp(0.8rem, 2vw, 1.5rem);
  bottom: 3.8rem;
}

.tv-screen-frame:has(#smartCaptionToggle[hidden]) .tv-stage-actions {
  right: calc(clamp(0.8rem, 2vw, 1.5rem) + 3.2rem);
}

.directory-recommendations .recommendation-strip {
  grid-auto-columns: clamp(18rem, 24vw, 22rem);
}

.directory-recommendations .stage-channel-button {
  height: auto;
  min-height: 9rem;
  aspect-ratio: 16 / 9;
}

@media (max-width: 1100px) {
  .tv-browse-layout,
  .tv-browse-layout.sidebar-collapsed {
    grid-template-columns: minmax(0, 1fr);
  }

  .tv-browse-layout > .tv-stage {
    grid-column: 1;
  }

  .tv-browse-layout.sidebar-collapsed .channel-browser {
    width: min(21rem, calc(100% - 3rem));
    border-right: 1px solid rgba(148, 163, 184, 0.3);
    padding-inline: 1rem;
    opacity: 1;
    pointer-events: auto;
  }

}

@media (max-width: 700px) {
  .channel-browser {
    position: fixed;
    inset: auto 0 0;
    width: 100%;
    height: min(76vh, 42rem);
    padding: 0 1rem max(1rem, env(safe-area-inset-bottom));
  }

  .channel-browser-header {
    min-height: 4rem;
  }

  .channel-browser-play {
    min-height: 3.7rem;
  }

  .selected-copy:has(.player-caption-actions > :not([hidden])) {
    padding-top: 4.5rem;
    padding-right: 1rem;
  }

  .tv-stage-actions {
    right: calc(0.65rem + 5.5rem);
    bottom: 3.35rem;
  }

  .player-corner-actions {
    top: auto;
    right: 0.65rem;
    bottom: 3.35rem;
  }

  .player-corner-actions .stage-icon-button {
    width: 2.25rem;
    height: 2.25rem;
  }

  .directory-recommendations .recommendation-strip {
    grid-auto-columns: min(78vw, 18rem);
  }

  .directory-recommendations .stage-channel-button {
    min-height: 0;
  }

  .tv-screen-frame:has(#smartCaptionToggle[hidden]) .tv-stage-actions {
    right: calc(0.65rem + 2.75rem);
  }
}
@keyframes channel-skeleton-shimmer {
  from { background-position: 100% 0; }
  to { background-position: -100% 0; }
}

@media (prefers-reduced-motion: reduce) {
  .recommendation-skeleton {
    animation: none;
  }
}
