:root {
  --bg: #f8fafc;
  --panel: #ffffff;
  --text: #111827;
  --muted: #6b7280;
  --line: #e5e7eb;
  --amber: #d97706;
  --amber-dark: #92400e;
  --rose: #e11d48;
  --dark: #111827;
  --shadow: 0 18px 48px rgba(15, 23, 42, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background: var(--bg);
  font-family: Inter, "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  line-height: 1.6;
}

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

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: linear-gradient(90deg, #fffbeb 0%, #ffffff 48%, #fff7ed 100%);
  border-bottom: 1px solid rgba(217, 119, 6, 0.12);
  box-shadow: 0 8px 30px rgba(15, 23, 42, 0.08);
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.brand-icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  color: #ffffff;
  border-radius: 15px;
  background: linear-gradient(135deg, var(--amber), var(--amber-dark));
  box-shadow: 0 12px 28px rgba(146, 64, 14, 0.28);
  transition: transform 0.25s ease;
}

.brand:hover .brand-icon {
  transform: scale(1.06) rotate(-2deg);
}

.brand-text strong {
  display: block;
  font-size: 24px;
  line-height: 1.1;
  letter-spacing: -0.02em;
  background: linear-gradient(90deg, var(--amber-dark), var(--amber));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.brand-text em {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-link {
  position: relative;
  padding: 10px 0;
  color: #374151;
  font-weight: 600;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: 4px;
  height: 2px;
  border-radius: 99px;
  background: var(--amber);
  transition: right 0.22s ease;
}

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

.nav-link:hover::after,
.nav-link.active::after {
  right: 0;
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 12px;
  color: #374151;
  background: #fff7ed;
  font-size: 22px;
  cursor: pointer;
}

.mobile-panel {
  border-top: 1px solid var(--line);
  background: #ffffff;
}

.mobile-panel-inner {
  display: grid;
  gap: 8px;
  padding: 14px 0;
}

.mobile-link {
  display: block;
  padding: 10px 12px;
  border-radius: 12px;
  color: #374151;
  font-weight: 600;
}

.mobile-link:hover {
  color: var(--amber-dark);
  background: #fff7ed;
}

.hero-carousel {
  position: relative;
  min-height: 620px;
  overflow: hidden;
  color: #ffffff;
  background: radial-gradient(circle at 20% 20%, rgba(251, 191, 36, 0.40), transparent 32%), linear-gradient(135deg, #78350f 0%, #111827 58%, #4c0519 100%);
}

.hero-carousel::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.24;
  background-image: radial-gradient(circle at 1px 1px, rgba(255,255,255,0.25) 1px, transparent 0);
  background-size: 32px 32px;
}

.hero-slides {
  position: relative;
  min-height: 620px;
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) 420px;
  align-items: center;
  gap: 54px;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 64px 0 138px;
  opacity: 0;
  transform: translateX(32px);
  pointer-events: none;
  transition: opacity 0.55s ease, transform 0.55s ease;
}

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

.hero-backdrop {
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: 0.16;
  filter: blur(14px) saturate(1.2);
  transform: scale(1.08);
}

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

.eyebrow {
  display: inline-flex;
  margin-bottom: 18px;
  padding: 8px 14px;
  color: #fef3c7;
  border: 1px solid rgba(254, 243, 199, 0.28);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(12px);
  font-weight: 700;
}

.hero-content h1 {
  margin: 0 0 20px;
  font-size: clamp(42px, 7vw, 76px);
  line-height: 0.98;
  letter-spacing: -0.055em;
}

.hero-content p {
  max-width: 690px;
  margin: 0 0 22px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 19px;
}

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

.hero-tags span,
.tag-row span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 4px 10px;
  border-radius: 999px;
  color: #92400e;
  background: #fef3c7;
  font-size: 12px;
  font-weight: 700;
}

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

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

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

.btn.primary {
  color: #ffffff;
  background: linear-gradient(135deg, var(--amber), var(--rose));
  box-shadow: 0 16px 34px rgba(225, 29, 72, 0.28);
}

.btn.ghost {
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.32);
  background: rgba(255, 255, 255, 0.12);
}

.btn.light {
  color: #78350f;
  background: #fef3c7;
}

.hero-poster {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: 30px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.42);
  aspect-ratio: 2 / 2.8;
}

.hero-poster::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: inherit;
}

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

.hero-bottom {
  position: relative;
  z-index: 3;
  margin-top: -110px;
  padding-bottom: 30px;
}

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

.hero-dot {
  width: 34px;
  height: 6px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.34);
  cursor: pointer;
}

.hero-dot.active {
  width: 54px;
  background: #fbbf24;
}

.hero-mini-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.compact-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 18px;
  background: rgba(17, 24, 39, 0.48);
  backdrop-filter: blur(14px);
}

.compact-card img {
  width: 58px;
  height: 78px;
  flex: 0 0 auto;
  border-radius: 12px;
  object-fit: cover;
}

.compact-card strong {
  display: block;
  margin-bottom: 4px;
  color: #ffffff;
  font-size: 14px;
}

.compact-card em {
  display: block;
  color: rgba(255, 255, 255, 0.72);
  font-size: 12px;
  font-style: normal;
}

.page-main {
  padding: 54px 0;
}

.section {
  margin-bottom: 56px;
}

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

.section-head h1,
.section-head h2 {
  margin: 0 0 6px;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.15;
  letter-spacing: -0.035em;
}

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

.section-more {
  white-space: nowrap;
  color: var(--amber-dark);
  font-weight: 800;
}

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

.movie-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--panel);
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.07);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  border-color: rgba(217, 119, 6, 0.34);
  box-shadow: var(--shadow);
}

.poster-wrap {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 2 / 2.8;
  background: #111827;
}

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

.movie-card:hover .poster-wrap img {
  transform: scale(1.06);
}

.poster-year,
.poster-play {
  position: absolute;
  z-index: 2;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
}

.poster-year {
  top: 12px;
  left: 12px;
  padding: 5px 10px;
  color: #78350f;
  background: #fef3c7;
}

.poster-play {
  right: 12px;
  bottom: 12px;
  padding: 7px 12px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--amber), var(--rose));
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.25);
}

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

.movie-card-body h2 {
  margin: 0 0 8px;
  font-size: 19px;
  line-height: 1.25;
}

.movie-card-body h2 a:hover {
  color: var(--amber-dark);
}

.movie-meta {
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 13px;
}

.movie-card-body p {
  margin: 0 0 14px;
  color: #4b5563;
  font-size: 14px;
}

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

.category-tile {
  min-height: 154px;
  padding: 20px;
  border: 1px solid rgba(217, 119, 6, 0.18);
  border-radius: 24px;
  background: linear-gradient(135deg, #ffffff, #fff7ed);
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.07);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.category-tile h2 {
  margin: 0 0 10px;
  color: var(--amber-dark);
}

.category-tile p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

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

.rank-item {
  display: grid;
  grid-template-columns: 54px 78px minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: #ffffff;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
}

.rank-num {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--amber), var(--rose));
  font-weight: 900;
}

.rank-item img {
  width: 78px;
  height: 108px;
  border-radius: 14px;
  object-fit: cover;
}

.rank-info h2 {
  margin: 0 0 6px;
  font-size: 20px;
}

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

.search-panel {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 12px;
  margin-bottom: 24px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: #ffffff;
}

.search-input,
.search-select {
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 0 14px;
  color: var(--text);
  background: #f9fafb;
  font-size: 15px;
  outline: none;
}

.search-input:focus,
.search-select:focus {
  border-color: rgba(217, 119, 6, 0.55);
  box-shadow: 0 0 0 4px rgba(251, 191, 36, 0.18);
}

.detail-hero {
  color: #ffffff;
  background: radial-gradient(circle at top left, rgba(251, 191, 36, 0.36), transparent 32%), linear-gradient(135deg, #1f2937, #111827 58%, #4c0519);
}

.detail-wrap {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: 34px;
  padding: 52px 0;
}

.detail-poster {
  overflow: hidden;
  border-radius: 28px;
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.36);
  aspect-ratio: 2 / 2.8;
}

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

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 14px;
}

.breadcrumb a:hover {
  color: #fbbf24;
}

.detail-content h1 {
  margin: 0 0 16px;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.05;
  letter-spacing: -0.045em;
}

.detail-content .intro {
  margin: 0 0 22px;
  color: rgba(255, 255, 255, 0.84);
  font-size: 18px;
}

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 22px;
}

.detail-meta span {
  padding: 7px 12px;
  border-radius: 999px;
  color: #fef3c7;
  border: 1px solid rgba(254, 243, 199, 0.24);
  background: rgba(255, 255, 255, 0.10);
}

.player-section {
  padding-top: 46px;
}

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

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

.video-box video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000000;
}

.play-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  border: 0;
  color: #ffffff;
  background: radial-gradient(circle, rgba(0, 0, 0, 0.28), rgba(0, 0, 0, 0.68));
  cursor: pointer;
}

.play-overlay span {
  display: grid;
  place-items: center;
  width: 84px;
  height: 84px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--amber), var(--rose));
  box-shadow: 0 18px 44px rgba(225, 29, 72, 0.34);
  font-size: 28px;
  transform: translateX(2px);
}

.play-overlay.hide {
  display: none;
}

.article-panel {
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: #ffffff;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.06);
}

.article-panel h2 {
  margin: 0 0 12px;
  font-size: 26px;
}

.article-panel p {
  margin: 0 0 16px;
  color: #374151;
}

.no-results {
  display: none;
  padding: 24px;
  border-radius: 18px;
  color: var(--muted);
  background: #ffffff;
  text-align: center;
}

.no-results.show {
  display: block;
}

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

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 32px;
  padding: 44px 0;
}

.footer-logo {
  margin-bottom: 10px;
  color: #fbbf24;
  font-size: 22px;
  font-weight: 900;
}

.site-footer p {
  margin: 0;
  color: #9ca3af;
}

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

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

.footer-links a {
  color: #9ca3af;
}

.footer-links a:hover {
  color: #ffffff;
}

.footer-bottom {
  padding: 18px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: #9ca3af;
  text-align: center;
  font-size: 14px;
}

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

  .menu-toggle {
    display: inline-grid;
    place-items: center;
  }

  .hero-slide {
    grid-template-columns: 1fr 280px;
    gap: 28px;
  }

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

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

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

  .detail-wrap {
    grid-template-columns: 240px minmax(0, 1fr);
  }
}

@media (max-width: 760px) {
  .brand-text strong {
    font-size: 20px;
  }

  .hero-carousel,
  .hero-slides {
    min-height: 760px;
  }

  .hero-slide {
    grid-template-columns: 1fr;
    align-content: center;
    padding: 42px 0 210px;
  }

  .hero-poster {
    width: 220px;
    justify-self: center;
  }

  .hero-bottom {
    margin-top: -190px;
  }

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

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

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

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

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

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

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

  .detail-poster {
    width: 240px;
  }

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

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

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

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

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

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