:root {
  --bg: #f4f6fb;
  --bg-soft: #ffffff;
  --text: #1f2937;
  --muted: #64748b;
  --line: rgba(148, 163, 184, 0.25);
  --slate-900: #0f172a;
  --slate-800: #1e293b;
  --orange: #f97316;
  --red: #dc2626;
  --purple: #9333ea;
  --pink: #ec4899;
  --blue: #3b82f6;
  --teal: #14b8a6;
  --green: #22c55e;
  --shadow: 0 18px 45px rgba(15, 23, 42, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background: linear-gradient(135deg, #f8fafc 0%, #eef2f7 55%, #f8fafc 100%);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
}

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

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

button,
input,
select {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: linear-gradient(90deg, #0f172a, #1e293b 45%, #0f172a);
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.25);
  backdrop-filter: blur(14px);
}

.nav-wrap {
  width: min(1200px, calc(100% - 32px));
  margin: 0 auto;
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: max-content;
}

.logo-mark {
  width: 40px;
  height: 40px;
  border-radius: 13px;
  display: grid;
  place-items: center;
  color: #ffffff;
  background: linear-gradient(135deg, var(--orange), var(--red));
  font-weight: 900;
  box-shadow: 0 12px 24px rgba(249, 115, 22, 0.28);
  transition: transform 0.25s ease;
}

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

.logo-text strong {
  display: block;
  line-height: 1.1;
  font-size: 20px;
  font-weight: 900;
  background: linear-gradient(90deg, #fb923c, #ef4444);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.logo-text span {
  display: block;
  margin-top: 2px;
  color: #94a3b8;
  font-size: 12px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 20px;
  color: #cbd5e1;
  font-weight: 700;
  white-space: nowrap;
}

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

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

.site-search {
  position: relative;
  width: min(270px, 24vw);
}

.site-search input {
  width: 100%;
  height: 40px;
  border: 0;
  outline: none;
  border-radius: 12px;
  padding: 0 42px 0 16px;
  color: #ffffff;
  background: rgba(51, 65, 85, 0.95);
}

.site-search input::placeholder {
  color: #94a3b8;
}

.site-search button {
  position: absolute;
  top: 5px;
  right: 6px;
  width: 30px;
  height: 30px;
  border: 0;
  border-radius: 9px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--orange), var(--red));
  cursor: pointer;
}

.menu-toggle {
  display: none;
  border: 0;
  border-radius: 10px;
  padding: 9px 11px;
  color: #e2e8f0;
  background: rgba(51, 65, 85, 0.95);
}

.mobile-panel {
  display: none;
  border-top: 1px solid rgba(148, 163, 184, 0.16);
  padding: 16px;
  background: #1e293b;
}

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

.mobile-panel a {
  display: block;
  padding: 11px 4px;
  color: #cbd5e1;
  font-weight: 700;
}

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

.main-wrap {
  width: min(1200px, calc(100% - 32px));
  margin: 0 auto;
  padding: 32px 0 56px;
}

.hero-carousel {
  position: relative;
  height: clamp(420px, 54vw, 600px);
  overflow: hidden;
  border-radius: 28px;
  box-shadow: var(--shadow);
  background: var(--slate-900);
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.9s ease;
}

.hero-slide.is-active {
  opacity: 1;
  pointer-events: auto;
}

.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.03);
}

.hero-slide.is-active .hero-image {
  animation: heroZoom 7s ease forwards;
}

@keyframes heroZoom {
  from {
    transform: scale(1.06);
  }
  to {
    transform: scale(1.01);
  }
}

.hero-mask {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 28%, rgba(249, 115, 22, 0.24), transparent 34%),
    linear-gradient(90deg, rgba(0, 0, 0, 0.82), rgba(0, 0, 0, 0.42) 52%, rgba(0, 0, 0, 0.18)),
    linear-gradient(0deg, rgba(0, 0, 0, 0.78), transparent 42%);
}

.hero-content {
  position: absolute;
  left: clamp(24px, 6vw, 72px);
  bottom: clamp(32px, 7vw, 86px);
  width: min(680px, calc(100% - 48px));
  color: #ffffff;
}

.hero-kicker,
.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 14px;
  font-weight: 800;
  color: #ffffff;
  background: linear-gradient(90deg, var(--orange), var(--red));
  box-shadow: 0 12px 30px rgba(249, 115, 22, 0.25);
}

.hero-content h1,
.hero-content h2 {
  margin: 18px 0 14px;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.08;
  font-weight: 950;
  letter-spacing: -0.04em;
}

.hero-content p {
  max-width: 780px;
  margin: 0 0 24px;
  color: #e2e8f0;
  font-size: clamp(16px, 1.6vw, 20px);
  line-height: 1.75;
}

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

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

.btn-primary {
  color: #ffffff;
  background: linear-gradient(90deg, var(--orange), var(--red));
  box-shadow: 0 16px 35px rgba(239, 68, 68, 0.25);
}

.btn-soft {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.24);
  backdrop-filter: blur(12px);
}

.btn-light {
  color: var(--purple);
  background: #ffffff;
}

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

.hero-arrow {
  position: absolute;
  top: 50%;
  z-index: 3;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  color: #ffffff;
  background: rgba(0, 0, 0, 0.48);
  cursor: pointer;
  transform: translateY(-50%);
  transition: background 0.2s ease;
}

.hero-arrow:hover {
  background: rgba(0, 0, 0, 0.7);
}

.hero-prev {
  left: 18px;
}

.hero-next {
  right: 18px;
}

.hero-dots {
  position: absolute;
  left: 50%;
  bottom: 18px;
  display: flex;
  gap: 8px;
  transform: translateX(-50%);
}

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

.hero-dot.is-active {
  width: 34px;
  background: #f97316;
}

.section {
  margin-top: 42px;
}

.section-card {
  border-radius: 28px;
  padding: clamp(20px, 3vw, 34px);
  box-shadow: var(--shadow);
}

.section-card.white {
  background: #ffffff;
}

.section-card.blue {
  color: #ffffff;
  background: linear-gradient(135deg, var(--blue), var(--teal));
}

.section-card.purple {
  color: #ffffff;
  background: linear-gradient(135deg, var(--purple), var(--pink));
}

.section-card.green {
  color: #ffffff;
  background: linear-gradient(135deg, var(--green), var(--blue));
}

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

.section-head h2,
.page-title h1,
.detail-title h1 {
  margin: 0;
  font-size: clamp(28px, 3.6vw, 42px);
  line-height: 1.16;
  font-weight: 950;
  letter-spacing: -0.03em;
}

.section-head p,
.page-title p,
.detail-title p {
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.8;
}

.section-card.blue .section-head p,
.section-card.purple .section-head p,
.section-card.green .section-head p {
  color: rgba(255, 255, 255, 0.82);
}

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

.card-grid.compact {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px;
}

.movie-card {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: 18px;
  color: var(--text);
  background: #ffffff;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.09);
  transition: transform 0.26s ease, box-shadow 0.26s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 38px rgba(15, 23, 42, 0.16);
}

.section-card.blue .movie-card,
.section-card.purple .movie-card,
.section-card.green .movie-card {
  box-shadow: 0 18px 34px rgba(15, 23, 42, 0.22);
}

.poster-wrap {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: #0f172a;
}

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

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

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

.poster-shade {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: #ffffff;
  font-weight: 950;
  background: rgba(0, 0, 0, 0.42);
  opacity: 0;
  transition: opacity 0.25s ease;
}

.movie-card:hover .poster-shade {
  opacity: 1;
}

.play-dot {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--orange), var(--red));
  box-shadow: 0 16px 34px rgba(239, 68, 68, 0.32);
}

.badge {
  position: absolute;
  right: 10px;
  bottom: 10px;
  z-index: 2;
  border-radius: 999px;
  padding: 5px 9px;
  color: #ffffff;
  font-size: 12px;
  font-weight: 800;
  background: rgba(0, 0, 0, 0.68);
}

.badge.top {
  top: 10px;
  right: auto;
  bottom: auto;
  left: 10px;
  background: linear-gradient(90deg, var(--orange), var(--red));
}

.card-body {
  padding: 16px;
}

.movie-card h3 {
  margin: 0 0 8px;
  color: #1f2937;
  font-size: 17px;
  line-height: 1.35;
  font-weight: 900;
  transition: color 0.22s ease;
}

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

.movie-card p {
  margin: 0 0 12px;
  color: #64748b;
  font-size: 14px;
  line-height: 1.65;
}

.card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: #64748b;
  font-size: 13px;
}

.card-tag,
.chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 5px 10px;
  color: #ea580c;
  font-size: 12px;
  font-weight: 800;
  background: #ffedd5;
}

.tag-row,
.category-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.category-links a,
.filter-panel a {
  border-radius: 999px;
  padding: 10px 16px;
  color: #ffffff;
  font-weight: 850;
  background: rgba(255, 255, 255, 0.18);
  transition: background 0.2s ease, transform 0.2s ease;
}

.category-links a:hover,
.filter-panel a:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.32);
}

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

.movie-row {
  display: grid;
  grid-template-columns: 180px 1fr auto;
  gap: 18px;
  align-items: stretch;
  overflow: hidden;
  border-radius: 18px;
  color: var(--text);
  background: #ffffff;
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.1);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.movie-row:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 36px rgba(15, 23, 42, 0.16);
}

.movie-row .row-poster {
  min-height: 116px;
  background: #0f172a;
}

.movie-row .row-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.movie-row .row-body {
  padding: 18px 0;
}

.movie-row h3 {
  margin: 0 0 8px;
  font-size: 20px;
  font-weight: 950;
}

.movie-row p {
  margin: 0 0 14px;
  color: #64748b;
  line-height: 1.7;
}

.row-rank {
  display: grid;
  place-items: center;
  min-width: 92px;
  color: #ffffff;
  font-size: 28px;
  font-weight: 950;
  background: linear-gradient(135deg, var(--orange), var(--red));
}

.page-hero {
  margin-bottom: 28px;
  border-radius: 28px;
  padding: clamp(24px, 5vw, 54px);
  color: #ffffff;
  background:
    radial-gradient(circle at 20% 20%, rgba(249, 115, 22, 0.34), transparent 34%),
    linear-gradient(135deg, #0f172a, #1e293b 52%, #111827);
  box-shadow: var(--shadow);
}

.page-title {
  max-width: 820px;
}

.page-title p {
  color: rgba(255, 255, 255, 0.82);
}

.filter-panel {
  display: grid;
  grid-template-columns: 1fr 160px 160px;
  gap: 12px;
  margin: 0 0 24px;
}

.filter-panel input,
.filter-panel select,
.search-box input {
  width: 100%;
  min-height: 46px;
  border: 1px solid rgba(148, 163, 184, 0.35);
  border-radius: 14px;
  padding: 0 14px;
  color: #1f2937;
  background: #ffffff;
  outline: none;
}

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

.detail-hero {
  display: grid;
  grid-template-columns: minmax(220px, 330px) 1fr;
  gap: clamp(20px, 4vw, 42px);
  align-items: center;
  border-radius: 28px;
  padding: clamp(20px, 4vw, 36px);
  color: #ffffff;
  background:
    radial-gradient(circle at 18% 18%, rgba(249, 115, 22, 0.32), transparent 34%),
    linear-gradient(135deg, #0f172a, #1e293b 58%, #111827);
  box-shadow: var(--shadow);
}

.detail-poster {
  overflow: hidden;
  border-radius: 24px;
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.35);
  aspect-ratio: 2 / 3;
  background: #0f172a;
}

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

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 20px;
  color: #64748b;
  font-size: 14px;
}

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

.detail-title p {
  color: rgba(255, 255, 255, 0.86);
}

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

.detail-meta span {
  border-radius: 999px;
  padding: 8px 12px;
  color: #ffffff;
  font-size: 13px;
  font-weight: 850;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.content-card {
  margin-top: 28px;
  border-radius: 28px;
  padding: clamp(22px, 3vw, 34px);
  background: #ffffff;
  box-shadow: var(--shadow);
}

.content-card h2 {
  margin: 0 0 16px;
  font-size: 28px;
  line-height: 1.24;
  font-weight: 950;
}

.content-card p {
  margin: 0 0 18px;
  color: #475569;
  line-height: 1.9;
  font-size: 16px;
}

.player-card {
  margin-top: 28px;
  overflow: hidden;
  border-radius: 28px;
  background: #0f172a;
  box-shadow: var(--shadow);
}

.player-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 24px;
  color: #ffffff;
  background: linear-gradient(90deg, #0f172a, #1e293b);
}

.player-head h2 {
  margin: 0;
  font-size: 24px;
  font-weight: 950;
}

.video-shell {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #020617;
}

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

.player-trigger {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: grid;
  place-items: center;
  border: 0;
  color: #ffffff;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.62), rgba(0, 0, 0, 0.18));
  cursor: pointer;
  transition: opacity 0.2s ease;
}

.player-trigger.is-hidden {
  opacity: 0;
  pointer-events: none;
}

.player-button-inner {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  border-radius: 999px;
  padding: 16px 26px;
  font-size: 20px;
  font-weight: 950;
  background: linear-gradient(90deg, var(--orange), var(--red));
  box-shadow: 0 22px 50px rgba(239, 68, 68, 0.35);
}

.search-box {
  display: flex;
  gap: 12px;
  margin-top: 20px;
}

.search-box button {
  border: 0;
  border-radius: 14px;
  padding: 0 22px;
  color: #ffffff;
  font-weight: 900;
  background: linear-gradient(90deg, var(--orange), var(--red));
}

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

.footer-wrap {
  width: min(1200px, calc(100% - 32px));
  margin: 0 auto;
  padding: 40px 0;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 26px;
}

.footer-wrap h2,
.footer-wrap h3 {
  margin: 0 0 12px;
  color: #ffffff;
}

.footer-wrap p,
.footer-wrap a {
  color: #94a3b8;
  line-height: 1.8;
}

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

.back-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 40;
  display: none;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 50%;
  color: #ffffff;
  background: linear-gradient(135deg, var(--orange), var(--red));
  box-shadow: 0 14px 30px rgba(239, 68, 68, 0.26);
  cursor: pointer;
}

.back-top.is-visible {
  display: grid;
  place-items: center;
}

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

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

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

@media (max-width: 1024px) {
  .nav-links,
  .desktop-search {
    display: none;
  }

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

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

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

  .filter-panel input {
    grid-column: 1 / -1;
  }
}

@media (max-width: 760px) {
  .nav-wrap {
    width: min(100% - 24px, 1200px);
  }

  .logo-text span {
    display: none;
  }

  .hero-carousel {
    height: 520px;
    border-radius: 22px;
  }

  .hero-content {
    left: 20px;
    bottom: 56px;
    width: calc(100% - 40px);
  }

  .hero-arrow {
    display: none;
  }

  .section-head {
    display: block;
  }

  .card-grid,
  .card-grid.compact {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }

  .section-card {
    border-radius: 22px;
    padding: 18px;
  }

  .movie-row {
    grid-template-columns: 112px 1fr;
  }

  .row-rank {
    grid-column: 1 / -1;
    min-height: 46px;
    font-size: 20px;
  }

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

  .detail-poster {
    max-width: 260px;
  }

  .filter-panel,
  .search-box,
  .footer-wrap {
    grid-template-columns: 1fr;
  }

  .search-box {
    display: grid;
  }
}

@media (max-width: 460px) {
  .card-grid,
  .card-grid.compact {
    grid-template-columns: 1fr;
  }

  .poster-wrap {
    aspect-ratio: 16 / 10;
  }

  .hero-content h1,
  .hero-content h2 {
    font-size: 32px;
  }
}
