:root {
  --amber-50: #fffbeb;
  --amber-100: #fef3c7;
  --amber-500: #f59e0b;
  --amber-600: #d97706;
  --orange-500: #f97316;
  --orange-600: #ea580c;
  --yellow-500: #eab308;
  --rose-500: #f43f5e;
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-800: #1f2937;
  --gray-900: #111827;
  --white: #ffffff;
  --shadow-soft: 0 18px 45px rgba(15, 23, 42, 0.12);
  --shadow-card: 0 14px 30px rgba(15, 23, 42, 0.1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--gray-900);
  background: linear-gradient(180deg, var(--amber-50), #fff7ed 42%, #fefce8);
  line-height: 1.6;
}

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

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

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

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: linear-gradient(90deg, var(--amber-500), var(--yellow-500), var(--orange-500));
  box-shadow: 0 10px 30px rgba(217, 119, 6, 0.28);
}

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

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--white);
}

.brand-icon {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.22);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.25);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  color: var(--white);
  font-weight: 700;
}

.nav-links a {
  padding: 8px 0;
  opacity: 0.96;
}

.nav-links a:hover {
  color: var(--amber-100);
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.16);
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  margin: 5px auto;
  background: var(--white);
}

.hero {
  position: relative;
  min-height: 620px;
  overflow: hidden;
  color: var(--white);
  background: linear-gradient(90deg, #b45309, var(--orange-500), var(--yellow-500));
}

.hero::before,
.hero::after {
  content: "";
  position: absolute;
  width: 360px;
  height: 360px;
  border-radius: 50%;
  filter: blur(24px);
  opacity: 0.28;
  animation: pulse-glow 4s ease-in-out infinite;
}

.hero::before {
  top: 50px;
  left: 6%;
  background: #fde047;
}

.hero::after {
  right: 7%;
  bottom: 70px;
  background: #fb923c;
  animation-delay: 1.2s;
}

.hero-inner {
  position: relative;
  z-index: 2;
  min-height: 620px;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(300px, 0.95fr);
  align-items: center;
  gap: 48px;
  padding: 48px 0 80px;
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  font-size: 18px;
  font-weight: 700;
  color: #fff7d6;
}

.hero h1 {
  margin: 0 0 20px;
  font-size: clamp(40px, 5vw, 64px);
  line-height: 1.08;
  font-weight: 900;
  letter-spacing: -0.055em;
}

.hero h1 span {
  display: block;
  margin-top: 8px;
  font-size: clamp(26px, 3.5vw, 42px);
  color: var(--amber-100);
}

.hero p {
  max-width: 680px;
  margin: 0 0 28px;
  font-size: 19px;
  color: #fff7d6;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 12px 22px;
  border-radius: 999px;
  border: 0;
  font-weight: 800;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.16);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 18px 34px rgba(0, 0, 0, 0.2);
}

.btn-light {
  background: var(--white);
  color: var(--amber-600);
}

.btn-dark {
  background: #92400e;
  color: var(--white);
}

.btn-outline {
  color: var(--amber-700);
  background: #fff7ed;
  box-shadow: inset 0 0 0 1px #fed7aa;
}

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

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: 170px minmax(0, 1fr);
  gap: 22px;
  align-items: end;
  padding: 24px;
  border-radius: 32px;
  background: rgba(255, 255, 255, 0.18);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(14px);
  opacity: 0;
  transform: translateX(26px) scale(0.98);
  transition: opacity 0.55s ease, transform 0.55s ease;
  overflow: hidden;
}

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

.hero-slide::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.04), rgba(0, 0, 0, 0.45));
}

.hero-slide img {
  position: relative;
  z-index: 1;
  width: 170px;
  height: 250px;
  object-fit: cover;
  border-radius: 24px;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.32);
}

.hero-slide-content {
  position: relative;
  z-index: 1;
}

.hero-slide-content strong {
  display: block;
  margin-bottom: 10px;
  font-size: 27px;
  line-height: 1.15;
}

.hero-slide-content p {
  margin: 0 0 16px;
  font-size: 15px;
  color: #fff7d6;
}

.hero-dots {
  position: absolute;
  z-index: 3;
  left: 28px;
  bottom: 24px;
  display: flex;
  gap: 8px;
}

.hero-dots button {
  width: 10px;
  height: 10px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.48);
}

.hero-dots button.active {
  width: 28px;
  border-radius: 999px;
  background: var(--white);
}

.hero-fade {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 120px;
  background: linear-gradient(0deg, var(--amber-50), rgba(255, 251, 235, 0));
}

.stats-card {
  position: relative;
  z-index: 4;
  margin-top: -56px;
  padding: 30px;
  border-radius: 30px;
  background: var(--white);
  box-shadow: var(--shadow-soft);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
}

.stat-value {
  color: var(--amber-600);
  font-size: clamp(30px, 4vw, 46px);
  font-weight: 900;
  letter-spacing: -0.04em;
}

.stat-label {
  color: var(--gray-600);
  font-size: 14px;
}

.section {
  padding: 72px 0;
}

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

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

.section-subtitle {
  max-width: 720px;
  margin: 8px 0 0;
  color: var(--gray-600);
  font-size: 17px;
}

.search-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 180px;
  gap: 12px;
  margin: 22px 0 32px;
  padding: 12px;
  border-radius: 24px;
  background: var(--white);
  box-shadow: var(--shadow-card);
}

.search-panel input,
.search-panel select {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--gray-200);
  border-radius: 16px;
  padding: 0 16px;
  font-size: 15px;
  outline: none;
}

.search-panel input:focus,
.search-panel select:focus {
  border-color: var(--amber-500);
  box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.14);
}

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

.grid-large {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 30px;
}

.movie-card {
  overflow: hidden;
  border-radius: 24px;
  background: var(--white);
  box-shadow: var(--shadow-card);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.movie-card:hover {
  transform: translateY(-7px);
  box-shadow: 0 20px 42px rgba(15, 23, 42, 0.16);
}

.poster-link {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 3 / 4.25;
  background: linear-gradient(135deg, var(--amber-500), var(--orange-500));
}

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

.movie-card:hover .poster-link img,
.horizontal-card:hover img,
.category-tile:hover img {
  transform: scale(1.08);
}

.play-mark {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 58px;
  height: 58px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: rgba(245, 158, 11, 0.92);
  color: var(--white);
  transform: translate(-50%, -50%) scale(0.85);
  opacity: 0;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

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

.rank-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(17, 24, 39, 0.8);
  color: var(--white);
  font-size: 12px;
  font-weight: 800;
}

.movie-info {
  padding: 18px;
}

.movie-meta-line,
.tag-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.movie-meta-line {
  justify-content: space-between;
  color: var(--gray-600);
  font-size: 13px;
}

.movie-meta-line span,
.tag-row span,
.detail-tag,
.breadcrumb a,
.breadcrumb span {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 3px 9px;
  border-radius: 999px;
  background: #fff7ed;
  color: var(--amber-700);
  font-size: 12px;
  font-weight: 700;
}

.movie-meta-line strong {
  color: var(--yellow-600, #ca8a04);
}

.movie-info h3 {
  margin: 11px 0 7px;
  font-size: 18px;
  line-height: 1.35;
}

.movie-info h3 a:hover,
.horizontal-card strong a:hover {
  color: var(--amber-600);
}

.movie-info p {
  min-height: 50px;
  margin: 0 0 13px;
  color: var(--gray-600);
  font-size: 14px;
}

.movie-card.compact .movie-info p {
  min-height: 42px;
}

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

.category-tile {
  position: relative;
  min-height: 210px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: 28px;
  box-shadow: var(--shadow-card);
  background: var(--amber-500);
  color: var(--white);
}

.category-tile img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.category-tile::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.86), rgba(249, 115, 22, 0.78));
}

.category-tile-content {
  position: relative;
  z-index: 1;
  width: 100%;
  padding: 22px;
  text-align: center;
}

.category-tile h3 {
  margin: 0 0 10px;
  font-size: 24px;
}

.category-tile p {
  margin: 0;
  color: #fff7d6;
}

.scroll-row {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(260px, 300px);
  gap: 22px;
  overflow-x: auto;
  padding: 4px 4px 18px;
  scrollbar-width: thin;
}

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

.horizontal-card {
  display: grid;
  grid-template-columns: auto 116px minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  padding: 14px;
  border-radius: 20px;
  background: var(--white);
  box-shadow: var(--shadow-card);
}

.list-rank {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--amber-500), var(--orange-500));
  color: var(--white);
  font-weight: 900;
}

.horizontal-poster {
  display: block;
  overflow: hidden;
  border-radius: 16px;
  aspect-ratio: 3 / 4;
  background: var(--amber-500);
}

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

.horizontal-card strong {
  display: block;
  margin-bottom: 6px;
  font-size: 18px;
}

.horizontal-card p {
  margin: 0 0 10px;
  color: var(--gray-600);
}

.page-hero {
  padding: 64px 0;
  color: var(--white);
  background: radial-gradient(circle at 15% 20%, rgba(253, 224, 71, 0.36), transparent 26%), linear-gradient(100deg, #92400e, var(--orange-500), var(--yellow-500));
}

.page-hero h1 {
  max-width: 840px;
  margin: 0 0 12px;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.08;
}

.page-hero p {
  max-width: 760px;
  margin: 0;
  color: var(--amber-100);
  font-size: 18px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
}

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

.detail-card,
.sidebar-card {
  border-radius: 28px;
  background: var(--white);
  box-shadow: var(--shadow-card);
}

.detail-card {
  overflow: hidden;
}

.player-box {
  position: relative;
  background: #000000;
}

.player-box video {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000000;
}

.player-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  border: 0;
  color: var(--white);
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.62));
  cursor: pointer;
}

.player-overlay.hidden {
  display: none;
}

.big-play {
  width: 78px;
  height: 78px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: var(--amber-500);
  font-size: 28px;
  box-shadow: 0 16px 38px rgba(0, 0, 0, 0.35);
}

.player-status {
  position: absolute;
  left: 16px;
  bottom: 12px;
  color: #fef3c7;
  font-size: 13px;
}

.detail-content {
  padding: 28px;
}

.detail-title {
  margin: 0 0 14px;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.12;
  letter-spacing: -0.05em;
}

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

.detail-section {
  margin-top: 28px;
}

.detail-section h2 {
  margin: 0 0 12px;
  font-size: 23px;
}

.detail-section p {
  margin: 0;
  color: var(--gray-700);
  font-size: 16px;
}

.sidebar-card {
  padding: 20px;
}

.sidebar-card h2 {
  margin: 0 0 16px;
  font-size: 22px;
}

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

.related-item {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
}

.related-item img {
  width: 76px;
  height: 100px;
  object-fit: cover;
  border-radius: 14px;
}

.related-item strong {
  display: block;
  line-height: 1.35;
}

.related-item span {
  color: var(--gray-500);
  font-size: 13px;
}

.pagination-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.no-results {
  display: none;
  margin: 20px 0;
  padding: 18px;
  border-radius: 18px;
  background: #fff7ed;
  color: var(--amber-700);
  font-weight: 800;
}

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

.site-footer {
  margin-top: 56px;
  padding: 56px 0 26px;
  color: #d1d5db;
  background: linear-gradient(180deg, var(--gray-900), #030712);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.8fr 0.8fr 1fr;
  gap: 34px;
}

.footer-grid p,
.footer-grid li {
  color: #9ca3af;
}

.footer-grid h3 {
  margin: 0 0 14px;
  color: var(--white);
}

.footer-grid ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-grid li + li {
  margin-top: 8px;
}

.footer-grid a:hover {
  color: var(--amber-500);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 36px;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: #9ca3af;
  font-size: 14px;
}

@keyframes pulse-glow {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.08);
  }
}

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

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

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

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

@media (max-width: 800px) {
  .nav-toggle {
    display: block;
  }

  .nav-links {
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 12px 24px 22px;
    background: linear-gradient(90deg, var(--amber-500), var(--orange-500));
  }

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

  .nav-links a {
    width: 100%;
    padding: 12px 0;
  }

  .hero-inner {
    grid-template-columns: 1fr;
    gap: 28px;
    padding-top: 36px;
  }

  .hero-slider {
    min-height: 380px;
  }

  .hero-slide {
    grid-template-columns: 120px minmax(0, 1fr);
  }

  .hero-slide img {
    width: 120px;
    height: 180px;
  }

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

  .section-header {
    display: block;
  }

  .section-actions {
    margin-top: 16px;
  }

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

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

  .horizontal-card {
    grid-template-columns: 54px 90px minmax(0, 1fr);
  }

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

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

  .brand,
  .footer-brand {
    font-size: 20px;
  }

  .hero {
    min-height: auto;
  }

  .hero-inner {
    min-height: auto;
  }

  .hero-slide {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .hero-slide img {
    width: 100%;
    height: 190px;
  }

  .stats-card {
    margin-top: -30px;
    padding: 22px;
  }

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

  .horizontal-card {
    grid-template-columns: 1fr;
  }

  .list-rank {
    width: auto;
    height: auto;
    padding: 8px 12px;
  }

  .footer-grid,
  .footer-bottom {
    grid-template-columns: 1fr;
    display: block;
  }

  .footer-bottom span {
    display: block;
    margin-top: 8px;
  }
}
