:root {
  --amber-950: #451a03;
  --amber-900: #78350f;
  --amber-800: #92400e;
  --amber-700: #b45309;
  --amber-600: #d97706;
  --amber-500: #f59e0b;
  --amber-300: #fcd34d;
  --amber-200: #fde68a;
  --amber-100: #fef3c7;
  --amber-50: #fffbeb;
  --white: #ffffff;
  --black: #111827;
  --gray-900: #111827;
  --gray-800: #1f2937;
  --gray-700: #374151;
  --gray-600: #4b5563;
  --gray-500: #6b7280;
  --gray-300: #d1d5db;
  --gray-100: #f3f4f6;
  --shadow-soft: 0 22px 60px rgba(120, 53, 15, 0.16);
  --shadow-card: 0 14px 36px rgba(120, 53, 15, 0.14);
  --radius-xl: 28px;
  --radius-lg: 22px;
  --radius-md: 16px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

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

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

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  background: rgba(255, 251, 235, 0.88);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(217, 119, 6, 0.16);
}

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

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

.brand-mark {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  background: linear-gradient(135deg, var(--amber-600), #ea580c);
  border-radius: 16px;
  box-shadow: 0 14px 28px rgba(217, 119, 6, 0.24);
}

.brand-name {
  font-size: 22px;
  white-space: nowrap;
}

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

.nav-link {
  padding: 10px 15px;
  color: var(--amber-900);
  border-radius: 999px;
  font-weight: 700;
  transition: background 0.24s ease, color 0.24s ease, transform 0.24s ease;
}

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

.header-search {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px;
  background: var(--white);
  border: 1px solid rgba(217, 119, 6, 0.18);
  border-radius: 999px;
  box-shadow: 0 10px 24px rgba(120, 53, 15, 0.08);
}

.header-search input {
  width: 210px;
  border: 0;
  outline: 0;
  color: var(--gray-800);
  background: transparent;
  padding: 8px 6px 8px 12px;
}

.header-search button,
.primary-btn,
.secondary-btn,
.light-pill,
.filter-search button {
  border: 0;
  border-radius: 999px;
  font-weight: 900;
  transition: transform 0.24s ease, box-shadow 0.24s ease, background 0.24s ease;
}

.header-search button,
.primary-btn,
.filter-search button {
  color: var(--white);
  background: var(--amber-600);
  box-shadow: 0 12px 24px rgba(217, 119, 6, 0.22);
}

.header-search button {
  padding: 8px 15px;
}

.primary-btn,
.secondary-btn,
.light-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
}

.secondary-btn {
  color: var(--amber-700);
  background: rgba(255, 255, 255, 0.92);
  border: 2px solid rgba(217, 119, 6, 0.42);
}

.primary-btn:hover,
.secondary-btn:hover,
.light-pill:hover,
.filter-search button:hover {
  transform: translateY(-2px) scale(1.02);
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 14px;
  background: var(--white);
  box-shadow: var(--shadow-card);
}

.menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 4px auto;
  background: var(--amber-900);
}

.hero-carousel {
  position: relative;
  min-height: 620px;
  overflow: hidden;
  isolation: isolate;
  background: linear-gradient(135deg, #fde68a 0%, #fff7ed 45%, #fed7aa 100%);
}

.hero-bg-orb {
  position: absolute;
  width: 360px;
  height: 360px;
  border-radius: 999px;
  filter: blur(4px);
  opacity: 0.45;
  z-index: -1;
}

.orb-one {
  left: -120px;
  top: -110px;
  background: radial-gradient(circle, #f97316, transparent 68%);
}

.orb-two {
  right: -150px;
  bottom: -110px;
  background: radial-gradient(circle, #facc15, transparent 68%);
}

.hero-stage {
  position: relative;
  width: min(1220px, calc(100% - 32px));
  min-height: 620px;
  margin: 0 auto;
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  gap: 56px;
  align-items: center;
  opacity: 0;
  transform: translateX(28px);
  pointer-events: none;
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.hero-slide.active {
  opacity: 1;
  transform: translateX(0);
  pointer-events: auto;
}

.hero-copy {
  padding: 60px 0;
}

.hero-kicker,
.page-hero span,
.ranking-hero span {
  display: inline-flex;
  color: var(--amber-800);
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(217, 119, 6, 0.18);
  border-radius: 999px;
  padding: 7px 14px;
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 0.04em;
}

.hero-copy h1 {
  margin: 20px 0 18px;
  color: var(--amber-900);
  font-size: clamp(42px, 5vw, 72px);
  line-height: 1.05;
  font-weight: 950;
  letter-spacing: -0.04em;
}

.hero-copy p {
  max-width: 680px;
  margin: 0;
  color: var(--amber-900);
  font-size: 19px;
  line-height: 1.9;
}

.hero-tags,
.detail-meta,
.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-tags {
  margin: 24px 0 30px;
}

.hero-tags span,
.detail-meta span,
.tag-list span,
.card-meta a,
.card-meta span {
  display: inline-flex;
  align-items: center;
  color: var(--amber-900);
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(217, 119, 6, 0.16);
  border-radius: 999px;
  padding: 7px 12px;
  font-size: 13px;
  font-weight: 800;
}

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

.hero-poster {
  position: relative;
  min-height: 450px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-poster::before {
  content: "";
  position: absolute;
  width: 80%;
  height: 76%;
  border-radius: 36px;
  background: rgba(255, 255, 255, 0.46);
  box-shadow: var(--shadow-soft);
  transform: rotate(-5deg);
}

.hero-poster img {
  position: relative;
  z-index: 1;
  width: min(360px, 86%);
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border: 10px solid rgba(255, 255, 255, 0.82);
  border-radius: 32px;
  box-shadow: 0 34px 70px rgba(69, 26, 3, 0.28);
  transition: transform 0.35s ease;
}

.hero-poster:hover img {
  transform: scale(1.035) rotate(1deg);
}

.hero-arrow {
  position: absolute;
  top: 50%;
  z-index: 8;
  width: 48px;
  height: 48px;
  color: var(--amber-900);
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.84);
  box-shadow: var(--shadow-card);
  font-size: 34px;
  line-height: 1;
  transform: translateY(-50%);
}

.hero-prev {
  left: 18px;
}

.hero-next {
  right: 18px;
}

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

.hero-dot {
  width: 11px;
  height: 11px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(120, 53, 15, 0.3);
  transition: width 0.24s ease, background 0.24s ease;
}

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

.quick-panel {
  width: min(1060px, calc(100% - 32px));
  margin: -36px auto 0;
  position: relative;
  z-index: 11;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.quick-panel a {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 22px 24px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(217, 119, 6, 0.14);
  border-radius: 24px;
  box-shadow: var(--shadow-card);
  transition: transform 0.24s ease, box-shadow 0.24s ease;
}

.quick-panel a:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-soft);
}

.quick-panel strong {
  color: var(--amber-900);
  font-size: 20px;
}

.quick-panel span {
  color: var(--gray-600);
}

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

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

.section-head h2 {
  margin: 0 0 8px;
  color: var(--amber-900);
  font-size: clamp(28px, 3vw, 42px);
  line-height: 1.1;
  font-weight: 950;
}

.section-head p {
  margin: 0;
  color: var(--amber-700);
  font-size: 17px;
}

.section-head > a {
  flex: 0 0 auto;
  color: var(--amber-700);
  background: var(--amber-100);
  border-radius: 999px;
  padding: 10px 16px;
  font-weight: 900;
}

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

.featured-grid,
.category-page-grid,
.search-page-grid,
.ranking-page-grid {
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
}

.movie-card {
  overflow: hidden;
  background: var(--white);
  border: 1px solid rgba(217, 119, 6, 0.12);
  border-radius: 24px;
  box-shadow: var(--shadow-card);
  transition: transform 0.28s ease, box-shadow 0.28s ease;
}

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

.poster-link {
  position: relative;
  display: block;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: linear-gradient(135deg, var(--amber-200), #fed7aa);
}

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

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

.poster-mask {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 44%, rgba(0, 0, 0, 0.58) 100%);
  opacity: 0.8;
}

.card-play {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 54px;
  height: 54px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  background: rgba(217, 119, 6, 0.9);
  border-radius: 999px;
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.8);
  transition: opacity 0.28s ease, transform 0.28s ease;
}

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

.rank-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 3;
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  background: linear-gradient(135deg, #ef4444, var(--amber-600));
  border-radius: 14px;
  box-shadow: 0 12px 22px rgba(239, 68, 68, 0.25);
}

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

.movie-title {
  display: -webkit-box;
  overflow: hidden;
  color: var(--gray-900);
  font-size: 18px;
  font-weight: 950;
  line-height: 1.35;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
}

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

.rating-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}

.stars {
  color: #facc15;
  letter-spacing: 1px;
}

.rating-row strong,
.detail-rating strong {
  color: var(--amber-700);
  font-weight: 950;
}

.rating-row em,
.detail-rating em {
  color: var(--gray-500);
  font-size: 13px;
  font-style: normal;
}

.card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.tag-list span {
  color: var(--gray-700);
  background: var(--gray-100);
  border-color: transparent;
  font-size: 12px;
}

.movie-card-compact {
  flex: 0 0 280px;
}

.movie-card-compact .movie-card-body {
  padding: 15px;
}

.movie-card-compact .movie-title {
  font-size: 16px;
}

.scroll-section {
  position: relative;
  padding: 34px;
  background: linear-gradient(135deg, var(--amber-100), #fef9c3);
  border-radius: 34px;
  box-shadow: inset 0 0 0 1px rgba(217, 119, 6, 0.1);
}

.scroll-actions {
  position: absolute;
  right: 34px;
  top: 36px;
  display: flex;
  gap: 10px;
}

.scroll-actions button {
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 999px;
  color: var(--amber-900);
  background: var(--white);
  box-shadow: var(--shadow-card);
  font-size: 28px;
}

.movie-strip {
  display: flex;
  gap: 22px;
  overflow-x: auto;
  padding: 6px 4px 18px;
  scroll-snap-type: x proximity;
  scrollbar-width: none;
}

.movie-strip::-webkit-scrollbar {
  display: none;
}

.movie-strip .movie-card {
  scroll-snap-align: start;
}

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

.large-category-grid {
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
}

.category-tile {
  overflow: hidden;
  color: var(--white);
  border-radius: 32px;
  padding: 28px;
  box-shadow: var(--shadow-soft);
}

.tone-amber { background: linear-gradient(135deg, #f59e0b, #ea580c); }
.tone-orange { background: linear-gradient(135deg, #fb923c, #f97316); }
.tone-purple { background: linear-gradient(135deg, #a78bfa, #7c3aed); }
.tone-rose { background: linear-gradient(135deg, #fb7185, #e11d48); }
.tone-red { background: linear-gradient(135deg, #f87171, #dc2626); }
.tone-yellow { background: linear-gradient(135deg, #facc15, #f59e0b); }
.tone-blue { background: linear-gradient(135deg, #60a5fa, #2563eb); }
.tone-brown { background: linear-gradient(135deg, #b45309, #78350f); }
.tone-cyan { background: linear-gradient(135deg, #22d3ee, #0891b2); }
.tone-green { background: linear-gradient(135deg, #4ade80, #16a34a); }
.tone-slate { background: linear-gradient(135deg, #64748b, #1e293b); }
.tone-indigo { background: linear-gradient(135deg, #818cf8, #4f46e5); }

.category-tile-head h2 {
  margin: 0 0 8px;
  font-size: 30px;
  font-weight: 950;
}

.category-tile-head p {
  margin: 0 0 22px;
  color: rgba(255, 255, 255, 0.86);
}

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

.category-mini-grid a {
  overflow: hidden;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 18px;
  transition: transform 0.24s ease, background 0.24s ease;
}

.category-mini-grid a:hover {
  transform: translateY(-3px);
  background: var(--white);
}

.category-mini-grid img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
}

.category-mini-grid span {
  display: block;
  overflow: hidden;
  padding: 10px;
  color: var(--gray-900);
  font-size: 13px;
  font-weight: 900;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.light-pill {
  margin-top: 22px;
  color: var(--gray-900);
  background: rgba(255, 255, 255, 0.92);
}

.ranking-band {
  margin-top: 78px;
  padding: 70px 0;
  color: var(--white);
  background: linear-gradient(180deg, var(--amber-900), var(--amber-800));
}

.ranking-band .section-head h2,
.ranking-band .section-head p {
  color: var(--white);
}

.ranking-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 20px;
}

.page-shell {
  padding-bottom: 72px;
}

.page-hero,
.ranking-hero {
  width: min(1180px, calc(100% - 32px));
  margin: 42px auto 0;
  padding: clamp(42px, 6vw, 78px);
  color: var(--amber-900);
  background: linear-gradient(135deg, var(--amber-100), #fff7ed 58%, #fed7aa);
  border-radius: 36px;
  box-shadow: var(--shadow-soft);
}

.page-hero h1,
.ranking-hero h1 {
  margin: 16px 0 14px;
  font-size: clamp(38px, 5vw, 64px);
  line-height: 1.1;
  font-weight: 950;
  letter-spacing: -0.04em;
}

.page-hero p,
.ranking-hero p {
  max-width: 780px;
  margin: 0;
  color: var(--amber-800);
  font-size: 18px;
}

.small-hero {
  padding-block: 54px;
}

.category-list-panel {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
}

.category-row {
  display: grid;
  gap: 6px;
  padding: 20px;
  background: var(--white);
  border: 1px solid rgba(217, 119, 6, 0.12);
  border-radius: 20px;
  box-shadow: var(--shadow-card);
}

.category-row strong {
  color: var(--amber-900);
  font-size: 20px;
}

.category-row span {
  color: var(--gray-600);
}

.filter-panel {
  margin-top: 32px;
  padding: 22px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(217, 119, 6, 0.14);
  border-radius: 26px;
  box-shadow: var(--shadow-card);
}

.filter-search {
  display: flex;
  gap: 12px;
}

.filter-search input {
  flex: 1;
  min-height: 48px;
  color: var(--gray-800);
  border: 1px solid rgba(217, 119, 6, 0.18);
  border-radius: 999px;
  outline: 0;
  padding: 0 18px;
  background: var(--amber-50);
}

.filter-search button {
  padding: 0 20px;
}

.filter-chips,
.select-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.filter-chips button,
.select-grid select {
  min-height: 42px;
  color: var(--amber-900);
  background: var(--amber-50);
  border: 1px solid rgba(217, 119, 6, 0.16);
  border-radius: 999px;
  padding: 0 14px;
  font-weight: 800;
}

.filter-chips button.active {
  color: var(--white);
  background: var(--amber-600);
}

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

.select-grid select {
  width: 100%;
  border-radius: 16px;
}

.result-toolbar {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 24px;
  color: var(--gray-600);
}

.result-toolbar strong {
  color: var(--amber-900);
}

.ranking-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  align-items: center;
  gap: 36px;
}

.ranking-hero .primary-btn {
  margin-top: 28px;
}

.ranking-cover {
  display: grid;
  gap: 12px;
  padding: 14px;
  color: var(--white);
  background: rgba(255, 255, 255, 0.45);
  border-radius: 28px;
  box-shadow: var(--shadow-card);
}

.ranking-cover img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 20px;
}

.ranking-cover strong {
  color: var(--amber-900);
  text-align: center;
}

.movie-detail-page {
  padding-bottom: 72px;
}

.detail-hero {
  position: relative;
  overflow: hidden;
  min-height: 560px;
  color: var(--white);
  background: var(--amber-950);
}

.detail-backdrop {
  position: absolute;
  inset: 0;
  opacity: 0.28;
  filter: blur(3px);
  transform: scale(1.04);
}

.detail-backdrop img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.detail-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(69, 26, 3, 0.95), rgba(69, 26, 3, 0.72) 46%, rgba(69, 26, 3, 0.48));
}

.detail-content {
  position: relative;
  z-index: 2;
  min-height: 560px;
  display: grid;
  grid-template-columns: 310px minmax(0, 1fr);
  gap: 44px;
  align-items: center;
  padding: 68px 0;
}

.detail-poster {
  position: relative;
  overflow: hidden;
  border-radius: 30px;
  box-shadow: 0 32px 72px rgba(0, 0, 0, 0.42);
}

.detail-poster img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
}

.detail-poster span {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 70px;
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  background: var(--amber-600);
  border-radius: 999px;
  transform: translate(-50%, -50%);
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: rgba(255, 255, 255, 0.74);
  font-size: 14px;
}

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

.detail-copy h1 {
  margin: 18px 0;
  font-size: clamp(38px, 5vw, 68px);
  line-height: 1.08;
  font-weight: 950;
  letter-spacing: -0.04em;
}

.detail-one-line {
  max-width: 820px;
  margin: 0 0 24px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 19px;
  line-height: 1.9;
}

.detail-meta span,
.detail-tags span {
  color: var(--amber-50);
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.16);
}

.detail-rating {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 22px 0;
}

.detail-rating strong {
  color: var(--amber-200);
  font-size: 26px;
}

.detail-rating em {
  color: rgba(255, 255, 255, 0.72);
}

.player-section {
  padding-top: 62px;
}

.player-box {
  position: relative;
  overflow: hidden;
  background: #000000;
  border-radius: 30px;
  box-shadow: 0 30px 72px rgba(69, 26, 3, 0.24);
  aspect-ratio: 16 / 9;
}

.movie-video {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  background: #000000;
}

.play-overlay {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  background: radial-gradient(circle, rgba(0, 0, 0, 0.16), rgba(0, 0, 0, 0.62));
  transition: opacity 0.24s ease, visibility 0.24s ease;
}

.play-overlay span {
  width: 92px;
  height: 92px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-left: 6px;
  color: var(--white);
  background: var(--amber-600);
  border-radius: 999px;
  font-size: 38px;
  box-shadow: 0 22px 40px rgba(0, 0, 0, 0.34);
  transition: transform 0.24s ease;
}

.play-overlay:hover span {
  transform: scale(1.06);
}

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

.detail-article {
  padding-top: 58px;
}

.detail-article article {
  padding: clamp(28px, 5vw, 54px);
  background: var(--white);
  border: 1px solid rgba(217, 119, 6, 0.12);
  border-radius: 32px;
  box-shadow: var(--shadow-card);
}

.detail-article h2 {
  margin: 0 0 14px;
  color: var(--amber-900);
  font-size: 30px;
  font-weight: 950;
}

.detail-article h2 + p {
  margin-top: 0;
}

.detail-article p {
  color: var(--gray-700);
  font-size: 17px;
  line-height: 2;
}

.related-strip .movie-card {
  min-width: 230px;
}

.site-footer {
  margin-top: 86px;
  color: rgba(255, 255, 255, 0.8);
  background: var(--amber-900);
}

.footer-inner {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 34px;
  padding: 44px 0 28px;
}

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

.footer-inner p {
  max-width: 560px;
  color: rgba(255, 255, 255, 0.72);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 12px;
  max-width: 460px;
}

.footer-links a {
  padding: 8px 12px;
  color: rgba(255, 255, 255, 0.9);
  background: rgba(255, 255, 255, 0.1);
  border-radius: 999px;
}

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

.is-hidden-card {
  display: none !important;
}

@media (max-width: 1024px) {
  .header-inner {
    flex-wrap: wrap;
    padding: 12px 0;
  }

  .header-search {
    order: 3;
    width: 100%;
  }

  .header-search input {
    width: 100%;
  }

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

  .hero-slide {
    grid-template-columns: 1fr;
    gap: 10px;
    text-align: center;
  }

  .hero-copy {
    padding: 48px 32px 0;
  }

  .hero-copy p {
    margin-inline: auto;
  }

  .hero-tags,
  .hero-actions {
    justify-content: center;
  }

  .hero-poster {
    min-height: 330px;
  }

  .hero-poster img {
    width: min(260px, 76%);
  }

  .quick-panel,
  .category-grid,
  .ranking-hero,
  .detail-content,
  .footer-inner {
    grid-template-columns: 1fr;
  }

  .detail-content {
    gap: 28px;
  }

  .detail-poster {
    width: min(300px, 76vw);
    margin-inline: auto;
  }
}

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

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

  .main-nav {
    order: 4;
    width: 100%;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 10px 0;
  }

  .main-nav.is-open {
    display: flex;
  }

  .nav-link {
    text-align: center;
  }

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

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

  .hero-stage {
    min-height: 690px;
    width: 100%;
  }

  .hero-copy {
    padding: 38px 24px 0;
  }

  .hero-copy h1 {
    font-size: 38px;
  }

  .hero-copy p {
    display: -webkit-box;
    overflow: hidden;
    font-size: 16px;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
  }

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

  .hero-prev {
    left: 8px;
  }

  .hero-next {
    right: 8px;
  }

  .quick-panel {
    margin-top: 18px;
  }

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

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

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

  .movie-title {
    font-size: 15px;
  }

  .movie-card-body p {
    min-height: 40px;
    font-size: 13px;
  }

  .scroll-section {
    padding: 22px;
  }

  .scroll-actions {
    position: static;
    margin-bottom: 14px;
  }

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

  .page-hero,
  .ranking-hero {
    margin-top: 24px;
    padding: 32px 24px;
    border-radius: 28px;
  }

  .select-grid {
    grid-template-columns: 1fr;
  }

  .filter-search {
    flex-direction: column;
  }

  .detail-hero,
  .detail-content {
    min-height: auto;
  }

  .detail-content {
    padding: 42px 0;
  }

  .detail-copy h1 {
    font-size: 34px;
  }

  .player-box {
    border-radius: 20px;
  }

  .play-overlay span {
    width: 74px;
    height: 74px;
    font-size: 30px;
  }

  .footer-links {
    justify-content: flex-start;
  }
}

@media (max-width: 460px) {
  .movie-grid,
  .featured-grid,
  .category-page-grid,
  .search-page-grid,
  .ranking-page-grid,
  .ranking-grid {
    grid-template-columns: 1fr;
  }

  .hero-actions {
    flex-direction: column;
  }

  .primary-btn,
  .secondary-btn {
    width: 100%;
  }
}
