:root {
  --slate-950: #020617;
  --slate-900: #0f172a;
  --slate-800: #1e293b;
  --slate-700: #334155;
  --slate-600: #475569;
  --slate-100: #f1f5f9;
  --slate-50: #f8fafc;
  --amber-500: #f59e0b;
  --amber-600: #d97706;
  --red-500: #ef4444;
  --cyan-600: #0891b2;
  --white: #ffffff;
  --shadow: 0 20px 45px rgba(15, 23, 42, 0.14);
  --soft-shadow: 0 12px 28px rgba(15, 23, 42, 0.10);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--slate-900);
  background: linear-gradient(180deg, var(--slate-50), #eef2ff 48%, var(--slate-50));
}

img {
  max-width: 100%;
  height: auto;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  color: var(--white);
  background: linear-gradient(90deg, var(--slate-950), var(--slate-800), #431407);
  box-shadow: 0 12px 28px rgba(2, 6, 23, 0.25);
}

.site-nav {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  min-height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.site-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 21px;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.logo-mark {
  width: 34px;
  height: 34px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  background: linear-gradient(135deg, var(--red-500), var(--amber-500));
  box-shadow: 0 10px 25px rgba(245, 158, 11, 0.3);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 26px;
  font-weight: 650;
}

.nav-links a,
.mobile-panel a {
  transition: color 0.2s ease, transform 0.2s ease;
}

.nav-links a:hover,
.mobile-panel a:hover {
  color: #fbbf24;
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.08);
}

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

.mobile-panel {
  display: none;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 0 0 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

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

.hero-shell {
  position: relative;
  min-height: 630px;
  overflow: hidden;
  color: var(--white);
  background: var(--slate-950);
}

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

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  background-size: cover;
  background-position: center;
  transition: opacity 0.75s ease;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  align-items: center;
  gap: 52px;
  padding: 70px max(32px, calc((100vw - 1180px) / 2)) 120px;
}

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

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

.eyebrow {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 8px 14px;
  border-radius: 999px;
  color: #fde68a;
  background: rgba(245, 158, 11, 0.16);
  border: 1px solid rgba(245, 158, 11, 0.34);
  font-weight: 750;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-copy h1,
.page-hero h1,
.detail-copy h1 {
  margin: 22px 0 18px;
  font-size: clamp(38px, 6vw, 72px);
  line-height: 1.02;
  letter-spacing: -0.04em;
  font-weight: 900;
}

.hero-copy p,
.page-hero p,
.detail-copy p {
  max-width: 780px;
  color: rgba(255, 255, 255, 0.86);
  font-size: clamp(16px, 2vw, 21px);
  line-height: 1.85;
}

.hero-tags,
.tag-list,
.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-tags span,
.tag-list span,
.detail-meta span {
  display: inline-flex;
  padding: 7px 11px;
  border-radius: 999px;
  font-size: 13px;
  line-height: 1;
}

.hero-tags span {
  color: #fffbeb;
  background: rgba(255, 255, 255, 0.13);
  border: 1px solid rgba(255, 255, 255, 0.18);
}

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

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

.primary-button {
  color: var(--white);
  background: linear-gradient(135deg, var(--amber-500), var(--amber-600));
  box-shadow: 0 16px 30px rgba(245, 158, 11, 0.28);
}

.ghost-button {
  color: var(--white);
  background: rgba(255, 255, 255, 0.10);
  border: 1px solid rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(10px);
}

.primary-button:hover,
.ghost-button:hover,
.text-link:hover {
  transform: translateY(-2px);
}

.hero-poster {
  position: relative;
  min-height: 460px;
  border-radius: 28px;
  overflow: hidden;
  background: linear-gradient(145deg, #1e293b, #78350f);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
  transform: rotate(2deg);
}

.hero-poster img,
.poster-frame img,
.rank-cover img,
.detail-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-poster span {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 74px;
  height: 74px;
  transform: translate(-50%, -50%);
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding-left: 5px;
  color: var(--white);
  background: rgba(245, 158, 11, 0.95);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.30);
}

.hero-controls {
  position: absolute;
  left: 50%;
  bottom: 36px;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 18px;
  z-index: 5;
}

.hero-prev,
.hero-next,
.hero-dot {
  border: 0;
  color: var(--white);
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(12px);
  cursor: pointer;
}

.hero-prev,
.hero-next {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  font-size: 28px;
  line-height: 1;
}

.hero-dots {
  display: flex;
  align-items: center;
  gap: 9px;
}

.hero-dot {
  width: 10px;
  height: 10px;
  padding: 0;
  border-radius: 999px;
  transition: width 0.25s ease, background 0.25s ease;
}

.hero-dot.active {
  width: 32px;
  background: var(--amber-500);
}

.hero-search {
  position: absolute;
  left: 50%;
  bottom: 96px;
  z-index: 6;
  width: min(760px, calc(100% - 36px));
  transform: translateX(-50%);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 20px;
  background: rgba(15, 23, 42, 0.70);
  backdrop-filter: blur(16px);
  box-shadow: 0 22px 55px rgba(0, 0, 0, 0.24);
}

.hero-search input,
.filter-panel input,
.filter-panel select {
  min-height: 46px;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 0 15px;
  font: inherit;
  outline: none;
  background: var(--white);
}

.hero-search button {
  border: 0;
  border-radius: 14px;
  padding: 0 20px;
  color: var(--white);
  font-weight: 800;
  background: var(--amber-500);
  cursor: pointer;
}

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

.tinted-section {
  width: 100%;
  max-width: none;
  padding: 74px max(16px, calc((100vw - 1180px) / 2));
  background: linear-gradient(90deg, #eff6ff, #ecfeff);
}

.section-heading {
  margin-bottom: 32px;
}

.section-heading h2 {
  display: inline-flex;
  align-items: center;
  margin: 0;
  font-size: clamp(28px, 4vw, 42px);
  color: var(--slate-900);
  font-weight: 900;
  letter-spacing: -0.03em;
}

.heading-icon {
  display: inline-flex;
  width: 42px;
  height: 42px;
  margin-right: 12px;
  border-radius: 14px;
  align-items: center;
  justify-content: center;
  color: var(--white);
  background: linear-gradient(135deg, var(--red-500), var(--amber-500));
}

.section-heading p {
  max-width: 720px;
  margin: 10px 0 0 54px;
  color: var(--slate-600);
  line-height: 1.8;
}

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

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

.movie-card {
  position: relative;
  border-radius: 22px;
  overflow: hidden;
  background: var(--white);
  box-shadow: var(--soft-shadow);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.movie-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow);
}

.poster-frame {
  position: relative;
  height: 260px;
  overflow: hidden;
  background: linear-gradient(135deg, #172554, #78350f);
}

.compact-card .poster-frame {
  height: 210px;
}

.poster-frame img {
  transition: transform 0.45s ease, opacity 0.25s ease;
}

.movie-card:hover .poster-frame img {
  transform: scale(1.06);
}

.year-badge,
.play-dot {
  position: absolute;
  z-index: 2;
}

.year-badge {
  top: 12px;
  right: 12px;
  padding: 6px 10px;
  border-radius: 999px;
  color: var(--white);
  background: rgba(245, 158, 11, 0.94);
  font-size: 13px;
  font-weight: 800;
}

.play-dot {
  left: 50%;
  top: 50%;
  width: 52px;
  height: 52px;
  transform: translate(-50%, -50%) scale(0.84);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding-left: 4px;
  border-radius: 999px;
  color: var(--white);
  opacity: 0;
  background: rgba(245, 158, 11, 0.94);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

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

.movie-content {
  padding: 18px;
}

.movie-content h3 {
  margin: 0 0 10px;
  min-height: 48px;
  display: -webkit-box;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  color: var(--slate-900);
  font-size: 19px;
  line-height: 1.35;
  font-weight: 850;
}

.compact-card .movie-content h3 {
  min-height: 42px;
  font-size: 16px;
}

.movie-content p {
  min-height: 48px;
  margin: 0 0 14px;
  color: var(--slate-600);
  display: -webkit-box;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  line-height: 1.65;
}

.compact-card .movie-content p {
  font-size: 14px;
}

.movie-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 13px;
  color: var(--slate-600);
  font-size: 13px;
}

.movie-meta span {
  padding: 4px 9px;
  border-radius: 999px;
  background: var(--slate-100);
}

.tag-list span {
  color: #92400e;
  background: #fffbeb;
}

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

.category-card,
.category-overview-card {
  min-height: 160px;
  padding: 22px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: var(--soft-shadow);
  border: 1px solid rgba(226, 232, 240, 0.9);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.category-card:hover,
.category-overview-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow);
}

.category-card span,
.category-head h2 {
  display: block;
  margin: 0 0 8px;
  color: var(--slate-900);
  font-size: 22px;
  font-weight: 900;
}

.category-card strong,
.category-head p {
  display: block;
  color: var(--slate-600);
  font-weight: 500;
  line-height: 1.7;
}

.category-card em {
  display: block;
  margin-top: 16px;
  color: var(--amber-600);
  font-style: normal;
  font-weight: 800;
}

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

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

.category-samples a {
  color: var(--slate-700);
}

.text-link {
  min-height: 40px;
  color: var(--amber-600);
  background: #fffbeb;
}

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

.rank-row {
  display: grid;
  grid-template-columns: 56px 74px minmax(0, 1fr) auto 72px;
  align-items: center;
  gap: 16px;
  padding: 12px 16px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.rank-row:hover {
  transform: translateY(-3px);
  box-shadow: var(--soft-shadow);
}

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

.rank-cover {
  width: 74px;
  height: 96px;
  overflow: hidden;
  border-radius: 14px;
  background: linear-gradient(135deg, #172554, #78350f);
}

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

.rank-info strong {
  margin-bottom: 6px;
  color: var(--slate-900);
  font-size: 18px;
}

.rank-info em {
  color: var(--slate-600);
  font-style: normal;
  line-height: 1.65;
}

.rank-meta {
  color: var(--slate-600);
  white-space: nowrap;
}

.rank-heat {
  color: var(--amber-600);
  font-weight: 900;
  text-align: right;
}

.center-action {
  justify-content: center;
}

.page-hero {
  position: relative;
  padding: 92px max(24px, calc((100vw - 1180px) / 2));
  color: var(--white);
  background: linear-gradient(135deg, var(--slate-950), #1e293b 60%, #78350f);
  overflow: hidden;
}

.simple-hero:after,
.category-hero:after,
.rank-hero:after {
  content: "";
  position: absolute;
  inset: auto -10% -80px auto;
  width: 360px;
  height: 360px;
  border-radius: 999px;
  background: rgba(245, 158, 11, 0.22);
  filter: blur(3px);
}

.filter-panel {
  position: sticky;
  top: 86px;
  z-index: 20;
  display: grid;
  grid-template-columns: 1.6fr repeat(3, minmax(150px, 1fr));
  gap: 12px;
  margin-bottom: 28px;
  padding: 14px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.84);
  box-shadow: var(--soft-shadow);
  backdrop-filter: blur(12px);
}

.filter-panel label {
  display: grid;
  gap: 6px;
  color: var(--slate-600);
  font-size: 13px;
  font-weight: 700;
}

.detail-hero {
  min-height: 560px;
  display: grid;
  grid-template-columns: 310px minmax(0, 1fr);
  gap: 52px;
  align-items: center;
  padding: 82px max(24px, calc((100vw - 1180px) / 2));
  color: var(--white);
  background-size: cover;
  background-position: center;
}

.detail-poster {
  height: 440px;
  overflow: hidden;
  border-radius: 28px;
  background: linear-gradient(135deg, #172554, #78350f);
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.38);
}

.crumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 9px;
  color: rgba(255, 255, 255, 0.75);
  font-weight: 700;
}

.crumbs a:hover {
  color: #fbbf24;
}

.detail-meta {
  margin: 20px 0;
}

.detail-meta span {
  color: #e2e8f0;
  background: rgba(255, 255, 255, 0.12);
}

.watch-section {
  width: min(1180px, calc(100% - 32px));
  margin: -72px auto 0;
  position: relative;
  z-index: 3;
}

.player-card {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  background: #020617;
  box-shadow: 0 30px 80px rgba(15, 23, 42, 0.34);
}

.movie-player {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
}

.play-overlay {
  position: absolute;
  inset: 0;
  border: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle, rgba(15, 23, 42, 0.22), rgba(15, 23, 42, 0.58));
  cursor: pointer;
}

.play-overlay span {
  width: 90px;
  height: 90px;
  padding-left: 7px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 32px;
  background: linear-gradient(135deg, var(--amber-500), var(--red-500));
  box-shadow: 0 24px 52px rgba(0, 0, 0, 0.34);
}

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

.detail-section {
  padding-top: 56px;
}

.detail-article {
  display: grid;
  gap: 16px;
  padding: 34px;
  border-radius: 26px;
  background: var(--white);
  box-shadow: var(--soft-shadow);
}

.detail-article h2 {
  margin: 0;
  color: var(--slate-900);
  font-size: 26px;
  font-weight: 900;
}

.detail-article p {
  margin: 0 0 14px;
  color: var(--slate-700);
  font-size: 17px;
  line-height: 2;
}

.site-footer {
  margin-top: 70px;
  color: #cbd5e1;
  background: linear-gradient(180deg, var(--slate-900), #000000);
}

.footer-inner {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 52px 0 34px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 32px;
}

.footer-inner h2 {
  margin: 0 0 12px;
  color: var(--white);
  font-size: 24px;
}

.footer-inner p {
  max-width: 560px;
  margin: 0;
  line-height: 1.8;
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(2, max-content);
  gap: 10px 24px;
}

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

.footer-bottom {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 18px 0 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.10);
  font-size: 14px;
}

.filter-item.is-hidden {
  display: none;
}

@media (max-width: 1024px) {
  .hero-slide {
    grid-template-columns: 1fr;
    padding-top: 52px;
  }

  .hero-poster {
    display: none;
  }

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

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

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

  .detail-poster {
    height: 330px;
  }

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

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

  .rank-meta {
    display: none;
  }
}

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

  .nav-toggle {
    display: block;
  }

  .hero-shell,
  .hero-slider {
    min-height: 720px;
  }

  .hero-slide {
    padding: 52px 18px 150px;
  }

  .hero-search {
    bottom: 92px;
    grid-template-columns: 1fr;
  }

  .hero-controls {
    bottom: 32px;
  }

  .content-section,
  .watch-section {
    width: min(100% - 24px, 1180px);
  }

  .content-section {
    padding: 50px 0;
  }

  .section-heading p {
    margin-left: 0;
  }

  .movie-grid,
  .compact-grid,
  .library-grid,
  .category-grid,
  .category-overview-grid {
    grid-template-columns: 1fr;
  }

  .poster-frame,
  .compact-card .poster-frame {
    height: 330px;
  }

  .filter-panel {
    position: static;
    grid-template-columns: 1fr;
  }

  .page-hero {
    padding: 62px 18px;
  }

  .detail-hero {
    grid-template-columns: 1fr;
    padding: 46px 18px 112px;
  }

  .detail-poster {
    max-width: 270px;
    height: 370px;
  }

  .watch-section {
    margin-top: -66px;
  }

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

  .rank-cover {
    display: none;
  }

  .rank-info em {
    display: none;
  }

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

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