:root {
  --slate-950: #020617;
  --slate-900: #0f172a;
  --slate-850: #111c31;
  --slate-800: #1e293b;
  --slate-700: #334155;
  --slate-600: #475569;
  --slate-500: #64748b;
  --slate-300: #cbd5e1;
  --slate-200: #e2e8f0;
  --slate-100: #f1f5f9;
  --slate-50: #f8fafc;
  --amber-700: #b45309;
  --amber-600: #d97706;
  --amber-500: #f59e0b;
  --amber-400: #fbbf24;
  --amber-100: #fef3c7;
  --amber-50: #fffbeb;
  --cyan-600: #0891b2;
  --emerald-600: #059669;
  --red-500: #ef4444;
  --white: #ffffff;
  --shadow-lg: 0 10px 15px -3px rgb(15 23 42 / 0.12), 0 4px 6px -4px rgb(15 23 42 / 0.12);
  --shadow-xl: 0 20px 25px -5px rgb(15 23 42 / 0.18), 0 8px 10px -6px rgb(15 23 42 / 0.12);
  --shadow-2xl: 0 25px 50px -12px rgb(15 23 42 / 0.28);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", Arial, sans-serif;
  color: var(--slate-800);
  background: linear-gradient(180deg, var(--slate-50) 0%, var(--slate-100) 100%);
  line-height: 1.6;
}

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

img,
video {
  display: block;
  width: 100%;
}

button,
input,
select {
  font: inherit;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  color: var(--white);
  background: linear-gradient(90deg, var(--slate-900), var(--slate-800), var(--slate-900));
  box-shadow: var(--shadow-lg);
}

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

.logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: max-content;
}

.logo-mark {
  width: 38px;
  height: 38px;
  display: inline-grid;
  place-items: center;
  border-radius: 12px;
  color: var(--slate-950);
  background: linear-gradient(135deg, var(--amber-400), var(--amber-600));
  box-shadow: 0 10px 30px rgb(245 158 11 / 0.32);
}

.logo-title {
  display: block;
  font-size: 22px;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.logo-subtitle {
  display: block;
  margin-top: 3px;
  color: var(--slate-300);
  font-size: 12px;
}

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

.nav-links a {
  color: var(--slate-100);
  transition: color 0.2s ease;
}

.nav-links a:hover,
.nav-links a.is-active {
  color: var(--amber-400);
}

.mobile-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 12px;
  color: var(--white);
  background: rgb(255 255 255 / 0.08);
  cursor: pointer;
}

.mobile-nav {
  display: none;
  padding: 0 0 18px;
  border-top: 1px solid rgb(255 255 255 / 0.10);
}

.mobile-nav a {
  display: block;
  padding: 12px 0;
  color: var(--slate-100);
  font-weight: 600;
}

.mobile-nav a:hover {
  color: var(--amber-400);
}

.hero-carousel {
  position: relative;
  min-height: 560px;
  overflow: hidden;
  color: var(--white);
  background: linear-gradient(120deg, var(--slate-950), var(--slate-800), #78350f);
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.75s ease, transform 0.75s ease;
  transform: scale(1.01);
}

.hero-slide.is-active {
  opacity: 1;
  pointer-events: auto;
  transform: scale(1);
}

.hero-image {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.34;
  filter: saturate(1.08);
}

.hero-slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 70% 30%, rgb(245 158 11 / 0.28), transparent 38%),
    linear-gradient(90deg, rgb(2 6 23 / 0.88) 0%, rgb(15 23 42 / 0.74) 42%, rgb(15 23 42 / 0.24) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  min-height: 560px;
  display: flex;
  align-items: center;
}

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

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  padding: 8px 12px;
  border: 1px solid rgb(255 255 255 / 0.18);
  border-radius: 999px;
  color: var(--amber-100);
  background: rgb(255 255 255 / 0.10);
  backdrop-filter: blur(12px);
  font-size: 14px;
  font-weight: 700;
}

.hero-copy h1,
.hero-copy h2 {
  margin: 0 0 20px;
  font-size: clamp(38px, 7vw, 72px);
  line-height: 1.05;
  letter-spacing: -0.05em;
}

.hero-copy h2 {
  font-size: clamp(34px, 6vw, 60px);
}

.hero-subtitle {
  display: block;
  margin-top: 12px;
  color: var(--amber-400);
  font-size: clamp(20px, 3vw, 32px);
  letter-spacing: -0.02em;
}

.hero-copy p {
  max-width: 680px;
  margin: 0 0 28px;
  color: var(--slate-200);
  font-size: 19px;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 28px;
}

.meta-pill,
.tag-pill {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 6px 12px;
  border-radius: 999px;
  color: var(--amber-700);
  background: var(--amber-50);
  font-size: 13px;
  font-weight: 700;
}

.hero-meta .meta-pill {
  color: var(--white);
  background: rgb(255 255 255 / 0.14);
  border: 1px solid rgb(255 255 255 / 0.18);
}

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

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

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

.btn-primary {
  color: var(--white);
  background: var(--amber-500);
  box-shadow: 0 12px 28px rgb(245 158 11 / 0.30);
}

.btn-primary:hover {
  background: var(--amber-600);
}

.btn-soft {
  color: var(--white);
  background: rgb(255 255 255 / 0.12);
  border: 1px solid rgb(255 255 255 / 0.18);
  backdrop-filter: blur(12px);
}

.btn-light {
  color: var(--slate-900);
  background: var(--white);
  box-shadow: var(--shadow-lg);
}

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

.hero-dot {
  width: 36px;
  height: 8px;
  border: 0;
  border-radius: 999px;
  background: rgb(255 255 255 / 0.30);
  cursor: pointer;
  transition: width 0.2s ease, background 0.2s ease;
}

.hero-dot.is-active {
  width: 56px;
  background: var(--amber-400);
}

.section {
  padding: 72px 0;
}

.section-muted {
  background: linear-gradient(90deg, #eff6ff, #ecfeff);
}

.section-green {
  background: linear-gradient(90deg, #ecfdf5, #f0fdfa);
}

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

.section-kicker {
  display: inline-flex;
  align-items: center;
  margin-bottom: 8px;
  color: var(--amber-600);
  font-weight: 800;
}

.section-heading h2,
.page-hero h1,
.content-card h1,
.content-card h2 {
  margin: 0;
  color: var(--slate-800);
  line-height: 1.18;
  letter-spacing: -0.03em;
}

.section-heading h2 {
  font-size: clamp(28px, 4vw, 40px);
}

.section-heading p,
.page-hero p {
  max-width: 720px;
  margin: 8px 0 0;
  color: var(--slate-600);
}

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

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

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

.movie-card {
  min-width: 0;
}

.movie-card-link {
  display: flex;
  height: 100%;
  flex-direction: column;
  overflow: hidden;
  border-radius: 18px;
  background: var(--white);
  box-shadow: var(--shadow-lg);
  transition: transform 0.28s ease, box-shadow 0.28s ease;
}

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

.movie-poster {
  position: relative;
  height: 290px;
  overflow: hidden;
  background: linear-gradient(135deg, var(--slate-800), var(--slate-900));
}

.featured-grid .movie-poster {
  height: 250px;
}

.compact-grid .movie-poster {
  height: 230px;
}

.movie-poster img {
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease, filter 0.5s ease;
}

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

.movie-poster::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 34%, rgb(0 0 0 / 0.66) 100%);
}

.movie-badge {
  position: absolute;
  z-index: 2;
  top: 12px;
  right: 12px;
  padding: 5px 10px;
  border-radius: 999px;
  color: var(--white);
  background: var(--amber-500);
  font-size: 13px;
  font-weight: 800;
}

.movie-play {
  position: absolute;
  z-index: 3;
  left: 50%;
  top: 50%;
  width: 62px;
  height: 62px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: var(--white);
  background: var(--amber-500);
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.84);
  transition: opacity 0.25s ease, transform 0.25s ease;
  box-shadow: 0 20px 40px rgb(0 0 0 / 0.22);
}

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

.movie-poster-title {
  position: absolute;
  z-index: 2;
  left: 16px;
  right: 16px;
  bottom: 14px;
  color: var(--white);
  font-size: 18px;
  font-weight: 800;
  line-height: 1.25;
}

.movie-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 18px;
}

.movie-body h3 {
  margin: 0 0 8px;
  color: var(--slate-800);
  font-size: 18px;
  line-height: 1.35;
  transition: color 0.2s ease;
}

.movie-card-link:hover .movie-body h3 {
  color: var(--amber-700);
}

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

.movie-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto;
  color: var(--slate-500);
  font-size: 13px;
  font-weight: 700;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

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

.category-card {
  position: relative;
  min-height: 220px;
  overflow: hidden;
  border-radius: 22px;
  color: var(--white);
  background: linear-gradient(135deg, var(--slate-900), var(--slate-700));
  box-shadow: var(--shadow-lg);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.category-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-2xl);
}

.category-card-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.34;
  transition: transform 0.5s ease;
}

.category-card:hover .category-card-bg {
  transform: scale(1.08);
}

.category-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgb(0 0 0 / 0.20), rgb(0 0 0 / 0.78));
}

.category-card-content {
  position: absolute;
  z-index: 2;
  left: 20px;
  right: 20px;
  bottom: 20px;
}

.category-card h3 {
  margin: 0 0 8px;
  font-size: 24px;
}

.category-card p {
  margin: 0;
  color: rgb(255 255 255 / 0.82);
  font-size: 14px;
}

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

.rank-item {
  display: grid;
  grid-template-columns: 58px 112px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  padding: 12px;
  border-radius: 18px;
  background: var(--white);
  box-shadow: var(--shadow-lg);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.rank-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
}

.rank-num {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  color: var(--white);
  background: linear-gradient(135deg, var(--red-500), var(--amber-500));
  font-size: 22px;
  font-weight: 900;
}

.rank-cover {
  height: 72px;
  overflow: hidden;
  border-radius: 12px;
  background: var(--slate-800);
}

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

.rank-info h3 {
  margin: 0 0 6px;
  color: var(--slate-800);
  font-size: 17px;
  line-height: 1.3;
}

.rank-info p {
  display: -webkit-box;
  margin: 0;
  overflow: hidden;
  color: var(--slate-600);
  font-size: 13px;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.page-hero {
  padding: 68px 0 40px;
  background:
    radial-gradient(circle at 84% 10%, rgb(245 158 11 / 0.16), transparent 32%),
    linear-gradient(180deg, var(--white), var(--slate-50));
}

.page-hero h1 {
  font-size: clamp(34px, 5vw, 54px);
}

.toolbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 210px;
  gap: 16px;
  margin: 0 0 28px;
}

.search-box,
.filter-box {
  width: 100%;
  min-height: 48px;
  padding: 0 16px;
  border: 1px solid var(--slate-200);
  border-radius: 14px;
  color: var(--slate-800);
  background: var(--white);
  box-shadow: 0 4px 16px rgb(15 23 42 / 0.05);
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.search-box:focus,
.filter-box:focus {
  border-color: var(--amber-500);
  box-shadow: 0 0 0 4px rgb(245 158 11 / 0.12);
}

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

.content-card {
  border-radius: 22px;
  background: var(--white);
  box-shadow: var(--shadow-lg);
  padding: 28px;
}

.content-card + .content-card {
  margin-top: 22px;
}

.content-card h1 {
  font-size: clamp(30px, 4vw, 44px);
  margin-bottom: 18px;
}

.content-card h2 {
  margin: 0 0 12px;
  font-size: 24px;
}

.content-card p {
  margin: 0 0 18px;
  color: var(--slate-600);
}

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 0 0 24px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--slate-200);
}

.detail-meta span {
  padding: 8px 12px;
  border-radius: 999px;
  color: var(--slate-700);
  background: var(--slate-100);
  font-weight: 700;
  font-size: 14px;
}

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

.breadcrumb a {
  color: var(--amber-700);
  font-weight: 700;
}

.player-section {
  padding: 38px 0;
  background: linear-gradient(180deg, var(--slate-950), var(--slate-900));
}

.player-frame {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border-radius: 24px;
  background: #000000;
  box-shadow: 0 28px 70px rgb(0 0 0 / 0.40);
}

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

.play-cover {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  overflow: hidden;
  background-size: cover;
  background-position: center;
  cursor: pointer;
}

.play-cover::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 50% 50%, rgb(245 158 11 / 0.22), transparent 28%),
    linear-gradient(180deg, rgb(2 6 23 / 0.40), rgb(2 6 23 / 0.82));
}

.play-button {
  position: relative;
  z-index: 2;
  width: 86px;
  height: 86px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 999px;
  color: var(--white);
  background: var(--amber-500);
  box-shadow: 0 20px 60px rgb(245 158 11 / 0.42);
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease;
}

.play-button:hover {
  transform: scale(1.08);
  background: var(--amber-600);
}

.play-title {
  position: absolute;
  z-index: 2;
  left: 28px;
  right: 28px;
  bottom: 24px;
  color: var(--white);
}

.play-title strong {
  display: block;
  margin-bottom: 4px;
  font-size: clamp(22px, 3vw, 34px);
  line-height: 1.15;
}

.play-title span {
  color: var(--slate-200);
}

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

.related-link {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 10px;
  border-radius: 16px;
  transition: background 0.2s ease;
}

.related-link:hover {
  background: var(--slate-50);
}

.related-cover {
  height: 76px;
  overflow: hidden;
  border-radius: 12px;
  background: var(--slate-800);
}

.related-cover img {
  height: 100%;
  object-fit: cover;
}

.related-info h3 {
  display: -webkit-box;
  margin: 0 0 6px;
  overflow: hidden;
  color: var(--slate-800);
  font-size: 15px;
  line-height: 1.35;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.related-info span {
  color: var(--slate-500);
  font-size: 13px;
  font-weight: 700;
}

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

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 32px;
  padding: 46px 0 30px;
}

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

.footer-grid p,
.footer-grid li {
  color: var(--slate-300);
  font-size: 14px;
}

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

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

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

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 22px 0;
  border-top: 1px solid rgb(255 255 255 / 0.10);
  color: var(--slate-500);
  font-size: 14px;
}

.empty-result {
  display: none;
  padding: 28px;
  border-radius: 18px;
  color: var(--slate-600);
  background: var(--white);
  box-shadow: var(--shadow-lg);
}

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

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

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

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

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

  .mobile-nav.is-open {
    display: block;
  }

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

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

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

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

  .rank-cover {
    height: 66px;
  }
}

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

  .header-inner {
    min-height: 68px;
  }

  .logo-title {
    font-size: 18px;
  }

  .logo-subtitle {
    display: none;
  }

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

  .hero-copy {
    padding: 68px 0 96px;
  }

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

  .section {
    padding: 54px 0;
  }

  .section-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .movie-grid,
  .movie-grid.featured-grid,
  .movie-grid.compact-grid,
  .category-grid,
  .rank-list {
    grid-template-columns: 1fr;
  }

  .movie-poster,
  .featured-grid .movie-poster,
  .compact-grid .movie-poster {
    height: 260px;
  }

  .content-card {
    padding: 20px;
  }

  .related-link {
    grid-template-columns: 104px minmax(0, 1fr);
  }

  .footer-bottom {
    align-items: flex-start;
    flex-direction: column;
  }
}
