*,
*::before,
*::after {
  box-sizing: border-box;
}

:root {
  --orange: #f97316;
  --orange-dark: #ea580c;
  --red: #ef4444;
  --pink: #ec4899;
  --blue: #2563eb;
  --teal: #0f766e;
  --amber: #d97706;
  --green: #16a34a;
  --rose: #e11d48;
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-800: #1f2937;
  --gray-900: #111827;
  --white: #ffffff;
  --shadow: 0 18px 45px rgba(15, 23, 42, 0.12);
  --shadow-soft: 0 10px 30px rgba(15, 23, 42, 0.08);
  --radius: 22px;
}

html {
  scroll-behavior: smooth;
}

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

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

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

button,
input,
select {
  font: inherit;
}

button {
  border: 0;
}

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

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

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

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 22px;
  font-weight: 900;
  color: var(--gray-900);
  white-space: nowrap;
}

.logo-mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  color: var(--white);
  background: linear-gradient(135deg, var(--orange), var(--red));
  box-shadow: 0 12px 24px rgba(239, 68, 68, 0.28);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
}

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

.nav-links a:hover,
.nav-links a.is-active {
  color: var(--orange-dark);
  background: #fff7ed;
}

.menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  color: var(--gray-900);
  background: var(--gray-100);
}

.hero {
  position: relative;
  overflow: hidden;
  color: var(--white);
  background:
    radial-gradient(circle at 16% 18%, rgba(255, 255, 255, 0.25), transparent 28%),
    radial-gradient(circle at 88% 16%, rgba(255, 255, 255, 0.18), transparent 24%),
    linear-gradient(120deg, #f97316 0%, #ef4444 52%, #ec4899 100%);
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto -10% -18% -10%;
  height: 170px;
  background: rgba(255, 255, 255, 0.14);
  filter: blur(45px);
}

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

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  align-items: center;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.78fr);
  gap: 44px;
  padding: 70px 0 82px;
  opacity: 0;
  transform: translateY(18px) scale(0.985);
  pointer-events: none;
  transition: opacity 0.55s ease, transform 0.55s ease;
}

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

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.92);
  background: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(10px);
  font-size: 14px;
  font-weight: 800;
}

.hero h1 {
  margin: 22px 0 18px;
  max-width: 780px;
  font-size: clamp(42px, 6vw, 72px);
  line-height: 1.05;
  letter-spacing: -0.05em;
}

.hero-lead {
  max-width: 740px;
  margin: 0 0 18px;
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(18px, 2vw, 24px);
}

.hero-desc {
  max-width: 720px;
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 16px;
}

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

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.hero-stat {
  min-width: 110px;
  padding: 14px 18px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.17);
  backdrop-filter: blur(12px);
}

.hero-stat strong {
  display: block;
  font-size: 26px;
  line-height: 1;
}

.hero-stat span {
  display: block;
  margin-top: 6px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 13px;
}

.hero-poster-card {
  position: relative;
  overflow: hidden;
  border-radius: 32px;
  min-height: 470px;
  box-shadow: 0 32px 72px rgba(127, 29, 29, 0.38);
  transform: rotate(1.5deg);
}

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

.hero-poster-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 20%, rgba(0, 0, 0, 0.78) 100%);
}

.hero-poster-info {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  padding: 26px;
}

.hero-poster-info h2 {
  margin: 10px 0 8px;
  font-size: 26px;
  line-height: 1.2;
}

.hero-poster-info p {
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
}

.hero-dots {
  position: absolute;
  left: 0;
  bottom: 34px;
  z-index: 4;
  display: flex;
  gap: 10px;
}

.hero-dot {
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.45);
  cursor: pointer;
  transition: width 0.2s ease, background 0.2s ease;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 12px 20px;
  border-radius: 999px;
  color: var(--gray-900);
  background: var(--white);
  font-weight: 900;
  box-shadow: 0 14px 28px rgba(15, 23, 42, 0.18);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

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

.btn-primary {
  color: var(--white);
  background: linear-gradient(135deg, var(--orange), var(--red));
}

.btn-dark {
  color: var(--white);
  background: var(--gray-900);
}

.btn-ghost {
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.42);
  background: rgba(255, 255, 255, 0.13);
  backdrop-filter: blur(12px);
}

.section {
  padding: 64px 0;
}

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

.section-amber {
  background: linear-gradient(135deg, #fffbeb, #fff7ed);
}

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

.section-rose {
  background: linear-gradient(135deg, #fff1f2, #fdf2f8);
}

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

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

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

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

.more-link {
  display: inline-flex;
  align-items: center;
  color: var(--orange-dark);
  font-weight: 900;
  white-space: nowrap;
}

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

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

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

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

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

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

.movie-cover {
  position: relative;
  overflow: hidden;
  aspect-ratio: 3 / 4;
  background: #111827;
}

.movie-cover.wide {
  aspect-ratio: 16 / 9;
}

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

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

.cover-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 32%, rgba(0, 0, 0, 0.82) 100%);
}

.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 5px 10px;
  border-radius: 999px;
  color: var(--white);
  background: linear-gradient(135deg, var(--orange), var(--red));
  font-size: 12px;
  font-weight: 900;
}

.badge-blue {
  background: var(--blue);
}

.badge-teal {
  background: var(--teal);
}

.badge-amber {
  background: var(--amber);
}

.badge-rose {
  background: var(--rose);
}

.cover-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
}

.card-body {
  padding: 18px;
}

.movie-title {
  margin: 0 0 8px;
  font-size: 18px;
  line-height: 1.35;
  font-weight: 900;
}

.movie-card:hover .movie-title {
  color: var(--orange-dark);
}

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

.meta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  color: var(--gray-500);
  font-size: 13px;
}

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

.tag {
  padding: 5px 9px;
  border-radius: 999px;
  color: var(--gray-700);
  background: var(--gray-100);
  font-size: 12px;
  font-weight: 700;
}

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

.featured-card {
  position: relative;
  min-height: 320px;
  overflow: hidden;
  border-radius: 28px;
  color: var(--white);
  box-shadow: var(--shadow);
}

.featured-card:first-child {
  grid-column: span 2;
  grid-row: span 2;
  min-height: 664px;
}

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

.featured-card:hover img {
  transform: scale(1.08);
}

.featured-card .featured-content {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  padding: 24px;
}

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

.featured-card:first-child h3 {
  font-size: 34px;
}

.featured-card p {
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
}

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

.rank-item {
  display: grid;
  grid-template-columns: 82px 190px minmax(0, 1fr);
  gap: 20px;
  align-items: stretch;
  overflow: hidden;
  border-radius: 22px;
  background: var(--white);
  box-shadow: var(--shadow-soft);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.rank-number {
  display: grid;
  place-items: center;
  color: var(--white);
  background: linear-gradient(135deg, var(--amber), var(--orange));
  font-size: 30px;
  font-weight: 1000;
}

.rank-cover {
  overflow: hidden;
  min-height: 130px;
}

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

.rank-content {
  padding: 22px 24px 22px 0;
}

.rank-content h3 {
  margin: 0 0 8px;
  font-size: 22px;
}

.rank-content p {
  margin: 0 0 12px;
  color: var(--gray-600);
}

.category-tile {
  position: relative;
  overflow: hidden;
  min-height: 260px;
  border-radius: 28px;
  color: var(--white);
  box-shadow: var(--shadow-soft);
}

.category-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.category-tile:hover img {
  transform: scale(1.08);
}

.category-tile::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.12), rgba(0, 0, 0, 0.76));
}

.category-tile-content {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  padding: 24px;
}

.category-tile h2,
.category-tile h3 {
  margin: 10px 0 8px;
  font-size: 25px;
}

.category-tile p {
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
}

.page-hero {
  color: var(--white);
  background:
    radial-gradient(circle at 24% 28%, rgba(255, 255, 255, 0.22), transparent 24%),
    linear-gradient(120deg, var(--orange), var(--red), var(--pink));
  padding: 72px 0;
}

.page-hero h1 {
  margin: 0 0 16px;
  max-width: 860px;
  font-size: clamp(36px, 5vw, 58px);
  line-height: 1.08;
  letter-spacing: -0.04em;
}

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

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

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

.filter-panel {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) 180px 180px 180px;
  gap: 12px;
  margin-bottom: 26px;
  padding: 18px;
  border-radius: 22px;
  background: var(--white);
  box-shadow: var(--shadow-soft);
}

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

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

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

.player-card,
.content-card,
.side-card {
  border-radius: 26px;
  background: var(--white);
  box-shadow: var(--shadow-soft);
}

.player-card {
  overflow: hidden;
}

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

.player-video {
  width: 100%;
  height: 100%;
  background: #000;
  object-fit: cover;
}

.player-overlay {
  position: absolute;
  inset: 0;
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at center, rgba(0, 0, 0, 0.12), rgba(0, 0, 0, 0.48));
  cursor: pointer;
}

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

.play-button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 56px;
  padding: 0 26px;
  border-radius: 999px;
  color: var(--white);
  background: linear-gradient(135deg, var(--orange), var(--red));
  font-weight: 1000;
  box-shadow: 0 20px 45px rgba(239, 68, 68, 0.36);
}

.player-info {
  padding: 24px;
}

.player-info h1 {
  margin: 0 0 12px;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.18;
}

.player-info p {
  margin: 0;
  color: var(--gray-600);
}

.content-card,
.side-card {
  padding: 26px;
}

.content-card h2,
.side-card h2 {
  margin: 0 0 14px;
  font-size: 24px;
}

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

.side-meta {
  display: grid;
  gap: 12px;
}

.side-meta div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--gray-100);
}

.side-meta span:first-child {
  color: var(--gray-500);
}

.side-meta span:last-child {
  text-align: right;
  font-weight: 800;
}

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

.mini-card {
  overflow: hidden;
  border-radius: 18px;
  background: var(--white);
  box-shadow: var(--shadow-soft);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

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

.mini-card h3 {
  margin: 0;
  padding: 12px;
  font-size: 15px;
  line-height: 1.35;
}

.empty-state {
  display: none;
  padding: 24px;
  border-radius: 20px;
  color: var(--gray-600);
  background: var(--white);
  box-shadow: var(--shadow-soft);
}

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

.site-footer {
  color: #d1d5db;
  background: var(--gray-900);
}

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

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

.site-footer p,
.site-footer a {
  color: #9ca3af;
  font-size: 14px;
}

.site-footer a:hover {
  color: #fdba74;
}

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

.footer-bottom {
  padding: 20px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  text-align: center;
  color: #9ca3af;
  font-size: 14px;
}

@media (max-width: 980px) {
  .hero-slide {
    grid-template-columns: 1fr;
    gap: 30px;
    padding-top: 46px;
  }

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

  .hero-poster-card {
    min-height: 360px;
    transform: none;
  }

  .hero-poster-card img {
    height: 420px;
  }

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

  .featured-card:first-child {
    grid-column: span 2;
    min-height: 420px;
  }

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

  .detail-layout {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 720px) {
  .nav-wrap {
    min-height: 64px;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .nav-links {
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 10px 16px 16px;
    background: var(--white);
    border-bottom: 1px solid var(--gray-200);
  }

  .nav-links.is-open {
    display: flex;
  }

  .nav-links a {
    border-radius: 12px;
  }

  .hero h1 {
    font-size: 40px;
  }

  .hero-dots {
    position: static;
    padding-bottom: 24px;
  }

  .section {
    padding: 44px 0;
  }

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

  .grid-4,
  .grid-3,
  .grid-2,
  .featured-grid,
  .related-grid {
    grid-template-columns: 1fr;
  }

  .featured-card:first-child {
    grid-column: auto;
    min-height: 360px;
  }

  .rank-item {
    grid-template-columns: 64px 110px minmax(0, 1fr);
    gap: 12px;
  }

  .rank-content {
    padding: 14px 14px 14px 0;
  }

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

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

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