:root {
  --amber-50: #fffbeb;
  --amber-100: #fef3c7;
  --amber-400: #fbbf24;
  --amber-500: #f59e0b;
  --amber-600: #d97706;
  --amber-700: #b45309;
  --stone-50: #fafaf9;
  --stone-100: #f5f5f4;
  --stone-200: #e7e5e4;
  --stone-300: #d6d3d1;
  --stone-400: #a8a29e;
  --stone-500: #78716c;
  --stone-600: #57534e;
  --stone-700: #44403c;
  --stone-800: #292524;
  --stone-900: #1c1917;
  --white: #ffffff;
  --black: #000000;
  --shadow-sm: 0 8px 24px rgba(41, 37, 36, 0.08);
  --shadow-md: 0 18px 45px rgba(41, 37, 36, 0.14);
  --shadow-xl: 0 28px 70px rgba(41, 37, 36, 0.24);
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --container: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  scroll-behavior: smooth;
  background: var(--stone-50);
}

body {
  min-height: 100%;
  margin: 0;
  color: var(--stone-800);
  background: linear-gradient(180deg, var(--stone-50), var(--white) 32%, var(--stone-50));
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", Arial, sans-serif;
  line-height: 1.65;
}

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

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

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.95);
  border-bottom: 1px solid var(--stone-200);
  box-shadow: 0 4px 20px rgba(41, 37, 36, 0.05);
  backdrop-filter: blur(14px);
}

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

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 180px;
}

.brand-icon {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  color: var(--white);
  border-radius: 14px;
  background: linear-gradient(135deg, var(--amber-600), var(--amber-700));
  box-shadow: 0 12px 26px rgba(217, 119, 6, 0.28);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.brand:hover .brand-icon {
  transform: translateY(-1px);
  box-shadow: 0 18px 34px rgba(217, 119, 6, 0.35);
}

.brand-icon svg {
  width: 25px;
  height: 25px;
}

.brand-icon path {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.brand-text strong {
  color: var(--stone-800);
  font-size: 21px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.brand-text em {
  margin-top: 4px;
  color: var(--stone-500);
  font-size: 12px;
  font-style: normal;
}

.desktop-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 30px;
  flex: 1 1 auto;
}

.nav-link {
  position: relative;
  color: var(--stone-700);
  font-weight: 700;
  white-space: nowrap;
  transition: color 0.2s ease;
}

.nav-link::after {
  position: absolute;
  right: 0;
  bottom: -9px;
  left: 0;
  height: 2px;
  content: "";
  background: var(--amber-600);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.2s ease;
}

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

.nav-link:hover::after,
.nav-link.active::after {
  transform: scaleX(1);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.header-search {
  position: relative;
  display: flex;
  align-items: center;
}

.header-search input {
  width: 235px;
  height: 42px;
  padding: 0 46px 0 18px;
  color: var(--stone-700);
  border: 1px solid var(--stone-300);
  border-radius: 999px;
  outline: none;
  background: var(--white);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, width 0.2s ease;
}

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

.header-search button {
  position: absolute;
  right: 6px;
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  color: var(--white);
  border: 0;
  border-radius: 999px;
  background: var(--amber-600);
}

.menu-button {
  display: none;
  width: 42px;
  height: 42px;
  padding: 9px;
  border: 0;
  border-radius: 12px;
  background: var(--stone-100);
}

.menu-button span {
  display: block;
  width: 100%;
  height: 2px;
  margin: 5px 0;
  border-radius: 999px;
  background: var(--stone-700);
}

.mobile-panel {
  display: none;
  border-top: 1px solid var(--stone-200);
  background: var(--white);
}

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

.mobile-panel-inner {
  padding: 16px 0 20px;
}

.mobile-search {
  display: flex;
  gap: 10px;
  margin-bottom: 14px;
}

.mobile-search input {
  flex: 1;
  min-width: 0;
  padding: 12px 14px;
  border: 1px solid var(--stone-300);
  border-radius: 999px;
  outline: none;
}

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

.mobile-search button {
  padding: 0 18px;
  color: var(--white);
  border: 0;
  border-radius: 999px;
  background: var(--amber-600);
}

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

.mobile-link {
  padding: 11px 12px;
  color: var(--stone-700);
  border-radius: 12px;
  font-weight: 700;
  background: var(--stone-50);
}

.mobile-link.active {
  color: var(--amber-700);
  background: var(--amber-50);
}

.mobile-categories {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.mobile-categories a {
  padding: 7px 11px;
  color: var(--stone-600);
  border: 1px solid var(--stone-200);
  border-radius: 999px;
  font-size: 13px;
}

.hero {
  position: relative;
  height: 600px;
  overflow: hidden;
  color: var(--white);
  background: var(--stone-900);
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 1s ease, visibility 1s ease;
}

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

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

.hero-slide.is-active img {
  transform: scale(1.08);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.88), rgba(0, 0, 0, 0.48) 48%, rgba(0, 0, 0, 0.08));
}

.hero-content {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-end;
  height: 100%;
  padding-bottom: 78px;
}

.hero-copy {
  width: min(720px, 100%);
}

.hero-pill,
.eyebrow {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  color: var(--white);
  border-radius: 999px;
  background: var(--amber-500);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.hero-pill {
  padding: 5px 13px;
  margin-bottom: 18px;
}

.eyebrow {
  padding: 6px 14px;
  margin-bottom: 16px;
}

.hero-copy h1 {
  max-width: 820px;
  margin: 0 0 16px;
  font-size: clamp(34px, 6vw, 58px);
  line-height: 1.08;
  letter-spacing: -0.04em;
}

.hero-copy p {
  display: -webkit-box;
  max-width: 720px;
  margin: 0 0 22px;
  overflow: hidden;
  color: rgba(255, 255, 255, 0.86);
  font-size: 18px;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.hero-meta,
.movie-meta,
.detail-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.hero-meta {
  margin-bottom: 17px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 14px;
}

.hero-meta span,
.detail-meta span,
.movie-meta span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.hero-meta span:not(:last-child)::after,
.detail-meta span:not(:last-child)::after,
.movie-meta span:not(:last-child)::after {
  display: inline-block;
  width: 4px;
  height: 4px;
  margin-left: 8px;
  content: "";
  border-radius: 50%;
  background: currentColor;
  opacity: 0.45;
}

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

.hero-tags {
  margin-bottom: 24px;
}

.hero-tags span,
.detail-tags span,
.movie-tags span {
  border-radius: 999px;
}

.hero-tags span {
  padding: 6px 12px;
  color: rgba(255, 255, 255, 0.88);
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(8px);
}

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

.primary-button,
.ghost-button,
.section-more,
.rank-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border-radius: 999px;
  font-weight: 800;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.primary-button {
  min-height: 46px;
  padding: 0 28px;
  color: var(--white);
  background: var(--amber-500);
  box-shadow: 0 16px 32px rgba(217, 119, 6, 0.34);
}

.primary-button:hover {
  background: var(--amber-600);
  transform: translateY(-1px);
  box-shadow: 0 20px 42px rgba(217, 119, 6, 0.42);
}

.ghost-button {
  min-height: 46px;
  padding: 0 23px;
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.42);
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(12px);
}

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

.ghost-button.light {
  color: var(--amber-700);
  border-color: var(--amber-200);
  background: var(--amber-50);
}

.hero-arrow {
  position: absolute;
  z-index: 3;
  top: 50%;
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  color: var(--white);
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(10px);
  font-size: 38px;
  line-height: 1;
  transform: translateY(-50%);
  transition: background 0.2s ease, transform 0.2s ease;
}

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

.hero-prev {
  left: 24px;
}

.hero-next {
  right: 24px;
}

.hero-dots {
  position: absolute;
  z-index: 3;
  right: 0;
  bottom: 24px;
  left: 0;
  display: flex;
  justify-content: center;
  gap: 9px;
}

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

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

.content-section {
  padding: 74px 0;
  background: var(--white);
}

.section-alt {
  background: linear-gradient(180deg, var(--stone-50), var(--white));
}

.intro-section {
  background: linear-gradient(180deg, var(--stone-50), var(--white));
}

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

.intro-grid h2,
.section-heading h2,
.ranking-copy h2,
.page-hero h1,
.detail-info h1,
.detail-article h2,
.detail-side-card h2 {
  margin: 0;
  color: var(--stone-800);
  font-weight: 900;
  letter-spacing: -0.03em;
}

.intro-grid h2 {
  margin-bottom: 12px;
  font-size: clamp(28px, 4vw, 42px);
}

.intro-grid p {
  margin: 0;
  color: var(--stone-600);
  font-size: 17px;
}

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

.category-tile {
  min-height: 135px;
  padding: 18px;
  border: 1px solid var(--stone-200);
  border-radius: var(--radius-lg);
  background: var(--white);
  box-shadow: var(--shadow-sm);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.category-tile:hover {
  border-color: var(--amber-200);
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.category-tile span,
.category-overview-body span {
  color: var(--amber-600);
  font-size: 13px;
  font-weight: 800;
}

.category-tile strong {
  display: block;
  margin-top: 8px;
  color: var(--stone-800);
  font-size: 18px;
}

.category-tile em,
.category-overview-body em {
  display: inline-block;
  margin-top: 16px;
  color: var(--stone-500);
  font-size: 13px;
  font-style: normal;
}

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

.section-heading h2 {
  font-size: clamp(26px, 4vw, 38px);
}

.section-heading p {
  margin: 8px 0 0;
  color: var(--stone-500);
}

.section-more {
  min-height: 38px;
  padding: 0 17px;
  color: var(--amber-700);
  background: var(--amber-50);
}

.section-more:hover {
  color: var(--white);
  background: var(--amber-600);
}

.movie-grid {
  display: grid;
  gap: 24px;
}

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

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

.movie-card {
  min-width: 0;
}

.movie-card-link {
  display: block;
  height: 100%;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--white);
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

.movie-poster {
  position: relative;
  height: 260px;
  overflow: hidden;
  background: var(--stone-200);
}

.movie-card-large .movie-poster {
  height: 330px;
}

.movie-card-small .movie-poster {
  height: 210px;
}

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

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

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

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

.poster-play {
  position: absolute;
  top: 50%;
  left: 50%;
  display: grid;
  width: 62px;
  height: 62px;
  place-items: center;
  color: var(--amber-700);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.88);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

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

.movie-type,
.movie-year,
.rank-badge {
  position: absolute;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
}

.movie-type {
  top: 12px;
  left: 12px;
  min-height: 26px;
  padding: 0 10px;
  color: var(--white);
  background: rgba(28, 25, 23, 0.78);
  backdrop-filter: blur(8px);
}

.movie-year {
  right: 12px;
  bottom: 12px;
  min-height: 26px;
  padding: 0 10px;
  color: var(--white);
  background: rgba(28, 25, 23, 0.78);
  backdrop-filter: blur(8px);
}

.rank-badge {
  top: 12px;
  right: 12px;
  min-width: 34px;
  height: 34px;
  color: var(--white);
  background: linear-gradient(135deg, var(--amber-500), var(--amber-700));
  box-shadow: 0 10px 25px rgba(217, 119, 6, 0.38);
}

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

.movie-card-body h3 {
  display: -webkit-box;
  min-height: 54px;
  margin: 0 0 9px;
  overflow: hidden;
  color: var(--stone-800);
  font-size: 18px;
  line-height: 1.5;
  font-weight: 900;
  transition: color 0.2s ease;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

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

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

.movie-meta {
  margin-bottom: 12px;
  color: var(--stone-500);
  font-size: 12px;
}

.movie-tags span {
  padding: 4px 8px;
  color: var(--stone-600);
  background: var(--stone-100);
  font-size: 12px;
}

.ranking-band {
  padding: 76px 0;
  color: var(--white);
  background:
    radial-gradient(circle at 10% 0%, rgba(251, 191, 36, 0.18), transparent 30%),
    linear-gradient(135deg, var(--stone-900), #0c0a09 68%, #231307);
}

.ranking-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.75fr) minmax(0, 1.25fr);
  gap: 44px;
  align-items: center;
}

.ranking-copy h2,
.ranking-copy p {
  color: var(--white);
}

.ranking-copy h2 {
  margin-bottom: 14px;
  font-size: clamp(32px, 5vw, 48px);
}

.ranking-copy p {
  margin: 0 0 28px;
  color: rgba(255, 255, 255, 0.72);
}

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

.ranking-list.full {
  gap: 14px;
}

.rank-row a {
  display: grid;
  grid-template-columns: 42px 68px minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(12px);
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.ranking-list.full .rank-row a {
  color: var(--stone-800);
  border-color: var(--stone-200);
  background: var(--white);
  box-shadow: var(--shadow-sm);
}

.rank-row a:hover {
  border-color: rgba(251, 191, 36, 0.38);
  background: rgba(255, 255, 255, 0.14);
  transform: translateY(-2px);
}

.ranking-list.full .rank-row a:hover {
  border-color: var(--amber-200);
  background: var(--amber-50);
}

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

.rank-row img {
  width: 68px;
  height: 86px;
  object-fit: cover;
  border-radius: 12px;
  background: var(--stone-200);
}

.rank-info {
  min-width: 0;
}

.rank-info strong,
.rank-info em {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rank-info strong {
  color: currentColor;
  font-size: 17px;
  font-weight: 900;
}

.rank-info em {
  color: var(--stone-400);
  font-size: 13px;
  font-style: normal;
}

.ranking-list.full .rank-info em {
  color: var(--stone-500);
}

.rank-action {
  min-height: 36px;
  padding: 0 15px;
  color: var(--white);
  background: var(--amber-600);
  font-size: 13px;
}

.page-hero {
  padding: 70px 0;
  color: var(--white);
}

.page-hero h1 {
  color: var(--white);
  font-size: clamp(34px, 5vw, 54px);
}

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

.amber-hero,
.category-hero {
  background:
    radial-gradient(circle at 85% 10%, rgba(255, 255, 255, 0.22), transparent 26%),
    linear-gradient(135deg, var(--amber-600), var(--amber-700));
}

.ranking-hero {
  background:
    radial-gradient(circle at 16% 0%, rgba(251, 191, 36, 0.22), transparent 34%),
    linear-gradient(135deg, var(--stone-900), #0c0a09 72%, #29170a);
}

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

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

.breadcrumb strong {
  color: var(--white);
  font-weight: 800;
}

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

.category-overview-card a {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  min-height: 210px;
  overflow: hidden;
  border: 1px solid var(--stone-200);
  border-radius: var(--radius-xl);
  background: var(--white);
  box-shadow: var(--shadow-sm);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.category-overview-card a:hover {
  border-color: var(--amber-200);
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.category-posters {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 3px;
  padding: 3px;
  background: var(--stone-100);
}

.category-posters img {
  width: 100%;
  height: 100%;
  min-height: 100px;
  object-fit: cover;
  border-radius: 12px;
  background: var(--stone-200);
}

.category-overview-body {
  padding: 24px;
}

.category-overview-body h2 {
  margin: 8px 0 10px;
  color: var(--stone-800);
  font-size: 25px;
}

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

.filter-panel {
  position: sticky;
  top: 86px;
  z-index: 10;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  margin-bottom: 26px;
  padding: 14px;
  border: 1px solid var(--stone-200);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(14px);
}

.filter-search input,
.filter-selects select {
  width: 100%;
  height: 44px;
  border: 1px solid var(--stone-300);
  border-radius: 14px;
  outline: none;
  background: var(--white);
}

.filter-search input {
  padding: 0 16px;
}

.filter-selects {
  display: flex;
  gap: 10px;
}

.filter-selects select {
  min-width: 150px;
  padding: 0 12px;
  color: var(--stone-700);
}

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

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

.empty-state {
  margin-top: 24px;
  padding: 36px;
  color: var(--stone-500);
  border: 1px dashed var(--stone-300);
  border-radius: var(--radius-lg);
  text-align: center;
  background: var(--stone-50);
}

.detail-top {
  padding: 34px 0 58px;
  color: var(--white);
  background:
    radial-gradient(circle at 80% 0%, rgba(245, 158, 11, 0.18), transparent 34%),
    linear-gradient(135deg, var(--stone-900), #09090b 68%, #1f1409);
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(320px, 0.75fr);
  gap: 34px;
  align-items: stretch;
}

.player-shell {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-xl);
  background: var(--black);
  box-shadow: var(--shadow-xl);
  aspect-ratio: 16 / 9;
}

.player-shell video {
  display: block;
  width: 100%;
  height: 100%;
  background: var(--black);
  object-fit: contain;
}

.player-overlay {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: var(--white);
  border: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.18), rgba(0, 0, 0, 0.58));
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.player-overlay span {
  display: grid;
  width: 78px;
  height: 78px;
  place-items: center;
  color: var(--amber-700);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.95);
  font-size: 30px;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.3);
}

.player-overlay strong {
  font-size: 18px;
}

.player-shell.player-started .player-overlay {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.detail-info {
  padding: 30px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-xl);
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(16px);
}

.detail-info h1 {
  margin-bottom: 12px;
  color: var(--white);
  font-size: clamp(28px, 4vw, 42px);
}

.detail-one-line {
  margin: 0 0 18px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 17px;
}

.detail-meta {
  margin-bottom: 18px;
  color: rgba(255, 255, 255, 0.68);
  font-size: 14px;
}

.detail-tags {
  margin-bottom: 22px;
}

.detail-tags span {
  padding: 6px 11px;
  color: rgba(255, 255, 255, 0.86);
  background: rgba(255, 255, 255, 0.11);
}

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

.detail-article,
.detail-side-card {
  padding: 28px;
  border: 1px solid var(--stone-200);
  border-radius: var(--radius-xl);
  background: var(--white);
  box-shadow: var(--shadow-sm);
}

.detail-article h2 {
  margin-bottom: 12px;
  font-size: 26px;
}

.detail-article h2:not(:first-child) {
  margin-top: 26px;
}

.detail-article p {
  margin: 0;
  color: var(--stone-600);
  font-size: 16px;
}

.detail-side-card {
  position: sticky;
  top: 110px;
}

.detail-side-card h2 {
  margin-bottom: 18px;
  font-size: 22px;
}

.detail-side-card dl {
  display: grid;
  grid-template-columns: 70px minmax(0, 1fr);
  gap: 10px 12px;
  margin: 0;
}

.detail-side-card dt {
  color: var(--stone-500);
}

.detail-side-card dd {
  min-width: 0;
  margin: 0;
  color: var(--stone-800);
  font-weight: 700;
}

.site-footer {
  color: rgba(255, 255, 255, 0.76);
  background: var(--stone-900);
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(220px, 0.8fr) minmax(180px, 0.6fr);
  gap: 34px;
  padding: 52px 0 38px;
}

.footer-logo {
  margin-bottom: 12px;
  color: var(--white);
  font-size: 25px;
  font-weight: 900;
}

.footer-brand p {
  max-width: 540px;
  margin: 0;
  color: rgba(255, 255, 255, 0.62);
}

.footer-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.footer-badges span {
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  font-size: 13px;
}

.footer-links h2 {
  margin: 0 0 14px;
  color: var(--white);
  font-size: 17px;
}

.footer-links div {
  display: grid;
  gap: 8px;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.65);
  transition: color 0.2s ease;
}

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

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
  padding: 18px 16px;
  color: rgba(255, 255, 255, 0.48);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 13px;
}

@media (max-width: 1080px) {
  .desktop-nav {
    gap: 18px;
  }

  .header-search input {
    width: 190px;
  }

  .header-search input:focus {
    width: 220px;
  }

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

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

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

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

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

  .menu-button {
    display: block;
  }

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

  .hero {
    height: 500px;
  }

  .hero-content {
    padding-bottom: 64px;
  }

  .hero-arrow {
    width: 40px;
    height: 40px;
    font-size: 30px;
  }

  .hero-prev {
    left: 12px;
  }

  .hero-next {
    right: 12px;
  }

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

  .category-overview-grid,
  .category-overview-card a,
  .footer-grid,
  .filter-panel {
    grid-template-columns: 1fr;
  }

  .category-posters {
    min-height: 220px;
  }

  .filter-selects {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .rank-row a {
    grid-template-columns: 38px 58px minmax(0, 1fr);
  }

  .rank-action {
    display: none;
  }
}

@media (max-width: 560px) {
  .container {
    width: min(calc(100% - 24px), var(--container));
  }

  .brand {
    min-width: 0;
  }

  .brand-icon {
    width: 40px;
    height: 40px;
  }

  .brand-text strong {
    font-size: 18px;
  }

  .brand-text em {
    display: none;
  }

  .hero {
    height: 460px;
  }

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

  .hero-meta,
  .hero-tags,
  .hero-actions .ghost-button {
    display: none;
  }

  .content-section {
    padding: 48px 0;
  }

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

  .large-grid,
  .medium-grid {
    gap: 14px;
  }

  .movie-poster,
  .movie-card-large .movie-poster {
    height: 220px;
  }

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

  .movie-card-body h3 {
    min-height: auto;
    font-size: 16px;
  }

  .movie-card-body p,
  .movie-tags,
  .movie-meta span:nth-child(2) {
    display: none;
  }

  .filter-selects {
    grid-template-columns: 1fr;
  }

  .page-hero {
    padding: 50px 0;
  }

  .detail-top {
    padding-top: 22px;
  }

  .detail-info,
  .detail-article,
  .detail-side-card {
    padding: 20px;
  }

  .player-overlay span {
    width: 62px;
    height: 62px;
  }

  .footer-grid {
    padding-top: 38px;
  }
}
