:root {
  color-scheme: dark;
  --bg: #12101a;
  --panel: #191623;
  --line: #332b40;
  --white: #f9f4ff;
  --muted: #b6abbe;
  --pink: #ff8bb5;
  --pink-bright: #ff78a9;
  --display: "Barlow Condensed", Impact, sans-serif;
  --body: "DM Sans", system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--white); font: 16px/1.55 var(--body); }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
button { color: inherit; cursor: pointer; }
button[hidden], [hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--pink); outline-offset: 4px; }
.shell { width: min(100% - 104px, 1300px); margin-inline: auto; }
.skip { position: absolute; z-index: 5; top: 6px; left: 10px; padding: 7px 12px; background: var(--bg); transform: translateY(-160%); }
.skip:focus { transform: none; }
.visually-hidden { position: absolute; clip-path: inset(50%); width: 1px; height: 1px; overflow: hidden; white-space: nowrap; }
.site-header { background: #13111c; border-bottom: 1px solid #2a2436; }
.header-inner { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; min-height: 67px; gap: 24px; }
.wordmark { display: inline-flex; align-items: center; gap: 10px; white-space: nowrap; font: 700 22px/1 var(--display); letter-spacing: .05em; }
.wordmark strong { color: var(--pink); font-weight: 700; }
.station-mark { display: inline-flex; align-items: center; justify-content: center; gap: 2px; width: 31px; height: 31px; border: 1px solid #ff8bb54d; border-radius: 8px; color: var(--pink); }
.station-mark i { width: 2px; height: 7px; background: currentColor; border-radius: 2px; }
.station-mark i:nth-child(even) { height: 13px; }
.station-mark i:nth-child(3) { height: 19px; }
.nav { align-self: stretch; display: flex; align-items: stretch; gap: 30px; }
.nav a { display: flex; align-items: center; color: var(--muted); font-weight: 600; font-size: 14px; border-bottom: 2px solid transparent; }
.nav a:hover, .nav .current { border-color: var(--pink-bright); color: var(--white); }
.header-actions { justify-self: end; display: flex; align-items: center; gap: 12px; }
.quiet { background: transparent; border: 1px solid transparent; padding: 6px 10px; border-radius: 7px; }
.quiet:hover, .quiet[aria-pressed=true] { background: #ff8bb515; border-color: #ff8bb540; color: var(--pink); }
.button-icon { min-width: 36px; min-height: 36px; display: grid; place-items: center; }
.search-icon { width: 13px; height: 13px; border: 1.6px solid currentColor; border-radius: 50%; position: relative; display: inline-block; }
.search-icon::after { content: ""; position: absolute; width: 6px; height: 1.6px; background: currentColor; right: -5px; bottom: -2px; transform: rotate(48deg); }
.saved-link { display: flex; white-space: nowrap; align-items: center; gap: 7px; min-height: 36px; border-color: var(--line); font-size: 13px; font-weight: 700; }
.bookmark { width: 13px; height: 16px; display: inline-block; background: currentColor; clip-path: polygon(0 0,100% 0,100% 100%,50% 72%,0 100%,0 0,10% 10%,10% 81%,50% 59%,90% 81%,90% 10%,10% 10%); }
[aria-pressed=true] > .bookmark { clip-path: polygon(0 0,100% 0,100% 100%,50% 72%,0 100%); }
.hero { isolation: isolate; position: relative; min-height: 340px; background: #252036 url("/assets/vice-city-twilight.webp") center 54% / cover no-repeat; display: flex; align-items: center; }
.hero::before { position: absolute; z-index: -1; inset: 0; content: ""; background: linear-gradient(0deg, #12101a 0%, #12101a10 33%, transparent 70%), linear-gradient(90deg, #100d1cf5 0%, #100d1cba 29%, #100d1c30 64%, #100d1c05 100%); }
.hero-inner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr); align-items: center; gap: clamp(22px, 6vw, 88px); padding-block: clamp(28px, 5vw, 64px); }
.feature { display: grid; align-content: end; justify-items: start; gap: 8px; position: relative; isolation: isolate; min-width: 0; width: 100%; aspect-ratio: 16 / 9; padding: clamp(12px, 2.5vw, 24px); overflow: hidden; border: 1px solid #ffffff40; border-radius: 12px; background: var(--panel); text-align: left; }
.feature:hover { border-color: var(--pink); }
.feature-media, .feature-media::after, .feature img { position: absolute; inset: 0; width: 100%; height: 100%; }
.feature-media { z-index: -1; }
.feature-media::after { content: ""; background: linear-gradient(0deg, #100b17f5, #100b1722 70%); }
.feature img { object-fit: cover; }
.feature-label { display: inline-flex; align-items: center; gap: 7px; padding: 4px 8px; border-radius: 5px; color: #271725; background: var(--pink); font-weight: 700; font-size: 14px; }
.feature-title { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; font-size: clamp(16px, 2.1vw, 27px); font-weight: 700; line-height: 1.22; }
.hero-copy { max-width: 690px; }
.signal { width: 7px; height: 7px; flex: none; border-radius: 50%; background: var(--pink-bright); box-shadow: 0 0 12px #ff78a999; }
h1,h2,p { margin-top: 0; }
h1 { font: 800 clamp(58px, 7.4vw, 118px)/.78 var(--display); letter-spacing: -.025em; margin: 0 0 24px; }
h1 em { color: var(--pink); font-style: normal; }
.hero-description { color: #e9deeb; max-width: 390px; font-size: 17px; margin-bottom: 24px; }
.primary, .outline { display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 45px; padding: 0 15px; border-radius: 6px; font-size: 14px; font-weight: 700; border: 1px solid transparent; }
.primary { background: var(--pink); color: #22121d; }
.primary:hover { background: #ffb0ce; }
.outline { color: var(--white); border-color: #b8a5c366; background: #17102266; }
.outline:hover { background: #31233c; }
.play-icon { display: inline-block; width: 11px; height: 12px; background: currentColor; clip-path: polygon(0 0, 100% 50%, 0 100%); }
.content { padding-block: 24px 62px; }
section[id] { scroll-margin-top: 24px; }
.section-heading { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 17px; }
h2 { margin-bottom: 3px; font: 800 clamp(31px, 3.2vw, 48px)/.95 var(--display); letter-spacing: .016em; }
.section-heading p { color: var(--muted); margin: 7px 0 0; }
.new-filter { display: inline-flex; align-items: center; gap: 8px; color: #ffc3d7; background: #251a2c; border-color: #49304a; font-size: 12px; }
.filters { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 18px; }
.filters button { min-height: 34px; background: #1c1826; border: 1px solid var(--line); border-radius: 5px; padding: 4px 13px; color: var(--muted); font-size: 13px; font-weight: 700; }
.filters button:hover { color: var(--white); border-color: #796184; }
.filters button[aria-pressed=true] { color: #ffd8e7; border-color: #ae5d82; background: #48273c; }
.search-bar { display: flex; align-items: stretch; gap: 9px; padding-bottom: 16px; }
.search-bar input { min-width: 0; width: min(100%, 450px); border-radius: 6px; border: 1px solid var(--line); padding: 9px 12px; background: var(--panel); color: var(--white); }
.search-bar button { border-color: var(--line); }
.cards { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 15px; }
.card { position: relative; display: grid; grid-template-rows: auto 1fr; overflow: hidden; border: 1px solid var(--line); border-radius: 9px; background: var(--panel); }
.card:hover { border-color: #815970; }
.media { display: grid; place-items: center; position: relative; width: 100%; aspect-ratio: 1.82; padding: 0; border: 0; background: #2e2342; overflow: hidden; text-align: left; }
.media img { width: 100%; height: 100%; position: absolute; inset: 0; object-fit: cover; transition: transform .3s ease; }
.media:hover img { transform: scale(1.04); }
.media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg,#110b1acc, transparent 49%); pointer-events: none; }
.media .play { z-index: 1; display: grid; place-items: center; width: 42px; height: 42px; border: 1px solid #ffffff93; background: #16101ac7; border-radius: 50%; }
.media:hover .play { background: var(--pink); color: #211021; border-color: var(--pink); }
.media .tag { position: absolute; z-index: 1; bottom: 10px; left: 11px; color: #ffd4e6; background: #221827df; border: 1px solid #ff8bb556; font: 500 10px/1.4 var(--mono); text-transform: uppercase; letter-spacing: .07em; padding: 3px 5px; border-radius: 4px; }
.card-copy { position: relative; padding: 13px 43px 15px 13px; }
.card h3 { margin: 0 0 6px; font-size: 16px; line-height: 1.28; }
.title-button { border: 0; padding: 0; font: inherit; font-weight: 700; background: none; text-align: left; }
.title-button:hover { color: var(--pink); }
.card .byline { color: var(--muted); margin: 0; font-size: 13px; }
.save-card { position: absolute; right: 7px; top: 10px; display: grid; place-items: center; min-width: 34px; min-height: 34px; padding: 0; color: var(--muted); }
.empty { padding: 20px; margin: 0; border: 1px dashed var(--line); border-radius: 8px; color: var(--muted); }
.site-footer { border-top: 1px solid var(--line); background: #15121e; color: var(--muted); }
.contact { display: flex; align-items: end; justify-content: space-between; flex-wrap: wrap; gap: 20px; padding-block: clamp(28px, 5vw, 56px); }
.contact h2 { color: var(--white); font-size: clamp(27px, 4vw, 39px); margin-bottom: 10px; }
.contact-email { color: var(--pink); text-decoration: underline; text-underline-offset: 4px; }
.contact-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 15px; min-height: 62px; font-size: 14px; border-top: 1px solid var(--line); }
.footer-inner p { margin: 0; }
dialog { width: min(calc(100% - 24px), 850px); padding: 0; background: var(--panel); color: var(--white); border: 1px solid #6e4d73; border-radius: 11px; }
dialog::backdrop { background: #0b0812df; }
.player-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px; }
.player-head h2 { font: 700 18px/1.25 var(--body); margin: 0; }
.player-close { font-size: 25px; line-height: 1; }
.player-frame { width: 100%; aspect-ratio: 16 / 9; background: #08070a; }
.player-frame iframe { width: 100%; height: 100%; border: 0; display: block; }
.player-frame[data-platform="youtube"] { min-height: 200px; }
.player-meta { padding: 13px 16px; color: var(--muted); }
.player-meta p { margin-bottom: 5px; }
.player-meta a { color: var(--pink); text-decoration: underline; }
@media (max-width: 650px), (pointer: coarse) {
  /* Douyin renders a fixed-size player inside its mobile iframe. */
  .player-frame[data-platform="douyin"] {
    width: min(100%, 324px, 37vh);
    width: min(100%, 324px, 37svh);
    margin-inline: auto;
    aspect-ratio: 324 / 672;
    overflow: hidden;
  }
  .player-frame[data-platform="douyin"] iframe {
    width: 324px;
    height: 672px;
    transform: scale(var(--douyin-player-scale, 1));
    transform-origin: top left;
  }
}
@media (max-width: 900px) {
  .shell { width: calc(100% - 48px); }
  .nav { gap: 16px; }
  .header-inner { gap: 12px; }
  h1 { font-size: clamp(59px, 8.2vw, 83px); }
}
@media (max-width: 650px) {
  .shell { width: calc(100% - 30px); }
  .header-inner { grid-template-columns: 1fr auto; min-height: 58px; }
  .nav { grid-row: 2; grid-column: 1 / -1; gap: 22px; min-height: 32px; }
  .header-actions { grid-row: 1; grid-column: 2; }
  .header-inner .wordmark { font-size: clamp(13px, 4.2vw, 19px); gap: 6px; }
  .station-mark { width: 26px; height: 26px; }
  .hero { min-height: 0; background-position: 61% center; }
  .hero::before { background: linear-gradient(0deg,#12101a,transparent 52%),linear-gradient(90deg,#100d1cd9,#100d1c44); }
  .hero-inner { grid-template-columns: 1fr; gap: 24px; padding-block: 30px 16px; }
  h1 { font-size: clamp(53px, 13vw, 75px); margin-bottom: 14px; }
  .hero-description { margin-bottom: 15px; }
  .hero-description { max-width: 300px; font-size: 15px; }
  .cards { grid-template-columns: 1fr; }
  .section-heading { align-items: start; }
  .new-filter { max-width: 126px; text-align: left; line-height: 1.3; }
  .footer-inner { flex-wrap: wrap; justify-content: start; padding-block: 13px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}

.language-link { border-color: var(--line); white-space: nowrap; color: #ffc3d7; font-size: 12px; font-weight: 700; min-height: 36px; display: inline-grid; place-items: center; }
.more { margin-top: 18px; color: var(--pink); }
.media .platform-label { position: absolute; top: 10px; right: 10px; z-index: 1; background: #171021dc; color: #fbf0f9; border-radius: 4px; padding: 3px 7px; font-size: 11px; }
.cover-art { position: absolute; inset: 0; background: linear-gradient(95deg,#120e24e8,#3d143760 70%), url("/assets/vice-city-twilight.webp") center 55% / cover; }
.cover-art.douyin { background-image: linear-gradient(95deg,#16112add,#12314880 68%), url("/assets/vice-city-twilight.webp"); background-position: center, 72% 72%; }
:lang(zh-CN) { --body: "DM Sans", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif; }
:lang(zh-CN) h1 { font-family: var(--body); font-size: clamp(49px, 6.2vw, 94px); font-weight: 900; line-height: .98; }
:lang(zh-CN) h2 { font-family: var(--body); font-size: clamp(28px, 3vw, 44px); font-weight: 900; line-height: 1.14; }
:lang(zh-CN) .player-head h2 { font: 700 18px/1.25 var(--body); }
@media (max-width: 650px) {
  .header-actions { gap: 4px; }
  .language-link, .saved-link { padding-inline: 7px; }
}
@media (max-width: 380px) {
  .header-inner { column-gap: 6px; }
  .header-actions .button-icon { min-width: 27px; padding-inline: 5px; }
  .header-actions .saved-link { font-size: 11px; gap: 4px; }
}

.ui-icon {
  --glyph-size: 17px;
  display: inline-block;
  flex: 0 0 var(--glyph-size);
  width: var(--glyph-size);
  height: var(--glyph-size);
  background: url("/assets/section-icons.png") no-repeat;
  background-size: calc(var(--glyph-size) * 10) var(--glyph-size);
  background-position-x: calc(var(--glyph-size) * var(--i, 0) * -1);
}
.icon-compass { --i: 1; }
.icon-guide { --i: 3; }
.icon-target { --i: 5; }
.icon-spark { --i: 6; }
.icon-news { --i: 8; }
.nav a { gap: 6px; white-space: nowrap; }
.nav .ui-icon { --glyph-size: 15px; }
.filters button { display: inline-flex; align-items: center; gap: 5px; }
.filters .ui-icon { --glyph-size: 14px; }
@media (min-width: 651px) and (max-width: 900px) {
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
