
:root {
  --bg: #f8fafc;
  --ink: #111827;
  --muted: #64748b;
  --line: #e5e7eb;
  --slate: #0f172a;
  --slate-soft: #1e293b;
  --orange: #f97316;
  --pink: #ec4899;
  --yellow: #facc15;
  --card: #ffffff;
  --shadow: 0 18px 45px rgba(15, 23, 42, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  color: #fff;
  background: linear-gradient(90deg, #0f172a 0%, #1e293b 50%, #0f172a 100%);
  border-bottom: 1px solid rgba(148, 163, 184, 0.28);
  box-shadow: 0 14px 35px rgba(15, 23, 42, 0.35);
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
}

.brand-icon {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--orange), var(--pink));
  box-shadow: 0 8px 22px rgba(249, 115, 22, 0.38);
  transition: transform 0.25s ease;
}

.brand:hover .brand-icon {
  transform: scale(1.08) rotate(-4deg);
}

.brand-text {
  font-size: 24px;
  font-weight: 900;
  letter-spacing: 0.02em;
  background: linear-gradient(90deg, #fb923c, #ec4899);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  white-space: nowrap;
}

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

.desktop-nav a {
  color: rgba(255, 255, 255, 0.88);
  transition: color 0.2s ease;
}

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

.nav-drop {
  position: relative;
  padding: 20px 0;
}

.drop-menu {
  position: absolute;
  top: 58px;
  left: -12px;
  width: 190px;
  padding: 10px;
  border: 1px solid rgba(148, 163, 184, 0.25);
  border-radius: 16px;
  background: #1e293b;
  box-shadow: var(--shadow);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: all 0.2s ease;
}

.nav-drop:hover .drop-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.drop-menu a {
  display: block;
  padding: 8px 12px;
  border-radius: 10px;
}

.drop-menu a:hover {
  background: rgba(255, 255, 255, 0.08);
}

.top-search {
  margin-left: auto;
  display: flex;
  align-items: center;
  border-radius: 999px;
  background: rgba(51, 65, 85, 0.95);
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.25);
}

.top-search input,
.mobile-search input {
  width: 230px;
  border: 0;
  outline: 0;
  padding: 10px 14px;
  color: #fff;
  background: transparent;
}

.top-search input::placeholder,
.mobile-search input::placeholder {
  color: rgba(226, 232, 240, 0.72);
}

.top-search button,
.mobile-search button {
  border: 0;
  padding: 10px 16px;
  color: #fff;
  font-weight: 800;
  cursor: pointer;
  background: linear-gradient(135deg, var(--orange), var(--pink));
}

.mobile-toggle {
  display: none;
  margin-left: auto;
  border: 0;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  color: #fff;
  font-size: 22px;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.1);
}

.mobile-panel {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 22px 18px;
}

.mobile-panel a {
  display: block;
  padding: 11px 0;
  color: rgba(255, 255, 255, 0.9);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.mobile-search {
  display: flex;
  margin-top: 12px;
  overflow: hidden;
  border-radius: 18px;
  background: rgba(51, 65, 85, 0.95);
}

.hero {
  position: relative;
  min-height: 600px;
  overflow: hidden;
  background: #000;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.8s ease;
}

.hero-slide.active {
  opacity: 1;
  z-index: 1;
}

.hero-slide img {
  width: 100%;
  height: 100%;
  min-height: 600px;
  object-fit: cover;
}

.hero-slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.92) 0%, rgba(0, 0, 0, 0.72) 46%, rgba(0, 0, 0, 0.1) 100%);
}

.hero-content {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  align-items: center;
}

.hero-copy {
  max-width: 1180px;
  width: 100%;
  margin: 0 auto;
  padding: 0 22px;
}

.hero-panel {
  max-width: 690px;
  color: #fff;
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 7px 14px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--orange), var(--pink));
  font-weight: 900;
  box-shadow: 0 15px 30px rgba(236, 72, 153, 0.25);
}

.hero h1 {
  margin: 24px 0 16px;
  font-size: clamp(40px, 7vw, 72px);
  line-height: 1.04;
  letter-spacing: -0.04em;
}

.hero p {
  margin: 0 0 24px;
  max-width: 640px;
  color: rgba(226, 232, 240, 0.92);
  font-size: 20px;
}

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

.hero-meta span {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 8px 12px;
  color: #fff;
  background: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(14px);
}

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

.btn-primary,
.btn-ghost,
.btn-soft {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 900;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn-primary {
  color: #fff;
  background: linear-gradient(135deg, var(--orange), var(--pink));
  box-shadow: 0 15px 35px rgba(249, 115, 22, 0.3);
}

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

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

.btn-soft {
  color: var(--orange);
  background: #fff7ed;
}

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

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

.hero-dots button.active {
  width: 68px;
  background: var(--orange);
}

.section {
  padding: 64px 22px;
}

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

.section.dark {
  color: #fff;
  background: linear-gradient(135deg, #0f172a, #1e293b);
}

.container {
  max-width: 1180px;
  margin: 0 auto;
}

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

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

.section-lead {
  margin: 8px 0 0;
  color: var(--muted);
  max-width: 720px;
}

.dark .section-lead {
  color: rgba(226, 232, 240, 0.72);
}

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

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

.movie-card {
  overflow: hidden;
  border-radius: 22px;
  background: var(--card);
  box-shadow: 0 14px 35px rgba(15, 23, 42, 0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

.poster {
  position: relative;
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: linear-gradient(135deg, #111827, #334155);
}

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

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

.poster::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.02), rgba(0, 0, 0, 0.62));
}

.rating,
.type-pill,
.rank-badge {
  position: absolute;
  z-index: 2;
  border-radius: 999px;
  color: #fff;
  font-size: 13px;
  font-weight: 900;
  line-height: 1;
}

.rating {
  top: 12px;
  right: 12px;
  padding: 7px 9px;
  color: #111827;
  background: var(--yellow);
}

.type-pill {
  left: 12px;
  bottom: 12px;
  padding: 7px 10px;
  background: linear-gradient(135deg, var(--orange), var(--pink));
}

.rank-badge {
  top: 12px;
  left: 12px;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  background: rgba(15, 23, 42, 0.8);
  backdrop-filter: blur(12px);
}

.card-body {
  padding: 16px 16px 18px;
}

.card-title {
  display: block;
  color: #111827;
  font-size: 19px;
  font-weight: 900;
  line-height: 1.3;
  margin-bottom: 8px;
}

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

.card-body p {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 14px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.meta-line {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: #475569;
  font-size: 13px;
  margin-bottom: 12px;
}

.meta-line span {
  padding: 4px 8px;
  border-radius: 999px;
  background: #f1f5f9;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.tag-row span {
  padding: 4px 8px;
  border-radius: 999px;
  color: #7c2d12;
  background: #ffedd5;
  font-size: 12px;
  font-weight: 800;
}

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

.category-card {
  min-height: 170px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 22px;
  border-radius: 26px;
  color: #fff;
  background: linear-gradient(135deg, #f97316, #ec4899);
  box-shadow: 0 18px 38px rgba(236, 72, 153, 0.22);
  transition: transform 0.25s ease;
}

.category-card:nth-child(2n) {
  background: linear-gradient(135deg, #0ea5e9, #8b5cf6);
}

.category-card:nth-child(3n) {
  background: linear-gradient(135deg, #14b8a6, #22c55e);
}

.category-card:hover {
  transform: translateY(-6px);
}

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

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

.page-hero {
  padding: 58px 22px;
  color: #fff;
  background: radial-gradient(circle at 15% 20%, rgba(249, 115, 22, 0.38), transparent 32%), linear-gradient(135deg, #0f172a, #1e293b);
}

.page-hero .container {
  display: grid;
  gap: 16px;
}

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

.breadcrumb a:hover {
  color: #fb923c;
}

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

.page-hero p {
  margin: 0;
  max-width: 760px;
  color: rgba(226, 232, 240, 0.82);
  font-size: 18px;
}

.toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  padding: 18px;
  margin-bottom: 28px;
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.08);
}

.toolbar input,
.toolbar select {
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px 12px;
  outline: 0;
  background: #f8fafc;
}

.toolbar input:focus,
.toolbar select:focus {
  border-color: var(--orange);
  box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.14);
}

.detail-wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 28px;
}

.player-shell {
  position: relative;
  overflow: hidden;
  border-radius: 26px;
  background: #000;
  box-shadow: 0 22px 60px rgba(15, 23, 42, 0.3);
}

.movie-video {
  width: 100%;
  aspect-ratio: 16 / 9;
  display: block;
  background: #000;
  cursor: pointer;
}

.play-overlay {
  position: absolute;
  inset: 0;
  z-index: 5;
  display: grid;
  place-items: center;
  border: 0;
  cursor: pointer;
  color: #fff;
  background: radial-gradient(circle at center, rgba(249, 115, 22, 0.18), rgba(0, 0, 0, 0.72));
}

.play-overlay[hidden] {
  display: none;
}

.play-overlay span {
  width: 86px;
  height: 86px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  font-size: 36px;
  background: linear-gradient(135deg, var(--orange), var(--pink));
  box-shadow: 0 18px 42px rgba(236, 72, 153, 0.35);
  padding-left: 6px;
}

.detail-card,
.side-card {
  border-radius: 26px;
  background: #fff;
  box-shadow: 0 14px 35px rgba(15, 23, 42, 0.08);
}

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

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

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

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  color: #475569;
  margin-bottom: 18px;
}

.detail-meta span {
  padding: 7px 11px;
  border-radius: 999px;
  background: #f1f5f9;
  font-weight: 800;
}

.detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
}

.detail-tags span {
  padding: 7px 11px;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(135deg, var(--orange), var(--pink));
  font-size: 13px;
  font-weight: 900;
}

.side-card {
  padding: 18px;
  position: sticky;
  top: 88px;
}

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

.mini-list {
  display: grid;
  gap: 12px;
}

.mini-card {
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 12px;
  align-items: center;
  padding: 8px;
  border-radius: 16px;
  background: #f8fafc;
  transition: background 0.2s ease, transform 0.2s ease;
}

.mini-card:hover {
  transform: translateX(4px);
  background: #fff7ed;
}

.mini-card img {
  width: 92px;
  height: 62px;
  object-fit: cover;
  border-radius: 12px;
  background: #0f172a;
}

.mini-card span {
  font-weight: 900;
  line-height: 1.35;
}

.mini-card em {
  display: block;
  color: var(--orange);
  font-style: normal;
  font-size: 13px;
  font-weight: 900;
}

.no-results {
  padding: 48px 18px;
  text-align: center;
  color: var(--muted);
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.08);
}

.site-footer {
  padding: 34px 22px;
  color: rgba(255, 255, 255, 0.82);
  background: #0f172a;
}

.footer-inner {
  max-width: 1180px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
}

.site-footer strong {
  color: #fff;
  font-size: 22px;
}

.site-footer p {
  margin: 6px 0 0;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  font-weight: 800;
}

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

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

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

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

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

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

  .side-card {
    position: static;
  }
}

@media (max-width: 760px) {
  .header-inner {
    height: 62px;
  }

  .brand-text {
    font-size: 20px;
  }

  .hero,
  .hero-slide img {
    min-height: 560px;
  }

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

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

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

  .card-body {
    padding: 13px;
  }

  .card-title {
    font-size: 16px;
  }

  .toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .toolbar input,
  .toolbar select {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .movie-grid,
  .movie-grid.three,
  .category-grid {
    grid-template-columns: 1fr;
  }

  .hero-actions,
  .section-actions {
    flex-direction: column;
  }

  .btn-primary,
  .btn-ghost,
  .btn-soft {
    width: 100%;
  }

  .mini-card {
    grid-template-columns: 82px 1fr;
  }

  .mini-card img {
    width: 82px;
  }
}
