:root {
  --slate-950: #020617;
  --slate-900: #0f172a;
  --slate-850: #172033;
  --slate-800: #1e293b;
  --slate-700: #334155;
  --orange-600: #ea580c;
  --orange-500: #f97316;
  --orange-400: #fb923c;
  --amber-500: #f59e0b;
  --amber-400: #fbbf24;
  --text: #111827;
  --muted: #64748b;
  --soft: #fff7ed;
  --card: #ffffff;
  --shadow: 0 18px 45px rgba(15, 23, 42, 0.12);
  --shadow-soft: 0 10px 25px rgba(15, 23, 42, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  background: linear-gradient(135deg, #f8fafc 0%, #fff7ed 46%, #fffbeb 100%);
  color: var(--text);
  line-height: 1.6;
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  color: white;
  background: linear-gradient(90deg, var(--slate-900), var(--slate-800), var(--slate-900));
  box-shadow: 0 10px 30px rgba(2, 6, 23, 0.35);
}

.header-inner {
  max-width: 1280px;
  height: 68px;
  margin: 0 auto;
  padding: 0 22px;
  display: flex;
  align-items: center;
  gap: 22px;
}

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: max-content;
}

.brand-icon,
.footer-brand span {
  width: 36px;
  height: 36px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--orange-500), var(--amber-400));
  color: white;
  box-shadow: 0 10px 25px rgba(249, 115, 22, 0.35);
}

.brand-copy {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.brand-copy strong {
  font-size: 20px;
  background: linear-gradient(90deg, var(--orange-400), var(--amber-400));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.brand-copy em {
  margin-top: 4px;
  color: #94a3b8;
  font-style: normal;
  font-size: 12px;
}

.top-search,
.mobile-search {
  flex: 1;
  max-width: 460px;
  display: flex;
  align-items: center;
  background: rgba(51, 65, 85, 0.88);
  border: 1px solid rgba(148, 163, 184, 0.35);
  border-radius: 999px;
  overflow: hidden;
}

.top-search input,
.mobile-search input {
  width: 100%;
  padding: 11px 16px;
  border: 0;
  outline: 0;
  color: white;
  background: transparent;
}

.top-search input::placeholder,
.mobile-search input::placeholder {
  color: #cbd5e1;
}

.top-search button,
.mobile-search button {
  padding: 10px 18px;
  border: 0;
  color: white;
  background: linear-gradient(90deg, var(--orange-500), var(--amber-500));
  cursor: pointer;
  font-weight: 700;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 20px;
  font-weight: 650;
}

.desktop-nav a {
  color: #e5e7eb;
  transition: color 0.2s ease;
}

.desktop-nav a:hover,
.desktop-nav a.active {
  color: var(--orange-400);
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 12px;
  color: white;
  background: rgba(51, 65, 85, 0.9);
  cursor: pointer;
  font-size: 20px;
}

.mobile-panel {
  display: none;
  border-top: 1px solid rgba(148, 163, 184, 0.22);
  padding: 14px 22px 20px;
  background: var(--slate-900);
}

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

.mobile-panel nav {
  margin-top: 14px;
  display: grid;
  gap: 10px;
}

.mobile-panel nav a {
  color: #e5e7eb;
  padding: 6px 0;
}

.hero {
  position: relative;
  height: 70vh;
  min-height: 520px;
  overflow: hidden;
  background: var(--slate-950);
}

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

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

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.02);
}

.hero-slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.86), rgba(0, 0, 0, 0.50) 48%, rgba(0, 0, 0, 0.10));
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 1280px;
  height: 100%;
  margin: 0 auto;
  padding: 0 22px 86px;
  display: flex;
  align-items: flex-end;
}

.hero-copy {
  max-width: 720px;
  color: white;
}

.hero-kicker,
.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: white;
  background: linear-gradient(90deg, var(--orange-500), var(--amber-500));
  border-radius: 999px;
  padding: 5px 14px;
  font-size: 14px;
  font-weight: 800;
}

.hero h1 {
  margin: 18px 0 14px;
  font-size: clamp(38px, 7vw, 68px);
  line-height: 1.06;
  letter-spacing: -0.04em;
}

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

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 30px;
  color: white;
}

.hero-meta span,
.movie-meta span,
.meta-line span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.primary-btn,
.secondary-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 999px;
  padding: 12px 24px;
  font-weight: 800;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

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

.secondary-btn {
  color: white;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.26);
  backdrop-filter: blur(8px);
}

.primary-btn:hover,
.secondary-btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.hero-dots {
  position: absolute;
  z-index: 3;
  right: 34px;
  bottom: 34px;
  display: flex;
  gap: 10px;
}

.hero-dots button {
  width: 13px;
  height: 13px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: width 0.25s ease, background 0.25s ease;
}

.hero-dots button.active {
  width: 34px;
  background: white;
}

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 22px;
}

.main-wrap {
  padding-top: 56px;
  padding-bottom: 72px;
}

.content-section {
  margin-bottom: 74px;
}

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

.section-head > div {
  display: flex;
  align-items: center;
  gap: 12px;
}

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

.section-icon {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  color: white;
  background: linear-gradient(135deg, var(--orange-500), var(--amber-500));
}

.section-more {
  color: var(--orange-600);
  font-weight: 800;
}

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

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

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

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

.poster-wrap {
  position: relative;
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #111827;
}

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

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

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

.duration,
.rank-badge,
.play-mark {
  position: absolute;
  z-index: 2;
}

.duration {
  right: 10px;
  bottom: 10px;
  color: white;
  background: rgba(0, 0, 0, 0.72);
  border-radius: 8px;
  padding: 3px 8px;
  font-size: 12px;
}

.rank-badge {
  left: 10px;
  top: 10px;
  width: 30px;
  height: 30px;
  border-radius: 10px;
  color: white;
  background: linear-gradient(135deg, var(--orange-500), var(--amber-500));
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
}

.play-mark {
  left: 50%;
  top: 50%;
  width: 54px;
  height: 54px;
  transform: translate(-50%, -50%) scale(0.85);
  border-radius: 999px;
  color: white;
  background: rgba(249, 115, 22, 0.86);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

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

.card-body {
  padding: 18px;
}

.card-body h3 {
  margin: 0 0 8px;
  font-size: 18px;
  line-height: 1.35;
}

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

.card-body p {
  margin: 0 0 12px;
  color: #475569;
  font-size: 14px;
  min-height: 44px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.meta-line,
.movie-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  color: #64748b;
  font-size: 13px;
}

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

.tag-row span,
.filter-chip {
  border-radius: 999px;
  background: #fff7ed;
  color: #c2410c;
  padding: 4px 9px;
  font-size: 12px;
  font-weight: 700;
}

.horizontal-card {
  display: flex;
  min-height: 174px;
}

.horizontal-card .poster-wrap {
  width: 210px;
  min-width: 210px;
  aspect-ratio: auto;
}

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

.category-card {
  position: relative;
  overflow: hidden;
  min-height: 190px;
  border-radius: 22px;
  color: white;
  padding: 24px;
  background: linear-gradient(135deg, var(--slate-800), var(--slate-900));
  box-shadow: var(--shadow-soft);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

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

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

.category-card h2,
.category-card h3 {
  margin: 0 0 12px;
  font-size: 24px;
}

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

.banner {
  color: white;
  background: linear-gradient(90deg, var(--slate-800), var(--slate-900));
  margin-bottom: 42px;
  padding: 54px 0;
  box-shadow: inset 0 -20px 60px rgba(0, 0, 0, 0.22);
}

.banner h1 {
  margin: 0 0 12px;
  font-size: clamp(34px, 5vw, 54px);
  letter-spacing: -0.04em;
}

.banner p {
  max-width: 760px;
  color: #cbd5e1;
  margin: 0;
  font-size: 18px;
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-bottom: 26px;
  padding: 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.76);
  box-shadow: var(--shadow-soft);
}

.filter-bar input,
.filter-bar select {
  min-height: 42px;
  border-radius: 999px;
  border: 1px solid #e2e8f0;
  padding: 0 15px;
  outline: none;
  background: white;
}

.filter-bar input {
  flex: 1 1 260px;
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(300px, 0.86fr);
  gap: 30px;
}

.player-card,
.detail-card,
.side-card {
  border-radius: 22px;
  overflow: hidden;
  background: white;
  box-shadow: var(--shadow-soft);
}

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

.player-shell video {
  width: 100%;
  height: 100%;
  background: #020617;
}

.player-cover {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(0deg, rgba(2, 6, 23, 0.62), rgba(2, 6, 23, 0.18));
  cursor: pointer;
  z-index: 2;
}

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

.player-button {
  width: 82px;
  height: 82px;
  border: 0;
  border-radius: 999px;
  color: white;
  background: linear-gradient(135deg, var(--orange-500), var(--amber-500));
  box-shadow: 0 18px 44px rgba(249, 115, 22, 0.38);
  cursor: pointer;
  font-size: 30px;
  padding-left: 5px;
}

.detail-card {
  margin-top: 24px;
  padding: 26px;
}

.breadcrumbs {
  color: #64748b;
  font-size: 14px;
  margin-bottom: 14px;
}

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

.detail-card h1 {
  margin: 0 0 16px;
  font-size: clamp(30px, 4vw, 44px);
  line-height: 1.12;
}

.movie-meta {
  margin-bottom: 20px;
}

.story-block {
  margin-top: 24px;
  padding-top: 22px;
  border-top: 1px solid #e2e8f0;
}

.story-block h2 {
  margin: 0 0 12px;
  font-size: 24px;
}

.story-block p {
  color: #334155;
  margin: 0;
}

.side-card {
  padding: 20px;
}

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

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

.side-item {
  display: flex;
  gap: 12px;
  align-items: center;
  padding-bottom: 14px;
  border-bottom: 1px solid #e2e8f0;
}

.side-item:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.side-item img {
  width: 86px;
  height: 60px;
  object-fit: cover;
  border-radius: 12px;
  background: #111827;
}

.side-item strong {
  display: block;
  line-height: 1.35;
}

.side-item span {
  display: block;
  color: #64748b;
  font-size: 13px;
  margin-top: 3px;
}

.ranking-list {
  display: grid;
  gap: 18px;
}

.search-empty {
  padding: 42px;
  border-radius: 22px;
  background: white;
  color: #64748b;
  box-shadow: var(--shadow-soft);
}

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

.footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 46px 22px;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 34px;
}

.footer-brand strong {
  color: white;
  font-size: 20px;
}

.site-footer p {
  max-width: 460px;
  margin: 16px 0 0;
  color: #94a3b8;
}

.site-footer h3 {
  margin: 0 0 14px;
  color: white;
}

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

.footer-links a {
  color: #cbd5e1;
}

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

.footer-bottom {
  border-top: 1px solid rgba(148, 163, 184, 0.18);
  padding: 18px 22px;
  text-align: center;
  color: #94a3b8;
}

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

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

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

  .menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .header-inner {
    height: 64px;
  }

  .hero {
    height: 72vh;
    min-height: 500px;
  }

  .hero-content {
    padding-bottom: 70px;
  }

  .hero-dots {
    left: 22px;
    right: auto;
  }

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

  .horizontal-card {
    display: block;
  }

  .horizontal-card .poster-wrap {
    width: 100%;
    min-width: 0;
    aspect-ratio: 16 / 10;
  }

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

@media (max-width: 560px) {
  .brand-copy strong {
    font-size: 18px;
  }

  .brand-copy em {
    display: none;
  }

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

  .hero p {
    font-size: 16px;
  }

  .movie-grid,
  .movie-grid.three,
  .category-cards {
    grid-template-columns: 1fr;
  }

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

  .detail-card,
  .side-card {
    padding: 18px;
  }
}
