:root {
  color-scheme: light;
  --slate-950: #020617;
  --slate-900: #0f172a;
  --slate-800: #1e293b;
  --slate-700: #334155;
  --slate-600: #475569;
  --slate-500: #64748b;
  --slate-200: #e2e8f0;
  --slate-100: #f1f5f9;
  --slate-50: #f8fafc;
  --white: #ffffff;
  --blue-950: #172554;
  --blue-900: #1e3a8a;
  --blue-700: #1d4ed8;
  --cyan-700: #0e7490;
  --amber-500: #f59e0b;
  --amber-600: #d97706;
  --rose-500: #f43f5e;
  --shadow: 0 20px 50px rgba(15, 23, 42, 0.16);
  --shadow-soft: 0 10px 30px rgba(15, 23, 42, 0.10);
  --radius-xl: 28px;
  --radius-lg: 20px;
  --radius-md: 14px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  color: var(--slate-800);
  background: var(--slate-50);
}

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

img {
  display: block;
  width: 100%;
  height: auto;
}

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.96), rgba(15, 23, 42, 0.82));
  color: var(--white);
  backdrop-filter: blur(18px);
  box-shadow: 0 10px 30px rgba(2, 6, 23, 0.18);
}

.site-header.is-scrolled {
  background: rgba(255, 255, 255, 0.96);
  color: var(--slate-900);
}

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

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

.brand-mark {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  color: var(--white);
  background: linear-gradient(135deg, var(--amber-500), #ef4444);
  box-shadow: 0 12px 28px rgba(245, 158, 11, 0.32);
}

.brand-text strong,
.footer-brand strong {
  display: block;
  font-size: 20px;
  line-height: 1.1;
}

.brand-text small,
.footer-brand small {
  display: block;
  margin-top: 4px;
  font-size: 12px;
  color: currentColor;
  opacity: 0.78;
}

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

.nav-link,
.mobile-link,
.nav-pill,
.filter-chip {
  border-radius: 999px;
  transition: 0.2s ease;
}

.nav-link {
  padding: 10px 16px;
  font-weight: 700;
  color: currentColor;
  opacity: 0.86;
}

.nav-link:hover,
.nav-link.is-active {
  opacity: 1;
  background: rgba(255, 255, 255, 0.16);
}

.site-header.is-scrolled .nav-link:hover,
.site-header.is-scrolled .nav-link.is-active {
  color: var(--white);
  background: var(--blue-900);
}

.menu-button {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 14px;
  color: currentColor;
  background: rgba(255, 255, 255, 0.12);
}

.nav-strip {
  border-top: 1px solid rgba(255, 255, 255, 0.10);
}

.site-header.is-scrolled .nav-strip {
  border-color: rgba(15, 23, 42, 0.08);
}

.nav-strip-inner {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 10px 0 12px;
  display: flex;
  gap: 10px;
  overflow-x: auto;
}

.nav-pill {
  flex: 0 0 auto;
  padding: 7px 14px;
  font-size: 13px;
  color: currentColor;
  background: rgba(255, 255, 255, 0.12);
}

.site-header.is-scrolled .nav-pill {
  background: var(--slate-100);
}

.mobile-nav {
  display: none;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding-bottom: 16px;
}

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

.mobile-link {
  padding: 14px 16px;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.12);
}

.site-header.is-scrolled .mobile-link {
  background: var(--slate-100);
}

.hero-carousel {
  position: relative;
  min-height: 660px;
  overflow: hidden;
  background: linear-gradient(180deg, var(--slate-950), var(--slate-900));
  color: var(--white);
}

.hero-site-title {
  position: absolute;
  top: 104px;
  left: 50%;
  z-index: 6;
  width: min(1180px, calc(100% - 32px));
  transform: translateX(-50%);
  pointer-events: none;
}

.hero-site-title h1 {
  max-width: 820px;
  margin: 0;
  font-size: clamp(34px, 6vw, 68px);
  line-height: 1.05;
  letter-spacing: -0.04em;
  text-shadow: 0 16px 40px rgba(2, 6, 23, 0.42);
}

.hero-site-title p {
  max-width: 620px;
  margin: 18px 0 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 17px;
}

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

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

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

.hero-slide img.image-hidden {
  opacity: 0;
}

.hero-shade {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 75% 26%, rgba(245, 158, 11, 0.35), transparent 32%),
    linear-gradient(90deg, rgba(2, 6, 23, 0.94), rgba(15, 23, 42, 0.70) 44%, rgba(15, 23, 42, 0.28)),
    linear-gradient(0deg, var(--slate-900), transparent 45%);
}

.hero-content {
  position: absolute;
  left: 50%;
  bottom: 72px;
  z-index: 7;
  width: min(1180px, calc(100% - 32px));
  transform: translateX(-50%);
}

.hero-content h2 {
  max-width: 780px;
  margin: 12px 0 14px;
  font-size: clamp(32px, 5vw, 60px);
  line-height: 1.05;
  letter-spacing: -0.03em;
}

.hero-content p {
  max-width: 680px;
  margin: 0 0 20px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 18px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
  color: var(--amber-500);
  letter-spacing: 0.08em;
}

.hero-tags,
.tag-row,
.detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.hero-tags span,
.tag-row span,
.detail-tags a {
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  padding: 8px 13px;
  color: currentColor;
  font-size: 13px;
  font-weight: 700;
  backdrop-filter: blur(12px);
}

.tag-row span {
  background: var(--slate-100);
  color: var(--slate-600);
  padding: 5px 9px;
  font-size: 12px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.primary-button,
.ghost-button,
.section-more,
.search-panel button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  border: 0;
  border-radius: 14px;
  padding: 0 20px;
  font-weight: 800;
  transition: 0.2s ease;
}

.primary-button,
.search-panel button {
  color: var(--white);
  background: linear-gradient(135deg, var(--amber-500), #ef4444);
  box-shadow: 0 12px 28px rgba(245, 158, 11, 0.32);
}

.primary-button:hover,
.search-panel button:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 34px rgba(245, 158, 11, 0.42);
}

.ghost-button,
.section-more {
  color: var(--white);
  background: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(14px);
}

.section-more {
  color: var(--blue-900);
  background: var(--slate-100);
}

.hero-arrow {
  position: absolute;
  top: 52%;
  z-index: 9;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 999px;
  color: var(--white);
  background: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(14px);
  font-size: 36px;
  line-height: 1;
  transition: 0.2s ease;
}

.hero-arrow:hover {
  background: rgba(255, 255, 255, 0.28);
}

.hero-prev {
  left: 24px;
}

.hero-next {
  right: 24px;
}

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

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

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

.hero-search-wrap {
  position: relative;
  z-index: 15;
  margin-top: -42px;
}

.search-panel {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) 180px 160px auto;
  gap: 14px;
  align-items: end;
  margin-bottom: 30px;
  padding: 18px;
  border: 1px solid rgba(226, 232, 240, 0.85);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(18px);
}

.search-panel.home-search {
  margin-bottom: 0;
}

.search-panel label {
  display: grid;
  gap: 8px;
  color: var(--slate-600);
  font-size: 13px;
  font-weight: 800;
}

.search-panel input,
.search-panel select {
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--slate-200);
  border-radius: 14px;
  padding: 0 14px;
  color: var(--slate-800);
  background: var(--white);
  outline: none;
}

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

.content-section,
.spotlight-section,
.ranking-section {
  padding: 72px 0;
}

.white-section {
  background: var(--white);
}

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

.dark-section {
  color: var(--white);
  background: linear-gradient(135deg, var(--slate-950), var(--slate-800));
}

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

.section-heading h2,
.ranking-layout h2,
.page-hero h1,
.detail-card h1 {
  margin: 0;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.12;
  letter-spacing: -0.03em;
}

.section-heading p,
.ranking-layout p,
.page-hero p {
  margin: 8px 0 0;
  color: var(--slate-600);
}

.dark-section .section-heading p,
.ranking-section p {
  color: rgba(255, 255, 255, 0.72);
}

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

.movie-card {
  display: flex;
  min-width: 0;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid rgba(226, 232, 240, 0.85);
  border-radius: 22px;
  color: var(--slate-800);
  background: var(--white);
  box-shadow: var(--shadow-soft);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.dark-section .movie-card {
  border-color: rgba(255, 255, 255, 0.12);
  color: var(--white);
  background: rgba(255, 255, 255, 0.08);
}

.movie-card:hover {
  transform: translateY(-6px);
  border-color: rgba(245, 158, 11, 0.65);
  box-shadow: var(--shadow);
}

.poster-frame,
.spotlight-poster,
.ranking-thumb,
.poster-side {
  position: relative;
  display: block;
  overflow: hidden;
  background:
    radial-gradient(circle at 68% 20%, rgba(245, 158, 11, 0.30), transparent 38%),
    linear-gradient(135deg, var(--slate-900), var(--blue-900));
}

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

.poster-frame img,
.spotlight-poster img,
.ranking-thumb img,
.poster-side img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease, opacity 0.2s ease;
}

.poster-frame img.image-hidden,
.spotlight-poster img.image-hidden,
.ranking-thumb img.image-hidden,
.poster-side img.image-hidden {
  opacity: 0;
}

.movie-card:hover .poster-frame img,
.spotlight-card:hover .spotlight-poster img,
.ranking-card:hover .ranking-thumb img {
  transform: scale(1.06);
}

.poster-title {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 22px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 18px;
  font-weight: 900;
  text-align: center;
  line-height: 1.35;
}

.type-badge,
.rank-badge {
  position: absolute;
  z-index: 3;
  border-radius: 999px;
  color: var(--white);
  font-size: 12px;
  font-weight: 900;
  backdrop-filter: blur(12px);
}

.type-badge {
  right: 12px;
  bottom: 12px;
  padding: 6px 10px;
  background: rgba(2, 6, 23, 0.72);
}

.rank-badge {
  top: 12px;
  left: 12px;
  padding: 6px 11px;
  background: var(--amber-500);
}

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

.movie-card-body strong {
  font-size: 18px;
  line-height: 1.28;
}

.movie-one-line {
  display: -webkit-box;
  overflow: hidden;
  color: var(--slate-600);
  font-size: 14px;
  line-height: 1.55;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.dark-section .movie-one-line,
.dark-section .movie-meta {
  color: rgba(255, 255, 255, 0.70);
}

.movie-meta {
  color: var(--slate-500);
  font-size: 13px;
  font-weight: 700;
}

.compact-card {
  display: grid;
  grid-template-columns: 180px 1fr;
  align-items: stretch;
}

.compact-card .poster-frame {
  min-height: 126px;
  aspect-ratio: auto;
}

.latest-list {
  display: grid;
  gap: 16px;
}

.spotlight-section {
  background: linear-gradient(135deg, #fffbeb, #fff7ed);
}

.spotlight-card {
  display: grid;
  grid-template-columns: minmax(300px, 52%) 1fr;
  gap: 0;
  overflow: hidden;
  border-radius: var(--radius-xl);
  background: var(--white);
  box-shadow: var(--shadow);
}

.spotlight-poster {
  min-height: 420px;
}

.spotlight-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding: clamp(28px, 5vw, 56px);
}

.spotlight-copy h2 {
  margin: 12px 0;
  font-size: clamp(30px, 4vw, 50px);
  line-height: 1.08;
}

.spotlight-copy p {
  color: var(--slate-600);
  line-height: 1.8;
}

.spotlight-copy .hero-tags {
  margin: 18px 0 24px;
  color: var(--slate-700);
}

.spotlight-copy .hero-tags span,
.detail-tags a {
  background: var(--slate-100);
}

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

.category-card,
.category-overview-card {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  color: var(--white);
  background: linear-gradient(135deg, var(--blue-900), var(--cyan-700));
  box-shadow: var(--shadow-soft);
}

.category-card {
  min-height: 210px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 24px;
}

.category-card::after,
.category-overview-card::after {
  position: absolute;
  width: 170px;
  height: 170px;
  right: -64px;
  bottom: -64px;
  content: "";
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
}

.category-card strong,
.category-main-link strong {
  position: relative;
  z-index: 2;
  display: block;
  font-size: 24px;
}

.category-card small,
.category-main-link span {
  position: relative;
  z-index: 2;
  display: block;
  margin-top: 10px;
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.65;
}

.category-samples {
  position: relative;
  z-index: 2;
  display: grid;
  gap: 6px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 13px;
}

.color-amber { background: linear-gradient(135deg, #f59e0b, #ea580c); }
.color-red { background: linear-gradient(135deg, #dc2626, #f97316); }
.color-pink { background: linear-gradient(135deg, #db2777, #f43f5e); }
.color-slate { background: linear-gradient(135deg, #0f172a, #475569); }
.color-cyan { background: linear-gradient(135deg, #0e7490, #2563eb); }
.color-purple { background: linear-gradient(135deg, #581c87, #be123c); }
.color-orange { background: linear-gradient(135deg, #9a3412, #f59e0b); }
.color-green { background: linear-gradient(135deg, #15803d, #0d9488); }
.color-emerald { background: linear-gradient(135deg, #047857, #65a30d); }
.color-stone { background: linear-gradient(135deg, #44403c, #0f766e); }
.color-rose { background: linear-gradient(135deg, #be123c, #e11d48); }
.color-blue { background: linear-gradient(135deg, var(--blue-900), var(--cyan-700)); }

.ranking-section {
  color: var(--white);
  background: linear-gradient(135deg, var(--slate-950), var(--blue-950));
}

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

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

.ranking-item {
  display: grid;
  grid-template-columns: 54px 1fr;
  gap: 14px;
  align-items: center;
  padding: 15px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.08);
  transition: 0.2s ease;
}

.ranking-item:hover {
  transform: translateX(4px);
  background: rgba(255, 255, 255, 0.14);
}

.ranking-item span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  background: var(--amber-500);
  font-weight: 900;
}

.ranking-item strong,
.ranking-item small {
  display: block;
}

.ranking-item small {
  margin-top: 4px;
  color: rgba(255, 255, 255, 0.68);
}

.page-hero {
  padding: 84px 0 64px;
  color: var(--white);
  background: linear-gradient(135deg, var(--blue-900), var(--cyan-700));
}

.page-hero p {
  max-width: 720px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 18px;
}

.filter-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 24px;
}

.filter-chip {
  padding: 10px 14px;
  color: var(--slate-700);
  background: var(--slate-100);
  font-weight: 800;
}

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

.pagination {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 36px;
}

.pagination a,
.pagination span {
  min-width: 42px;
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  padding: 0 14px;
  background: var(--slate-100);
  color: var(--slate-700);
  font-weight: 800;
}

.pagination a.is-active,
.pagination a:hover {
  color: var(--white);
  background: var(--blue-900);
}

.category-overview-card {
  min-height: 260px;
  padding: 24px;
}

.category-main-link {
  position: relative;
  z-index: 2;
  display: block;
}

.mini-links {
  position: relative;
  z-index: 2;
  display: grid;
  gap: 8px;
  margin-top: 22px;
}

.mini-links a {
  color: rgba(255, 255, 255, 0.86);
  font-weight: 700;
}

.ranking-card-list {
  display: grid;
  gap: 16px;
}

.ranking-card {
  display: grid;
  grid-template-columns: 68px 200px 1fr;
  gap: 18px;
  align-items: center;
  padding: 16px;
  border: 1px solid rgba(226, 232, 240, 0.92);
  border-radius: 22px;
  background: var(--white);
  box-shadow: var(--shadow-soft);
  transition: 0.2s ease;
}

.ranking-card:hover {
  transform: translateY(-4px);
  border-color: rgba(245, 158, 11, 0.62);
}

.ranking-number {
  display: inline-flex;
  width: 52px;
  height: 52px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: var(--white);
  background: var(--blue-900);
  font-weight: 900;
}

.ranking-thumb {
  aspect-ratio: 16 / 9;
  border-radius: 16px;
}

.ranking-copy strong,
.ranking-copy em,
.ranking-copy small {
  display: block;
}

.ranking-copy strong {
  font-size: 21px;
}

.ranking-copy em {
  margin: 7px 0;
  color: var(--slate-600);
  font-style: normal;
  line-height: 1.6;
}

.ranking-copy small {
  color: var(--slate-500);
  font-weight: 800;
}

.empty-state {
  padding: 26px;
  border-radius: var(--radius-lg);
  color: var(--slate-600);
  background: var(--slate-100);
  text-align: center;
  font-weight: 800;
}

.detail-shell {
  padding: 30px 0 70px;
  background: linear-gradient(180deg, var(--slate-950), var(--slate-900) 420px, var(--slate-50) 420px);
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 22px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 14px;
  font-weight: 800;
}

.breadcrumb a:hover {
  color: var(--amber-500);
}

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

.detail-main {
  display: grid;
  gap: 22px;
}

.cinema-player {
  position: relative;
  overflow: hidden;
  border-radius: 26px;
  background: #000;
  box-shadow: 0 26px 70px rgba(0, 0, 0, 0.32);
}

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

.player-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  color: var(--white);
  background:
    radial-gradient(circle, rgba(245, 158, 11, 0.26), transparent 34%),
    linear-gradient(0deg, rgba(0, 0, 0, 0.58), rgba(0, 0, 0, 0.24));
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

.player-overlay span {
  width: 86px;
  height: 86px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding-left: 6px;
  background: rgba(255, 255, 255, 0.22);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.28);
  font-size: 34px;
  backdrop-filter: blur(14px);
}

.cinema-player.is-playing .player-overlay,
.cinema-player.is-ready .player-overlay.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.detail-card,
.side-card {
  border: 1px solid rgba(226, 232, 240, 0.92);
  border-radius: 24px;
  background: var(--white);
  box-shadow: var(--shadow-soft);
}

.detail-card {
  padding: clamp(24px, 4vw, 40px);
}

.detail-card h1 {
  color: var(--slate-900);
}

.detail-card h2 {
  margin: 30px 0 12px;
  font-size: 24px;
}

.detail-card p {
  color: var(--slate-700);
  line-height: 1.9;
  white-space: pre-line;
}

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

.detail-meta span,
.info-list strong {
  border-radius: 999px;
  padding: 8px 12px;
  color: var(--blue-900);
  background: #dbeafe;
  font-weight: 900;
}

.detail-one-line {
  margin: 0 0 18px;
  padding-left: 18px;
  border-left: 4px solid var(--blue-900);
  font-size: 18px;
  font-weight: 800;
}

.detail-tags a {
  color: var(--slate-700);
}

.detail-side {
  display: grid;
  gap: 18px;
  position: sticky;
  top: 130px;
}

.side-card {
  overflow: hidden;
  padding: 22px;
}

.poster-side {
  min-height: 250px;
  padding: 0;
}

.poster-side img {
  position: absolute;
  inset: 0;
}

.side-card h2 {
  margin: 0 0 16px;
  font-size: 21px;
}

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

.info-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.info-list span {
  color: var(--slate-500);
  font-weight: 800;
}

.info-list strong {
  max-width: 190px;
  text-align: right;
}

.side-link-card {
  display: grid;
  gap: 10px;
}

.side-link-card a {
  display: block;
  border-radius: 14px;
  padding: 13px 14px;
  color: var(--slate-700);
  background: var(--slate-100);
  font-weight: 900;
}

.side-link-card a:hover {
  color: var(--white);
  background: var(--blue-900);
}

.site-footer {
  color: rgba(255, 255, 255, 0.72);
  background: linear-gradient(135deg, var(--slate-950), var(--slate-800));
}

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

.footer-grid p {
  line-height: 1.8;
}

.footer-grid h2 {
  margin: 0 0 16px;
  color: var(--white);
  font-size: 18px;
}

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

.footer-grid a:hover {
  color: var(--amber-500);
}

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

.footer-bottom {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 22px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.10);
  font-size: 14px;
}

.footer-bottom p {
  margin: 0;
}

[data-card][hidden] {
  display: none !important;
}

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

  .ranking-layout,
  .detail-grid,
  .spotlight-card,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .detail-side {
    position: static;
  }

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

  .ranking-card {
    grid-template-columns: 54px 150px 1fr;
  }
}

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

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

  .header-inner {
    height: 68px;
  }

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

  .hero-site-title {
    top: 86px;
  }

  .hero-site-title p,
  .hero-content p {
    font-size: 15px;
  }

  .hero-content {
    bottom: 70px;
  }

  .hero-arrow {
    display: none;
  }

  .content-section,
  .spotlight-section,
  .ranking-section {
    padding: 50px 0;
  }

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

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

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

  .compact-card,
  .ranking-card {
    grid-template-columns: 1fr;
  }

  .compact-card .poster-frame,
  .ranking-thumb {
    min-height: auto;
    aspect-ratio: 16 / 9;
  }

  .ranking-number {
    width: 44px;
    height: 44px;
  }

  .footer-bottom {
    flex-direction: column;
  }
}
