:root {
  color-scheme: light;
  --orange: #f97316;
  --orange-dark: #ea580c;
  --pink: #ec4899;
  --rose: #f43f5e;
  --slate-950: #020617;
  --slate-900: #0f172a;
  --slate-800: #1e293b;
  --slate-700: #334155;
  --slate-600: #475569;
  --slate-500: #64748b;
  --slate-100: #f1f5f9;
  --soft: #fff7ed;
  --card: #ffffff;
  --shadow: 0 20px 50px rgba(15, 23, 42, 0.12);
  --radius: 24px;
  font-family: "Inter", "PingFang SC", "Microsoft YaHei", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--slate-900);
  background: linear-gradient(135deg, #fff7ed 0%, #fdf2f8 52%, #fff1f2 100%);
  min-height: 100vh;
}

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

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

button,
input {
  font: inherit;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: linear-gradient(90deg, #fb923c, #f472b6, #fb7185);
  box-shadow: 0 14px 35px rgba(244, 63, 94, 0.28);
}

.nav-shell {
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  font-size: 26px;
  font-weight: 900;
  letter-spacing: -0.04em;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 16px;
  color: var(--orange);
  background: #fff;
  box-shadow: 0 10px 25px rgba(255, 255, 255, 0.24);
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-link {
  color: #fff;
  padding: 10px 16px;
  border-radius: 14px;
  font-weight: 700;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.nav-link:hover {
  background: rgba(255, 255, 255, 0.18);
  transform: translateY(-1px);
}

.nav-link.active {
  color: var(--orange);
  background: #fff;
  box-shadow: 0 10px 26px rgba(255, 255, 255, 0.26);
}

.menu-toggle {
  display: none;
  border: 0;
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  cursor: pointer;
}

.mobile-nav {
  display: none;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 0 0 16px;
  gap: 10px;
  flex-direction: column;
}

.mobile-nav a {
  color: #fff;
  font-weight: 700;
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.12);
}

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

.hero-carousel {
  position: relative;
  min-height: 680px;
  overflow: hidden;
  background: var(--slate-900);
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.65s ease;
  background-image: linear-gradient(110deg, rgba(15, 23, 42, 0.96) 0%, rgba(15, 23, 42, 0.78) 45%, rgba(244, 63, 94, 0.42) 100%), var(--hero-image);
  background-size: cover;
  background-position: center;
}

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

.hero-backdrop {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 20%, rgba(249, 115, 22, 0.4), transparent 35%),
    radial-gradient(circle at 82% 30%, rgba(236, 72, 153, 0.35), transparent 30%);
}

.hero-content {
  min-height: 680px;
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  align-items: center;
  gap: 64px;
  padding: 82px 0;
  color: #fff;
}

.hero-copy h1 {
  margin: 12px 0 8px;
  font-size: clamp(40px, 6vw, 78px);
  line-height: 0.98;
  letter-spacing: -0.07em;
}

.hero-copy h2 {
  margin: 0 0 18px;
  font-size: clamp(30px, 4vw, 54px);
  color: #fed7aa;
}

.hero-copy p {
  max-width: 720px;
  margin: 0;
  font-size: 20px;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.86);
}

.eyebrow,
.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--orange);
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

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

.hero-tags {
  margin: 24px 0 0;
}

.hero-tags span,
.tag-row span {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  border-radius: 999px;
  padding: 5px 12px;
  font-size: 13px;
  color: #9a3412;
  background: #ffedd5;
  font-weight: 800;
}

.hero-tags span {
  color: #fff;
  background: rgba(255, 255, 255, 0.17);
  backdrop-filter: blur(12px);
}

.hero-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 30px;
}

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

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

.btn.primary {
  color: #fff;
  background: linear-gradient(90deg, var(--orange), var(--pink), var(--rose));
  box-shadow: 0 18px 36px rgba(244, 63, 94, 0.34);
}

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

.btn.ghost.light {
  color: var(--orange);
  background: #fff;
}

.hero-poster {
  position: relative;
  display: block;
  border-radius: 34px;
  overflow: hidden;
  aspect-ratio: 3 / 4.2;
  box-shadow: 0 35px 90px rgba(2, 6, 23, 0.55);
  transform: rotate(2deg);
}

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

.hero-poster:hover img {
  transform: scale(1.07);
}

.hero-poster span {
  position: absolute;
  left: 18px;
  bottom: 18px;
  color: #fff;
  background: rgba(15, 23, 42, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(14px);
  padding: 8px 14px;
  border-radius: 999px;
  font-weight: 900;
}

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

.hero-dots button {
  width: 38px;
  height: 8px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.34);
  cursor: pointer;
}

.hero-dots button.active {
  background: #fff;
}

.quick-search {
  margin-top: -48px;
  position: relative;
  z-index: 12;
}

.quick-card,
.browse-tools,
.content-card,
.category-overview-card,
.player-panel {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.66);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.quick-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 480px);
  align-items: center;
  gap: 28px;
  padding: 28px;
  backdrop-filter: blur(18px);
}

.quick-card h2 {
  margin: 0 0 8px;
  font-size: 28px;
}

.quick-card p {
  margin: 0;
  color: var(--slate-600);
  line-height: 1.7;
}

.hero-search,
.search-box {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #fff;
  border: 2px solid #fed7aa;
  border-radius: 18px;
  padding: 12px 16px;
}

.hero-search input,
.search-box input {
  width: 100%;
  min-height: 36px;
  border: 0;
  outline: 0;
  color: var(--slate-900);
}

.section-block {
  padding: 64px 0;
}

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

.section-heading h2 {
  margin: 6px 0 0;
  font-size: clamp(28px, 3vw, 42px);
  line-height: 1.1;
}

.section-heading a,
.text-link {
  color: var(--orange-dark);
  font-weight: 900;
}

.section-kicker.pink {
  color: var(--pink);
}

.section-kicker.rose {
  color: var(--rose);
}

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

.movie-card {
  overflow: hidden;
  background: #fff;
  border-radius: 24px;
  box-shadow: 0 16px 38px rgba(15, 23, 42, 0.08);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 28px 60px rgba(244, 63, 94, 0.18);
}

.poster-link {
  position: relative;
  display: block;
  aspect-ratio: 3 / 4.15;
  overflow: hidden;
  background: linear-gradient(135deg, #fed7aa, #fbcfe8);
}

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

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

.play-corner {
  position: absolute;
  right: 12px;
  bottom: 12px;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  color: var(--orange);
  background: #fff;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.2);
}

.rank-badge {
  position: absolute;
  left: 12px;
  top: 12px;
  display: grid;
  place-items: center;
  min-width: 38px;
  height: 38px;
  border-radius: 14px;
  color: #fff;
  background: linear-gradient(135deg, var(--orange), var(--rose));
  box-shadow: 0 10px 24px rgba(249, 115, 22, 0.32);
}

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

.movie-meta,
.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--slate-500);
  font-size: 13px;
  font-weight: 800;
}

.movie-card h3 {
  margin: 10px 0 8px;
  font-size: 20px;
  line-height: 1.25;
}

.movie-card h3 a:hover,
.rank-main h3 a:hover {
  color: var(--orange-dark);
}

.movie-card p {
  margin: 0 0 14px;
  color: var(--slate-600);
  line-height: 1.7;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

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

.movie-card.compact h3 {
  font-size: 17px;
}

.movie-card.compact p {
  -webkit-line-clamp: 2;
}

.category-band {
  background: linear-gradient(135deg, #ffedd5, #fce7f3, #ffe4e6);
}

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

.category-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 152px;
  padding: 22px;
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 16px 34px rgba(244, 63, 94, 0.12);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.category-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 24px 50px rgba(244, 63, 94, 0.18);
}

.category-card strong {
  font-size: 22px;
}

.category-card span {
  color: var(--slate-600);
  line-height: 1.65;
}

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

.rank-row {
  display: grid;
  grid-template-columns: 62px 112px minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  padding: 16px;
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.08);
  transition: transform 0.2s ease;
}

.rank-row:hover {
  transform: translateX(4px);
}

.rank-num {
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  border-radius: 18px;
  color: #fff;
  background: linear-gradient(135deg, var(--orange), var(--pink));
  font-size: 22px;
  font-weight: 900;
}

.rank-thumb {
  display: block;
  width: 112px;
  height: 74px;
  overflow: hidden;
  border-radius: 16px;
}

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

.rank-main h3 {
  margin: 0 0 8px;
  font-size: 20px;
}

.rank-main p {
  margin: 0 0 8px;
  color: var(--slate-600);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.small-play {
  color: #fff;
  background: var(--slate-900);
  border-radius: 999px;
  padding: 10px 16px;
  font-weight: 900;
}

.page-hero,
.detail-hero {
  position: relative;
  color: #fff;
  overflow: hidden;
  background: linear-gradient(125deg, var(--slate-950), var(--slate-800) 45%, var(--rose));
}

.page-hero .container {
  position: relative;
  padding: 86px 0;
  z-index: 2;
}

.page-hero h1 {
  margin: 10px 0 16px;
  font-size: clamp(40px, 6vw, 70px);
  letter-spacing: -0.06em;
  line-height: 1;
}

.page-hero p {
  max-width: 760px;
  margin: 0;
  color: rgba(255, 255, 255, 0.84);
  font-size: 20px;
  line-height: 1.8;
}

.image-hero {
  background-image: linear-gradient(115deg, rgba(15, 23, 42, 0.96), rgba(15, 23, 42, 0.72), rgba(236, 72, 153, 0.4)), var(--page-image);
  background-size: cover;
  background-position: center;
}

.ranking-hero {
  background:
    radial-gradient(circle at 20% 20%, rgba(249, 115, 22, 0.45), transparent 28%),
    radial-gradient(circle at 80% 30%, rgba(236, 72, 153, 0.42), transparent 28%),
    linear-gradient(135deg, #0f172a, #1e293b);
}

.browse-tools {
  display: grid;
  grid-template-columns: minmax(260px, 430px) minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  padding: 18px;
  margin-bottom: 26px;
}

.search-box span {
  color: var(--orange-dark);
  font-weight: 900;
}

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

.filter-chip {
  border: 0;
  padding: 10px 14px;
  border-radius: 999px;
  background: #fff7ed;
  color: #9a3412;
  font-weight: 900;
  cursor: pointer;
}

.filter-chip.active,
.filter-chip:hover {
  color: #fff;
  background: linear-gradient(90deg, var(--orange), var(--pink));
}

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

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

.category-preview {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
  border-radius: 20px;
  overflow: hidden;
  background: #ffedd5;
}

.category-preview img {
  width: 100%;
  aspect-ratio: 1 / 1.15;
  object-fit: cover;
}

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

.category-overview-card p {
  margin: 0 0 12px;
  color: var(--slate-600);
  line-height: 1.7;
}

.detail-hero {
  background-image: linear-gradient(115deg, rgba(2, 6, 23, 0.97), rgba(15, 23, 42, 0.78), rgba(244, 63, 94, 0.36)), var(--detail-image);
  background-size: cover;
  background-position: center;
}

.detail-shade {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 22% 20%, rgba(249, 115, 22, 0.36), transparent 34%);
}

.detail-layout {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 310px minmax(0, 1fr);
  gap: 42px;
  align-items: center;
  padding: 82px 0;
}

.poster-card {
  overflow: hidden;
  border-radius: 30px;
  box-shadow: 0 35px 80px rgba(2, 6, 23, 0.55);
  aspect-ratio: 3 / 4.2;
}

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

.breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  color: rgba(255, 255, 255, 0.74);
  font-weight: 800;
}

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

.detail-copy h1 {
  margin: 18px 0;
  font-size: clamp(38px, 5vw, 72px);
  line-height: 1;
  letter-spacing: -0.06em;
}

.lead {
  max-width: 820px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 20px;
  line-height: 1.8;
}

.detail-meta span {
  color: #fff;
  background: rgba(255, 255, 255, 0.15);
  padding: 8px 12px;
  border-radius: 999px;
}

.detail-tags {
  margin-top: 18px;
}

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

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

.play-overlay {
  position: absolute;
  inset: 0;
  z-index: 5;
  border: 0;
  display: grid;
  place-items: center;
  gap: 14px;
  align-content: center;
  color: #fff;
  cursor: pointer;
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.62), rgba(244, 63, 94, 0.28));
}

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

.play-button {
  display: grid;
  place-items: center;
  width: 86px;
  height: 86px;
  border-radius: 50%;
  color: var(--orange);
  background: #fff;
  box-shadow: 0 20px 42px rgba(0, 0, 0, 0.35);
  font-size: 32px;
}

.play-overlay strong {
  font-size: 24px;
}

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

.content-card {
  padding: 28px;
}

.content-card h2 {
  margin: 0 0 14px;
  font-size: 28px;
}

.content-card p {
  margin: 0;
  color: var(--slate-700);
  line-height: 1.9;
  font-size: 17px;
}

.site-footer {
  color: #fff;
  background: linear-gradient(135deg, #020617, #0f172a, #1e293b);
  margin-top: 48px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr repeat(3, 1fr);
  gap: 34px;
  padding: 50px 0;
}

.site-footer h3 {
  margin: 0 0 12px;
  font-size: 24px;
  background: linear-gradient(90deg, #fb923c, #f472b6);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.site-footer h4 {
  margin: 0 0 14px;
  color: #fb923c;
}

.site-footer p {
  margin: 0;
  color: #cbd5e1;
  line-height: 1.75;
}

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

.footer-links a {
  color: #cbd5e1;
}

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

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

.is-hidden {
  display: none !important;
}

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

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

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

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

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

  .brand {
    font-size: 22px;
  }

  .hero-carousel,
  .hero-content {
    min-height: auto;
  }

  .hero-content,
  .detail-layout,
  .quick-card,
  .browse-tools,
  .detail-text,
  .footer-grid,
  .category-overview-card {
    grid-template-columns: 1fr;
  }

  .hero-content {
    padding: 70px 0 86px;
  }

  .hero-poster,
  .poster-card {
    max-width: 280px;
    margin: 0 auto;
  }

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

  .rank-row {
    grid-template-columns: 48px 86px minmax(0, 1fr);
  }

  .small-play {
    grid-column: 3;
    width: max-content;
  }

  .category-preview {
    max-width: 260px;
  }
}

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

  .nav-shell {
    height: 64px;
  }

  .brand-mark {
    width: 34px;
    height: 34px;
    border-radius: 13px;
  }

  .movie-grid,
  .category-grid,
  .category-overview-grid,
  .featured-ranking {
    grid-template-columns: 1fr;
  }

  .hero-copy p,
  .page-hero p,
  .lead {
    font-size: 17px;
  }

  .quick-card,
  .browse-tools,
  .content-card {
    padding: 18px;
    border-radius: 20px;
  }

  .section-block {
    padding: 44px 0;
  }

  .rank-row {
    grid-template-columns: 42px 72px minmax(0, 1fr);
    gap: 12px;
    padding: 12px;
  }

  .rank-thumb {
    width: 72px;
    height: 58px;
  }

  .rank-main h3 {
    font-size: 17px;
  }
}
