:root {
  color-scheme: light;
  --brand: #ef718b;
  --brand-strong: #df4f71;
  --brand-deep: #b92f55;
  --brand-soft: #fff2f5;
  --ink: #2f2f36;
  --muted: #85858f;
  --line: #eee7ea;
  --surface: #ffffff;
  --page: #f8f7f8;
  --footer: #29292c;
  --shell: 1200px;
  --shadow: 0 14px 36px rgba(84, 38, 51, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  background: var(--surface);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  font-size: 16px;
  line-height: 1.65;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input {
  font: inherit;
}

button,
a,
input,
summary {
  -webkit-tap-highlight-color: transparent;
}

:focus-visible {
  outline: 3px solid #6f2fdf;
  outline-offset: 3px;
}

.shell {
  width: min(calc(100% - 48px), var(--shell));
  margin-inline: auto;
}

.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: 100;
  left: 16px;
  top: 12px;
  padding: 10px 16px;
  color: #fff;
  background: #222;
  border-radius: 8px;
  transform: translateY(-160%);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: relative;
  z-index: 20;
  color: #fff;
  background: var(--brand);
}

.header-shell {
  min-height: 88px;
  display: grid;
  grid-template-columns: auto 1fr minmax(220px, 280px);
  gap: 34px;
  align-items: center;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: max-content;
}

.brand img {
  width: 60px;
  height: 60px;
  object-fit: contain;
  border-radius: 18px;
  box-shadow: 0 8px 24px rgba(118, 35, 56, 0.18);
}

.brand span {
  display: grid;
  line-height: 1.1;
}

.brand strong {
  font-size: 22px;
  letter-spacing: 0.04em;
}

.brand small {
  margin-top: 6px;
  font-size: 11px;
  opacity: 0.9;
}

.primary-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(12px, 1.8vw, 27px);
}

.primary-nav a {
  position: relative;
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  font-weight: 700;
  white-space: nowrap;
}

.primary-nav a::after {
  position: absolute;
  left: 50%;
  bottom: 2px;
  width: 0;
  height: 3px;
  border-radius: 999px;
  background: #fff;
  content: "";
  transform: translateX(-50%);
  transition: width 180ms ease;
}

.primary-nav a:hover::after,
.primary-nav a[aria-current="page"]::after {
  width: 22px;
}

.menu-button {
  display: none;
  min-width: 64px;
  min-height: 44px;
  color: var(--brand-deep);
  background: #fff;
  border: 0;
  border-radius: 999px;
  font-weight: 800;
  cursor: pointer;
}

.search-form {
  display: grid;
  grid-template-columns: 1fr auto;
  min-height: 44px;
  overflow: hidden;
  background: #fff;
  border-radius: 999px;
  box-shadow: 0 6px 18px rgba(109, 35, 54, 0.12);
}

.search-form input {
  width: 100%;
  min-width: 0;
  padding: 10px 8px 10px 18px;
  color: var(--ink);
  background: transparent;
  border: 0;
  outline: 0;
}

.search-form input[readonly] {
  caret-color: transparent;
  cursor: default;
}

.search-form button {
  min-width: 62px;
  padding: 0 16px;
  color: var(--brand-deep);
  background: transparent;
  border: 0;
  font-weight: 800;
  cursor: pointer;
}

.hero-band {
  padding: 0 0 28px;
  background: linear-gradient(to bottom, var(--brand) 0 300px, var(--surface) 300px 100%);
}

.hero-layout {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(260px, 1fr);
  gap: 24px;
}

.hero-main,
.hero-aside {
  min-width: 0;
}

.hero-stage {
  position: relative;
  height: 400px;
  overflow: hidden;
  background: #331f2a;
  border: 5px solid #fff;
  border-radius: 18px;
  box-shadow: var(--shadow);
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 320ms ease;
}

.hero-slide.is-active {
  opacity: 1;
  pointer-events: auto;
}

.hero-slide > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-slide__shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(20, 12, 17, 0.9) 0%, rgba(28, 16, 22, 0.68) 42%, rgba(20, 12, 17, 0.08) 78%);
}

.hero-slide__content {
  position: absolute;
  left: 44px;
  bottom: 42px;
  width: min(570px, 68%);
  color: #fff;
}

.eyebrow {
  display: inline-flex;
  padding: 7px 12px;
  color: #fff;
  background: rgba(239, 113, 139, 0.94);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
}

.hero-slide h1,
.hero-slide h2 {
  margin: 14px 0 6px;
  font-size: clamp(28px, 3vw, 44px);
  line-height: 1.16;
  text-wrap: balance;
}

.hero-slide p {
  max-width: 500px;
  margin: 0 0 22px;
  color: rgba(255, 255, 255, 0.86);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.hero-download-button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  padding: 9px 18px;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 999px;
  background: rgba(25, 17, 22, 0.34);
  font-weight: 800;
  backdrop-filter: blur(8px);
  transition: background 160ms ease, transform 160ms ease;
}

.hero-download-button:hover {
  background: rgba(255, 255, 255, 0.18);
  transform: translateY(-2px);
}

.primary-button,
.text-button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  padding: 10px 20px;
  color: #fff;
  background: var(--brand-strong);
  border-radius: 999px;
  font-weight: 800;
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.primary-button:hover,
.text-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 22px rgba(185, 47, 85, 0.22);
}

.carousel-controls {
  position: absolute;
  z-index: 2;
  right: 16px;
  bottom: 16px;
  display: flex;
  gap: 8px;
}

.carousel-controls button {
  min-height: 40px;
  padding: 7px 13px;
  color: #fff;
  background: rgba(24, 16, 20, 0.74);
  border: 1px solid rgba(255, 255, 255, 0.36);
  border-radius: 999px;
  cursor: pointer;
}

.hero-thumbs {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 5px;
  margin-top: 4px;
}

.hero-thumb {
  position: relative;
  min-width: 0;
  height: 92px;
  padding: 0;
  overflow: hidden;
  color: #fff;
  background: #3d2c35;
  border: 3px solid #fff;
  border-radius: 9px;
  cursor: pointer;
}

.hero-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.74;
}

.hero-thumb span {
  position: absolute;
  inset: auto 6px 5px;
  overflow: hidden;
  font-size: 11px;
  font-weight: 800;
  line-height: 1.2;
  text-align: left;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hero-thumb.is-active {
  border-color: var(--brand-strong);
}

.hero-thumb.is-active img {
  opacity: 1;
}

.hero-aside {
  display: grid;
  gap: 18px;
  align-content: start;
}

.hero-promo {
  position: relative;
  height: 218px;
  overflow: hidden;
  background: #fff;
  border: 5px solid #fff;
  border-radius: 18px;
  box-shadow: var(--shadow);
}

.hero-promo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-promo::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent, rgba(28, 14, 22, 0.82));
  content: "";
}

.hero-promo span {
  position: absolute;
  z-index: 1;
  left: 18px;
  bottom: 14px;
  color: #fff;
  font-size: 20px;
  font-weight: 900;
}

.pick-panel {
  padding: 18px;
  background: #fff;
  border-radius: 16px;
  box-shadow: var(--shadow);
}

.pick-panel h2 {
  margin: 0 0 14px;
  font-size: 20px;
}

.pick-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.pick-row a {
  min-width: 0;
  text-align: center;
}

.pick-row img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 13px;
}

.guide-download-link {
  background: linear-gradient(145deg, #fff3f6, #fff) !important;
  box-shadow: inset 0 0 0 1px rgba(223, 79, 113, 0.16);
}

.guide-download-link strong::after {
  display: inline-flex;
  margin-left: 8px;
  padding: 2px 7px;
  color: #fff;
  background: var(--brand-strong);
  border-radius: 999px;
  content: "推荐";
  font-size: 10px;
  vertical-align: middle;
}

.home-download-section {
  padding-block: 18px 34px;
}

.home-download-banner {
  display: grid;
  grid-template-columns: minmax(300px, 1fr) minmax(480px, 1.25fr);
  gap: 26px;
  align-items: center;
  padding: 28px 30px;
  overflow: hidden;
  color: #fff;
  background:
    radial-gradient(circle at 15% 0, rgba(255, 255, 255, 0.16), transparent 30%),
    linear-gradient(135deg, #352e39, #211f25);
  border-radius: 22px;
  box-shadow: var(--shadow);
}

.home-download-banner__brand {
  display: flex;
  gap: 18px;
  align-items: center;
  min-width: 0;
}

.home-download-banner__brand img {
  width: 88px;
  height: 88px;
  flex: 0 0 auto;
  object-fit: contain;
  background: #fff;
  border-radius: 22px;
  box-shadow: 0 14px 26px rgba(0, 0, 0, 0.2);
}

.home-download-banner__brand span {
  display: grid;
}

.home-download-banner__brand small {
  margin-bottom: 6px;
  color: var(--brand);
  font-weight: 800;
}

.home-download-banner__brand strong {
  font-size: clamp(19px, 2vw, 25px);
  line-height: 1.45;
}

.home-download-banner__choices {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.home-download-banner__choices a {
  position: relative;
  display: grid;
  min-height: 108px;
  align-content: center;
  padding: 18px 18px 18px 66px;
  color: var(--ink);
  background: #fff;
  border-radius: 16px;
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.home-download-banner__choices a:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 26px rgba(0, 0, 0, 0.18);
}

.home-download-banner__choices a > span {
  position: absolute;
  left: 16px;
  top: 50%;
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  color: var(--brand-deep);
  background: var(--brand-soft);
  border-radius: 12px;
  font-size: 11px;
  font-weight: 900;
  transform: translateY(-50%);
}

.home-download-banner__choices strong {
  font-size: 16px;
}

.home-download-banner__choices small {
  margin-top: 3px;
  color: var(--muted);
}

.pick-row span {
  display: -webkit-box;
  margin-top: 6px;
  overflow: hidden;
  font-size: 12px;
  line-height: 1.35;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.content-section {
  padding-block: 34px;
}

.content-section + .content-section {
  border-top: 1px solid var(--line);
}

.section-heading {
  display: flex;
  min-height: 54px;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  margin-bottom: 20px;
}

.section-heading__title {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 12px;
}

.section-heading__title img {
  width: 42px;
  height: 42px;
  object-fit: contain;
}

.section-heading h2 {
  margin: 0;
  font-size: 28px;
  line-height: 1.2;
  font-style: italic;
  letter-spacing: -0.02em;
}

.section-heading p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.more-link {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.more-link:hover {
  color: var(--brand-strong);
}

.guide-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 1.92fr);
  gap: 26px;
  align-items: stretch;
}

.guide-feature {
  position: relative;
  height: 360px;
  overflow: hidden;
  border-radius: 14px;
}

.guide-feature img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.guide-feature::after {
  position: absolute;
  inset: 35% 0 0;
  background: linear-gradient(transparent, rgba(31, 18, 25, 0.92));
  content: "";
}

.guide-feature span {
  position: absolute;
  z-index: 1;
  left: 24px;
  right: 24px;
  bottom: 22px;
  display: grid;
  color: #fff;
}

.guide-feature strong {
  font-size: 22px;
}

.guide-feature small {
  margin-top: 5px;
  color: rgba(255, 255, 255, 0.82);
}

.guide-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-rows: repeat(2, minmax(0, 1fr));
  gap: 14px;
  height: 360px;
}

.guide-links a {
  position: relative;
  display: grid;
  align-content: center;
  min-height: 0;
  overflow: hidden;
  padding: 24px 66px 24px 24px;
  background: linear-gradient(145deg, #fff 0%, #fff8fa 100%);
  border: 1px solid var(--line);
  border-radius: 14px;
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.guide-links a::before {
  width: 28px;
  height: 3px;
  margin-bottom: 13px;
  background: var(--brand);
  border-radius: 999px;
  content: "";
}

.guide-links a::after {
  position: absolute;
  top: 50%;
  right: 22px;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  color: var(--brand-strong);
  background: var(--brand-soft);
  border-radius: 50%;
  content: "\2192";
  font-size: 18px;
  line-height: 1;
  transform: translateY(-50%);
  transition: color 180ms ease, background-color 180ms ease, transform 180ms ease;
}

.guide-links a:hover {
  border-color: #f2bdc9;
  box-shadow: 0 12px 28px rgba(84, 38, 51, 0.1);
  transform: translateY(-2px);
}

.guide-links a:hover::after {
  color: #fff;
  background: var(--brand-strong);
  transform: translate(3px, -50%);
}

.guide-links strong {
  color: var(--brand-strong);
  font-size: 17px;
  line-height: 1.35;
}

.guide-links span {
  margin-top: 5px;
  color: var(--muted);
  font-size: 13px;
}

.section-tabs {
  display: flex;
  gap: 8px;
  margin: -64px 120px 22px auto;
  justify-content: flex-end;
}

.section-tabs button {
  min-height: 40px;
  padding: 7px 16px;
  color: var(--muted);
  background: #f5f3f4;
  border: 0;
  border-radius: 999px;
  font-weight: 700;
  white-space: nowrap;
  cursor: pointer;
}

.section-tabs button[aria-selected="true"] {
  color: #fff;
  background: var(--brand-strong);
  box-shadow: 0 6px 16px rgba(223, 79, 113, 0.2);
}

.tab-panel {
  display: none;
}

.tab-panel.is-active {
  display: grid;
}

.drama-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 24px 18px;
}

.drama-card {
  min-width: 0;
}

.drama-card__cover {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: var(--brand-soft);
  border-radius: 15px;
  box-shadow: 0 8px 22px rgba(66, 42, 52, 0.08);
}

.drama-card__cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 220ms ease;
}

.drama-card:hover .drama-card__cover img {
  transform: scale(1.035);
}

.drama-card__body {
  padding-top: 10px;
}

.drama-card h3 {
  display: -webkit-box;
  min-height: 2.8em;
  margin: 0 0 4px;
  overflow: hidden;
  font-size: 15px;
  line-height: 1.4;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.drama-card h3 a:hover {
  color: var(--brand-strong);
}

.card-meta,
.card-summary {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}

.card-summary {
  display: -webkit-box;
  margin-top: 6px;
  overflow: hidden;
  line-height: 1.55;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.rank-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  color: #fff;
  background: var(--brand-strong);
  border: 2px solid #fff;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 900;
}

.topic-showcase {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.topic-showcase a {
  position: relative;
  height: 190px;
  overflow: hidden;
  border-radius: 14px;
}

.topic-showcase img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.topic-showcase a::after {
  position: absolute;
  inset: 35% 0 0;
  background: linear-gradient(transparent, rgba(30, 19, 24, 0.86));
  content: "";
}

.topic-showcase span {
  position: absolute;
  z-index: 1;
  inset: auto 16px 14px;
  display: grid;
  color: #fff;
}

.topic-showcase strong {
  font-size: 19px;
}

.topic-showcase small {
  color: rgba(255, 255, 255, 0.75);
}

.topic-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px 24px;
  margin-top: 18px;
}

.topic-list a {
  padding: 11px 14px;
  color: #5e5660;
  background: #faf8f9;
  border: 1px solid var(--line);
  border-radius: 9px;
}

.topic-list a:hover {
  color: var(--brand-deep);
  border-color: #f3a9b9;
}

.ranking-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px 26px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.drama-card--compact {
  display: grid;
  grid-template-columns: 104px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
}

.drama-card--compact .drama-card__body {
  padding: 0;
}

.drama-card--compact h3 {
  min-height: auto;
}

.page-hero {
  padding: 46px 0 50px;
  color: #fff;
  background: linear-gradient(135deg, var(--brand), var(--brand-deep));
}

.breadcrumb {
  display: flex;
  gap: 9px;
  margin: 0 0 12px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 14px;
}

.page-hero h1 {
  margin: 0;
  font-size: clamp(32px, 5vw, 52px);
  line-height: 1.2;
}

.page-hero .shell > p:last-child {
  max-width: 720px;
  margin: 12px 0 0;
  color: rgba(255, 255, 255, 0.86);
}

.filter-form {
  display: grid;
  grid-template-columns: auto minmax(220px, 440px) auto;
  gap: 14px;
  align-items: center;
  margin-bottom: 26px;
  padding: 16px;
  background: var(--brand-soft);
  border-radius: 14px;
}

.filter-form label {
  font-weight: 800;
}

.filter-form input {
  min-height: 44px;
  padding: 9px 15px;
  background: #fff;
  border: 1px solid #eadce1;
  border-radius: 999px;
}

.filter-form span {
  color: var(--muted);
  font-size: 14px;
}

.hot-search-links {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  align-items: center;
  margin: -10px 0 24px;
}

.hot-search-links span {
  margin-right: 3px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.hot-search-links a {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  padding: 5px 13px;
  color: var(--brand-deep);
  background: var(--brand-soft);
  border: 1px solid #f3d9df;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
}

.hot-search-links a:hover {
  color: #fff;
  background: var(--brand-strong);
  border-color: var(--brand-strong);
}

.search-context {
  margin: -8px 0 22px;
  color: var(--muted);
  font-size: 14px;
}

.empty-state {
  padding: 30px;
  color: var(--muted);
  background: #faf8f9;
  border-radius: 14px;
  text-align: center;
}

.notice-card {
  margin-bottom: 26px;
  padding: 18px 20px;
  color: #5d3a45;
  background: var(--brand-soft);
  border-left: 4px solid var(--brand-strong);
  border-radius: 8px 14px 14px 8px;
}

.notice-card p {
  margin: 4px 0 0;
}

.ranking-grid--page {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.ranking-grid--page .drama-card--compact {
  grid-template-columns: 132px minmax(0, 1fr);
  padding: 12px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
}

.topic-directory,
.guide-card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.topic-directory article,
.guide-card-grid article {
  padding: 24px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 10px 24px rgba(64, 40, 51, 0.05);
}

.topic-directory h2,
.guide-card-grid h2 {
  margin: 0 0 8px;
  font-size: 22px;
}

.topic-directory p,
.guide-card-grid p {
  margin: 0 0 15px;
  color: var(--muted);
}

.topic-mini-list {
  display: grid;
  gap: 7px;
}

.topic-mini-list a {
  overflow: hidden;
  color: var(--brand-deep);
  font-size: 14px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.action-card {
  display: grid;
  grid-template-columns: 148px minmax(0, 1fr);
  gap: 26px;
  align-items: center;
  padding: 30px;
  background: var(--brand-soft);
  border-radius: 18px;
}

.action-card img {
  width: 128px;
  height: 128px;
  object-fit: contain;
  border-radius: 28px;
}

.action-card h2 {
  margin: 0 0 8px;
  font-size: 26px;
}

.action-card p {
  max-width: 720px;
  margin: 0 0 18px;
  color: var(--muted);
}

.download-guide {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: linear-gradient(145deg, #fff7f9 0%, #fff 45%, #f7f4ff 100%);
  box-shadow: var(--shadow);
}

.download-guide__intro {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  gap: 24px;
  align-items: center;
  padding: 34px 36px 28px;
}

.download-guide__intro img {
  width: 112px;
  height: 112px;
  object-fit: contain;
  border-radius: 26px;
  box-shadow: 0 14px 34px rgba(185, 47, 85, 0.16);
}

.download-guide__eyebrow {
  margin: 0 0 4px;
  color: var(--brand-strong);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.16em;
}

.download-guide__intro h2 {
  margin: 0 0 6px;
  font-size: clamp(26px, 3vw, 36px);
  line-height: 1.25;
}

.download-guide__intro p:last-child {
  max-width: 720px;
  margin: 0;
  color: var(--muted);
}

.download-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  padding: 0 36px 30px;
}

.download-option {
  position: relative;
  display: flex;
  min-width: 0;
  min-height: 330px;
  flex-direction: column;
  gap: 18px;
  padding: 28px;
  border: 1px solid rgba(223, 79, 113, 0.14);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 16px 38px rgba(84, 38, 51, 0.08);
}

.download-option--android {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.12);
  background: linear-gradient(145deg, #34313c, #202027);
}

.download-option__type {
  display: grid;
  width: 58px;
  height: 58px;
  place-items: center;
  color: var(--brand-deep);
  background: var(--brand-soft);
  border-radius: 16px;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.download-option--android .download-option__type {
  color: #fff;
  background: rgba(239, 113, 139, 0.2);
}

.download-option h3 {
  margin: 0 0 6px;
  font-size: 25px;
}

.download-option p {
  margin: 0;
  color: var(--muted);
}

.download-option--android p,
.download-option--android li {
  color: rgba(255, 255, 255, 0.72);
}

.download-option ul {
  display: grid;
  gap: 6px;
  margin: 0 0 auto;
  padding-left: 20px;
  color: #5f5b65;
}

.download-option .primary-button {
  width: 100%;
  justify-content: center;
}

.download-option--android .primary-button {
  background: linear-gradient(135deg, var(--brand), var(--brand-strong));
}

.download-safety {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 20px 36px;
  border-top: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.74);
}

.download-safety strong {
  color: var(--brand-deep);
}

.download-safety p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.download-safety a {
  color: var(--brand-deep);
  font-weight: 800;
  white-space: nowrap;
}

.back-to-top {
  position: fixed;
  z-index: 30;
  right: max(22px, calc((100vw - var(--shell)) / 2 - 84px));
  bottom: 28px;
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  gap: 8px;
  padding: 8px 16px 8px 12px;
  color: #fff;
  background: rgba(47, 47, 54, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  box-shadow: 0 12px 28px rgba(32, 25, 29, 0.22);
  opacity: 0;
  pointer-events: none;
  cursor: pointer;
  transform: translateY(14px);
  transition: opacity 180ms ease, transform 180ms ease, background 180ms ease;
  backdrop-filter: blur(10px);
}

.back-to-top span {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  color: var(--brand-deep);
  background: #fff;
  border-radius: 50%;
  font-size: 19px;
  font-weight: 900;
}

.back-to-top strong {
  font-size: 13px;
}

.back-to-top:hover {
  background: var(--brand-deep);
}

.back-to-top.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.faq-list {
  display: grid;
  gap: 14px;
}

.faq-list details {
  padding: 0 20px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 13px;
}

.faq-list summary {
  min-height: 58px;
  display: flex;
  align-items: center;
  font-weight: 800;
  cursor: pointer;
}

.faq-list p {
  margin: 0 0 20px;
  color: var(--muted);
}

.prose {
  max-width: 820px;
}

.prose h2 {
  margin: 30px 0 10px;
  font-size: 24px;
}

.prose h2:first-child {
  margin-top: 0;
}

.prose p {
  color: #5f5b62;
}

.site-footer {
  margin-top: 30px;
  padding: 48px 0 28px;
  color: rgba(255, 255, 255, 0.8);
  background: var(--footer);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 0.8fr 1fr;
  gap: 44px;
}

.footer-brand {
  display: flex;
  gap: 18px;
  align-items: center;
}

.footer-brand img {
  width: 72px;
  height: 72px;
  object-fit: contain;
  border-radius: 18px;
}

.footer-brand strong {
  color: #fff;
  font-size: 22px;
}

.footer-brand p {
  max-width: 380px;
  margin: 5px 0 0;
  color: rgba(255, 255, 255, 0.58);
  font-size: 13px;
}

.footer-grid nav {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 14px;
  align-content: start;
}

.footer-grid nav a {
  min-height: 34px;
  color: rgba(255, 255, 255, 0.64);
  font-size: 13px;
}

.footer-grid nav a:hover {
  color: #fff;
}

.footer-note {
  margin-top: 30px;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  text-align: center;
}

.footer-note p {
  margin: 5px 0;
  color: rgba(255, 255, 255, 0.48);
  font-size: 12px;
}

.detail-page {
  padding-bottom: 72px;
  background: linear-gradient(180deg, #fff7f9 0, #fff 280px);
}

.detail-breadcrumb {
  display: flex;
  gap: 10px;
  align-items: center;
  min-height: 64px;
  color: var(--muted);
  font-size: 14px;
}

.detail-breadcrumb a:hover {
  color: var(--brand-strong);
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 30px;
  align-items: start;
}

.detail-article,
.detail-sidebar > section {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: 0 10px 32px rgba(83, 46, 58, 0.07);
}

.detail-article {
  overflow: hidden;
}

.detail-header {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 34px;
  padding: 34px;
  background: linear-gradient(145deg, #fff 35%, #fff2f5);
}

.detail-cover {
  overflow: hidden;
  aspect-ratio: 1;
  border-radius: 18px;
  background: var(--page);
  box-shadow: var(--shadow);
}

.detail-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.detail-heading {
  align-self: center;
}

.detail-kicker {
  margin: 0 0 8px;
  color: var(--brand-strong);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.detail-heading h1 {
  margin: 0;
  font-size: clamp(30px, 3vw, 42px);
  line-height: 1.25;
}

.detail-meta {
  margin: 14px 0;
  color: var(--muted);
}

.detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
}

.detail-tags span {
  padding: 5px 11px;
  color: var(--brand-deep);
  background: #fff;
  border: 1px solid #f6c6d1;
  border-radius: 999px;
  font-size: 13px;
}

.detail-section {
  padding: 30px 34px;
  border-top: 1px solid var(--line);
}

.detail-section h2,
.detail-sidebar h2 {
  margin: 0;
  font-size: 22px;
}

.detail-section > p {
  margin: 16px 0 0;
  color: #55545d;
  line-height: 1.9;
  white-space: pre-line;
}

.detail-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 20px 0 0;
}

.detail-facts div {
  padding: 14px 16px;
  background: var(--page);
  border-radius: 12px;
}

.detail-facts dt {
  color: var(--muted);
  font-size: 13px;
}

.detail-facts dd {
  margin: 3px 0 0;
  font-weight: 800;
}

.detail-note {
  padding: 14px 16px;
  background: #fff8fa;
  border-left: 3px solid var(--brand);
  border-radius: 0 10px 10px 0;
}

.detail-siblings {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  padding: 26px 34px;
  border-top: 1px solid var(--line);
}

.detail-siblings a {
  display: grid;
  min-height: 76px;
  align-content: center;
  padding: 12px 16px;
  background: var(--page);
  border-radius: 12px;
}

.detail-siblings a:last-child {
  text-align: right;
}

.detail-siblings span {
  color: var(--muted);
  font-size: 12px;
}

.detail-siblings strong {
  overflow: hidden;
  margin-top: 4px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.detail-section-title,
.sidebar-title {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
}

.detail-section-title p {
  margin: 5px 0 0;
  color: var(--muted);
}

.detail-section-title > a,
.sidebar-title a {
  color: var(--brand-strong);
  font-size: 14px;
  font-weight: 700;
}

.detail-related .drama-grid {
  margin-top: 20px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.detail-sidebar {
  display: grid;
  gap: 20px;
  position: sticky;
  top: 20px;
}

.detail-sidebar > section {
  padding: 22px;
}

.detail-sidebar ol {
  display: grid;
  gap: 8px;
  padding: 0;
  margin: 18px 0 0;
  list-style: none;
}

.detail-sidebar li {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  gap: 8px;
  align-items: center;
}

.detail-sidebar li > span {
  color: var(--brand-strong);
  font-size: 18px;
  font-weight: 900;
}

.detail-sidebar li > a {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  grid-template-rows: auto auto;
  gap: 2px 10px;
  align-items: center;
  min-width: 0;
  padding: 8px;
  border-radius: 12px;
}

.detail-sidebar li > a:hover {
  background: var(--brand-soft);
}

.detail-sidebar li img {
  grid-row: 1 / 3;
  width: 58px;
  height: 58px;
  object-fit: cover;
  border-radius: 10px;
}

.detail-sidebar li strong,
.detail-sidebar li small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.detail-sidebar li small {
  color: var(--muted);
}

.rank-entry-panel > div,
.ranking-jump {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 16px;
}

.rank-entry-panel a,
.ranking-jump a {
  min-height: 40px;
  padding: 8px 13px;
  color: var(--brand-deep);
  background: var(--brand-soft);
  border-radius: 999px;
  font-weight: 700;
}

.ranking-jump {
  position: sticky;
  z-index: 5;
  top: 0;
  padding: 12px;
  margin-bottom: 28px;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid var(--line);
  border-radius: 16px;
  backdrop-filter: blur(10px);
}

.ranking-group {
  padding-top: 18px;
  scroll-margin-top: 78px;
}

.ranking-group + .ranking-group {
  margin-top: 36px;
  border-top: 1px solid var(--line);
}

@media (max-width: 1080px) {
  .header-shell {
    grid-template-columns: auto auto minmax(210px, 1fr);
  }

  .menu-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .primary-nav {
    position: absolute;
    top: calc(100% + 8px);
    left: 24px;
    right: 24px;
    display: none;
    padding: 14px;
    color: var(--ink);
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 14px;
    box-shadow: var(--shadow);
  }

  .primary-nav.is-open {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
  }

  .primary-nav a {
    justify-content: center;
  }

  .hero-layout {
    grid-template-columns: minmax(0, 2fr) minmax(240px, 1fr);
  }

  .hero-stage {
    height: 350px;
  }

  .hero-promo {
    height: 190px;
  }

  .drama-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .topic-showcase {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ranking-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .detail-layout {
    grid-template-columns: 1fr;
  }

  .detail-sidebar {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    position: static;
  }

  .rank-entry-panel {
    grid-column: 1 / -1;
  }

  .home-download-banner {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 820px) {
  .shell {
    width: min(calc(100% - 32px), var(--shell));
  }

  .header-shell {
    grid-template-columns: 1fr auto;
    gap: 12px;
    padding-block: 12px;
  }

  .search-form {
    grid-column: 1 / -1;
  }

  .primary-nav {
    left: 16px;
    right: 16px;
  }

  .hero-band {
    padding-top: 12px;
    background: linear-gradient(to bottom, var(--brand) 0 240px, var(--surface) 240px 100%);
  }

  .hero-layout {
    grid-template-columns: 1fr;
  }

  .hero-aside {
    grid-template-columns: 1fr 1.2fr;
  }

  .hero-promo,
  .pick-panel {
    height: 210px;
  }

  .guide-layout {
    grid-template-columns: 1fr;
  }

  .guide-feature {
    height: 300px;
  }

  .guide-links {
    height: auto;
    grid-auto-rows: minmax(124px, auto);
  }

  .section-tabs {
    margin: 0 0 18px;
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .topic-directory,
  .guide-card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }

  .home-download-banner__choices {
    grid-template-columns: 1fr 1fr;
  }

  .detail-header {
    grid-template-columns: 220px minmax(0, 1fr);
  }

  .detail-related .drama-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .shell {
    width: min(calc(100% - 28px), var(--shell));
  }

  .brand img {
    width: 50px;
    height: 50px;
    border-radius: 14px;
  }

  .brand strong {
    font-size: 19px;
  }

  .brand small {
    font-size: 10px;
  }

  .primary-nav.is-open {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero-stage {
    height: 300px;
    border-width: 4px;
  }

  .hero-slide__content {
    left: 22px;
    right: 22px;
    bottom: 24px;
    width: auto;
  }

  .hero-slide h1,
  .hero-slide h2 {
    font-size: 27px;
  }

  .hero-slide p {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }

  .carousel-controls {
    display: none;
  }

  .hero-thumbs {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
  }

  .hero-thumb {
    flex: 0 0 118px;
    scroll-snap-align: start;
  }

  .hero-aside {
    grid-template-columns: 1fr;
  }

  .hero-promo {
    height: 190px;
  }

  .pick-panel {
    height: auto;
  }

  .content-section {
    padding-block: 28px;
  }

  .section-heading {
    align-items: flex-end;
  }

  .section-heading__title {
    align-items: flex-start;
  }

  .section-heading__title img {
    width: 36px;
    height: 36px;
  }

  .section-heading h2 {
    font-size: 23px;
  }

  .section-heading p {
    display: none;
  }

  .more-link {
    font-size: 12px;
  }

  .guide-links {
    grid-template-columns: 1fr;
    grid-template-rows: none;
    grid-auto-rows: minmax(108px, auto);
  }

  .home-download-banner {
    padding: 24px 20px;
    text-align: center;
  }

  .home-download-banner__brand {
    flex-direction: column;
  }

  .home-download-banner__choices {
    grid-template-columns: 1fr;
  }

  .home-download-banner__choices a {
    text-align: left;
  }

  .guide-links a {
    padding-block: 20px;
  }

  .drama-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px 12px;
  }

  .topic-showcase,
  .topic-list,
  .topic-directory,
  .guide-card-grid,
  .ranking-grid,
  .ranking-grid--page {
    grid-template-columns: 1fr;
  }

  .topic-showcase a {
    height: 180px;
  }

  .drama-card--compact,
  .ranking-grid--page .drama-card--compact {
    grid-template-columns: 92px minmax(0, 1fr);
  }

  .filter-form {
    grid-template-columns: 1fr;
  }

  .action-card {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .action-card img {
    margin-inline: auto;
  }

  .download-guide__intro {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .download-guide__intro img {
    margin-inline: auto;
  }

  .download-options {
    grid-template-columns: 1fr;
  }

  .download-safety {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .back-to-top {
    right: 14px;
    bottom: 16px;
    width: 50px;
    height: 50px;
    min-height: 50px;
    justify-content: center;
    padding: 0;
  }

  .back-to-top span {
    width: 34px;
    height: 34px;
  }

  .back-to-top strong {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .footer-brand {
    grid-column: auto;
  }

  .detail-page {
    padding-bottom: 42px;
  }

  .detail-breadcrumb {
    overflow: hidden;
    white-space: nowrap;
  }

  .detail-breadcrumb > :last-child {
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .detail-header {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 22px;
  }

  .detail-cover {
    max-width: 280px;
    margin-inline: auto;
  }

  .detail-heading {
    text-align: center;
  }

  .detail-tags {
    justify-content: center;
  }

  .detail-section,
  .detail-siblings {
    padding: 24px 20px;
  }

  .detail-facts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .detail-sidebar {
    grid-template-columns: 1fr;
  }

  .rank-entry-panel {
    grid-column: auto;
  }

  .detail-related .drama-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .detail-siblings {
    grid-template-columns: 1fr;
  }

  .detail-siblings a:last-child {
    text-align: left;
  }
}

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