:root {
  color-scheme: light;
  --bg: #fff7f4;
  --surface: #ffffff;
  --surface-soft: #fff0f1;
  --surface-hot: #ffe4e8;
  --primary: #df174d;
  --primary-dark: #aa0b38;
  --primary-light: #f64b62;
  --title-ink: #680929;
  --ink: #2d1820;
  --muted: #756069;
  --quiet: #917b83;
  --line: #efd6dc;
  --line-strong: #e3b9c4;
  --success: #177852;
  --warning: #a25b00;
  --content: 1440px;
  --radius: 10px;
  --control: 7px;
  --shadow: 0 12px 30px rgba(139, 26, 61, .09);
}

* { box-sizing: border-box; }
html { background: var(--bg); }
body {
  min-width: 320px;
  min-height: 100dvh;
  color: var(--ink);
  background:
    radial-gradient(circle at 6% 2%, rgba(246, 75, 98, .08), transparent 24rem),
    var(--bg);
  font-family: ui-sans-serif, -apple-system, BlinkMacSystemFont, "SF Pro Text", "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 14px;
  line-height: 1.5;
  overflow-x: hidden;
  text-rendering: optimizeLegibility;
}
body::before {
  content: "";
  position: fixed;
  z-index: 600;
  inset: 0 0 auto;
  height: 3px;
  background: var(--primary);
  pointer-events: none;
}
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
button, a, input, select { -webkit-tap-highlight-color: transparent; }
img { display: block; width: 100%; }
:focus-visible { outline: 3px solid rgba(223, 23, 77, .25); outline-offset: 2px; }
.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;
}
.skip-link {
  position: fixed;
  z-index: 700;
  top: 10px;
  left: 12px;
  padding: 9px 13px;
  color: #fff;
  background: var(--primary-dark);
  border-radius: var(--control);
  transform: translateY(-180%);
}
.skip-link:focus { transform: translateY(0); }
.shell { width: min(calc(100% - 40px), var(--content)); margin-inline: auto; }

/* Header */
.site-header {
  position: relative;
  z-index: 200;
  color: var(--ink);
  background: rgba(255, 253, 251, .98);
  box-shadow: 0 10px 28px rgba(139, 26, 61, .1);
}
.header-main {
  display: grid;
  grid-template-columns: auto minmax(320px, 720px) auto;
  gap: 24px;
  align-items: center;
  min-height: 74px;
}
.brand { display: inline-flex; align-items: center; gap: 11px; min-width: max-content; }
.age-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  color: #fff;
  background: var(--primary);
  border-radius: var(--radius);
  box-shadow: 0 7px 16px rgba(223, 23, 77, .22);
  font-size: 12px;
  font-weight: 950;
}
.brand-copy { display: block; min-width: 0; line-height: 1; }
.brand-copy b {
  display: block;
  max-width: 220px;
  overflow: hidden;
  font-size: 25px;
  font-weight: 950;
  letter-spacing: -.045em;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.brand-copy small {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 8px;
  font-weight: 850;
  letter-spacing: .13em;
}
.header-search {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  min-height: 45px;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line-strong);
  border-radius: var(--control);
  box-shadow: 0 4px 14px rgba(139, 26, 61, .05);
}
.header-search:focus-within { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(223, 23, 77, .1); }
.header-search input {
  min-width: 0;
  padding: 0 15px;
  color: var(--ink);
  background: transparent;
  border: 0;
  outline: 0;
}
.header-search input::placeholder { color: #887078; opacity: 1; }
.header-search button {
  min-width: 112px;
  padding: 0 18px;
  color: #fff;
  background: var(--primary);
  border: 0;
  font-weight: 900;
}
.header-search button i { margin-right: 6px; }
.header-search button:hover { background: var(--primary-dark); }
.header-actions { display: flex; align-items: center; justify-content: flex-end; gap: 7px; min-width: max-content; }
.header-action,
.user-menu-toggle,
.register-button {
  min-height: 44px;
  padding: 0 11px;
  color: var(--muted);
  background: transparent;
  border: 1px solid transparent;
  border-radius: var(--control);
  font-size: 12px;
  font-weight: 800;
}
.header-action:hover,
.user-menu-toggle:hover,
.register-button:hover {
  color: var(--primary-dark);
  background: var(--surface-soft);
  border-color: var(--line);
}
.header-action i { margin-right: 5px; }
.header-action {
  color: var(--primary-dark);
  background: var(--surface-soft);
  border-color: var(--line-strong);
  font-weight: 900;
}
.auth-actions { display: flex; gap: 5px; }
.login-button,
.primary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 17px;
  color: #fff;
  background: var(--primary);
  border: 1px solid var(--primary);
  border-radius: var(--control);
  font-weight: 900;
}
.login-button:hover,
.primary-button:hover { background: var(--primary-dark); border-color: var(--primary-dark); }
.login-button:disabled,
.primary-button:disabled { color: var(--quiet); background: #f4e8eb; border-color: var(--line); cursor: not-allowed; }
.register-button { border-color: var(--line-strong); }
.primary-row {
  background: linear-gradient(100deg, #b80b3c 0%, var(--primary) 58%, #c72a49 100%);
  border-bottom: 3px solid var(--primary-light);
}
.primary-nav {
  display: flex;
  min-height: 56px;
  overflow: visible;
}
.unified-nav { scrollbar-width: none; }
.unified-nav::-webkit-scrollbar { display: none; }
.primary-nav > a,
.nav-group > a {
  position: relative;
  display: flex;
  flex: 1 1 78px;
  align-items: center;
  justify-content: center;
  min-width: 78px;
  padding: 0 9px;
  color: #fff;
  border-right: 1px solid rgba(255, 255, 255, .17);
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
}
.primary-nav > a:first-child { border-left: 1px solid rgba(255, 255, 255, .17); }
.primary-nav > a:hover,
.nav-group > a:hover { background: rgba(91, 0, 26, .22); }
.primary-nav > a.is-active,
.nav-group > a.is-active { background: rgba(91, 0, 26, .3); box-shadow: inset 0 -4px #fff; }
.nav-group { position: relative; display: flex; flex: 1 1 98px; min-width: 96px; }
.nav-group > a { width: 100%; }
.primary-nav > .nav-channel-link { background: rgba(255, 255, 255, .045); font-weight: 850; }
.primary-nav > .nav-search-link {
  gap: 6px;
  background: rgba(255, 255, 255, .1);
}
.nav-search-link i { font-size: 11px; }
.search-page-body .header-search { display: none; }
.search-page-body .header-main { grid-template-columns: auto minmax(0, 1fr); }
.search-page-body .header-actions { grid-column: 2; justify-self: end; }
.nav-group > a i { margin-left: 7px; font-size: 9px; transition: transform .18s ease; }
.nav-group:hover > a i,
.nav-group:focus-within > a i { transform: rotate(180deg); }
.mega-menu {
  position: absolute;
  z-index: 260;
  top: calc(100% + 1px);
  left: 50%;
  width: min(560px, 72vw);
  padding: 15px;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  border-top: 4px solid var(--primary);
  border-radius: 0 0 var(--radius) var(--radius);
  box-shadow: 0 18px 38px rgba(91, 7, 34, .2);
  opacity: 0;
  visibility: hidden;
  transform: translate(-50%, -6px);
  transition: opacity .16s ease, transform .16s ease, visibility .16s;
}
.nav-group:hover .mega-menu,
.nav-group:focus-within .mega-menu {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
}
.nav-group-last .mega-menu { right: 0; left: auto; transform: translate(0, -6px); }
.nav-group-last:hover .mega-menu,
.nav-group-last:focus-within .mega-menu { transform: translate(0, 0); }
.mega-menu-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.mega-menu-head b { font-size: 15px; }
.mega-menu-head a { color: var(--primary); font-size: 11px; font-weight: 850; }
.mega-menu-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 7px; padding-top: 10px; }
.mega-menu-grid a {
  display: flex;
  align-items: center;
  min-height: 36px;
  padding: 0 9px;
  color: #654650;
  background: var(--surface-soft);
  border: 1px solid transparent;
  border-radius: 5px;
  font-size: 11px;
  font-weight: 800;
}
.mega-menu-grid a:hover { color: #fff; background: var(--primary); border-color: var(--primary); }
.user-menu { position: relative; }
.user-menu-toggle { display: flex; align-items: center; gap: 7px; border-color: var(--line); }
.user-avatar {
  display: grid;
  place-items: center;
  width: 27px;
  height: 27px;
  color: #fff;
  background: var(--primary);
  border-radius: 50%;
}
.user-menu-panel {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: 170px;
  padding: 6px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.user-menu-panel a,
.user-menu-panel button {
  display: flex;
  align-items: center;
  width: 100%;
  min-height: 40px;
  padding: 0 11px;
  color: var(--ink);
  background: transparent;
  border: 0;
  border-radius: 6px;
  font-weight: 750;
  text-align: left;
}
.user-menu-panel i { width: 22px; color: var(--primary); }
.user-menu-panel a:hover,
.user-menu-panel button:hover { background: var(--surface-soft); }

/* Global content */
#main-content { min-height: 58vh; padding: 14px 0 72px; }
.hot-strip {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  min-height: 42px;
  margin-bottom: 13px;
  padding: 3px 0;
  scrollbar-width: none;
}
.hot-strip::-webkit-scrollbar { display: none; }
.hot-strip b { flex: none; color: var(--primary-dark); font-size: 12px; font-weight: 950; }
.hot-strip a {
  flex: none;
  padding: 6px 10px;
  color: #684b55;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--control);
  font-size: 12px;
  font-weight: 800;
}
.hot-strip a:hover { color: #fff; background: var(--primary); border-color: var(--primary); }
.content-section { margin-top: 36px; scroll-margin-top: 15px; }
.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 13px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--line);
}
.section-head h2 { margin: 0; font-size: 23px; line-height: 1.15; letter-spacing: -.018em; }
.section-head p { margin: 5px 0 0; color: var(--muted); font-size: 12px; }
.section-more { flex: none; color: var(--primary); font-size: 12px; font-weight: 900; }
.section-more:hover { color: var(--primary-dark); text-decoration: underline; text-underline-offset: 4px; }
.section-head.hot {
  min-height: 0;
  padding: 8px 0 9px 12px;
  color: var(--ink);
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line-strong);
  border-left: 4px solid var(--primary);
  border-radius: 0;
}
.section-head.hot p { color: var(--muted); }
.section-head.hot .section-more { color: var(--primary); }
.video-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 22px 12px;
}
.related-grid { align-items: stretch; }
.video-grid.featured { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 17px 10px; }
.video-card { display: flex; min-width: 0; }
.video-card > a { display: flex; flex-direction: column; width: 100%; height: 100%; }
.cover-frame {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: linear-gradient(125deg, #efd5dc, #fff0f1);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.cover-frame img {
  height: 100%;
  object-fit: cover;
  transition: transform .24s cubic-bezier(.16, 1, .3, 1), filter .24s ease;
}
.cover-frame img.is-broken { visibility: hidden; }
.video-card:hover .cover-frame img { transform: scale(1.035); filter: saturate(1.07); }
.video-card:hover .cover-frame { box-shadow: 0 8px 20px rgba(109, 25, 52, .12); }
.cover-badge {
  position: absolute;
  top: 8px;
  right: 8px;
  max-width: calc(100% - 16px);
  overflow: hidden;
  padding: 4px 7px;
  color: #fff;
  background: rgba(177, 10, 57, .9);
  border-radius: 4px;
  font-size: 10px;
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.cover-year {
  position: absolute;
  bottom: 7px;
  left: 7px;
  padding: 3px 6px;
  color: #fff;
  background: rgba(45, 24, 32, .74);
  border-radius: 4px;
  font-size: 10px;
  font-weight: 800;
}
.video-card h3 {
  display: -webkit-box;
  overflow: hidden;
  height: 2.96em;
  min-height: 2.96em;
  max-height: 2.96em;
  margin: 8px 0 5px;
  font-size: 13px;
  font-weight: 850;
  line-height: 1.48;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}
.video-card:hover h3 { color: var(--primary-dark); }
.card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  margin-top: auto;
  color: var(--quiet);
  font-size: 11px;
}
.card-meta strong {
  overflow: hidden;
  color: var(--primary);
  font-weight: 850;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.card-meta span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.home-lead { display: grid; grid-template-columns: minmax(0, 1fr) 310px; gap: 17px; align-items: start; }
.rank-panel {
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  border-top: 4px solid var(--primary);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.panel-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 49px;
  padding: 0 15px;
  border-bottom: 1px solid var(--line);
}
.panel-title h2 { margin: 0; font-size: 18px; }
.panel-title a { color: var(--primary); font-size: 11px; font-weight: 900; }
.rank-list { padding: 3px 14px 8px; }
.rank-item {
  display: grid;
  grid-template-columns: 28px 72px minmax(0, 1fr);
  gap: 8px;
  align-items: center;
  min-height: 69px;
  border-bottom: 1px solid var(--line);
}
.rank-item:last-child { border-bottom: 0; }
.rank-item > b { color: var(--primary); font-size: 18px; font-style: italic; }
.rank-item img { height: 46px; object-fit: cover; border-radius: 4px; }
.rank-item span {
  display: -webkit-box;
  overflow: hidden;
  font-size: 11px;
  font-weight: 850;
  line-height: 1.35;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}
.rank-item small { display: block; margin-top: 3px; color: var(--quiet); font-size: 9px; }
.empty-state {
  grid-column: 1 / -1;
  padding: 55px 20px;
  text-align: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.empty-state i { color: var(--primary-light); font-size: 38px; }
.empty-state h2 { margin: 13px 0 5px; font-size: 22px; }
.empty-state p { margin: 0 0 18px; color: var(--muted); }

/* Listing and search */
.page-shell { padding-top: 6px; }
.breadcrumb { display: flex; align-items: center; gap: 8px; min-height: 36px; overflow: hidden; color: var(--muted); font-size: 12px; white-space: nowrap; }
.breadcrumb > a,
.breadcrumb > span:not(.breadcrumb-current) { flex: none; }
.breadcrumb > .breadcrumb-current { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.breadcrumb a:hover { color: var(--primary); }
.breadcrumb-detail {
  min-height: 38px;
  margin-bottom: 4px;
  padding: 4px 0 6px;
  gap: 6px;
  border-bottom: 1px solid var(--line);
}
.breadcrumb-detail .breadcrumb-home,
.breadcrumb-detail .breadcrumb-category {
  display: inline-flex;
  align-items: center;
  min-width: 0;
  font-weight: 850;
}
.breadcrumb-detail .breadcrumb-home { gap: 5px; color: var(--primary-dark); }
.breadcrumb-detail .breadcrumb-home i { font-size: 10px; }
.breadcrumb-detail .breadcrumb-category {
  max-width: 180px;
  min-height: 24px;
  padding: 0 8px;
  color: #744050;
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: var(--control);
}
.breadcrumb-detail .breadcrumb-category span,
.breadcrumb-detail .breadcrumb-current {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.breadcrumb-detail .breadcrumb-current { color: #73515d; font-weight: 720; }
.breadcrumb-detail .breadcrumb-separator { flex: none; color: #d0a4b2; font-size: 8px; }
.page-intro {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 112px;
  margin: 8px 0 16px;
  padding: 22px 24px;
  background: linear-gradient(110deg, #fff, #fff0f1);
  border: 1px solid var(--line);
  border-left: 6px solid var(--primary);
  border-radius: var(--radius);
  box-shadow: 0 8px 22px rgba(139, 26, 61, .06);
}
.page-intro h1 { margin: 0; font-size: 31px; line-height: 1.05; letter-spacing: -.025em; }
.page-intro p { max-width: 66ch; margin: 9px 0 0; color: var(--muted); }
.page-intro > strong {
  flex: none;
  padding: 9px 12px;
  color: var(--primary-dark);
  background: #fff;
  border: 1px solid var(--line-strong);
  border-radius: var(--control);
  font-size: 12px;
}
.filter-panel {
  margin-bottom: 20px;
  padding: 16px 18px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 7px 18px rgba(139, 26, 61, .05);
}
.ranking-sort-panel {
  margin-bottom: 18px;
  padding: 0 0 10px;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  box-shadow: none;
}
.ranking-sort-panel .filter-toolbar { padding-bottom: 0; border-bottom: 0; }
.sort-strip-title { margin: 0; color: #5e3d49; font-size: 14px; font-weight: 900; }
.filter-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding-bottom: 13px;
  border-bottom: 1px solid var(--line);
}
.filter-toolbar h2 { margin: 0; font-size: 18px; }
.sort-form { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 12px; }
.sort-form select {
  min-height: 44px;
  padding: 0 32px 0 11px;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line-strong);
  border-radius: var(--control);
  outline: 0;
}
.sort-form select:focus { border-color: var(--primary); }
.filter-groups { display: grid; gap: 13px; padding-top: 14px; }
.filter-group { display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: 10px; align-items: start; }
.filter-group > b { padding-top: 7px; color: var(--muted); font-size: 12px; }
.filter-options { display: flex; flex-wrap: wrap; gap: 7px; }
.filter-choice { position: relative; }
.filter-choice input { position: absolute; opacity: 0; pointer-events: none; }
.filter-choice label {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 12px;
  color: #674a54;
  background: var(--surface-soft);
  border: 1px solid transparent;
  border-radius: var(--control);
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}
.filter-choice label:hover { border-color: var(--primary); }
.filter-choice input:checked + label { color: #fff; background: var(--primary); border-color: var(--primary); }
.list-page > .breadcrumb {
  min-height: 30px;
  margin: 0 0 8px;
  padding: 0 9px;
  color: #8d6470;
  background: rgba(255, 255, 255, .78);
  border: 1px solid var(--line);
  border-left: 3px solid var(--primary-light);
  border-radius: 7px;
  font-size: 11px;
}
.list-page > .breadcrumb a:first-child { color: var(--primary-dark); font-weight: 850; }
.list-page > .breadcrumb span { color: #d2a7b4; }
.results-head { display: flex; align-items: end; justify-content: space-between; gap: 15px; margin: 23px 0 13px; }
.results-head h2 { margin: 0; font-size: 22px; }
.results-head p { margin: 0; color: var(--muted); font-size: 12px; }
.section-head h2,
.panel-title h2,
.results-head h2 {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--title-ink);
  font-weight: 950;
  line-height: 1.08;
  letter-spacing: -.035em;
  text-shadow:
    0 1px 0 rgba(255, 255, 255, .95),
    0 5px 14px rgba(170, 11, 56, .13);
}
.section-head h2::before,
.panel-title h2::before,
.results-head h2::before {
  content: "";
  flex: none;
  width: 9px;
  height: 24px;
  background: linear-gradient(180deg, #ff6c8d 0%, var(--primary) 48%, #8d082f 100%);
  border: 1px solid rgba(255, 255, 255, .62);
  border-radius: 9px 2px 9px 2px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .72),
    0 5px 11px rgba(170, 11, 56, .24);
  transform: skewX(-11deg);
}
.page-intro h1,
.detail-summary h1,
.player-heading h1,
.profile-hero h1,
.info-hero h1,
.content-card h2,
.filter-toolbar h2,
.info-section h2,
.profile-panel h2,
.modal-card h2,
.history-panel h2,
.card-dialog h2 {
  color: var(--title-ink);
  font-weight: 950;
  letter-spacing: -.03em;
}
.pagination { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin-top: 34px; }
.pagination a,
.pagination span {
  display: grid;
  place-items: center;
  min-width: 44px;
  height: 44px;
  padding: 0 11px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--control);
  font-weight: 800;
}
.pagination a:hover,
.pagination .active { color: #fff; background: var(--primary); border-color: var(--primary); }
.pagination .disabled { color: var(--quiet); background: #f7edef; }
.page-search-form {
  margin-bottom: 26px;
  padding: 20px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.page-search-form label { display: block; margin-bottom: 8px; font-weight: 900; }
.page-search-form > div { display: grid; grid-template-columns: minmax(0, 1fr) auto; }
.page-search-form input {
  min-width: 0;
  height: 47px;
  padding: 0 14px;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line-strong);
  border-radius: var(--control) 0 0 var(--control);
  outline: 0;
}
.page-search-form input:focus { border-color: var(--primary); box-shadow: inset 0 0 0 1px var(--primary); }
.page-search-form button {
  min-width: 108px;
  color: #fff;
  background: var(--primary);
  border: 0;
  border-radius: 0 var(--control) var(--control) 0;
  font-weight: 900;
}
.category-chips { display: flex; gap: 7px; overflow-x: auto; margin-top: 12px; scrollbar-width: none; }
.category-chips::-webkit-scrollbar { display: none; }
.category-chips a {
  display: inline-flex;
  align-items: center;
  flex: none;
  min-height: 44px;
  padding: 7px 10px;
  color: var(--primary-dark);
  background: var(--surface-soft);
  border-radius: var(--control);
  font-size: 11px;
  font-weight: 800;
}

/* Detail */
.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(320px, .8fr);
  gap: 22px;
  align-items: stretch;
}
.detail-cover {
  position: relative;
  overflow: hidden;
  min-height: 430px;
  background: linear-gradient(120deg, #efd5dc, #fff0f1);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.detail-cover img { height: 100%; min-height: 430px; object-fit: cover; }
.detail-cover img.is-broken { visibility: hidden; }
.detail-cover-play {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  min-height: 430px;
  color: #fff;
  outline: 0;
}
.detail-cover-play::before {
  content: "";
  position: absolute;
  z-index: 2;
  inset: 0;
  background: rgba(62, 17, 34, .08);
  transition: background-color .2s ease;
  pointer-events: none;
}
.detail-cover-play img {
  display: block;
  width: 100%;
  transition: transform .25s ease;
}
.detail-cover-play-button {
  position: absolute;
  z-index: 3;
  top: 50%;
  left: 50%;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 4px;
  width: 92px;
  height: 92px;
  color: #fff;
  background: linear-gradient(145deg, var(--primary), var(--primary-dark));
  border: 3px solid rgba(255, 255, 255, .9);
  border-radius: 50%;
  box-shadow: 0 12px 32px rgba(79, 15, 39, .36);
  transform: translate(-50%, -50%);
  transition: transform .2s ease, box-shadow .2s ease;
}
.detail-cover-play-button i { margin-left: 3px; font-size: 25px; }
.detail-cover-play-button span { font-size: 11px; font-weight: 900; letter-spacing: .02em; }
.detail-cover-play:hover::before,
.detail-cover-play:focus-visible::before { background: rgba(62, 17, 34, .18); }
.detail-cover-play:hover img,
.detail-cover-play:focus-visible img { transform: scale(1.018); }
.detail-cover-play:hover .detail-cover-play-button,
.detail-cover-play:focus-visible .detail-cover-play-button {
  box-shadow: 0 15px 38px rgba(79, 15, 39, .46);
  transform: translate(-50%, -50%) scale(1.06);
}
.detail-cover-play:active .detail-cover-play-button {
  transform: translate(-50%, -50%) scale(.97);
}
.detail-cover-play:focus-visible {
  box-shadow: inset 0 0 0 4px rgba(255, 255, 255, .9);
}
.detail-cover::after {
  content: "";
  position: absolute;
  z-index: 1;
  inset: auto 0 0;
  height: 28%;
  background: linear-gradient(transparent, rgba(45, 24, 32, .42));
  pointer-events: none;
}
.detail-summary {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 27px;
  background: #fff;
  border: 1px solid var(--line);
  border-top: 5px solid var(--primary);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.eyebrow { color: var(--primary); font-size: 10px; font-weight: 950; letter-spacing: .13em; }
.detail-summary h1 { margin: 7px 0 12px; font-size: 31px; line-height: 1.2; letter-spacing: -.025em; }
.detail-tags { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 18px; }
.detail-tags span {
  padding: 5px 8px;
  color: var(--primary-dark);
  background: var(--surface-soft);
  border-radius: 4px;
  font-size: 11px;
  font-weight: 800;
}
.detail-meta-inline {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 0 0 18px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--control);
}
.detail-meta-inline > div { min-width: 0; padding: 9px 10px; }
.detail-meta-inline > div:nth-child(odd) { border-right: 1px solid var(--line); }
.detail-meta-inline > div:nth-child(-n + 2) { border-bottom: 1px solid var(--line); }
.detail-meta-inline dt { color: var(--muted); font-size: 10px; }
.detail-meta-inline dd { margin: 3px 0 0; overflow: hidden; font-size: 11px; font-weight: 850; text-overflow: ellipsis; white-space: nowrap; }
.detail-people { display: grid; gap: 9px; margin-bottom: 18px; }
.detail-people div { display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: 8px; }
.detail-people dt { color: var(--muted); }
.detail-people dd { display: flex; flex-wrap: wrap; gap: 5px; margin: 0; }
.person-chip { padding: 3px 7px; color: #654650; background: #f8edef; border-radius: 4px; font-size: 11px; }
.detail-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.detail-actions .primary-button { min-height: 44px; padding-inline: 21px; }
.secondary-button,
.local-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 14px;
  color: var(--primary-dark);
  background: #fff;
  border: 1px solid var(--line-strong);
  border-radius: var(--control);
  font-weight: 850;
}
.secondary-button:hover,
.local-action:hover,
.local-action.is-active { color: #fff; background: var(--primary); border-color: var(--primary); }
.detail-actions i { margin-right: 6px; }
.data-note { margin: 13px 0 0; color: var(--quiet); font-size: 10px; }
.content-card {
  margin-top: 20px;
  padding: 21px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 8px 20px rgba(139, 26, 61, .05);
}
.content-card h2 { margin: 0 0 13px; font-size: 21px; }
.content-card .rich-text { color: #604650; line-height: 1.85; overflow-wrap: anywhere; }
.source-switcher-card { padding: 0; }
.source-switcher-card > summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto 14px;
  gap: 10px;
  align-items: center;
  min-height: 54px;
  padding: 0 16px;
  color: var(--ink);
  cursor: pointer;
  list-style: none;
}
.source-switcher-card > summary::-webkit-details-marker { display: none; }
.source-switcher-title { min-width: 0; font-size: 16px; font-weight: 900; }
.source-switcher-title i { margin-right: 7px; color: var(--primary); }
.source-switcher-card > summary strong { overflow: hidden; color: var(--primary-dark); font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.source-switcher-card > summary > i { color: var(--muted); transition: transform .18s ease; }
.source-switcher-card[open] > summary > i { transform: rotate(180deg); }
.source-switcher-content { padding: 0 16px 16px; border-top: 1px solid var(--line); }
.source-switcher-content .source-tabs { padding-top: 12px; }
.source-tabs { display: flex; gap: 7px; overflow-x: auto; padding-bottom: 9px; scrollbar-width: none; }
.source-tabs::-webkit-scrollbar { display: none; }
.source-tab {
  flex: none;
  min-height: 44px;
  padding: 0 13px;
  color: var(--primary-dark);
  background: var(--surface-soft);
  border: 1px solid transparent;
  border-radius: var(--control);
  font-weight: 850;
}
.source-tab:hover,
.source-tab[aria-selected="true"] { color: #fff; background: var(--primary); }
.episode-panel { padding-top: 10px; border-top: 1px solid var(--line); }
.episode-list { display: flex; flex-wrap: wrap; gap: 7px; max-height: 300px; overflow-y: auto; }
.episode-list a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  min-width: 72px;
  max-width: 220px;
  overflow: hidden;
  padding: 8px 10px;
  color: #654650;
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: var(--control);
  font-size: 11px;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.episode-list a:hover,
.episode-list a.active { color: #fff; background: var(--primary); border-color: var(--primary); }
.meta-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 14px 0 0;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.meta-grid > div { min-width: 0; padding: 12px 14px; border-right: 1px solid var(--line); }
.meta-grid > div:last-child { border-right: 0; }
.meta-grid dt { color: var(--muted); font-size: 10px; }
.meta-grid dd { margin: 4px 0 0; overflow: hidden; font-weight: 850; text-overflow: ellipsis; white-space: nowrap; }
/* Player */
.player-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin: 7px 0 13px; }
.player-heading h1 { margin: 0; font-size: 25px; line-height: 1.25; }
.player-heading p { margin: 5px 0 0; color: var(--muted); }
.player-stage {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: #1f0f15;
  border: 1px solid #5f3040;
  border-radius: var(--radius);
  box-shadow: 0 16px 36px rgba(68, 9, 27, .2);
}
.player-stage video { width: 100%; height: 100%; background: #1f0f15; object-fit: contain; }
.access-message {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 25px;
  color: #fff;
  text-align: center;
  background: linear-gradient(135deg, #3b1422, #7e1436);
}
.access-message i { color: #ffd166; font-size: 44px; }
.access-message h2 { margin: 12px 0 5px; }
.access-message p { margin: 0 0 17px; color: #f6dfe6; }
.episode-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 10px;
  padding: 11px 13px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.episode-nav {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 13px;
  color: var(--primary-dark);
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: var(--control);
  font-weight: 850;
}
.episode-nav:hover { color: #fff; background: var(--primary); }
.episode-nav.disabled { color: var(--quiet); pointer-events: none; opacity: .65; }
.episode-controls > span { color: var(--muted); font-size: 12px; text-align: center; }
.player-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 10px;
}
.player-toolbar .detail-actions { justify-content: flex-end; }
.next-dialog {
  position: fixed;
  z-index: 600;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(63, 14, 31, .56);
}
.next-dialog section { width: min(100%, 410px); padding: 24px; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); text-align: center; }
.next-dialog h2 { margin: 0 0 7px; }
.next-dialog p { color: var(--muted); }
.next-dialog div { display: flex; justify-content: center; gap: 8px; }

/* Profile */
.profile-hero {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 20px;
  align-items: center;
  margin: 8px 0 18px;
  padding: 23px;
  background: linear-gradient(115deg, #fff, #ffe9ec);
  border: 1px solid var(--line);
  border-left: 6px solid var(--primary);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.profile-avatar {
  display: grid;
  place-items: center;
  width: 78px;
  height: 78px;
  color: #fff;
  background: var(--primary);
  border-radius: 50%;
  font-size: 28px;
}
.profile-hero h1 { margin: 0 0 6px; font-size: 28px; }
.profile-hero > div { min-width: 0; }
.profile-hero h1 { max-width: 100%; overflow-wrap: anywhere; }
.profile-identity { display: flex; min-width: 0; flex-wrap: wrap; gap: 10px 16px; color: var(--muted); font-size: 12px; }
.profile-identity span,
.profile-identity b { min-width: 0; overflow-wrap: anywhere; }
.profile-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 7px; }
.stats-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-bottom: 18px; }
.stat-card { padding: 17px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.stat-card strong { display: block; color: var(--primary); font-size: 25px; line-height: 1; }
.stat-card span { display: block; margin-top: 7px; color: var(--muted); font-size: 11px; font-weight: 750; }
.profile-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.profile-panel { min-width: 0; padding: 18px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 7px 18px rgba(139, 26, 61, .05); }
.profile-panel header { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.profile-panel h2 { margin: 0; font-size: 19px; }
.profile-panel header button { min-height: 44px; padding: 0 8px; color: var(--primary); background: transparent; border: 0; font-size: 11px; font-weight: 850; }
.stored-list { display: grid; gap: 8px; padding-top: 10px; }
.stored-item {
  display: grid;
  grid-template-columns: 105px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 8px;
  background: var(--surface-soft);
  border-radius: var(--control);
}
.stored-item img { height: 64px; object-fit: cover; border-radius: 5px; }
.stored-item b { display: -webkit-box; overflow: hidden; font-size: 12px; line-height: 1.4; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.stored-item small { display: block; margin-top: 4px; color: var(--muted); font-size: 10px; }
.stored-item button { width: 44px; height: 44px; color: var(--primary); background: #fff; border: 1px solid var(--line); border-radius: 50%; }
.stored-empty { padding: 42px 15px; color: var(--muted); text-align: center; }
.stored-empty i { display: block; margin-bottom: 9px; color: var(--primary-light); font-size: 30px; }
.card-dialog {
  width: min(calc(100% - 32px), 430px);
  padding: 0;
  background: transparent;
  border: 0;
}
.card-dialog::backdrop { background: rgba(91, 7, 34, .46); }
.card-dialog form { padding: 24px; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); }
.card-dialog h2 { margin: 0 0 5px; }
.card-dialog p { margin: 0 0 15px; color: var(--muted); }
.card-code-label { display: block; margin-bottom: 6px; font-size: 12px; font-weight: 850; }
.card-dialog input { width: 100%; height: 44px; padding: 0 12px; border: 1px solid var(--line-strong); border-radius: var(--control); outline: 0; text-transform: uppercase; }
.card-dialog input:focus { border-color: var(--primary); }
.dialog-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 14px; }

/* Information pages */
.info-page { padding-bottom: 12px; }
.info-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 132px;
  margin: 8px 0 16px;
  padding: 24px 26px;
  background: linear-gradient(110deg, #fff, #ffe9ed);
  border: 1px solid var(--line);
  border-left: 6px solid var(--primary);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.info-kicker { color: var(--primary); font-size: 10px; font-weight: 950; letter-spacing: .12em; }
.info-hero h1 { margin: 5px 0 4px; font-size: 32px; line-height: 1.08; letter-spacing: -.025em; }
.info-hero p { margin: 0; color: var(--muted); }
.info-hero > i { flex: none; color: var(--primary); font-size: 52px; opacity: .18; }
.info-layout { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 16px; align-items: start; }
.info-nav {
  position: sticky;
  top: 14px;
  padding: 16px;
  background: #fff;
  border: 1px solid var(--line);
  border-top: 4px solid var(--primary);
  border-radius: var(--radius);
  box-shadow: 0 7px 18px rgba(139, 26, 61, .05);
}
.info-nav > strong { display: block; margin-bottom: 9px; font-size: 14px; }
.info-nav nav { display: grid; gap: 5px; }
.info-nav a {
  display: flex;
  align-items: center;
  min-height: 39px;
  padding: 0 10px;
  color: var(--muted);
  background: var(--surface-soft);
  border: 1px solid transparent;
  border-radius: var(--control);
  font-size: 11px;
  font-weight: 800;
}
.info-nav a:hover,
.info-nav a:focus-visible { color: #fff; background: var(--primary); border-color: var(--primary); }
.info-content { display: grid; min-width: 0; gap: 14px; }
.info-content-wide { max-width: 1100px; margin-inline: auto; }
.info-page > .info-section { margin-top: 14px; }
.info-section {
  scroll-margin-top: 16px;
  padding: 22px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 7px 18px rgba(139, 26, 61, .05);
}
.info-section-heading { display: flex; align-items: center; gap: 9px; margin-bottom: 12px; }
.info-section-heading > i { color: var(--primary); font-size: 18px; }
.info-section h2 { margin: 0 0 12px; font-size: 21px; }
.info-section-heading h2 { margin: 0; }
.info-section h3 { margin: 0 0 5px; font-size: 15px; }
.info-section p { margin: 0 0 12px; color: #604650; line-height: 1.8; overflow-wrap: anywhere; }
.info-section p:last-child { margin-bottom: 0; }
.info-section ul { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px 18px; margin: 10px 0 13px; padding: 0; list-style: none; }
.info-section li { position: relative; padding-left: 16px; color: #604650; }
.info-section li::before { content: ""; position: absolute; top: .68em; left: 2px; width: 5px; height: 5px; background: var(--primary); border-radius: 50%; }
.info-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.info-grid-three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.info-card {
  min-width: 0;
  padding: 16px;
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.info-card p { margin: 0; font-size: 12px; line-height: 1.65; }
.info-card small { display: block; margin-top: 5px; color: var(--muted); overflow-wrap: anywhere; }
.info-card-icon {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  margin-bottom: 10px;
  color: #fff;
  background: var(--primary);
  border-radius: var(--control);
}
.info-feature-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
.info-feature { display: grid; grid-template-columns: 24px minmax(0, 1fr); gap: 9px; padding: 13px; background: var(--surface-soft); border-radius: var(--control); }
.info-feature > i { margin-top: 2px; color: var(--primary); font-size: 17px; }
.info-feature p { margin: 0; font-size: 12px; line-height: 1.65; }
.info-actions { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 7px; }
.info-actions span { min-width: 0; padding: 10px; overflow-wrap: anywhere; background: var(--surface-soft); border-radius: var(--control); font-size: 11px; font-weight: 750; }
.info-faq { grid-template-columns: repeat(2, minmax(0, 1fr)); }

/* Footer, modal, history */
.site-footer { background: #f8e9eb; border-top: 1px solid var(--line); }
.footer-grid { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 40px; padding: 34px 0 28px; }
.footer-brand .age-mark { width: 35px; height: 35px; }
.footer-brand .brand-copy b { font-size: 21px; }
.footer-about p { max-width: 430px; color: var(--muted); font-size: 11px; }
.footer-grid nav { display: flex; flex-direction: column; gap: 5px; }
.footer-grid nav b { margin-bottom: 4px; font-size: 12px; }
.footer-grid nav a,
.footer-grid nav button {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 0;
  color: var(--muted);
  background: transparent;
  border: 0;
  font-size: 11px;
  text-align: left;
}
.footer-grid nav a:hover,
.footer-grid nav button:hover { color: var(--primary); }
.footer-bottom { display: flex; justify-content: space-between; padding: 14px 0 20px; color: var(--muted); border-top: 1px solid var(--line); font-size: 11px; }
.mobile-dock { display: none; }
.modal {
  position: fixed;
  z-index: 650;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 20px;
}
.modal-backdrop { position: absolute; inset: 0; background: rgba(91, 7, 34, .5); }
.modal-card {
  position: relative;
  width: min(100%, 420px);
  max-height: calc(100dvh - 40px);
  overflow-y: auto;
  padding: 26px;
  background: #fff;
  border-top: 5px solid var(--primary);
  border-radius: var(--radius);
  box-shadow: 0 22px 60px rgba(91, 7, 34, .25);
}
.modal-card h2 { margin: 6px 0 4px; font-size: 25px; }
.modal-card > p { margin: 0 0 17px; color: var(--muted); }
.modal-kicker { color: var(--primary); font-size: 10px; font-weight: 950; letter-spacing: .12em; }
.modal-close { position: absolute; top: 11px; right: 11px; width: 34px; height: 34px; color: var(--muted); background: var(--surface-soft); border: 0; border-radius: 50%; font-size: 22px; }
.modal-card form { display: grid; gap: 8px; }
.modal-card label { margin-top: 3px; font-size: 12px; font-weight: 850; }
.modal-card input { width: 100%; height: 43px; padding: 0 12px; color: var(--ink); background: #fff; border: 1px solid var(--line-strong); border-radius: var(--control); outline: 0; }
.modal-card input:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(223, 23, 77, .08); }
.form-message { min-height: 19px; margin: 0; color: var(--primary-dark); font-size: 11px; font-weight: 750; }
.text-button { width: 100%; margin-top: 10px; color: var(--primary); background: transparent; border: 0; font-weight: 800; }
.history-drawer { position: fixed; z-index: 640; inset: 0; }
.history-backdrop {
  position: absolute;
  inset: 0;
  width: 100%;
  background: rgba(91, 7, 34, .4);
  -webkit-backdrop-filter: blur(2px);
  backdrop-filter: blur(2px);
  border: 0;
}
.history-panel {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  display: flex;
  flex-direction: column;
  width: min(100%, 460px);
  padding: 0 20px 18px;
  background: #fff9fa;
  border-top: 4px solid var(--primary);
  border-left: 1px solid var(--line);
  box-shadow: -20px 0 50px rgba(91, 7, 34, .2);
  outline: 0;
}
.history-panel > header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-inline: -20px;
  padding: 16px 20px 13px;
  background: #fff;
  border-bottom: 1px solid var(--line);
}
.history-back {
  display: none;
  align-items: center;
  gap: 6px;
  min-height: 34px;
  padding: 0 9px;
  color: var(--primary-dark);
  background: #fff;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  font-size: 11px;
  font-weight: 900;
}
.history-title { min-width: 0; }
.history-panel h2 { margin: 0 0 2px; font-size: 23px; line-height: 1.1; }
.history-title p { margin: 0; color: var(--muted); font-size: 11px; }
.history-close {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  flex: none;
  color: var(--muted);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  font-size: 17px;
}
.history-close:hover { color: var(--primary); border-color: var(--line-strong); }
.history-overview {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 38px;
  margin-top: 10px;
  padding: 0 2px;
  color: #76505c;
  border-bottom: 1px solid var(--line);
  font-size: 10px;
}
.history-overview strong { color: var(--ink); font-size: 12px; }
.history-overview [data-history-count] { color: var(--primary); font-size: 16px; }
.history-overview > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.history-search {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  align-items: center;
  gap: 6px;
  min-height: 38px;
  margin-top: 9px;
  padding: 0 10px;
  color: var(--muted);
  background: #fff;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
}
.history-search:focus-within { color: var(--primary); border-color: var(--primary); box-shadow: 0 0 0 3px rgba(223, 23, 77, .07); }
.history-search input { width: 100%; min-width: 0; color: var(--ink); background: transparent; border: 0; outline: 0; font-size: 12px; }
.history-search input::placeholder { color: #9b7d86; }
.history-list-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 30px;
  padding: 7px 2px 3px;
  color: var(--ink);
  font-size: 11px;
  font-weight: 900;
}
.history-list-heading small { color: var(--muted); font-size: 10px; font-weight: 750; }
.history-list {
  display: grid;
  align-content: start;
  grid-auto-rows: max-content;
  flex: 1;
  min-height: 0;
  gap: 7px;
  overflow-y: auto;
  padding: 1px 2px 12px;
  scrollbar-color: #e7a8b8 transparent;
  scrollbar-width: thin;
}
.history-entry {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 32px;
  align-items: center;
  gap: 8px;
  min-width: 0;
  min-height: 102px;
  padding: 8px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 9px;
}
.history-entry-main {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  min-width: 0;
  color: inherit;
}
.history-thumb {
  position: relative;
  display: grid;
  place-items: center;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  color: var(--primary-light);
  background: linear-gradient(125deg, #efd5dc, #fff0f1);
  border: 1px solid var(--line);
  border-radius: 7px;
}
.history-thumb img { width: 100%; height: 100%; object-fit: cover; }
.history-thumb-action {
  position: absolute;
  right: 6px;
  bottom: 6px;
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  color: #fff;
  background: rgba(184, 11, 60, .92);
  border: 1px solid rgba(255, 255, 255, .76);
  border-radius: 50%;
  box-shadow: 0 4px 10px rgba(91, 7, 34, .16);
  font-size: 8px;
}
.history-entry-copy { display: grid; min-width: 0; }
.history-entry b {
  display: -webkit-box;
  overflow: hidden;
  font-size: 12px;
  line-height: 1.38;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}
.history-entry small { display: block; margin-top: 5px; color: var(--muted); font-size: 10px; }
.history-entry-cta {
  display: inline-flex;
  align-items: center;
  justify-self: start;
  gap: 5px;
  min-height: 20px;
  margin-top: 5px;
  padding: 0;
  color: var(--primary);
  background: transparent;
  font-size: 10px;
  font-weight: 900;
}
.history-entry-cta i { font-size: 8px; }
.history-progress { display: grid; gap: 4px; margin-top: 6px; color: var(--muted); font-size: 9px; }
.history-progress > span:last-child { display: block; height: 3px; overflow: hidden; background: #f0dbe0; border-radius: 3px; }
.history-progress > span:last-child > span { display: block; height: 100%; background: var(--primary); border-radius: inherit; }
.history-remove {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  border-radius: 7px;
  font-size: 10px;
  font-weight: 850;
}
.history-remove { width: 30px; color: #8d6672; background: #fff; border: 1px solid var(--line); }
.history-entry-main:active { transform: translateY(1px); }
.history-remove:active { transform: translateY(1px); }
.history-list .stored-empty {
  min-height: 220px;
  align-content: center;
  border: 0;
  background: transparent;
}
.history-list .stored-empty h3 { margin: 0; color: var(--ink); font-size: 14px; }
.history-list .stored-empty p { margin: 5px 0 0; font-size: 11px; }
.history-panel > footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}
.history-panel > footer p {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  color: var(--muted);
  font-size: 10px;
}
.history-panel > footer p i { color: var(--primary); }
.history-clear {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 38px;
  padding: 0 13px;
  color: var(--primary-dark);
  background: #fff;
  border: 1px solid #e8b5c1;
  border-radius: 8px;
  font-size: 11px;
  font-weight: 900;
}
.history-clear:hover { color: #fff; background: var(--primary); border-color: var(--primary); }
.history-clear:disabled { color: #aa9199; background: #f7edef; border-color: var(--line); cursor: not-allowed; }
.toast {
  position: fixed;
  z-index: 800;
  right: 18px;
  bottom: 18px;
  max-width: min(360px, calc(100% - 36px));
  padding: 12px 15px;
  color: #fff;
  background: var(--primary-dark);
  border-radius: var(--control);
  box-shadow: 0 12px 30px rgba(91, 7, 34, .22);
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition: opacity .2s ease, transform .2s ease;
}
.toast.show { opacity: 1; transform: translateY(0); }
.toast.success { background: var(--success); }
.toast.warning { background: var(--warning); }
.toast.error { background: #a10b34; }

@media (max-width: 1180px) {
  .shell { width: min(calc(100% - 28px), var(--content)); }
  .header-main { grid-template-columns: auto minmax(250px, 1fr) auto; gap: 13px; }
  .register-button { display: none; }
  .unified-nav {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    grid-auto-rows: 46px;
    min-height: 92px;
    overflow: visible;
  }
  .unified-nav > a,
  .unified-nav > .nav-group { min-width: 0; flex: initial; }
  .unified-nav > a,
  .unified-nav > .nav-group > a { min-width: 0; padding-inline: 6px; border-bottom: 1px solid rgba(255, 255, 255, .14); font-size: 11px; }
  .unified-nav .mega-menu { display: none; }
  .home-lead { grid-template-columns: minmax(0, 1fr) 280px; }
  .video-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .home-page > .content-section .video-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .video-grid.featured { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (min-width: 821px) {
  .home-page > .content-section .home-channel-grid.home-grid-count-10 {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
  .home-page > .content-section .home-channel-grid.home-grid-count-8 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .home-page > .content-section .home-channel-grid.home-grid-count-9,
  .home-page > .content-section .home-channel-grid.home-grid-count-6 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 820px) {
  body { padding-bottom: calc(55px + env(safe-area-inset-bottom)); font-size: 13px; }
  .shell { width: min(calc(100% - 24px), var(--content)); }
  .header-main {
    grid-template-columns: auto auto;
    justify-content: space-between;
    gap: 6px;
    min-height: 0;
    padding: 7px 0;
  }
  .brand { gap: 7px; }
  .age-mark { width: 34px; height: 34px; border-radius: 8px; }
  .header-main .brand-copy b { max-width: 76px; font-size: 17px; letter-spacing: -.035em; }
  .brand-copy small { display: none; }
  .header-actions { min-width: 0; }
  .auth-actions { gap: 0; }
  .login-button { min-height: 36px; padding-inline: 11px; }
  .header-search { display: none; }
  .header-search input { min-width: 0; padding-inline: 9px; font-size: 11px; }
  .header-search button { min-width: 42px; padding: 0 8px; }
  .header-search button span { display: none; }
  .header-search button i { margin: 0; }
  .header-action, .register-button, .user-menu { display: none !important; }
  .header-actions,
  .search-page-body .header-actions { grid-column: auto; justify-self: end; }
  .primary-row {
    padding: 7px 0 8px;
    background: #fff7f8;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line-strong);
  }
  .unified-nav {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-auto-rows: auto;
    width: min(calc(100% - 20px), var(--content));
    min-height: 0;
    gap: 5px;
    overflow: visible;
    padding: 0;
  }
  .unified-nav > .nav-group { display: none; }
  .unified-nav > .nav-favorite-link { display: none; }
  .unified-nav > a {
    display: flex;
    width: 100%;
    flex: none;
    min-width: 0;
    min-height: 32px;
    padding: 0 5px;
    color: #8b2c49;
    background: #fff;
    border: 1px solid #efc4cf;
    border-radius: 7px;
    box-shadow: 0 1px 2px rgba(139, 26, 61, .06), inset 0 1px rgba(255, 255, 255, .7);
    font-size: 11px;
    transition: color .16s ease, background-color .16s ease, border-color .16s ease, transform .16s ease;
  }
  .unified-nav > a.nav-channel-link { background: #fff; }
  .unified-nav > a.nav-search-link {
    gap: 5px;
    color: #fff;
    background: linear-gradient(100deg, var(--primary) 0%, #c70d42 100%);
    border-color: var(--primary);
    box-shadow: 0 4px 11px rgba(184, 11, 60, .2);
    font-weight: 950;
  }
  .unified-nav > a.nav-search-link:hover,
  .unified-nav > a.nav-search-link.is-active {
    color: #fff;
    background: linear-gradient(100deg, var(--primary-dark) 0%, #90082d 100%);
    border-color: var(--primary-dark);
  }
  .unified-nav > a.nav-search-link i {
    display: grid;
    place-items: center;
    width: 20px;
    height: 20px;
    background: rgba(255, 255, 255, .16);
    border-radius: 6px;
    font-size: 10px;
  }
  .unified-nav > a:hover { color: var(--primary-dark); background: #fff1f4; }
  .unified-nav > a:active { transform: translateY(1px) scale(.99); }
  .unified-nav > a.is-active {
    color: #fff;
    background: var(--primary);
    border-color: var(--primary);
    box-shadow: 0 4px 10px rgba(184, 11, 60, .18);
  }
  #main-content { padding-top: 0; padding-bottom: 34px; }
  .page-shell { padding-top: 0; }
  .hot-strip { display: none; }
  .home-lead { display: block; }
  .home-lead .rank-panel { margin-top: 18px; }
  .content-section { margin-top: 20px; }
  .section-head { align-items: center; gap: 8px; margin-bottom: 10px; padding-bottom: 7px; }
  .section-head h2 { font-size: 18px; }
  .section-more {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 28px;
    padding: 0 8px;
    background: #fff;
    border: 1px solid var(--line-strong);
    border-radius: 7px;
    font-size: 10.5px;
    text-decoration: none;
  }
  .section-head.hot {
    position: relative;
    min-height: 36px;
    padding: 3px 0 7px 10px;
    border-bottom-color: #f4d2db;
    border-left: 4px solid var(--primary);
    border-radius: 0;
  }
  .section-head.hot > div { display: flex; align-items: center; min-width: 0; }
  .section-head.hot h2 {
    position: relative;
    max-width: 220px;
    overflow: hidden;
    color: var(--title-ink);
    font-size: 18px;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .section-head.hot h2::before {
    content: "";
    display: inline-block;
    width: 5px;
    height: 5px;
    margin: 0 6px 2px 0;
    background: var(--primary);
    border-radius: 50%;
    vertical-align: middle;
  }
  .section-head.hot .section-more {
    min-height: 0;
    padding: 0;
    color: var(--primary);
    background: transparent;
    border: 0;
    border-radius: 0;
    font-size: 11px;
  }
  .section-head.hot .section-more::after { content: "→"; margin-left: 4px; }
  .section-head p { display: none; }
  .video-grid,
  .video-grid.featured,
  .home-page > .content-section .video-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 8px; }
  .related-grid > .video-card:last-child:nth-child(odd):not(:first-child) { display: none; }
  .cover-frame { border-radius: 6px; }
  .video-card h3 { height: 2.7em; min-height: 2.7em; max-height: 2.7em; margin: 5px 0 3px; font-size: 12px; line-height: 1.35; }
  .card-meta span { display: none; }
  .rank-panel {
    overflow: visible;
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }
  .panel-title {
    min-height: 0;
    padding: 0 0 8px;
    border-bottom: 2px solid var(--line);
  }
  .panel-title h2 { font-size: 18px; }
  .panel-title a {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 0 8px;
    background: #fff;
    border: 1px solid var(--line-strong);
    border-radius: 7px;
    font-size: 10px;
  }
  .rank-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 7px;
    overflow: visible;
    padding: 8px 0 0;
  }
  .rank-item {
    grid-template-columns: 20px 48px minmax(0, 1fr);
    gap: 5px;
    min-height: 58px;
    padding: 5px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(139, 26, 61, .055);
  }
  .rank-item:nth-child(n + 5) { display: none; }
  .rank-item > b {
    display: grid;
    place-items: center;
    width: 20px;
    height: 20px;
    color: #fff;
    background: var(--primary);
    border-radius: 6px;
    font-size: 10px;
    font-style: normal;
  }
  .rank-item img { height: 36px; border-radius: 5px; }
  .rank-item span { font-size: 10px; line-height: 1.28; }
  .rank-item small { display: none; }
  .page-intro { min-height: 0; margin: 3px 0 8px; padding: 9px 10px; border-left-width: 3px; box-shadow: none; }
  .page-intro h1 { font-size: 20px; }
  .page-intro p { display: none; }
  .page-intro > strong { display: none; }
  .list-page > .page-intro,
  .search-page > .page-intro { display: none; }
  .list-page > .breadcrumb {
    display: none;
  }
  .filter-panel {
    margin-bottom: 11px;
    padding: 9px 11px 10px;
    border-left: 3px solid var(--primary-light);
    border-radius: 9px;
    box-shadow: none;
  }
  .filter-toolbar {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 8px;
    padding-bottom: 8px;
  }
  .filter-toolbar h2 {
    display: flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
    color: #4b2f39;
    font-size: 15px;
    font-weight: 900;
  }
  .filter-toolbar h2::before {
    content: "";
    width: 4px;
    height: 16px;
    flex: none;
    background: var(--primary);
    border-radius: 2px;
  }
  .sort-form { flex: none; gap: 6px; }
  .sort-form label { color: #9a7180; font-size: 11px; font-weight: 800; }
  .sort-form select {
    width: 118px;
    min-height: 36px;
    max-width: none;
    padding: 0 25px 0 9px;
    color: #4b2f39;
    background: #fff;
    border-color: #e3b9c4;
    border-radius: 8px;
    font-size: 11px;
    font-weight: 800;
  }
  .ranking-sort-panel {
    margin-bottom: 12px;
    padding: 0 0 8px;
    border: 0;
    border-bottom: 1px solid #f0d6dd;
    border-radius: 0;
  }
  .ranking-sort-panel .filter-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 0;
    border: 0;
  }
  .ranking-sort-panel .sort-strip-title {
    color: #5e3d49;
    font-size: 13px;
  }
  .ranking-sort-panel .sort-form { gap: 0; }
  .ranking-sort-panel .sort-form label { display: none; }
  .ranking-sort-panel .sort-form select {
    width: 132px;
    min-height: 34px;
    padding-inline: 9px 24px;
    border-radius: 8px;
  }
  .filter-groups { gap: 7px; padding-top: 7px; }
  .filter-group { grid-template-columns: 1fr; gap: 3px; }
  .filter-group > b { padding-top: 0; }
  .filter-options { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4px; width: 100%; overflow: visible; padding: 0; }
  .filter-choice { min-width: 0; }
  .filter-choice label { justify-content: center; width: 100%; min-height: 30px; padding: 0 3px; overflow: hidden; border-radius: 5px; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
  .results-head { align-items: center; flex-direction: row; gap: 8px; margin: 10px 0 8px; }
  .results-head h2 { min-width: 0; overflow: hidden; font-size: 18px; text-overflow: ellipsis; white-space: nowrap; }
  .results-head p { flex: none; }
  .page-search-form { margin-bottom: 11px; padding: 9px; box-shadow: none; }
  .page-search-form label { margin-bottom: 6px; font-size: 12px; }
  .page-search-form input { height: 38px; }
  .page-search-form button { min-width: 70px; }
  .page-search-form > .category-chips { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; overflow: visible; }
  .category-chips a { justify-content: center; width: 100%; min-width: 0; min-height: 30px; padding: 0 3px; border-radius: 5px; font-size: 10px; text-align: center; }
  .pagination { flex-wrap: nowrap; gap: 4px; margin-top: 22px; }
  .pagination a,
  .pagination span { flex: 1 1 0; min-width: 0; height: 42px; padding: 0 3px; font-size: 11px; }
  .breadcrumb { min-height: 30px; gap: 5px; font-size: 11px; }
  .breadcrumb-detail {
    min-height: 30px;
    margin-bottom: 2px;
    padding: 2px 0 5px;
    gap: 4px;
    font-size: 10.5px;
  }
  .breadcrumb-detail .breadcrumb-home { gap: 4px; }
  .breadcrumb-detail .breadcrumb-home i { font-size: 9px; }
  .breadcrumb-detail .breadcrumb-category {
    max-width: 78px;
    min-height: 21px;
    padding: 0 6px;
    border-radius: 6px;
  }
  .breadcrumb-detail .breadcrumb-separator { font-size: 7px; }
  .detail-layout { grid-template-columns: 1fr; gap: 10px; }
  .detail-cover {
    min-height: 180px;
    max-height: none;
    aspect-ratio: 16 / 9;
  }
  .detail-cover-play {
    min-height: 180px;
    max-height: none;
    aspect-ratio: 16 / 9;
  }
  .detail-cover img,
  .detail-cover-play img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    min-height: 0;
    max-height: none;
    aspect-ratio: auto;
    object-fit: cover;
  }
  .detail-cover-play-button { width: 72px; height: 72px; }
  .detail-cover-play-button i { font-size: 20px; }
  .detail-summary { justify-content: flex-start; padding: 9px 11px; border-top-width: 3px; box-shadow: none; }
  .detail-summary > .eyebrow { display: none; }
  .detail-summary h1 {
    display: -webkit-box;
    max-height: 46px;
    overflow: hidden;
    margin: 0 0 6px;
    font-size: 18px;
    line-height: 1.28;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }
  .detail-tags { flex-wrap: nowrap; gap: 4px; max-height: 24px; margin-bottom: 6px; overflow: hidden; }
  .detail-tags span { flex: none; padding: 3px 6px; font-size: 10px; }
  .detail-meta-inline { display: none; }
  .detail-people { gap: 3px; max-height: 24px; margin-bottom: 6px; overflow: hidden; }
  .detail-people div { grid-template-columns: 38px minmax(0, 1fr); gap: 5px; align-items: center; }
  .detail-people dd { flex-wrap: nowrap; overflow: hidden; }
  .person-chip { flex: none; max-width: 126px; overflow: hidden; padding: 2px 5px; text-overflow: ellipsis; white-space: nowrap; }
  .detail-actions { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 5px; }
  .detail-actions > * { width: 100%; min-width: 0; min-height: 38px; padding: 0 4px; font-size: 10px; }
  .detail-actions i { margin-right: 4px; }
  .data-note { display: none; }
  .content-card { margin-top: 14px; padding: 14px; }
  .content-card h2 { margin-bottom: 9px; font-size: 18px; }
  .content-card .rich-text { line-height: 1.7; }
  .player-heading { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 8px; margin: 2px 0 8px; }
  .player-heading .eyebrow,
  .player-heading p { display: none; }
  .player-heading h1 {
    display: -webkit-box;
    overflow: hidden;
    font-size: 18px;
    line-height: 1.3;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }
  .player-heading .secondary-button { min-height: 40px; padding: 0 9px; font-size: 11px; }
  .player-stage { min-height: 0; border-radius: 8px; }
  .access-message { padding: 14px; }
  .access-message i { font-size: 32px; }
  .access-message h2 { margin-top: 8px; font-size: 18px; }
  .episode-controls { display: grid; grid-template-columns: 1fr 1fr; gap: 5px; margin-top: 7px; padding: 7px; }
  .episode-nav { flex: 1; justify-content: center; min-width: 0; min-height: 40px; padding: 0 6px; font-size: 11px; }
  .episode-controls > span { display: none; }
  .player-toolbar { display: block; margin-top: 7px; }
  .player-toolbar .detail-actions { width: 100%; }
  .source-tabs { gap: 5px; }
  .source-tab { min-height: 40px; padding: 0 10px; }
  .source-switcher-card > summary { grid-template-columns: minmax(0, 1fr) auto 12px; min-height: 48px; padding: 0 12px; }
  .source-switcher-title { font-size: 14px; }
  .source-switcher-card > summary strong { max-width: 112px; font-size: 10px; }
  .source-switcher-content { padding: 0 12px 12px; }
  .episode-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 5px; }
  .episode-list a { justify-content: center; min-width: 0; width: 100%; min-height: 40px; padding: 6px; }
  .meta-grid { grid-template-columns: 1fr 1fr; margin-top: 10px; }
  .meta-grid > div { padding: 9px 10px; }
  .meta-grid > div:nth-child(2) { border-right: 0; }
  .meta-grid > div:nth-child(-n + 2) { border-bottom: 1px solid var(--line); }
  .profile-hero { grid-template-columns: auto minmax(0, 1fr); gap: 13px; padding: 17px; }
  .profile-avatar { width: 58px; height: 58px; font-size: 21px; }
  .profile-hero .eyebrow { display: none; }
  .profile-hero h1 { margin-bottom: 4px; font-size: 20px; }
  .profile-identity { display: grid; gap: 3px; font-size: 10px; }
  .profile-identity span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .profile-actions { display: grid; grid-template-columns: 1fr 1fr; grid-column: 1 / -1; gap: 6px; }
  .profile-actions > * { width: 100%; min-width: 0; padding: 0 8px; }
  .stats-grid { grid-template-columns: 1fr 1fr; gap: 6px; margin-bottom: 10px; }
  .stat-card { padding: 12px; }
  .stat-card strong { font-size: 21px; }
  .profile-grid { grid-template-columns: 1fr; }
  .profile-panel { padding: 12px; }
  .profile-panel header { padding-bottom: 9px; }
  .profile-panel h2 { font-size: 16px; }
  .stored-item { grid-template-columns: 78px minmax(0, 1fr) 40px; gap: 8px; padding: 6px; }
  .stored-item img { height: 50px; }
  .stored-item button { width: 40px; height: 40px; }
  .stored-empty { padding: 24px 12px; }
  .stored-empty i { font-size: 24px; }
  .info-hero { min-height: 0; margin: 3px 0 10px; padding: 14px; border-left-width: 4px; }
  .info-kicker { font-size: 9px; }
  .info-hero h1 { margin-top: 3px; font-size: 23px; }
  .info-hero p { font-size: 11px; }
  .info-hero > i { font-size: 35px; }
  .info-layout { grid-template-columns: 1fr; gap: 10px; }
  .info-nav { position: static; padding: 11px; border-top-width: 3px; }
  .info-nav > strong { margin-bottom: 7px; }
  .info-nav nav { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 5px; }
  .info-nav a { justify-content: center; min-width: 0; min-height: 34px; overflow: hidden; padding: 0 4px; text-align: center; text-overflow: ellipsis; white-space: nowrap; }
  .info-content { gap: 10px; }
  .info-page > .info-section { margin-top: 10px; }
  .info-section { padding: 14px; }
  .info-section h2 { font-size: 18px; }
  .info-section p { margin-bottom: 9px; font-size: 12px; line-height: 1.7; }
  .info-section ul { grid-template-columns: 1fr; gap: 5px; }
  .info-grid,
  .info-grid-three,
  .info-feature-list,
  .info-faq,
  .info-actions { grid-template-columns: 1fr; gap: 7px; }
  .info-card { padding: 12px; }
  .info-card-icon { width: 34px; height: 34px; margin-bottom: 7px; }
  .site-footer { display: none; }
  .mobile-dock {
    position: fixed;
    z-index: 500;
    right: 0;
    bottom: 0;
    left: 0;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    min-height: calc(53px + env(safe-area-inset-bottom));
    padding-bottom: env(safe-area-inset-bottom);
    background: rgba(255, 255, 255, .97);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
    border-top: 1px solid var(--line);
    box-shadow: 0 -8px 24px rgba(139, 26, 61, .1);
  }
  .mobile-dock a, .mobile-dock button {
    display: grid;
    place-items: center;
    align-content: center;
    gap: 2px;
    color: var(--muted);
    background: transparent;
    border: 0;
    font-size: 10px;
    font-weight: 850;
  }
  .mobile-dock a:active,
  .mobile-dock button:active { transform: translateY(1px); }
  .mobile-dock i {
    display: grid;
    place-items: center;
    width: 28px;
    height: 22px;
    border-radius: 7px;
    font-size: 13px;
  }
  .mobile-dock a.is-active { color: var(--primary); background: transparent; }
  .mobile-dock a.is-active i { color: #fff; background: var(--primary); }
  .history-panel {
    width: 100%;
    padding: 0 12px calc(12px + env(safe-area-inset-bottom));
    border-left: 0;
  }
  .history-panel > header {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    justify-content: initial;
    gap: 10px;
    margin-inline: -12px;
    padding: 10px 12px;
  }
  .history-back { display: inline-flex; }
  .history-panel h2 { font-size: 20px; }
  .history-title p { font-size: 10px; }
  .history-close { display: none; }
  .history-overview { min-height: 34px; margin-top: 6px; padding-inline: 1px; }
  .history-search { min-height: 36px; margin-top: 7px; }
  .history-list-heading { min-height: 27px; padding-top: 5px; }
  .history-list { padding-bottom: 8px; }
  .history-entry { grid-template-columns: minmax(0, 1fr) 30px; gap: 6px; min-height: 96px; padding: 7px; }
  .history-entry-main { grid-template-columns: 84px minmax(0, 1fr); gap: 8px; }
  .history-entry-cta { margin-top: 4px; }
  .history-remove { width: 30px; min-height: 30px; }
  .history-panel > footer { padding-top: 9px; }
  .history-clear { min-height: 36px; padding-inline: 11px; }
  .card-dialog form { max-height: calc(100dvh - 24px); overflow-y: auto; padding: 18px; }
  .toast { right: 10px; bottom: calc(64px + env(safe-area-inset-bottom)); }
  .section-head h2,
  .panel-title h2,
  .results-head h2 {
    gap: 7px;
    color: var(--title-ink);
    font-weight: 950;
    line-height: 1.06;
    letter-spacing: -.035em;
    text-shadow:
      0 1px 0 rgba(255, 255, 255, .95),
      0 4px 10px rgba(170, 11, 56, .14);
  }
  .section-head h2::before,
  .panel-title h2::before,
  .results-head h2::before,
  .section-head.hot h2::before {
    width: 7px;
    height: 19px;
    margin: 0;
    background: linear-gradient(180deg, #ff6c8d 0%, var(--primary) 48%, #8d082f 100%);
    border: 1px solid rgba(255, 255, 255, .62);
    border-radius: 7px 2px 7px 2px;
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, .72),
      0 4px 9px rgba(170, 11, 56, .22);
    transform: skewX(-11deg);
    vertical-align: initial;
  }
}

@media (max-width: 470px) {
  .shell { width: min(calc(100% - 20px), var(--content)); }
  .header-main { gap: 5px; }
  .age-mark { width: 32px; height: 32px; }
  .brand { gap: 5px; }
  .header-main .brand-copy b { max-width: 62px; font-size: 16px; }
  .header-search button { min-width: 38px; padding-inline: 6px; }
  .header-search input { padding-inline: 7px; }
  .login-button { min-height: 34px; padding-inline: 9px; font-size: 11px; }
  .detail-cover,
  .detail-cover-play { min-height: 180px; }
  .detail-cover-play-button { width: 66px; height: 66px; }
  .detail-cover-play-button span { font-size: 10px; }
  .detail-actions > * { min-width: 0; }
  .episode-controls { gap: 5px; padding: 7px; }
  .episode-nav { padding-inline: 6px; font-size: 10px; }
  .stored-item { grid-template-columns: 72px minmax(0, 1fr) 38px; }
  .stored-item img { height: 47px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    scroll-behavior: auto !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}
