:root {
  --bg: #fff8ec;
  --bg-soft: #ffedd5;
  --panel: #ffffff;
  --ink: #292524;
  --muted: #78716c;
  --line: rgba(120, 113, 108, 0.18);
  --amber: #d97706;
  --amber-dark: #92400e;
  --orange: #ea580c;
  --gold: #fcd34d;
  --shadow: 0 20px 45px rgba(120, 53, 15, 0.18);
  --shadow-soft: 0 12px 30px rgba(120, 53, 15, 0.12);
  --radius: 22px;
}

* {
  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", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--ink);
  background: linear-gradient(135deg, #fff7ed 0%, #fffbeb 50%, #fef3c7 100%);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

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

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

.container {
  width: min(1180px, calc(100% - 32px));
  margin: 0 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;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  color: #fff7ed;
  background: linear-gradient(90deg, #78350f 0%, #92400e 48%, #78350f 100%);
  box-shadow: 0 10px 30px rgba(69, 26, 3, 0.26);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 78px;
}

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

.brand-mark {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border-radius: 999px;
  font-size: 24px;
  background: linear-gradient(135deg, #f59e0b, #ea580c);
  box-shadow: inset 0 2px 8px rgba(255, 255, 255, 0.35), 0 12px 26px rgba(234, 88, 12, 0.35);
  transition: transform 0.3s ease;
}

.brand:hover .brand-mark {
  transform: scale(1.08) rotate(-4deg);
}

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

.brand-title {
  font-size: 25px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: 0.02em;
  background: linear-gradient(90deg, #fde68a, #fff7ed);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.brand-subtitle {
  font-size: 12px;
  color: #fed7aa;
}

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

.nav-link {
  position: relative;
  padding: 10px 0;
  color: #ffedd5;
  font-weight: 700;
  transition: color 0.2s ease;
}

.nav-link::after {
  position: absolute;
  left: 0;
  bottom: 4px;
  width: 0;
  height: 2px;
  content: "";
  border-radius: 999px;
  background: #fde68a;
  transition: width 0.2s ease;
}

.nav-link:hover,
.nav-link.is-active {
  color: #fde68a;
}

.nav-link:hover::after,
.nav-link.is-active::after {
  width: 100%;
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 0;
  border-radius: 14px;
  color: inherit;
  background: rgba(255, 255, 255, 0.12);
}

.menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  margin: 3px auto;
  border-radius: 999px;
  background: currentColor;
}

.mobile-nav {
  display: none;
  padding: 8px 16px 16px;
  background: rgba(69, 26, 3, 0.96);
}

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

.mobile-nav-link {
  padding: 12px 14px;
  border-radius: 14px;
  color: #ffedd5;
  font-weight: 700;
}

.mobile-nav-link:hover,
.mobile-nav-link.is-active {
  background: rgba(255, 255, 255, 0.12);
  color: #fde68a;
}

.hero {
  position: relative;
  min-height: 680px;
  overflow: hidden;
  color: #fff7ed;
  background: #451a03;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: scale(1.02);
  pointer-events: none;
  transition: opacity 0.7s ease, transform 1.2s ease;
}

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

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

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 75% 35%, rgba(245, 158, 11, 0.35), transparent 32%),
    linear-gradient(90deg, rgba(69, 26, 3, 0.94) 0%, rgba(69, 26, 3, 0.76) 42%, rgba(69, 26, 3, 0.2) 100%),
    linear-gradient(0deg, rgba(69, 26, 3, 0.86) 0%, transparent 45%);
}

.hero-content {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -48%);
  display: grid;
  max-width: 1180px;
  gap: 22px;
}

.eyebrow {
  margin: 0;
  color: var(--amber);
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.hero .eyebrow,
.detail-hero .eyebrow,
.page-hero .eyebrow {
  color: #fcd34d;
}

.hero h1 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(42px, 7vw, 82px);
  line-height: 0.98;
  letter-spacing: -0.05em;
  text-shadow: 0 12px 30px rgba(69, 26, 3, 0.35);
}

.hero-summary {
  max-width: 720px;
  margin: 0;
  font-size: clamp(18px, 2vw, 25px);
  line-height: 1.65;
  color: #ffedd5;
}

.hero-tags,
.chip-row,
.footer-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.hero-tags span,
.chip-row span,
.footer-badges span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 5px 10px;
  border-radius: 999px;
  color: #78350f;
  font-size: 12px;
  font-weight: 800;
  background: #fde68a;
}

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

.primary-button,
.ghost-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 24px;
  border-radius: 999px;
  font-weight: 900;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.primary-button {
  color: white;
  background: linear-gradient(90deg, #f59e0b, #ea580c);
  box-shadow: 0 14px 28px rgba(234, 88, 12, 0.34);
}

.primary-button:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 18px 34px rgba(234, 88, 12, 0.46);
}

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

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

.ghost-button.dark {
  color: var(--amber-dark);
  border-color: rgba(217, 119, 6, 0.35);
  background: #fffbeb;
}

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

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

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

.hero-arrow {
  position: absolute;
  top: 50%;
  z-index: 4;
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 999px;
  color: #fff7ed;
  font-size: 34px;
  line-height: 1;
  background: rgba(69, 26, 3, 0.42);
  transform: translateY(-50%);
  backdrop-filter: blur(12px);
}

.hero-prev {
  left: 24px;
}

.hero-next {
  right: 24px;
}

.home-search-section {
  margin-top: -52px;
  position: relative;
  z-index: 5;
}

.home-search-card {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 28px;
  align-items: center;
  padding: 28px;
  border: 1px solid rgba(255, 255, 255, 0.75);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.home-search-card h2,
.section-heading h2,
.page-hero h1,
.detail-copy h1,
.detail-main h2,
.detail-side h2 {
  margin: 0;
  color: var(--ink);
  font-weight: 900;
  letter-spacing: -0.03em;
}

.home-search-card p {
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.7;
}

.search-panel {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  padding: 8px;
  border-radius: 999px;
  background: #fff7ed;
  box-shadow: inset 0 0 0 1px rgba(217, 119, 6, 0.16);
}

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

.search-panel button {
  min-height: 48px;
  padding: 0 22px;
  border: 0;
  border-radius: 999px;
  color: white;
  font-weight: 900;
  background: linear-gradient(90deg, #f59e0b, #ea580c);
}

.section-block {
  padding: 74px 0;
}

.warm-block {
  background: linear-gradient(135deg, rgba(254, 243, 199, 0.84), rgba(255, 237, 213, 0.72));
}

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

.section-heading h2 {
  font-size: clamp(28px, 3vw, 42px);
}

.section-more {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 16px;
  border-radius: 999px;
  color: var(--amber-dark);
  font-weight: 900;
  background: #fffbeb;
  box-shadow: inset 0 0 0 1px rgba(217, 119, 6, 0.2);
}

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

.movie-card {
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: var(--shadow-soft);
  transition: transform 0.28s ease, box-shadow 0.28s ease;
}

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

.poster-link {
  position: relative;
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #451a03;
}

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

.movie-card:hover .poster-link img,
.category-tile:hover img,
.category-overview-card:hover img,
.rank-row:hover img {
  transform: scale(1.08);
}

.poster-link::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.48), transparent 55%);
  opacity: 0;
  transition: opacity 0.28s ease;
}

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

.duration-badge,
.category-badge {
  position: absolute;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 4px 9px;
  border-radius: 999px;
  color: #fff7ed;
  font-size: 12px;
  font-weight: 900;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(10px);
}

.duration-badge {
  right: 10px;
  bottom: 10px;
}

.category-badge {
  left: 10px;
  top: 10px;
  background: linear-gradient(90deg, #f59e0b, #ea580c);
}

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

.card-body h2 {
  margin: 0;
  font-size: 18px;
  line-height: 1.35;
}

.card-body h2 a {
  display: -webkit-box;
  overflow: hidden;
  color: var(--ink);
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  transition: color 0.2s ease;
}

.card-body h2 a:hover {
  color: var(--amber-dark);
}

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

.meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  color: #a16207;
  font-size: 13px;
  font-weight: 800;
}

.meta-row span + span::before {
  content: "·";
  margin-right: 6px;
  color: #d6d3d1;
}

.chip-row span {
  color: #92400e;
  background: #ffedd5;
}

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

.category-tile {
  padding: 14px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.76);
  box-shadow: var(--shadow-soft);
}

.category-tile a:first-child {
  position: relative;
  display: block;
  overflow: hidden;
  min-height: 150px;
  border-radius: 18px;
  color: white;
  background: #451a03;
}

.category-tile img {
  width: 100%;
  height: 170px;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.category-tile a:first-child::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(0deg, rgba(69, 26, 3, 0.78), transparent 70%);
}

.category-tile a:first-child span {
  position: absolute;
  left: 14px;
  bottom: 14px;
  z-index: 2;
  font-size: 22px;
  font-weight: 900;
}

.category-tile p {
  margin: 14px 0 10px;
  color: var(--muted);
  line-height: 1.65;
}

.tile-links {
  color: #92400e;
  font-size: 14px;
  line-height: 1.7;
}

.tile-links a:hover,
.inline-links a:hover,
.category-overview-body a:hover {
  color: #ea580c;
}

.ranking-block {
  color: white;
  background: linear-gradient(135deg, #78350f, #92400e 52%, #451a03);
}

.ranking-block .section-heading h2,
.ranking-block .eyebrow {
  color: #fde68a;
}

.ranking-layout {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 24px;
  align-items: stretch;
}

.ranking-list {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.ranking-list a {
  display: grid;
  grid-template-columns: 44px 82px 1fr;
  gap: 14px;
  align-items: center;
  padding: 10px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.1);
  transition: transform 0.2s ease, background 0.2s ease;
}

.ranking-list a:hover {
  transform: translateX(6px);
  background: rgba(255, 255, 255, 0.18);
}

.rank-number {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border-radius: 999px;
  color: #78350f;
  font-weight: 900;
  background: #fde68a;
}

.ranking-list img {
  width: 82px;
  height: 54px;
  border-radius: 12px;
  object-fit: cover;
}

.rank-copy {
  display: grid;
  gap: 5px;
}

.rank-copy strong {
  color: #fff7ed;
}

.rank-copy em {
  color: #fed7aa;
  font-size: 13px;
  font-style: normal;
}

.ranking-promo {
  display: grid;
  align-content: center;
  gap: 18px;
  padding: 34px;
  border-radius: 28px;
  color: #451a03;
  background: linear-gradient(135deg, #fde68a, #fdba74);
  box-shadow: 0 24px 60px rgba(69, 26, 3, 0.3);
}

.ranking-promo h3 {
  margin: 0;
  font-size: clamp(28px, 4vw, 48px);
  line-height: 1.1;
  letter-spacing: -0.04em;
}

.ranking-promo p {
  margin: 0;
  color: #78350f;
  line-height: 1.8;
}

.page-hero,
.detail-hero {
  position: relative;
  overflow: hidden;
  color: white;
  background:
    radial-gradient(circle at 85% 20%, rgba(245, 158, 11, 0.42), transparent 30%),
    linear-gradient(135deg, #78350f, #92400e 48%, #451a03);
}

.page-hero {
  padding: 78px 0 88px;
}

.slim-hero {
  padding-top: 74px;
}

.page-hero h1 {
  margin-top: 10px;
  color: #fff7ed;
  font-size: clamp(38px, 5vw, 64px);
}

.page-hero p {
  max-width: 760px;
  margin: 14px 0 0;
  color: #ffedd5;
  font-size: 18px;
  line-height: 1.8;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-bottom: 18px;
  color: #fed7aa;
  font-size: 14px;
  font-weight: 800;
}

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

.inline-links {
  max-width: 850px;
  margin-top: 18px;
  color: #fde68a;
  line-height: 1.8;
  font-weight: 800;
}

.filter-bar {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) repeat(3, minmax(150px, 0.34fr));
  gap: 14px;
  margin-bottom: 28px;
  padding: 18px;
  border: 1px solid rgba(217, 119, 6, 0.16);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.84);
  box-shadow: var(--shadow-soft);
}

.filter-bar label {
  display: grid;
  gap: 8px;
  color: #92400e;
  font-size: 13px;
  font-weight: 900;
}

.filter-bar input,
.filter-bar select {
  width: 100%;
  min-height: 44px;
  padding: 0 12px;
  border: 1px solid rgba(217, 119, 6, 0.18);
  border-radius: 14px;
  outline: 0;
  color: var(--ink);
  background: #fffaf0;
}

.filter-bar input:focus,
.filter-bar select:focus {
  border-color: rgba(234, 88, 12, 0.55);
  box-shadow: 0 0 0 3px rgba(251, 146, 60, 0.18);
}

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

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

.category-overview-card {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 18px;
  padding: 14px;
  border-radius: 26px;
  background: white;
  box-shadow: var(--shadow-soft);
}

.category-cover {
  position: relative;
  overflow: hidden;
  min-height: 190px;
  border-radius: 18px;
  color: white;
  background: #451a03;
}

.category-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.category-cover::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(0deg, rgba(69, 26, 3, 0.82), transparent 68%);
}

.category-cover span {
  position: absolute;
  left: 16px;
  bottom: 16px;
  z-index: 2;
  font-size: 24px;
  font-weight: 900;
}

.category-overview-body {
  display: grid;
  align-content: center;
  gap: 12px;
}

.category-overview-body h2 {
  margin: 0;
  font-size: 26px;
}

.category-overview-body p,
.category-overview-body ul {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.category-overview-body ul {
  display: grid;
  gap: 4px;
  padding: 0;
  list-style: none;
}

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

.detail-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(3px) saturate(1.1);
  transform: scale(1.04);
}

.detail-bg-mask {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(69, 26, 3, 0.96) 0%, rgba(69, 26, 3, 0.78) 48%, rgba(69, 26, 3, 0.48) 100%),
    linear-gradient(0deg, rgba(69, 26, 3, 0.92), transparent 58%);
}

.detail-hero-inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 40px;
  align-items: center;
  min-height: 620px;
  padding: 48px 0;
}

.detail-hero .breadcrumb {
  grid-column: 1 / -1;
  margin-bottom: -16px;
}

.detail-poster {
  overflow: hidden;
  border: 6px solid rgba(255, 255, 255, 0.18);
  border-radius: 28px;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.35);
}

.detail-poster img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

.detail-copy {
  display: grid;
  gap: 18px;
  max-width: 760px;
}

.detail-copy h1 {
  color: #fff7ed;
  font-size: clamp(40px, 6vw, 76px);
  line-height: 1;
}

.detail-one-line {
  margin: 0;
  color: #ffedd5;
  font-size: 20px;
  line-height: 1.75;
}

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.detail-meta span {
  padding: 8px 12px;
  border-radius: 999px;
  color: #fde68a;
  font-size: 13px;
  font-weight: 900;
  background: rgba(255, 255, 255, 0.12);
}

.player-section {
  padding-top: 54px;
}

.player-shell {
  position: relative;
  overflow: hidden;
  border-radius: 30px;
  background: #0c0a09;
  box-shadow: 0 28px 76px rgba(69, 26, 3, 0.3);
}

.player-shell video {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: #0c0a09;
}

.player-overlay {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: grid;
  place-items: center;
  gap: 14px;
  border: 0;
  color: white;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.65), rgba(0, 0, 0, 0.2));
}

.player-shell.is-playing .player-overlay {
  display: none;
}

.play-icon {
  display: grid;
  width: 84px;
  height: 84px;
  place-items: center;
  border-radius: 999px;
  padding-left: 6px;
  font-size: 36px;
  color: #78350f;
  background: #fde68a;
  box-shadow: 0 18px 40px rgba(245, 158, 11, 0.38);
  transition: transform 0.25s ease;
}

.player-overlay:hover .play-icon {
  transform: scale(1.08);
}

.play-copy {
  max-width: min(680px, calc(100% - 48px));
  font-size: clamp(22px, 4vw, 40px);
  font-weight: 900;
  text-align: center;
  text-shadow: 0 10px 28px rgba(0, 0, 0, 0.45);
}

.detail-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 28px;
  align-items: start;
}

.detail-main,
.detail-side {
  border-radius: 28px;
  background: white;
  box-shadow: var(--shadow-soft);
}

.detail-main {
  display: grid;
  gap: 18px;
  padding: 32px;
}

.detail-main h2 {
  font-size: 28px;
}

.detail-main p {
  margin: 0;
  color: #57534e;
  font-size: 17px;
  line-height: 1.95;
}

.detail-side {
  display: grid;
  gap: 18px;
  padding: 26px;
}

.detail-side h2 {
  font-size: 24px;
}

.detail-side dl {
  display: grid;
  grid-template-columns: 74px 1fr;
  gap: 12px 14px;
  margin: 0;
}

.detail-side dt {
  color: #a16207;
  font-weight: 900;
}

.detail-side dd {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

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

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

.rank-row {
  border-radius: 22px;
  background: white;
  box-shadow: var(--shadow-soft);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.rank-row:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.rank-row-link {
  display: grid;
  grid-template-columns: 64px 120px 1fr auto;
  gap: 18px;
  align-items: center;
  padding: 14px;
}

.rank-row-number {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border-radius: 16px;
  color: #78350f;
  font-size: 20px;
  font-weight: 900;
  background: #ffedd5;
}

.top-rank .rank-row-number {
  color: white;
  background: linear-gradient(135deg, #f59e0b, #ea580c);
}

.rank-row img {
  width: 120px;
  height: 76px;
  border-radius: 16px;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.rank-row-copy {
  display: grid;
  gap: 8px;
}

.rank-row-copy strong {
  color: var(--ink);
  font-size: 20px;
}

.rank-row-copy em {
  display: -webkit-box;
  overflow: hidden;
  color: var(--muted);
  font-style: normal;
  line-height: 1.5;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.rank-hot {
  color: #a16207;
  font-weight: 900;
}

.site-footer {
  color: #ffedd5;
  background: linear-gradient(135deg, #1c1917, #451a03 52%, #1c1917);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr 0.9fr 1fr;
  gap: 32px;
  padding: 54px 0 34px;
}

.site-footer h2 {
  margin: 0 0 14px;
  color: #fde68a;
  font-size: 20px;
}

.site-footer p {
  margin: 0;
  color: #fed7aa;
  line-height: 1.8;
}

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

.site-footer a {
  color: #ffedd5;
}

.site-footer a:hover {
  color: #fde68a;
}

.footer-badges {
  margin-top: 16px;
}

.footer-bottom {
  padding: 18px;
  color: #fed7aa;
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

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

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

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

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

  .menu-toggle {
    display: block;
  }

  .header-inner {
    min-height: 68px;
  }

  .brand-mark {
    width: 42px;
    height: 42px;
  }

  .brand-title {
    font-size: 22px;
  }

  .brand-subtitle {
    display: none;
  }

  .hero {
    min-height: 620px;
  }

  .hero-content {
    transform: translate(-50%, -45%);
  }

  .home-search-card,
  .filter-bar,
  .detail-hero-inner {
    grid-template-columns: 1fr;
  }

  .detail-hero .breadcrumb {
    grid-column: auto;
    margin-bottom: 0;
  }

  .detail-poster {
    max-width: 280px;
  }

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

  .category-overview-card {
    grid-template-columns: 1fr;
  }

  .rank-row-link {
    grid-template-columns: 44px 86px 1fr;
  }

  .rank-hot {
    display: none;
  }

  .hero-arrow {
    display: none;
  }
}

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

  .hero {
    min-height: 560px;
  }

  .hero h1,
  .detail-copy h1 {
    letter-spacing: -0.04em;
  }

  .hero-summary,
  .detail-one-line,
  .page-hero p {
    font-size: 16px;
  }

  .hero-actions,
  .section-heading {
    align-items: stretch;
    flex-direction: column;
  }

  .home-search-section {
    margin-top: -34px;
  }

  .home-search-card,
  .detail-main,
  .detail-side {
    padding: 20px;
    border-radius: 22px;
  }

  .search-panel {
    grid-template-columns: 1fr;
    border-radius: 22px;
  }

  .search-panel button {
    width: 100%;
  }

  .section-block {
    padding: 52px 0;
  }

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

  .poster-link {
    aspect-ratio: 16 / 9;
  }

  .category-tile img {
    height: 190px;
  }

  .ranking-list a {
    grid-template-columns: 36px 72px 1fr;
    gap: 10px;
  }

  .ranking-list img {
    width: 72px;
    height: 48px;
  }

  .detail-hero-inner {
    min-height: auto;
    padding: 36px 0 54px;
  }

  .detail-poster {
    max-width: 220px;
  }

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

  .play-icon {
    width: 66px;
    height: 66px;
    font-size: 28px;
  }

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

  .rank-row-link {
    grid-template-columns: 38px 76px 1fr;
    gap: 10px;
    padding: 10px;
  }

  .rank-row-number {
    width: 36px;
    height: 36px;
    border-radius: 12px;
    font-size: 16px;
  }

  .rank-row img {
    width: 76px;
    height: 54px;
  }

  .rank-row-copy strong {
    font-size: 16px;
  }

  .rank-row-copy em {
    display: none;
  }
}
