:root {
  --amber: #f59e0b;
  --orange: #f97316;
  --rose: #e11d48;
  --dark: #111827;
  --muted: #6b7280;
  --line: #e5e7eb;
  --paper: #ffffff;
  --soft: #fff7ed;
  --shadow: 0 20px 50px rgba(17, 24, 39, 0.12);
  --radius: 22px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--dark);
  background: linear-gradient(180deg, #fff7ed 0%, #ffffff 28rem);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  line-height: 1.6;
}

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

button,
input,
select {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  color: #ffffff;
  background: linear-gradient(90deg, var(--amber), var(--orange), var(--rose));
  box-shadow: 0 14px 30px rgba(249, 115, 22, 0.28);
}

.nav-shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1280px;
  height: 68px;
  padding: 0 24px;
  margin: 0 auto;
}

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

.brand-mark,
.footer-brand span {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 999px;
  color: var(--orange);
  background: #ffffff;
  box-shadow: 0 8px 20px rgba(255, 255, 255, 0.25);
}

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

.nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
}

.nav-link {
  position: relative;
  font-weight: 700;
  opacity: 0.92;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.nav-link:hover,
.nav-link.is-active {
  opacity: 1;
  transform: translateY(-1px);
}

.nav-link.is-active::after {
  position: absolute;
  right: 0;
  bottom: -12px;
  left: 0;
  height: 3px;
  content: "";
  border-radius: 999px;
  background: #ffffff;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  border: 0;
  color: #ffffff;
  background: transparent;
}

.nav-toggle span {
  display: block;
  width: 26px;
  height: 2px;
  border-radius: 999px;
  background: #ffffff;
}

.mobile-nav {
  display: none;
  padding: 8px 24px 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(194, 65, 12, 0.22);
}

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

.mobile-link {
  padding: 10px 0;
  font-weight: 700;
}

.main-shell,
.footer-shell {
  max-width: 1280px;
  padding: 0 24px;
  margin: 0 auto;
}

.page-top {
  padding-top: 34px;
}

.hero {
  position: relative;
  min-height: 620px;
  overflow: hidden;
  color: #ffffff;
  background: #1f2937;
}

.hero-slider,
.hero-slide {
  position: absolute;
  inset: 0;
}

.hero-slide {
  display: grid;
  align-items: center;
  visibility: hidden;
  background-color: #111827;
  background-position: center;
  background-size: cover;
  opacity: 0;
  transition: opacity 0.7s ease, visibility 0.7s ease;
}

.hero-slide.is-active {
  visibility: visible;
  opacity: 1;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 75% 20%, rgba(251, 191, 36, 0.38), transparent 26rem),
    linear-gradient(90deg, rgba(17, 24, 39, 0.94), rgba(17, 24, 39, 0.7), rgba(17, 24, 39, 0.22));
}

.hero-content {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) 360px;
  gap: 48px;
  align-items: center;
  width: min(1280px, 100%);
  padding: 86px 24px 96px;
  margin: 0 auto;
}

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

.hero-kicker {
  display: inline-flex;
  align-items: center;
  padding: 8px 14px;
  margin-bottom: 18px;
  font-size: 14px;
  font-weight: 800;
  color: #fffbeb;
  border: 1px solid rgba(255, 255, 255, 0.36);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(12px);
}

.hero h1,
.page-hero h1,
.detail-copy h1 {
  margin: 0;
  font-size: clamp(38px, 6vw, 78px);
  line-height: 1.04;
  font-weight: 900;
  letter-spacing: -0.05em;
}

.hero p,
.page-hero p,
.detail-copy p {
  max-width: 760px;
  margin: 20px 0 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: 18px;
}

.hero-tags,
.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.hero-tags span,
.tag-list span {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: 999px;
  color: #92400e;
  background: #fffbeb;
  font-size: 13px;
  font-weight: 800;
}

.tag-list.wide span {
  color: #9a3412;
  background: #fff7ed;
}

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

.btn {
  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;
}

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

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

.btn.ghost {
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.42);
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(12px);
}

.hero-poster,
.detail-cover,
.category-visual,
.rank-cover,
.movie-cover,
.category-card {
  background-color: #f3f4f6;
  background-position: center;
  background-size: cover;
}

.hero-poster {
  position: relative;
  display: grid;
  min-height: 510px;
  overflow: hidden;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 32px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.34);
}

.hero-poster span,
.movie-play,
.player-cover span {
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--amber), var(--rose));
  box-shadow: 0 16px 32px rgba(225, 29, 72, 0.28);
}

.hero-poster span {
  width: 86px;
  height: 86px;
  font-size: 30px;
}

.hero-dots {
  position: absolute;
  z-index: 4;
  right: 24px;
  bottom: 28px;
  left: 24px;
  display: flex;
  justify-content: center;
  gap: 12px;
}

.hero-dot {
  width: 38px;
  height: 6px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.42);
}

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

.filter-panel,
.detail-article,
.side-box,
.category-detail-card {
  border: 1px solid rgba(229, 231, 235, 0.9);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow);
}

.filter-panel {
  padding: 24px;
  margin: 34px 0;
}

.filter-grid {
  display: grid;
  grid-template-columns: minmax(240px, 1.5fr) repeat(3, minmax(150px, 1fr));
  gap: 16px;
}

.filter-grid label {
  display: grid;
  gap: 8px;
  color: #92400e;
  font-size: 13px;
  font-weight: 900;
}

.filter-grid input,
.filter-grid select {
  width: 100%;
  min-height: 46px;
  padding: 0 14px;
  color: var(--dark);
  border: 1px solid #fed7aa;
  border-radius: 14px;
  outline: none;
  background: #ffffff;
}

.filter-grid input:focus,
.filter-grid select:focus {
  border-color: var(--orange);
  box-shadow: 0 0 0 4px rgba(249, 115, 22, 0.13);
}

.section-heading {
  display: grid;
  grid-template-columns: 7px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  margin: 42px 0 20px;
}

.section-heading.compact {
  margin: 0 0 20px;
}

.section-heading > span {
  width: 7px;
  height: 36px;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--amber), var(--orange));
}

.section-heading h2 {
  margin: 0;
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.2;
}

.section-heading p {
  margin: 4px 0 0;
  color: var(--muted);
}

.section-more,
.text-link {
  color: #d97706;
  font-weight: 900;
}

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

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

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

.movie-card {
  overflow: hidden;
  border: 1px solid rgba(229, 231, 235, 0.9);
  border-radius: 22px;
  background: #ffffff;
  box-shadow: 0 18px 38px rgba(17, 24, 39, 0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 26px 48px rgba(17, 24, 39, 0.14);
}

.movie-card[hidden] {
  display: none;
}

.movie-cover {
  position: relative;
  display: block;
  min-height: 260px;
  overflow: hidden;
}

.movie-cover::after,
.category-card::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(180deg, transparent, rgba(17, 24, 39, 0.76));
}

.movie-year,
.movie-type {
  position: absolute;
  z-index: 2;
  top: 12px;
  padding: 5px 10px;
  border-radius: 999px;
  color: #ffffff;
  font-size: 12px;
  font-weight: 900;
  background: rgba(17, 24, 39, 0.72);
  backdrop-filter: blur(8px);
}

.movie-year {
  left: 12px;
}

.movie-type {
  right: 12px;
}

.movie-play {
  position: absolute;
  z-index: 3;
  right: 14px;
  bottom: 14px;
  width: 46px;
  height: 46px;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.movie-card:hover .movie-play {
  opacity: 1;
  transform: translateY(0);
}

.movie-info {
  padding: 18px;
}

.movie-info h2 {
  margin: 0 0 10px;
  font-size: 19px;
  line-height: 1.3;
}

.movie-info h2 a:hover {
  color: #d97706;
}

.movie-info p {
  min-height: 54px;
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.movie-meta,
.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
  color: #92400e;
  font-size: 13px;
  font-weight: 800;
}

.movie-meta span,
.detail-meta span {
  padding: 4px 9px;
  border-radius: 999px;
  background: #fff7ed;
}

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

.category-card {
  position: relative;
  min-height: 210px;
  overflow: hidden;
  padding: 22px;
  border-radius: 22px;
  box-shadow: var(--shadow);
}

.category-card span,
.category-card strong {
  position: relative;
  z-index: 2;
  display: block;
  color: #ffffff;
}

.category-card span {
  font-size: 24px;
  font-weight: 900;
}

.category-card strong {
  max-width: 92%;
  margin-top: 70px;
  font-size: 14px;
  font-weight: 700;
  opacity: 0.9;
}

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

.rank-item {
  display: grid;
  grid-template-columns: 86px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  min-height: 104px;
  padding: 10px;
  border: 1px solid #ffedd5;
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 12px 28px rgba(17, 24, 39, 0.06);
}

.rank-cover {
  width: 86px;
  height: 86px;
  border-radius: 14px;
}

.rank-copy strong,
.rank-copy em {
  display: block;
}

.rank-copy strong {
  line-height: 1.3;
}

.rank-copy em {
  margin-top: 6px;
  color: var(--muted);
  font-size: 13px;
  font-style: normal;
}

.page-hero {
  position: relative;
  overflow: hidden;
  padding: 58px;
  color: #ffffff;
  border-radius: 34px;
  background:
    radial-gradient(circle at 80% 0%, rgba(255, 255, 255, 0.22), transparent 18rem),
    linear-gradient(120deg, var(--amber), var(--orange), var(--rose));
  box-shadow: var(--shadow);
}

.page-hero.small h1 {
  font-size: clamp(36px, 5vw, 62px);
}

.category-hero {
  background-position: center;
  background-size: cover;
}

.category-hero::before {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(90deg, rgba(17, 24, 39, 0.86), rgba(17, 24, 39, 0.25));
}

.category-hero > div {
  position: relative;
  z-index: 2;
}

.category-detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  margin-top: 28px;
}

.category-detail-card {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  gap: 22px;
  padding: 18px;
}

.category-visual {
  min-height: 230px;
  border-radius: 18px;
}

.category-detail-card h2 {
  margin: 0 0 10px;
  font-size: 26px;
}

.category-detail-card p {
  color: var(--muted);
}

.category-samples {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 18px 0;
}

.category-samples a {
  padding: 5px 10px;
  border-radius: 999px;
  color: #9a3412;
  background: #fff7ed;
  font-size: 13px;
  font-weight: 800;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-bottom: 18px;
  color: var(--muted);
  font-size: 14px;
}

.breadcrumb a {
  color: #d97706;
  font-weight: 800;
}

.detail-hero {
  position: relative;
  overflow: hidden;
  min-height: 480px;
  border-radius: 34px;
  background-position: center;
  background-size: cover;
  box-shadow: var(--shadow);
}

.detail-hero::before {
  position: absolute;
  inset: 0;
  content: "";
  background:
    radial-gradient(circle at 75% 20%, rgba(245, 158, 11, 0.38), transparent 20rem),
    linear-gradient(90deg, rgba(17, 24, 39, 0.92), rgba(17, 24, 39, 0.76), rgba(17, 24, 39, 0.35));
}

.detail-hero-inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 310px minmax(0, 1fr);
  gap: 36px;
  align-items: center;
  padding: 48px;
  color: #ffffff;
}

.detail-cover {
  min-height: 420px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 26px;
  box-shadow: 0 28px 72px rgba(0, 0, 0, 0.32);
}

.detail-copy h1 {
  font-size: clamp(34px, 5vw, 68px);
}

.player-section {
  margin: 30px 0;
}

.video-frame {
  position: relative;
  overflow: hidden;
  border-radius: 26px;
  background: #000000;
  box-shadow: var(--shadow);
}

.video-frame video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000000;
}

.player-cover {
  position: absolute;
  inset: 0;
  display: grid;
  padding: 0;
  place-items: center;
  border: 0;
  background-position: center;
  background-size: cover;
  cursor: pointer;
}

.player-cover::before {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.72));
}

.player-cover span {
  position: relative;
  z-index: 2;
  width: 92px;
  height: 92px;
  font-size: 34px;
}

.player-cover.is-hidden {
  display: none;
}

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

.detail-article,
.side-box {
  padding: 26px;
}

.detail-article p {
  margin: 0 0 28px;
  color: #374151;
  font-size: 17px;
}

.detail-side {
  align-self: start;
  position: sticky;
  top: 92px;
}

.side-box h2 {
  margin: 0 0 18px;
  font-size: 22px;
}

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

.site-footer {
  margin-top: 70px;
  color: #d1d5db;
  background: #111827;
}

.footer-shell {
  padding-top: 44px;
  padding-bottom: 26px;
}

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

.footer-brand {
  color: #ffffff;
  font-size: 22px;
}

.footer-main p {
  max-width: 430px;
  margin: 18px 0 0;
  color: #9ca3af;
}

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

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

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

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

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

@media (max-width: 1120px) {
  .nav-links {
    gap: 14px;
  }

  .hero-content,
  .detail-hero-inner,
  .detail-layout {
    grid-template-columns: 1fr;
  }

  .hero-poster {
    display: none;
  }

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

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

  .detail-side {
    position: static;
  }
}

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

  .nav-toggle {
    display: flex;
  }

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

  .hero {
    min-height: 620px;
  }

  .hero-content {
    padding-top: 62px;
  }

  .filter-grid,
  .movie-grid,
  .featured-grid,
  .ranking-grid,
  .category-grid,
  .category-detail-grid,
  .ranking-strip,
  .footer-main {
    grid-template-columns: 1fr;
  }

  .category-detail-card,
  .detail-hero-inner {
    grid-template-columns: 1fr;
  }

  .detail-cover {
    min-height: 360px;
  }

  .page-hero,
  .detail-hero-inner {
    padding: 28px;
  }

  .footer-bottom {
    flex-direction: column;
  }
}

@media (max-width: 560px) {
  .main-shell,
  .footer-shell,
  .nav-shell {
    padding-right: 16px;
    padding-left: 16px;
  }

  .hero h1,
  .page-hero h1,
  .detail-copy h1 {
    font-size: 36px;
  }

  .hero p,
  .page-hero p,
  .detail-copy p {
    font-size: 16px;
  }

  .hero-actions,
  .detail-meta {
    gap: 10px;
  }

  .btn {
    width: 100%;
  }

  .movie-cover {
    min-height: 220px;
  }

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

  .rank-cover {
    width: 72px;
    height: 72px;
  }
}
