:root {
  --rose-50: #fff1f2;
  --rose-100: #ffe4e6;
  --rose-500: #f43f5e;
  --rose-600: #e11d48;
  --rose-700: #be123c;
  --rose-900: #881337;
  --pink-600: #db2777;
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-400: #9ca3af;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-800: #1f2937;
  --gray-900: #111827;
  --shadow-soft: 0 18px 45px rgba(15, 23, 42, 0.12);
  --shadow-card: 0 12px 30px rgba(15, 23, 42, 0.10);
  --radius-xl: 24px;
  --radius-lg: 18px;
  --radius-md: 12px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Inter", "PingFang SC", "Microsoft YaHei", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--gray-50);
  color: var(--gray-900);
}

body.menu-open {
  overflow: hidden;
}

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

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

button,
input,
select {
  font: inherit;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
  backdrop-filter: blur(16px);
}

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

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
}

.brand-mark {
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  color: #fff;
  background: linear-gradient(135deg, var(--rose-500), var(--pink-600));
  box-shadow: 0 12px 24px rgba(225, 29, 72, 0.28);
}

.brand-name {
  font-size: 20px;
  background: linear-gradient(135deg, var(--rose-600), var(--pink-600));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  white-space: nowrap;
}

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

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

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

.header-search {
  display: flex;
  align-items: center;
  width: min(360px, 35vw);
  border: 1px solid var(--gray-200);
  border-radius: 14px;
  overflow: hidden;
  background: #fff;
}

.header-search input,
.large-search input,
.page-filter,
.page-sort {
  border: 0;
  outline: 0;
  background: #fff;
}

.header-search input {
  min-width: 0;
  flex: 1;
  padding: 10px 12px;
}

.header-search button,
.large-search button {
  border: 0;
  cursor: pointer;
  padding: 10px 16px;
  color: #fff;
  background: linear-gradient(135deg, var(--rose-500), var(--pink-600));
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 12px;
  background: var(--gray-100);
  cursor: pointer;
  font-size: 22px;
}

.mobile-panel {
  display: none;
  border-top: 1px solid var(--gray-100);
  background: #fff;
}

.mobile-nav {
  width: min(1280px, calc(100% - 32px));
  margin: 0 auto;
  display: grid;
  gap: 8px;
  padding: 14px 0 18px;
}

.mobile-nav a {
  padding: 12px 14px;
  border-radius: 12px;
  color: var(--gray-700);
  background: var(--gray-50);
}

.hero {
  position: relative;
  height: min(600px, 75vh);
  min-height: 500px;
  overflow: hidden;
  background: linear-gradient(135deg, var(--rose-900), #9d174d, var(--rose-700));
}

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

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

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.02);
}

.hero-overlay,
.detail-bg::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.82), rgba(0, 0, 0, 0.52), rgba(0, 0, 0, 0.10));
}

.hero-content {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  color: #fff;
  max-width: 1280px;
  left: 50%;
  transform: translateX(-50%);
}

.hero-content h1,
.hero-content h2 {
  margin: 0 0 18px;
  max-width: 760px;
  font-size: clamp(42px, 6vw, 72px);
  line-height: 1.05;
  font-weight: 900;
}

.hero-content p {
  max-width: 680px;
  margin: 0 0 32px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 18px;
  line-height: 1.7;
}

.hero-kicker,
.detail-category,
.page-hero span {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 7px 16px;
  margin-bottom: 16px;
  color: #fff;
  background: linear-gradient(135deg, var(--rose-500), var(--pink-600));
  font-weight: 750;
  box-shadow: 0 10px 24px rgba(244, 63, 94, 0.24);
}

.hero-actions,
.detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

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

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

.btn-primary {
  color: #fff;
  background: linear-gradient(135deg, var(--rose-500), var(--pink-600));
  box-shadow: 0 18px 36px rgba(225, 29, 72, 0.32);
}

.btn-primary:hover {
  box-shadow: 0 22px 42px rgba(225, 29, 72, 0.42);
}

.btn-ghost {
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.55);
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(12px);
}

.hero-control {
  position: absolute;
  top: 50%;
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: 999px;
  color: #fff;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  font-size: 36px;
  line-height: 1;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

.hero-control:hover {
  background: rgba(255, 255, 255, 0.32);
  transform: translateY(-50%) scale(1.04);
}

.hero-control.prev {
  left: 24px;
  transform: translateY(-50%);
}

.hero-control.next {
  right: 24px;
  transform: translateY(-50%);
}

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

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

.hero-dot.active {
  width: 36px;
  background: #fff;
}

.stat-band {
  position: relative;
  z-index: 4;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin-top: -56px;
}

.stat-card {
  min-height: 118px;
  padding: 24px;
  border-radius: var(--radius-lg);
  color: #fff;
  box-shadow: var(--shadow-soft);
}

.stat-card strong {
  display: block;
  font-size: 34px;
  line-height: 1;
  margin-bottom: 8px;
}

.stat-card span {
  color: rgba(255, 255, 255, 0.82);
}

.blue {
  background: linear-gradient(135deg, #3b82f6, #2563eb);
}

.green {
  background: linear-gradient(135deg, #10b981, #059669);
}

.amber {
  background: linear-gradient(135deg, #f59e0b, #d97706);
}

.purple {
  background: linear-gradient(135deg, #8b5cf6, #7c3aed);
}

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

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

.section-heading.compact {
  margin-bottom: 20px;
}

.section-heading h2,
.text-panel h2,
.sidebar-card h2,
.rank-block h2 {
  margin: 0 0 8px;
  font-size: clamp(26px, 3vw, 36px);
  line-height: 1.16;
}

.section-heading p,
.text-panel p,
.ranking-copy p,
.category-tile p,
.category-overview-head p,
.page-hero p,
.detail-copy p,
.horizontal-body p,
.rank-card p {
  margin: 0;
  color: var(--gray-600);
  line-height: 1.75;
}

.section-heading a {
  color: var(--rose-600);
  font-weight: 800;
}

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

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

.movie-card {
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: #fff;
  box-shadow: 0 1px 0 rgba(15, 23, 42, 0.04), 0 12px 30px rgba(15, 23, 42, 0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

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

.movie-poster {
  position: relative;
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: linear-gradient(135deg, var(--rose-900), var(--pink-600));
}

.movie-poster img,
.horizontal-cover img,
.mini-card-cover img,
.rank-card-cover img,
.detail-poster img,
.player-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

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

.poster-gradient {
  position: absolute;
  inset: 0;
  opacity: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.05), rgba(0,0,0,0.72));
  transition: opacity 0.25s ease;
}

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

.card-category,
.card-year {
  position: absolute;
  z-index: 2;
  border-radius: 999px;
  padding: 5px 10px;
  font-size: 12px;
  font-weight: 800;
}

.card-category {
  top: 12px;
  left: 12px;
  color: #fff;
  background: var(--rose-500);
}

.card-year {
  right: 12px;
  bottom: 12px;
  color: #fff;
  background: rgba(0, 0, 0, 0.72);
}

.poster-play,
.hover-play,
.mini-play {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: #fff;
  background: rgba(244, 63, 94, 0.92);
  transform: translate(-50%, -50%) scale(0.7);
  opacity: 0;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.poster-play {
  width: 56px;
  height: 56px;
  font-size: 26px;
}

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

.movie-card-body {
  padding: 18px;
}

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

.movie-card-body h3 a,
.horizontal-title,
.rank-card h3 a,
.mini-card-body a {
  transition: color 0.2s ease;
}

.movie-card-body h3 a:hover,
.horizontal-title:hover,
.rank-card h3 a:hover,
.mini-card-body a:hover {
  color: var(--rose-600);
}

.movie-card-body p {
  margin: 0 0 14px;
  min-height: 48px;
  color: var(--gray-600);
  font-size: 14px;
  line-height: 1.65;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-meta,
.detail-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  color: var(--gray-500);
  font-size: 13px;
}

.card-meta span:first-child,
.detail-meta span {
  border-radius: 999px;
  padding: 4px 9px;
  background: var(--gray-100);
  color: var(--gray-700);
}

.card-tags,
.detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.card-tags span,
.detail-tags span {
  border-radius: 999px;
  padding: 4px 9px;
  color: var(--rose-700);
  background: var(--rose-50);
  font-size: 12px;
  font-weight: 650;
}

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

.category-tile a {
  display: flex;
  min-height: 240px;
  flex-direction: column;
  padding: 26px;
  border-radius: var(--radius-lg);
  background: #fff;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.category-tile a:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-card);
}

.category-icon,
.category-overview-head span {
  width: 52px;
  height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  color: #fff;
  background: linear-gradient(135deg, var(--rose-500), var(--pink-600));
  font-size: 22px;
  font-weight: 900;
  margin-bottom: 18px;
}

.category-tile h3,
.category-overview-head h2 {
  margin: 0 0 10px;
  font-size: 22px;
}

.category-samples {
  display: grid;
  gap: 7px;
  margin-top: auto;
  padding-top: 18px;
}

.category-samples a {
  display: block;
  min-height: auto;
  padding: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  color: var(--rose-600);
  font-size: 13px;
  transform: none;
}

.ranking-section {
  margin-top: 72px;
  padding: 72px 0;
  color: #fff;
  background: linear-gradient(135deg, var(--rose-900), #9d174d, var(--pink-600));
}

.ranking-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: 48px;
  align-items: center;
}

.ranking-copy span {
  color: var(--rose-100);
  font-weight: 800;
}

.ranking-copy h2 {
  margin: 12px 0 18px;
  font-size: clamp(34px, 5vw, 56px);
}

.ranking-copy p {
  color: rgba(255, 255, 255, 0.78);
  margin-bottom: 24px;
}

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

.ranking-list li a {
  display: grid;
  grid-template-columns: 64px 1fr auto;
  align-items: center;
  gap: 18px;
  padding: 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(12px);
  transition: background 0.2s ease, transform 0.2s ease;
}

.ranking-list li a:hover {
  background: rgba(255, 255, 255, 0.22);
  transform: translateX(4px);
}

.rank-no {
  font-size: 24px;
  font-weight: 900;
}

.rank-title {
  font-weight: 800;
}

.rank-score {
  color: #fde68a;
  font-weight: 800;
}

.scroll-row {
  display: flex;
  gap: 24px;
  overflow-x: auto;
  padding: 4px 0 18px;
  scroll-snap-type: x proximity;
}

.scroll-item {
  width: 320px;
  flex: 0 0 auto;
  scroll-snap-align: start;
}

.page-hero {
  color: #fff;
  padding: 78px 0;
  background: linear-gradient(135deg, var(--rose-700), var(--pink-600));
}

.small-hero {
  padding: 56px 0;
}

.page-hero h1 {
  margin: 0 0 14px;
  font-size: clamp(36px, 5vw, 56px);
}

.page-hero p {
  max-width: 760px;
  color: rgba(255, 255, 255, 0.84);
  font-size: 17px;
}

.category-overview-list {
  display: grid;
  gap: 24px;
  padding-top: 48px;
}

.category-overview-card {
  padding: 26px;
  border-radius: var(--radius-xl);
  background: #fff;
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.08);
}

.category-overview-head {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 18px;
  align-items: center;
  margin-bottom: 20px;
}

.category-overview-head span {
  margin: 0;
}

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

.mini-card {
  display: grid;
  grid-template-columns: 108px 1fr;
  gap: 12px;
  padding: 10px;
  box-shadow: none;
  border: 1px solid var(--gray-100);
}

.mini-card-cover {
  position: relative;
  height: 74px;
  overflow: hidden;
  border-radius: 12px;
  background: var(--gray-100);
}

.mini-play,
.hover-play {
  width: 36px;
  height: 36px;
}

.mini-card-body {
  min-width: 0;
  display: grid;
  align-content: center;
  gap: 6px;
}

.mini-card-body a {
  font-weight: 800;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.mini-card-body div {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  color: var(--gray-500);
  font-size: 12px;
}

.filter-panel,
.search-panel {
  margin-top: 32px;
  padding: 22px;
  border-radius: var(--radius-lg);
  background: #fff;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
}

.category-nav-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 18px;
}

.category-nav-list a,
.rank-tabs a {
  border-radius: 999px;
  padding: 9px 14px;
  color: var(--gray-700);
  background: var(--gray-100);
  font-weight: 700;
  transition: color 0.2s ease, background 0.2s ease;
}

.category-nav-list a:hover,
.rank-tabs a:hover {
  color: #fff;
  background: var(--rose-500);
}

.filter-row,
.large-search {
  display: grid;
  grid-template-columns: 1fr 190px;
  gap: 14px;
}

.page-filter,
.page-sort,
.large-search input {
  width: 100%;
  border: 1px solid var(--gray-200);
  border-radius: 14px;
  padding: 12px 14px;
}

.filter-status {
  margin: 14px 0 0;
  color: var(--gray-500);
}

.category-movie-section {
  padding-top: 36px;
}

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

.large-search button {
  border-radius: 14px;
  padding-inline: 26px;
}

.rank-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.rank-page-layout {
  display: grid;
  gap: 56px;
  padding-top: 44px;
}

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

.rank-card {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 16px;
  padding: 14px;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
}

.rank-card-cover {
  position: relative;
  height: 104px;
  overflow: hidden;
  border-radius: 14px;
  background: var(--gray-100);
}

.rank-card-cover span {
  position: absolute;
  top: 10px;
  left: 10px;
  border-radius: 999px;
  padding: 5px 9px;
  color: #fff;
  background: rgba(0, 0, 0, 0.72);
  font-weight: 900;
}

.rank-card h3 {
  margin: 2px 0 8px;
  font-size: 18px;
}

.rank-card p {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-size: 14px;
}

.detail-main {
  background: #fff;
}

.detail-hero {
  position: relative;
  overflow: hidden;
  color: #fff;
  background: var(--gray-900);
}

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

.detail-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(4px);
  transform: scale(1.04);
}

.detail-hero-content {
  position: relative;
  z-index: 1;
  padding: 38px 0 56px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 28px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 14px;
}

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

.detail-intro {
  display: grid;
  grid-template-columns: 290px minmax(0, 1fr);
  gap: 34px;
  align-items: center;
}

.detail-poster {
  overflow: hidden;
  border: 6px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius-xl);
  aspect-ratio: 3 / 4;
  background: linear-gradient(135deg, var(--rose-900), var(--pink-600));
  box-shadow: 0 28px 55px rgba(0, 0, 0, 0.28);
}

.detail-copy h1 {
  margin: 0 0 18px;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.1;
}

.detail-copy p {
  max-width: 820px;
  color: rgba(255, 255, 255, 0.84);
  font-size: 18px;
}

.detail-meta {
  margin: 18px 0 0;
}

.detail-tags span {
  color: #fff;
  background: rgba(255, 255, 255, 0.16);
}

.detail-copy .btn {
  margin-top: 24px;
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 32px;
  padding-top: 42px;
}

.player-shell,
.text-panel,
.sidebar-card {
  border-radius: var(--radius-xl);
  background: #fff;
  box-shadow: 0 12px 34px rgba(15, 23, 42, 0.10);
}

.player-shell {
  overflow: hidden;
  background: #000;
}

.video-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #000;
}

.video-frame video {
  width: 100%;
  height: 100%;
  display: block;
  background: #000;
}

.player-cover {
  position: absolute;
  inset: 0;
  border: 0;
  padding: 0;
  cursor: pointer;
  background: #000;
}

.player-cover::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.12), rgba(0, 0, 0, 0.70));
}

.player-play-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 2;
  width: 82px;
  height: 82px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(135deg, var(--rose-500), var(--pink-600));
  box-shadow: 0 22px 40px rgba(225, 29, 72, 0.45);
  transform: translate(-50%, -50%);
  font-size: 36px;
}

.video-frame.is-playing .player-cover {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.text-panel {
  margin-top: 24px;
  padding: 28px;
}

.text-panel h2,
.sidebar-card h2 {
  font-size: 24px;
}

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

.info-table {
  display: grid;
  gap: 10px;
  margin: 0;
}

.info-table div {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--gray-100);
}

.info-table dt {
  color: var(--gray-500);
}

.info-table dd {
  margin: 0;
  color: var(--gray-900);
  font-weight: 700;
}

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

.sidebar-card {
  position: sticky;
  top: 88px;
  padding: 24px;
}

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

.horizontal-card {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  gap: 14px;
  padding: 12px;
}

.horizontal-cover {
  position: relative;
  height: 122px;
  border-radius: 14px;
  overflow: hidden;
  background: var(--gray-100);
}

.horizontal-body {
  min-width: 0;
  display: grid;
  gap: 8px;
  align-content: center;
}

.horizontal-title {
  font-size: 18px;
  font-weight: 850;
}

.site-footer {
  margin-top: 80px;
  color: #fff;
  background: linear-gradient(135deg, var(--gray-900), var(--gray-800), #111827);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 0.8fr 1fr;
  gap: 34px;
  padding: 52px 0;
}

.site-footer p,
.site-footer a {
  color: rgba(255, 255, 255, 0.68);
  line-height: 1.7;
}

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

.site-footer h3 {
  margin: 0 0 16px;
}

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

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

@media (max-width: 1080px) {
  .desktop-nav,
  .header-search {
    display: none;
  }

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

  body.menu-open .mobile-panel {
    display: block;
  }

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

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

  .detail-sidebar .sidebar-card {
    position: static;
  }

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

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

  .hero {
    min-height: 540px;
  }

  .hero-content {
    padding: 0 18px;
  }

  .hero-control {
    display: none;
  }

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

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

  .ranking-list li a {
    grid-template-columns: 48px 1fr;
  }

  .rank-score {
    grid-column: 2;
  }

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

  .detail-poster {
    width: min(280px, 82vw);
  }

  .filter-row,
  .large-search {
    grid-template-columns: 1fr;
  }
}

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

  .hero-content h1,
  .hero-content h2 {
    font-size: 40px;
  }

  .stat-band,
  .movie-grid,
  .category-grid,
  .mini-grid {
    grid-template-columns: 1fr;
  }

  .mini-card,
  .rank-card,
  .horizontal-card {
    grid-template-columns: 1fr;
  }

  .mini-card-cover,
  .rank-card-cover,
  .horizontal-cover {
    height: 180px;
  }

  .scroll-item {
    width: 86vw;
  }

  .footer-grid {
    gap: 24px;
  }
}
