:root {
  color-scheme: dark;
  --bg: #0c0c0f;
  --surface: #15151a;
  --surface-2: #1d1d24;
  --surface-3: #25252e;
  --text: #f7f7fa;
  --muted: #9d9daa;
  --line: rgba(255, 255, 255, .09);
  --accent: #ff2d75;
  --accent-2: #8f4cff;
  --success: #31d49c;
  --radius: 18px;
  --shadow: 0 18px 60px rgba(0, 0, 0, .35);
  --shell-gap: 10px;
  --bottom-nav-height: 68px;
}

* { box-sizing: border-box; }
html { background: var(--bg); scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
html.sheet-open, html.sheet-open body { overflow: hidden; }
body {
  margin: 0;
  min-width: 0;
  overflow-x: hidden;
  background: radial-gradient(circle at 10% -10%, rgba(143, 76, 255, .13), transparent 30%), var(--bg);
  color: var(--text);
  font: 14px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
button { color: inherit; touch-action: manipulation; }
a, button { -webkit-tap-highlight-color: transparent; }
img { display: block; width: auto; max-width: 100%; }
[hidden] { display: none !important; }

/* 手机优先：默认就是 H5 窄屏布局 */
.h5-shell { width: calc(100% - 20px); max-width: 1180px; margin-inline: auto; }
.page-main { min-height: 70vh; padding: 10px 0 calc(var(--bottom-nav-height) + 28px + env(safe-area-inset-bottom)); }
.page-main--player { padding-top: 6px; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: calc(56px + env(safe-area-inset-top));
  padding-top: env(safe-area-inset-top);
  border-bottom: 1px solid var(--line);
  background: rgba(12, 12, 15, .9);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
}
.site-header__row { height: 56px; display: flex; align-items: center; gap: 10px; min-width: 0; }
.brand { display: inline-flex; align-items: center; min-width: 0; gap: 8px; font-weight: 900; letter-spacing: .05em; white-space: nowrap; }
.brand__mark { flex: 0 0 auto; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 11px; background: linear-gradient(135deg, var(--accent), var(--accent-2)); box-shadow: 0 8px 24px rgba(255, 45, 117, .25); font-size: 13px; }
.brand__text { max-width: min(48vw, 210px); overflow: hidden; text-overflow: ellipsis; font-size: 14px; }
.top-nav { display: none; }
.site-header__actions { margin-left: auto; display: flex; gap: 5px; }
.icon-button { display: grid; place-items: center; width: 36px; height: 36px; padding: 0; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); cursor: pointer; font-size: 20px; }

.hero-card { position: relative; min-height: 390px; overflow: hidden; border: 1px solid var(--line); border-radius: 20px; background: linear-gradient(135deg, #25212d, #121217); box-shadow: var(--shadow); isolation: isolate; }
.hero-card::before { content: ""; position: absolute; inset: 0; z-index: -2; background-image: var(--hero-image); background-size: cover; background-position: center top; filter: saturate(.9); transform: scale(1.02); }
.hero-card__shade { position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, rgba(8, 8, 10, .98) 0%, rgba(8, 8, 10, .78) 50%, rgba(8, 8, 10, .18) 100%); }
.hero-card__content { position: absolute; inset: auto 0 0; width: 100%; padding: 24px 20px; }
.eyebrow { display: block; margin-bottom: 5px; color: #ff75a5; font-size: 11px; font-weight: 800; letter-spacing: .16em; }
.hero-card h1 { max-width: 100%; margin: 7px 0 11px; font-size: clamp(27px, 8vw, 34px); line-height: 1.1; overflow-wrap: anywhere; }
.hero-card p { display: -webkit-box; max-width: 100%; margin: 0; overflow: hidden; color: #d0cfd7; font-size: 14px; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.hero-card__actions, .detail-actions { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 20px; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 42px; padding: 0 16px; border: 1px solid transparent; border-radius: 13px; cursor: pointer; font-weight: 750; }
.button--primary { background: linear-gradient(135deg, var(--accent), #ff5b53); box-shadow: 0 10px 30px rgba(255, 45, 117, .27); }
.button--glass { border-color: rgba(255, 255, 255, .16); background: rgba(255, 255, 255, .08); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.button--ghost { border-color: var(--line); background: var(--surface-2); }
.button--large { min-height: 46px; padding-inline: 20px; }

.quick-categories { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; margin: 12px 0 24px; }
.quick-categories a { display: flex; min-width: 0; align-items: center; gap: 9px; padding: 12px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); font-weight: 750; }
.quick-categories span { flex: 0 0 auto; display: grid; place-items: center; width: 29px; height: 29px; border-radius: 9px; background: var(--surface-3); color: #ff75a5; font-size: 10px; }
.content-section { margin-top: 26px; }
.section-head { display: flex; min-width: 0; align-items: flex-end; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.section-head > div { min-width: 0; }
.section-head h2 { margin: 0; overflow-wrap: anywhere; font-size: 20px; line-height: 1.2; }
.section-head > a, .section-head > button, .section-head > small { flex: 0 0 auto; padding: 0; border: 0; background: none; color: var(--muted); cursor: pointer; white-space: nowrap; }

.media-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 9px; }
.media-grid--featured { display: flex; overflow-x: auto; padding: 0 1px 7px; scroll-snap-type: x proximity; scrollbar-width: none; }
.media-grid--featured::-webkit-scrollbar { display: none; }
.media-grid--featured .media-card { flex: 0 0 min(43%, 180px); scroll-snap-align: start; }
.media-card { position: relative; min-width: 0; }
.media-card__poster { position: relative; display: block; aspect-ratio: 2 / 3; overflow: hidden; border: 1px solid var(--line); border-radius: 14px; background: linear-gradient(135deg, var(--surface-3), var(--surface)); }
.media-card__poster img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease, filter .35s ease; }
.media-card__placeholder { position: absolute; inset: 0; display: grid; place-items: center; color: var(--muted); font-size: 10px; letter-spacing: .16em; }
.media-card__badge { position: absolute; right: 6px; top: 6px; max-width: 76%; overflow: hidden; padding: 3px 7px; border-radius: 8px; background: rgba(8, 8, 10, .74); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.media-card__play { display: none; }
.media-card__body { position: relative; min-width: 0; padding: 8px 2px 0; }
.media-card__body h3 { margin: 0; overflow: hidden; font-size: 14px; text-overflow: ellipsis; white-space: nowrap; }
.media-card__body p { margin: 2px 32px 0 0; overflow: hidden; color: var(--muted); font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.media-card__score { position: absolute; right: 2px; bottom: 0; color: #ffbf4d; font-size: 11px; }

.chip-row { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 10px; scrollbar-width: none; }
.chip-row::-webkit-scrollbar { display: none; }
.chip-row a, .tag-row a { flex: 0 0 auto; padding: 7px 12px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--muted); font-size: 12px; }
.chip-row a.is-active { color: #fff; border-color: rgba(255, 45, 117, .48); background: rgba(255, 45, 117, .14); }
.keyword-cloud { margin-top: 28px; padding: 15px; border: 1px solid var(--line); border-radius: 18px; background: var(--surface); }
.keyword-cloud__items { display: flex; flex-wrap: wrap; gap: 8px; }
.keyword-cloud__items a { padding: 7px 11px; border-radius: 999px; background: var(--surface-2); color: #c9c8d0; }

.breadcrumbs { display: flex; min-width: 0; gap: 7px; align-items: center; overflow: hidden; margin: 0 0 11px; color: var(--muted); font-size: 12px; white-space: nowrap; }
.breadcrumbs a { flex: 0 0 auto; }
.breadcrumbs em { min-width: 0; overflow: hidden; font-style: normal; text-overflow: ellipsis; }
.detail-hero {
  display: grid;
  grid-template-columns: 108px minmax(0, 1fr);
  grid-template-areas:
    "poster summary"
    "body body";
  gap: 14px;
  align-items: start;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: linear-gradient(135deg, var(--surface-2), var(--surface));
  box-shadow: var(--shadow);
}
.detail-hero__poster {
  grid-area: poster;
  position: relative;
  width: 100%;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  border-radius: 13px;
  background: var(--surface-3);
}
.detail-hero__poster img { width: 100%; height: 100%; object-fit: cover; }
.detail-hero__poster > span { height: 100%; display: grid; place-items: center; color: var(--muted); }
.detail-hero__poster b { position: absolute; right: 6px; top: 6px; max-width: 80%; overflow: hidden; padding: 3px 7px; border-radius: 8px; background: rgba(0, 0, 0, .72); font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.detail-hero__summary { grid-area: summary; min-width: 0; padding-top: 1px; }
.detail-hero__body { grid-area: body; min-width: 0; }
.detail-hero h1 { margin: 2px 0 7px; overflow-wrap: anywhere; font-size: clamp(21px, 6.5vw, 27px); line-height: 1.16; }
.score-pill { display: inline-flex; width: max-content; max-width: 100%; padding: 4px 9px; border-radius: 999px; background: rgba(255, 191, 77, .13); color: #ffbf4d; font-weight: 800; }
.meta-pills { display: flex; flex-wrap: wrap; gap: 6px; margin: 9px 0 0; }
.meta-pills span { max-width: 100%; overflow: hidden; padding: 3px 7px; border-radius: 7px; background: var(--surface-3); color: #c9c8d0; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.detail-hero__blurb {
  display: -webkit-box;
  margin: 0;
  overflow: hidden;
  color: #c2c1c9;
  overflow-wrap: anywhere;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
}
.detail-facts { display: grid; gap: 8px; margin: 12px 0 0; }
.detail-facts div { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 8px; align-items: start; padding: 8px 10px; border-radius: 10px; background: rgba(255, 255, 255, .035); }
.detail-facts dt { color: var(--muted); }
.detail-facts dd { min-width: 0; margin: 0; overflow-wrap: anywhere; }
.detail-actions { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(92px, .75fr); gap: 9px; margin-top: 12px; }
.detail-actions .button { width: 100%; min-width: 0; padding-inline: 10px; }

.playlist-block, .prose-card, .rank-section { padding: 14px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); }
.playlist-block + .playlist-block { margin-top: 10px; }
.playlist-block__head { display: flex; min-width: 0; justify-content: space-between; gap: 10px; align-items: center; margin-bottom: 11px; }
.playlist-block__head strong { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.playlist-block__head span { flex: 0 0 auto; color: var(--muted); font-size: 11px; }
.episode-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.episode-grid a { min-width: 0; overflow: hidden; padding: 9px 7px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface-2); text-align: center; text-overflow: ellipsis; white-space: nowrap; }
.episode-grid a.is-active { border-color: var(--accent); background: rgba(255, 45, 117, .14); color: #fff; }
.prose { color: #c5c4cc; line-height: 1.9; overflow-wrap: anywhere; }
.tag-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }

.player-card { margin-inline: -10px; overflow: hidden; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: #050506; box-shadow: var(--shadow); }
.player-wrap { position: relative; aspect-ratio: 16 / 9; background: #000; }
.player-wrap video { width: 100%; height: 100%; object-fit: contain; background: #000; }
.player-start { position: absolute; inset: 0; display: grid; place-content: center; gap: 8px; border: 0; background: radial-gradient(circle at center, rgba(255, 45, 117, .18), rgba(0, 0, 0, .55)); cursor: pointer; }
.player-start span { display: grid; place-items: center; width: 66px; height: 66px; margin: auto; border-radius: 50%; background: linear-gradient(135deg, var(--accent), var(--accent-2)); box-shadow: 0 20px 55px rgba(255, 45, 117, .3); font-size: 24px; }
.player-start small { color: #fff; }
.player-meta { display: flex; align-items: flex-start; flex-direction: column; gap: 12px; padding: 14px 10px; }
.player-meta > div { min-width: 0; }
.player-meta h1 { margin: 0; overflow-wrap: anywhere; font-size: 19px; }
.player-tools { width: 100%; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 7px; }
.player-tools button, .player-tools a { min-width: 0; overflow: hidden; padding: 8px 5px; border: 1px solid var(--line); border-radius: 9px; background: var(--surface-2); cursor: pointer; text-align: center; text-overflow: ellipsis; white-space: nowrap; }

.category-header { padding: 17px 14px; border: 1px solid var(--line); border-radius: 18px; background: linear-gradient(135deg, rgba(255, 45, 117, .12), rgba(143, 76, 255, .08)), var(--surface); }
.category-header h1 { margin: 2px 0 14px; overflow-wrap: anywhere; font-size: 27px; }
.chip-row--filters { padding-bottom: 0; }
.pagination { display: flex; justify-content: center; gap: 6px; margin-top: 22px; overflow-x: auto; padding-bottom: 4px; }
.pagination a { flex: 0 0 auto; display: grid; place-items: center; min-width: 36px; height: 36px; padding: 0 9px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); }
.pagination a.is-active { border-color: var(--accent); background: var(--accent); }
.rank-list { list-style: none; padding: 0; margin: 0; }
.rank-list li { display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; gap: 8px; align-items: center; min-height: 42px; border-bottom: 1px solid var(--line); }
.rank-list li:last-child { border-bottom: 0; }
.rank-list span { color: #ff75a5; font-weight: 900; }
.rank-list a { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rank-list em { color: var(--muted); font-size: 11px; font-style: normal; }

.search-sheet, .history-sheet, .category-sheet { position: fixed; inset: 0; z-index: 100; }
.search-sheet__backdrop { position: absolute; inset: 0; background: rgba(0, 0, 0, .72); -webkit-backdrop-filter: blur(5px); backdrop-filter: blur(5px); }
.search-sheet__panel { position: absolute; left: 50%; bottom: 0; width: 100%; max-height: 82vh; overflow: auto; padding: 18px 16px calc(18px + env(safe-area-inset-bottom)); border: 1px solid var(--line); border-bottom: 0; border-radius: 22px 22px 0 0; background: #17171c; box-shadow: var(--shadow); transform: translateX(-50%); }
.sheet-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 13px; }
.sheet-head button { padding: 5px; border: 0; background: none; color: var(--muted); cursor: pointer; }
.search-form { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; }
.search-form input { min-width: 0; height: 46px; padding: 0 13px; border: 1px solid var(--line); border-radius: 12px; outline: 0; background: #0f0f13; color: #fff; }
.search-form input:focus { border-color: var(--accent); }
.search-form button { padding: 0 16px; border: 0; border-radius: 12px; background: var(--accent); cursor: pointer; font-weight: 800; }
.hot-keywords { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 13px; color: var(--muted); }
.hot-keywords button { padding: 5px 9px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface-2); cursor: pointer; }
.history-list { display: grid; gap: 9px; }
.history-item { display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: 10px; align-items: center; padding: 8px; border-radius: 12px; background: var(--surface-2); }
.history-item img, .history-item__empty { width: 52px; height: 70px; object-fit: cover; border-radius: 8px; background: var(--surface-3); }
.history-item__empty { display: grid; place-items: center; }
.history-item strong, .history-item small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.history-item small { margin-top: 3px; color: var(--muted); }
.clear-history { width: 100%; margin-top: 14px; padding: 11px; border: 1px solid var(--line); border-radius: 11px; background: transparent; cursor: pointer; }
.empty-state { padding: 28px 0; color: var(--muted); text-align: center; }
.category-sheet__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
.category-sheet__grid a { min-width: 0; overflow: hidden; padding: 13px 8px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface-2); text-align: center; text-overflow: ellipsis; white-space: nowrap; }

.toast { position: fixed; left: 50%; bottom: calc(var(--bottom-nav-height) + 18px + env(safe-area-inset-bottom)); z-index: 300; max-width: calc(100% - 32px); overflow: hidden; padding: 9px 14px; border-radius: 999px; background: #fff; color: #111; box-shadow: var(--shadow); transform: translateX(-50%); text-overflow: ellipsis; white-space: nowrap; }

.bottom-nav { position: fixed; left: 50%; bottom: 0; z-index: 70; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); width: 100%; max-width: 640px; min-height: var(--bottom-nav-height); padding: 6px 8px calc(6px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: rgba(14, 14, 18, .94); -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px); transform: translateX(-50%); }
.bottom-nav a, .bottom-nav button { display: grid; gap: 1px; place-items: center; min-width: 0; padding: 4px; border: 0; background: none; color: var(--muted); cursor: pointer; }
.bottom-nav span { font-size: 20px; line-height: 1; }
.bottom-nav small { font-size: 10px; }
.site-footer { padding: 28px 0 calc(var(--bottom-nav-height) + 30px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: #09090b; }
.site-footer__brand { display: flex; align-items: center; gap: 12px; }
.site-footer__brand > div { min-width: 0; }
.site-footer__brand p, .site-footer__copy { margin: 3px 0 0; color: var(--muted); font-size: 12px; }
.site-footer__copy { margin-top: 16px; overflow-wrap: anywhere; }

/* 小平板 / 横屏手机 */
@media (min-width: 560px) {
  :root { --shell-gap: 14px; }
  .h5-shell { width: calc(100% - 28px); }
  .quick-categories { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .media-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px 12px; }
  .media-grid--featured { display: grid; overflow: visible; padding-bottom: 0; }
  .media-grid--featured .media-card { min-width: 0; }
  .episode-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .category-sheet__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .player-meta { padding-inline: 14px; }
}

/* 平板及桌面：在 H5 基础上渐进增强 */
@media (min-width: 768px) {
  :root { --bottom-nav-height: 0px; }
  .page-main { padding: 18px 0 80px; }
  .page-main--player { padding-top: 8px; }
  .site-header { height: 62px; padding-top: 0; }
  .site-header__row { height: 62px; gap: 20px; }
  .brand__text { max-width: 260px; font-size: 15px; }
  .top-nav { display: flex; min-width: 0; gap: 4px; overflow-x: auto; scrollbar-width: none; }
  .top-nav::-webkit-scrollbar { display: none; }
  .top-nav a { padding: 9px 12px; color: var(--muted); white-space: nowrap; border-radius: 10px; }
  .top-nav a:hover, .top-nav a.is-active { color: var(--text); background: var(--surface-2); }
  .site-header__actions { gap: 8px; }
  .icon-button { width: 38px; height: 38px; font-size: 21px; }

  .hero-card { min-height: 320px; border-radius: 24px; }
  .hero-card::before { background-position: center 25%; }
  .hero-card__shade { background: linear-gradient(90deg, rgba(8, 8, 10, .96) 0%, rgba(8, 8, 10, .75) 45%, rgba(8, 8, 10, .18) 100%), linear-gradient(0deg, rgba(8, 8, 10, .75), transparent 55%); }
  .hero-card__content { position: static; width: min(610px, 100%); padding: 48px 34px; }
  .hero-card h1 { max-width: 560px; font-size: clamp(30px, 5vw, 48px); }
  .hero-card p { display: block; max-width: 540px; font-size: 15px; }

  .content-section { margin-top: 32px; }
  .section-head h2 { font-size: 23px; }
  .media-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .media-card__play { position: absolute; left: 50%; top: 50%; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; background: rgba(255, 45, 117, .88); transform: translate(-50%, -50%) scale(.7); opacity: 0; transition: .25s; }
  .media-card:hover img { transform: scale(1.04); filter: brightness(.78); }
  .media-card:hover .media-card__play { opacity: 1; transform: translate(-50%, -50%) scale(1); }
  .media-card__body { padding-top: 10px; }
  .media-card__body p, .media-card__score { font-size: 12px; }

  .keyword-cloud { margin-top: 34px; padding: 22px; border-radius: 20px; }
  .detail-hero {
    grid-template-columns: 210px minmax(0, 1fr);
    grid-template-areas:
      "poster summary"
      "poster body";
    gap: 16px 24px;
    padding: 22px;
    border-radius: 22px;
  }
  .detail-hero__poster { align-self: start; }
  .detail-hero__summary { align-self: end; }
  .detail-hero h1 { font-size: clamp(30px, 4vw, 42px); }
  .detail-hero__blurb { display: block; max-width: 760px; }
  .detail-facts div { grid-template-columns: 48px minmax(0, 1fr); padding: 8px 0; background: transparent; }
  .detail-actions { display: flex; flex-wrap: wrap; }
  .detail-actions .button { width: auto; min-width: 128px; }
  .playlist-block, .prose-card, .rank-section { padding: 19px; border-radius: 18px; }
  .episode-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }

  .player-card { margin-inline: 0; border: 1px solid var(--line); border-radius: 18px; }
  .player-meta { flex-direction: row; justify-content: space-between; align-items: center; gap: 20px; padding: 16px 18px; }
  .player-meta h1 { font-size: 21px; }
  .player-tools { width: auto; display: flex; flex-wrap: wrap; gap: 8px; }
  .player-tools button, .player-tools a { padding: 7px 10px; }

  .category-header { padding: 24px; border-radius: 20px; }
  .category-header h1 { font-size: 32px; }
  .search-sheet__panel { top: 50%; bottom: auto; width: min(560px, calc(100% - 28px)); max-height: min(74vh, 650px); padding: 20px; border: 1px solid var(--line); border-radius: 20px; transform: translate(-50%, -50%); }
  .category-sheet__grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .bottom-nav { display: none; }
  .toast { bottom: 36px; }
  .site-footer { padding: 32px 0 42px; }
}

@media (min-width: 1024px) {
  .media-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .detail-hero { grid-template-columns: 260px minmax(0, 1fr); gap: 18px 28px; padding: 24px; }
  .detail-hero h1 { font-size: clamp(32px, 4vw, 44px); }
  .episode-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); }
}

/* 极窄屏保护 */
@media (max-width: 359px) {
  .h5-shell { width: calc(100% - 14px); }
  .brand__text { max-width: 39vw; }
  .hero-card { min-height: 360px; }
  .hero-card__content { padding: 20px 15px; }
  .quick-categories a { padding: 10px 8px; }
  .detail-hero { grid-template-columns: 92px minmax(0, 1fr); gap: 10px; padding: 10px; }
  .detail-actions { grid-template-columns: minmax(0, 1fr) 82px; }
  .detail-actions .button { font-size: 13px; }
  .episode-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .player-tools { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}
