* {
  box-sizing: border-box;
}

:root {
  --bg: #fff7ed;
  --panel: #ffffff;
  --text: #111827;
  --muted: #6b7280;
  --line: #fde68a;
  --amber: #f59e0b;
  --orange: #f97316;
  --dark: #111827;
  --shadow: 0 18px 45px rgba(127, 65, 15, 0.13);
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(251, 191, 36, 0.2), transparent 34rem),
    linear-gradient(180deg, #fff7ed 0%, #fff 35%, #fffaf0 100%);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 2px solid #fde68a;
  background: linear-gradient(90deg, rgba(255, 251, 235, 0.96), rgba(255, 247, 237, 0.96), rgba(255, 251, 235, 0.96));
  backdrop-filter: blur(14px);
  box-shadow: 0 10px 28px rgba(146, 64, 14, 0.12);
}

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

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

.logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 230px;
}

.logo-mark {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(135deg, #fbbf24, #f97316);
  box-shadow: 0 14px 24px rgba(217, 119, 6, 0.32);
}

.logo-title {
  display: block;
  font-size: 25px;
  line-height: 1.08;
  font-weight: 900;
  letter-spacing: -0.02em;
  color: transparent;
  background: linear-gradient(90deg, #d97706, #ea580c);
  -webkit-background-clip: text;
  background-clip: text;
}

.logo-subtitle {
  display: block;
  margin-top: 3px;
  font-size: 12px;
  color: #6b7280;
}

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

.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 11px 15px;
  border-radius: 13px;
  color: #374151;
  font-weight: 700;
  transition: all 0.22s ease;
}

.nav-link:hover,
.nav-link.active {
  color: #fff;
  background: linear-gradient(90deg, #fbbf24, #fb923c);
  box-shadow: 0 12px 24px rgba(217, 119, 6, 0.22);
}

.mobile-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 12px;
  color: #374151;
  background: #fffbeb;
  cursor: pointer;
}

.nav-pills {
  display: flex;
  gap: 10px;
  padding: 0 0 12px;
  overflow-x: auto;
}

.nav-pill {
  flex: 0 0 auto;
  padding: 7px 13px;
  border: 1px solid #fde68a;
  border-radius: 999px;
  color: #374151;
  background: #fff;
  box-shadow: 0 5px 14px rgba(120, 53, 15, 0.08);
  transition: all 0.22s ease;
  font-size: 14px;
}

.nav-pill:hover {
  color: #fff;
  border-color: transparent;
  background: linear-gradient(90deg, #fbbf24, #fb923c);
}

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

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 900ms ease;
}

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

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

.hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.035);
  filter: saturate(1.06);
}

.hero-slide.is-active .hero-image img {
  animation: heroZoom 9s ease forwards;
}

.hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.78), rgba(0, 0, 0, 0.48), rgba(0, 0, 0, 0.08)),
    linear-gradient(0deg, rgba(0, 0, 0, 0.55), transparent 48%);
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(1180px, calc(100% - 32px));
  min-height: 650px;
  margin: 0 auto;
  display: flex;
  align-items: center;
}

.hero-copy {
  max-width: 720px;
  color: #fff;
}

.hero-label,
.section-kicker,
.card-badge,
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(90deg, #f59e0b, #f97316);
  box-shadow: 0 10px 25px rgba(249, 115, 22, 0.28);
}

.hero-label {
  padding: 9px 16px;
  margin-bottom: 18px;
  font-size: 14px;
  font-weight: 800;
}

.hero h1,
.hero h2 {
  margin: 0 0 18px;
  font-size: clamp(42px, 7vw, 72px);
  line-height: 0.98;
  letter-spacing: -0.05em;
}

.hero-desc {
  margin: 0 0 25px;
  max-width: 660px;
  color: #e5e7eb;
  font-size: clamp(18px, 2.2vw, 24px);
  line-height: 1.65;
}

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

.hero-chip {
  padding: 8px 14px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 999px;
  color: #fff;
  background: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(8px);
  font-size: 14px;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 44px;
  padding: 12px 19px;
  border: 0;
  border-radius: 999px;
  font-weight: 900;
  cursor: pointer;
  transition: all 0.22s ease;
}

.btn-primary {
  color: #fff;
  background: linear-gradient(90deg, #f59e0b, #f97316);
  box-shadow: 0 18px 32px rgba(249, 115, 22, 0.28);
}

.btn-primary:hover {
  transform: translateY(-2px);
  background: linear-gradient(90deg, #d97706, #ea580c);
  box-shadow: 0 20px 42px rgba(249, 115, 22, 0.34);
}

.btn-ghost {
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(8px);
}

.btn-ghost:hover {
  background: rgba(0, 0, 0, 0.36);
}

.hero-control {
  position: absolute;
  z-index: 4;
  top: 50%;
  transform: translateY(-50%);
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: 999px;
  color: #fff;
  background: rgba(0, 0, 0, 0.52);
  cursor: pointer;
  transition: all 0.22s ease;
}

.hero-control:hover {
  background: rgba(0, 0, 0, 0.72);
}

.hero-prev {
  left: 18px;
}

.hero-next {
  right: 18px;
}

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

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

.hero-dot.is-active {
  width: 34px;
  background: #fff;
}

.main {
  padding: 48px 0 64px;
}

.section {
  margin-bottom: 64px;
}

.section.panel {
  padding: 34px;
  border-radius: 34px;
  background: linear-gradient(135deg, #eff6ff, #ecfeff);
  box-shadow: var(--shadow);
}

.section.panel-warm {
  background: linear-gradient(135deg, #fffbeb, #fff7ed);
}

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

.section-title-wrap {
  display: flex;
  align-items: center;
  gap: 14px;
}

.section-icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 15px;
  color: #fff;
  background: linear-gradient(135deg, #ef4444, #ec4899);
  box-shadow: 0 10px 24px rgba(239, 68, 68, 0.2);
}

.section-icon.blue {
  background: linear-gradient(135deg, #38bdf8, #06b6d4);
}

.section-icon.green {
  background: linear-gradient(135deg, #22c55e, #059669);
}

.section-icon.amber {
  background: linear-gradient(135deg, #f59e0b, #f97316);
}

.section h2,
.page-title {
  margin: 0;
  color: #111827;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.1;
  letter-spacing: -0.035em;
}

.section-desc,
.page-desc {
  margin: 8px 0 0;
  color: #6b7280;
  line-height: 1.75;
}

.more-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #d97706;
  font-weight: 900;
}

.more-link:hover {
  color: #b45309;
}

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

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

.movie-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 8px 22px rgba(17, 24, 39, 0.09);
  transition: all 0.25s ease;
}

.movie-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 24px 48px rgba(120, 53, 15, 0.18);
}

.card-media {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: linear-gradient(135deg, #451a03, #f97316);
}

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

.movie-card:hover .card-media img {
  transform: scale(1.09);
}

.card-badge {
  position: absolute;
  left: 12px;
  top: 12px;
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 800;
}

.card-year {
  position: absolute;
  right: 12px;
  bottom: 12px;
  padding: 5px 9px;
  border-radius: 9px;
  color: #fff;
  background: rgba(0, 0, 0, 0.72);
  font-size: 12px;
  font-weight: 800;
}

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

.card-title {
  margin: 0 0 8px;
  color: #111827;
  font-size: 18px;
  line-height: 1.35;
  transition: color 0.22s ease;
}

.movie-card:hover .card-title {
  color: #d97706;
}

.card-desc {
  margin: 0 0 13px;
  color: #4b5563;
  font-size: 14px;
  line-height: 1.65;
}

.line-clamp-2 {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.line-clamp-3 {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: auto;
}

.tag {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 4px 8px;
  border-radius: 999px;
  color: #4b5563;
  background: #f3f4f6;
  font-size: 12px;
}

.meta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 14px;
  margin: 0 0 12px;
  color: #6b7280;
  font-size: 13px;
}

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

.category-card {
  min-height: 178px;
  padding: 22px;
  border: 1px solid rgba(253, 230, 138, 0.9);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 10px 24px rgba(146, 64, 14, 0.08);
  transition: all 0.25s ease;
}

.category-card:hover {
  transform: translateY(-6px);
  border-color: transparent;
  background: linear-gradient(135deg, #f59e0b, #f97316);
  box-shadow: 0 22px 38px rgba(217, 119, 6, 0.24);
}

.category-card h2,
.category-card h3 {
  margin: 0 0 10px;
  color: #111827;
  font-size: 22px;
}

.category-card p {
  margin: 0;
  color: #6b7280;
  line-height: 1.7;
}

.category-card:hover h2,
.category-card:hover h3,
.category-card:hover p,
.category-card:hover .category-count {
  color: #fff;
}

.category-count {
  display: inline-flex;
  margin-top: 18px;
  color: #d97706;
  font-weight: 900;
}

.page-hero {
  position: relative;
  overflow: hidden;
  padding: 74px 0 54px;
  color: #fff;
  background:
    linear-gradient(135deg, rgba(120, 53, 15, 0.96), rgba(194, 65, 12, 0.92)),
    radial-gradient(circle at top right, rgba(251, 191, 36, 0.7), transparent 30rem);
}

.page-hero .page-title,
.page-hero .page-desc {
  color: #fff;
}

.page-hero .page-desc {
  max-width: 780px;
  color: #ffedd5;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
  color: #92400e;
  font-size: 14px;
  font-weight: 800;
}

.page-hero .breadcrumb {
  color: #ffedd5;
}

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

.filter-bar {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) repeat(3, minmax(130px, 180px));
  gap: 12px;
  margin-bottom: 24px;
  padding: 18px;
  border: 1px solid #fde68a;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 10px 24px rgba(146, 64, 14, 0.08);
}

.filter-input,
.filter-select {
  min-height: 46px;
  width: 100%;
  border: 1px solid #fcd34d;
  border-radius: 14px;
  padding: 0 14px;
  color: #111827;
  background: #fff;
  outline: none;
  font: inherit;
}

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

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

.rank-item {
  display: grid;
  grid-template-columns: 70px 160px 1fr auto;
  gap: 18px;
  align-items: center;
  min-height: 116px;
  padding: 14px;
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(17, 24, 39, 0.08);
  transition: all 0.22s ease;
}

.rank-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 36px rgba(120, 53, 15, 0.16);
}

.rank-no {
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  border-radius: 16px;
  color: #fff;
  background: linear-gradient(135deg, #f59e0b, #f97316);
  font-size: 22px;
  font-weight: 900;
}

.rank-thumb {
  width: 160px;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-radius: 15px;
  background: #92400e;
}

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

.rank-info h2,
.rank-info h3 {
  margin: 0 0 8px;
  color: #111827;
  font-size: 21px;
}

.rank-info p {
  margin: 0;
  color: #6b7280;
  line-height: 1.65;
}

.rank-meta {
  color: #d97706;
  font-weight: 900;
  white-space: nowrap;
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) 360px;
  gap: 28px;
  align-items: start;
}

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

.player-card {
  background: #000;
}

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

.video-shell video {
  width: 100%;
  height: 100%;
  display: block;
  background: #000;
}

.video-cover {
  position: absolute;
  inset: 0;
  z-index: 2;
  cursor: pointer;
  background: #000;
}

.video-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.78;
}

.play-layer {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: grid;
  place-items: center;
  color: #fff;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.48), rgba(0, 0, 0, 0.1));
  cursor: pointer;
}

.play-button {
  width: 82px;
  height: 82px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(135deg, #f59e0b, #f97316);
  box-shadow: 0 20px 44px rgba(249, 115, 22, 0.42);
  cursor: pointer;
  transition: all 0.22s ease;
}

.play-button:hover {
  transform: scale(1.07);
}

.video-shell.is-playing .video-cover,
.video-shell.is-playing .play-layer {
  display: none;
}

.player-title {
  padding: 18px 22px 22px;
  color: #fff;
  background: linear-gradient(180deg, #0f172a, #020617);
}

.player-title h1 {
  margin: 0 0 10px;
  font-size: clamp(26px, 4vw, 40px);
  line-height: 1.15;
}

.player-title p {
  margin: 0;
  color: #cbd5e1;
  line-height: 1.75;
}

.detail-card {
  padding: 28px;
}

.detail-card h2,
.side-card h2 {
  margin: 0 0 14px;
  color: #111827;
  font-size: 26px;
}

.detail-card p {
  color: #374151;
  line-height: 1.9;
}

.info-table {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 18px 0 26px;
}

.info-cell {
  padding: 14px;
  border: 1px solid #fde68a;
  border-radius: 16px;
  background: #fffbeb;
}

.info-label {
  display: block;
  margin-bottom: 5px;
  color: #92400e;
  font-size: 13px;
  font-weight: 900;
}

.info-value {
  color: #111827;
  font-weight: 800;
}

.side-card {
  padding: 20px;
}

.poster-card {
  overflow: hidden;
  border-radius: 22px;
  margin-bottom: 18px;
  background: #111827;
}

.poster-card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

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

.related-item {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 12px;
  align-items: center;
}

.related-thumb {
  overflow: hidden;
  aspect-ratio: 16 / 10;
  border-radius: 13px;
  background: #92400e;
}

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

.related-title {
  display: block;
  margin-bottom: 6px;
  color: #111827;
  font-weight: 900;
  line-height: 1.35;
}

.related-meta {
  color: #6b7280;
  font-size: 13px;
}

.site-footer {
  color: #d1d5db;
  background: linear-gradient(180deg, #111827, #020617);
}

.footer-inner {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 42px 0;
  display: grid;
  grid-template-columns: 1.3fr repeat(3, 1fr);
  gap: 28px;
}

.footer-title {
  margin: 0 0 12px;
  color: #fff;
  font-size: 22px;
  font-weight: 900;
}

.footer-text,
.footer-links a {
  color: #d1d5db;
  line-height: 1.8;
}

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

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

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

.empty-state {
  display: none;
  padding: 28px;
  border-radius: 18px;
  text-align: center;
  color: #6b7280;
  background: #fff;
}

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

@keyframes heroZoom {
  from {
    transform: scale(1.035);
  }
  to {
    transform: scale(1.11);
  }
}

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

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

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

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

  .logo {
    min-width: 0;
  }

  .logo-title {
    font-size: 21px;
  }

  .main-nav {
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 14px 16px 18px;
    border-top: 1px solid #fde68a;
    background: #fff;
    box-shadow: 0 18px 38px rgba(120, 53, 15, 0.16);
  }

  .site-header.nav-open .main-nav {
    display: flex;
  }

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

  .nav-pills {
    padding-bottom: 10px;
  }

  .hero,
  .hero-content {
    min-height: 590px;
  }

  .hero-control {
    display: none;
  }

  .hero h1,
  .hero h2 {
    font-size: 42px;
  }

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

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

  .rank-item {
    grid-template-columns: 48px 102px 1fr;
  }

  .rank-meta {
    grid-column: 3;
  }

  .rank-thumb {
    width: 102px;
  }

  .section.panel {
    padding: 22px;
  }

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

  .info-table {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 520px) {
  .header-inner,
  .nav-pills,
  .container,
  .footer-inner {
    width: min(100% - 24px, 1180px);
  }

  .logo-mark {
    width: 42px;
    height: 42px;
  }

  .logo-subtitle {
    display: none;
  }

  .hero,
  .hero-content {
    min-height: 540px;
  }

  .hero-copy {
    padding-top: 22px;
  }

  .hero-desc {
    font-size: 16px;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

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

  .rank-item {
    grid-template-columns: 42px 1fr;
  }

  .rank-thumb {
    display: none;
  }

  .rank-meta {
    grid-column: 2;
  }
}
