:root {
  --color-orange: #f97316;
  --color-orange-dark: #ea580c;
  --color-red: #ef4444;
  --color-green: #16a34a;
  --color-blue: #2563eb;
  --color-purple: #7c3aed;
  --color-gray-50: #f9fafb;
  --color-gray-100: #f3f4f6;
  --color-gray-200: #e5e7eb;
  --color-gray-300: #d1d5db;
  --color-gray-500: #6b7280;
  --color-gray-600: #4b5563;
  --color-gray-700: #374151;
  --color-gray-800: #1f2937;
  --color-gray-900: #111827;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.08);
  --shadow-md: 0 8px 24px rgba(15, 23, 42, 0.12);
  --shadow-xl: 0 24px 60px rgba(15, 23, 42, 0.18);
  --radius-lg: 18px;
  --radius-xl: 26px;
  --container: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", Arial, sans-serif;
  color: var(--color-gray-900);
  background: var(--color-gray-50);
}

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

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

button,
input,
select {
  font: inherit;
}

.container {
  width: min(100% - 32px, var(--container));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid rgba(229, 231, 235, 0.9);
  box-shadow: 0 4px 18px rgba(15, 23, 42, 0.07);
  backdrop-filter: blur(16px);
}

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

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 24px;
  line-height: 1;
  font-weight: 800;
  color: var(--color-gray-900);
  letter-spacing: -0.03em;
}

.logo-mark {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: linear-gradient(135deg, var(--color-orange), var(--color-red));
  border-radius: 12px;
  box-shadow: 0 10px 24px rgba(249, 115, 22, 0.32);
}

.logo:hover {
  color: var(--color-orange-dark);
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 22px;
  color: var(--color-gray-700);
  font-weight: 650;
}

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

.desktop-nav a:hover {
  color: var(--color-orange-dark);
}

.nav-pill {
  padding: 9px 14px;
  color: #fff;
  background: linear-gradient(135deg, var(--color-orange), var(--color-red));
  border-radius: 999px;
  box-shadow: 0 10px 22px rgba(249, 115, 22, 0.22);
}

.nav-pill:hover {
  color: #fff;
  transform: translateY(-1px);
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 12px;
  color: var(--color-gray-900);
  background: var(--color-gray-100);
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 4px auto;
  background: currentColor;
  border-radius: 999px;
}

.mobile-nav {
  display: none;
  padding: 0 0 16px;
}

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

.mobile-nav a {
  padding: 12px 14px;
  color: var(--color-gray-700);
  background: #fff;
  border-radius: 12px;
}

.mobile-nav a:hover {
  color: var(--color-orange-dark);
  background: #fff7ed;
}

.hero {
  position: relative;
  overflow: hidden;
  color: #fff;
  background: radial-gradient(circle at 10% 20%, rgba(255, 237, 213, 0.26), transparent 32%), linear-gradient(135deg, #fb923c 0%, #f97316 45%, #ef4444 100%);
}

.hero::before,
.hero::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  pointer-events: none;
}

.hero::before {
  width: 480px;
  height: 480px;
  left: -160px;
  top: -180px;
  background: rgba(255, 255, 255, 0.12);
}

.hero::after {
  width: 380px;
  height: 380px;
  right: -120px;
  bottom: -160px;
  background: rgba(17, 24, 39, 0.16);
}

.hero-inner {
  position: relative;
  z-index: 1;
  min-height: 610px;
  padding: 74px 0 64px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 420px;
  gap: 46px;
  align-items: center;
}

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

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 18px;
  padding: 9px 16px;
  color: #fff;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 999px;
  backdrop-filter: blur(12px);
}

.hero h1,
.page-hero h1,
.detail-title {
  margin: 0;
  font-weight: 850;
  letter-spacing: -0.045em;
}

.hero h1 {
  max-width: 760px;
  font-size: clamp(42px, 6vw, 72px);
  line-height: 1.04;
}

.hero-description {
  max-width: 680px;
  margin: 24px 0 30px;
  font-size: clamp(18px, 2vw, 24px);
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.9);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 24px;
}

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

.button-primary {
  color: var(--color-orange-dark);
  background: #fff;
  box-shadow: 0 16px 34px rgba(15, 23, 42, 0.18);
}

.button-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.24);
}

.button-ghost {
  color: #fff;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.26);
}

.button-ghost:hover {
  background: rgba(255, 255, 255, 0.26);
  transform: translateY(-2px);
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-badge {
  padding: 9px 14px;
  color: #fff;
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  backdrop-filter: blur(10px);
}

.hero-showcase {
  position: relative;
}

.hero-slider {
  position: relative;
  height: 520px;
  border-radius: 32px;
  overflow: hidden;
  background: rgba(17, 24, 39, 0.32);
  box-shadow: var(--shadow-xl);
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: scale(1.02);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

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

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 12%, rgba(17, 24, 39, 0.2) 46%, rgba(17, 24, 39, 0.92));
}

.hero-slide-content {
  position: absolute;
  left: 24px;
  right: 24px;
  bottom: 24px;
  z-index: 1;
}

.hero-slide-content h2 {
  margin: 10px 0 8px;
  font-size: 28px;
  line-height: 1.2;
}

.hero-slide-content p {
  margin: 0 0 16px;
  color: rgba(255, 255, 255, 0.84);
  line-height: 1.65;
}

.hero-dots {
  position: absolute;
  left: 24px;
  top: 24px;
  z-index: 3;
  display: flex;
  gap: 8px;
}

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

.hero-dot.is-active {
  width: 28px;
  background: #fff;
}

.quick-search {
  display: flex;
  max-width: 560px;
  padding: 7px;
  margin: 0 0 22px;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 999px;
  backdrop-filter: blur(12px);
}

.quick-search input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  color: #fff;
  background: transparent;
  padding: 0 16px;
}

.quick-search input::placeholder {
  color: rgba(255, 255, 255, 0.78);
}

.quick-search button {
  white-space: nowrap;
}

.section {
  padding: 58px 0;
}

.section-white {
  background: #fff;
}

.section-soft {
  background: linear-gradient(135deg, #eff6ff, #eef2ff);
}

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

.section-title {
  margin: 0;
  font-size: clamp(28px, 4vw, 40px);
  line-height: 1.18;
  font-weight: 850;
  letter-spacing: -0.035em;
}

.section-subtitle {
  margin: 8px 0 0;
  max-width: 720px;
  color: var(--color-gray-600);
  line-height: 1.7;
}

.section-link {
  color: var(--color-orange-dark);
  font-weight: 800;
}

.featured-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 24px;
}

.stack-grid {
  display: grid;
  gap: 24px;
}

.movie-card {
  position: relative;
  overflow: hidden;
  background: #fff;
  border: 1px solid rgba(229, 231, 235, 0.76);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.movie-card:hover {
  transform: translateY(-5px);
  border-color: rgba(249, 115, 22, 0.28);
  box-shadow: var(--shadow-md);
}

.movie-card-cover {
  position: relative;
  display: block;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: linear-gradient(135deg, #fed7aa, #fee2e2);
}

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

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

.movie-card-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent, rgba(17, 24, 39, 0.44));
  opacity: 0;
  transition: opacity 0.25s ease;
}

.movie-card:hover .movie-card-cover::after {
  opacity: 1;
}

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

.movie-card h3 {
  margin: 0 0 10px;
  font-size: 18px;
  line-height: 1.35;
}

.movie-card p {
  margin: 0 0 14px;
  color: var(--color-gray-600);
  line-height: 1.7;
}

.movie-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  color: var(--color-gray-600);
  font-size: 14px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  color: var(--color-orange-dark);
  background: #fff7ed;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
}

.badge-red {
  color: #fff;
  background: var(--color-red);
}

.badge-green {
  color: #fff;
  background: var(--color-green);
}

.badge-dark {
  color: #fff;
  background: rgba(17, 24, 39, 0.76);
}

.card-featured {
  min-height: 100%;
}

.card-featured .movie-card-cover {
  aspect-ratio: 16 / 11;
}

.card-featured h3 {
  font-size: 28px;
}

.grid {
  display: grid;
  gap: 24px;
}

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

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

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

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

.category-tile {
  position: relative;
  overflow: hidden;
  min-height: 148px;
  padding: 22px;
  color: #fff;
  background: linear-gradient(135deg, #2563eb, #7c3aed);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

.category-tile:nth-child(3n + 1) {
  background: linear-gradient(135deg, #f97316, #ef4444);
}

.category-tile:nth-child(3n + 2) {
  background: linear-gradient(135deg, #16a34a, #0891b2);
}

.category-tile h3 {
  position: relative;
  z-index: 1;
  margin: 0 0 10px;
  font-size: 22px;
}

.category-tile p {
  position: relative;
  z-index: 1;
  margin: 0;
  color: rgba(255, 255, 255, 0.84);
  line-height: 1.65;
}

.category-tile::after {
  content: "";
  position: absolute;
  width: 140px;
  height: 140px;
  right: -54px;
  bottom: -54px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
}

.ranking-list {
  display: grid;
  gap: 16px;
}

.ranking-item {
  display: grid;
  grid-template-columns: 72px 116px 1fr auto;
  gap: 18px;
  align-items: center;
  padding: 14px;
  background: #fff;
  border: 1px solid rgba(229, 231, 235, 0.76);
  border-radius: 18px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.ranking-item:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.rank-number {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  color: #fff;
  font-size: 22px;
  font-weight: 900;
  background: linear-gradient(135deg, var(--color-orange), var(--color-red));
  border-radius: 16px;
}

.ranking-cover {
  width: 116px;
  height: 82px;
  overflow: hidden;
  border-radius: 14px;
  background: linear-gradient(135deg, #fed7aa, #fee2e2);
}

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

.ranking-title {
  margin: 0 0 8px;
  font-size: 19px;
}

.ranking-desc {
  margin: 0;
  color: var(--color-gray-600);
  line-height: 1.6;
}

.page-hero {
  color: #fff;
  padding: 58px 0;
  background: linear-gradient(135deg, var(--color-orange), var(--color-red));
}

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

.page-hero p {
  max-width: 760px;
  margin: 16px 0 0;
  color: rgba(255, 255, 255, 0.88);
  line-height: 1.75;
  font-size: 18px;
}

.filter-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 180px 160px 180px;
  gap: 14px;
  padding: 18px;
  margin-bottom: 28px;
  background: #fff;
  border: 1px solid rgba(229, 231, 235, 0.8);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.filter-panel input,
.filter-panel select {
  width: 100%;
  min-height: 46px;
  padding: 0 14px;
  color: var(--color-gray-800);
  background: var(--color-gray-50);
  border: 1px solid var(--color-gray-200);
  border-radius: 13px;
  outline: 0;
}

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

.empty-state {
  display: none;
  padding: 52px 24px;
  color: var(--color-gray-500);
  text-align: center;
  background: #fff;
  border: 1px solid var(--color-gray-200);
  border-radius: var(--radius-lg);
}

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

.detail-hero {
  color: #fff;
  background: radial-gradient(circle at 20% 20%, rgba(255, 237, 213, 0.24), transparent 28%), linear-gradient(135deg, #111827, #1f2937 45%, #fb923c);
}

.detail-hero-inner {
  display: grid;
  grid-template-columns: 370px minmax(0, 1fr);
  gap: 44px;
  align-items: center;
  padding: 58px 0;
}

.detail-cover {
  overflow: hidden;
  border-radius: 28px;
  background: linear-gradient(135deg, #fed7aa, #fee2e2);
  box-shadow: var(--shadow-xl);
}

.detail-cover img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 14px;
}

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

.detail-title {
  font-size: clamp(36px, 5vw, 62px);
  line-height: 1.08;
}

.detail-intro {
  max-width: 780px;
  margin: 22px 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: 19px;
  line-height: 1.8;
}

.detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 22px 0;
}

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

.content-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 32px;
  align-items: start;
}

.panel {
  padding: 28px;
  background: #fff;
  border: 1px solid rgba(229, 231, 235, 0.82);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.panel + .panel {
  margin-top: 24px;
}

.panel h2,
.panel h3 {
  margin: 0 0 16px;
  font-size: 26px;
}

.panel p {
  margin: 0 0 16px;
  color: var(--color-gray-700);
  line-height: 1.9;
  font-size: 17px;
}

.player-shell {
  padding: 58px 0 22px;
  background: #0f172a;
}

.player-shell h2 {
  margin: 0 0 20px;
  color: #fff;
  font-size: 30px;
}

.video-frame {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: #020617;
  border-radius: 24px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35);
}

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

.video-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  color: #fff;
  border: 0;
  background: radial-gradient(circle at center, rgba(249, 115, 22, 0.18), rgba(2, 6, 23, 0.7));
  cursor: pointer;
}

.video-overlay span {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 86px;
  height: 86px;
  padding-left: 5px;
  color: var(--color-orange);
  font-size: 40px;
  background: #fff;
  border-radius: 999px;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.35);
}

.video-overlay strong {
  font-size: 22px;
}

.video-frame.is-playing .video-overlay {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

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

.side-link {
  display: grid;
  grid-template-columns: 86px 1fr;
  gap: 12px;
  align-items: center;
  padding: 10px;
  background: var(--color-gray-50);
  border-radius: 14px;
}

.side-link:hover h4 {
  color: var(--color-orange-dark);
}

.side-link img {
  width: 86px;
  height: 64px;
  object-fit: cover;
  border-radius: 11px;
  background: linear-gradient(135deg, #fed7aa, #fee2e2);
}

.side-link h4 {
  margin: 0 0 6px;
  font-size: 15px;
  line-height: 1.35;
}

.side-link p {
  margin: 0;
  color: var(--color-gray-500);
  font-size: 13px;
}

.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.footer {
  color: var(--color-gray-300);
  background: var(--color-gray-900);
}

.footer-inner {
  padding: 46px 0 28px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 28px;
  margin-bottom: 30px;
}

.footer h3,
.footer h4 {
  margin: 0 0 14px;
  color: #fff;
}

.footer p,
.footer a {
  color: var(--color-gray-300);
  line-height: 1.7;
}

.footer a:hover {
  color: #fb923c;
}

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

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--color-gray-500);
}

.line-clamp-1,
.line-clamp-2,
.line-clamp-3 {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.line-clamp-1 {
  -webkit-line-clamp: 1;
}

.line-clamp-2 {
  -webkit-line-clamp: 2;
}

.line-clamp-3 {
  -webkit-line-clamp: 3;
}

@media (max-width: 1024px) {
  .hero-inner,
  .detail-hero-inner,
  .content-layout {
    grid-template-columns: 1fr;
  }

  .hero-slider {
    height: 460px;
  }

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

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

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

  .menu-toggle {
    display: block;
  }

  .header-inner {
    height: 62px;
  }

  .logo {
    font-size: 20px;
  }

  .hero-inner {
    min-height: auto;
    padding: 52px 0 46px;
  }

  .hero-slider {
    height: 430px;
    border-radius: 24px;
  }

  .quick-search {
    display: grid;
    grid-template-columns: 1fr;
    padding: 10px;
    border-radius: 22px;
  }

  .quick-search input {
    min-height: 44px;
  }

  .quick-search button {
    width: 100%;
  }

  .section-head {
    display: block;
  }

  .section-link {
    display: inline-block;
    margin-top: 14px;
  }

  .featured-grid,
  .grid-4,
  .grid-3,
  .grid-2,
  .category-strip,
  .footer-grid,
  .filter-panel {
    grid-template-columns: 1fr;
  }

  .ranking-item {
    grid-template-columns: 48px 90px 1fr;
  }

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

  .rank-number {
    width: 44px;
    height: 44px;
    font-size: 18px;
    border-radius: 14px;
  }

  .ranking-cover {
    width: 90px;
    height: 68px;
  }

  .detail-cover {
    max-width: 360px;
  }

  .panel {
    padding: 22px;
  }

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