:root {
  --amber-50: #fffbeb;
  --amber-100: #fef3c7;
  --amber-200: #fde68a;
  --amber-500: #f59e0b;
  --amber-600: #d97706;
  --orange-500: #f97316;
  --orange-600: #ea580c;
  --rose-500: #f43f5e;
  --slate-900: #0f172a;
  --slate-800: #1e293b;
  --slate-700: #334155;
  --slate-500: #64748b;
  --white: #ffffff;
  --shadow: 0 24px 60px rgba(146, 64, 14, 0.16);
  --radius-lg: 28px;
  --radius-md: 20px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

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

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

button,
input,
select {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  color: #ffffff;
  background: linear-gradient(90deg, var(--amber-600), var(--orange-500), var(--amber-600));
  box-shadow: 0 14px 34px rgba(146, 64, 14, 0.24);
}

.nav-shell {
  max-width: 1200px;
  min-height: 72px;
  margin: 0 auto;
  padding: 0 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
  letter-spacing: 0.03em;
}

.brand-mark {
  width: 38px;
  height: 38px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  color: var(--amber-600);
  background: #ffffff;
  box-shadow: 0 10px 22px rgba(120, 53, 15, 0.2);
}

.brand-text {
  font-size: 22px;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 22px;
  font-weight: 700;
}

.desktop-nav a,
.nav-more,
.mobile-nav a {
  color: rgba(255, 255, 255, 0.92);
  transition: color 0.2s ease, transform 0.2s ease;
}

.desktop-nav a:hover,
.nav-more:hover,
.mobile-nav a:hover {
  color: #ffffff;
  transform: translateY(-1px);
}

.nav-dropdown {
  position: relative;
}

.nav-more {
  border: 0;
  padding: 0;
  background: transparent;
  cursor: pointer;
  font-weight: 700;
}

.nav-dropdown-menu {
  position: absolute;
  top: 32px;
  right: 0;
  width: 180px;
  padding: 12px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.96);
  color: var(--slate-800);
  box-shadow: 0 24px 60px rgba(120, 53, 15, 0.24);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: all 0.2s ease;
}

.nav-dropdown:hover .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav-dropdown-menu a {
  display: block;
  padding: 9px 12px;
  color: var(--slate-800);
  border-radius: 12px;
}

.nav-dropdown-menu a:hover {
  color: var(--orange-600);
  background: var(--amber-50);
}

.mobile-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.18);
  cursor: pointer;
}

.mobile-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  background: #ffffff;
  border-radius: 999px;
}

.mobile-nav {
  display: none;
  padding: 0 22px 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
}

.mobile-nav.is-open {
  display: grid;
  gap: 12px;
}

.hero {
  position: relative;
  min-height: 620px;
  overflow: hidden;
  color: #ffffff;
  background: linear-gradient(135deg, #f59e0b 0%, #f97316 48%, #f43f5e 100%);
}

.hero::before,
.hero::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  filter: blur(10px);
  opacity: 0.34;
  background: rgba(255, 255, 255, 0.46);
}

.hero::before {
  width: 360px;
  height: 360px;
  top: -100px;
  right: 9%;
}

.hero::after {
  width: 240px;
  height: 240px;
  left: 6%;
  bottom: 80px;
}

.hero-slider {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 0 auto;
  padding: 78px 22px 90px;
}

.hero-slide {
  display: none;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.72fr);
  align-items: center;
  gap: 48px;
}

.hero-slide.is-active {
  display: grid;
  animation: heroFade 0.55s ease both;
}

@keyframes heroFade {
  from {
    opacity: 0;
    transform: translateY(16px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

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

.hero .eyebrow {
  color: #fff7ed;
}

.hero-copy h1 {
  margin: 0;
  font-size: clamp(42px, 7vw, 74px);
  line-height: 1.02;
  letter-spacing: -0.04em;
}

.hero-copy h2 {
  margin: 14px 0 0;
  font-size: clamp(26px, 4vw, 44px);
  line-height: 1.12;
}

.hero-copy p {
  margin: 22px 0 0;
  font-size: 18px;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.92);
}

.hero-actions,
.action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
}

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

.button-primary {
  color: #ffffff;
  background: linear-gradient(90deg, var(--orange-500), var(--amber-500));
  box-shadow: 0 18px 32px rgba(249, 115, 22, 0.28);
}

.button-secondary {
  color: var(--orange-600);
  background: #ffffff;
  box-shadow: 0 18px 32px rgba(120, 53, 15, 0.14);
}

.button-light {
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.54);
  background: rgba(255, 255, 255, 0.16);
}

.button-primary:hover,
.button-secondary:hover,
.button-light:hover {
  transform: translateY(-2px);
  box-shadow: 0 22px 44px rgba(120, 53, 15, 0.22);
}

.hero-poster {
  position: relative;
  padding: 14px;
  border-radius: 34px;
  background: rgba(255, 255, 255, 0.18);
  box-shadow: 0 30px 72px rgba(120, 53, 15, 0.28);
  backdrop-filter: blur(18px);
}

.hero-poster img {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  border-radius: 26px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.18), rgba(120, 53, 15, 0.18));
}

.hero-poster-card {
  position: absolute;
  left: -28px;
  right: 22px;
  bottom: 28px;
  padding: 18px;
  border-radius: 22px;
  background: rgba(15, 23, 42, 0.72);
  backdrop-filter: blur(14px);
  box-shadow: 0 20px 45px rgba(15, 23, 42, 0.24);
}

.hero-poster-card strong {
  display: block;
  margin-bottom: 5px;
  font-size: 18px;
}

.hero-poster-card span {
  color: rgba(255, 255, 255, 0.8);
  font-size: 14px;
}

.hero-dots {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: center;
  gap: 10px;
  margin: -52px 0 0;
}

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

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

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

main,
.page-main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 52px 22px 76px;
}

.full-main {
  max-width: none;
  padding: 0;
}

.section {
  padding: 58px 0;
}

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

.section-heading h2,
.page-hero h1,
.detail-title h1 {
  margin: 0;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.12;
  letter-spacing: -0.03em;
}

.section-heading p,
.page-hero p,
.detail-title p {
  margin: 10px 0 0;
  color: var(--slate-500);
  line-height: 1.8;
}

.section-more,
.text-link {
  color: var(--orange-600);
  font-weight: 900;
}

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

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

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

.movie-card {
  overflow: hidden;
  border-radius: 26px;
  background: #ffffff;
  box-shadow: var(--shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.movie-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 30px 70px rgba(146, 64, 14, 0.22);
}

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

.poster-link img {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  transition: transform 0.35s ease;
}

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

.poster-glow {
  position: absolute;
  inset: auto 0 0;
  height: 42%;
  background: linear-gradient(0deg, rgba(15, 23, 42, 0.72), transparent);
}

.poster-badge {
  position: absolute;
  left: 14px;
  top: 14px;
  padding: 6px 10px;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(15, 23, 42, 0.62);
  font-size: 13px;
  font-weight: 900;
  backdrop-filter: blur(8px);
}

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

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

.movie-meta {
  margin: 0;
  color: var(--orange-600);
  font-size: 13px;
  font-weight: 800;
}

.movie-one-line {
  min-height: 52px;
  margin: 10px 0 12px;
  color: var(--slate-500);
  line-height: 1.65;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 14px;
}

.tag-row span,
.info-chip,
.filter-chip {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  color: var(--orange-600);
  background: var(--amber-100);
  font-size: 13px;
  font-weight: 800;
}

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

.category-tile {
  min-height: 150px;
  padding: 22px;
  border-radius: 26px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--orange-500), var(--amber-500));
  box-shadow: var(--shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.category-tile:nth-child(2n) {
  background: linear-gradient(135deg, #f43f5e, #f97316);
}

.category-tile:nth-child(3n) {
  background: linear-gradient(135deg, #0f766e, #f59e0b);
}

.category-tile:hover {
  transform: translateY(-4px);
  box-shadow: 0 28px 62px rgba(146, 64, 14, 0.2);
}

.category-tile h2 {
  margin: 0 0 10px;
  font-size: 22px;
}

.category-tile p {
  margin: 0;
  color: rgba(255, 255, 255, 0.86);
  line-height: 1.7;
}

.rank-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.45fr);
  gap: 26px;
}

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

.rank-item {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  padding: 16px;
  border-radius: 22px;
  background: #ffffff;
  box-shadow: 0 14px 42px rgba(146, 64, 14, 0.1);
}

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

.rank-item h2,
.rank-item h3 {
  margin: 0 0 5px;
  font-size: 18px;
}

.rank-item p {
  margin: 0;
  color: var(--slate-500);
}

.search-panel {
  display: grid;
  gap: 16px;
  padding: 22px;
  margin-bottom: 30px;
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.search-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 190px;
  gap: 14px;
}

.search-row input,
.search-row select {
  width: 100%;
  height: 48px;
  border: 1px solid rgba(245, 158, 11, 0.24);
  border-radius: 16px;
  padding: 0 16px;
  color: var(--slate-800);
  background: #ffffff;
  outline: none;
}

.search-row input:focus,
.search-row select:focus {
  border-color: var(--orange-500);
  box-shadow: 0 0 0 4px rgba(249, 115, 22, 0.12);
}

.filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.filter-chip {
  border: 0;
  cursor: pointer;
}

.filter-chip.is-active {
  color: #ffffff;
  background: linear-gradient(90deg, var(--orange-500), var(--amber-500));
}

.page-hero {
  margin: 0 0 36px;
  padding: 42px;
  border-radius: 34px;
  color: #ffffff;
  background: linear-gradient(90deg, var(--amber-500), var(--orange-500), var(--amber-600));
  box-shadow: var(--shadow);
}

.page-hero p {
  color: rgba(255, 255, 255, 0.9);
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 18px;
  color: var(--slate-500);
  font-size: 14px;
}

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

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

.player-card,
.detail-card,
.side-card {
  border-radius: 28px;
  background: #ffffff;
  box-shadow: var(--shadow);
}

.player-card {
  overflow: hidden;
}

.player-box {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: #020617;
}

.player-box video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #020617;
}

.player-cover {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  cursor: pointer;
  background: #020617;
  transition: opacity 0.24s ease, visibility 0.24s ease;
}

.player-cover.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.player-cover img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.54;
}

.play-button {
  position: relative;
  z-index: 2;
  width: 84px;
  height: 84px;
  border: 0;
  border-radius: 50%;
  color: var(--orange-600);
  background: rgba(255, 255, 255, 0.94);
  cursor: pointer;
  box-shadow: 0 20px 46px rgba(0, 0, 0, 0.26);
}

.play-button::before {
  content: "";
  display: block;
  width: 0;
  height: 0;
  margin: 0 auto;
  border-top: 16px solid transparent;
  border-bottom: 16px solid transparent;
  border-left: 24px solid currentColor;
  transform: translateX(4px);
}

.detail-card {
  padding: 28px;
}

.detail-title h1 {
  margin-bottom: 14px;
}

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

.info-box {
  padding: 14px;
  border-radius: 18px;
  background: var(--amber-50);
}

.info-box span {
  display: block;
  color: var(--slate-500);
  font-size: 13px;
}

.info-box strong {
  display: block;
  margin-top: 4px;
}

.article-content h2 {
  margin: 28px 0 10px;
  font-size: 24px;
}

.article-content p {
  margin: 0;
  color: var(--slate-700);
  line-height: 1.92;
}

.side-card {
  padding: 22px;
}

.side-card img {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  border-radius: 22px;
  background: linear-gradient(135deg, var(--amber-200), var(--orange-500));
}

.side-card h2 {
  margin: 18px 0 10px;
}

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

.related-card {
  overflow: hidden;
  border-radius: 22px;
  background: #ffffff;
  box-shadow: 0 14px 40px rgba(146, 64, 14, 0.12);
}

.related-card img {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  background: linear-gradient(135deg, var(--amber-200), var(--orange-500));
}

.related-card strong {
  display: block;
  padding: 12px 12px 4px;
  line-height: 1.4;
}

.related-card span {
  display: block;
  padding: 0 12px 14px;
  color: var(--slate-500);
  font-size: 13px;
}

.site-footer {
  color: var(--amber-100);
  background: linear-gradient(180deg, #78350f, #451a03);
}

.footer-grid {
  max-width: 1200px;
  margin: 0 auto;
  padding: 46px 22px;
  display: grid;
  grid-template-columns: 1.3fr 0.7fr 1fr;
  gap: 30px;
}

.footer-grid h2 {
  margin: 0 0 14px;
  color: #ffffff;
  font-size: 18px;
}

.footer-grid p,
.footer-grid a {
  display: block;
  color: rgba(254, 243, 199, 0.78);
  line-height: 1.8;
}

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

.footer-brand {
  margin-bottom: 12px;
  color: #ffffff;
  font-size: 24px;
}

.footer-bottom {
  padding: 20px 22px;
  text-align: center;
  color: rgba(254, 243, 199, 0.72);
  border-top: 1px solid rgba(254, 243, 199, 0.14);
}

.empty-state {
  display: none;
  padding: 40px;
  border-radius: 24px;
  text-align: center;
  color: var(--slate-500);
  background: #ffffff;
  box-shadow: var(--shadow);
}

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

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

  .mobile-toggle {
    display: block;
  }

  .hero-slide,
  .detail-layout,
  .rank-panel {
    grid-template-columns: 1fr;
  }

  .hero-poster {
    max-width: 360px;
    margin: 0 auto;
  }

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

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

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

@media (max-width: 640px) {
  .nav-shell {
    min-height: 64px;
    padding: 0 16px;
  }

  .brand-text {
    font-size: 19px;
  }

  .hero {
    min-height: auto;
  }

  .hero-slider {
    padding: 48px 16px 86px;
  }

  main,
  .page-main {
    padding: 34px 16px 56px;
  }

  .section {
    padding: 38px 0;
  }

  .section-heading {
    display: block;
  }

  .section-more {
    display: inline-flex;
    margin-top: 14px;
  }

  .card-grid,
  .card-grid.three,
  .card-grid.two,
  .related-grid,
  .category-strip {
    grid-template-columns: 1fr;
  }

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

  .page-hero,
  .detail-card {
    padding: 24px;
    border-radius: 24px;
  }

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

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

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