:root {
  --amber-50: #fffbeb;
  --amber-100: #fef3c7;
  --amber-200: #fde68a;
  --amber-400: #fbbf24;
  --amber-500: #f59e0b;
  --amber-600: #d97706;
  --amber-700: #b45309;
  --orange-500: #f97316;
  --orange-600: #ea580c;
  --red-500: #ef4444;
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-800: #1f2937;
  --gray-900: #111827;
  --white: #ffffff;
  --shadow: 0 18px 45px rgba(17, 24, 39, 0.12);
  --soft-shadow: 0 10px 30px rgba(17, 24, 39, 0.09);
  --radius-xl: 24px;
  --radius-lg: 18px;
  --radius-md: 12px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--gray-50);
  color: var(--gray-800);
  line-height: 1.6;
}

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

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

button,
input {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid rgba(229, 231, 235, 0.9);
  box-shadow: 0 10px 30px rgba(17, 24, 39, 0.08);
  backdrop-filter: blur(16px);
}

.nav-shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(1180px, calc(100% - 32px));
  min-height: 68px;
  margin: 0 auto;
}

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  color: var(--amber-700);
}

.brand-mark {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  color: var(--white);
  background: linear-gradient(135deg, var(--amber-500), var(--orange-600));
  border-radius: 12px;
  box-shadow: 0 10px 22px rgba(217, 119, 6, 0.28);
}

.brand-text {
  font-size: 22px;
  letter-spacing: -0.03em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 30px;
}

.nav-link {
  color: var(--gray-700);
  font-weight: 700;
  transition: color 0.2s ease;
}

.nav-link:hover,
.nav-link.is-active {
  color: var(--amber-600);
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  padding: 9px;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: 12px;
}

.nav-toggle span {
  display: block;
  height: 2px;
  margin: 5px 0;
  background: var(--gray-800);
  border-radius: 999px;
}

.hero-carousel {
  position: relative;
  min-height: 660px;
  overflow: hidden;
  color: var(--white);
  background: linear-gradient(115deg, var(--amber-400), var(--orange-500) 48%, var(--amber-600));
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 8% 12%, rgba(255, 255, 255, 0.38), transparent 28%),
    radial-gradient(circle at 80% 18%, rgba(255, 237, 213, 0.34), transparent 32%),
    linear-gradient(120deg, rgba(0, 0, 0, 0.18), rgba(0, 0, 0, 0.08));
}

.hero-shell {
  position: relative;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 78px 0 70px;
}

.hero-heading {
  max-width: 760px;
  margin-bottom: 30px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

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

.hero-heading h1,
.page-hero h1 {
  margin: 0;
  font-size: clamp(42px, 6vw, 72px);
  line-height: 1.04;
  letter-spacing: -0.06em;
}

.hero-heading p,
.page-hero p {
  max-width: 760px;
  margin: 18px 0 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: clamp(17px, 2vw, 22px);
}

.hero-stage {
  position: relative;
  min-height: 380px;
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(260px, 0.55fr);
  gap: 40px;
  align-items: center;
  min-height: 380px;
  padding: 38px;
  overflow: hidden;
  pointer-events: none;
  opacity: 0;
  transform: translateY(18px) scale(0.98);
  background:
    linear-gradient(90deg, rgba(17, 24, 39, 0.72), rgba(17, 24, 39, 0.2)),
    var(--hero-image) center / cover;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 34px;
  box-shadow: 0 35px 90px rgba(88, 46, 0, 0.32);
  transition:
    opacity 0.55s ease,
    transform 0.55s ease;
}

.hero-slide::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(217, 119, 6, 0.62), rgba(0, 0, 0, 0.28));
}

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

.hero-copy,
.hero-poster {
  position: relative;
  z-index: 1;
}

.hero-kicker {
  display: inline-flex;
  margin-bottom: 14px;
  padding: 8px 13px;
  color: var(--amber-100);
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
}

.hero-copy h2 {
  max-width: 700px;
  margin: 0 0 16px;
  font-size: clamp(34px, 5vw, 62px);
  line-height: 1.05;
  letter-spacing: -0.05em;
}

.hero-copy p {
  max-width: 700px;
  margin: 0 0 20px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 18px;
}

.hero-tags,
.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.tag-pill {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 5px 12px;
  color: var(--amber-700);
  background: var(--amber-50);
  border: 1px solid var(--amber-100);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
}

.hero-tags .tag-pill {
  color: var(--white);
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.26);
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 24px;
  border-radius: 999px;
  font-weight: 850;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    background 0.2s ease;
}

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

.btn-light {
  color: var(--amber-700);
  background: var(--white);
  box-shadow: 0 18px 32px rgba(0, 0, 0, 0.18);
}

.btn-ghost {
  color: var(--white);
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.28);
}

.btn-primary {
  color: var(--white);
  background: linear-gradient(135deg, var(--amber-500), var(--orange-600));
}

.btn-outline {
  color: var(--amber-700);
  background: var(--amber-50);
  border: 1px solid var(--amber-200);
}

.btn-full {
  width: 100%;
  margin-top: 12px;
}

.hero-poster {
  display: block;
  align-self: stretch;
  min-height: 310px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: 26px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.28);
}

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

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

.hero-poster span {
  position: absolute;
  right: 18px;
  bottom: 18px;
  padding: 7px 12px;
  color: var(--white);
  background: rgba(17, 24, 39, 0.72);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
}

.hero-controls {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin-top: 24px;
}

.hero-dot {
  width: 11px;
  height: 11px;
  padding: 0;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.48);
  border: 0;
  border-radius: 999px;
}

.hero-dot.is-active {
  width: 34px;
  background: var(--white);
}

.section-pad {
  padding: 72px 0;
}

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

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

.section-head.centered {
  justify-content: center;
  text-align: center;
}

.section-head h2 {
  margin: 0;
  color: var(--gray-800);
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.12;
  letter-spacing: -0.04em;
}

.section-head p {
  max-width: 680px;
  margin: 8px 0 0;
  color: var(--gray-600);
}

.light-head h2,
.light-head p {
  color: var(--white);
}

.text-link {
  color: var(--amber-600);
  font-weight: 850;
}

.text-link:hover {
  color: var(--amber-700);
}

.tinted-section {
  background: linear-gradient(135deg, var(--amber-50), #fff7ed);
}

.search-panel,
.filter-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 24px;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-xl);
  box-shadow: var(--soft-shadow);
}

.search-panel h2 {
  margin: 0;
  color: var(--gray-800);
  font-size: clamp(24px, 3vw, 34px);
  letter-spacing: -0.04em;
}

.search-form {
  display: flex;
  flex: 1;
  max-width: 560px;
  gap: 10px;
}

.search-form input,
.filter-search input {
  width: 100%;
  min-height: 50px;
  padding: 0 18px;
  color: var(--gray-800);
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: 999px;
  outline: none;
}

.search-form input:focus,
.filter-search input:focus {
  border-color: var(--amber-500);
  box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.16);
}

.search-form button {
  min-height: 50px;
  padding: 0 24px;
  color: var(--white);
  cursor: pointer;
  background: var(--amber-600);
  border: 0;
  border-radius: 999px;
  font-weight: 850;
}

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

.movie-grid-large {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 30px;
}

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

.movie-card {
  min-width: 0;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  box-shadow: 0 10px 25px rgba(17, 24, 39, 0.08);
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease,
    border-color 0.25s ease;
}

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

.movie-link {
  display: block;
  height: 100%;
  overflow: hidden;
  border-radius: var(--radius-lg);
}

.poster-wrap {
  position: relative;
  display: block;
  height: 250px;
  overflow: hidden;
  background: linear-gradient(135deg, var(--amber-100), var(--amber-50));
}

.compact-card .poster-wrap {
  height: 170px;
}

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

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

.poster-year {
  position: absolute;
  top: 12px;
  right: 12px;
  padding: 5px 9px;
  color: var(--white);
  background: rgba(17, 24, 39, 0.76);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
}

.movie-body {
  display: grid;
  gap: 8px;
  padding: 18px;
}

.compact-card .movie-body {
  padding: 13px;
}

.movie-title {
  overflow: hidden;
  color: var(--gray-800);
  font-size: 18px;
  text-overflow: ellipsis;
  white-space: nowrap;
  transition: color 0.2s ease;
}

.compact-card .movie-title {
  font-size: 15px;
}

.movie-card:hover .movie-title {
  color: var(--amber-600);
}

.movie-desc {
  display: -webkit-box;
  min-height: 44px;
  overflow: hidden;
  color: var(--gray-600);
  font-size: 14px;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.compact-card .movie-desc {
  min-height: 38px;
  font-size: 12px;
}

.movie-meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--amber-700);
  font-size: 13px;
  font-weight: 750;
}

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

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

.category-card {
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--amber-100);
  border-radius: var(--radius-xl);
  box-shadow: var(--soft-shadow);
}

.category-card-main {
  position: relative;
  display: grid;
  min-height: 150px;
  align-content: center;
  gap: 10px;
  padding: 24px;
  overflow: hidden;
  color: var(--white);
  background: linear-gradient(135deg, var(--amber-500), var(--orange-600));
}

.category-glow {
  position: absolute;
  right: -30px;
  bottom: -30px;
  width: 110px;
  height: 110px;
  background: rgba(255, 255, 255, 0.22);
  border-radius: 999px;
}

.category-card-main strong {
  position: relative;
  font-size: 24px;
  line-height: 1.1;
}

.category-card-main span:last-child {
  position: relative;
  color: rgba(255, 255, 255, 0.86);
  font-size: 14px;
}

.category-samples {
  display: grid;
  gap: 9px;
  padding: 16px 20px 20px;
}

.category-samples a {
  overflow: hidden;
  color: var(--gray-700);
  font-size: 14px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.category-samples a:hover {
  color: var(--amber-600);
}

.ranking-band {
  background: linear-gradient(135deg, var(--amber-600), var(--orange-600));
}

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

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

.rank-card a {
  display: grid;
  grid-template-columns: auto 74px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  min-height: 96px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: 18px;
  box-shadow: 0 14px 35px rgba(17, 24, 39, 0.12);
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.rank-card a:hover {
  box-shadow: 0 22px 48px rgba(17, 24, 39, 0.18);
  transform: translateY(-3px);
}

.rank-number {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  color: var(--white);
  background: linear-gradient(135deg, var(--red-500), var(--orange-500));
  border-radius: 14px;
  font-weight: 900;
}

.rank-card img {
  width: 74px;
  height: 74px;
  object-fit: cover;
  border-radius: 14px;
}

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

.rank-content strong {
  overflow: hidden;
  color: var(--gray-900);
  font-size: 17px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rank-content span {
  display: -webkit-box;
  overflow: hidden;
  color: var(--gray-600);
  font-size: 13px;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 1;
}

.rank-content em {
  overflow: hidden;
  color: var(--amber-700);
  font-size: 12px;
  font-style: normal;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rank-score {
  min-width: 46px;
  color: var(--amber-700);
  font-weight: 900;
  text-align: right;
}

.page-hero {
  padding: 86px 0;
  color: var(--white);
  background:
    radial-gradient(circle at 12% 8%, rgba(255, 255, 255, 0.32), transparent 26%),
    linear-gradient(135deg, var(--amber-500), var(--orange-600));
}

.soft-hero {
  color: var(--gray-900);
  background: linear-gradient(135deg, var(--amber-50), #fff7ed);
}

.soft-hero p {
  color: var(--gray-600);
}

.search-hero {
  background:
    radial-gradient(circle at 88% 16%, rgba(255, 255, 255, 0.25), transparent 24%),
    linear-gradient(135deg, #f59e0b, #0ea5e9);
}

.ranking-hero {
  background:
    radial-gradient(circle at 14% 12%, rgba(255, 255, 255, 0.28), transparent 26%),
    linear-gradient(135deg, #dc2626, #f97316 55%, #f59e0b);
}

.crumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-bottom: 18px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 14px;
  font-weight: 700;
}

.crumbs a:hover {
  color: var(--amber-100);
}

.detail-crumbs {
  margin: 28px 0 18px;
  color: var(--gray-600);
}

.detail-crumbs a:hover {
  color: var(--amber-600);
}

.filter-panel {
  flex-direction: column;
  align-items: stretch;
  margin-bottom: 28px;
}

.filter-search {
  display: grid;
  gap: 8px;
  color: var(--gray-700);
  font-weight: 800;
}

.filter-search.wide {
  width: 100%;
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.filter-chip {
  min-height: 38px;
  padding: 0 15px;
  color: var(--gray-700);
  cursor: pointer;
  background: var(--gray-100);
  border: 1px solid transparent;
  border-radius: 999px;
  font-weight: 800;
}

.filter-chip:hover,
.filter-chip.is-active {
  color: var(--white);
  background: var(--amber-600);
}

.detail-shell {
  padding-bottom: 78px;
}

.detail-card {
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: 28px;
  box-shadow: var(--shadow);
}

.player-frame {
  position: relative;
  overflow: hidden;
  background: #000000;
  border-radius: 28px 28px 0 0;
}

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

.play-cover {
  position: absolute;
  inset: 0;
  display: grid;
  gap: 12px;
  place-items: center;
  align-content: center;
  color: var(--white);
  cursor: pointer;
  background: radial-gradient(circle, rgba(0, 0, 0, 0.18), rgba(0, 0, 0, 0.6));
  border: 0;
  transition: opacity 0.2s ease;
}

.play-cover.is-hidden {
  display: none;
}

.play-icon {
  display: grid;
  width: 82px;
  height: 82px;
  place-items: center;
  padding-left: 6px;
  color: var(--amber-600);
  background: var(--white);
  border-radius: 999px;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.28);
  font-size: 32px;
}

.play-cover strong {
  font-size: 20px;
}

.detail-content {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 34px;
  padding: 34px;
}

.detail-main h1 {
  margin: 0 0 14px;
  color: var(--gray-900);
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.12;
  letter-spacing: -0.04em;
}

.lead-text {
  margin: 0 0 22px;
  color: var(--gray-700);
  font-size: 18px;
}

.detail-meta-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 22px;
}

.detail-meta-grid div {
  padding: 14px;
  background: var(--amber-50);
  border: 1px solid var(--amber-100);
  border-radius: 16px;
}

.detail-meta-grid span {
  display: block;
  margin-bottom: 4px;
  color: var(--gray-500);
  font-size: 12px;
  font-weight: 800;
}

.detail-meta-grid strong {
  display: block;
  overflow: hidden;
  color: var(--amber-700);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.text-block {
  margin-top: 28px;
}

.text-block h2 {
  margin: 0 0 10px;
  color: var(--gray-900);
  font-size: 24px;
}

.text-block p {
  margin: 0;
  color: var(--gray-700);
  font-size: 16px;
}

.review-block {
  padding: 20px;
  background: var(--gray-50);
  border-left: 5px solid var(--amber-600);
  border-radius: 18px;
}

.detail-switcher {
  display: flex;
  gap: 12px;
  margin-top: 28px;
}

.detail-switcher a {
  flex: 1;
  padding: 13px 16px;
  color: var(--amber-700);
  background: var(--amber-50);
  border: 1px solid var(--amber-100);
  border-radius: 14px;
  font-weight: 850;
  text-align: center;
}

.detail-switcher a:hover {
  background: var(--amber-100);
}

.detail-aside {
  min-width: 0;
}

.aside-poster {
  display: block;
  overflow: hidden;
  border-radius: 22px;
  box-shadow: var(--soft-shadow);
}

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

.related-section {
  margin-top: 34px;
  padding: 34px;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: 28px;
  box-shadow: var(--soft-shadow);
}

.site-footer {
  background: linear-gradient(180deg, var(--amber-50), var(--amber-100));
  border-top: 1px solid var(--amber-100);
}

.footer-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 42px 0;
}

.footer-shell p {
  max-width: 680px;
  margin: 12px 0 0;
  color: var(--gray-600);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  align-content: start;
}

.footer-links a {
  color: var(--gray-600);
  font-weight: 800;
}

.footer-links a:hover {
  color: var(--amber-600);
}

.footer-bottom {
  padding: 16px;
  color: var(--gray-600);
  border-top: 1px solid rgba(217, 119, 6, 0.14);
  font-size: 14px;
  text-align: center;
}

.is-filter-hidden {
  display: none !important;
}

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

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

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

  .nav-links {
    position: absolute;
    top: 68px;
    right: 16px;
    left: 16px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 10px;
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: 18px;
    box-shadow: var(--shadow);
  }

  .nav-links.is-open {
    display: flex;
  }

  .nav-link {
    padding: 13px 14px;
    border-radius: 12px;
  }

  .nav-link:hover,
  .nav-link.is-active {
    background: var(--amber-50);
  }

  .hero-slide {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 26px;
  }

  .hero-poster {
    min-height: 240px;
  }

  .search-panel {
    align-items: stretch;
    flex-direction: column;
  }

  .search-form {
    max-width: none;
  }

  .section-head {
    align-items: flex-start;
    flex-direction: column;
  }

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

  .rank-list-home {
    grid-template-columns: 1fr;
  }

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

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

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

  .detail-aside {
    display: none;
  }

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

@media (max-width: 560px) {
  .brand-text {
    font-size: 18px;
  }

  .hero-carousel {
    min-height: auto;
  }

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

  .hero-stage {
    min-height: 560px;
  }

  .hero-slide {
    min-height: 560px;
  }

  .hero-copy h2 {
    font-size: 34px;
  }

  .hero-copy p {
    font-size: 16px;
  }

  .search-form {
    flex-direction: column;
  }

  .movie-grid,
  .movie-grid-large,
  .compact-grid,
  .search-grid,
  .category-movie-grid {
    grid-template-columns: 1fr;
  }

  .poster-wrap,
  .compact-card .poster-wrap {
    height: 260px;
  }

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

  .rank-score {
    display: none;
  }

  .detail-content,
  .related-section {
    padding: 22px;
  }

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