:root {
  --orange-50: #fff7ed;
  --orange-100: #ffedd5;
  --orange-400: #fb923c;
  --orange-500: #f97316;
  --orange-600: #ea580c;
  --red-500: #ef4444;
  --green-600: #16a34a;
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-300: #d1d5db;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-800: #1f2937;
  --gray-900: #111827;
  --white: #ffffff;
  --shadow-sm: 0 4px 12px rgba(17, 24, 39, 0.08);
  --shadow-md: 0 12px 28px rgba(17, 24, 39, 0.12);
  --shadow-xl: 0 28px 60px rgba(17, 24, 39, 0.18);
  --radius-lg: 16px;
  --radius-xl: 24px;
  --container: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  background: var(--gray-50);
  color: var(--gray-900);
  line-height: 1.6;
}

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

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

button,
input,
select {
  font: inherit;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(229, 231, 235, 0.9);
}

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

.site-logo,
.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 20px;
  font-weight: 800;
  color: var(--gray-900);
}

.logo-mark {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  color: var(--white);
  border-radius: 14px;
  background: linear-gradient(135deg, var(--orange-500), var(--red-500));
  box-shadow: 0 14px 30px rgba(249, 115, 22, 0.35);
}

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

.nav-link {
  padding: 10px 14px;
  border-radius: 999px;
  color: var(--gray-700);
  font-weight: 700;
  transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.nav-link:hover,
.nav-link-active {
  color: var(--orange-600);
  background: var(--orange-50);
}

.mobile-menu-button {
  display: none;
  width: 44px;
  height: 44px;
  padding: 10px;
  border: 0;
  border-radius: 12px;
  background: var(--orange-50);
  cursor: pointer;
}

.mobile-menu-button span {
  display: block;
  height: 2px;
  margin: 5px 0;
  background: var(--orange-600);
  border-radius: 2px;
}

.mobile-nav {
  display: none;
  padding: 0 16px 16px;
  border-top: 1px solid var(--gray-100);
}

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

.hero {
  position: relative;
  overflow: hidden;
  color: var(--white);
  background: linear-gradient(135deg, var(--orange-400), var(--orange-500) 46%, var(--red-500));
}

.hero::before,
.hero::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  filter: blur(6px);
}

.hero::before {
  width: 360px;
  height: 360px;
  right: -120px;
  top: -100px;
}

.hero::after {
  width: 260px;
  height: 260px;
  left: -80px;
  bottom: -90px;
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(360px, 0.95fr);
  gap: 42px;
  align-items: center;
  min-height: 560px;
  padding: 64px 0;
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  margin-bottom: 18px;
  color: var(--white);
  font-weight: 800;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(12px);
}

.hero h1 {
  max-width: 780px;
  margin: 0 0 20px;
  font-size: clamp(38px, 6vw, 68px);
  line-height: 1.04;
  letter-spacing: -0.04em;
}

.hero p {
  max-width: 680px;
  margin: 0 0 28px;
  font-size: clamp(18px, 2.2vw, 24px);
  color: rgba(255, 255, 255, 0.88);
}

.hero-actions,
.hero-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.hero-actions {
  margin-bottom: 26px;
}

.hero-chip {
  display: inline-flex;
  align-items: center;
  padding: 9px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  color: var(--white);
  font-weight: 700;
  backdrop-filter: blur(10px);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 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:hover {
  transform: translateY(-2px);
}

.button-primary {
  color: var(--orange-600);
  background: var(--white);
  box-shadow: 0 16px 38px rgba(0, 0, 0, 0.18);
}

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

.hero-slider {
  position: relative;
  min-height: 454px;
}

.hero-slide {
  display: none;
  overflow: hidden;
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.16);
  box-shadow: var(--shadow-xl);
  backdrop-filter: blur(14px);
  transform: translateY(10px);
}

.hero-slide.is-active {
  display: block;
  animation: slideIn 0.45s ease forwards;
}

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

.hero-slide-content {
  padding: 22px;
}

.hero-slide-content h2 {
  margin: 0 0 8px;
  font-size: 26px;
}

.hero-slide-content p {
  margin: 0 0 18px;
  font-size: 15px;
  color: rgba(255, 255, 255, 0.84);
}

.hero-dots {
  display: flex;
  gap: 9px;
  justify-content: center;
  margin-top: 18px;
}

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

.hero-dot.is-active {
  width: 28px;
  background: var(--white);
}

.section {
  padding: 64px 0;
}

.section-white {
  background: var(--white);
}

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

.section-title {
  margin: 0;
  font-size: clamp(26px, 3vw, 36px);
  line-height: 1.15;
  letter-spacing: -0.03em;
}

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

.text-link {
  color: var(--orange-600);
  font-weight: 800;
}

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

.featured-column {
  display: grid;
  gap: 22px;
}

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

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

.movie-card {
  overflow: hidden;
  border: 1px solid rgba(229, 231, 235, 0.9);
  border-radius: var(--radius-lg);
  background: var(--white);
  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.24);
  box-shadow: var(--shadow-md);
}

.poster-link {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: linear-gradient(135deg, var(--orange-100), var(--gray-200));
}

.movie-card-compact .poster-link {
  aspect-ratio: 4 / 5;
}

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

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

.poster-badge,
.poster-type,
.hot-badge {
  position: absolute;
  z-index: 2;
  padding: 5px 10px;
  border-radius: 999px;
  color: var(--white);
  font-size: 12px;
  font-weight: 800;
}

.poster-badge {
  top: 12px;
  left: 12px;
  background: rgba(17, 24, 39, 0.72);
}

.poster-type {
  right: 12px;
  bottom: 12px;
  background: var(--orange-500);
}

.hot-badge {
  top: 12px;
  right: 12px;
  background: var(--red-500);
}

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

.movie-title-link h2,
.rank-info h2 {
  margin: 0 0 8px;
  font-size: 18px;
  line-height: 1.3;
  transition: color 0.2s ease;
}

.movie-title-link:hover h2,
.rank-info a:hover h2 {
  color: var(--orange-600);
}

.movie-card-body p,
.rank-info p {
  margin: 0 0 14px;
  color: var(--gray-600);
  font-size: 14px;
}

.movie-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--gray-500);
  font-size: 13px;
}

.movie-meta span {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--gray-100);
}

.card-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 14px;
}

.rating {
  color: #d97706;
  font-weight: 900;
}

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

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

.category-card {
  min-height: 190px;
  padding: 24px;
  border-radius: var(--radius-xl);
  color: var(--white);
  background: linear-gradient(135deg, var(--orange-400), var(--red-500));
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

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

.category-card p {
  margin: 0 0 18px;
  color: rgba(255, 255, 255, 0.86);
}

.filter-panel {
  margin: 0 0 28px;
  padding: 22px;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-xl);
  background: var(--white);
  box-shadow: var(--shadow-sm);
}

.filter-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 14px;
}

.filter-grid label {
  display: grid;
  gap: 7px;
  color: var(--gray-700);
  font-size: 14px;
  font-weight: 800;
}

.filter-grid input,
.filter-grid select {
  width: 100%;
  min-height: 44px;
  padding: 0 14px;
  border: 1px solid var(--gray-200);
  border-radius: 12px;
  background: var(--gray-50);
  color: var(--gray-900);
  outline: none;
}

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

.filter-status {
  min-height: 24px;
  margin-top: 14px;
  color: var(--gray-500);
  font-size: 14px;
}

.page-hero {
  padding: 54px 0;
  color: var(--white);
  background: linear-gradient(135deg, var(--gray-900), #7c2d12 52%, var(--orange-500));
}

.page-hero h1 {
  max-width: 860px;
  margin: 0 0 12px;
  font-size: clamp(32px, 5vw, 56px);
  line-height: 1.08;
}

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

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

.breadcrumb a:hover {
  color: var(--white);
}

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

.rank-row {
  display: grid;
  grid-template-columns: 64px 118px minmax(0, 1fr) 112px;
  gap: 18px;
  align-items: center;
  padding: 14px;
}

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

.rank-cover {
  overflow: hidden;
  border-radius: 14px;
  aspect-ratio: 16 / 10;
}

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

.rank-score {
  display: grid;
  gap: 4px;
  justify-items: end;
}

.rank-score strong {
  color: var(--orange-600);
  font-size: 28px;
}

.rank-score span {
  color: var(--gray-500);
  font-size: 13px;
}

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

.player-card,
.detail-card,
.sidebar-card {
  overflow: hidden;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-xl);
  background: var(--white);
  box-shadow: var(--shadow-sm);
}

.player-shell {
  position: relative;
  overflow: hidden;
  background: var(--gray-900);
  aspect-ratio: 16 / 9;
}

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

.player-cover {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  cursor: pointer;
  background: rgba(17, 24, 39, 0.52);
  z-index: 3;
}

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

.player-cover img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.64;
}

.play-button {
  position: relative;
  z-index: 4;
  display: grid;
  width: 86px;
  height: 86px;
  place-items: center;
  border: 0;
  border-radius: 999px;
  color: var(--orange-600);
  background: var(--white);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
  cursor: pointer;
}

.play-button::before {
  content: "";
  width: 0;
  height: 0;
  margin-left: 6px;
  border-top: 16px solid transparent;
  border-bottom: 16px solid transparent;
  border-left: 24px solid currentColor;
}

.player-body,
.detail-body,
.sidebar-card {
  padding: 24px;
}

.player-body h1 {
  margin: 0 0 12px;
  font-size: clamp(28px, 4vw, 46px);
  line-height: 1.1;
}

.detail-body h2,
.sidebar-card h2 {
  margin: 0 0 14px;
  font-size: 24px;
}

.detail-body p {
  margin: 0 0 18px;
  color: var(--gray-700);
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 14px 0;
}

.tag-pill {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 4px 10px;
  border-radius: 999px;
  color: var(--orange-600);
  background: var(--orange-50);
  font-size: 13px;
  font-weight: 800;
}

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

.related-item {
  display: grid;
  grid-template-columns: 94px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
}

.related-item img {
  width: 94px;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: 12px;
}

.related-item h3 {
  margin: 0 0 6px;
  font-size: 15px;
  line-height: 1.3;
}

.related-item span {
  color: var(--gray-500);
  font-size: 13px;
}

.site-footer {
  margin-top: 64px;
  color: var(--gray-300);
  background: var(--gray-900);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 32px;
  padding: 46px 0;
}

.footer-logo {
  color: var(--white);
}

.site-footer p {
  max-width: 560px;
  margin: 14px 0 0;
  color: var(--gray-300);
}

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

.site-footer a:not(.footer-logo) {
  display: block;
  margin: 8px 0;
  color: var(--gray-300);
}

.site-footer a:hover {
  color: var(--orange-400);
}

.footer-bottom {
  padding: 18px 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  text-align: center;
  color: var(--gray-500);
}

.empty-state {
  display: none;
  padding: 40px;
  border-radius: var(--radius-xl);
  background: var(--white);
  text-align: center;
  color: var(--gray-600);
}

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

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(18px) scale(0.98);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

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

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

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

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

  .rank-score {
    grid-column: 3;
    justify-items: start;
  }
}

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

  .mobile-menu-button {
    display: block;
  }

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

  .hero-slider {
    min-height: auto;
  }

  .section {
    padding: 42px 0;
  }

  .section-heading {
    display: block;
  }

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

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

  .rank-number {
    width: 38px;
    height: 38px;
  }

  .rank-info p {
    display: none;
  }

  .player-body,
  .detail-body,
  .sidebar-card {
    padding: 18px;
  }
}
