:root {
  --amber-50: #fffbeb;
  --amber-100: #fef3c7;
  --amber-400: #fbbf24;
  --amber-500: #f59e0b;
  --amber-600: #d97706;
  --amber-700: #b45309;
  --amber-900: #78350f;
  --stone-50: #fafaf9;
  --stone-100: #f5f5f4;
  --stone-200: #e7e5e4;
  --stone-300: #d6d3d1;
  --stone-500: #78716c;
  --stone-600: #57534e;
  --stone-700: #44403c;
  --stone-800: #292524;
  --stone-900: #1c1917;
  --white: #ffffff;
  --shadow-md: 0 10px 24px rgba(41, 37, 36, 0.12);
  --shadow-xl: 0 22px 60px rgba(41, 37, 36, 0.20);
  --radius-lg: 14px;
  --radius-2xl: 24px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  background: linear-gradient(180deg, var(--amber-50), var(--stone-50) 42%, var(--amber-50));
  color: var(--stone-800);
  line-height: 1.65;
}

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

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

button,
input,
select {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 251, 235, 0.92);
  border-bottom: 1px solid rgba(214, 211, 209, 0.70);
  backdrop-filter: blur(18px);
}

.header-inner {
  width: min(1280px, calc(100% - 32px));
  min-height: 72px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 22px;
}

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

.brand-mark {
  width: 42px;
  height: 42px;
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
  color: var(--white);
  background: linear-gradient(135deg, var(--amber-500), var(--amber-700));
  box-shadow: 0 10px 24px rgba(217, 119, 6, 0.35);
}

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

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
}

.nav-link {
  padding: 10px 14px;
  border-radius: 999px;
  color: var(--stone-700);
  font-weight: 700;
  transition: 0.25s ease;
}

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

.header-search {
  display: flex;
  width: 300px;
  border: 1px solid var(--amber-100);
  border-radius: 999px;
  overflow: hidden;
  background: var(--white);
  box-shadow: 0 8px 20px rgba(120, 113, 108, 0.08);
}

.header-search input,
.mobile-search input,
.hero-search-form input,
.filter-toolbar input,
.search-console input,
.search-console select {
  width: 100%;
  border: 0;
  outline: 0;
  color: var(--stone-800);
  background: var(--white);
}

.header-search input {
  padding: 10px 14px;
}

.header-search button,
.hero-search-form button,
.mobile-search button,
.search-console button {
  border: 0;
  color: var(--white);
  background: var(--amber-600);
  font-weight: 800;
  cursor: pointer;
  transition: 0.25s ease;
}

.header-search button {
  padding: 0 16px;
  white-space: nowrap;
}

.header-search button:hover,
.hero-search-form button:hover,
.mobile-search button:hover,
.search-console button:hover {
  background: var(--amber-700);
}

.mobile-menu-button {
  display: none;
  margin-left: auto;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 12px;
  background: var(--amber-100);
  cursor: pointer;
}

.mobile-menu-button span {
  display: block;
  width: 22px;
  height: 2px;
  margin: 5px auto;
  background: var(--amber-700);
}

.mobile-nav {
  display: none;
  width: min(1280px, calc(100% - 32px));
  margin: 0 auto 16px;
  padding: 12px;
  border-radius: 16px;
  background: var(--white);
  box-shadow: var(--shadow-md);
}

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

.mobile-search {
  display: flex;
  border: 1px solid var(--stone-200);
  border-radius: 12px;
  overflow: hidden;
}

.mobile-search input {
  padding: 12px;
}

.mobile-search button {
  padding: 0 16px;
}

.hero-carousel {
  position: relative;
  min-height: 720px;
  overflow: hidden;
  background: linear-gradient(135deg, var(--amber-600), var(--amber-500), var(--amber-700));
}

.hero-carousel::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  opacity: 0.22;
  background-image: radial-gradient(circle at 30px 30px, rgba(255, 255, 255, 0.35) 0, rgba(255, 255, 255, 0.08) 2px, transparent 3px);
  background-size: 60px 60px;
  pointer-events: none;
}

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

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

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

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(28, 25, 23, 0.90), rgba(28, 25, 23, 0.58) 42%, rgba(180, 83, 9, 0.35)),
    linear-gradient(180deg, rgba(28, 25, 23, 0.20), rgba(28, 25, 23, 0.85));
}

.hero-content {
  position: absolute;
  z-index: 3;
  top: 50%;
  left: max(32px, calc((100vw - 1280px) / 2 + 24px));
  width: min(720px, calc(100% - 64px));
  transform: translateY(-50%);
  color: var(--white);
}

.hero-badge,
.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  color: var(--amber-700);
  background: var(--amber-100);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-badge {
  color: var(--white);
  background: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(12px);
}

.hero-content h1 {
  max-width: 900px;
  margin: 22px 0 10px;
  font-size: clamp(42px, 7vw, 86px);
  line-height: 1.04;
  font-weight: 950;
  letter-spacing: -0.06em;
}

.hero-content h2 {
  margin: 0 0 14px;
  color: var(--amber-100);
  font-size: clamp(26px, 4vw, 48px);
  line-height: 1.15;
}

.hero-one-line {
  max-width: 660px;
  margin: 0 0 22px;
  color: rgba(255, 255, 255, 0.88);
  font-size: clamp(17px, 2vw, 22px);
}

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

.hero-tags span,
.tag-row span,
.sidebar-tags a {
  padding: 6px 10px;
  border-radius: 999px;
  color: var(--amber-900);
  background: var(--amber-100);
  font-size: 12px;
  font-weight: 800;
}

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

.primary-button,
.ghost-button,
.more-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 14px;
  font-weight: 900;
  transition: 0.25s ease;
}

.primary-button {
  color: var(--white);
  background: var(--amber-600);
  box-shadow: 0 14px 32px rgba(217, 119, 6, 0.32);
}

.primary-button:hover {
  background: var(--amber-500);
  transform: translateY(-2px) scale(1.02);
}

.ghost-button {
  color: var(--white);
  border: 2px solid rgba(255, 255, 255, 0.26);
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(12px);
}

.ghost-button.dark {
  color: var(--stone-800);
  border-color: var(--stone-200);
  background: var(--white);
}

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

.hero-arrow {
  position: absolute;
  z-index: 4;
  top: 50%;
  width: 54px;
  height: 54px;
  border: 0;
  border-radius: 50%;
  color: var(--stone-800);
  background: rgba(255, 255, 255, 0.90);
  box-shadow: var(--shadow-md);
  cursor: pointer;
  font-size: 34px;
  line-height: 1;
  transition: 0.25s ease;
}

.hero-arrow:hover {
  transform: translateY(-50%) scale(1.08);
  background: var(--white);
}

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

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

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

.hero-dot {
  width: 12px;
  height: 12px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.45);
  cursor: pointer;
}

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

.hero-stats {
  position: absolute;
  z-index: 4;
  right: max(28px, calc((100vw - 1280px) / 2 + 24px));
  bottom: 76px;
  display: grid;
  grid-template-columns: repeat(3, minmax(110px, 1fr));
  gap: 16px;
  color: var(--white);
}

.hero-stats div {
  padding: 18px 20px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(12px);
  text-align: center;
}

.hero-stats strong {
  display: block;
  font-size: 30px;
  line-height: 1;
}

.hero-stats span {
  display: block;
  margin-top: 8px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 13px;
}

.quick-search-panel {
  position: relative;
  z-index: 5;
  margin-top: -34px;
  padding: 0 16px;
}

.quick-search-inner,
.search-console,
.filter-toolbar {
  width: min(1180px, 100%);
  margin: 0 auto;
  padding: 24px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow-xl);
  display: grid;
  grid-template-columns: 1fr minmax(320px, 560px);
  gap: 22px;
  align-items: center;
}

.quick-search-inner h2 {
  margin: 10px 0 0;
  font-size: clamp(22px, 4vw, 34px);
  line-height: 1.2;
}

.hero-search-form {
  display: flex;
  min-height: 56px;
  border: 1px solid var(--amber-100);
  border-radius: 16px;
  overflow: hidden;
  background: var(--white);
}

.hero-search-form input {
  padding: 0 18px;
}

.hero-search-form button {
  padding: 0 22px;
  white-space: nowrap;
}

.content-section {
  padding: 76px 16px;
}

.soft-bg {
  background: rgba(245, 245, 244, 0.88);
}

.section-inner {
  width: min(1280px, 100%);
  margin: 0 auto;
}

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

.section-heading h2 {
  margin: 12px 0 0;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.18;
}

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

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

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

.movie-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--white);
  box-shadow: var(--shadow-md);
  transition: 0.28s ease;
}

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

.poster-link {
  position: relative;
  display: block;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: var(--stone-200);
}

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

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

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

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

.type-badge,
.rank-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  padding: 5px 8px;
  border-radius: 8px;
  color: var(--white);
  background: var(--amber-600);
  font-size: 12px;
  font-weight: 900;
}

.rank-badge {
  left: 10px;
  right: auto;
  background: #dc2626;
}

.play-chip {
  position: absolute;
  left: 12px;
  bottom: 12px;
  opacity: 0;
  transform: translateY(8px);
  padding: 7px 12px;
  border-radius: 999px;
  color: var(--white);
  background: var(--amber-600);
  font-size: 13px;
  font-weight: 900;
  transition: 0.25s ease;
}

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

.movie-info {
  padding: 14px;
}

.movie-title {
  min-height: 48px;
  margin: 0 0 8px;
  font-size: 16px;
  line-height: 1.45;
  font-weight: 900;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.movie-title.compact {
  min-height: 42px;
  font-size: 15px;
}

.movie-title a:hover {
  color: var(--amber-700);
}

.movie-meta {
  margin: 0 0 8px;
  color: var(--stone-500);
  font-size: 13px;
}

.movie-desc {
  min-height: 58px;
  margin: 0 0 12px;
  color: var(--stone-600);
  font-size: 13px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.category-pill {
  display: inline-flex;
  margin-top: 10px;
  padding: 5px 9px;
  border-radius: 999px;
  color: var(--amber-700);
  background: var(--amber-50);
  font-size: 12px;
  font-weight: 900;
}

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

.category-card {
  position: relative;
  min-height: 230px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: end;
  padding: 22px;
  border-radius: var(--radius-2xl);
  color: var(--white);
  box-shadow: var(--shadow-md);
}

.category-card img,
.category-shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.category-card img {
  object-fit: cover;
  transition: 0.4s ease;
}

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

.category-shade {
  background: linear-gradient(180deg, rgba(28, 25, 23, 0.10), rgba(28, 25, 23, 0.86));
}

.category-card strong,
.category-card em,
.category-card p {
  position: relative;
  z-index: 1;
}

.category-card strong {
  font-size: 25px;
  line-height: 1.15;
}

.category-card em {
  margin-top: 6px;
  color: var(--amber-100);
  font-style: normal;
  font-weight: 800;
}

.category-card p {
  margin: 8px 0 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 13px;
}

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

.ranking-panel,
.sidebar-box,
.category-overview-card,
.detail-article,
.search-console,
.filter-toolbar {
  border: 1px solid rgba(214, 211, 209, 0.72);
  background: var(--white);
  box-shadow: var(--shadow-md);
}

.ranking-panel {
  position: sticky;
  top: 96px;
  padding: 24px;
  border-radius: var(--radius-2xl);
}

.ranking-title span {
  color: var(--amber-600);
  font-weight: 900;
  letter-spacing: 0.12em;
}

.ranking-title h2 {
  margin: 6px 0 18px;
  font-size: 30px;
}

.ranking-list,
.wide-rank-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.ranking-list li + li {
  border-top: 1px solid var(--stone-200);
}

.ranking-list a,
.wide-rank-list a {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
}

.ranking-list a:hover,
.wide-rank-list a:hover {
  color: var(--amber-700);
}

.rank-num {
  width: 32px;
  height: 32px;
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
  color: var(--white);
  background: var(--amber-600);
  font-weight: 900;
}

.rank-name {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  font-weight: 850;
}

.rank-score {
  color: var(--amber-600);
  font-weight: 900;
}

.more-link {
  width: 100%;
  margin-top: 18px;
  color: var(--white);
  background: var(--stone-800);
}

.more-link:hover {
  background: var(--amber-700);
}

.sub-hero {
  padding: 90px 16px;
  color: var(--white);
  background:
    linear-gradient(120deg, rgba(28, 25, 23, 0.92), rgba(120, 53, 15, 0.82)),
    radial-gradient(circle at top right, rgba(251, 191, 36, 0.5), transparent 36%),
    var(--stone-900);
}

.sub-hero-inner {
  width: min(1180px, 100%);
  margin: 0 auto;
}

.sub-hero h1 {
  max-width: 860px;
  margin: 18px 0 14px;
  font-size: clamp(38px, 7vw, 72px);
  line-height: 1.05;
}

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

.category-overview-card {
  padding: 22px;
  border-radius: var(--radius-2xl);
}

.category-overview-head {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: start;
}

.category-overview-head span {
  color: var(--amber-600);
  font-weight: 900;
  font-size: 13px;
}

.category-overview-head h2 {
  margin: 5px 0 8px;
  font-size: 28px;
}

.category-overview-head p {
  margin: 0;
  color: var(--stone-600);
}

.category-overview-head a {
  flex: 0 0 auto;
  padding: 9px 12px;
  border-radius: 999px;
  color: var(--white);
  background: var(--amber-600);
  font-weight: 900;
}

.mini-poster-row {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 8px;
  margin-top: 20px;
}

.mini-poster-row img {
  width: 100%;
  aspect-ratio: 3 / 4;
  border-radius: 10px;
  object-fit: cover;
}

.category-count {
  margin-top: 16px;
  color: var(--stone-500);
  font-weight: 800;
}

.filter-toolbar {
  position: relative;
  width: 100%;
  margin-bottom: 28px;
  grid-template-columns: 1fr 360px;
}

.sticky-filter {
  position: sticky;
  top: 86px;
  z-index: 8;
}

.filter-toolbar strong {
  display: block;
  font-size: 20px;
}

.filter-toolbar span {
  color: var(--stone-500);
}

.filter-toolbar input {
  padding: 14px 16px;
  border: 1px solid var(--stone-200);
  border-radius: 12px;
}

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

.wide-rank-list li {
  padding: 0 18px;
  border-radius: 16px;
  background: var(--white);
  box-shadow: 0 6px 18px rgba(41, 37, 36, 0.08);
}

.wide-rank-list a {
  grid-template-columns: auto minmax(160px, 1fr) minmax(180px, auto) auto;
}

.search-console {
  width: 100%;
  grid-template-columns: 2fr 1fr 1fr auto;
  align-items: end;
}

.search-console label {
  display: grid;
  gap: 8px;
  color: var(--stone-600);
  font-weight: 800;
}

.search-console input,
.search-console select {
  min-height: 48px;
  padding: 0 14px;
  border: 1px solid var(--stone-200);
  border-radius: 12px;
}

.search-console button {
  min-height: 48px;
  padding: 0 18px;
  border-radius: 12px;
}

.search-summary {
  margin: 24px 0;
  color: var(--stone-600);
  font-weight: 800;
}

.detail-main {
  background: linear-gradient(180deg, var(--stone-900), var(--stone-800) 520px, var(--amber-50) 521px);
}

.detail-player-section {
  padding: 34px 16px 70px;
}

.detail-inner {
  width: min(1280px, 100%);
  margin: 0 auto;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-bottom: 18px;
  color: var(--stone-300);
}

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

.player-card {
  overflow: hidden;
  border-radius: var(--radius-2xl);
  background: var(--stone-800);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.36);
}

.video-frame {
  position: relative;
  background: #000000;
}

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

.play-overlay-button {
  position: absolute;
  left: 50%;
  top: 50%;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 15px 22px;
  border: 0;
  border-radius: 999px;
  color: var(--white);
  background: rgba(217, 119, 6, 0.92);
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.35);
  cursor: pointer;
  transform: translate(-50%, -50%);
  transition: 0.25s ease;
}

.play-overlay-button:hover {
  background: var(--amber-500);
  transform: translate(-50%, -50%) scale(1.04);
}

.play-overlay-button.hidden {
  opacity: 0;
  pointer-events: none;
}

.play-icon {
  width: 38px;
  height: 38px;
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
  color: var(--amber-700);
  background: var(--white);
}

.player-meta {
  padding: 28px;
  color: var(--white);
}

.player-meta h1 {
  margin: 0 0 12px;
  font-size: clamp(30px, 5vw, 52px);
  line-height: 1.1;
}

.player-meta p {
  max-width: 880px;
  margin: 0;
  color: var(--stone-300);
  font-size: 18px;
}

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

.detail-meta-row span {
  padding: 7px 11px;
  border-radius: 999px;
  color: var(--amber-100);
  background: rgba(120, 53, 15, 0.5);
  font-size: 13px;
  font-weight: 900;
}

.detail-content-section {
  padding-top: 0;
}

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

.detail-article,
.sidebar-box {
  border-radius: var(--radius-2xl);
}

.detail-article {
  padding: 28px;
}

.detail-title-row {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 22px;
  align-items: center;
  margin-bottom: 24px;
}

.detail-title-row img {
  width: 150px;
  aspect-ratio: 3 / 4;
  border-radius: 16px;
  object-fit: cover;
  box-shadow: var(--shadow-md);
}

.detail-title-row h2,
.detail-article h2 {
  margin: 14px 0 10px;
  font-size: 28px;
  line-height: 1.25;
}

.detail-title-row p,
.detail-article p {
  margin: 0 0 18px;
  color: var(--stone-600);
}

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

.detail-info-grid div {
  padding: 14px;
  border-radius: 14px;
  background: var(--stone-100);
}

.detail-info-grid strong,
.detail-info-grid span,
.detail-info-grid a {
  display: block;
}

.detail-info-grid strong {
  color: var(--stone-500);
  font-size: 12px;
}

.detail-info-grid span,
.detail-info-grid a {
  margin-top: 4px;
  font-weight: 900;
}

.detail-sidebar {
  display: grid;
  gap: 18px;
  position: sticky;
  top: 96px;
}

.sidebar-box {
  padding: 22px;
}

.sidebar-box h2 {
  margin: 0 0 14px;
  font-size: 22px;
}

.sidebar-box p {
  margin: 0;
  color: var(--stone-600);
}

.site-footer {
  padding: 48px 16px;
  color: var(--stone-300);
  background: var(--stone-900);
}

.footer-inner {
  width: min(1280px, 100%);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  gap: 32px;
}

.footer-brand {
  color: var(--amber-400);
  font-size: 24px;
}

.footer-inner p {
  max-width: 620px;
  margin: 12px 0 0;
  color: var(--stone-400);
}

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

.footer-links a {
  padding: 8px 12px;
  border-radius: 999px;
  color: var(--amber-100);
  background: rgba(255, 255, 255, 0.08);
}

.footer-links a:hover {
  background: var(--amber-700);
}

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

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

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

  .ranking-panel,
  .detail-sidebar {
    position: static;
  }
}

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

  .mobile-menu-button {
    display: block;
  }

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

  .hero-content {
    left: 22px;
    width: calc(100% - 44px);
  }

  .hero-stats {
    right: 22px;
    left: 22px;
    bottom: 76px;
    grid-template-columns: repeat(3, 1fr);
  }

  .hero-arrow {
    display: none;
  }

  .quick-search-inner,
  .filter-toolbar,
  .search-console {
    grid-template-columns: 1fr;
  }

  .wide-rank-list a {
    grid-template-columns: auto 1fr auto;
  }

  .wide-rank-list a span:nth-child(3) {
    display: none;
  }

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

@media (max-width: 640px) {
  .header-inner {
    width: min(100% - 24px, 1280px);
  }

  .brand-text {
    font-size: 19px;
  }

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

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

  .hero-stats {
    grid-template-columns: 1fr;
    bottom: 58px;
  }

  .hero-stats div {
    padding: 12px;
  }

  .hero-dots {
    bottom: 18px;
  }

  .content-section {
    padding: 52px 12px;
  }

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

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

  .movie-info {
    padding: 11px;
  }

  .movie-desc,
  .tag-row,
  .category-pill {
    display: none;
  }

  .sub-hero {
    padding: 64px 12px;
  }

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

  .detail-title-row img {
    width: 180px;
  }

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

  .player-meta,
  .detail-article {
    padding: 20px;
  }

  .footer-inner {
    display: grid;
  }
}
