/* Yingxu layout only; existing theme/design tokens remain the source of colors and typography. */
.topbar{height:auto;min-height:83px;display:flex;align-items:center;gap:26px;flex-wrap:wrap;padding-block:18px}.topbar .brand{flex:none;gap:10px}.topbar .brand>span{display:flex;flex-direction:column;line-height:1.3}.topbar .brand small{font-family:inherit;letter-spacing:.02em;font-size:12px;font-weight:400;color:var(--muted);margin-top:5px;text-transform:none}.topbar .brand-logo{width:42px;height:42px;object-fit:contain}.topbar .top-nav{position:static;display:flex!important;align-items:center;gap:20px;flex:1;min-width:0;overflow:auto;white-space:nowrap;margin:0;border:0;background:transparent}.topbar .top-nav a{padding:8px 0;flex:none}.topbar .search-form{flex:0 1 280px}.topbar .header-actions{flex:none}.yx-categories{margin:10px 0 22px;padding:8px 22px;border:1px solid var(--line);border-radius:14px;background:var(--surface)}.yx-category-row{display:grid;grid-template-columns:90px minmax(0,1fr);gap:16px;align-items:center;padding:16px 0}.yx-category-row+.yx-category-row{border-top:1px solid var(--line)}.yx-category-parent{font-weight:700;color:var(--accent);align-self:center}.yx-category-children{display:grid;grid-template-columns:repeat(8,minmax(0,1fr));gap:12px 16px;align-items:center}.yx-category-children a{font-size:.9em;overflow-wrap:anywhere;line-height:1.6}.yx-category-children a:hover{color:var(--accent)}.yx-cooperation{margin:18px 0 26px}.yx-cooperation[hidden]{display:none}.yx-cooperation h2{font-size:16px;font-weight:700;margin:0 0 12px;line-height:1.5}.yx-cooperation-links{display:flex;flex-wrap:wrap;gap:9px;justify-content:flex-start}.yx-cooperation-links a{display:inline-flex;align-items:center;justify-content:center;padding:9px 17px;border:1px solid var(--line);background:var(--surface);border-radius:8px;line-height:1.5;font-size:14px;transition:background .15s,border-color .15s}.yx-cooperation-links a:hover{border-color:var(--accent);background:var(--raised)}.yx-cooperation-2{border-top:1px solid var(--line);padding-top:20px;margin-top:34px}.yx-cooperation-2 .yx-cooperation-links{gap:12px 22px}.yx-cooperation-2 a{padding:0;background:none;border:0;border-radius:0}.yx-link-color-0{color:#deb57d}.yx-link-color-1{color:#87bdd3}.yx-link-color-2{color:#a1c6a1}.yx-link-color-3{color:#dca0ad}.yx-link-color-4{color:#b4a8dc}.yx-link-color-5{color:#d7ba93}html[data-theme=light] .yx-link-color-0{color:#86531b}html[data-theme=light] .yx-link-color-1{color:#17627e}html[data-theme=light] .yx-link-color-2{color:#32693c}html[data-theme=light] .yx-link-color-3{color:#974359}html[data-theme=light] .yx-link-color-4{color:#6b4c9c}html[data-theme=light] .yx-link-color-5{color:#855d30}
@media(max-width:1050px){.topbar{gap:16px}.topbar .search-form{flex-basis:220px}.yx-category-row{grid-template-columns:80px minmax(0,1fr)}}
@media(max-width:700px){body{padding-bottom:0}.topbar{display:grid;grid-template-columns:auto minmax(0,1fr);gap:13px 16px;padding:14px 16px}.topbar .brand{grid-column:1;grid-row:1;font-size:17px}.topbar .brand small{font-size:10px}.topbar .brand-logo{width:34px;height:34px}.topbar .top-nav{grid-column:2;grid-row:1;align-self:center;gap:16px;padding:0;overflow:auto;max-width:none;flex-wrap:nowrap}.topbar .top-nav a{font-size:13px}.topbar .search-form{grid-column:1/3;grid-row:2;display:flex;width:100%;margin:0}.topbar .header-actions{grid-column:1/3;grid-row:3;justify-content:flex-end;gap:12px}.topbar .search-spacer{display:none}.yx-categories{padding:3px 12px;border-radius:10px;margin:8px 0 19px}.yx-category-row{grid-template-columns:56px minmax(0,1fr);gap:10px;padding:13px 0}.yx-category-parent{font-size:13px}.yx-category-children{grid-template-columns:repeat(4,minmax(0,1fr));gap:10px 8px}.yx-category-children a{font-size:12px}.yx-cooperation{margin:16px 0 21px}.yx-cooperation h2{font-size:14px;margin-bottom:10px}.yx-cooperation-links{gap:8px}.yx-cooperation-links a{padding:7px 12px;font-size:13px}.yx-cooperation-2 a{padding:0}.yx-cooperation-2 .yx-cooperation-links{gap:10px 18px}}
.topbar>.brand{max-width:300px;min-width:0}.topbar>.brand>span:last-child{display:flex;max-width:none;min-width:0;letter-spacing:0}.topbar .brand small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;line-height:1.4}.yx-site-name{font-weight:800;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.topbar .brand>.brand-logo{flex-shrink:0}@media(max-width:700px){.topbar>.brand{max-width:185px}.topbar>.brand>span:last-child{max-width:140px}}

/* Use the existing eight design colors for UI surfaces. Media itself keeps its
   image/video colors; neutral overlays keep captions legible on those images. */
:root[data-yx-palette="1"] {
  --tint: var(--raised);
  --button-hover: var(--raised);
  --accent-hover: var(--accent);
  --empty-line: var(--line);
  --rail-bg: var(--surface);
  --feature-bg: var(--surface);
  --rank-bg: var(--raised);
  --drawer-bg: var(--surface);
  --mobile-nav-bg: var(--surface);
  /* Capture root tokens before overriding a descendant's local variables. */
  --yx-palette-accent: var(--accent);
  --yx-palette-ink: var(--accent-ink);
  --yx-palette-line: var(--line);
  --yx-palette-raised: var(--raised);
  --yx-palette-surface: var(--surface);
  --yx-palette-text: var(--text);
  --yx-palette-muted: var(--muted);
}
:root[data-yx-palette="1"] :is(.hero,.card-picture,.player-screen) {
  --accent: var(--yx-palette-accent);
  --accent-ink: var(--yx-palette-ink);
  --accent-hover: var(--yx-palette-accent);
}
:root[data-yx-palette="1"] .hero {
  --line: var(--yx-palette-line);
  --raised: var(--yx-palette-raised);
  --button-hover: var(--yx-palette-raised);
}
:root[data-yx-palette="1"] .hero:not([data-banner-style="3"], [data-banner-style="4"]) .hero-copy {
  background: var(--surface);
}
:root[data-yx-palette="1"] .hero::before {
  clip-path: inset(0 round 8px);
}
:root[data-yx-palette="1"] .hero[data-banner-style="2"] .hero-slide {
  box-shadow: 0 8px 18px #00000014;
}
:root[data-yx-palette="1"] .card-play {
  background: var(--accent);
  color: var(--accent-ink);
}
:root[data-yx-palette="1"] .toast {
  background: var(--raised);
  color: var(--text);
  border: 1px solid var(--line);
}
:root[data-yx-palette="1"] .empty svg {
  color: var(--muted);
}
:root[data-yx-palette="1"] .featured-open {
  background: var(--yx-palette-accent);
  color: var(--yx-palette-ink);
}
:root[data-yx-palette="1"] .featured-kicker {
  color: var(--yx-palette-accent);
}

