:root {
  --amber-50: #fffbeb;
  --amber-100: #fef3c7;
  --amber-200: #fde68a;
  --amber-300: #fcd34d;
  --amber-400: #fbbf24;
  --amber-500: #f59e0b;
  --amber-600: #d97706;
  --amber-700: #b45309;
  --amber-800: #92400e;
  --amber-900: #78350f;
  --orange-50: #fff7ed;
  --orange-500: #f97316;
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-500: #6b7280;
  --gray-700: #374151;
  --gray-800: #1f2937;
  --gray-900: #111827;
  --white: #ffffff;
  --black: #000000;
  --shadow-soft: 0 18px 45px rgba(146, 64, 14, 0.12);
  --shadow-card: 0 14px 32px rgba(17, 24, 39, 0.10);
  --radius-lg: 22px;
  --radius-xl: 30px;
  --container: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--gray-900);
  background: linear-gradient(180deg, var(--amber-50), var(--white) 42%, var(--orange-50));
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  line-height: 1.65;
}

body.no-scroll {
  overflow: hidden;
}

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

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

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 251, 235, 0.92);
  border-bottom: 1px solid rgba(245, 158, 11, 0.22);
  box-shadow: 0 8px 30px rgba(146, 64, 14, 0.08);
  backdrop-filter: blur(16px);
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  font-weight: 900;
  color: var(--amber-900);
  letter-spacing: 0.02em;
}

.brand__mark {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  color: var(--white);
  background: linear-gradient(135deg, var(--amber-500), var(--orange-500));
  box-shadow: 0 12px 24px rgba(245, 158, 11, 0.35);
}

.brand__text {
  font-size: 1.28rem;
  background: linear-gradient(135deg, var(--amber-800), var(--orange-500));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.nav-search {
  position: relative;
  flex: 1;
  max-width: 520px;
  display: flex;
  align-items: center;
}

.nav-search input,
.search-page-form input,
.filter-panel input,
.filter-panel select {
  width: 100%;
  border: 2px solid var(--amber-200);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  color: var(--gray-800);
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.nav-search input {
  padding: 11px 92px 11px 18px;
}

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

.nav-search button {
  position: absolute;
  right: 5px;
  top: 50%;
  transform: translateY(-50%);
  border: 0;
  border-radius: 999px;
  padding: 8px 18px;
  color: var(--white);
  background: var(--amber-500);
}

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

.nav-link {
  position: relative;
  color: var(--amber-800);
  font-weight: 700;
  transition: color 0.2s ease;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -8px;
  height: 3px;
  border-radius: 999px;
  transform: scaleX(0);
  background: linear-gradient(90deg, var(--amber-500), var(--orange-500));
  transition: transform 0.2s ease;
}

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

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

.quick-cats {
  width: min(var(--container), calc(100% - 32px));
  margin: 0 auto;
  padding: 0 0 12px;
  display: flex;
  gap: 10px;
  overflow-x: auto;
}

.quick-cats a {
  flex: 0 0 auto;
  color: var(--amber-800);
  background: rgba(253, 230, 138, 0.56);
  border: 1px solid rgba(245, 158, 11, 0.2);
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 0.9rem;
  font-weight: 700;
}

.mobile-menu-button {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 14px;
  background: rgba(253, 230, 138, 0.7);
}

.mobile-menu-button span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  border-radius: 999px;
  background: var(--amber-900);
}

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

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

.hero {
  position: relative;
  height: min(720px, 70vh);
  min-height: 520px;
  overflow: hidden;
  background: var(--gray-900);
}

.hero-slides,
.hero-slide,
.hero-slide__image,
.hero-slide__overlay {
  position: absolute;
  inset: 0;
}

.hero-slide {
  opacity: 0;
  pointer-events: none;
  transition: opacity 1s ease;
}

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

.hero-slide__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.04);
  transition: transform 6s ease;
}

.hero-slide.is-active .hero-slide__image {
  transform: scale(1);
}

.hero-slide__image.image-failed {
  display: none;
}

.hero-slide__overlay {
  background:
    radial-gradient(circle at 18% 24%, rgba(245, 158, 11, 0.28), transparent 34%),
    linear-gradient(90deg, rgba(17, 24, 39, 0.86), rgba(17, 24, 39, 0.48) 48%, rgba(0, 0, 0, 0.16)),
    linear-gradient(0deg, rgba(0, 0, 0, 0.82), rgba(0, 0, 0, 0.05));
}

.hero-slide__content {
  position: relative;
  z-index: 2;
  width: min(var(--container), calc(100% - 32px));
  height: 100%;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: flex-start;
  padding: 72px 0 92px;
  color: var(--white);
}

.hero-badge,
.section-kicker {
  display: inline-flex;
  align-items: center;
  width: max-content;
  border-radius: 999px;
  color: var(--white);
  background: linear-gradient(135deg, var(--amber-500), var(--orange-500));
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  box-shadow: 0 14px 28px rgba(245, 158, 11, 0.28);
}

.hero-badge {
  padding: 8px 14px;
  margin-bottom: 18px;
}

.section-kicker {
  padding: 6px 12px;
  margin-bottom: 10px;
  font-size: 0.78rem;
}

.hero h1 {
  max-width: 860px;
  margin: 0 0 16px;
  font-size: clamp(2.5rem, 6vw, 5.4rem);
  line-height: 1.04;
  text-shadow: 0 12px 30px rgba(0, 0, 0, 0.42);
}

.hero p {
  max-width: 780px;
  margin: 0 0 22px;
  font-size: clamp(1.08rem, 2vw, 1.45rem);
  color: rgba(255, 255, 255, 0.88);
}

.hero-meta,
.detail-meta,
.sub-hero__stats {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-meta span,
.detail-meta span,
.sub-hero__stats span {
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: 999px;
  padding: 6px 12px;
  color: rgba(255, 255, 255, 0.92);
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(8px);
}

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

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

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

.button--primary {
  color: var(--white);
  background: linear-gradient(135deg, var(--amber-500), var(--orange-500));
  box-shadow: 0 16px 28px rgba(245, 158, 11, 0.28);
}

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

.button--wide {
  width: 100%;
}

.hero-arrow {
  position: absolute;
  top: 50%;
  z-index: 3;
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  color: var(--white);
  background: rgba(0, 0, 0, 0.42);
  font-size: 2rem;
  transform: translateY(-50%);
  transition: background 0.2s ease, transform 0.2s ease;
}

.hero-arrow:hover {
  background: rgba(0, 0, 0, 0.7);
  transform: translateY(-50%) scale(1.06);
}

.hero-arrow--prev {
  left: 24px;
}

.hero-arrow--next {
  right: 24px;
}

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

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

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

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

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

.section-heading h2 {
  margin: 0;
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  line-height: 1.12;
}

.section-heading p {
  max-width: 720px;
  margin: 8px 0 0;
  color: var(--gray-500);
}

.section-more {
  flex-shrink: 0;
  color: var(--amber-700);
  font-weight: 900;
}

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

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

.movie-card {
  overflow: hidden;
  border: 1px solid rgba(245, 158, 11, 0.14);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow-card);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.movie-card:hover {
  border-color: rgba(245, 158, 11, 0.32);
  box-shadow: 0 22px 46px rgba(146, 64, 14, 0.18);
  transform: translateY(-6px);
}

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

.movie-card__poster-link {
  display: block;
}

.poster-frame {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background:
    radial-gradient(circle at 24% 22%, rgba(255, 255, 255, 0.34), transparent 28%),
    linear-gradient(135deg, var(--amber-200), var(--orange-500));
}

.poster-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  display: none;
  place-items: center;
  padding: 22px;
  color: var(--amber-950, #451a03);
  font-size: 1.1rem;
  font-weight: 900;
  text-align: center;
  background: linear-gradient(135deg, rgba(254, 243, 199, 0.92), rgba(251, 191, 36, 0.55));
}

.poster-frame.image-failed::after {
  content: attr(data-title);
  display: grid;
}

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

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

.poster-img.is-hidden {
  display: none;
}

.poster-shine {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(0, 0, 0, 0.44));
}

.rank-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  border-radius: 999px;
  padding: 5px 10px;
  color: var(--white);
  background: linear-gradient(135deg, var(--amber-500), var(--orange-500));
  font-size: 0.76rem;
  font-weight: 900;
}

.movie-card__body {
  padding: 18px;
}

.movie-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 8px;
  color: var(--amber-700);
  font-size: 0.82rem;
  font-weight: 800;
}

.movie-card__meta span {
  border-radius: 999px;
  padding: 2px 8px;
  background: var(--amber-100);
}

.movie-card__title {
  margin: 0 0 8px;
  color: var(--gray-900);
  font-size: 1.15rem;
  line-height: 1.35;
}

.movie-card__title a:hover {
  color: var(--amber-600);
}

.movie-card__line {
  display: -webkit-box;
  min-height: 3.2em;
  margin: 0 0 12px;
  overflow: hidden;
  color: var(--gray-500);
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag {
  border-radius: 999px;
  padding: 4px 9px;
  color: var(--amber-800);
  background: rgba(253, 230, 138, 0.58);
  font-size: 0.78rem;
  font-weight: 700;
}

.movie-card--large .poster-frame {
  aspect-ratio: 16 / 8.5;
}

.movie-card--large .movie-card__title {
  font-size: 1.55rem;
}

.movie-card--compact {
  display: grid;
  grid-template-columns: 160px 1fr;
  min-height: 150px;
}

.movie-card--compact .poster-frame {
  height: 100%;
  min-height: 150px;
  aspect-ratio: auto;
}

.movie-card--compact .movie-card__line {
  min-height: 0;
}

.feature-band {
  width: min(var(--container), calc(100% - 32px));
  margin: 64px auto 0;
  padding: 34px;
  border-radius: var(--radius-xl);
  background: linear-gradient(135deg, rgba(254, 243, 199, 0.95), rgba(255, 237, 213, 0.96));
  box-shadow: var(--shadow-soft);
}

.feature-layout {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(280px, 1fr);
  gap: 22px;
  margin-bottom: 22px;
}

.feature-layout__side {
  display: grid;
  gap: 16px;
}

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

.category-showcase:nth-of-type(2n) {
  margin-top: 64px;
  padding: 34px;
  border-radius: var(--radius-xl);
  background: linear-gradient(90deg, rgba(255, 247, 237, 0.96), rgba(255, 251, 235, 0.96));
  box-shadow: var(--shadow-soft);
}

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

.category-card {
  position: relative;
  overflow: hidden;
  min-height: 250px;
  padding: 18px;
  border: 1px solid rgba(245, 158, 11, 0.16);
  border-radius: var(--radius-lg);
  background: var(--white);
  box-shadow: var(--shadow-card);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.category-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 22px 45px rgba(146, 64, 14, 0.16);
}

.category-card__accent {
  display: inline-flex;
  margin-bottom: 12px;
  border-radius: 999px;
  padding: 4px 10px;
  color: var(--white);
  background: var(--amber-500);
  font-size: 0.78rem;
  font-weight: 900;
}

.category-card__thumbs {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 0.8fr;
  gap: 6px;
  height: 94px;
  margin-bottom: 14px;
}

.category-card__thumbs img {
  width: 100%;
  height: 100%;
  border-radius: 12px;
  object-fit: cover;
  background: var(--amber-100);
}

.category-card h3 {
  margin: 0 0 8px;
  font-size: 1.2rem;
}

.category-card p {
  display: -webkit-box;
  margin: 0 0 12px;
  overflow: hidden;
  color: var(--gray-500);
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.category-card strong {
  color: var(--amber-700);
}

.split-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 30px;
}

.ranking-panel {
  position: sticky;
  top: 120px;
  align-self: start;
  border-radius: var(--radius-xl);
  padding: 26px;
  color: var(--white);
  background: linear-gradient(160deg, var(--gray-900), #3d2108);
  box-shadow: var(--shadow-soft);
}

.ranking-panel__head span {
  color: var(--amber-300);
  font-weight: 900;
  letter-spacing: 0.08em;
}

.ranking-panel__head h2 {
  margin: 4px 0 18px;
  font-size: 2rem;
}

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

.ranking-row {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 10px;
  align-items: center;
  border-radius: 16px;
  padding: 10px;
  background: rgba(255, 255, 255, 0.08);
}

.ranking-row__num {
  color: var(--amber-300);
  font-weight: 900;
}

.ranking-row__title {
  min-width: 0;
  overflow: hidden;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ranking-row__meta {
  grid-column: 2;
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.86rem;
}

.sub-hero {
  padding: 86px 0 54px;
  color: var(--white);
  background:
    radial-gradient(circle at 20% 20%, rgba(245, 158, 11, 0.42), transparent 30%),
    linear-gradient(135deg, var(--gray-900), var(--amber-900));
}

.sub-hero h1 {
  margin: 0;
  font-size: clamp(2.2rem, 5vw, 4.2rem);
  line-height: 1.08;
}

.sub-hero p {
  max-width: 820px;
  margin: 14px 0 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 1.08rem;
}

.sub-hero--category {
  background:
    radial-gradient(circle at 85% 15%, rgba(251, 191, 36, 0.38), transparent 30%),
    linear-gradient(135deg, var(--amber-900), #2b1705);
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
  color: var(--amber-700);
  font-weight: 800;
}

.breadcrumb--light {
  color: rgba(255, 255, 255, 0.78);
}

.filter-panel {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) 180px 180px auto;
  gap: 14px;
  align-items: end;
  margin-bottom: 18px;
  border: 1px solid rgba(245, 158, 11, 0.18);
  border-radius: var(--radius-lg);
  padding: 18px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: var(--shadow-card);
}

.filter-panel label {
  display: grid;
  gap: 7px;
  color: var(--amber-800);
  font-weight: 800;
}

.filter-panel input,
.filter-panel select {
  padding: 10px 14px;
}

.filter-panel button {
  border: 0;
  border-radius: 999px;
  padding: 12px 18px;
  color: var(--white);
  background: var(--gray-900);
  font-weight: 900;
}

.filter-count {
  margin: 0 0 18px;
  color: var(--gray-500);
  font-weight: 800;
}

.ranking-table__head,
.ranking-table__row {
  display: grid;
  grid-template-columns: 90px minmax(0, 1fr) 160px 160px 100px;
  gap: 14px;
  align-items: center;
}

.ranking-table__head {
  border-radius: 18px;
  padding: 14px 18px;
  color: var(--amber-900);
  background: var(--amber-100);
  font-weight: 900;
}

.ranking-table__body {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.ranking-table__row {
  border: 1px solid rgba(245, 158, 11, 0.12);
  border-radius: 18px;
  padding: 14px 18px;
  background: var(--white);
  box-shadow: 0 8px 20px rgba(17, 24, 39, 0.06);
}

.ranking-table__rank {
  color: var(--amber-600);
  font-weight: 900;
}

.ranking-table__name {
  overflow: hidden;
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.search-page-form {
  display: flex;
  max-width: 760px;
  gap: 12px;
  margin-top: 28px;
}

.search-page-form input {
  padding: 14px 18px;
}

.detail-hero {
  position: relative;
  overflow: hidden;
  min-height: 620px;
  color: var(--white);
  background: var(--gray-900);
}

.detail-hero__bg,
.detail-hero__shade {
  position: absolute;
  inset: 0;
}

.detail-hero__bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(12px) saturate(1.2);
  transform: scale(1.08);
  opacity: 0.42;
}

.detail-hero__shade {
  background:
    linear-gradient(90deg, rgba(17, 24, 39, 0.94), rgba(17, 24, 39, 0.62)),
    radial-gradient(circle at 80% 20%, rgba(245, 158, 11, 0.32), transparent 34%);
}

.detail-hero__inner {
  position: relative;
  z-index: 2;
  padding: 64px 0;
}

.detail-layout {
  display: grid;
  grid-template-columns: 360px minmax(0, 1fr);
  gap: 42px;
  align-items: center;
}

.detail-poster {
  aspect-ratio: 3 / 4;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: var(--radius-xl);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35);
}

.detail-info h1 {
  margin: 14px 0 16px;
  font-size: clamp(2.3rem, 5vw, 4.8rem);
  line-height: 1.05;
}

.detail-info p {
  max-width: 820px;
  margin: 0 0 22px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 1.16rem;
}

.tag-row--detail {
  margin: 22px 0 28px;
}

.tag-row--detail .tag {
  color: var(--white);
  background: rgba(255, 255, 255, 0.15);
}

.player-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-xl);
  background: #050505;
  box-shadow: 0 28px 70px rgba(17, 24, 39, 0.35);
}

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

.movie-player__overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  gap: 8px;
  border: 0;
  color: var(--white);
  background:
    radial-gradient(circle at center, rgba(245, 158, 11, 0.28), transparent 34%),
    rgba(0, 0, 0, 0.44);
  text-align: center;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

.movie-player.is-playing .movie-player__overlay {
  visibility: hidden;
  opacity: 0;
}

.play-icon {
  width: 76px;
  height: 76px;
  display: grid;
  place-items: center;
  margin: 0 auto 8px;
  border-radius: 50%;
  color: var(--white);
  background: linear-gradient(135deg, var(--amber-500), var(--orange-500));
  box-shadow: 0 18px 40px rgba(245, 158, 11, 0.45);
  font-size: 2rem;
}

.movie-player__overlay strong {
  font-size: 1.4rem;
}

.movie-player__overlay em {
  color: rgba(255, 255, 255, 0.72);
  font-style: normal;
}

.movie-player__status {
  position: absolute;
  left: 16px;
  bottom: 16px;
  z-index: 5;
  border-radius: 999px;
  padding: 6px 12px;
  color: var(--white);
  background: rgba(0, 0, 0, 0.58);
  font-size: 0.86rem;
}

.detail-content-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  padding-top: 18px;
}

.content-card {
  border: 1px solid rgba(245, 158, 11, 0.16);
  border-radius: var(--radius-xl);
  padding: 28px;
  background: var(--white);
  box-shadow: var(--shadow-card);
}

.content-card h2 {
  margin: 0 0 12px;
  font-size: 1.7rem;
}

.content-card p {
  margin: 0;
  color: var(--gray-700);
  font-size: 1.05rem;
}

.detail-nav-links {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.detail-nav-links a {
  border-radius: 999px;
  padding: 10px 16px;
  color: var(--amber-800);
  background: var(--amber-100);
  font-weight: 900;
}

.site-footer {
  margin-top: 76px;
  padding: 52px 0 26px;
  color: rgba(255, 255, 255, 0.82);
  background: linear-gradient(180deg, var(--amber-900), #3c1d04);
}

.footer-grid {
  width: min(var(--container), calc(100% - 32px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr 0.8fr 1.2fr;
  gap: 38px;
}

.brand--footer .brand__text {
  color: var(--white);
  background: none;
}

.site-footer h3 {
  margin: 0 0 12px;
  color: var(--amber-200);
}

.site-footer a {
  display: block;
  margin: 6px 0;
}

.footer-links {
  columns: 2;
}

.footer-bottom {
  width: min(var(--container), calc(100% - 32px));
  margin: 34px auto 0;
  padding-top: 18px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  color: rgba(255, 255, 255, 0.64);
  font-size: 0.92rem;
}

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

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

  .ranking-panel {
    position: static;
  }
}

@media (max-width: 860px) {
  .site-header__inner {
    gap: 12px;
  }

  .nav-search,
  .desktop-nav {
    display: none;
  }

  .mobile-menu-button {
    display: block;
    margin-left: auto;
  }

  .quick-cats {
    padding-bottom: 10px;
  }

  .hero {
    min-height: 560px;
    height: 72vh;
  }

  .hero-arrow {
    display: none;
  }

  .hero-slide__content {
    padding-bottom: 78px;
  }

  .movie-grid,
  .movie-list-grid,
  .category-card-grid,
  .detail-content-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .movie-card--compact {
    grid-template-columns: 130px 1fr;
  }

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

  .ranking-table__head {
    display: none;
  }

  .ranking-table__row {
    grid-template-columns: 70px 1fr;
  }

  .ranking-table__row span:nth-child(n + 3) {
    display: none;
  }

  .detail-poster {
    max-width: 320px;
  }

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

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

@media (max-width: 540px) {
  .hero h1,
  .detail-info h1,
  .sub-hero h1 {
    font-size: 2.3rem;
  }

  .hero-meta,
  .detail-meta {
    gap: 7px;
  }

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

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

  .movie-card--compact .poster-frame {
    aspect-ratio: 16 / 10;
  }

  .feature-band,
  .category-showcase:nth-of-type(2n) {
    width: min(var(--container), calc(100% - 20px));
    padding: 20px;
  }

  .detail-nav-links {
    flex-direction: column;
  }
}
