:root {
  --ink: #0b1012;
  --night: #10191d;
  --jade: #718f84;
  --mist: #c1cbc1;
  --paper: #e9e4d7;
  --gold: #c7a56a;
  --amber: #d48543;
  --line: rgb(225 232 216 / 16%);
  --content-font: 'YanShiYouRanXiaoKai', 'Noto Serif SC', Georgia, serif;
  --button-font: 'Noto Serif SC', Georgia, serif;
  --video-frame-inset: max(24px, calc(50vw - 100svh + 24px));
}

@font-face {
  font-family: 'YanShiYouRanXiaoKai';
  src: url('/assets/yanshi-youran-xiaokai.ttf') format('truetype');
  font-display: swap;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--ink); }
body { margin: 0; color: var(--paper); background: var(--ink); font-family: var(--content-font); }
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; }
button, .primary-button, .text-button { font-family: var(--button-font); }
.track-list .track-item { font-family: var(--content-font); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

.site-header { position: absolute; z-index: 10; inset: 0 0 auto; display: flex; justify-content: space-between; align-items: center; padding: 28px var(--video-frame-inset); }
.brand { display: inline-flex; flex-wrap: nowrap; gap: 7px; align-items: center; white-space: nowrap; font-size: 28px; letter-spacing: .28em; }
.brand-mark { display: inline-flex; flex: 0 0 42px; align-items: center; justify-content: center; width: 42px; height: 42px; overflow: hidden; border: 1px solid rgb(244 237 220 / 55%); border-radius: 50%; font-family: var(--content-font); font-size: 15px; line-height: 1; letter-spacing: .04em; white-space: nowrap; }
nav { display: flex; gap: clamp(16px, 3vw, 40px); color: rgb(245 239 226 / 78%); font-size: 23px; letter-spacing: .12em; }
nav a { display: inline-grid; justify-items: center; gap: 2px; white-space: nowrap; }
nav small { color: rgb(245 239 226 / 65%); font-family: Cinzel, var(--content-font); font-size: .52em; letter-spacing: .06em; }
nav a:hover { color: var(--gold); }

.hero-experience { position: relative; isolation: isolate; background: transparent; }
.hero-experience::before { content: ''; position: fixed; z-index: -2; inset: -40px; background: url('/assets/hero-desktop-backdrop.png') center / cover no-repeat; filter: blur(22px) saturate(.86) brightness(.84); transform: scale(1.06); pointer-events: none; }
.hero { position: relative; min-height: min(900px, 100svh); background: transparent; }
.hero-scroll-cue { display: none; }
.hero-art { position: fixed; z-index: -1; inset: 0; width: 100vw; height: 100svh; object-fit: contain; object-position: center; background: transparent; pointer-events: none; user-select: none; }
.hero-title-overlay { position: fixed; z-index: -1; inset: 0; width: 100vw; height: 100svh; object-fit: contain; object-position: center; pointer-events: none; user-select: none; }
.hero-title-overlay--mobile { display: none; }
.hero-content { padding: clamp(220px, 32vh, 360px) var(--video-frame-inset) 100px; max-width: calc(470px + var(--video-frame-inset) + var(--video-frame-inset)); }
.hero-glass, .nav-glass, .channel-glass, .album-glass { border: 1px solid rgb(255 248 229 / 36%); background: rgb(53 48 40 / 45%); box-shadow: 0 16px 42px rgb(24 20 14 / 22%); backdrop-filter: blur(1px); -webkit-backdrop-filter: blur(1px); }
.player-shell, .track-list { border: 1px solid rgb(255 248 229 / 36%); background: rgb(40 36 30 / 82%); box-shadow: 0 16px 42px rgb(24 20 14 / 22%); backdrop-filter: blur(1px); -webkit-backdrop-filter: blur(1px); color: #fffdf7; }
.hero-glass { width: min(100%, 470px); padding: clamp(22px, 3vw, 34px); }
.nav-glass { padding: 12px 16px; }
.eyebrow, .section-kicker { color: var(--gold); font-family: Cinzel, var(--content-font); font-size: 10px; letter-spacing: .22em; line-height: 1.6; }
.hero-copy { margin: 24px 0 36px; color: rgb(239 235 220 / 82%); font-size: clamp(27px, calc(1.8vw + 10px), 34px); line-height: 1.65; letter-spacing: .12em; }
.hero-line, .hero-translation { display: block; }
.hero-line--after { margin-top: 14px; }
.hero-translation { color: rgb(239 235 220 / 68%); font-family: Cinzel, var(--content-font); font-size: .38em; letter-spacing: .1em; line-height: 1.55; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 24px; }
.primary-button { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 12px 21px; border: 1px solid rgb(232 213 173 / 52%); background: rgb(193 151 84 / 20%); color: #fff7e7; font-size: 18px; letter-spacing: .1em; transition: background .25s, transform .25s, border-color .25s; }
.bilingual-button { flex-direction: column; gap: 3px; line-height: 1.15; text-align: center; }
.bilingual-button .translation { font-family: Cinzel, var(--content-font); font-size: .58em; letter-spacing: .08em; }
.primary-button:hover { background: rgb(199 165 106 / 36%); border-color: var(--gold); transform: translateY(-2px); }
.text-button { font-size: 18px; letter-spacing: .08em; color: rgb(248 245 235 / 85%); }
.bilingual-inline { display: inline-grid; grid-template-columns: auto auto auto; align-items: baseline; column-gap: 6px; }
.bilingual-inline small { color: rgb(248 245 235 / 62%); font-family: Cinzel, var(--content-font); font-size: .62em; letter-spacing: .08em; }
.bilingual-inline b { margin-left: 2px; color: var(--gold); font-weight: 400; }
.channel-stamp { position: absolute; z-index: 1; left: var(--video-frame-inset); bottom: -32px; display: grid; gap: 5px; padding: 13px 16px 13px 13px; border-left: 1px solid var(--gold); color: rgb(247 239 216 / 92%); text-shadow: 0 2px 16px rgb(0 0 0 / 88%); }
.channel-stamp > span, .channel-stamp b { font-family: Cinzel, var(--content-font); font-size: 9px; font-weight: 400; letter-spacing: .1em; }.channel-stamp strong { display: grid; gap: 2px; font-size: 24px; font-weight: 600; letter-spacing: .06em; }.channel-stamp strong small { color: rgb(247 239 216 / 72%); font-family: Cinzel, var(--content-font); font-size: .42em; letter-spacing: .12em; }.channel-stamp b { color: #e1ba75; }.channel-stamp:hover { color: #fff4d9; }
.hero-credit { position: absolute; right: var(--video-frame-inset); bottom: 31px; margin: 0; padding: 13px 10px; color: rgb(235 231 216 / 78%); font-family: var(--content-font); font-size: 20px; letter-spacing: .2em; writing-mode: vertical-rl; }

.album-section, .listen-section, .licensing-section { padding: clamp(80px, 12vw, 160px) var(--video-frame-inset); }
.album-section { position: relative; background: transparent; }
.album-section .section-heading { width: fit-content; max-width: min(100%, 720px); margin-bottom: 52px; padding: clamp(18px, 3vw, 30px); border: 1px solid rgb(255 248 229 / 36%); background: rgb(40 36 30 / 82%); box-shadow: 0 16px 42px rgb(24 20 14 / 22%); text-shadow: 0 3px 20px rgb(0 0 0 / 55%); backdrop-filter: blur(1px); -webkit-backdrop-filter: blur(1px); }
.section-heading { margin-bottom: 52px; }
.section-heading h2 { margin: 12px 0 0; color: #f0e8d6; font-size: clamp(47px, calc(6vw + 5px), 83px); font-weight: 500; letter-spacing: .08em; }
.section-title-translation { display: block; margin-top: 10px; color: rgb(255 252 244 / 82%); font-family: Cinzel, var(--content-font); font-size: .26em; font-weight: 400; letter-spacing: .14em; line-height: 1.35; text-shadow: 0 2px 10px rgb(0 0 0 / 55%); }
.section-heading > p:last-child { margin: 9px 0 0; color: rgb(255 252 244 / 80%); font-family: Cinzel, serif; font-size: 12px; letter-spacing: .16em; text-shadow: 0 2px 10px rgb(0 0 0 / 55%); }
.section-copy-translation { display: block; margin-top: 9px; font-family: Cinzel, var(--content-font); font-size: .58em; letter-spacing: .08em; line-height: 1.5; }

.player-shell { position: sticky; top: 22px; z-index: 6; padding: 20px clamp(18px, 3vw, 38px); }
.player-topline { display: flex; gap: 9px; align-items: center; padding-bottom: 16px; border-bottom: 1px solid var(--line); color: rgb(255 252 244 / 88%); font-size: 21px; letter-spacing: .12em; }
.player-topline #player-status { flex: 1 1 auto; min-width: 0; overflow-wrap: anywhere; }
.player-topline #track-count { flex: 0 0 auto; margin-left: auto; white-space: nowrap; }
.pulse-dot { width: 7px; height: 7px; border-radius: 999px; background: var(--gold); box-shadow: 0 0 0 0 rgb(199 165 106 / 0%); }
[data-ready='true'] .pulse-dot { animation: pulse 1.7s infinite; }
.now-playing { display: grid; grid-template-columns: 56px minmax(0, 1fr) auto; gap: 18px; align-items: center; padding: 20px 0 16px; }
.track-number { color: var(--gold); font-family: Cinzel, serif; font-size: 17px; letter-spacing: .1em; }
.track-details { min-width: 0; }
.current-title { margin: 0; font-size: clamp(32px, calc(3vw + 10px), 44px); letter-spacing: .08em; min-width: 0; overflow-wrap: break-word; }
.current-english { margin: 5px 0 0; color: rgb(255 252 244 / 78%); font-family: Cinzel, serif; font-size: 10px; letter-spacing: .12em; min-width: 0; overflow-wrap: break-word; }
.transport { display: flex; align-items: center; gap: 10px; }
.icon-button, .play-button { border: 0; color: var(--paper); background: transparent; }
.icon-button { width: 44px; height: 44px; font-size: 25px; font-family: Georgia, serif; opacity: .72; }
.play-button { display: grid; place-items: center; width: 45px; height: 45px; border: 1px solid rgb(234 222 189 / 75%); border-radius: 50%; font-size: 14px; }
.play-button:hover, .icon-button:hover { color: var(--gold); border-color: var(--gold); }
.timeline-row { display: grid; grid-template-columns: 38px minmax(0, 1fr) 38px; align-items: center; gap: 10px; color: rgb(255 252 244 / 80%); font-family: Cinzel, serif; font-size: 9px; }
input[type='range'] { width: 100%; accent-color: var(--gold); cursor: pointer; }
.next-up { display: flex; gap: 10px; align-items: baseline; padding-top: 16px; color: rgb(255 252 244 / 78%); font-size: 21px; }
.next-up strong { color: var(--paper); font-size: 23px; letter-spacing: .08em; }.next-up em { font-family: Cinzel, serif; font-size: 9px; font-style: normal; letter-spacing: .1em; }
.track-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 30px; border-top: 1px solid var(--line); }
.track-item { display: grid; grid-template-columns: 35px minmax(0, 1fr) 25px; gap: 10px; align-items: center; min-height: 84px; padding: 13px 14px; border: 0; border-bottom: 1px solid var(--line); background: transparent; color: inherit; text-align: left; }
.track-item:nth-child(odd) { border-right: 1px solid var(--line); }.track-item:hover, .track-item[aria-current='true'] { background: rgb(199 165 106 / 10%); }
.track-item[aria-current='true'] .track-index, .track-item[aria-current='true'] .track-name { color: var(--gold); }
.track-index { color: rgb(255 252 244 / 72%); font-family: Cinzel, serif; font-size: 10px; }.track-name { display: block; font-size: 26px; letter-spacing: .07em; }.track-english { display: block; margin-top: 4px; color: rgb(255 252 244 / 74%); font-family: Cinzel, serif; font-size: 8px; letter-spacing: .08em; }.track-arrow { color: var(--gold); font-size: 18px; opacity: 0; }.track-item:hover .track-arrow, .track-item[aria-current='true'] .track-arrow { opacity: 1; }

.listen-section, .licensing-section, footer { position: relative; z-index: 1; }
.listen-section { background: #d9d0bd; color: #172023; }.listen-section .section-heading { text-align: center; }.listen-section .section-kicker { color: #805f33; }.listen-section .section-heading h2 { color: #1c2425; }.listen-section .section-title-translation { color: #55615c; }.listen-section .section-heading > p:last-child { color: #55615c; font-family: var(--content-font); font-size: 24px; letter-spacing: .05em; }.narrow { max-width: 600px; margin-inline: auto; }
/* ── Platform Grid (Listen section) ── */

/* The platform rollout fine-print and the icon-credit attribution rules were
   removed 2026-07-29 together with the 22 non-YouTube cards and the CC BY-SA
   icons that required crediting. */

.platform-grid {
  display: grid;
  grid-template-columns: min(240px, 100%);
  justify-content: center;
  gap: 10px;
  max-width: 920px;
  margin: 32px auto 0;
}

.platform-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-width: 0;
  min-height: 80px;
  padding: 14px 8px;
  border: 1px solid rgb(28 36 37 / 20%);
  border-radius: 6px;
  background: transparent;
  color: #5a635e;
  text-decoration: none;
  transition: color 200ms cubic-bezier(0.22, 1, 0.36, 1),
              border-color 200ms cubic-bezier(0.22, 1, 0.36, 1),
              transform 200ms cubic-bezier(0.22, 1, 0.36, 1);
}

.platform-card:hover {
  color: var(--gold);
  border-color: var(--gold);
  transform: translateY(-2px);
}

.platform-card svg {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
}

.platform-card-label {
  font-family: Cinzel, 'Noto Serif SC', sans-serif;
  font-size: 10px;
  letter-spacing: .04em;
  text-align: center;
  line-height: 1.25;
  white-space: nowrap;
}

/* ── Reduced Motion ── */

@media (prefers-reduced-motion: reduce) {
  .platform-card {
    transition: none;
  }

  .platform-card:hover {
    transform: none;
  }
}

.licensing-section { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(40px, 10vw, 150px); background: linear-gradient(125deg, #171c19, #0b1012); }.licensing-section h2 { margin: 12px 0 0; font-size: clamp(45px, calc(5vw + 5px), 77px); font-weight: 500; letter-spacing: .07em; }.licensing-copy { max-width: 520px; }.licensing-copy > p:first-child { margin: 0 0 30px; color: rgb(224 230 218 / 78%); font-size: 26px; line-height: 2; }.fine-print { margin-top: 18px !important; color: rgb(220 226 215 / 42%); font-size: 21px; line-height: 1.9; }
footer { display: flex; justify-content: space-between; gap: 20px; padding: 25px clamp(24px, 5vw, 80px); background: #090d0e; color: rgb(216 224 213 / 48%); font-family: var(--content-font); font-size: 19px; letter-spacing: .12em; }

@keyframes pulse { 70% { box-shadow: 0 0 0 7px rgb(199 165 106 / 0%); } 100% { box-shadow: 0 0 0 0 rgb(199 165 106 / 0%); } }

/* ── Album Switcher (tablist) ── */

.album-switcher {
  display: flex;
  gap: 12px;
  margin-bottom: 24px;
  flex-wrap: nowrap;
}

.album-tab {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgb(40 36 30 / 78%);
  color: #fffdf7;
  cursor: pointer;
  min-height: 56px;
  text-align: left;
  transition: opacity 200ms cubic-bezier(0.22, 1, 0.36, 1),
              border-color 200ms cubic-bezier(0.22, 1, 0.36, 1),
              transform 200ms cubic-bezier(0.22, 1, 0.36, 1),
              background 200ms cubic-bezier(0.22, 1, 0.36, 1),
              color 200ms cubic-bezier(0.22, 1, 0.36, 1);
}

.album-tab:not([aria-selected="true"]) .album-tab-cover {
  filter: saturate(0.65);
}

.album-tab:not([aria-selected="true"]) .album-tab-zh {
  color: rgb(255 252 244 / 90%);
}

.album-tab:not([aria-selected="true"]) .album-tab-en {
  color: rgb(255 252 244 / 78%);
}

.album-tab:hover {
  border-color: var(--gold);
  background: rgb(40 36 30 / 84%);
  color: #fffdf7;
}

.album-tab[aria-selected="true"] {
  border-color: var(--gold);
  border-left: 3px solid var(--gold);
  background: rgb(40 36 30 / 88%);
  color: #fffdf7;
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgb(0 0 0 / 18%);
}

.album-tab[aria-selected="true"] .album-tab-cover {
  filter: none;
}

.album-tab:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

.album-tab-cover {
  width: 56px;
  height: 56px;
  border-radius: 4px;
  object-fit: cover;
  flex-shrink: 0;
}

.album-tab-text {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.album-tab-zh {
  font-size: 21px;
  letter-spacing: .06em;
  white-space: nowrap;
  text-shadow: 0 2px 10px rgb(0 0 0 / 55%);
}

.album-tab-en {
  font-family: Cinzel, var(--content-font);
  font-size: 9px;
  letter-spacing: .1em;
  white-space: nowrap;
  text-shadow: 0 2px 10px rgb(0 0 0 / 55%);
}

.album-tab-badge {
  flex-shrink: 0;
  margin-left: auto;
  padding: 2px 7px;
  border-radius: 999px;
  background: var(--amber);
  color: #fff;
  font-family: var(--button-font);
  font-size: 10px;
  letter-spacing: .06em;
  line-height: 1.4;
}

/* ── Per-album Platform Links ── */

.album-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: flex-start;
  margin-bottom: 30px;
}

.album-link {
  display: flex;
  align-items: center;
  flex: 0 1 320px;
  max-width: 360px;
  min-width: 0;
  min-height: 64px;
  padding: 14px 20px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgb(40 36 30 / 82%);
  color: #fffdf7;
  gap: 14px;
  transition: opacity 200ms cubic-bezier(0.22, 1, 0.36, 1),
              border-color 200ms cubic-bezier(0.22, 1, 0.36, 1),
              transform 200ms cubic-bezier(0.22, 1, 0.36, 1),
              background 200ms cubic-bezier(0.22, 1, 0.36, 1);
}

.album-link:hover {
  border-color: var(--gold);
  background: rgb(199 165 106 / 15%);
  transform: translateY(-2px);
}

.album-link-label {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1 1 auto;
  min-width: 0;
}

.album-link-label strong {
  font-size: 17px;
  font-weight: 500;
  letter-spacing: .06em;
  white-space: nowrap;
  text-shadow: 0 2px 10px rgb(0 0 0 / 55%);
}

.album-link-label small {
  font-family: Cinzel, var(--content-font);
  font-size: 10px;
  letter-spacing: .08em;
  color: rgb(255 252 244 / 80%);
  text-shadow: 0 2px 10px rgb(0 0 0 / 55%);
}

.album-link b {
  flex: 0 0 auto;
  margin-left: auto;
  color: var(--gold);
  font-size: 18px;
  font-weight: 400;
}

.album-link[data-state="soon"] {
  opacity: 0.45;
  cursor: not-allowed;
}

.album-link[data-state="soon"]:hover {
  transform: none;
  border-color: var(--line);
  background: rgb(40 36 30 / 82%);
}

/* ── Reduced Motion ── */

@media (prefers-reduced-motion: reduce) {
  .album-tab,
  .album-link {
    transition: none;
  }

  .album-tab[aria-selected="true"] {
    transform: none;
  }

  .album-link:hover {
    transform: none;
  }
}

/* ── Mobile (≤700px) general ── */

@media (max-width: 700px) { :root { --video-frame-inset: 24px; }.site-header { padding-top: 20px; }.brand { gap: 5px; font-size: 25px; letter-spacing: .16em; }.brand-mark { flex-basis: 38px; width: 38px; height: 38px; font-size: 14px; } nav { gap: 10px; font-size: 16px; letter-spacing: .03em; } nav a { gap: 3px; } nav small { font-size: .5em; letter-spacing: .02em; }.hero-content { padding-top: 140px; max-width: 620px; }.hero-glass { padding: 18px; }.eyebrow { font-size: 8px; letter-spacing: .14em; }.hero-copy { margin: 14px 0 18px; font-size: 20px; line-height: 1.45; }.hero-line--after { margin-top: 8px; }.hero-translation { font-size: .44em; }.hero-actions { gap: 8px; }.primary-button { min-height: 0; padding: 9px 12px; font-size: 15px; }.bilingual-inline { column-gap: 4px; font-size: 13px; }.hero-art, .hero-title-overlay { object-position: 56% center; }.hero-title-overlay--desktop { display: none; }.hero-title-overlay--mobile { display: block; }.channel-stamp { bottom: 77px; max-width: 250px; color: rgb(247 239 216 / 92%); }.channel-stamp strong { font-size: 20px; }.hero-credit { left: var(--video-frame-inset); writing-mode: initial; right: var(--video-frame-inset); bottom: 20px; }.section-title-translation { font-size: .3em; }.licensing-copy > p:first-child { font-size: 21px; line-height: 1.75; }.player-topline { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; padding-bottom: 12px; }.player-topline #track-count { grid-column: 2; grid-row: 1; justify-self: end; margin-left: 0; }.player-topline #player-status { grid-column: 1 / -1; grid-row: 2; padding-top: 7px; font-size: 14px; letter-spacing: .06em; line-height: 1.45; }.now-playing { grid-template-columns: 40px minmax(0, 1fr); }.transport { grid-column: 2; }.timeline-row { grid-column: 1 / -1; }.track-list { grid-template-columns: 1fr; }.track-item:nth-child(odd) { border-right: 0; }.licensing-section { grid-template-columns: 1fr; gap: 35px; } footer { flex-direction: column; }.next-up em { display: none; }
  /* mobile album switcher */
  .album-switcher { position: relative; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; -ms-overflow-style: none; gap: 8px; margin-top: 24px; margin-bottom: 20px; padding-bottom: 4px; }
  .album-switcher::after { content: ''; position: absolute; right: 0; top: 0; bottom: 0; width: 32px; background: linear-gradient(90deg, transparent, rgb(11 16 18 / 55%)); pointer-events: none; }
  .album-switcher::-webkit-scrollbar { display: none; }
  .album-tab { flex: 0 0 auto; scroll-snap-align: start; min-height: 56px; padding: 8px 12px; gap: 8px; }
  .album-tab-cover { width: 44px; height: 44px; }
  .album-tab-zh { font-size: 17px; }
  .album-tab-en { font-size: 8px; }
  .album-tab-badge { font-size: 9px; padding: 1px 6px; }
  /* mobile album links */
  .album-links { flex-direction: column; gap: 10px; margin-bottom: 24px; }
  .album-link { flex: 1 1 auto; max-width: none; min-height: 56px; padding: 10px 14px; }
  .album-link-label strong { font-size: 16px; }
  .album-link b { font-size: 16px; }
  /* mobile footer + licensing fine-print at very narrow widths */
  footer { font-size: 15px; gap: 8px; }
  .fine-print { font-size: 17px; line-height: 1.7; }
  .licensing-copy > p:first-child { font-size: 18px; }
  .licensing-copy { max-width: none; }
}

/* ── Platform Grid responsive ── */
/* Single YouTube card since 2026-07-29 — column count is fixed at one and
   centred in the base rule, so the old 4/3/2-column breakpoints are gone.
   min(240px, 100%) keeps it inside the viewport down to 320px. */

@media (max-width: 700px) {
  .platform-grid {
    gap: 6px;
    margin-top: 24px;
  }

  .platform-card {
    min-height: 68px;
    padding: 10px 4px;
    gap: 4px;
  }

  .platform-card svg {
    width: 24px;
    height: 24px;
  }

  .platform-card-label {
    font-size: 8px;
  }
}

/* ── Mobile Hero layout (kept as a dedicated block per test contract) ── */

@media (max-width: 700px) {
  .hero {
    min-height: auto;
    padding-top: 100svh;
  }

  .hero-scroll-cue {
    position: absolute;
    right: var(--video-frame-inset);
    top: calc(100svh - 52px);
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: rgb(247 239 216 / 82%);
    font-family: Cinzel, var(--content-font);
    font-size: 9px;
    letter-spacing: .14em;
    text-shadow: 0 2px 12px rgb(0 0 0 / 72%);
  }

  .hero-scroll-cue span:first-child {
    font-size: 18px;
    line-height: 1;
    animation: hero-scroll-cue 1.8s ease-in-out infinite;
  }

  .hero-content {
    max-width: none;
    padding: 36px var(--video-frame-inset) 0;
  }

  .hero-content .hero-glass {
    width: 100%;
  }

  .channel-stamp,
  .hero-credit {
    position: static;
    left: auto;
    right: auto;
    bottom: auto;
    writing-mode: initial;
  }

  .channel-stamp {
    width: fit-content;
    max-width: calc(100% - (var(--video-frame-inset) * 2));
    margin: 32px var(--video-frame-inset) 0;
  }

  .hero-credit {
    width: fit-content;
    max-width: calc(100% - (var(--video-frame-inset) * 2));
    margin: 32px var(--video-frame-inset) 48px;
  }

  #hero-details { scroll-margin-top: 24px; }
}

@keyframes hero-scroll-cue {
  50% { transform: translateY(5px); }
}

/* ── Channel section — YouTube in-site (2026-08-08) ─────────────────── */
.channel-player-shell { border: 1px solid rgb(255 248 229 / 36%); background: rgb(40 36 30 / 82%); box-shadow: 0 16px 42px rgb(24 20 14 / 22%); backdrop-filter: blur(1px); -webkit-backdrop-filter: blur(1px); padding: clamp(14px, 2vw, 22px); margin-bottom: 28px; }
.channel-frame { position: relative; aspect-ratio: 16 / 9; background: #000; }
.channel-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.channel-nowline { display: flex; gap: 10px; align-items: center; margin-top: 12px; color: #fffdf7; font-family: var(--content-font); font-size: .95rem; }
.channel-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; }
.channel-card { border: 1px solid rgb(255 248 229 / 36%); background: rgb(40 36 30 / 70%); color: #fffdf7; text-align: left; padding: 0 0 12px; cursor: pointer; transition: transform .18s ease, border-color .18s ease; }
.channel-card:hover { transform: translateY(-3px); border-color: var(--gold); }
.channel-card[aria-current="true"] { border-color: var(--gold); box-shadow: 0 0 0 1px var(--gold); }
.channel-card img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; display: block; }
.channel-card-title { margin: 10px 12px 4px; font-family: var(--content-font); font-size: .95rem; line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.channel-card-meta { display: block; margin: 0 12px; color: var(--mist); font-size: .78rem; letter-spacing: .04em; }
.channel-live-badge { display: inline-block; margin: 10px 0 0 12px; padding: 2px 10px; border: 1px solid var(--amber); color: #ffd9b0; font-size: .75rem; letter-spacing: .14em; }
.channel-live-thumb { display: grid; place-items: center; aspect-ratio: 16 / 9; background: linear-gradient(160deg, #2a2620, var(--night)); color: var(--gold); font-family: var(--content-font); font-size: 1.05rem; letter-spacing: .1em; }
.channel-more { margin-top: 28px; }
@media (max-width: 700px) { .channel-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 10px; } }

/* ── Channel v2: 直播多路 + 分组 + 灯箱 (2026-08-08) ─────────────────── */
.channel-lives { display: grid; gap: 16px; margin-bottom: 34px; }
.channel-lives[data-count="2"], .channel-lives[data-count="3"] { grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); }
.channel-live-player { margin-bottom: 0; }
.channel-live-title { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.channel-loading { color: var(--mist); font-family: var(--content-font); }
.channel-group { margin-bottom: 38px; }
.channel-group-title { margin: 0 0 14px; padding: 10px 16px; width: fit-content; border: 1px solid rgb(255 248 229 / 36%); background: rgb(40 36 30 / 82%); color: #fffdf7; font-family: var(--content-font); font-size: 1.15rem; letter-spacing: .06em; backdrop-filter: blur(1px); -webkit-backdrop-filter: blur(1px); }
.channel-group-title span { display: block; margin-top: 2px; color: var(--mist); font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; }
.channel-thumb-wrap { position: relative; display: block; }
.channel-duration { position: absolute; right: 8px; bottom: 8px; padding: 1px 7px; background: rgb(11 16 18 / 82%); color: #fffdf7; font-size: .74rem; letter-spacing: .06em; }
.channel-lightbox { position: fixed; inset: 0; z-index: 60; display: grid; place-items: center; padding: clamp(12px, 4vw, 48px); background: rgb(11 16 18 / 86%); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.channel-lightbox[hidden] { display: none; }
.channel-lightbox-inner { position: relative; width: min(1100px, 100%); border: 1px solid rgb(255 248 229 / 36%); background: rgb(40 36 30 / 92%); padding: clamp(12px, 2vw, 20px); box-shadow: 0 26px 70px rgb(0 0 0 / 55%); }
.channel-lightbox-close { position: absolute; top: -14px; right: -14px; width: 38px; height: 38px; border: 1px solid var(--gold); background: var(--night); color: var(--paper); font-size: 1rem; cursor: pointer; }
.channel-lightbox .channel-nowline { margin-top: 12px; }
