:root {
  color-scheme: light;
  --slate-950: #020617;
  --slate-900: #0f172a;
  --slate-800: #1e293b;
  --slate-700: #334155;
  --slate-600: #475569;
  --slate-500: #64748b;
  --slate-200: #e2e8f0;
  --slate-100: #f1f5f9;
  --gray-50: #f9fafb;
  --white: #ffffff;
  --orange: #f97316;
  --orange-dark: #ea580c;
  --red: #dc2626;
  --amber: #f59e0b;
  --shadow: 0 14px 35px rgba(15, 23, 42, 0.12);
  --shadow-strong: 0 25px 60px rgba(15, 23, 42, 0.22);
  --radius: 22px;
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

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

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

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

button,
input,
select {
  font: inherit;
}

.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: 0 12px 28px rgba(2, 6, 23, 0.28);
}

.header-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 22px;
  min-height: 70px;
  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: 42px;
  height: 42px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--orange), var(--red));
  color: #fff;
  box-shadow: 0 10px 25px rgba(249, 115, 22, 0.34);
  transform: translateZ(0);
  transition: transform 0.2s ease;
}

.logo:hover .logo-mark {
  transform: scale(1.08) rotate(-3deg);
}

.logo-title {
  margin: 0;
  font-size: 22px;
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: 0.02em;
  background: linear-gradient(90deg, #fb923c, #ef4444);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.logo-subtitle {
  margin: 3px 0 0;
  color: #94a3b8;
  font-size: 12px;
}

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

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

.nav-links a:hover,
.nav-links a.is-active {
  color: #fb923c;
}

.nav-toggle {
  display: none;
  border: 0;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  border-radius: 12px;
  width: 42px;
  height: 42px;
  cursor: pointer;
}

.mobile-menu {
  display: none;
  max-width: var(--max);
  margin: 0 auto;
  padding: 12px 22px 18px;
  border-top: 1px solid rgba(148, 163, 184, 0.18);
}

.mobile-menu a {
  display: block;
  padding: 10px 0;
  color: #f8fafc;
  font-weight: 700;
}

.mobile-menu a:hover {
  color: #fb923c;
}

.hero {
  position: relative;
  min-height: 620px;
  overflow: hidden;
  color: #fff;
  background: radial-gradient(circle at 15% 20%, rgba(249, 115, 22, 0.32), transparent 34%), linear-gradient(135deg, #020617 0%, #431407 54%, #7f1d1d 100%);
}

.hero-pattern {
  position: absolute;
  inset: 0;
  opacity: 0.22;
  background-image: radial-gradient(rgba(255, 255, 255, 0.12) 1px, transparent 1px);
  background-size: 34px 34px;
}

.hero-slide {
  display: none;
  position: relative;
  z-index: 1;
}

.hero-slide.is-active {
  display: block;
}

.hero-inner {
  max-width: var(--max);
  margin: 0 auto;
  min-height: 620px;
  padding: 86px 22px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 520px);
  gap: 58px;
  align-items: center;
}

.hero-copy {
  animation: fadeUp 0.5s ease both;
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 15px;
  margin-bottom: 22px;
  border: 1px solid rgba(251, 146, 60, 0.65);
  border-radius: 999px;
  background: rgba(249, 115, 22, 0.18);
  color: #fed7aa;
  backdrop-filter: blur(10px);
  font-size: 14px;
  font-weight: 800;
}

.hero h1 {
  margin: 0;
  font-size: clamp(38px, 6vw, 68px);
  line-height: 1.08;
  letter-spacing: -0.045em;
}

.hero p {
  max-width: 680px;
  margin: 22px 0 0;
  color: #d1d5db;
  font-size: 18px;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 26px 0;
}

.pill {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 7px 12px;
  background: rgba(255, 255, 255, 0.12);
  color: #f8fafc;
  font-size: 13px;
  font-weight: 700;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 999px;
  border: 0;
  padding: 12px 22px;
  font-weight: 900;
  cursor: pointer;
  transition: transform 0.22s ease, box-shadow 0.22s ease, background 0.22s ease;
}

.btn-primary {
  color: #fff;
  background: linear-gradient(90deg, var(--orange), var(--red));
  box-shadow: 0 14px 30px rgba(220, 38, 38, 0.25);
}

.btn-primary:hover {
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 18px 42px rgba(220, 38, 38, 0.32);
}

.btn-soft {
  color: #fff;
  background: rgba(255, 255, 255, 0.13);
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.btn-soft:hover {
  background: rgba(255, 255, 255, 0.2);
}

.hero-visual {
  position: relative;
  animation: fadeUp 0.5s ease 0.08s both;
}

.hero-glow {
  position: absolute;
  inset: -18px;
  border-radius: 34px;
  background: linear-gradient(90deg, rgba(249, 115, 22, 0.46), rgba(220, 38, 38, 0.36));
  filter: blur(26px);
  opacity: 0.32;
}

.hero-poster {
  position: relative;
  border-radius: 28px;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: linear-gradient(135deg, var(--slate-800), var(--slate-950));
  box-shadow: var(--shadow-strong);
}

.hero-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.01);
  transition: transform 0.5s ease;
}

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

.hero-poster::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.72), transparent 65%);
}

.hero-badge {
  position: absolute;
  left: 18px;
  bottom: 18px;
  z-index: 2;
  background: var(--orange);
  color: #fff;
  border-radius: 999px;
  padding: 7px 13px;
  font-size: 13px;
  font-weight: 900;
}

.hero-control {
  position: absolute;
  z-index: 4;
  top: 50%;
  width: 42px;
  height: 42px;
  margin-top: -21px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: #fff;
  background: rgba(15, 23, 42, 0.55);
  backdrop-filter: blur(10px);
  cursor: pointer;
}

.hero-control.prev {
  left: 18px;
}

.hero-control.next {
  right: 18px;
}

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

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

.hero-dot.is-active {
  width: 30px;
  background: #fb923c;
}

.section {
  padding: 68px 22px;
}

.section.white {
  background: #fff;
}

.section.soft {
  background: linear-gradient(180deg, var(--gray-50), #fff);
}

.container {
  max-width: var(--max);
  margin: 0 auto;
}

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

.section-title {
  margin: 0;
  font-size: clamp(28px, 4vw, 38px);
  line-height: 1.15;
  color: #111827;
}

.section-desc {
  margin: 8px 0 0;
  max-width: 780px;
  color: #64748b;
}

.more-link {
  color: var(--orange-dark);
  font-weight: 900;
  min-width: max-content;
}

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

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

.movie-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.09);
  transition: transform 0.28s ease, box-shadow 0.28s ease;
}

.movie-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 24px 50px rgba(15, 23, 42, 0.16);
}

.poster-wrap {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: linear-gradient(135deg, #1e293b, #0f172a);
}

.poster-wrap.tall {
  aspect-ratio: 3 / 4;
}

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

.movie-card:hover .poster-wrap img {
  transform: scale(1.1);
}

.poster-cover {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0);
  transition: background 0.25s ease;
}

.movie-card:hover .poster-cover {
  background: rgba(0, 0, 0, 0.38);
}

.play-mark {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 50px;
  height: 50px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  transform: translate(-50%, -50%) scale(0.82);
  opacity: 0;
  background: var(--orange);
  color: #fff;
  font-size: 18px;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

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

.card-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  border-radius: 999px;
  padding: 4px 9px;
  color: #fff;
  background: rgba(0, 0, 0, 0.68);
  font-size: 12px;
  font-weight: 800;
}

.card-body {
  padding: 15px 16px 17px;
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 9px;
}

.card-title {
  margin: 0;
  color: #111827;
  font-size: 17px;
  font-weight: 900;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

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

.card-line {
  margin: 0;
  color: #64748b;
  font-size: 14px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto;
  color: #64748b;
  font-size: 12px;
}

.card-meta span {
  border-radius: 999px;
  padding: 4px 8px;
  background: #fff7ed;
  color: #c2410c;
  font-weight: 800;
}

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

.wide-card {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  overflow: hidden;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.wide-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 42px rgba(15, 23, 42, 0.15);
}

.wide-card .poster-wrap {
  aspect-ratio: auto;
  min-height: 160px;
}

.wide-body {
  padding: 18px;
}

.category-hero,
.page-hero {
  color: #fff;
  background: radial-gradient(circle at 20% 20%, rgba(249, 115, 22, 0.24), transparent 36%), linear-gradient(90deg, var(--slate-900), #7c2d12, #7f1d1d);
}

.page-hero-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 62px 22px;
}

.breadcrumb {
  display: inline-flex;
  align-items: center;
  margin-bottom: 16px;
  color: #fed7aa;
  font-weight: 800;
}

.page-title {
  margin: 0;
  font-size: clamp(34px, 5vw, 56px);
  line-height: 1.1;
}

.page-intro {
  max-width: 840px;
  margin: 16px 0 0;
  color: #e5e7eb;
  font-size: 18px;
}

.filter-panel {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) 180px 160px;
  gap: 14px;
  margin-bottom: 28px;
  padding: 18px;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.08);
}

.filter-panel input,
.filter-panel select {
  width: 100%;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 12px 14px;
  outline: none;
  background: #fff;
  color: #111827;
}

.filter-panel input:focus,
.filter-panel select:focus {
  border-color: #fb923c;
  box-shadow: 0 0 0 4px rgba(251, 146, 60, 0.15);
}

.empty-state {
  display: none;
  margin: 28px 0 0;
  padding: 26px;
  text-align: center;
  color: #64748b;
  background: #fff;
  border-radius: 18px;
}

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

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

.category-card {
  position: relative;
  overflow: hidden;
  min-height: 220px;
  padding: 24px;
  border-radius: 24px;
  color: #fff;
  background: linear-gradient(135deg, #0f172a, #7c2d12 55%, #991b1b);
  box-shadow: var(--shadow);
  transition: transform 0.24s ease, box-shadow 0.24s ease;
}

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

.category-card::after {
  content: "";
  position: absolute;
  width: 170px;
  height: 170px;
  right: -55px;
  bottom: -55px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
}

.category-card h2,
.category-card h3 {
  position: relative;
  z-index: 1;
  margin: 0;
  font-size: 25px;
}

.category-card p {
  position: relative;
  z-index: 1;
  margin: 12px 0 20px;
  color: #ffedd5;
}

.category-card span {
  position: relative;
  z-index: 1;
  font-weight: 900;
  color: #fff;
}

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

.rank-item {
  display: grid;
  grid-template-columns: 58px 130px minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  padding: 14px;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.07);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.rank-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 36px rgba(15, 23, 42, 0.14);
}

.rank-no {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(135deg, var(--orange), var(--red));
  font-weight: 950;
}

.rank-cover {
  overflow: hidden;
  border-radius: 14px;
  aspect-ratio: 16 / 10;
  background: var(--slate-900);
}

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

.rank-title {
  margin: 0 0 5px;
  font-size: 18px;
  color: #111827;
}

.rank-desc {
  margin: 0;
  color: #64748b;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

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

.player-card {
  overflow: hidden;
  border-radius: 26px;
  background: #000;
  box-shadow: var(--shadow-strong);
}

.player-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #000;
}

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

.player-mask {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: grid;
  place-items: center;
  cursor: pointer;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.64), rgba(0, 0, 0, 0.22));
}

.player-mask.is-hidden {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s ease;
}

.player-button {
  width: 82px;
  height: 82px;
  border: 0;
  border-radius: 999px;
  display: grid;
  place-items: center;
  cursor: pointer;
  color: #fff;
  background: linear-gradient(135deg, var(--orange), var(--red));
  box-shadow: 0 20px 48px rgba(220, 38, 38, 0.36);
  font-size: 30px;
  transform: translateZ(0);
  transition: transform 0.22s ease;
}

.player-button:hover {
  transform: scale(1.08);
}

.player-message {
  position: absolute;
  left: 18px;
  bottom: 14px;
  z-index: 4;
  color: #e5e7eb;
  font-size: 14px;
}

.detail-card {
  margin-top: 24px;
  padding: 28px;
  border-radius: 24px;
  background: #fff;
  box-shadow: var(--shadow);
}

.detail-card h2 {
  margin: 0 0 12px;
  font-size: 26px;
}

.detail-card p {
  margin: 0 0 18px;
  color: #475569;
}

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

.detail-meta span,
.tag {
  display: inline-flex;
  border-radius: 999px;
  padding: 6px 11px;
  color: #9a3412;
  background: #ffedd5;
  font-weight: 800;
  font-size: 13px;
}

.sidebar-card {
  padding: 20px;
  border-radius: 22px;
  background: #fff;
  box-shadow: var(--shadow);
  position: sticky;
  top: 92px;
}

.sidebar-card h2 {
  margin: 0 0 16px;
  font-size: 22px;
}

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

.related-item {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 8px;
  border-radius: 14px;
  transition: background 0.18s ease;
}

.related-item:hover {
  background: #f8fafc;
}

.related-item img {
  width: 112px;
  height: 70px;
  border-radius: 12px;
  object-fit: cover;
  background: #0f172a;
}

.related-title {
  margin: 0;
  color: #111827;
  font-weight: 900;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.related-meta {
  margin: 4px 0 0;
  color: #64748b;
  font-size: 12px;
}

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

.site-footer {
  color: #cbd5e1;
  background: linear-gradient(180deg, #0f172a, #020617);
}

.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 50px 22px 32px;
}

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

.footer-title {
  color: #fff;
  font-size: 20px;
  font-weight: 900;
  margin: 0 0 14px;
}

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

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

.footer-bottom {
  margin-top: 36px;
  padding-top: 24px;
  border-top: 1px solid rgba(148, 163, 184, 0.15);
  display: flex;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  color: #94a3b8;
  font-size: 14px;
}

.hidden-card {
  display: none !important;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

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

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

  .sidebar-card {
    position: static;
  }
}

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

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

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

  .hero-inner {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-top: 64px;
    padding-bottom: 86px;
  }

  .hero {
    min-height: auto;
  }

  .hero-control {
    display: none;
  }

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

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

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

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

  .rank-item .btn {
    grid-column: 2 / 4;
  }
}

@media (max-width: 620px) {
  .header-inner {
    min-height: 64px;
    padding: 0 16px;
  }

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

  .logo-subtitle {
    display: none;
  }

  .movie-grid.large,
  .movie-grid,
  .category-overview {
    grid-template-columns: 1fr;
  }

  .wide-card {
    grid-template-columns: 1fr;
  }

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

  .detail-card {
    padding: 20px;
  }

  .player-button {
    width: 68px;
    height: 68px;
  }
}
