:root {
  --color-text: #1f2937;
  --color-muted: #6b7280;
  --color-soft: #f8fafc;
  --color-line: #e5e7eb;
  --color-card: #ffffff;
  --color-amber: #d97706;
  --color-orange: #ea580c;
  --color-dark: #111827;
  --shadow-soft: 0 18px 40px rgba(15, 23, 42, 0.08);
  --shadow-card: 0 12px 30px rgba(15, 23, 42, 0.12);
  --radius-lg: 24px;
  --radius-md: 18px;
  --radius-sm: 12px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--color-text);
  background: linear-gradient(180deg, #fff7ed 0%, #ffffff 34%, #f8fafc 100%);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  line-height: 1.6;
}

body.no-hero {
  background: #f8fafc;
}

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: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(229, 231, 235, 0.82);
}

.header-inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 14px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
  color: #9a3412;
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.logo-mark {
  width: 36px;
  height: 36px;
  border-radius: 13px;
  display: grid;
  place-items: center;
  color: #fff;
  background: linear-gradient(135deg, var(--color-amber), var(--color-orange));
  box-shadow: 0 12px 24px rgba(234, 88, 12, 0.28);
}

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

.nav {
  display: flex;
  align-items: center;
  gap: 24px;
  font-weight: 700;
  color: #374151;
}

.nav a,
.nav button {
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
  padding: 8px 0;
}

.nav a:hover,
.nav button:hover {
  color: var(--color-amber);
}

.nav-dropdown {
  position: relative;
}

.nav-dropdown-menu {
  position: absolute;
  left: 0;
  top: 100%;
  width: 210px;
  padding: 8px;
  background: #fff;
  border: 1px solid var(--color-line);
  border-radius: 16px;
  box-shadow: var(--shadow-soft);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: 0.2s ease;
}

.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav-dropdown-menu a {
  display: block;
  padding: 9px 12px;
  border-radius: 12px;
  font-size: 14px;
}

.nav-dropdown-menu a:hover {
  background: #fff7ed;
}

.header-search {
  position: relative;
  flex: 0 1 300px;
}

.header-search input {
  width: 100%;
  border: 1px solid #d1d5db;
  border-radius: 999px;
  padding: 10px 44px 10px 16px;
  outline: 0;
  background: #fff;
}

.header-search input:focus {
  border-color: #f59e0b;
  box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.16);
}

.header-search button {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  border: 0;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  color: #fff;
  background: linear-gradient(135deg, var(--color-amber), var(--color-orange));
  cursor: pointer;
}

.mobile-toggle {
  display: none;
  border: 0;
  background: transparent;
  font-size: 28px;
  color: #374151;
  cursor: pointer;
}

.mobile-panel {
  display: none;
  border-top: 1px solid var(--color-line);
  padding: 12px 22px 18px;
  background: #fff;
}

.mobile-panel a {
  display: block;
  padding: 12px 4px;
  font-weight: 800;
  color: #374151;
}

.hero {
  position: relative;
  min-height: 600px;
  overflow: hidden;
  color: #fff;
  background: #111827;
}

.hero-track {
  position: absolute;
  inset: 0;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.7s ease;
}

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

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

.hero-slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.86) 0%, rgba(0, 0, 0, 0.58) 48%, rgba(0, 0, 0, 0.18) 100%);
}

.hero-content {
  position: relative;
  z-index: 3;
  max-width: 1240px;
  margin: 0 auto;
  min-height: 600px;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.58fr);
  align-items: center;
  gap: 36px;
  padding: 72px 22px 62px;
}

.hero-copy {
  max-width: 760px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(245, 158, 11, 0.18);
  color: #fde68a;
  font-size: 14px;
  font-weight: 900;
  backdrop-filter: blur(10px);
}

.hero h1 {
  margin: 0;
  font-size: clamp(38px, 6vw, 72px);
  line-height: 1.06;
  font-weight: 950;
  letter-spacing: -0.06em;
}

.hero-title-small {
  display: block;
  margin-top: 12px;
  font-size: clamp(25px, 3.2vw, 42px);
  color: #fed7aa;
}

.hero-text {
  max-width: 720px;
  margin: 22px 0 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: 18px;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 12px 20px;
  border: 0;
  border-radius: 999px;
  font-weight: 900;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

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

.button-primary {
  color: #fff;
  background: linear-gradient(135deg, #f59e0b, #ea580c);
  box-shadow: 0 18px 35px rgba(234, 88, 12, 0.32);
}

.button-soft {
  color: #fff;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.24);
  backdrop-filter: blur(10px);
}

.hero-card {
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 28px;
  padding: 18px;
  background: rgba(17, 24, 39, 0.48);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.38);
  backdrop-filter: blur(18px);
}

.hero-card img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 22px;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.35);
}

.hero-card h2 {
  margin: 16px 0 6px;
  font-size: 24px;
  line-height: 1.25;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.pill {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 5px 10px;
  border-radius: 999px;
  color: #92400e;
  background: #fffbeb;
  font-size: 13px;
  font-weight: 800;
}

.pill.dark {
  color: #fde68a;
  background: rgba(245, 158, 11, 0.18);
}

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

.hero-dot {
  width: 11px;
  height: 11px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.45);
  cursor: pointer;
}

.hero-dot.is-active {
  width: 32px;
  border-radius: 999px;
  background: #f59e0b;
}

.section {
  max-width: 1240px;
  margin: 0 auto;
  padding: 58px 22px;
}

.section.compact {
  padding-top: 36px;
  padding-bottom: 36px;
}

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

.section-title {
  margin: 0;
  font-size: clamp(26px, 3vw, 38px);
  line-height: 1.18;
  font-weight: 950;
  letter-spacing: -0.04em;
  color: #111827;
}

.section-desc {
  margin: 8px 0 0;
  max-width: 760px;
  color: var(--color-muted);
}

.link-more {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--color-amber);
  font-weight: 900;
  white-space: nowrap;
}

.grid {
  display: grid;
  gap: 22px;
}

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

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

.movie-card {
  overflow: hidden;
  border: 1px solid rgba(229, 231, 235, 0.92);
  border-radius: var(--radius-lg);
  background: #fff;
  box-shadow: 0 8px 26px rgba(15, 23, 42, 0.06);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  border-color: #fed7aa;
  box-shadow: var(--shadow-card);
}

.movie-poster {
  position: relative;
  display: block;
  background: linear-gradient(135deg, #fef3c7, #fed7aa);
}

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

.poster-badge {
  position: absolute;
  left: 12px;
  top: 12px;
  z-index: 2;
  padding: 5px 9px;
  border-radius: 999px;
  color: #fff;
  background: rgba(17, 24, 39, 0.68);
  font-size: 12px;
  font-weight: 900;
  backdrop-filter: blur(10px);
}

.poster-play {
  position: absolute;
  right: 12px;
  bottom: 12px;
  z-index: 2;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff;
  background: linear-gradient(135deg, var(--color-amber), var(--color-orange));
  box-shadow: 0 10px 25px rgba(234, 88, 12, 0.35);
}

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

.movie-body h3 {
  margin: 0;
  font-size: 18px;
  line-height: 1.35;
  font-weight: 950;
  color: #111827;
}

.movie-info {
  margin-top: 8px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: #6b7280;
  font-size: 13px;
  font-weight: 700;
}

.movie-summary {
  margin: 10px 0 0;
  color: #4b5563;
  font-size: 14px;
}

.category-card {
  position: relative;
  overflow: hidden;
  min-height: 154px;
  padding: 22px;
  border-radius: 26px;
  color: #fff;
  box-shadow: var(--shadow-soft);
}

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

.category-card h3 {
  position: relative;
  z-index: 2;
  margin: 0 0 8px;
  font-size: 24px;
  font-weight: 950;
}

.category-card p {
  position: relative;
  z-index: 2;
  margin: 0;
  color: rgba(255, 255, 255, 0.86);
}

.category-card span {
  position: relative;
  z-index: 2;
  display: inline-flex;
  margin-top: 18px;
  font-weight: 900;
}

.tone-orange { background: linear-gradient(135deg, #f97316, #c2410c); }
.tone-amber { background: linear-gradient(135deg, #f59e0b, #b45309); }
.tone-rose { background: linear-gradient(135deg, #fb7185, #be123c); }
.tone-cyan { background: linear-gradient(135deg, #22d3ee, #0369a1); }
.tone-emerald { background: linear-gradient(135deg, #34d399, #047857); }
.tone-pink { background: linear-gradient(135deg, #f472b6, #be185d); }
.tone-yellow { background: linear-gradient(135deg, #eab308, #a16207); }
.tone-violet { background: linear-gradient(135deg, #a78bfa, #6d28d9); }
.tone-green { background: linear-gradient(135deg, #4ade80, #15803d); }
.tone-blue { background: linear-gradient(135deg, #60a5fa, #1d4ed8); }
.tone-red { background: linear-gradient(135deg, #f87171, #b91c1c); }
.tone-indigo { background: linear-gradient(135deg, #818cf8, #4338ca); }

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

.rank-item {
  display: grid;
  grid-template-columns: 54px 96px minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  padding: 14px;
  border: 1px solid rgba(229, 231, 235, 0.92);
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.05);
}

.rank-num {
  width: 44px;
  height: 44px;
  border-radius: 15px;
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 18px;
  font-weight: 950;
  background: linear-gradient(135deg, var(--color-amber), var(--color-orange));
}

.rank-item img {
  width: 96px;
  height: 128px;
  object-fit: cover;
  border-radius: 16px;
}

.rank-body h3 {
  margin: 0 0 8px;
  font-size: 20px;
  line-height: 1.3;
  font-weight: 950;
}

.rank-body p {
  margin: 0;
  color: var(--color-muted);
}

.page-hero {
  color: #fff;
  background: radial-gradient(circle at 15% 0%, rgba(245, 158, 11, 0.52), transparent 34%), linear-gradient(135deg, #111827, #431407 70%, #7c2d12);
}

.page-hero .section {
  padding-top: 72px;
  padding-bottom: 72px;
}

.page-hero h1 {
  margin: 0;
  max-width: 960px;
  font-size: clamp(34px, 5vw, 62px);
  line-height: 1.08;
  font-weight: 950;
  letter-spacing: -0.05em;
}

.page-hero p {
  max-width: 800px;
  margin: 18px 0 0;
  color: rgba(255, 255, 255, 0.84);
  font-size: 18px;
}

.filter-panel {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) repeat(3, minmax(150px, 190px));
  gap: 14px;
  margin-bottom: 26px;
  padding: 16px;
  border: 1px solid rgba(229, 231, 235, 0.9);
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
}

.filter-panel input,
.filter-panel select {
  width: 100%;
  border: 1px solid #d1d5db;
  border-radius: 16px;
  padding: 12px 14px;
  outline: 0;
  background: #fff;
}

.filter-panel input:focus,
.filter-panel select:focus {
  border-color: #f59e0b;
  box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.14);
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
  color: #d1d5db;
  font-weight: 800;
}

.breadcrumbs a {
  color: #fed7aa;
}

.detail-hero {
  color: #fff;
  background: linear-gradient(135deg, #111827, #431407 65%, #7c2d12);
}

.detail-layout {
  max-width: 1240px;
  margin: 0 auto;
  padding: 56px 22px;
  display: grid;
  grid-template-columns: minmax(0, 0.78fr) minmax(0, 1.22fr);
  gap: 34px;
  align-items: start;
}

.detail-poster {
  border-radius: 28px;
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.36);
}

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

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

.detail-line {
  margin: 16px 0 0;
  color: #fed7aa;
  font-size: 19px;
  font-weight: 800;
}

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.detail-summary {
  margin: 22px 0 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: 17px;
}

.player-section {
  max-width: 1240px;
  margin: 0 auto;
  padding: 48px 22px 30px;
}

.player-shell {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  background: #000;
  box-shadow: 0 30px 80px rgba(15, 23, 42, 0.24);
}

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

.player-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  cursor: pointer;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.66));
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

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

.play-card {
  text-align: center;
  color: #fff;
}

.play-button {
  width: 82px;
  height: 82px;
  margin: 0 auto 16px;
  border: 0;
  border-radius: 50%;
  color: #fff;
  background: linear-gradient(135deg, #f59e0b, #ea580c);
  font-size: 34px;
  cursor: pointer;
  box-shadow: 0 18px 45px rgba(234, 88, 12, 0.42);
}

.play-card strong {
  display: block;
  font-size: 22px;
}

.content-card {
  border: 1px solid rgba(229, 231, 235, 0.92);
  border-radius: 28px;
  padding: 26px;
  background: #fff;
  box-shadow: var(--shadow-soft);
}

.content-card h2 {
  margin: 0 0 14px;
  font-size: 28px;
  font-weight: 950;
  letter-spacing: -0.03em;
}

.content-card p {
  margin: 0 0 16px;
  color: #374151;
}

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

.related-card {
  overflow: hidden;
  border: 1px solid rgba(229, 231, 235, 0.92);
  border-radius: 20px;
  background: #fff;
}

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

.related-card h3 {
  margin: 0;
  padding: 10px 12px 12px;
  font-size: 14px;
  line-height: 1.35;
  font-weight: 900;
}

.site-footer {
  margin-top: 30px;
  background: #111827;
  color: #e5e7eb;
}

.footer-inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 32px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.footer-links {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}

.empty-state {
  display: none;
  padding: 28px;
  border-radius: 22px;
  background: #fff7ed;
  color: #92400e;
  font-weight: 900;
}

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

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

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

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

  .mobile-toggle {
    display: block;
  }

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

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

  .hero-content {
    grid-template-columns: 1fr;
    padding-top: 54px;
    padding-bottom: 74px;
  }

  .hero-card {
    max-width: 390px;
  }

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

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

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

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

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

  .rank-item .button {
    grid-column: 2 / -1;
    justify-self: start;
  }
}

@media (max-width: 620px) {
  .header-inner {
    padding-inline: 16px;
  }

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

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

  .section {
    padding-inline: 16px;
  }

  .movie-body {
    padding: 13px;
  }

  .movie-body h3 {
    font-size: 16px;
  }

  .movie-summary {
    display: none;
  }

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

  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
  }
}
