:root {
  color-scheme: light;
  --bg: #fff7fb;
  --surface: #ffffff;
  --surface-soft: #fff1f7;
  --text: #1f2937;
  --muted: #6b7280;
  --line: #f9c5d9;
  --pink: #ec4899;
  --rose: #fb7185;
  --pink-dark: #be185d;
  --shadow: 0 18px 50px rgba(190, 24, 93, 0.12);
  --shadow-soft: 0 10px 30px rgba(190, 24, 93, 0.08);
  --radius: 22px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(236, 72, 153, 0.13), transparent 34rem),
    radial-gradient(circle at top right, rgba(251, 113, 133, 0.16), transparent 30rem),
    var(--bg);
}

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

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

button,
input,
select {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.86);
  border-bottom: 1px solid rgba(249, 197, 217, 0.9);
  backdrop-filter: blur(18px);
  box-shadow: 0 8px 28px rgba(236, 72, 153, 0.08);
}

.header-inner {
  width: min(1200px, calc(100% - 32px));
  height: 76px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 24px;
}

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

.brand-icon {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--pink), var(--rose));
  box-shadow: 0 12px 26px rgba(236, 72, 153, 0.28);
}

.brand-text {
  display: grid;
  gap: 2px;
}

.brand-text strong {
  font-size: 20px;
  line-height: 1.1;
  letter-spacing: -0.02em;
  background: linear-gradient(90deg, var(--pink-dark), var(--rose));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.brand-text small {
  color: var(--muted);
  font-size: 12px;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
}

.nav-link,
.dropdown-button {
  border: 0;
  cursor: pointer;
  color: #4b5563;
  background: transparent;
  padding: 10px 13px;
  border-radius: 999px;
  transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.nav-link:hover,
.nav-link.is-active,
.dropdown-button:hover {
  color: var(--pink-dark);
  background: #ffe4f0;
  transform: translateY(-1px);
}

.nav-dropdown {
  position: relative;
}

.dropdown-panel {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: 220px;
  display: grid;
  gap: 4px;
  padding: 10px;
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
}

.nav-dropdown:hover .dropdown-panel,
.nav-dropdown:focus-within .dropdown-panel {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-panel a,
.mobile-menu-links a,
.footer-group a,
.footer-tags a {
  display: block;
  color: #4b5563;
  border-radius: 12px;
  padding: 9px 12px;
  transition: color 0.2s ease, background 0.2s ease;
}

.dropdown-panel a:hover,
.mobile-menu-links a:hover,
.footer-group a:hover,
.footer-tags a:hover {
  color: var(--pink-dark);
  background: #ffe4f0;
}

.site-search-form {
  display: flex;
  align-items: center;
  gap: 8px;
}

.site-search-form input,
.filter-panel input,
.filter-panel select {
  width: 100%;
  border: 1px solid #fbcfe8;
  border-radius: 999px;
  outline: none;
  color: var(--text);
  background: #fff;
  padding: 11px 15px;
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.site-search-form input:focus,
.filter-panel input:focus,
.filter-panel select:focus {
  border-color: var(--pink);
  box-shadow: 0 0 0 4px rgba(236, 72, 153, 0.13);
}

.site-search-form button,
.primary-button,
.ghost-button {
  border: 0;
  cursor: pointer;
  border-radius: 999px;
  padding: 11px 18px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--pink), var(--rose));
  box-shadow: 0 12px 26px rgba(236, 72, 153, 0.22);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.site-search-form button:hover,
.primary-button:hover,
.ghost-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 34px rgba(236, 72, 153, 0.28);
}

.site-search-form.large {
  flex: 1;
  min-width: min(520px, 100%);
}

.site-search-form.large input {
  min-height: 56px;
  padding-left: 20px;
}

.site-search-form.large button {
  min-height: 56px;
  min-width: 128px;
}

.mobile-menu-button {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 12px;
  background: #ffe4f0;
}

.mobile-menu-button span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  background: var(--pink-dark);
}

.mobile-menu {
  display: none;
  width: min(1200px, calc(100% - 32px));
  margin: 0 auto;
  padding: 0 0 18px;
}

.mobile-menu.is-open {
  display: grid;
  gap: 16px;
}

.mobile-menu-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
}

.hero {
  position: relative;
  min-height: 540px;
  overflow: hidden;
  background: #111827;
}

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

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

.hero-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.hero-bg img,
.detail-backdrop img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.08);
  transform: scale(1.04);
}

.hero-slide.image-missing .hero-bg,
.detail-backdrop.image-missing {
  background:
    radial-gradient(circle at 20% 20%, rgba(251, 113, 133, 0.65), transparent 30rem),
    linear-gradient(135deg, #111827, #831843 45%, #be185d);
}

.hero-slide.image-missing .hero-bg img,
.detail-backdrop.image-missing img {
  display: none;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(17, 24, 39, 0.88), rgba(17, 24, 39, 0.58), rgba(17, 24, 39, 0.12)),
    linear-gradient(0deg, rgba(17, 24, 39, 0.65), transparent 45%);
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(1200px, calc(100% - 32px));
  min-height: 540px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  max-width: 1200px;
  padding-right: min(42vw, 430px);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  width: max-content;
  color: #ffffff;
  background: linear-gradient(135deg, var(--pink), var(--rose));
  border-radius: 999px;
  padding: 7px 14px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  box-shadow: 0 12px 24px rgba(236, 72, 153, 0.24);
}

.eyebrow.dark {
  color: var(--pink-dark);
  background: #ffe4f0;
  box-shadow: none;
}

.hero h1,
.page-hero h1,
.detail-info-main h1 {
  margin: 18px 0 16px;
  color: #ffffff;
  font-size: clamp(38px, 6vw, 70px);
  line-height: 1.02;
  letter-spacing: -0.055em;
  text-shadow: 0 8px 26px rgba(0, 0, 0, 0.35);
}

.hero p,
.page-hero p,
.detail-info-main .lead {
  max-width: 760px;
  margin: 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(16px, 2vw, 21px);
  line-height: 1.75;
}

.hero-tags,
.detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 24px 0;
}

.tag {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 999px;
  padding: 5px 12px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(8px);
  font-size: 13px;
}

.detail-tags .tag,
.card-body .tag {
  color: var(--pink-dark);
  border-color: #fbcfe8;
  background: #ffe4f0;
}

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

.primary-button,
.secondary-button,
.text-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  font-weight: 800;
}

.secondary-button {
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 999px;
  padding: 10px 18px;
  background: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(8px);
  transition: transform 0.2s ease, background 0.2s ease;
}

.secondary-button:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.24);
}

.hero-poster-card {
  position: absolute;
  right: max(32px, calc((100vw - 1200px) / 2));
  bottom: 58px;
  z-index: 3;
  width: min(310px, 28vw);
  padding: 12px;
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.12);
  box-shadow: 0 25px 70px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(18px);
}

.hero-poster-card strong,
.hero-poster-card small {
  display: block;
  padding: 8px 6px 0;
}

.hero-poster-card small {
  color: rgba(255, 255, 255, 0.72);
}

.poster-wrap {
  position: relative;
  overflow: hidden;
  width: 100%;
  height: 100%;
  min-height: 140px;
  border-radius: inherit;
  background: linear-gradient(135deg, #ffe4f0, #fecdd3);
}

.poster-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.poster-wrap.image-missing::before {
  content: attr(data-title);
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
  color: #9d174d;
  font-weight: 900;
  text-align: center;
  background:
    radial-gradient(circle at top, rgba(255, 255, 255, 0.64), transparent 8rem),
    linear-gradient(135deg, #ffe4f0, #fecdd3);
}

.poster-wrap.image-missing img {
  display: none;
}

.poster-wrap.hero-poster {
  aspect-ratio: 3 / 4;
  min-height: 0;
  border-radius: 18px;
}

.hero-arrow {
  position: absolute;
  top: 50%;
  z-index: 4;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  color: #111827;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 15px 32px rgba(0, 0, 0, 0.24);
  transform: translateY(-50%);
  transition: background 0.2s ease, transform 0.2s ease;
  font-size: 34px;
  line-height: 1;
}

.hero-arrow:hover {
  background: #ffffff;
  transform: translateY(-50%) scale(1.06);
}

.hero-arrow.prev {
  left: 18px;
}

.hero-arrow.next {
  right: 18px;
}

.hero-dots {
  position: absolute;
  left: 50%;
  bottom: 22px;
  z-index: 4;
  display: flex;
  gap: 8px;
  transform: translateX(-50%);
}

.hero-dot {
  width: 10px;
  height: 10px;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.48);
  transition: width 0.2s ease, background 0.2s ease;
}

.hero-dot.is-active {
  width: 32px;
  background: #ffffff;
}

.quick-search-panel,
.section-block,
.page-shell,
.detail-page {
  width: min(1200px, calc(100% - 32px));
  margin: 0 auto;
}

.quick-search-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  margin-top: -46px;
  position: relative;
  z-index: 5;
  padding: 28px;
  border: 1px solid rgba(249, 197, 217, 0.85);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
}

.quick-search-panel h2,
.section-heading h2,
.page-hero h1,
.content-card h2,
.ranking-sidebar h2 {
  margin: 10px 0 8px;
  color: var(--text);
  font-size: clamp(26px, 4vw, 42px);
  line-height: 1.15;
  letter-spacing: -0.04em;
}

.quick-search-panel p,
.section-heading p,
.page-hero.soft p,
.content-card p,
.category-overview-card p,
.filter-count {
  color: var(--muted);
  line-height: 1.7;
}

.section-block {
  margin-top: 64px;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 24px;
}

.text-link {
  min-width: max-content;
  color: var(--pink-dark);
  border-radius: 999px;
  padding: 10px 15px;
  background: #ffe4f0;
  transition: transform 0.2s ease, background 0.2s ease;
}

.text-link:hover {
  transform: translateY(-2px);
  background: #fbcfe8;
}

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

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

.movie-card {
  min-width: 0;
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
}

.movie-card.is-hidden {
  display: none;
}

.card-link {
  display: grid;
  height: 100%;
}

.card-poster {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-radius: var(--radius) var(--radius) 0 0;
}

.movie-card.compact .card-poster {
  aspect-ratio: 16 / 11;
}

.movie-card:hover .poster-wrap img {
  transform: scale(1.08);
}

.card-category,
.rank-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  color: #ffffff;
  border-radius: 999px;
  padding: 5px 10px;
  font-size: 12px;
  font-weight: 800;
  background: rgba(236, 72, 153, 0.92);
  box-shadow: 0 10px 18px rgba(0, 0, 0, 0.16);
}

.rank-badge {
  right: 12px;
  left: auto;
  background: rgba(17, 24, 39, 0.76);
}

.play-hover {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 3;
  width: 58px;
  height: 58px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--pink);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.88);
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.82);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.movie-card:hover .play-hover {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.card-body {
  display: grid;
  gap: 10px;
  padding: 16px;
}

.card-body h2 {
  min-height: 2.7em;
  margin: 0;
  font-size: 17px;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-desc {
  min-height: 3.1em;
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-meta,
.card-stats,
.detail-stats,
.hero-mini-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
}

.card-meta span,
.card-stats span,
.detail-stats span,
.hero-mini-stats span {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 3px 9px;
  border-radius: 999px;
  background: #fff1f7;
}

.card-stats {
  color: #9d174d;
  font-weight: 700;
}

.featured-layout {
  display: grid;
}

.rank-list {
  display: grid;
  gap: 10px;
}

.home-rank-list {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.rank-row {
  display: grid;
  grid-template-columns: 36px 72px 1fr;
  gap: 12px;
  align-items: center;
  padding: 10px;
  border: 1px solid #fce7f3;
  border-radius: 18px;
  background: #ffffff;
  box-shadow: var(--shadow-soft);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.rank-row:hover {
  transform: translateY(-2px);
  border-color: #f9a8d4;
}

.rank-number {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--pink), var(--rose));
  font-weight: 900;
}

.poster-wrap.tiny {
  width: 72px;
  height: 48px;
  min-height: 0;
  border-radius: 12px;
}

.rank-info {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.rank-info strong,
.rank-info small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rank-info small {
  color: var(--muted);
}

.page-shell {
  padding: 48px 0 0;
}

.page-hero {
  position: relative;
  overflow: hidden;
  padding: clamp(40px, 8vw, 76px);
  border-radius: 34px;
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.36), transparent 25rem),
    linear-gradient(135deg, #be185d, #ec4899 50%, #fb7185);
  box-shadow: var(--shadow);
}

.page-hero.soft {
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid #fbcfe8;
}

.page-hero.soft h1,
.page-hero.soft p {
  color: var(--text);
  text-shadow: none;
}

.page-hero.soft p {
  color: var(--muted);
}

.category-hero,
.ranking-hero {
  color: #ffffff;
}

.category-overview-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  margin-top: 32px;
}

.category-overview-card {
  position: relative;
  overflow: hidden;
  border: 1px solid #fbcfe8;
  border-radius: 26px;
  background: #ffffff;
  box-shadow: var(--shadow-soft);
}

.category-overview-card > a {
  display: grid;
  gap: 10px;
  padding: 28px;
}

.category-overview-card h2 {
  margin: 0;
  font-size: 28px;
}

.category-overview-card strong {
  color: var(--pink-dark);
}

.category-index {
  width: 46px;
  height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--pink), var(--rose));
  font-weight: 900;
}

.sample-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0 28px 28px;
}

.sample-links a {
  color: var(--pink-dark);
  background: #ffe4f0;
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 13px;
}

.filter-panel {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  gap: 14px;
  margin: 28px 0;
  padding: 20px;
  border: 1px solid #fbcfe8;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow-soft);
}

.filter-panel label {
  display: grid;
  gap: 7px;
  min-width: 150px;
  color: #4b5563;
  font-weight: 800;
}

.filter-search {
  flex: 1 1 320px;
  display: grid;
  gap: 7px;
}

.ghost-button {
  color: var(--pink-dark);
  border: 1px solid #f9a8d4;
  background: #ffe4f0;
  box-shadow: none;
}

.filter-count {
  margin: 0 0 9px;
}

.ranking-layout {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 28px;
  margin-top: 28px;
}

.ranking-sidebar {
  position: sticky;
  top: 98px;
  align-self: start;
  padding: 20px;
  border: 1px solid #fbcfe8;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow-soft);
}

.ranking-sidebar h2 {
  font-size: 24px;
}

.detail-page {
  width: 100%;
}

.detail-hero {
  position: relative;
  min-height: 620px;
  overflow: hidden;
  background: #111827;
}

.detail-backdrop {
  position: absolute;
  inset: 0;
}

.detail-backdrop::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(17, 24, 39, 0.9), rgba(17, 24, 39, 0.62), rgba(17, 24, 39, 0.18)),
    linear-gradient(0deg, #111827, transparent 52%);
}

.detail-hero-content {
  position: relative;
  z-index: 2;
  width: min(1200px, calc(100% - 32px));
  min-height: 620px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(230px, 320px) 1fr;
  gap: clamp(24px, 5vw, 58px);
  align-items: center;
  padding: 48px 0;
}

.detail-cover {
  border-radius: 28px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
}

.poster-wrap.detail-poster {
  aspect-ratio: 3 / 4;
  min-height: 0;
  border-radius: 28px;
}

.detail-info-main h1 {
  max-width: 820px;
}

.detail-stats {
  margin: 24px 0;
  color: #ffffff;
}

.detail-stats span {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(8px);
}

.player-section,
.detail-content-grid,
.related-section {
  width: min(1200px, calc(100% - 32px));
  margin: 48px auto 0;
}

.player-box {
  position: relative;
  overflow: hidden;
  border-radius: 30px;
  background: #111827;
  box-shadow: var(--shadow);
  aspect-ratio: 16 / 9;
}

.movie-player {
  width: 100%;
  height: 100%;
  display: block;
  background: #111827;
}

.player-start {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
  justify-content: center;
  border: 0;
  cursor: pointer;
  color: #ffffff;
  background:
    radial-gradient(circle at center, rgba(236, 72, 153, 0.4), transparent 18rem),
    rgba(17, 24, 39, 0.28);
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.player-start span {
  width: 86px;
  height: 86px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: var(--pink);
  background: rgba(255, 255, 255, 0.92);
  font-size: 38px;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.26);
}

.player-start strong {
  font-size: 20px;
}

.player-box.is-playing .player-start {
  opacity: 0;
  visibility: hidden;
}

.player-message {
  position: absolute;
  left: 18px;
  bottom: 14px;
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 13px;
}

.player-box.is-playing .player-message {
  display: none;
}

.detail-content-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 320px;
  gap: 22px;
}

.content-card,
.prose-card {
  padding: 26px;
  border: 1px solid #fbcfe8;
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow-soft);
}

.content-card h2 {
  font-size: 26px;
}

.content-card p {
  margin: 0;
}

.info-card dl {
  display: grid;
  grid-template-columns: 76px 1fr;
  gap: 10px 14px;
  margin: 0;
}

.info-card dt {
  color: var(--muted);
}

.info-card dd {
  margin: 0;
  color: var(--text);
  font-weight: 700;
}

.info-card a {
  color: var(--pink-dark);
}

.sitemap-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  margin-top: 32px;
}

.sitemap-group {
  padding: 22px;
  border: 1px solid #fbcfe8;
  border-radius: 24px;
  background: #ffffff;
  box-shadow: var(--shadow-soft);
}

.sitemap-group h2 {
  margin: 0 0 14px;
  color: var(--pink-dark);
}

.sitemap-group ul {
  max-height: 430px;
  overflow: auto;
  margin: 0;
  padding: 0;
  list-style: none;
}

.sitemap-group li + li {
  border-top: 1px solid #fce7f3;
}

.sitemap-group a {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 2px;
  color: #374151;
}

.sitemap-group a:hover {
  color: var(--pink-dark);
}

.site-footer {
  margin-top: 74px;
  padding: 44px 0 26px;
  border-top: 1px solid #fbcfe8;
  background: linear-gradient(135deg, #fff1f7, #fff7fb);
}

.footer-inner {
  width: min(1200px, calc(100% - 32px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr 0.7fr 1.2fr;
  gap: 34px;
}

.brand.mini .brand-text strong {
  font-size: 18px;
}

.footer-group h2 {
  margin: 0 0 12px;
  font-size: 17px;
}

.footer-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.footer-tags a {
  padding: 7px 10px;
  background: #ffffff;
}

.footer-bottom {
  width: min(1200px, calc(100% - 32px));
  margin: 26px auto 0;
  padding-top: 20px;
  border-top: 1px solid #fbcfe8;
  color: var(--muted);
  font-size: 13px;
  text-align: center;
}

.footer-bottom p {
  margin: 4px 0;
}

@media (max-width: 1100px) {
  .site-search-form:not(.large):not(.mobile) {
    display: none;
  }

  .movie-grid,
  .compact-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

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

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

  .ranking-sidebar {
    position: static;
  }
}

@media (max-width: 820px) {
  .header-inner {
    height: 68px;
  }

  .desktop-nav {
    display: none;
  }

  .mobile-menu-button {
    display: block;
    margin-left: auto;
  }

  .brand-text strong {
    font-size: 17px;
  }

  .hero,
  .hero-content {
    min-height: 640px;
  }

  .hero-content {
    justify-content: end;
    padding: 0 0 110px;
  }

  .hero h1,
  .page-hero h1,
  .detail-info-main h1 {
    font-size: clamp(34px, 13vw, 52px);
  }

  .hero-poster-card {
    display: none;
  }

  .hero-arrow {
    display: none;
  }

  .quick-search-panel,
  .section-heading,
  .footer-inner {
    grid-template-columns: 1fr;
    flex-direction: column;
    align-items: stretch;
  }

  .quick-search-panel {
    display: grid;
  }

  .movie-grid,
  .compact-grid,
  .category-overview-grid,
  .sitemap-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .detail-hero-content {
    grid-template-columns: 1fr;
    align-items: end;
    padding-top: 92px;
  }

  .detail-cover {
    max-width: 240px;
  }

  .detail-hero,
  .detail-hero-content {
    min-height: auto;
  }

  .detail-hero-content {
    padding-bottom: 48px;
  }
}

@media (max-width: 560px) {
  .header-inner,
  .mobile-menu,
  .quick-search-panel,
  .section-block,
  .page-shell,
  .player-section,
  .detail-content-grid,
  .related-section,
  .detail-hero-content,
  .footer-inner,
  .footer-bottom {
    width: min(100% - 24px, 1200px);
  }

  .brand-text small {
    display: none;
  }

  .mobile-menu-links,
  .movie-grid,
  .compact-grid,
  .category-overview-grid,
  .sitemap-grid,
  .home-rank-list {
    grid-template-columns: 1fr;
  }

  .site-search-form.large,
  .filter-panel {
    display: grid;
  }

  .site-search-form.large {
    min-width: 0;
  }

  .page-hero,
  .quick-search-panel,
  .content-card {
    border-radius: 22px;
    padding: 22px;
  }

  .rank-row {
    grid-template-columns: 32px 64px 1fr;
  }

  .poster-wrap.tiny {
    width: 64px;
    height: 46px;
  }

  .player-box {
    border-radius: 20px;
  }

  .info-card dl {
    grid-template-columns: 1fr;
  }
}
