:root {
  --amber-50: #fffbeb;
  --amber-100: #fef3c7;
  --amber-200: #fde68a;
  --amber-300: #fcd34d;
  --amber-400: #fbbf24;
  --amber-500: #f59e0b;
  --orange-500: #f97316;
  --orange-600: #ea580c;
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-500: #6b7280;
  --gray-700: #374151;
  --gray-800: #1f2937;
  --gray-900: #111827;
  --white: #ffffff;
  --shadow: 0 20px 40px rgba(146, 64, 14, 0.12);
  --soft-shadow: 0 12px 30px rgba(17, 24, 39, 0.08);
  --radius-xl: 24px;
  --radius-lg: 18px;
  --radius-md: 14px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--gray-800);
  background: linear-gradient(180deg, var(--amber-50) 0%, #ffffff 42%, #fff7ed 100%);
}

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

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

button,
input {
  font: inherit;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.86);
  border-bottom: 1px solid rgba(251, 191, 36, 0.24);
  backdrop-filter: blur(18px);
}

.header-inner {
  min-height: 74px;
  display: flex;
  align-items: center;
  gap: 26px;
}

.logo,
.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 26px;
  font-weight: 900;
  letter-spacing: -0.04em;
  background: linear-gradient(90deg, #d97706, #ea580c);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.logo-mark {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(135deg, var(--amber-500), var(--orange-600));
  box-shadow: 0 12px 24px rgba(249, 115, 22, 0.28);
  font-size: 16px;
}

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

.site-nav a {
  font-weight: 700;
  color: var(--gray-700);
  transition: color 0.25s ease;
}

.site-nav a:hover {
  color: var(--orange-600);
}

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

.header-search input,
.local-filter input,
.search-box input {
  border: 2px solid var(--amber-200);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  color: var(--gray-800);
  padding: 11px 16px;
  outline: none;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

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

.header-search input:focus,
.local-filter input:focus,
.search-box input:focus {
  border-color: var(--amber-400);
  box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.12);
}

.header-search button,
.primary-btn,
.secondary-btn,
.search-box button {
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 800;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.header-search button,
.primary-btn,
.search-box button {
  color: #fff;
  background: linear-gradient(90deg, var(--amber-500), var(--orange-500));
  padding: 11px 20px;
  box-shadow: 0 12px 24px rgba(249, 115, 22, 0.24);
}

.secondary-btn {
  color: var(--gray-800);
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(245, 158, 11, 0.28);
  padding: 11px 20px;
}

.header-search button:hover,
.primary-btn:hover,
.search-box button:hover,
.secondary-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 28px rgba(249, 115, 22, 0.30);
}

.menu-toggle {
  display: none;
  margin-left: auto;
  border: 0;
  background: transparent;
  font-size: 28px;
  color: var(--gray-800);
}

.hero {
  position: relative;
  min-height: 690px;
  overflow: hidden;
  background: radial-gradient(circle at 20% 15%, rgba(251, 191, 36, 0.34), transparent 34%), radial-gradient(circle at 84% 18%, rgba(249, 115, 22, 0.22), transparent 34%), linear-gradient(135deg, #fff7ed 0%, #fffbeb 45%, #ffffff 100%);
}

.hero::before {
  content: "";
  position: absolute;
  inset: auto -12% -38% -12%;
  height: 360px;
  background: linear-gradient(90deg, rgba(245, 158, 11, 0.16), rgba(249, 115, 22, 0.10));
  filter: blur(18px);
  transform: rotate(-3deg);
}

.hero-slider {
  position: relative;
  min-height: 690px;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.7s ease, transform 0.7s ease;
  transform: translateY(18px);
}

.hero-slide.is-active {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.hero-grid {
  position: relative;
  min-height: 690px;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.72fr);
  gap: 44px;
  align-items: center;
  padding: 70px 0 92px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--orange-600);
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero h1 {
  margin: 0;
  font-size: clamp(42px, 7vw, 78px);
  line-height: 0.98;
  letter-spacing: -0.07em;
  color: var(--gray-900);
}

.hero h1 span {
  display: block;
  background: linear-gradient(90deg, #d97706, var(--orange-600));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

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

.hero-text p {
  max-width: 700px;
  color: #4b5563;
  font-size: 18px;
  line-height: 1.9;
}

.hero-actions,
.detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin: 28px 0;
}

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

.hero-tags a,
.tag-row span,
.info-pill {
  border-radius: 999px;
  padding: 7px 12px;
  background: rgba(255, 255, 255, 0.76);
  border: 1px solid rgba(245, 158, 11, 0.20);
  color: #92400e;
  font-size: 13px;
  font-weight: 800;
}

.hero-visual {
  position: relative;
  display: grid;
  place-items: center;
}

.hero-poster {
  position: relative;
  width: min(390px, 100%);
  border-radius: 32px;
  overflow: hidden;
  box-shadow: 0 36px 80px rgba(146, 64, 14, 0.28);
  aspect-ratio: 2 / 2.8;
  background: linear-gradient(135deg, #fef3c7, #fed7aa);
}

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

.hero-poster::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 35%, rgba(0, 0, 0, 0.62) 100%);
}

.hero-poster-info {
  position: absolute;
  inset: auto 22px 22px 22px;
  z-index: 2;
  color: #fff;
}

.hero-poster-info strong {
  display: block;
  font-size: 22px;
  line-height: 1.3;
}

.hero-poster-info span {
  display: inline-flex;
  margin-top: 8px;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(245, 158, 11, 0.95);
  font-size: 13px;
  font-weight: 800;
}

.hero-mini-card {
  position: absolute;
  right: 0;
  bottom: 42px;
  width: 210px;
  border-radius: 22px;
  padding: 18px;
  color: var(--gray-800);
  background: rgba(255, 255, 255, 0.90);
  border: 1px solid rgba(245, 158, 11, 0.20);
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
}

.hero-mini-card b {
  display: block;
  margin-bottom: 6px;
  color: var(--orange-600);
}

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

.hero-dot {
  width: 12px;
  height: 12px;
  border-radius: 999px;
  border: 0;
  cursor: pointer;
  background: rgba(146, 64, 14, 0.24);
  transition: width 0.25s ease, background 0.25s ease;
}

.hero-dot.is-active {
  width: 34px;
  background: linear-gradient(90deg, var(--amber-500), var(--orange-500));
}

.main-section,
.page-section {
  padding: 70px 0;
}

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

.section-head h2,
.page-title h1,
.detail-text h1 {
  margin: 0;
  color: var(--gray-900);
  font-size: clamp(30px, 4vw, 46px);
  letter-spacing: -0.05em;
}

.section-head p,
.page-title p {
  max-width: 680px;
  margin: 8px 0 0;
  color: var(--gray-500);
  line-height: 1.8;
}

.section-more {
  flex: 0 0 auto;
  color: var(--orange-600);
  font-weight: 900;
}

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

.movie-card {
  overflow: hidden;
  border-radius: var(--radius-xl);
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(245, 158, 11, 0.14);
  box-shadow: var(--soft-shadow);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.movie-card:hover {
  transform: translateY(-7px);
  border-color: rgba(245, 158, 11, 0.38);
  box-shadow: var(--shadow);
}

.poster-link {
  position: relative;
  display: block;
  aspect-ratio: 2 / 2.75;
  overflow: hidden;
  background: linear-gradient(135deg, #fef3c7, #fed7aa);
}

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

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

.type-badge,
.score-badge {
  position: absolute;
  top: 12px;
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 900;
}

.type-badge {
  left: 12px;
  color: #fff;
  background: rgba(17, 24, 39, 0.70);
  backdrop-filter: blur(10px);
}

.score-badge {
  right: 12px;
  color: #78350f;
  background: rgba(254, 243, 199, 0.95);
}

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

.movie-card-body h3,
.ranking-item h3,
.related-card h3 {
  margin: 0 0 8px;
  font-size: 18px;
  color: var(--gray-900);
  line-height: 1.35;
}

.movie-card-body p,
.ranking-item p,
.related-card p {
  margin: 0 0 12px;
  color: var(--gray-500);
  line-height: 1.65;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.movie-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  color: #92400e;
  font-size: 13px;
  font-weight: 800;
  margin-bottom: 12px;
}

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

.category-card {
  position: relative;
  min-height: 174px;
  overflow: hidden;
  border-radius: var(--radius-xl);
  padding: 22px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.92), rgba(254, 243, 199, 0.82));
  border: 1px solid rgba(245, 158, 11, 0.18);
  box-shadow: var(--soft-shadow);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

.category-card strong {
  display: block;
  margin-bottom: 10px;
  color: var(--gray-900);
  font-size: 21px;
}

.category-card p {
  margin: 0;
  color: var(--gray-500);
  line-height: 1.7;
}

.category-card span {
  position: absolute;
  right: 18px;
  bottom: 16px;
  color: var(--orange-600);
  font-weight: 900;
}

.page-title {
  padding: 58px 0 28px;
  text-align: center;
}

.local-filter,
.search-box {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin: 20px auto 36px;
}

.local-filter input,
.search-box input {
  width: min(560px, 100%);
}

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

.ranking-item {
  display: grid;
  grid-template-columns: 56px 96px minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  padding: 16px;
  border-radius: var(--radius-xl);
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(245, 158, 11, 0.14);
  box-shadow: var(--soft-shadow);
}

.rank-num {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: #fff;
  font-weight: 900;
  background: linear-gradient(135deg, var(--amber-500), var(--orange-500));
}

.rank-cover {
  display: block;
  aspect-ratio: 2 / 2.75;
  border-radius: 14px;
  overflow: hidden;
  background: linear-gradient(135deg, #fef3c7, #fed7aa);
}

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

.detail-shell {
  padding: 44px 0 78px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-bottom: 22px;
  color: var(--gray-500);
  font-weight: 800;
}

.breadcrumb a {
  color: var(--orange-600);
}

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

.player-card,
.detail-panel,
.related-panel {
  border-radius: var(--radius-xl);
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(245, 158, 11, 0.14);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.video-shell {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #111827;
}

.video-shell video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  z-index: 1;
}

.play-overlay {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: grid;
  place-items: center;
  border: 0;
  cursor: pointer;
  color: #fff;
  background: linear-gradient(180deg, rgba(17, 24, 39, 0.18), rgba(17, 24, 39, 0.68));
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.play-overlay span {
  width: 82px;
  height: 82px;
  display: grid;
  place-items: center;
  padding-left: 6px;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.95), rgba(234, 88, 12, 0.95));
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.32);
  font-size: 36px;
}

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

.detail-text {
  padding: 28px;
}

.detail-text p {
  color: #4b5563;
  line-height: 1.9;
}

.info-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 18px 0;
}

.detail-panel {
  padding: 26px;
  margin-top: 24px;
}

.detail-panel h2,
.related-panel h2 {
  margin: 0 0 14px;
  color: var(--gray-900);
  font-size: 24px;
  letter-spacing: -0.03em;
}

.detail-panel p {
  margin: 0 0 18px;
  color: #4b5563;
  line-height: 1.95;
}

.related-panel {
  padding: 18px;
}

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

.related-card {
  display: grid;
  grid-template-columns: 82px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  padding: 10px;
  border-radius: var(--radius-lg);
  background: rgba(255, 251, 235, 0.72);
  border: 1px solid rgba(245, 158, 11, 0.12);
}

.related-card img {
  width: 82px;
  height: 112px;
  object-fit: cover;
  border-radius: 12px;
  background: linear-gradient(135deg, #fef3c7, #fed7aa);
}

.site-footer {
  color: #fffbeb;
  background: linear-gradient(135deg, #92400e, #7c2d12);
  padding: 56px 0 24px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.7fr 0.7fr;
  gap: 36px;
}

.footer-logo {
  color: #fff;
  background: none;
  -webkit-background-clip: initial;
  background-clip: initial;
}

.site-footer p {
  max-width: 520px;
  color: #fde68a;
  line-height: 1.8;
}

.site-footer h2 {
  margin: 0 0 14px;
  font-size: 17px;
  color: #fff;
}

.site-footer a:not(.footer-logo) {
  display: block;
  margin: 8px 0;
  color: #fde68a;
}

.footer-bottom {
  width: min(1180px, calc(100% - 32px));
  margin: 36px auto 0;
  padding-top: 22px;
  border-top: 1px solid rgba(254, 243, 199, 0.18);
  color: #fde68a;
  text-align: center;
}

.empty-state {
  display: none;
  padding: 30px;
  border-radius: var(--radius-xl);
  text-align: center;
  color: var(--gray-500);
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(245, 158, 11, 0.14);
}

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

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

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

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

@media (max-width: 820px) {
  .header-inner {
    min-height: 68px;
  }

  .menu-toggle {
    display: block;
  }

  .site-nav {
    position: absolute;
    left: 16px;
    right: 16px;
    top: 72px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 12px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid rgba(245, 158, 11, 0.20);
    box-shadow: var(--shadow);
  }

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

  .site-nav a {
    padding: 13px 14px;
    border-radius: 14px;
  }

  .site-nav a:hover {
    background: var(--amber-50);
  }

  .hero,
  .hero-slider,
  .hero-grid {
    min-height: auto;
  }

  .hero-slide {
    position: relative;
    display: none;
    transform: none;
  }

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

  .hero-grid {
    grid-template-columns: 1fr;
    padding: 44px 0 92px;
  }

  .hero-mini-card {
    right: 12px;
    bottom: 18px;
  }

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

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

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

@media (max-width: 560px) {
  .container {
    width: min(100% - 22px, 1180px);
  }

  .logo {
    font-size: 22px;
  }

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

  .ranking-item {
    grid-template-columns: 42px 74px minmax(0, 1fr);
    gap: 12px;
    padding: 12px;
  }

  .rank-num {
    width: 38px;
    height: 38px;
  }

  .detail-text,
  .detail-panel {
    padding: 20px;
  }

  .local-filter,
  .search-box {
    flex-direction: column;
  }
}
