:root {
  --color-text: #111827;
  --color-muted: #6b7280;
  --color-soft: #fff7ed;
  --color-card: #ffffff;
  --color-border: #fed7aa;
  --color-accent: #f97316;
  --color-accent-dark: #c2410c;
  --color-amber: #f59e0b;
  --color-rose: #fb7185;
  --shadow-soft: 0 18px 55px rgba(180, 83, 9, 0.12);
  --shadow-card: 0 12px 34px rgba(17, 24, 39, 0.12);
  --radius-xl: 1.25rem;
  --radius-2xl: 1.5rem;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  color: var(--color-text);
  background: linear-gradient(135deg, #fffbeb 0%, #fff7ed 52%, #fff1f2 100%);
}

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

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

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

.container {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.82);
  border-bottom: 1px solid rgba(251, 146, 60, 0.28);
  box-shadow: 0 8px 22px rgba(251, 146, 60, 0.08);
  backdrop-filter: blur(18px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px 0;
}

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

.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  color: #ffffff;
  font-weight: 900;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--color-amber), var(--color-accent));
  box-shadow: 0 12px 24px rgba(249, 115, 22, 0.24);
}

.brand-text strong {
  display: block;
  font-size: 1.35rem;
  line-height: 1.1;
  letter-spacing: -0.02em;
  background: linear-gradient(90deg, #d97706, #ea580c);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.brand-text small {
  display: block;
  margin-top: 2px;
  color: var(--color-muted);
  font-size: 0.75rem;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 22px;
}

.nav-link {
  position: relative;
  color: #374151;
  font-weight: 700;
  transition: color 0.2s ease;
}

.nav-link::after {
  position: absolute;
  right: 0;
  bottom: -8px;
  left: 0;
  height: 3px;
  content: "";
  border-radius: 999px;
  background: linear-gradient(90deg, var(--color-amber), var(--color-rose));
  transform: scaleX(0);
  transition: transform 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
  color: var(--color-accent-dark);
}

.nav-link:hover::after,
.nav-link.active::after {
  transform: scaleX(1);
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  border: 0;
  border-radius: 12px;
  background: #fff7ed;
}

.menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 0 auto;
  border-radius: 999px;
  background: #9a3412;
}

.mobile-nav {
  display: none;
  padding: 0 16px 16px;
  border-top: 1px solid rgba(251, 146, 60, 0.25);
  background: rgba(255, 255, 255, 0.95);
}

.mobile-nav.is-open {
  display: grid;
  gap: 12px;
}

.mobile-category-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  padding-top: 8px;
}

.mobile-sub-link {
  padding: 10px 12px;
  border-radius: 12px;
  color: #9a3412;
  background: #fff7ed;
  font-size: 0.9rem;
  font-weight: 700;
}

.hero {
  position: relative;
  overflow: hidden;
  min-height: 680px;
  background: linear-gradient(100deg, #f59e0b 0%, #fb923c 48%, #fb7185 100%);
}

.hero::before,
.hero::after {
  position: absolute;
  width: 360px;
  height: 360px;
  content: "";
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  filter: blur(8px);
}

.hero::before {
  top: -160px;
  left: -80px;
}

.hero::after {
  right: -120px;
  bottom: -180px;
}

.hero-track {
  position: relative;
  z-index: 1;
  min-height: 680px;
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 420px);
  gap: 48px;
  align-items: center;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 72px 0 92px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(18px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.hero-slide.is-active {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.hero-bg {
  position: absolute;
  inset: -60px calc(50% - 50vw);
  z-index: -2;
  background-position: center;
  background-size: cover;
  opacity: 0.18;
  filter: blur(2px) saturate(1.15);
}

.hero-shade {
  position: absolute;
  inset: -60px calc(50% - 50vw);
  z-index: -1;
  background: linear-gradient(100deg, rgba(146, 64, 14, 0.9), rgba(234, 88, 12, 0.72), rgba(190, 18, 60, 0.65));
}

.hero-content {
  max-width: 720px;
  color: #ffffff;
}

.eyebrow {
  margin: 0 0 12px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.eyebrow.dark {
  color: var(--color-accent-dark);
}

.hero h1 {
  margin: 0;
  font-size: clamp(2.6rem, 7vw, 5.4rem);
  line-height: 0.96;
  letter-spacing: -0.06em;
  text-shadow: 0 12px 32px rgba(17, 24, 39, 0.24);
}

.hero-summary {
  max-width: 680px;
  margin: 24px 0 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.08rem;
  line-height: 1.8;
}

.hero-meta,
.detail-meta-list,
.hero-counts {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.hero-meta span,
.detail-meta-list span,
.hero-counts span {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 6px 12px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(10px);
  font-size: 0.9rem;
  font-weight: 800;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 30px;
}

.btn-primary,
.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 12px 20px;
  border-radius: 14px;
  font-weight: 900;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn-primary {
  color: #ffffff;
  background: linear-gradient(135deg, var(--color-accent), #e11d48);
  box-shadow: 0 16px 34px rgba(225, 29, 72, 0.24);
}

.btn-primary:hover,
.btn-ghost:hover {
  transform: translateY(-2px);
}

.btn-primary.small {
  min-height: 40px;
  padding: 10px 16px;
  font-size: 0.92rem;
}

.btn-ghost {
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.42);
  background: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(10px);
}

.hero-poster {
  position: relative;
  overflow: hidden;
  border: 8px solid rgba(255, 255, 255, 0.24);
  border-radius: 32px;
  box-shadow: 0 32px 80px rgba(127, 29, 29, 0.34);
  transform: rotate(2deg);
}

.hero-poster::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(180deg, transparent 46%, rgba(0, 0, 0, 0.42));
}

.hero-poster img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.hero-poster:hover img {
  transform: scale(1.06);
}

.hero-dots {
  position: absolute;
  right: 0;
  bottom: 34px;
  left: 0;
  z-index: 3;
  display: flex;
  justify-content: center;
  gap: 10px;
}

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

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

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

.search-panel {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1.1fr);
  gap: 24px;
  align-items: center;
  padding: 30px;
  border: 1px solid rgba(251, 146, 60, 0.24);
  border-radius: var(--radius-2xl);
  background: rgba(255, 255, 255, 0.82);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(18px);
}

.search-panel h2,
.section-heading h2,
.ranking-panel h2,
.page-hero h1 {
  margin: 0;
  color: #111827;
  font-size: clamp(1.9rem, 4vw, 3rem);
  line-height: 1.1;
  letter-spacing: -0.04em;
}

.search-panel p,
.page-hero p {
  color: #6b7280;
  line-height: 1.8;
}

.search-box,
.filter-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 180px auto;
  gap: 12px;
}

.search-box input,
.search-box select,
.search-box button,
.filter-panel input,
.filter-panel select {
  min-height: 48px;
  border: 1px solid #fed7aa;
  border-radius: 14px;
  background: #ffffff;
  color: #111827;
  padding: 0 14px;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.search-box button {
  color: #ffffff;
  border: 0;
  background: linear-gradient(135deg, var(--color-amber), var(--color-accent));
  font-weight: 900;
}

.search-box input:focus,
.search-box select:focus,
.filter-panel input:focus,
.filter-panel select:focus {
  border-color: var(--color-accent);
  box-shadow: 0 0 0 4px rgba(249, 115, 22, 0.12);
}

.search-results {
  grid-column: 1 / -1;
  display: none;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 10px;
}

.search-results.is-visible {
  display: grid;
}

.search-result-item {
  display: grid;
  grid-template-columns: 70px minmax(0, 1fr);
  gap: 12px;
  padding: 10px;
  border: 1px solid #ffedd5;
  border-radius: 16px;
  background: #fffaf5;
}

.search-result-item img {
  width: 70px;
  height: 94px;
  border-radius: 12px;
  object-fit: cover;
}

.search-result-item strong {
  display: block;
  margin-bottom: 4px;
  overflow: hidden;
  color: #111827;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.search-result-item p {
  display: -webkit-box;
  margin: 0;
  overflow: hidden;
  color: #6b7280;
  font-size: 0.88rem;
  line-height: 1.55;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

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

.section-heading a {
  color: var(--color-accent-dark);
  font-weight: 900;
}

.compact-heading {
  margin-bottom: 18px;
}

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

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

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

.page-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  padding-bottom: 40px;
}

.movie-card {
  overflow: hidden;
  border: 1px solid rgba(254, 215, 170, 0.72);
  border-radius: var(--radius-xl);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 12px 28px rgba(17, 24, 39, 0.08);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

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

.movie-poster {
  position: relative;
  display: block;
  overflow: hidden;
  background: linear-gradient(135deg, #fed7aa, #fecdd3);
}

.movie-poster img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  transition: transform 0.35s ease;
}

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

.movie-poster::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(180deg, transparent 50%, rgba(0, 0, 0, 0.42));
  opacity: 0;
  transition: opacity 0.25s ease;
}

.movie-card:hover .movie-poster::after {
  opacity: 1;
}

.score-badge,
.play-badge {
  position: absolute;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: #ffffff;
  font-weight: 900;
}

.score-badge {
  top: 10px;
  right: 10px;
  padding: 5px 9px;
  background: rgba(249, 115, 22, 0.92);
  font-size: 0.78rem;
}

.play-badge {
  right: 12px;
  bottom: 12px;
  width: 42px;
  height: 42px;
  background: rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(10px);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.movie-card:hover .play-badge {
  opacity: 1;
  transform: translateY(0);
}

.movie-info {
  padding: 15px;
}

.movie-title {
  display: block;
  overflow: hidden;
  color: #111827;
  font-size: 1.02rem;
  font-weight: 900;
  white-space: nowrap;
  text-overflow: ellipsis;
  transition: color 0.2s ease;
}

.movie-title:hover {
  color: var(--color-accent-dark);
}

.movie-meta {
  margin: 7px 0 0;
  overflow: hidden;
  color: #6b7280;
  font-size: 0.86rem;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.movie-summary {
  display: -webkit-box;
  min-height: 3.1em;
  margin: 10px 0 0;
  overflow: hidden;
  color: #4b5563;
  font-size: 0.9rem;
  line-height: 1.55;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 12px;
}

.tag-list span {
  padding: 4px 8px;
  border-radius: 999px;
  color: #9a3412;
  background: #ffedd5;
  font-size: 0.74rem;
  font-weight: 800;
}

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

.category-tile {
  position: relative;
  display: grid;
  overflow: hidden;
  min-height: 170px;
  align-content: end;
  padding: 18px;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-soft);
}

.category-tile img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.category-tile:hover img {
  transform: scale(1.08);
}

.category-tile-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 20%, rgba(17, 24, 39, 0.72));
}

.category-tile strong,
.category-tile small {
  position: relative;
  z-index: 1;
  color: #ffffff;
}

.category-tile strong {
  font-size: 1.35rem;
  font-weight: 900;
}

.category-tile small {
  margin-top: 4px;
  opacity: 0.86;
}

.split-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 28px;
  align-items: start;
}

.ranking-panel,
.detail-card,
.prose-card {
  border: 1px solid rgba(254, 215, 170, 0.72);
  border-radius: var(--radius-2xl);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow-soft);
}

.ranking-panel {
  position: sticky;
  top: 94px;
  padding: 22px;
}

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

.rank-card {
  display: grid;
  grid-template-columns: auto 76px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 10px;
  border: 1px solid #ffedd5;
  border-radius: 18px;
  background: #ffffff;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.rank-card:hover {
  border-color: #fdba74;
  transform: translateX(3px);
}

.rank-index {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border-radius: 11px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--color-amber), var(--color-accent));
  font-weight: 900;
}

.rank-cover img {
  width: 76px;
  aspect-ratio: 3 / 4;
  border-radius: 12px;
  object-fit: cover;
}

.rank-title {
  display: block;
  overflow: hidden;
  color: #111827;
  font-weight: 900;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.rank-content p {
  display: -webkit-box;
  margin: 5px 0 0;
  overflow: hidden;
  color: #6b7280;
  font-size: 0.84rem;
  line-height: 1.5;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.rank-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
  color: #9a3412;
  font-size: 0.76rem;
  font-weight: 800;
}

.page-main {
  padding-bottom: 64px;
}

.page-hero {
  margin-top: 36px;
  padding: 38px;
  border: 1px solid rgba(254, 215, 170, 0.72);
  border-radius: var(--radius-2xl);
  background: rgba(255, 255, 255, 0.84);
  box-shadow: var(--shadow-soft);
}

.simple-hero,
.category-page-hero,
.ranking-hero {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.92), rgba(255, 247, 237, 0.9));
}

.category-page-hero .hero-counts span,
.ranking-hero .hero-counts span {
  color: #9a3412;
  border-color: #fed7aa;
  background: #fff7ed;
}

.filter-panel {
  grid-template-columns: minmax(0, 1fr) 180px 180px auto;
  align-items: center;
  margin-top: 28px;
  margin-bottom: 28px;
  padding: 18px;
  border: 1px solid rgba(254, 215, 170, 0.8);
  border-radius: var(--radius-xl);
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 10px 30px rgba(17, 24, 39, 0.06);
}

.filter-count {
  color: #9a3412;
  font-weight: 900;
  white-space: nowrap;
}

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

.category-overview-card {
  overflow: hidden;
  border: 1px solid rgba(254, 215, 170, 0.76);
  border-radius: var(--radius-2xl);
  background: #ffffff;
  box-shadow: var(--shadow-soft);
}

.category-cover-collage {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  height: 180px;
  overflow: hidden;
}

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

.category-overview-body {
  padding: 24px;
}

.category-overview-body h2 {
  margin: 0 0 8px;
  font-size: 1.7rem;
}

.category-overview-body p {
  color: #6b7280;
  line-height: 1.75;
}

.full-rank-list {
  padding-bottom: 40px;
}

.full-rank-list .rank-card {
  grid-template-columns: auto 108px minmax(0, 1fr);
  padding: 16px;
}

.full-rank-list .rank-cover img {
  width: 108px;
}

.detail-main {
  padding-bottom: 64px;
}

.detail-hero {
  position: relative;
  overflow: hidden;
  min-height: 560px;
  background-position: center;
  background-size: cover;
}

.detail-hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(17, 24, 39, 0.94), rgba(127, 29, 29, 0.74), rgba(17, 24, 39, 0.48)),
    linear-gradient(0deg, rgba(17, 24, 39, 0.96), transparent 58%);
  backdrop-filter: blur(2px);
}

.detail-hero-inner {
  position: relative;
  z-index: 1;
  padding: 34px 0 70px;
  color: #ffffff;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  align-items: center;
  margin-bottom: 34px;
  color: rgba(255, 255, 255, 0.76);
  font-size: 0.92rem;
}

.breadcrumb a:hover {
  color: #ffffff;
}

.detail-intro {
  display: grid;
  grid-template-columns: 270px minmax(0, 1fr);
  gap: 36px;
  align-items: end;
}

.detail-cover {
  width: 270px;
  aspect-ratio: 3 / 4;
  border: 6px solid rgba(255, 255, 255, 0.22);
  border-radius: 26px;
  object-fit: cover;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.38);
}

.detail-intro h1 {
  margin: 0;
  font-size: clamp(2.4rem, 6vw, 4.8rem);
  line-height: 1;
  letter-spacing: -0.05em;
}

.detail-one-line {
  max-width: 820px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 1.08rem;
  line-height: 1.8;
}

.player-section {
  margin-top: -46px;
  position: relative;
  z-index: 2;
}

.player-shell {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(254, 215, 170, 0.76);
  border-radius: 28px;
  background: #111827;
  box-shadow: 0 30px 80px rgba(17, 24, 39, 0.24);
}

.video-player {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000000;
}

.player-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  gap: 14px;
  border: 0;
  color: #ffffff;
  background: linear-gradient(180deg, rgba(17, 24, 39, 0.18), rgba(17, 24, 39, 0.72));
  transition: opacity 0.22s ease, visibility 0.22s ease;
}

.player-shell.is-playing .player-overlay {
  visibility: hidden;
  opacity: 0;
}

.player-play-icon {
  display: grid;
  width: 88px;
  height: 88px;
  place-items: center;
  padding-left: 5px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--color-amber), var(--color-accent));
  box-shadow: 0 18px 45px rgba(249, 115, 22, 0.34);
  font-size: 2rem;
}

.detail-content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 24px;
  margin-top: 34px;
}

.detail-card {
  padding: 26px;
}

.content-card + .content-card {
  margin-top: 24px;
}

.detail-card h2 {
  margin: 0 0 14px;
  font-size: 1.45rem;
}

.detail-card p {
  margin: 0;
  color: #4b5563;
  line-height: 1.9;
}

.info-card {
  grid-column: 2;
  grid-row: 1 / span 2;
}

.info-card dl {
  display: grid;
  gap: 12px;
  margin: 0;
}

.info-card dt {
  color: #9a3412;
  font-size: 0.82rem;
  font-weight: 900;
}

.info-card dd {
  margin: 0;
  color: #374151;
  line-height: 1.65;
}

.prose-card {
  margin-top: 24px;
  padding: 30px;
}

.prose-card p {
  color: #4b5563;
  line-height: 1.9;
}

.site-footer {
  margin-top: 80px;
  border-top: 1px solid rgba(251, 146, 60, 0.25);
  background: linear-gradient(180deg, #ffedd5, #fed7aa);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 34px;
  padding: 42px 0 28px;
}

.site-footer h2 {
  margin: 0 0 14px;
  font-size: 1.15rem;
}

.site-footer p,
.site-footer a {
  color: #6b3f1d;
  line-height: 1.75;
}

.site-footer ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 0;
  border-top: 1px solid rgba(154, 52, 18, 0.16);
}

.footer-bottom p {
  margin: 0;
  color: #7c2d12;
  font-size: 0.92rem;
}

.back-top {
  min-height: 38px;
  padding: 8px 14px;
  border: 1px solid #fdba74;
  border-radius: 12px;
  color: #9a3412;
  background: rgba(255, 255, 255, 0.7);
  font-weight: 900;
}

[data-card].is-hidden {
  display: none;
}

@media (max-width: 1080px) {
  .movie-grid,
  .featured-grid,
  .compact-grid,
  .page-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

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

  .ranking-panel {
    position: static;
  }

  .info-card {
    grid-column: auto;
    grid-row: auto;
  }
}

@media (max-width: 860px) {
  .desktop-nav {
    display: none;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .hero,
  .hero-track {
    min-height: 740px;
  }

  .hero-slide {
    grid-template-columns: 1fr;
    gap: 24px;
    align-content: center;
    padding: 54px 0 88px;
  }

  .hero-poster {
    width: min(260px, 78vw);
    margin: 0 auto;
    transform: none;
  }

  .search-panel,
  .search-box,
  .filter-panel,
  .footer-grid,
  .detail-intro,
  .category-overview-grid {
    grid-template-columns: 1fr;
  }

  .search-results {
    grid-template-columns: 1fr;
  }

  .detail-cover {
    width: min(250px, 74vw);
  }
}

@media (max-width: 640px) {
  .container {
    width: min(100% - 24px, 1180px);
  }

  .brand-text strong {
    font-size: 1.08rem;
  }

  .brand-text small {
    display: none;
  }

  .hero,
  .hero-track {
    min-height: 760px;
  }

  .hero h1 {
    font-size: 2.55rem;
  }

  .movie-grid,
  .featured-grid,
  .compact-grid,
  .page-grid,
  .category-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }

  .movie-info {
    padding: 12px;
  }

  .movie-summary {
    display: none;
  }

  .section-heading,
  .footer-bottom {
    align-items: flex-start;
    flex-direction: column;
  }

  .page-hero,
  .search-panel,
  .detail-card,
  .prose-card {
    padding: 22px;
  }

  .full-rank-list .rank-card,
  .rank-card {
    grid-template-columns: auto 72px minmax(0, 1fr);
  }

  .full-rank-list .rank-cover img,
  .rank-cover img {
    width: 72px;
  }

  .detail-hero {
    min-height: 680px;
  }
}
