#home-topics {
  --topic-ink: #f7f3ee;
  --topic-dim: #b5adb1;
  --topic-accent: #ff443e;
  --topic-edge: rgb(255 255 255 / 12%);
  color: var(--topic-ink);
  font-family: "PingFang SC", "Microsoft YaHei", sans-serif;
  line-height: 1.4;
}
#home-topics *, #home-topics *::before, #home-topics *::after { box-sizing: border-box; }
#home-topics :is(button, a) { font: inherit; color: inherit; text-decoration: none; -webkit-tap-highlight-color: transparent; }
#home-topics button { appearance: none; padding: 0; border: 0; background: none; cursor: pointer; }
#home-topics :focus-visible { outline: 2px solid var(--topic-accent); outline-offset: 2px; }
.topic-hub { padding: 0 0 20px; }
.topic-hub > .topic-section { margin-inline: 13px; }
.topic-lead { display: block; padding: 4px; }
.topic-art { display: block; overflow: hidden; background: #332f35; }
.topic-art img { display: block; width: 100%; height: 100%; object-fit: cover; }
.topic-art img[hidden] { display: none; }
.topic-banner { position: relative; aspect-ratio: 358 / 199; border-radius: 16px 16px 6px 6px; }
/* Show only the poster, without the narrow white margin of the supplied image. */
.topic-banner img { position: absolute; width: 105.03%; height: 110.9%; left: -2.23%; top: -6.53%; object-fit: fill; }
.topic-banner:has(.topic-banner-caption)::after {
  content: ''; position: absolute; inset: 48% 0 0;
  background: linear-gradient(18deg, rgb(0 0 0 / .78), transparent 74%); pointer-events: none;
}
.topic-banner-caption {
  position: absolute; z-index: 1; bottom: 11px; left: 13px; right: 13px;
  color: #fff; font-size: clamp(12px, 4vw, 16px); font-weight: 750; line-height: 1.25;
  white-space: nowrap; text-shadow: 0 1px 3px #000;
}
.topic-section { min-width: 0; }
.topic-hub .topic-section { padding: 17px 0 2px; }
.topic-hub .topic-section + .topic-section { margin-top: 12px; border-top: 1px solid var(--topic-edge); }
.topic-heading { display: flex; align-items: baseline; justify-content: space-between; margin: 0 0 10px; }
.topic-heading h3 { margin: 0; font-size: 16px; font-weight: 730; letter-spacing: .02em; }
#home-topics .topic-view-all {
  display: inline-flex; align-items: center; gap: 4px; min-height: 29px; margin-block: -4px; padding: 0 6px 0 0;
  color: inherit; border-radius: 3px; letter-spacing: inherit;
}
.topic-view-all::after { content: ''; width: 8px; height: 8px; border: solid currentColor; border-width: 2px 2px 0 0; transform: translateY(-1px) rotate(45deg); }
#home-topics .topic-view-all:is(:hover, :focus-visible) { color: var(--topic-accent); }
.topic-category { padding: 0 14px 20px; }
.topic-category-heading { position: sticky; z-index: 3; top: 0; display: flex; align-items: center; gap: 8px; min-height: 57px; background: var(--night-search-surface, #201e26); }
.topic-category-heading h2 { margin: 0; font-size: 21px; letter-spacing: .02em; }
.topic-event-scope { position: relative; flex: none; margin-inline-start: -5px; }
#home-topics .topic-event-scope-toggle {
  display: grid; place-items: center; width: 30px; height: 32px; border-radius: 50%;
}
#home-topics .topic-event-scope-toggle:is(:hover, :focus-visible, [aria-expanded="true"]) { color: var(--topic-accent); }
.topic-event-scope-icon {
  display: grid; place-items: center; width: 16px; height: 16px; border: 1px solid currentColor; border-radius: 50%;
  font-size: 11px; font-weight: 700; line-height: 1;
}
.topic-event-scope-tip {
  position: absolute; inset-inline-start: 100%; top: 50%; transform: translateY(-50%);
  padding: 6px 9px; border: 1px solid var(--night-border, #ffffff1f); border-radius: 8px;
  color: var(--night-ink, #f7f3ee); background: var(--night-surface, #26232a); box-shadow: 0 4px 14px #0003;
  font-size: 12px; white-space: nowrap;
}
.topic-grid.topic-events { row-gap: 14px; }
.topic-event { min-width: 0; margin: 0; }
.topic-event img { display: block; width: 100%; height: auto; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 7px; background: #29282e; }
.topic-event-caption { display: grid; gap: 2px; margin-top: 5px; overflow-wrap: anywhere; }
#home-topics .topic-event { text-align: left; width: 100%; }
#home-topics .topic-event:hover strong { color: var(--topic-accent); }
.topic-event strong { font-size: 12px; font-weight: 700; line-height: 1.4; }
.topic-category .topic-event strong { font-size: 14px; }
.topic-event-caption > span { font-size: 11px; font-weight: 400; line-height: 1.48; color: var(--topic-dim); }
.topic-shortcuts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin: 12px 13px 0; }
#home-topics .topic-shortcut {
  display: flex; align-items: center; justify-content: center; gap: 9px; padding: 10px; min-height: 44px;
  border: 1px solid rgb(255 255 255 / 28%); border-radius: 16px; background: rgb(255 255 255 / 5%); font-size: 13px; font-weight: 650;
}
#home-topics .topic-shortcut:is(:hover,:focus-visible) { border-color: rgb(255 255 255 / 50%); }
.topic-shortcut svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.65; stroke-linecap: round; stroke-linejoin: round; }
.topic-new-albums { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; align-items: start; margin-top: 10px; }
.topic-new-albums > .topic-intro { grid-column: 1 / -1; }
#home-topics .topic-new-album {
  display: grid; grid-template-columns: minmax(0, 1fr); gap: 7px;
  width: 100%; padding: 5px; border-radius: 10px; text-align: left;
}
#home-topics .topic-new-album:is(:hover, :focus-visible) { background: rgb(255 255 255 / 8%); }
.topic-new-album-art { position: relative; width: 100%; aspect-ratio: 1; border-radius: 8px; }
.topic-new-album-art img { position: absolute; inset: 0; }
.topic-new-album-copy { display: grid; min-width: 0; gap: 2px; font-size: 13px; }
.topic-new-album-copy strong { overflow-wrap: anywhere; }
.topic-new-album-copy > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 11px; color: var(--topic-dim); }
.topic-event-header { display: grid; grid-template-columns: minmax(0, 33.6%) minmax(0, 1fr); align-items: start; gap: 8px; padding: 4px 6px 16px 10px; }
.topic-event-cover { position: relative; width: 100%; aspect-ratio: 3 / 4; border-radius: 11px; }
.topic-event-cover img { position: absolute; inset: 0; }
.topic-event-copy h2 {
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden;
  margin: 0 0 9px; font-size: clamp(14px, 3.8vw, 18px); line-height: 1.32; overflow-wrap: anywhere;
}
#home-topics .topic-event-ticket {
  display: flex; align-items: center; justify-content: center; width: min(132px, 100%); min-height: 34px;
  margin-top: 6px; padding: 4px 14px; border-radius: 8px; background: var(--night-red, #d4141c);
  color: #fff; font-size: 12px; font-weight: 750;
}
#home-topics a.topic-event-ticket:is(:hover, :focus-visible) { background: #b60e17; }
#home-topics .topic-event-ticket:disabled { background: #ffffff12; color: var(--topic-dim); cursor: default; }
.topic-event-price { margin: -3px 0 8px; color: var(--topic-dim); font-size: 12px; font-weight: 400; line-height: 1.55; }
#home-topics .topic-event-copy .topic-person { gap: 6px; min-height: 0; padding-inline: 0; }
.topic-event-copy .topic-person-art { flex: 0 0 27px; width: 27px; height: 27px; }
.topic-event-copy .topic-person-name { font-size: 12px; font-weight: 400; }
.topic-event-dates { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 5px; }
#home-topics .topic-event-stop {
  display: grid; align-content: center; gap: 2px; min-width: 0; min-height: 36px; box-sizing: border-box;
  padding: 4px 2px; background: #100e12; border: 1px solid var(--topic-edge); border-radius: 12px;
  font-size: 11px; line-height: 1.25; text-align: center;
}
.topic-event-stop-label { display: flex; align-items: baseline; justify-content: center; gap: 3px; min-width: 0; font-size: 12px; white-space: nowrap; }
.topic-event-stop time { flex: none; font-weight: 700; font-variant-numeric: tabular-nums; }
.topic-event-city { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.topic-event-status { color: var(--topic-dim); font-size: 10px; }
#home-topics a.topic-event-stop:is(:hover,:focus-visible) { background: #29232a; }
#home-topics .topic-event-stop:disabled { background: #2b292e; color: #b2adb5; cursor: default; }
.topic-works-label { margin: 14px 0 9px; color: var(--topic-dim); font-size: 11px; font-weight: 500; }
.topic-event-works-empty { margin-block: 5px 0; color: var(--topic-dim); }
.topic-guest-art { aspect-ratio: 2 / 3; border-radius: 10px; }
.topic-guest-art img { object-fit: contain; }
#home-topics .topic-grid > .topic-guest-link { display: grid; gap: 4px; text-align: left; border-radius: 10px; }
.topic-guest-links { display: flex; flex-wrap: wrap; gap: 1px 8px; margin-top: 4px; }
#home-topics .topic-guest-link:hover .topic-person-name { color: var(--topic-accent); }
.topic-counter { font: 600 11px/1.2 Consolas, "Courier New", monospace; font-variant-numeric: tabular-nums; }
.topic-counter { color: var(--topic-dim); }
.topic-grid { display: grid; gap: 13px 9px; align-items: start; }
.topic-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.topic-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
#home-topics :is(.topic-tile, .topic-work) {
  display: flex; flex-direction: column; gap: 6px; min-width: 0;
  text-align: left; border-radius: 8px;
}
.topic-tile-art, .topic-work-art, .topic-pending-art { width: 100%; aspect-ratio: 1; border-radius: 9px; }
.topic-duo { display: flex; }
.topic-duo img { width: 50%; min-width: 0; object-fit: cover; }
.topic-tile-name, .topic-work-copy strong {
  display: -webkit-box; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 2;
  overflow-wrap: anywhere; font-weight: 640; font-size: 12px; line-height: 1.45;
}
.topic-event-albums .topic-tile-name { font-size: 13px; }
.topic-pending-art {
  display: grid; place-items: center; color: #a69ba3; font-size: 11px; letter-spacing: .14em;
  background: #302d34;
}
.is-pending .topic-tile-name { color: var(--topic-dim); }
.topic-detail { padding: 0 6px 20px; }
.topic-hero { position: relative; isolation: isolate; overflow: hidden; border-radius: 16px; }
.topic-detail:is([data-topic-kind="projects"], [data-topic-kind="awards"], [data-topic-kind="shows"]) .topic-hero { border-radius: 16px 16px 0 0; }
.topic-hero-art { aspect-ratio: 1 / 1; }
.topic-detail:is([data-topic-kind="projects"], [data-topic-kind="awards"], [data-topic-kind="shows"]) .topic-hero-art { aspect-ratio: 4 / 3; }
.topic-hero::after { content: ''; position: absolute; inset: 0; pointer-events: none; background: var(--cover-top-shade), linear-gradient(180deg, transparent 30%, #100d104a 57%, #100d10ee); }
.topic-hero-caption { position: absolute; inset: auto 17px 17px; color: #fff; z-index: 1; }
.topic-hero-navigation {
  position: sticky; top: 0; z-index: 3; display: flex; gap: 8px; align-items: center;
  min-height: 48px; margin-bottom: -48px; padding-inline: 9px;
  background: linear-gradient(#0b090ec2, #0b090e00); border-radius: 16px 16px 0 0;
  color: #fff; text-shadow: 0 1px 4px #000; pointer-events: none;
}
.topic-hero-navigation strong { font-size: 14px; font-weight: 750; }
.topic-hero-navigation .topic-back i { filter: drop-shadow(0 1px 2px #000); }
.topic-hero h2 { margin: 4px 0 0; font-size: clamp(24px, 4vw, 32px); line-height: 1.14; letter-spacing: -.025em; overflow-wrap: anywhere; }
.topic-detail[data-topic-kind="awards"] .topic-hero-caption { container-type: inline-size; }
.topic-detail[data-topic-kind="awards"] .topic-hero h2 {
  font-size: 19px;
  font-size: clamp(16px, 7.4cqi, 28px);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
#home-topics .topic-back {
  display: inline-flex; align-items: center; justify-content: center; flex: 0 0 30px; min-height: 38px; padding: 0;
  border-radius: 8px; color: #fff; font-size: 13px; font-weight: 650; pointer-events: auto;
}
.topic-back i { display: block; width: 12px; height: 12px; border-left: 2px solid; border-bottom: 2px solid; transform: translateX(2px) rotate(45deg); }
.topic-detail-body { padding: 0 10px; }
.topic-intro { margin: 15px 0; font-size: 13px; color: #e0dade; line-height: 1.72; }
.topic-project-biography { white-space: pre-line; overflow-wrap: anywhere; }
.topic-section > .topic-project-biography { margin: 0; }
.topic-hero-fans { margin: 4px 0 0; font-weight: 650; font-size: 12px; }
.topic-detail[data-topic-kind="producers"] .topic-hero-caption { inset-inline: 10px; }
.topic-detail[data-topic-kind="producers"] .topic-hero-caption > :is(h2, p) { margin-inline: 7px; }
.topic-detail[data-topic-kind="projects"] .topic-project-actions { margin: 12px 0 15px; }
.topic-detail[data-topic-kind="shows"] .topic-project-actions { margin-bottom: 15px; }
#home-topics .topic-project-actions button:disabled { opacity: .48; cursor: default; }
.topic-actions { display: flex; flex-wrap: wrap; gap: 6px; margin: 13px 0; }
#home-topics .topic-action { display: inline-flex; align-items: center; min-height: 34px; padding: 5px 12px;
  border: 1px solid var(--topic-edge); border-radius: 20px; color: #fff; font-size: 12px; font-weight: 600; background: #ffffff0f; }
.topic-project-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 14px; }
#home-topics .topic-project-actions .topic-action { justify-content: center; gap: 5px; padding-inline: 5px; border-radius: 10px; }
.topic-detail:is([data-topic-kind="projects"], [data-topic-kind="producers"], [data-topic-kind="shows"]) .topic-project-actions { gap: 10px; }
#home-topics .topic-detail:is([data-topic-kind="projects"], [data-topic-kind="producers"], [data-topic-kind="shows"]) .topic-project-actions .topic-action {
  min-height: 42px; padding: 11px 8px; gap: 6px; border-radius: 11px;
}
#home-topics .topic-detail:is([data-topic-kind="projects"], [data-topic-kind="producers"]) .topic-project-relations { border-color: #ffffff70; }
#home-topics .topic-project-actions .topic-project-home { background: var(--night-red); border-color: transparent; }
#home-topics .topic-project-actions .topic-project-home:hover { background: #b60e17; }
.topic-project-relations svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.topic-detail-body .topic-section { padding: 15px 0; border-top: 1px solid var(--topic-edge); }
#home-topics .grid-disclosure-toggle:is([data-disclosure="guest-posters"], .topic-detail:is([data-topic-kind="events"], [data-topic-kind="producers"]) [data-disclosure="people"]) {
  display: inline-flex; align-items: center; gap: 5px; font-size: 12px;
}
.grid-disclosure-toggle:is([data-disclosure="guest-posters"], .topic-detail:is([data-topic-kind="events"], [data-topic-kind="producers"]) [data-disclosure="people"])::after {
  content: ''; width: 6px; height: 6px; border: solid currentColor; border-width: 0 1.5px 1.5px 0; transform: translateY(-2px) rotate(45deg);
}
.grid-disclosure-toggle:is([data-disclosure="guest-posters"], .topic-detail:is([data-topic-kind="events"], [data-topic-kind="producers"]) [data-disclosure="people"])[aria-expanded="true"]::after {
  transform: translateY(2px) rotate(225deg);
}
.topic-song-rows { --profile-red: var(--night-red); }
.topic-song-rows .profile-song { border-color: var(--topic-edge); }
.topic-song-rows .profile-song-cover { display: block; background: #38323d; }
.topic-song-rows .profile-song-artists { color: var(--topic-dim); }
.topic-work-copy { min-width: 0; }
.topic-work-copy small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--topic-dim); font-size: 10.5px; margin-top: 2px; }
.topic-radio-works .topic-work-copy strong { display: block; }
.topic-radio-works .topic-work-copy small { font-weight: 400; white-space: normal; overflow-wrap: anywhere; }
.topic-award-strip { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 16px) / 3); gap: 8px; overflow-x: auto; overscroll-behavior-x: contain; padding-bottom: 4px; }
.topic-people { display: grid; gap: 3px; }
#home-topics .topic-person {
  display: flex; flex-direction: row; align-items: center; gap: 11px; min-height: 45px;
  width: 100%; min-width: 0; padding: 4px; border-radius: 8px; text-align: left;
}
.topic-person-art { flex: 0 0 35px; width: 35px; height: 35px; border-radius: 50%; }
.topic-person-name { font-size: 13px; font-weight: 600; }
.topic-people-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px 6px; align-items: start; }
#home-topics .topic-people-grid .topic-person { flex-direction: column; gap: 5px; text-align: center; }
.topic-people-grid .topic-person-art { flex-basis: auto; width: 46px; height: 46px; max-width: 100%; }
.topic-people-grid .topic-person-name { font-size: 11px; overflow-wrap: anywhere; }
.topic-detail[data-topic-kind="shows"] .topic-person-name { display: block; max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.topic-person-placement { color: var(--topic-dim); font-size: 10px; }
#topic-map-filter { display: none; }
#topic-map-filter.active {
  position: fixed; z-index: 1500; left: 50%; bottom: max(24px, env(safe-area-inset-bottom)); transform: translateX(-50%);
  display: inline-flex; align-items: center; gap: 12px; max-width: 86vw; padding: 9px 14px;
  background: #242127; color: #f4efef; border: 1px solid #ffffff30; border-radius: 24px; cursor: pointer;
}
#topic-map-filter b { font: 18px/1 sans-serif; }
#mobile-control-dialog[data-panel="recommend"] .mobile-panel-heading > div {
  position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap;
}
#map-home-panel[aria-label="主页"] .home-panel-scroll { scrollbar-width: none; }
#map-home-panel[aria-label="主页"] .home-panel-scroll::-webkit-scrollbar { display: none; }
@media (hover: hover) {
  #home-topics :is(a, button):hover .topic-tile-name, #home-topics .topic-work:hover strong { color: var(--topic-accent); }
  #home-topics :is(.topic-person,.topic-action):hover { background-color: #ffffff14; }
  #home-topics .topic-back:hover { color: var(--topic-accent); }
}
@media (max-width: 480px) {
  #mobile-control-dialog[data-panel="recommend"] .mobile-panel-sheet { height: min(80dvh, 730px); }
  #mobile-control-dialog[data-panel="recommend"].is-topic-map-preview .mobile-panel-sheet:has(.topic-detail[data-topic-kind="producers"]) {
    height: min(37dvh, 320px); transition-property: transform, opacity;
  }
  #mobile-control-dialog[data-panel="recommend"].is-topic-map-preview.is-open:has(.topic-detail[data-topic-kind="producers"]) .mobile-panel-scrim { opacity: 0; }
  #mobile-view-recommend { min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 0 0 max(12px, env(safe-area-inset-bottom)); }
  #mobile-control-dialog[data-panel="recommend"] .mobile-panel-header {
    position: absolute; z-index: 4; inset: 0 0 auto; height: 0; padding: 0; pointer-events: none;
  }
  #mobile-control-dialog[data-panel="recommend"] .mobile-panel-handle {
    position: absolute; left: 50%; top: 0; transform: translateX(-50%); width: 58px; height: 24px;
    margin: 0; background: none; pointer-events: auto; touch-action: none;
  }
  #mobile-control-dialog[data-panel="recommend"] .mobile-panel-handle::before {
    content: ''; position: absolute; top: 7px; left: 14px; width: 30px; height: 3px; border-radius: 3px; background: #ffffffa8;
  }
  .topic-hero-art { aspect-ratio: 4 / 3; }
  .topic-hero { border-radius: 16px 16px 0 0; }
  #topic-map-filter.active { bottom: max(32px, calc(env(safe-area-inset-bottom) + 12px)); max-width: 72vw; }
}
