:root {
  --amber: #d97706;
  --amber-dark: #b45309;
  --orange: #ea580c;
  --ink: #111827;
  --muted: #6b7280;
  --soft: #fff7ed;
  --paper: #ffffff;
  --line: #e5e7eb;
  --shadow: 0 18px 45px rgba(17, 24, 39, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  color: var(--ink);
  background: linear-gradient(180deg, #fff7ed 0%, #ffffff 35%, #fff7ed 100%);
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: linear-gradient(90deg, rgba(255, 251, 235, 0.95), rgba(255, 237, 213, 0.95));
  border-bottom: 1px solid rgba(251, 191, 36, 0.25);
  backdrop-filter: blur(16px);
  box-shadow: 0 10px 30px rgba(17, 24, 39, 0.08);
}

.navbar {
  max-width: 1280px;
  height: 72px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 26px;
  font-weight: 800;
  background: linear-gradient(90deg, var(--amber), var(--orange));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  white-space: nowrap;
}

.brand-icon {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--amber), var(--orange));
  box-shadow: 0 10px 20px rgba(217, 119, 6, 0.28);
  font-size: 16px;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 22px;
}

.nav-menu > a,
.dropdown > button {
  border: 0;
  background: transparent;
  color: #374151;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: color 0.2s ease;
}

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

.dropdown {
  position: relative;
}

.dropdown-panel {
  position: absolute;
  top: calc(100% + 14px);
  left: 0;
  min-width: 180px;
  padding: 10px;
  border-radius: 16px;
  background: #ffffff;
  box-shadow: var(--shadow);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: all 0.2s ease;
}

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

.dropdown-panel a {
  display: block;
  padding: 10px 12px;
  border-radius: 10px;
  color: #374151;
}

.dropdown-panel a:hover {
  color: var(--amber);
  background: #fffbeb;
}

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

.nav-search input,
.large-search input,
.filter-input,
.filter-select {
  height: 42px;
  border: 1px solid #f3d7a6;
  border-radius: 999px;
  background: #ffffff;
  padding: 0 16px;
  color: var(--ink);
  outline: none;
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.nav-search input {
  width: 230px;
}

.nav-search input:focus,
.large-search input:focus,
.filter-input:focus,
.filter-select:focus {
  border-color: var(--amber);
  box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.18);
}

.nav-search button,
.large-search button {
  height: 42px;
  border: 0;
  border-radius: 999px;
  padding: 0 18px;
  color: #ffffff;
  font-weight: 800;
  background: linear-gradient(90deg, var(--amber), var(--orange));
  cursor: pointer;
  box-shadow: 0 8px 18px rgba(217, 119, 6, 0.24);
}

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

.hero {
  position: relative;
  height: 70vh;
  min-height: 560px;
  overflow: hidden;
  background: #111827;
}

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

.hero-slide {
  opacity: 0;
  transition: opacity 1s ease;
  pointer-events: none;
}

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

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.02);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.84) 0%, rgba(0, 0, 0, 0.58) 48%, rgba(0, 0, 0, 0.08) 100%);
}

.hero-content {
  max-width: 1280px;
  width: 100%;
  margin: 0 auto;
  padding: 0 24px;
}

.hero-content > * {
  max-width: 720px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  color: #fbbf24;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.eyebrow.dark {
  color: var(--amber);
}

.hero h1 {
  margin: 0 0 18px;
  color: #ffffff;
  font-size: clamp(42px, 7vw, 78px);
  line-height: 1.02;
  font-weight: 900;
  letter-spacing: -0.04em;
}

.hero p {
  margin: 0 0 24px;
  color: #e5e7eb;
  font-size: 19px;
  line-height: 1.8;
}

.hero-meta,
.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 28px;
}

.hero-meta span,
.detail-meta span {
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  padding: 6px 12px;
  color: #f9fafb;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(12px);
}

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

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

.primary-btn {
  color: #ffffff;
  background: linear-gradient(90deg, var(--amber), var(--orange));
  box-shadow: 0 16px 30px rgba(217, 119, 6, 0.36);
}

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

.ghost-btn {
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.38);
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(12px);
}

.hero-arrow {
  position: absolute;
  top: 50%;
  z-index: 4;
  width: 52px;
  height: 52px;
  border: 0;
  border-radius: 999px;
  color: #ffffff;
  font-size: 42px;
  line-height: 1;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(12px);
  cursor: pointer;
  transform: translateY(-50%);
}

.hero-prev {
  left: 24px;
}

.hero-next {
  right: 24px;
}

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

.hero-dot {
  width: 12px;
  height: 12px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: width 0.2s ease, background 0.2s ease;
}

.hero-dot.active {
  width: 36px;
  background: #ffffff;
}

.section,
.detail-content-wrap {
  max-width: 1280px;
  margin: 0 auto;
  padding: 64px 24px;
}

.wide-section {
  max-width: 1280px;
}

.intro-panel,
.tinted-section,
.tools-panel,
.search-panel {
  border-radius: 28px;
  background: linear-gradient(90deg, rgba(255, 247, 237, 0.96), rgba(255, 237, 213, 0.96));
  box-shadow: var(--shadow);
}

.intro-panel {
  margin-top: 56px;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  align-items: center;
  gap: 32px;
}

.intro-panel h2,
.section-heading h2,
.page-hero h1,
.detail-intro h1 {
  margin: 0;
  color: var(--ink);
  font-weight: 900;
  letter-spacing: -0.03em;
}

.intro-panel h2,
.section-heading h2 {
  font-size: clamp(28px, 4vw, 42px);
}

.intro-panel p,
.page-hero p {
  color: #4b5563;
  font-size: 18px;
  line-height: 1.8;
}

.large-search {
  display: flex;
  gap: 10px;
}

.large-search input {
  flex: 1;
  min-width: 0;
  height: 52px;
}

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

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

.section-heading a {
  color: var(--amber);
  font-weight: 900;
}

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

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

.movie-card {
  overflow: hidden;
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 10px 28px rgba(17, 24, 39, 0.10);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 55px rgba(17, 24, 39, 0.18);
}

.movie-card-link {
  display: block;
  height: 100%;
}

.movie-cover {
  position: relative;
  margin: 0;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: linear-gradient(135deg, #fef3c7, #fed7aa);
}

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

.movie-card:hover .movie-cover img {
  transform: scale(1.06);
  filter: brightness(0.82);
}

.movie-category,
.rank-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  border-radius: 999px;
  padding: 5px 10px;
  color: #ffffff;
  font-size: 12px;
  font-weight: 900;
  background: linear-gradient(90deg, var(--amber), var(--orange));
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.24);
}

.rank-badge {
  right: auto;
  left: 12px;
}

.play-hover {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(14px);
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.86);
  transition: all 0.25s ease;
}

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

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

.movie-card-body h3 {
  margin: 0 0 9px;
  font-size: 19px;
  line-height: 1.35;
  transition: color 0.2s ease;
}

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

.movie-card-body p {
  min-height: 46px;
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
}

.movie-meta {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  color: #6b7280;
  font-size: 14px;
}

.card-featured {
  position: relative;
  min-height: 360px;
}

.card-featured .movie-cover {
  height: 100%;
  aspect-ratio: auto;
}

.card-featured .movie-card-body {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 28px;
  color: #ffffff;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.86), rgba(0, 0, 0, 0.04));
}

.card-featured .movie-card-body h3 {
  color: #ffffff;
  font-size: 25px;
}

.card-featured .movie-card-body p,
.card-featured .movie-meta {
  color: #e5e7eb;
}

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

.category-card,
.category-overview-card a {
  display: block;
  overflow: hidden;
  border-radius: 22px;
  background: #ffffff;
  box-shadow: 0 12px 32px rgba(17, 24, 39, 0.10);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

.category-card img {
  width: 100%;
  height: 128px;
  object-fit: cover;
}

.category-card span,
.category-overview-body h2 {
  display: block;
  padding: 16px 16px 0;
  font-size: 20px;
  font-weight: 900;
}

.category-card p,
.category-overview-body p {
  margin: 0;
  padding: 10px 16px 18px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
}

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

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

.rank-item {
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 10px 24px rgba(17, 24, 39, 0.08);
  overflow: hidden;
}

.rank-link {
  display: grid;
  grid-template-columns: 58px 130px 1fr;
  align-items: center;
  gap: 16px;
  padding: 12px;
}

.rank-number {
  color: var(--amber);
  font-size: 22px;
  font-weight: 900;
  text-align: center;
}

.rank-link img {
  width: 130px;
  height: 74px;
  border-radius: 12px;
  object-fit: cover;
  background: #fef3c7;
}

.rank-content strong,
.rank-content em,
.rank-content small {
  display: block;
}

.rank-content strong {
  font-size: 18px;
  margin-bottom: 4px;
}

.rank-content em {
  color: #4b5563;
  font-style: normal;
  line-height: 1.55;
}

.rank-content small {
  margin-top: 6px;
  color: #9ca3af;
}

.page-main {
  min-height: 65vh;
}

.page-hero {
  max-width: 1280px;
  margin: 0 auto;
  padding: 72px 24px 20px;
}

.small-hero h1 {
  font-size: clamp(38px, 6vw, 64px);
}

.crumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
  color: #f59e0b;
  font-weight: 800;
}

.small-hero .crumbs {
  color: var(--amber);
}

.tools-panel {
  display: flex;
  gap: 16px;
  padding-top: 28px;
  padding-bottom: 28px;
}

.filter-input {
  flex: 1;
  min-width: 0;
}

.filter-select {
  min-width: 220px;
}

.search-summary {
  margin-bottom: 24px;
  color: #4b5563;
  font-weight: 800;
}

.category-thumbs {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2px;
  height: 170px;
  background: #fef3c7;
}

.category-thumbs img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.category-overview-body span {
  display: inline-block;
  margin: 0 16px 18px;
  color: var(--amber);
  font-weight: 900;
}

.detail-hero {
  position: relative;
  overflow: hidden;
  min-height: 520px;
  color: #ffffff;
  background: #111827;
}

.detail-backdrop {
  position: absolute;
  inset: 0;
}

.detail-backdrop img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(8px) brightness(0.46);
  transform: scale(1.08);
}

.detail-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.78), rgba(0, 0, 0, 0.34));
}

.detail-hero-inner {
  position: relative;
  z-index: 2;
  max-width: 1280px;
  margin: 0 auto;
  padding: 70px 24px;
  display: grid;
  grid-template-columns: 320px 1fr;
  align-items: center;
  gap: 40px;
}

.detail-poster {
  overflow: hidden;
  border-radius: 24px;
  box-shadow: 0 26px 60px rgba(0, 0, 0, 0.38);
  aspect-ratio: 16 / 10;
}

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

.detail-intro h1 {
  color: #ffffff;
  font-size: clamp(38px, 6vw, 70px);
}

.detail-one-line {
  max-width: 820px;
  color: #e5e7eb;
  font-size: 19px;
  line-height: 1.75;
}

.player-card {
  overflow: hidden;
  border-radius: 26px;
  background: #000000;
  box-shadow: var(--shadow);
}

.video-shell {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #000000;
}

.video-shell video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  background: #000000;
}

.player-overlay {
  position: absolute;
  inset: 0;
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  color: #ffffff;
  background: rgba(0, 0, 0, 0.26);
  cursor: pointer;
}

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

.player-start {
  width: 88px;
  height: 88px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-size: 42px;
  text-indent: 6px;
  background: linear-gradient(135deg, var(--amber), var(--orange));
  box-shadow: 0 20px 50px rgba(217, 119, 6, 0.42);
}

.detail-grid {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 28px;
  padding-left: 0;
  padding-right: 0;
}

.detail-main-card,
.detail-side-card {
  border-radius: 24px;
  background: #ffffff;
  padding: 32px;
  box-shadow: 0 12px 32px rgba(17, 24, 39, 0.10);
}

.detail-main-card h2,
.detail-side-card h2 {
  margin: 0 0 18px;
  font-size: 28px;
}

.detail-main-card p {
  color: #374151;
  font-size: 17px;
  line-height: 1.9;
}

.lead-text {
  color: #111827 !important;
  font-weight: 800;
}

dl {
  display: grid;
  grid-template-columns: 74px 1fr;
  gap: 12px 14px;
  margin: 0 0 24px;
}

dt {
  color: #9ca3af;
  font-weight: 800;
}

dd {
  margin: 0;
  color: #374151;
}

dd a {
  color: var(--amber);
  font-weight: 900;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag-list span {
  border-radius: 999px;
  padding: 7px 11px;
  color: #92400e;
  background: #fffbeb;
  font-weight: 800;
  font-size: 13px;
}

.site-footer {
  margin-top: 70px;
  color: #e5e7eb;
  background: linear-gradient(90deg, #111827, #1f2937);
}

.footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 52px 24px;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 44px;
}

.footer-inner p {
  max-width: 560px;
  color: #d1d5db;
  line-height: 1.8;
}

.footer-inner h2 {
  margin: 0 0 16px;
  color: #fbbf24;
  font-size: 18px;
}

.footer-inner ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.footer-inner a:hover {
  color: #fbbf24;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding: 20px 24px;
  text-align: center;
  color: #9ca3af;
}

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

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

  .detail-hero-inner,
  .detail-grid,
  .intro-panel {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 860px) {
  .navbar {
    height: auto;
    min-height: 68px;
    flex-wrap: wrap;
  }

  .nav-toggle {
    display: block;
  }

  .nav-menu {
    display: none;
    width: 100%;
    padding: 0 0 18px;
    flex-direction: column;
    align-items: stretch;
  }

  .nav-menu.open {
    display: flex;
  }

  .dropdown-panel {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    margin-top: 8px;
  }

  .nav-search,
  .large-search,
  .tools-panel {
    flex-direction: column;
    align-items: stretch;
  }

  .nav-search input,
  .filter-select {
    width: 100%;
  }

  .hero {
    min-height: 620px;
  }

  .hero-overlay {
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.86), rgba(0, 0, 0, 0.28));
    align-items: flex-end;
    padding-bottom: 84px;
  }

  .hero-arrow {
    display: none;
  }

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

@media (max-width: 640px) {
  .brand {
    font-size: 21px;
  }

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

  .section,
  .page-hero,
  .detail-content-wrap {
    padding-left: 16px;
    padding-right: 16px;
  }

  .rank-link {
    grid-template-columns: 42px 92px 1fr;
    gap: 10px;
  }

  .rank-link img {
    width: 92px;
    height: 58px;
  }

  .rank-content em {
    display: none;
  }

  .detail-hero-inner {
    padding: 48px 16px;
  }

  .detail-main-card,
  .detail-side-card {
    padding: 22px;
  }
}
