:root {
  color-scheme: light;
  --slate-950: #020617;
  --slate-900: #0f172a;
  --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-600: #d97706;
  --amber-500: #f59e0b;
  --amber-400: #fbbf24;
  --amber-200: #fde68a;
  --orange-500: #f97316;
  --rose-500: #f43f5e;
  --blue-500: #3b82f6;
  --green-500: #22c55e;
  --white: #ffffff;
  --shadow-lg: 0 18px 45px rgba(15, 23, 42, 0.16);
  --shadow-card: 0 10px 28px rgba(15, 23, 42, 0.10);
}

* {
  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;
  color: var(--slate-800);
  background: linear-gradient(180deg, var(--slate-50), var(--slate-100));
  line-height: 1.6;
}

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

img,
video {
  display: block;
  max-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-800), var(--slate-900));
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.25);
}

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

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

.logo-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 13px;
  background: linear-gradient(135deg, var(--amber-400), var(--orange-500));
  box-shadow: 0 10px 24px rgba(249, 115, 22, 0.28);
}

.logo-text {
  background: linear-gradient(90deg, var(--amber-200), #fed7aa);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 26px;
  font-weight: 600;
  color: #f8fafc;
}

.nav-links a {
  transition: color 0.2s ease;
}

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

.search-form {
  position: relative;
  width: min(280px, 34vw);
}

.search-form input {
  width: 100%;
  border: 0;
  border-radius: 999px;
  padding: 11px 18px 11px 42px;
  color: var(--white);
  background: rgba(51, 65, 85, 0.95);
  outline: 2px solid transparent;
  transition: outline-color 0.2s ease, background 0.2s ease;
}

.search-form input:focus {
  outline-color: rgba(251, 191, 36, 0.8);
  background: rgba(30, 41, 59, 0.98);
}

.search-icon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--slate-300);
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 12px;
  color: var(--white);
  background: rgba(255, 255, 255, 0.08);
}

.mobile-menu {
  display: none;
  padding: 16px 0 22px;
  border-top: 1px solid rgba(148, 163, 184, 0.24);
}

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

.mobile-menu a {
  display: block;
  padding: 9px 0;
  color: var(--slate-200);
}

.hero {
  position: relative;
  overflow: hidden;
  min-height: 590px;
  color: var(--white);
  background:
    radial-gradient(circle at 18% 18%, rgba(251, 191, 36, 0.22), transparent 28%),
    radial-gradient(circle at 76% 28%, rgba(59, 130, 246, 0.18), transparent 28%),
    linear-gradient(120deg, var(--slate-900), var(--slate-800) 48%, #78350f);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.18;
  background-image: radial-gradient(circle, rgba(255, 255, 255, 0.28) 1px, transparent 1px);
  background-size: 34px 34px;
}

.hero-inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  align-items: center;
  gap: 46px;
  padding: 78px 0 72px;
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  padding: 7px 14px;
  border: 1px solid rgba(251, 191, 36, 0.35);
  border-radius: 999px;
  color: #fde68a;
  background: rgba(15, 23, 42, 0.35);
  backdrop-filter: blur(10px);
  font-weight: 700;
}

.hero h1 {
  margin: 0;
  font-size: clamp(42px, 6vw, 72px);
  line-height: 1.05;
  font-weight: 900;
  letter-spacing: -0.04em;
  background: linear-gradient(90deg, var(--amber-200), #fed7aa, #fff7ed);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-lead {
  margin: 24px 0 14px;
  font-size: clamp(18px, 2.2vw, 24px);
  color: var(--slate-200);
}

.hero-copy {
  max-width: 620px;
  margin: 0 0 30px;
  color: var(--slate-300);
  font-size: 17px;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 11px 18px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 800;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
}

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

.btn-primary {
  color: var(--white);
  background: linear-gradient(90deg, var(--amber-500), var(--orange-500));
  box-shadow: 0 16px 34px rgba(249, 115, 22, 0.26);
}

.btn-primary:hover {
  box-shadow: 0 18px 40px rgba(249, 115, 22, 0.36);
}

.btn-ghost {
  color: var(--amber-200);
  border-color: rgba(251, 191, 36, 0.32);
  background: rgba(15, 23, 42, 0.32);
}

.btn-ghost:hover {
  background: rgba(251, 191, 36, 0.12);
}

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

.hero-slide {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 22px;
  align-items: stretch;
  min-height: 430px;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 30px;
  background: rgba(15, 23, 42, 0.46);
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(14px);
}

.hero-slide[hidden] {
  display: none;
}

.hero-poster {
  position: relative;
  overflow: hidden;
  min-height: 390px;
  border-radius: 24px;
  background: rgba(15, 23, 42, 0.45);
}

.hero-poster img {
  width: 100%;
  height: 100%;
  min-height: 390px;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.hero-slide:hover .hero-poster img {
  transform: scale(1.04);
}

.hero-poster::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(2, 6, 23, 0.62), transparent 55%);
}

.hero-badge {
  position: absolute;
  left: 18px;
  top: 18px;
  z-index: 2;
  padding: 7px 12px;
  border-radius: 999px;
  color: var(--white);
  background: linear-gradient(90deg, var(--amber-500), var(--orange-500));
  font-weight: 800;
}

.hero-info {
  display: flex;
  min-width: 0;
  flex-direction: column;
  justify-content: center;
  padding: 8px 6px;
}

.hero-info h2 {
  margin: 0 0 12px;
  font-size: clamp(26px, 3.4vw, 42px);
  line-height: 1.12;
}

.meta-row,
.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.meta-pill,
.tag-pill {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  white-space: nowrap;
}

.meta-pill {
  padding: 5px 10px;
  color: var(--slate-200);
  background: rgba(255, 255, 255, 0.08);
}

.tag-pill {
  padding: 5px 10px;
  color: #92400e;
  background: #fef3c7;
  font-size: 13px;
  font-weight: 700;
}

.hero-info p {
  margin: 18px 0 24px;
  color: var(--slate-200);
}

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

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

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

.section {
  padding: 58px 0;
}

.section.compact {
  padding: 38px 0;
}

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

.section-title h2,
.section-title h1 {
  margin: 0;
  color: var(--slate-800);
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.15;
  font-weight: 900;
}

.section-title p {
  max-width: 680px;
  margin: 8px 0 0;
  color: var(--slate-600);
}

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

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

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

.movie-card,
.category-card,
.rank-card,
.info-card {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: 22px;
  background: var(--white);
  box-shadow: var(--shadow-card);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.movie-card:hover,
.category-card:hover,
.rank-card:hover,
.info-card:hover {
  transform: translateY(-6px);
  border-color: rgba(251, 191, 36, 0.5);
  box-shadow: 0 24px 52px rgba(15, 23, 42, 0.18);
}

.card-cover {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: var(--slate-800);
}

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

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

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

.card-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.68), rgba(0, 0, 0, 0.08));
  transition: opacity 0.22s ease;
}

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

.card-badge,
.rank-badge {
  position: absolute;
  z-index: 2;
  top: 14px;
  right: 14px;
  padding: 5px 10px;
  border-radius: 999px;
  color: var(--white);
  background: linear-gradient(90deg, var(--amber-500), var(--orange-500));
  font-weight: 800;
  font-size: 13px;
}

.rank-badge {
  left: 14px;
  right: auto;
}

.card-body {
  padding: 18px;
}

.card-body h3 {
  margin: 0 0 10px;
  color: var(--slate-800);
  font-size: 19px;
  line-height: 1.25;
}

.card-body h3 a:hover {
  color: var(--amber-600);
}

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

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

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

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

.card-meta {
  margin: 0 0 12px;
  color: var(--slate-500);
  font-size: 14px;
}

.category-card {
  padding: 24px;
  min-height: 205px;
  color: var(--white);
  background:
    radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.18), transparent 28%),
    linear-gradient(135deg, var(--slate-800), var(--slate-900));
}

.category-card:nth-child(3n + 1) {
  background: linear-gradient(135deg, #2563eb, #0891b2);
}

.category-card:nth-child(3n + 2) {
  background: linear-gradient(135deg, #f59e0b, #f97316);
}

.category-card:nth-child(3n) {
  background: linear-gradient(135deg, #334155, #0f172a);
}

.category-card h3 {
  margin: 0 0 12px;
  font-size: 25px;
}

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

.rank-layout {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 24px;
  align-items: start;
}

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

.rank-card {
  display: grid;
  grid-template-columns: 132px minmax(0, 1fr);
}

.rank-card .card-cover {
  height: 176px;
  aspect-ratio: auto;
}

.filter-bar {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) 180px 180px;
  gap: 14px;
  margin: 0 0 28px;
  padding: 18px;
  border: 1px solid rgba(226, 232, 240, 0.95);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: var(--shadow-card);
}

.filter-bar input,
.filter-bar select {
  width: 100%;
  border: 1px solid var(--slate-200);
  border-radius: 14px;
  padding: 12px 14px;
  color: var(--slate-800);
  background: var(--white);
  outline: 2px solid transparent;
}

.filter-bar input:focus,
.filter-bar select:focus {
  outline-color: rgba(245, 158, 11, 0.36);
  border-color: rgba(245, 158, 11, 0.72);
}

.no-results {
  display: none;
  padding: 30px;
  border-radius: 20px;
  color: var(--slate-600);
  background: var(--white);
  box-shadow: var(--shadow-card);
  text-align: center;
}

.no-results.is-visible {
  display: block;
}

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

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

.detail-hero {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 28px;
  align-items: start;
  margin-bottom: 42px;
}

.player-panel {
  position: relative;
  overflow: hidden;
  border-radius: 26px;
  background: var(--slate-950);
  box-shadow: var(--shadow-lg);
}

.player-panel video {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: var(--slate-950);
}

.play-cover {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: rgba(2, 6, 23, 0.38);
  cursor: pointer;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

.player-panel.is-playing .play-cover {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.play-button {
  display: grid;
  width: 86px;
  height: 86px;
  place-items: center;
  border: 0;
  border-radius: 999px;
  color: var(--white);
  background: linear-gradient(135deg, var(--amber-500), var(--orange-500));
  box-shadow: 0 20px 38px rgba(249, 115, 22, 0.32);
}

.detail-card {
  padding: 26px;
  border: 1px solid rgba(226, 232, 240, 0.92);
  border-radius: 26px;
  background: var(--white);
  box-shadow: var(--shadow-card);
}

.detail-card h1 {
  margin: 0 0 14px;
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1.1;
}

.detail-card .one-line {
  margin: 18px 0;
  color: var(--slate-600);
  font-size: 17px;
}

.detail-poster {
  overflow: hidden;
  border-radius: 22px;
  margin-bottom: 20px;
}

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

.article-block {
  padding: 28px;
  border: 1px solid rgba(226, 232, 240, 0.95);
  border-radius: 26px;
  background: var(--white);
  box-shadow: var(--shadow-card);
}

.article-block + .article-block {
  margin-top: 24px;
}

.article-block h2 {
  margin: 0 0 18px;
  font-size: 26px;
}

.article-block p {
  margin: 0 0 14px;
  color: var(--slate-700);
  font-size: 17px;
  text-align: justify;
}

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

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

.footer-grid h3,
.footer-grid h4 {
  margin: 0 0 14px;
  color: var(--white);
}

.footer-grid p,
.footer-grid a {
  color: var(--slate-300);
}

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

.footer-bottom {
  padding: 20px 0;
  border-top: 1px solid rgba(148, 163, 184, 0.18);
  color: var(--slate-500);
  text-align: center;
}

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

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

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

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

@media (max-width: 820px) {
  .nav-links,
  .navbar > .search-form {
    display: none;
  }

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

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

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

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

  .rank-card {
    grid-template-columns: 105px minmax(0, 1fr);
  }

  .rank-card .card-cover {
    height: 150px;
  }
}

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

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

  .grid.cards,
  .grid.categories {
    grid-template-columns: 1fr;
  }

  .hero-slide {
    padding: 12px;
    border-radius: 22px;
  }

  .hero-poster,
  .hero-poster img {
    min-height: 300px;
  }

  .section {
    padding: 42px 0;
  }

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

  .detail-card,
  .article-block {
    padding: 20px;
    border-radius: 20px;
  }

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