:root {
  --color-amber-50: #fffbeb;
  --color-amber-100: #fef3c7;
  --color-amber-200: #fde68a;
  --color-amber-500: #f59e0b;
  --color-amber-600: #d97706;
  --color-amber-700: #b45309;
  --color-amber-900: #78350f;
  --color-orange-50: #fff7ed;
  --color-orange-500: #f97316;
  --color-orange-600: #ea580c;
  --color-orange-800: #9a3412;
  --color-orange-900: #7c2d12;
  --color-rose-50: #fff1f2;
  --color-rose-700: #be123c;
  --color-rose-900: #881337;
  --color-gray-50: #f9fafb;
  --color-gray-100: #f3f4f6;
  --color-gray-200: #e5e7eb;
  --color-gray-500: #6b7280;
  --color-gray-600: #4b5563;
  --color-gray-700: #374151;
  --color-gray-800: #1f2937;
  --color-gray-900: #111827;
  --shadow-card: 0 18px 45px rgba(120, 53, 15, 0.12);
  --shadow-soft: 0 12px 28px rgba(120, 53, 15, 0.10);
  --radius-xl: 1.25rem;
  --radius-lg: 0.9rem;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--color-gray-800);
  background: linear-gradient(135deg, var(--color-amber-50), var(--color-orange-50) 48%, var(--color-rose-50));
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
}

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

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

button,
input,
select {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: linear-gradient(90deg, var(--color-amber-900), var(--color-orange-800), var(--color-rose-900));
  box-shadow: 0 12px 30px rgba(80, 28, 9, 0.22);
}

.header-inner,
.section,
.footer-inner {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

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

.logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: white;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.logo-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: linear-gradient(135deg, #fbbf24, var(--color-orange-600));
  box-shadow: 0 10px 20px rgba(249, 115, 22, 0.28);
}

.logo-text {
  font-size: 1.35rem;
  background: linear-gradient(90deg, var(--color-amber-200), #fed7aa);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 20px;
  color: rgba(254, 243, 199, 0.92);
  font-weight: 600;
}

.desktop-nav a:hover,
.mobile-nav a:hover {
  color: white;
}

.menu-toggle {
  display: none;
  border: 0;
  color: white;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  padding: 9px 14px;
  cursor: pointer;
}

.mobile-nav {
  display: none;
  flex-direction: column;
  gap: 4px;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 0 0 16px;
  color: rgba(254, 243, 199, 0.92);
}

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

.mobile-nav a {
  padding: 10px 14px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.07);
}

.hero {
  position: relative;
  overflow: hidden;
  min-height: 610px;
  color: white;
  background: radial-gradient(circle at 15% 15%, rgba(251, 191, 36, 0.35), transparent 32%), linear-gradient(135deg, #451a03, #9a3412 52%, #881337);
}

.hero::before,
.hero::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  filter: blur(14px);
  opacity: 0.32;
}

.hero::before {
  width: 260px;
  height: 260px;
  left: -80px;
  top: 80px;
  background: #fbbf24;
}

.hero::after {
  width: 360px;
  height: 360px;
  right: -120px;
  bottom: -120px;
  background: #fb7185;
}

.hero-slider {
  position: relative;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 76px 0 70px;
  z-index: 2;
}

.hero-slide {
  display: none;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 44px;
  align-items: center;
}

.hero-slide.is-active {
  display: grid;
}

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

.hero-kicker,
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  padding: 8px 14px;
  border: 1px solid rgba(253, 230, 138, 0.35);
  border-radius: 999px;
  color: var(--color-amber-100);
  background: rgba(255, 255, 255, 0.10);
  backdrop-filter: blur(14px);
  font-weight: 700;
}

.hero-title {
  max-width: 820px;
  margin: 0 0 18px;
  font-size: clamp(2.3rem, 7vw, 5.4rem);
  line-height: 0.96;
  letter-spacing: -0.05em;
}

.hero-desc {
  max-width: 720px;
  margin: 0 0 26px;
  color: rgba(255, 251, 235, 0.88);
  font-size: 1.12rem;
  line-height: 1.9;
}

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

.hero-meta span,
.meta-pill,
.tag-pill {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 7px 12px;
  color: #7c2d12;
  background: var(--color-amber-100);
  font-weight: 700;
  font-size: 0.88rem;
}

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

.btn,
.link-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  border-radius: 999px;
  padding: 12px 20px;
  cursor: pointer;
  font-weight: 800;
  transition: transform 0.22s ease, box-shadow 0.22s ease, background 0.22s ease;
}

.btn-primary {
  color: white;
  background: linear-gradient(90deg, var(--color-amber-500), var(--color-orange-600));
  box-shadow: 0 12px 26px rgba(249, 115, 22, 0.34);
}

.btn-secondary {
  color: white;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(10px);
}

.btn-light {
  color: var(--color-orange-900);
  background: white;
  box-shadow: var(--shadow-soft);
}

.btn:hover,
.link-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 34px rgba(120, 53, 15, 0.2);
}

.hero-poster-wrap {
  position: relative;
}

.hero-poster-card {
  position: relative;
  overflow: hidden;
  min-height: 500px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 34px;
  background: rgba(255, 255, 255, 0.12);
  box-shadow: 0 34px 90px rgba(28, 25, 23, 0.38);
  transform: rotate(2deg);
}

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

.hero-poster-caption {
  position: absolute;
  inset: auto 18px 18px 18px;
  padding: 18px;
  border-radius: 22px;
  color: white;
  background: linear-gradient(180deg, rgba(69, 26, 3, 0.28), rgba(69, 26, 3, 0.88));
  backdrop-filter: blur(10px);
}

.hero-dots {
  display: flex;
  gap: 10px;
  margin-top: 36px;
}

.hero-dot {
  width: 38px;
  height: 8px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.26);
  cursor: pointer;
}

.hero-dot.is-active {
  background: var(--color-amber-200);
}

.section {
  padding: 42px 0;
}

.section-tight {
  padding-top: 28px;
}

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

.section-heading h1,
.section-heading h2 {
  margin: 0;
  color: var(--color-gray-900);
  font-size: clamp(1.7rem, 4vw, 2.45rem);
  letter-spacing: -0.03em;
}

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

.panel {
  border: 1px solid rgba(245, 158, 11, 0.20);
  border-radius: var(--radius-xl);
  background: rgba(255, 255, 255, 0.82);
  box-shadow: var(--shadow-card);
  backdrop-filter: blur(18px);
}

.search-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  padding: 18px;
}

.search-input {
  width: 100%;
  border: 2px solid transparent;
  border-radius: 999px;
  padding: 14px 18px;
  color: var(--color-gray-800);
  background: var(--color-gray-50);
  outline: none;
}

.search-input:focus {
  border-color: var(--color-amber-500);
  background: white;
}

.filter-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 18px 0 0;
}

.filter-chip {
  border: 1px solid rgba(245, 158, 11, 0.35);
  border-radius: 999px;
  padding: 8px 12px;
  color: var(--color-orange-900);
  background: #fff7ed;
  cursor: pointer;
  font-weight: 700;
}

.filter-chip.is-active {
  color: white;
  background: linear-gradient(90deg, var(--color-amber-500), var(--color-orange-600));
}

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

.category-card {
  display: flex;
  min-height: 180px;
  flex-direction: column;
  justify-content: space-between;
  padding: 22px;
  border-radius: var(--radius-xl);
  color: white;
  background: linear-gradient(135deg, var(--color-amber-600), var(--color-orange-600) 52%, var(--color-rose-700));
  box-shadow: var(--shadow-soft);
  overflow: hidden;
  position: relative;
}

.category-card::after {
  content: "";
  position: absolute;
  right: -42px;
  bottom: -42px;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
}

.category-card h3 {
  margin: 0 0 12px;
  font-size: 1.28rem;
}

.category-card p {
  margin: 0;
  color: rgba(255, 251, 235, 0.86);
  line-height: 1.7;
}

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

.movie-card {
  display: flex;
  min-width: 0;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid rgba(245, 158, 11, 0.16);
  border-radius: var(--radius-xl);
  background: white;
  box-shadow: var(--shadow-soft);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.movie-card:hover {
  transform: translateY(-5px);
  border-color: rgba(245, 158, 11, 0.42);
  box-shadow: 0 22px 46px rgba(120, 53, 15, 0.16);
}

.poster-link {
  position: relative;
  overflow: hidden;
  display: block;
  background: linear-gradient(135deg, var(--color-amber-100), var(--color-orange-50));
}

.poster {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  transition: transform 0.28s ease;
}

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

.poster-badge,
.rank-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  border-radius: 999px;
  padding: 6px 10px;
  color: white;
  background: rgba(120, 53, 15, 0.82);
  font-size: 0.78rem;
  font-weight: 800;
  backdrop-filter: blur(8px);
}

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

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

.card-desc {
  flex: 1;
  margin: 0 0 14px;
  color: var(--color-gray-600);
  font-size: 0.92rem;
  line-height: 1.65;
}

.card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--color-gray-500);
  font-size: 0.82rem;
}

.card-meta span {
  border-radius: 999px;
  padding: 5px 8px;
  background: var(--color-gray-100);
}

.rank-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(280px, 0.6fr);
  gap: 22px;
}

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

.rank-item {
  display: grid;
  grid-template-columns: 64px 72px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 12px;
  border: 1px solid rgba(245, 158, 11, 0.18);
  border-radius: 18px;
  background: white;
  box-shadow: 0 8px 20px rgba(120, 53, 15, 0.08);
}

.rank-number {
  color: var(--color-orange-600);
  font-size: 1.35rem;
  font-weight: 900;
  text-align: center;
}

.rank-thumb {
  width: 72px;
  height: 100px;
  border-radius: 14px;
  object-fit: cover;
  background: var(--color-amber-100);
}

.rank-info h3 {
  margin: 0 0 6px;
  font-size: 1rem;
}

.rank-info p {
  margin: 0;
  color: var(--color-gray-600);
  line-height: 1.55;
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(290px, 0.65fr);
  gap: 26px;
  align-items: start;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
  color: var(--color-gray-600);
  font-size: 0.92rem;
}

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

.player-panel {
  overflow: hidden;
  border-radius: 28px;
  background: #130b06;
  box-shadow: 0 28px 60px rgba(69, 26, 3, 0.28);
}

.player-box {
  position: relative;
  background: #090909;
}

.player-box video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #050505;
}

.player-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 24px;
  color: white;
  background: linear-gradient(180deg, rgba(9, 9, 9, 0.28), rgba(9, 9, 9, 0.72));
  cursor: pointer;
}

.player-overlay.is-hidden {
  display: none;
}

.play-button {
  display: grid;
  place-items: center;
  width: 84px;
  height: 84px;
  border: 0;
  border-radius: 50%;
  color: white;
  background: linear-gradient(135deg, var(--color-amber-500), var(--color-orange-600));
  box-shadow: 0 22px 44px rgba(249, 115, 22, 0.36);
  cursor: pointer;
  font-size: 2rem;
}

.player-caption {
  padding: 18px 22px 22px;
  color: rgba(255, 251, 235, 0.84);
}

.player-caption h1 {
  margin: 0 0 8px;
  color: white;
  font-size: clamp(1.6rem, 3vw, 2.5rem);
}

.detail-card {
  padding: 24px;
  border-radius: var(--radius-xl);
  background: white;
  box-shadow: var(--shadow-card);
}

.detail-card h2,
.detail-card h3 {
  margin: 0 0 14px;
  color: var(--color-gray-900);
}

.detail-card p {
  margin: 0 0 16px;
  color: var(--color-gray-700);
  line-height: 1.9;
}

.detail-cover {
  overflow: hidden;
  border-radius: 24px;
  background: var(--color-amber-100);
  box-shadow: var(--shadow-soft);
}

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

.sidebar-list {
  display: grid;
  gap: 14px;
}

.mini-card {
  display: grid;
  grid-template-columns: 68px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 10px;
  border-radius: 16px;
  background: rgba(255, 247, 237, 0.82);
}

.mini-card img {
  width: 68px;
  height: 92px;
  border-radius: 12px;
  object-fit: cover;
}

.mini-card h4 {
  margin: 0 0 6px;
  color: var(--color-gray-900);
  font-size: 0.95rem;
}

.mini-card p {
  margin: 0;
  color: var(--color-gray-600);
  font-size: 0.84rem;
  line-height: 1.45;
}

.hidden-by-filter {
  display: none !important;
}

.empty-state {
  display: none;
  padding: 34px;
  text-align: center;
  color: var(--color-gray-600);
}

.empty-state.is-visible {
  display: block;
}

.site-footer {
  margin-top: 58px;
  color: rgba(254, 243, 199, 0.84);
  background: linear-gradient(90deg, var(--color-amber-900), var(--color-orange-900), var(--color-rose-900));
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 0.8fr;
  gap: 28px;
  padding: 44px 0;
}

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

.footer-inner p,
.footer-inner a {
  color: rgba(254, 243, 199, 0.78);
  line-height: 1.85;
}

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

.copyright {
  border-top: 1px solid rgba(253, 230, 138, 0.18);
  padding: 18px 0;
  text-align: center;
  color: rgba(254, 243, 199, 0.68);
}

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

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

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

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

  .hero {
    min-height: auto;
  }

  .hero-slider {
    padding: 44px 0 52px;
  }

  .hero-slide,
  .detail-layout,
  .rank-layout,
  .footer-inner {
    grid-template-columns: 1fr;
  }

  .hero-poster-card {
    min-height: 360px;
    transform: none;
  }

  .hero-poster-card img {
    height: 360px;
  }

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

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

  .rank-item {
    grid-template-columns: 44px 62px minmax(0, 1fr);
  }

  .rank-item .link-btn {
    grid-column: 1 / -1;
  }
}

@media (max-width: 520px) {
  .header-inner,
  .section,
  .footer-inner,
  .hero-slider,
  .mobile-nav {
    width: min(100% - 22px, 1180px);
  }

  .logo-text {
    font-size: 1.05rem;
  }

  .category-grid,
  .movie-grid {
    grid-template-columns: 1fr;
  }

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

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

  .btn,
  .link-btn {
    width: 100%;
  }
}
