:root {
  --bg-0: #07090d;
  --bg-1: #0a0c10;
  --bg-2: #111520;
  --bg-3: #161b22;
  --bg-4: #1f2633;
  --border: #252d3a;
  --border-strong: #3a4455;
  --blue: #3b82f6;
  --blue-dark: #2563eb;
  --blue-soft: rgba(59, 130, 246, .12);
  --blue-glow: rgba(59, 130, 246, .34);
  --red: #f85149;
  --green: #22c55e;
  --yellow: #e3b341;
  --purple: #a855f7;
  --text-1: #e6edf3;
  --text-2: #c9d1d9;
  --text-3: #8b949e;
  --shadow: 0 18px 60px rgba(0, 0, 0, .42);
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --header-h: 68px;
  --font-body: "Noto Sans SC", Inter, system-ui, sans-serif;
  --font-head: "Space Grotesk", "Noto Sans SC", Inter, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text-2);
  font-family: var(--font-body);
  background:
    radial-gradient(ellipse 70% 42% at 50% -20%, rgba(59, 130, 246, .12), transparent 62%),
    linear-gradient(rgba(255, 255, 255, .018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .018) 1px, transparent 1px),
    var(--bg-1);
  background-size: 100% 100%, 32px 32px, 32px 32px, auto;
  overflow-x: hidden;
}

body.no-footer .site-footer {
  display: none;
}

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

img {
  display: block;
  max-width: 100%;
}

button,
input,
select {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  height: var(--header-h);
  border-bottom: 1px solid var(--border);
  background: rgba(10, 12, 16, .92);
  backdrop-filter: blur(16px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(1440px, 94vw);
  height: var(--header-h);
  margin: 0 auto;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.brand-logo {
  width: auto;
  height: 34px;
  object-fit: contain;
}

.brand-cn {
  flex: 0 0 auto;
  padding: 3px 8px;
  border: 1px solid rgba(59, 130, 246, .35);
  border-radius: 999px;
  color: var(--blue);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 5px;
}

.site-nav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 38px;
  padding: 8px 13px;
  border-radius: var(--radius-sm);
  color: var(--text-3);
  font-size: 14px;
  font-weight: 700;
  transition: background .18s ease, color .18s ease, transform .18s ease;
}

.site-nav a:hover,
.site-nav a.active {
  color: var(--text-1);
  background: var(--blue-soft);
}

.site-nav a.active {
  color: var(--blue);
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg-3);
  color: var(--text-1);
}

.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  display: block;
  width: 19px;
  height: 2px;
  margin: 0 auto;
  border-radius: 999px;
  background: currentColor;
  content: "";
  transition: transform .18s ease, opacity .18s ease;
}

.nav-toggle span::before {
  transform: translateY(-7px);
}

.nav-toggle span::after {
  transform: translateY(5px);
}

.site-header.nav-open .nav-toggle span {
  background: transparent;
}

.site-header.nav-open .nav-toggle span::before {
  background: var(--text-1);
  transform: translateY(0) rotate(45deg);
}

.site-header.nav-open .nav-toggle span::after {
  background: var(--text-1);
  transform: translateY(-2px) rotate(-45deg);
}

.app-shell {
  width: min(1440px, 94vw);
  min-height: calc(100vh - var(--header-h));
  margin: 0 auto;
  padding: 34px 0 58px;
}

.loading-screen {
  display: grid;
  min-height: 50vh;
  place-items: center;
  gap: 14px;
  color: var(--text-3);
}

.spinner {
  width: 44px;
  height: 44px;
  border: 4px solid rgba(255, 255, 255, .1);
  border-top-color: var(--blue);
  border-radius: 50%;
  animation: spin .85s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, .9fr);
  gap: 26px;
  align-items: stretch;
  padding: 34px 0 22px;
}

.hero-copy {
  display: flex;
  min-height: 390px;
  flex-direction: column;
  justify-content: center;
  padding: 42px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at 18% 0%, rgba(59, 130, 246, .18), transparent 34%),
    linear-gradient(135deg, rgba(22, 27, 34, .94), rgba(10, 12, 16, .88));
  box-shadow: var(--shadow);
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  margin-bottom: 20px;
  padding: 7px 14px;
  border: 1px solid rgba(59, 130, 246, .42);
  border-radius: 999px;
  color: var(--blue);
  background: var(--blue-soft);
  font-size: 13px;
  font-weight: 800;
}

.hero h1 {
  max-width: 780px;
  margin: 0;
  color: var(--text-1);
  font-family: var(--font-head);
  font-size: clamp(38px, 5vw, 72px);
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1.02;
  text-wrap: balance;
}

.hero h1 span {
  color: var(--blue);
}

.hero p {
  max-width: 680px;
  margin: 20px 0 0;
  color: var(--text-3);
  font-size: clamp(16px, 2vw, 20px);
  line-height: 1.8;
  text-wrap: pretty;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  padding: 11px 18px;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 14px;
  font-weight: 800;
  line-height: 1;
  transition: background .18s ease, border-color .18s ease, color .18s ease, transform .18s ease, box-shadow .18s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  color: white;
  border-color: var(--blue);
  background: var(--blue);
  box-shadow: 0 8px 26px rgba(59, 130, 246, .25);
}

.btn-primary:hover {
  background: var(--blue-dark);
}

.btn-secondary {
  color: var(--text-2);
  border-color: var(--border);
  background: var(--bg-3);
}

.btn-secondary:hover {
  color: var(--text-1);
  border-color: var(--border-strong);
  background: var(--bg-4);
}

.btn-sm {
  min-height: 34px;
  padding: 8px 12px;
  font-size: 13px;
}

.hero-panel {
  display: grid;
  gap: 12px;
}

.metric-card,
.category-card,
.watch-card,
.ad-slot,
.support-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: rgba(22, 27, 34, .94);
}

.metric-card {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 14px;
  align-items: center;
  padding: 18px;
}

.metric-icon,
.category-icon {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border: 1px solid rgba(59, 130, 246, .38);
  border-radius: 999px;
  color: var(--blue);
  background: var(--blue-soft);
  font-size: 20px;
}

.metric-card strong {
  display: block;
  color: var(--text-1);
  font-family: var(--font-head);
  font-size: 24px;
  line-height: 1;
}

.metric-card span {
  display: block;
  margin-top: 5px;
  color: var(--text-3);
  font-size: 13px;
}

.ad-slot {
  position: relative;
  display: grid;
  min-height: 96px;
  place-items: center;
  overflow: hidden;
  padding: 16px;
  border-style: dashed;
  color: var(--text-3);
  background:
    linear-gradient(135deg, rgba(59, 130, 246, .09), transparent 48%),
    rgba(17, 21, 32, .82);
  text-align: center;
}

.ad-slot::before {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(90deg, rgba(255,255,255,.028) 1px, transparent 1px);
  background-size: 18px 18px;
  content: "";
  pointer-events: none;
}

.ad-content {
  position: relative;
  z-index: 1;
}

.ad-content strong {
  display: block;
  color: var(--text-1);
  font-size: 14px;
}

.ad-content span {
  display: block;
  margin-top: 5px;
  font-size: 12px;
}

.ad-wide {
  min-height: 104px;
  margin: 18px 0 24px;
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin: 12px 0 34px;
}

.category-card {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 14px;
  align-items: center;
  padding: 20px;
  cursor: pointer;
  transition: border-color .2s ease, background .2s ease, transform .2s ease, box-shadow .2s ease;
}

.category-card:hover {
  border-color: var(--blue);
  background: rgba(59, 130, 246, .08);
  box-shadow: 0 12px 34px rgba(59, 130, 246, .12);
  transform: translateY(-3px);
}

.category-card h3 {
  margin: 0 0 4px;
  color: var(--text-1);
  font-size: 17px;
}

.category-card p {
  margin: 0;
  color: var(--text-3);
  font-size: 13px;
}

.section {
  margin-top: 44px;
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.section-head h2 {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  color: var(--text-1);
  font-family: var(--font-head);
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.1;
}

.section-head p {
  margin: 7px 0 0;
  color: var(--text-3);
  font-size: 14px;
}

.section-count {
  padding: 3px 8px;
  border: 1px solid rgba(59, 130, 246, .38);
  border-radius: 999px;
  color: var(--blue);
  background: var(--blue-soft);
  font-size: 13px;
}

.filters-row {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
}

.filter-select,
.search-input {
  min-height: 42px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  outline: none;
  color: var(--text-2);
  background: var(--bg-3);
  font-size: 14px;
}

.filter-select {
  min-width: 168px;
  padding: 0 12px;
}

.search-input {
  flex: 1;
  min-width: 180px;
  padding: 0 14px 0 38px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%238b949e' viewBox='0 0 20 20'%3E%3Cpath d='M12.9 14.32a8 8 0 1 1 1.41-1.41l4.25 4.25a1 1 0 0 1-1.42 1.42l-4.24-4.25zM14 8A6 6 0 1 0 2 8a6 6 0 0 0 12 0z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: 13px center;
  background-size: 16px;
}

.filter-select:focus,
.search-input:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px var(--blue-glow);
}

.events-row {
  margin-bottom: 30px;
}

.events-row-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.events-row-head h3 {
  margin: 0;
  color: var(--text-1);
  font-size: 16px;
}

.row-cards {
  display: flex;
  gap: 11px;
  overflow-x: auto;
  padding: 3px 2px 12px;
  scroll-snap-type: x mandatory;
}

.row-cards::-webkit-scrollbar {
  height: 8px;
}

.row-cards::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: var(--border-strong);
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 16px;
}

.stream-card {
  display: flex;
  min-width: 190px;
  max-width: 220px;
  flex: 0 0 200px;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--bg-3);
  scroll-snap-align: start;
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.card-grid .stream-card {
  min-width: 0;
  max-width: none;
  flex: initial;
}

.stream-card:hover {
  border-color: var(--border-strong);
  box-shadow: var(--shadow);
  transform: translateY(-4px);
}

.card-thumb {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: #05070a;
}

.card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(.9);
  transition: transform .35s ease, filter .25s ease;
}

.stream-card:hover .card-thumb img {
  transform: scale(1.06);
  filter: saturate(1.08);
}

.card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 8px;
  padding: 10px;
}

.card-title {
  min-height: 38px;
  color: var(--text-1);
  font-size: 14px;
  font-weight: 800;
  line-height: 1.34;
  overflow-wrap: anywhere;
}

.card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.pill,
.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 24px;
  padding: 3px 8px;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--text-3);
  background: rgba(255, 255, 255, .045);
  font-size: 12px;
  font-weight: 800;
}

.badge-live {
  color: var(--red);
  border-color: rgba(248, 81, 73, .4);
  background: rgba(248, 81, 73, .12);
  box-shadow: 0 0 18px rgba(248, 81, 73, .12);
}

.badge-live::before {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--red);
  content: "";
  animation: pulse 1.2s infinite;
}

@keyframes pulse {
  50% {
    opacity: .4;
    transform: scale(.8);
  }
}

.badge-upcoming {
  color: var(--yellow);
  border-color: rgba(227, 179, 65, .34);
  background: rgba(227, 179, 65, .1);
}

.badge-replay {
  color: var(--green);
  border-color: rgba(34, 197, 94, .34);
  background: rgba(34, 197, 94, .1);
}

.badge-channel {
  color: var(--purple);
  border-color: rgba(168, 85, 247, .34);
  background: rgba(168, 85, 247, .1);
}

.card-cta {
  margin-top: auto;
}

.btn-watch {
  width: 100%;
  min-height: 36px;
  font-size: 13px;
}

.empty-state,
.error-state,
.not-found {
  display: grid;
  min-height: 360px;
  place-items: center;
  padding: 42px 18px;
  border: 1px dashed var(--border);
  border-radius: var(--radius-md);
  color: var(--text-3);
  background: rgba(17, 21, 32, .72);
  text-align: center;
}

.empty-state h3,
.error-state h2,
.not-found h2 {
  margin: 0 0 8px;
  color: var(--text-1);
}

.watch-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 22px;
  align-items: start;
}

.watch-main {
  display: grid;
  gap: 16px;
}

.watch-card {
  overflow: hidden;
}

.watch-card-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px;
  border-bottom: 1px solid var(--border);
}

.watch-card-head h1 {
  margin: 0;
  color: var(--text-1);
  font-family: var(--font-head);
  font-size: clamp(22px, 3vw, 34px);
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.watch-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.player-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
}

.player-wrap iframe,
.player-wrap .player-placeholder {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.player-placeholder {
  display: grid;
  place-items: center;
  padding: 24px;
  color: var(--text-3);
  text-align: center;
}

.player-placeholder .btn {
  margin: 14px 4px 0;
}

.player-quick-actions {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
  max-width: calc(100% - 20px);
  pointer-events: none;
}

.player-quick-actions .btn {
  min-height: 34px;
  background: rgba(7, 9, 13, .82);
  border-color: rgba(255, 255, 255, .16);
  box-shadow: 0 10px 28px rgba(0, 0, 0, .34);
  backdrop-filter: blur(10px);
  pointer-events: auto;
}

.stream-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 20px;
  border-top: 1px solid var(--border);
}

.source-controls {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.stream-select {
  max-width: min(420px, 48vw);
  min-height: 36px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-2);
  background: var(--bg-2);
}

.source-list {
  display: grid;
  gap: 8px;
  padding: 12px;
}

.source-button {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 42px;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-2);
  background: transparent;
  cursor: pointer;
  text-align: left;
}

.source-button.active,
.source-button:hover {
  color: var(--blue);
  border-color: var(--blue);
  background: var(--blue-soft);
}

.info-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 20px;
}

.info-logo {
  width: 66px;
  height: 66px;
  flex: 0 0 auto;
  object-fit: contain;
  border-radius: 10px;
  background: var(--bg-2);
  padding: 5px;
}

.watch-side {
  position: sticky;
  top: calc(var(--header-h) + 18px);
  display: grid;
  gap: 14px;
}

.side-card {
  padding: 18px;
}

.side-card h3 {
  margin: 0 0 10px;
  color: var(--text-1);
  font-size: 16px;
}

.side-card p {
  margin: 0;
  color: var(--text-3);
  font-size: 14px;
  line-height: 1.7;
}

.theater .site-header,
.theater .site-footer {
  display: none;
}

.theater .app-shell {
  width: 100vw;
  min-height: 100vh;
  padding: 0;
}

.theater .watch-layout {
  display: block;
}

.theater .watch-side,
.theater .watch-main > .watch-card:not(:first-child),
.theater .ad-slot {
  display: none;
}

.theater .watch-card {
  height: 100vh;
  border: 0;
  border-radius: 0;
}

.theater .watch-card-head {
  display: none;
}

.theater .player-wrap {
  height: calc(100vh - 64px);
  aspect-ratio: auto;
}

.theater .stream-toolbar {
  height: 64px;
  background: rgba(10, 12, 16, .96);
}

.mv-page {
  display: grid;
  height: calc(100vh - var(--header-h) - 28px);
  grid-template-rows: auto 1fr;
  gap: 10px;
}

.mv-toolbar {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 52px;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--bg-3);
}

.mv-toolbar .spacer {
  flex: 1;
}

.mv-grid {
  display: grid;
  gap: 8px;
  min-height: 0;
}

.view-slot {
  position: relative;
  min-height: 180px;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: #000;
}

.view-slot iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.view-controls {
  position: absolute;
  top: 8px;
  right: 8px;
  left: 8px;
  z-index: 2;
  display: flex;
  gap: 8px;
}

.view-controls select {
  flex: 1;
  min-width: 0;
  padding: 6px 8px;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: var(--radius-sm);
  color: var(--text-1);
  background: rgba(7, 9, 13, .88);
  backdrop-filter: blur(8px);
  font-size: 12px;
}

.view-controls button {
  width: 34px;
  height: 34px;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: var(--radius-sm);
  color: var(--text-1);
  background: rgba(7, 9, 13, .88);
  cursor: pointer;
}

.view-label {
  position: absolute;
  bottom: 8px;
  left: 8px;
  right: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
  max-width: calc(100% - 16px);
  padding: 6px 9px;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: var(--radius-sm);
  color: var(--text-2);
  background: rgba(7, 9, 13, .82);
  backdrop-filter: blur(8px);
  font-size: 12px;
  overflow: hidden;
}

.view-label img {
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
  border-radius: 4px;
  object-fit: cover;
}

.view-label span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.support-hero {
  display: grid;
  gap: 18px;
  max-width: 980px;
  margin: 34px auto 28px;
  text-align: center;
}

.support-hero h1 {
  margin: 0;
  color: var(--text-1);
  font-family: var(--font-head);
  font-size: clamp(34px, 5.2vw, 60px);
  line-height: 1.04;
  text-wrap: balance;
}

.support-hero p {
  margin: 0;
  color: var(--text-3);
  font-size: 17px;
  line-height: 1.8;
}

.support-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 22px;
}

.support-card {
  padding: 22px;
}

.support-card i {
  color: var(--blue);
  font-size: 24px;
}

.support-card h3 {
  margin: 16px 0 8px;
  color: var(--text-1);
}

.support-card p {
  margin: 0;
  color: var(--text-3);
  line-height: 1.7;
}

.site-footer {
  border-top: 1px solid var(--border);
  background: rgba(22, 27, 34, .9);
}

.footer-inner {
  display: grid;
  gap: 14px;
  width: min(1440px, 94vw);
  margin: 0 auto;
  padding: 32px 0;
  text-align: center;
}

.footer-inner strong {
  color: var(--text-1);
}

.footer-inner p {
  margin: 6px 0 0;
  color: var(--text-3);
  font-size: 13px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
  color: var(--text-3);
  font-size: 13px;
}

.footer-links a:hover {
  color: var(--blue);
}

.footer-note {
  max-width: 700px;
  margin: 0 auto !important;
}

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

  .watch-side {
    position: static;
  }
}

@media (max-width: 780px) {
  .nav-toggle {
    display: block;
  }

  .site-nav {
    position: absolute;
    top: var(--header-h);
    right: 0;
    left: 0;
    display: grid;
    gap: 5px;
    max-height: 0;
    overflow: hidden;
    padding: 0 16px;
    border-bottom: 1px solid var(--border);
    background: rgba(10, 12, 16, .98);
    transition: max-height .22s ease, padding .22s ease;
  }

  .site-header.nav-open {
    height: calc(var(--header-h) + 153px);
  }

  .site-header.nav-open .site-nav {
    max-height: 260px;
    padding: 12px 16px 16px;
  }

  .site-nav a {
    width: 100%;
  }

  .app-shell {
    width: min(100% - 22px, 1440px);
    padding-top: 20px;
  }

  .hero-copy {
    min-height: 0;
    padding: 28px 22px;
  }

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

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

  .section-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .filters-row,
  .stream-toolbar,
  .info-row,
  .mv-toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .source-controls {
    align-items: stretch;
    flex-direction: column;
  }

  .player-quick-actions {
    top: auto;
    right: 8px;
    bottom: 8px;
    left: 8px;
  }

  .player-quick-actions .btn {
    flex: 1;
    min-width: 0;
  }

  .stream-select {
    max-width: 100%;
  }

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

  .row-cards {
    padding-bottom: 14px;
  }

  .stream-card {
    min-width: 172px;
    flex-basis: 172px;
  }

  .mv-page {
    height: auto;
    min-height: calc(100vh - var(--header-h));
  }

  .mv-grid {
    min-height: 70vh;
  }
}

@media (max-width: 460px) {
  .brand-logo {
    max-width: 170px;
    height: auto;
  }

  .brand-cn {
    display: none;
  }

  .hero h1 {
    font-size: 34px;
  }

  .hero p {
    font-size: 15px;
  }

  .metric-card,
  .category-card {
    grid-template-columns: 44px 1fr;
    padding: 16px;
  }

  .metric-icon,
  .category-icon {
    width: 44px;
    height: 44px;
  }

  .watch-card-head {
    flex-direction: column;
    padding: 16px;
  }
}
