:root {
  --amber-50: #fffbeb;
  --amber-100: #fef3c7;
  --amber-500: #f59e0b;
  --amber-600: #d97706;
  --amber-700: #b45309;
  --orange-500: #f97316;
  --slate-900: #0f172a;
  --slate-950: #020617;
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-900: #111827;
  --white: #ffffff;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.08);
  --shadow-md: 0 8px 24px rgba(15, 23, 42, 0.10);
  --shadow-xl: 0 24px 60px rgba(15, 23, 42, 0.16);
  --radius-lg: 18px;
  --radius-xl: 28px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

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

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

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(255, 255, 255, 0.82);
  border-bottom: 1px solid rgba(229, 231, 235, 0.9);
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(14px);
}

.nav-shell {
  width: min(1180px, calc(100% - 32px));
  height: 68px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 28px;
}

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.brand-mark {
  width: 38px;
  height: 38px;
  display: inline-grid;
  place-items: center;
  color: var(--white);
  background: linear-gradient(135deg, var(--amber-600), var(--orange-500));
  border-radius: 12px;
  box-shadow: 0 12px 28px rgba(217, 119, 6, 0.26);
}

.brand-text {
  font-size: 24px;
  background: linear-gradient(90deg, var(--amber-600), var(--orange-500));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

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

.nav-link {
  color: var(--gray-700);
  font-weight: 700;
  transition: color 0.2s ease;
}

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

.nav-search {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 280px;
}

.nav-search input,
.mobile-panel input,
.big-search input,
.local-search input {
  width: 100%;
  border: 1px solid var(--gray-200);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.95);
  color: var(--gray-900);
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

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

.nav-search button,
.mobile-panel button {
  border: 0;
  border-radius: 999px;
  padding: 10px 16px;
  color: var(--white);
  background: var(--amber-600);
}

.nav-search input:focus,
.mobile-panel input:focus,
.big-search input:focus,
.local-search input:focus {
  border-color: var(--amber-500);
  box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.18);
}

.mobile-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 12px;
  background: var(--gray-100);
}

.mobile-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  background: var(--gray-700);
}

.mobile-panel {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 14px 0 20px;
  border-top: 1px solid var(--gray-200);
}

.mobile-panel a,
.mobile-panel form {
  display: block;
  margin: 10px 0;
}

.mobile-panel input {
  padding: 12px 16px;
}

.hero-carousel {
  position: relative;
  min-height: min(76vh, 660px);
  overflow: hidden;
  color: var(--white);
  background: var(--slate-950);
}

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

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

.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.08) contrast(1.05);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 74% 36%, rgba(245, 158, 11, 0.32), transparent 34%),
    linear-gradient(90deg, rgba(2, 6, 23, 0.92), rgba(15, 23, 42, 0.74) 48%, rgba(2, 6, 23, 0.36)),
    linear-gradient(0deg, rgba(2, 6, 23, 0.82), rgba(2, 6, 23, 0.06));
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(1180px, calc(100% - 32px));
  min-height: min(76vh, 660px);
  margin: 0 auto;
  padding: 80px 0 92px;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) 360px;
  gap: 56px;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  margin-bottom: 12px;
  border: 1px solid rgba(245, 158, 11, 0.34);
  border-radius: 999px;
  padding: 6px 12px;
  color: var(--amber-600);
  background: rgba(255, 251, 235, 0.88);
  font-size: 14px;
  font-weight: 800;
}

.hero-copy h1,
.inner-hero h1 {
  margin: 0;
  max-width: 860px;
  font-size: clamp(34px, 5vw, 64px);
  line-height: 1.05;
  letter-spacing: -0.045em;
}

.hero-copy h2 {
  margin: 18px 0 8px;
  font-size: clamp(24px, 3vw, 42px);
  line-height: 1.12;
}

.hero-copy p,
.inner-hero p {
  max-width: 760px;
  margin: 16px 0 0;
  color: rgba(255, 255, 255, 0.84);
  font-size: 18px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 30px;
}

.primary-button,
.ghost-button,
.section-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border-radius: 999px;
  padding: 0 20px;
  font-weight: 800;
  transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.primary-button {
  border: 0;
  color: var(--white);
  background: linear-gradient(135deg, var(--amber-600), var(--orange-500));
  box-shadow: 0 14px 30px rgba(217, 119, 6, 0.26);
}

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

.ghost-button.dark {
  border-color: rgba(15, 23, 42, 0.16);
  color: var(--gray-900);
  background: rgba(255, 255, 255, 0.78);
}

.primary-button:hover,
.ghost-button:hover,
.section-link:hover {
  transform: translateY(-2px);
}

.hero-poster {
  display: block;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 32px;
  box-shadow: var(--shadow-xl);
  transform: rotate(2deg);
}

.hero-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-controls {
  position: absolute;
  right: max(24px, calc((100% - 1180px) / 2));
  bottom: 28px;
  z-index: 4;
  display: flex;
  align-items: center;
  gap: 14px;
}

.hero-arrow,
.hero-dot {
  border: 0;
  color: var(--white);
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(10px);
}

.hero-arrow {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  font-size: 30px;
  line-height: 1;
}

.hero-dots {
  display: flex;
  gap: 8px;
}

.hero-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  padding: 0;
  transition: width 0.2s ease, background 0.2s ease;
}

.hero-dot.is-active {
  width: 28px;
  background: var(--amber-500);
}

.page-section {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 58px 0;
}

.soft-section {
  width: 100%;
  max-width: none;
  padding: 58px max(16px, calc((100% - 1180px) / 2));
  background: rgba(255, 255, 255, 0.48);
  backdrop-filter: blur(6px);
}

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

.section-heading h2,
.rank-panel h2,
.side-card h2,
.detail-content h2 {
  margin: 0;
  color: var(--gray-900);
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.15;
  letter-spacing: -0.03em;
}

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

.section-link {
  min-height: 40px;
  color: var(--amber-700);
  background: var(--amber-100);
}

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

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

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

.movie-card {
  overflow: hidden;
  border: 1px solid rgba(229, 231, 235, 0.9);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow-sm);
  transition: transform 0.24s ease, box-shadow 0.24s ease;
}

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

.poster-link {
  position: relative;
  display: block;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  background: #f8fafc;
}

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

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

.play-chip,
.rank-badge {
  position: absolute;
  border-radius: 999px;
  color: var(--white);
  font-weight: 800;
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.2);
}

.play-chip {
  right: 10px;
  bottom: 10px;
  padding: 5px 10px;
  background: rgba(217, 119, 6, 0.94);
  font-size: 13px;
}

.rank-badge {
  left: 10px;
  top: 10px;
  min-width: 30px;
  height: 30px;
  display: inline-grid;
  place-items: center;
  background: linear-gradient(135deg, #ef4444, var(--orange-500));
}

.card-body {
  padding: 16px;
}

.card-body h3 {
  display: -webkit-box;
  min-height: 48px;
  margin: 0 0 8px;
  overflow: hidden;
  color: var(--gray-900);
  font-size: 16px;
  line-height: 1.45;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.card-body h3 a:hover {
  color: var(--amber-700);
}

.card-meta {
  margin: 0 0 9px;
  color: var(--gray-500);
  font-size: 13px;
}

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

.card-tags,
.detail-tags,
.meta-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.card-tags {
  margin-top: 12px;
}

.card-tags span,
.detail-tags span,
.meta-pills span {
  border-radius: 999px;
  padding: 5px 9px;
  color: var(--amber-700);
  background: var(--amber-50);
  font-size: 12px;
  font-weight: 700;
}

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

.category-pill,
.category-card a {
  display: block;
  height: 100%;
  border: 1px solid rgba(245, 158, 11, 0.16);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.88);
  box-shadow: var(--shadow-sm);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.category-pill {
  padding: 20px;
}

.category-pill:hover,
.category-card a:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.category-pill strong {
  display: block;
  color: var(--gray-900);
  font-size: 18px;
}

.category-pill span {
  display: block;
  margin-top: 8px;
  color: var(--gray-600);
  font-size: 14px;
}

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

.rank-panel,
.side-card {
  position: sticky;
  top: 92px;
  border: 1px solid rgba(229, 231, 235, 0.9);
  border-radius: var(--radius-xl);
  padding: 22px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow-md);
}

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

.small-movie {
  position: relative;
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  border-radius: 14px;
  padding: 8px;
  background: var(--gray-50);
  transition: background 0.2s ease, transform 0.2s ease;
}

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

.small-movie img {
  width: 74px;
  height: 98px;
  border-radius: 10px;
  object-fit: cover;
}

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

.small-info strong {
  display: -webkit-box;
  overflow: hidden;
  color: var(--gray-900);
  font-size: 15px;
  line-height: 1.35;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.small-info em {
  display: block;
  margin-top: 5px;
  color: var(--gray-500);
  font-size: 12px;
  font-style: normal;
}

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

.inner-hero {
  width: min(1180px, calc(100% - 32px));
  margin: 28px auto 0;
  border-radius: 34px;
  padding: 74px 54px;
  color: var(--white);
  background:
    radial-gradient(circle at 80% 20%, rgba(245, 158, 11, 0.46), transparent 32%),
    linear-gradient(135deg, var(--slate-950), #1f2937 55%, #7c2d12);
  box-shadow: var(--shadow-xl);
}

.inner-hero .eyebrow {
  color: var(--amber-700);
}

.centered-actions {
  margin-top: 26px;
}

.category-card a {
  padding: 24px;
}

.category-card-label {
  display: inline-flex;
  border-radius: 999px;
  padding: 5px 10px;
  color: var(--amber-700);
  background: var(--amber-50);
  font-size: 13px;
  font-weight: 800;
}

.category-card h2 {
  margin: 16px 0 8px;
  color: var(--gray-900);
  font-size: 24px;
}

.category-card p {
  min-height: 72px;
  margin: 0;
  color: var(--gray-600);
}

.category-samples {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin-top: 18px;
}

.category-samples img {
  aspect-ratio: 2 / 3;
  width: 100%;
  border-radius: 10px;
  object-fit: cover;
}

.filter-panel {
  display: grid;
  gap: 16px;
  margin-bottom: 28px;
  border: 1px solid rgba(229, 231, 235, 0.9);
  border-radius: var(--radius-xl);
  padding: 20px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow-sm);
}

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

.filter-button {
  border: 1px solid var(--gray-200);
  border-radius: 999px;
  padding: 8px 14px;
  color: var(--gray-700);
  background: var(--white);
  font-weight: 700;
  transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.filter-button:hover,
.filter-button.is-active {
  border-color: var(--amber-500);
  color: var(--white);
  background: var(--amber-600);
}

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

.local-search input {
  max-width: 420px;
  padding: 12px 16px;
}

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

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

.big-search input {
  flex: 1;
  padding: 15px 18px;
}

.breadcrumb {
  width: min(1180px, calc(100% - 32px));
  margin: 26px auto 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--gray-500);
  font-size: 14px;
}

.breadcrumb a {
  color: var(--amber-700);
  font-weight: 700;
}

.detail-layout {
  width: min(1180px, calc(100% - 32px));
  margin: 22px auto 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 32px;
  align-items: start;
}

.detail-main {
  min-width: 0;
}

.player-section,
.detail-content {
  border: 1px solid rgba(229, 231, 235, 0.9);
  border-radius: var(--radius-xl);
  padding: 24px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow-md);
}

.detail-title-row h1 {
  margin: 0;
  color: var(--gray-900);
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.1;
  letter-spacing: -0.035em;
}

.detail-title-row p {
  margin: 12px 0 0;
  color: var(--gray-600);
  font-size: 17px;
}

.movie-player {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  margin-top: 22px;
  border-radius: 24px;
  background: var(--slate-950);
  box-shadow: var(--shadow-xl);
}

.movie-player-video,
.movie-player-cover {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.movie-player-video {
  z-index: 1;
  background: var(--slate-950);
}

.movie-player-cover {
  z-index: 2;
  overflow: hidden;
  border: 0;
  padding: 0;
  color: var(--white);
  background: var(--slate-950);
  transition: opacity 0.24s ease, visibility 0.24s ease;
}

.movie-player-cover.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.movie-player-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.62);
}

.movie-player-shade {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle, rgba(245, 158, 11, 0.24), rgba(2, 6, 23, 0.62));
}

.movie-player-start {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 88px;
  height: 88px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--white);
  background: linear-gradient(135deg, var(--amber-600), var(--orange-500));
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.34);
  font-size: 34px;
  transform: translate(-50%, -50%);
}

.meta-pills {
  margin-top: 18px;
}

.detail-content {
  margin-top: 24px;
}

.detail-content h2 {
  margin-top: 28px;
  font-size: 26px;
}

.detail-content h2:first-child {
  margin-top: 0;
}

.detail-content p {
  margin: 12px 0 0;
  color: var(--gray-700);
  font-size: 17px;
}

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

.info-list div {
  border-radius: 14px;
  padding: 14px;
  background: var(--gray-50);
}

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

.info-list dd {
  margin: 4px 0 0;
  color: var(--gray-900);
  font-weight: 800;
}

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

.site-footer {
  margin-top: 56px;
  color: #d1d5db;
  background: linear-gradient(180deg, var(--slate-900), var(--slate-950));
}

.footer-shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 44px 0;
  display: flex;
  justify-content: space-between;
  gap: 32px;
}

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

.footer-shell p {
  max-width: 520px;
  margin: 12px 0 0;
}

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

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

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

.empty-state {
  grid-column: 1 / -1;
  border-radius: var(--radius-lg);
  padding: 36px;
  color: var(--gray-600);
  background: rgba(255, 255, 255, 0.9);
  text-align: center;
}

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

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

  .hero-content {
    grid-template-columns: 1fr;
    gap: 34px;
  }

  .hero-poster {
    max-width: 280px;
    transform: none;
  }

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

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

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

  .rank-panel,
  .side-card {
    position: static;
  }
}

@media (max-width: 720px) {
  .nav-shell {
    width: min(100% - 22px, 1180px);
    height: 62px;
  }

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

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

  .hero-content {
    padding: 48px 0 96px;
  }

  .hero-copy p,
  .inner-hero p {
    font-size: 16px;
  }

  .hero-controls {
    left: 16px;
    right: auto;
  }

  .hero-actions,
  .big-search,
  .footer-shell,
  .section-heading {
    align-items: stretch;
    flex-direction: column;
  }

  .primary-button,
  .ghost-button,
  .section-link {
    width: 100%;
  }

  .inner-hero {
    padding: 46px 24px;
    border-radius: 24px;
  }

  .page-section,
  .soft-section,
  .detail-layout,
  .breadcrumb {
    width: min(100% - 22px, 1180px);
  }

  .movie-grid,
  .all-movie-grid,
  .compact-grid,
  .category-grid,
  .category-overview-grid,
  .spotlight-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }

  .card-body {
    padding: 12px;
  }

  .card-desc,
  .card-tags {
    display: none;
  }

  .player-section,
  .detail-content {
    padding: 16px;
    border-radius: 20px;
  }

  .movie-player {
    border-radius: 18px;
  }

  .movie-player-start {
    width: 68px;
    height: 68px;
    font-size: 28px;
  }

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