:root {
  --amber-50: #fffbeb;
  --amber-100: #fef3c7;
  --amber-200: #fde68a;
  --amber-500: #f59e0b;
  --amber-600: #d97706;
  --amber-700: #b45309;
  --amber-800: #92400e;
  --amber-900: #78350f;
  --orange-50: #fff7ed;
  --orange-600: #ea580c;
  --orange-700: #c2410c;
  --orange-900: #7c2d12;
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-800: #1f2937;
  --gray-900: #111827;
  --white: #ffffff;
  --shadow-sm: 0 4px 14px rgba(120, 53, 15, 0.08);
  --shadow-md: 0 12px 30px rgba(120, 53, 15, 0.12);
  --shadow-lg: 0 24px 55px rgba(120, 53, 15, 0.18);
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--gray-900);
  background: linear-gradient(135deg, var(--amber-50), var(--white), var(--orange-50));
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

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

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.95);
  border-bottom: 1px solid var(--amber-200);
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(14px);
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  color: var(--white);
  background: linear-gradient(135deg, var(--amber-600), var(--orange-600));
  border-radius: 14px;
  box-shadow: 0 10px 22px rgba(217, 119, 6, 0.28);
  font-size: 18px;
  transform: translateZ(0);
}

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

.brand-text strong {
  color: var(--amber-800);
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.brand-text small {
  margin-top: 3px;
  color: var(--amber-600);
  font-size: 12px;
}

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

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

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

.category-shortcut {
  font-weight: 500;
}

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

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

.header-search input,
.mobile-search input,
.large-search input,
.toolbar-search input {
  width: 100%;
  border: 1px solid var(--amber-200);
  color: var(--gray-800);
  background: var(--amber-50);
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.header-search input {
  height: 42px;
  padding: 0 46px 0 18px;
  border-radius: 999px;
}

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

.header-search button {
  position: absolute;
  top: 5px;
  right: 6px;
  width: 32px;
  height: 32px;
  border: 0;
  color: var(--amber-700);
  background: transparent;
  border-radius: 999px;
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  border: 0;
  background: var(--amber-50);
  border-radius: 12px;
}

.menu-toggle span {
  width: 20px;
  height: 2px;
  background: var(--gray-700);
  border-radius: 999px;
}

.mobile-panel {
  display: none;
  width: min(100% - 32px, 1280px);
  margin: 0 auto;
  padding: 0 0 18px;
  border-top: 1px solid var(--amber-200);
}

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

.mobile-search {
  display: flex;
  gap: 10px;
  padding-top: 18px;
}

.mobile-search input {
  min-width: 0;
  height: 44px;
  padding: 0 16px;
  border-radius: 999px;
}

.mobile-search button,
.large-search button {
  border: 0;
  color: var(--white);
  background: var(--amber-600);
  border-radius: 999px;
  font-weight: 750;
}

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

.mobile-nav {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 14px;
}

.mobile-link {
  padding: 12px 14px;
  color: var(--gray-700);
  background: var(--amber-50);
  border-radius: 12px;
  font-weight: 650;
}

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

.hero {
  position: relative;
  height: 600px;
  overflow: hidden;
  background: linear-gradient(90deg, var(--amber-900), var(--orange-900));
}

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

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

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

.hero-bg img,
.detail-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.24;
  filter: saturate(1.1);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 75% 30%, rgba(245, 158, 11, 0.32), transparent 34%), linear-gradient(180deg, rgba(0, 0, 0, 0.08), rgba(0, 0, 0, 0.64));
}

.hero-content {
  position: relative;
  display: grid;
  height: 100%;
  align-items: center;
  grid-template-columns: minmax(0, 1fr) 390px;
  gap: 58px;
}

.hero-copy {
  max-width: 720px;
  color: var(--white);
}

.hero-kicker,
.page-kicker {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  margin-bottom: 16px;
  padding: 7px 14px;
  color: var(--amber-100);
  background: rgba(255, 255, 255, 0.13);
  border: 1px solid rgba(253, 230, 138, 0.28);
  border-radius: 999px;
  font-size: 14px;
  font-weight: 750;
  backdrop-filter: blur(10px);
}

.hero h1,
.page-hero h1,
.detail-intro h1 {
  margin: 0;
  font-size: clamp(38px, 6vw, 68px);
  line-height: 1.05;
  letter-spacing: -0.045em;
}

.hero p {
  max-width: 680px;
  margin: 24px 0 0;
  color: var(--amber-100);
  font-size: clamp(18px, 2.2vw, 25px);
  line-height: 1.65;
}

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

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

.hero-tags span,
.detail-tags span,
.tag-row span {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 650;
}

.hero-tags span {
  padding: 7px 12px;
  color: var(--amber-100);
  background: rgba(255, 255, 255, 0.14);
}

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

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

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

.btn.primary {
  color: var(--white);
  background: var(--amber-600);
  box-shadow: 0 12px 26px rgba(217, 119, 6, 0.28);
}

.btn.primary:hover {
  background: var(--amber-700);
}

.btn.ghost {
  color: var(--white);
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.25);
}

.btn.outline,
.btn.ghost-light {
  color: var(--amber-700);
  background: var(--white);
  border: 2px solid var(--amber-600);
}

.hero-poster {
  position: relative;
  display: block;
  overflow: hidden;
  border: 1px solid rgba(253, 230, 138, 0.28);
  border-radius: 28px;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.32);
  aspect-ratio: 3 / 4;
  background: rgba(255, 255, 255, 0.12);
}

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

.hero-poster:hover img {
  transform: scale(1.06);
}

.hero-poster span {
  position: absolute;
  right: 22px;
  bottom: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 62px;
  height: 62px;
  color: var(--white);
  background: var(--amber-600);
  border-radius: 50%;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.28);
}

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

.hero-dot {
  width: 11px;
  height: 11px;
  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.active {
  width: 34px;
  background: var(--amber-200);
}

.section {
  padding: 72px 0;
}

.section-warm {
  background: linear-gradient(135deg, var(--amber-50), var(--orange-50));
}

.section-split {
  background: rgba(255, 255, 255, 0.5);
}

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

.section-head h2,
.side-card h2,
.card-heading h2 {
  margin: 0;
  color: var(--gray-900);
  font-size: clamp(26px, 3vw, 36px);
  line-height: 1.15;
  letter-spacing: -0.03em;
}

.section-head p,
.page-hero p,
.category-overview-copy small,
.category-copy small {
  margin: 8px 0 0;
  color: var(--gray-600);
}

.section-link {
  color: var(--amber-700);
  font-weight: 800;
}

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

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

.movie-grid.two-col {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.movie-card {
  display: flex;
  min-width: 0;
  flex-direction: column;
  overflow: hidden;
  color: var(--gray-900);
  background: var(--white);
  border: 1px solid rgba(253, 230, 138, 0.72);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  border-color: var(--amber-300, #fcd34d);
  box-shadow: var(--shadow-lg);
}

.poster-frame {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: linear-gradient(135deg, var(--amber-100), var(--orange-50));
}

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

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

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

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

.poster-duration {
  position: absolute;
  right: 12px;
  bottom: 12px;
  padding: 5px 10px;
  color: var(--white);
  background: rgba(0, 0, 0, 0.58);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}

.card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 18px;
}

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

.pill {
  display: inline-flex;
  align-items: center;
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
}

.pill.amber {
  color: var(--amber-800);
  background: var(--amber-100);
}

.movie-card strong {
  display: -webkit-box;
  overflow: hidden;
  margin-top: 12px;
  color: var(--gray-900);
  font-size: 18px;
  line-height: 1.35;
  transition: color 0.2s ease;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

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

.card-desc {
  display: -webkit-box;
  overflow: hidden;
  margin-top: 9px;
  color: var(--gray-600);
  font-size: 14px;
  line-height: 1.55;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.tag-row {
  margin-top: 14px;
}

.tag-row span {
  padding: 4px 9px;
  color: var(--gray-600);
  background: var(--gray-100);
}

.card-stats {
  justify-content: space-between;
  margin-top: auto;
  padding-top: 15px;
}

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

.category-card {
  position: relative;
  min-height: 220px;
  overflow: hidden;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  background: var(--amber-100);
}

.category-card img,
.category-overview-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.category-card:hover img,
.category-overview-card:hover img {
  transform: scale(1.07);
}

.category-layer {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.12), rgba(0, 0, 0, 0.72));
}

.category-copy {
  position: absolute;
  right: 18px;
  bottom: 18px;
  left: 18px;
  color: var(--white);
}

.category-copy strong {
  display: block;
  font-size: 22px;
  line-height: 1.2;
}

.category-copy small {
  color: var(--amber-100);
}

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

.compact-head {
  margin-bottom: 20px;
}

.ranking-panel,
.side-card,
.content-card,
.player-card {
  background: var(--white);
  border: 1px solid rgba(253, 230, 138, 0.7);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

.ranking-panel {
  padding: 24px;
}

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

.ranking-list.wide {
  margin-top: 28px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.ranking-item {
  display: grid;
  grid-template-columns: 42px 76px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  padding: 10px;
  border-radius: 14px;
  transition: background 0.2s ease, transform 0.2s ease;
}

.ranking-item:hover {
  background: var(--amber-50);
  transform: translateX(3px);
}

.ranking-number {
  color: var(--amber-700);
  font-size: 18px;
  font-weight: 900;
}

.ranking-cover {
  overflow: hidden;
  border-radius: 12px;
  aspect-ratio: 16 / 10;
  background: var(--amber-100);
}

.ranking-cover img,
.mini-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ranking-copy {
  min-width: 0;
}

.ranking-copy strong {
  display: block;
  overflow: hidden;
  color: var(--gray-900);
  font-weight: 800;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.ranking-copy small {
  display: block;
  overflow: hidden;
  margin-top: 4px;
  color: var(--gray-500);
  font-size: 12px;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.page-hero {
  color: var(--white);
  background: radial-gradient(circle at 80% 20%, rgba(245, 158, 11, 0.3), transparent 30%), linear-gradient(90deg, var(--amber-900), var(--orange-900));
  padding: 78px 0;
}

.page-hero .container {
  max-width: 1080px;
}

.page-hero h1 {
  color: var(--white);
}

.page-hero p {
  max-width: 760px;
  color: var(--amber-100);
  font-size: 20px;
}

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

.category-overview-card {
  overflow: hidden;
  background: var(--white);
  border: 1px solid rgba(253, 230, 138, 0.8);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

.category-thumb-grid {
  display: grid;
  height: 190px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-rows: repeat(2, minmax(0, 1fr));
  overflow: hidden;
  background: var(--amber-100);
}

.category-overview-copy {
  display: block;
  padding: 22px;
}

.category-overview-copy strong {
  display: block;
  color: var(--gray-900);
  font-size: 23px;
}

.category-overview-copy em {
  display: inline-flex;
  margin-top: 16px;
  color: var(--amber-700);
  font-style: normal;
  font-weight: 850;
}

.toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 28px;
  padding: 18px;
  background: var(--white);
  border: 1px solid var(--amber-200);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.toolbar-search {
  width: min(100%, 360px);
}

.toolbar-search input {
  height: 46px;
  padding: 0 16px;
  border-radius: 14px;
}

.sort-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.sort-buttons button {
  min-height: 42px;
  padding: 0 16px;
  color: var(--gray-700);
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: 12px;
  font-weight: 750;
}

.sort-buttons button.active,
.sort-buttons button:hover {
  color: var(--white);
  background: var(--amber-600);
  border-color: var(--amber-600);
}

.empty-state {
  margin-top: 26px;
  padding: 42px;
  text-align: center;
  background: var(--white);
  border: 1px solid var(--amber-200);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.empty-state strong {
  display: block;
  color: var(--gray-900);
  font-size: 24px;
}

.empty-state span {
  display: block;
  margin-top: 8px;
  color: var(--gray-600);
}

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

.top-rank-card {
  position: relative;
  min-height: 320px;
  overflow: hidden;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  background: var(--amber-100);
}

.top-rank-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.top-rank-card:hover img {
  transform: scale(1.06);
}

.top-rank-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 25%, rgba(0, 0, 0, 0.78));
}

.top-rank-number {
  position: absolute;
  top: 18px;
  left: 18px;
  z-index: 2;
  padding: 7px 12px;
  color: var(--white);
  background: var(--amber-600);
  border-radius: 999px;
  font-weight: 900;
}

.top-rank-copy {
  position: absolute;
  right: 22px;
  bottom: 22px;
  left: 22px;
  z-index: 2;
  color: var(--white);
}

.top-rank-copy strong {
  display: block;
  font-size: 24px;
  line-height: 1.2;
}

.top-rank-copy small {
  display: block;
  margin-top: 8px;
  color: var(--amber-100);
}

.search-hero .container {
  max-width: 900px;
}

.large-search {
  display: flex;
  max-width: 720px;
  gap: 12px;
  margin-top: 30px;
}

.large-search input {
  min-width: 0;
  height: 56px;
  padding: 0 20px;
  border-radius: 999px;
}

.large-search button {
  padding: 0 28px;
}

.search-summary {
  margin: 0 0 22px;
  color: var(--gray-600);
  font-weight: 700;
}

.search-list {
  display: grid;
  gap: 18px;
}

.movie-card-list {
  display: grid;
  grid-template-columns: 270px minmax(0, 1fr);
}

.movie-card-list .poster-frame {
  height: 100%;
  min-height: 180px;
}

.detail-hero {
  position: relative;
  overflow: hidden;
  color: var(--white);
  background: var(--amber-900);
  padding: 38px 0 62px;
}

.detail-layer {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.18), rgba(0, 0, 0, 0.74));
}

.detail-hero-inner {
  position: relative;
  z-index: 2;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-bottom: 34px;
  color: var(--amber-100);
  font-size: 14px;
}

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

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

.detail-cover {
  width: 260px;
  overflow: hidden;
  border: 1px solid rgba(253, 230, 138, 0.36);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  aspect-ratio: 3 / 4;
  object-fit: cover;
  background: rgba(255, 255, 255, 0.12);
}

.detail-intro p {
  max-width: 820px;
  margin: 20px 0 0;
  color: var(--amber-100);
  font-size: 20px;
}

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

.detail-tags span {
  padding: 6px 12px;
  color: var(--amber-100);
  background: rgba(255, 255, 255, 0.14);
}

.detail-facts {
  margin-top: 22px;
  color: var(--white);
}

.detail-facts span {
  padding: 8px 12px;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 999px;
}

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

.detail-main {
  display: grid;
  gap: 24px;
}

.player-card {
  overflow: hidden;
  padding: 0;
}

.video-box {
  position: relative;
  overflow: hidden;
  background: #000000;
  border-radius: var(--radius-lg);
  aspect-ratio: 16 / 9;
}

.video-box video {
  width: 100%;
  height: 100%;
  background: #000000;
}

.video-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  color: var(--white);
  background: rgba(0, 0, 0, 0.3);
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

.video-overlay span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 94px;
  height: 94px;
  padding-left: 5px;
  background: var(--amber-600);
  border-radius: 50%;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.36);
  font-size: 36px;
  transition: transform 0.2s ease, background 0.2s ease;
}

.video-overlay:hover span {
  background: var(--amber-700);
  transform: scale(1.08);
}

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

.content-card,
.side-card {
  padding: 26px;
}

.card-heading {
  margin-bottom: 14px;
}

.card-heading h2,
.side-card h2 {
  font-size: 24px;
}

.content-card p {
  margin: 0;
  color: var(--gray-700);
  font-size: 17px;
  line-height: 1.9;
}

.highlight-card {
  background: linear-gradient(135deg, var(--amber-50), var(--orange-50));
}

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

.info-grid span {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 16px;
  color: var(--gray-800);
  background: var(--gray-50);
  border-radius: 14px;
}

.info-grid b {
  color: var(--gray-500);
  font-size: 13px;
}

.sticky-card {
  position: sticky;
  top: 96px;
}

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

.mini-card {
  display: grid;
  grid-template-columns: 86px minmax(0, 1fr);
  gap: 13px;
  align-items: center;
  padding: 9px;
  border-radius: 14px;
  transition: background 0.2s ease, transform 0.2s ease;
}

.mini-card:hover {
  background: var(--amber-50);
  transform: translateX(3px);
}

.mini-poster {
  overflow: hidden;
  border-radius: 12px;
  aspect-ratio: 16 / 10;
  background: var(--amber-100);
}

.mini-card strong {
  display: -webkit-box;
  overflow: hidden;
  color: var(--gray-900);
  line-height: 1.35;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.mini-card small {
  display: block;
  margin-top: 5px;
  color: var(--gray-500);
}

.site-footer {
  color: var(--amber-100);
  background: linear-gradient(135deg, var(--amber-900), var(--orange-900));
}

.footer-inner {
  display: grid;
  width: min(100% - 32px, 1280px);
  margin: 0 auto;
  padding: 54px 0;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) minmax(0, 1fr);
  gap: 34px;
}

.footer-logo .brand-text strong {
  color: var(--white);
}

.footer-logo .brand-text small,
.footer-brand p {
  color: var(--amber-100);
}

.footer-brand p {
  max-width: 420px;
  margin: 18px 0 0;
}

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

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

.footer-grid a {
  color: var(--amber-100);
  font-weight: 600;
}

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

.footer-bottom {
  display: flex;
  width: min(100% - 32px, 1280px);
  margin: 0 auto;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 0;
  border-top: 1px solid rgba(253, 230, 138, 0.18);
  color: var(--amber-100);
  font-size: 14px;
}

[hidden] {
  display: none !important;
}

@media (max-width: 1120px) {
  .desktop-nav {
    display: none;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .hero-content {
    grid-template-columns: minmax(0, 1fr) 310px;
  }

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

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

  .sticky-card {
    position: static;
  }
}

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

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

  .hero-slide {
    position: relative;
    display: none;
    min-height: 720px;
  }

  .hero-slide.active {
    display: block;
  }

  .hero-content {
    grid-template-columns: 1fr;
    gap: 28px;
    padding: 64px 0 90px;
  }

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

  .featured-grid,
  .movie-grid,
  .movie-grid.compact,
  .movie-grid.two-col,
  .category-grid,
  .category-overview-grid,
  .top-rank-grid,
  .ranking-list.wide {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .toolbar-search {
    width: 100%;
  }

  .sort-buttons {
    justify-content: flex-start;
  }

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

  .detail-cover {
    width: min(100%, 300px);
  }

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

  .footer-inner {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .container,
  .header-inner,
  .mobile-panel,
  .footer-inner,
  .footer-bottom {
    width: min(100% - 24px, 1280px);
  }

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

  .brand-mark {
    width: 38px;
    height: 38px;
  }

  .hero h1,
  .page-hero h1,
  .detail-intro h1 {
    font-size: 36px;
  }

  .hero p,
  .page-hero p,
  .detail-intro p {
    font-size: 17px;
  }

  .featured-grid,
  .movie-grid,
  .movie-grid.compact,
  .movie-grid.two-col,
  .category-grid,
  .category-overview-grid,
  .top-rank-grid,
  .ranking-list.wide,
  .info-grid {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 52px 0;
  }

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

  .large-search,
  .footer-bottom {
    flex-direction: column;
  }

  .large-search button {
    height: 52px;
  }

  .mobile-nav {
    grid-template-columns: 1fr;
  }
}
