:root {
  --blue: #2563eb;
  --cyan: #06b6d4;
  --teal: #14b8a6;
  --orange: #f97316;
  --red: #ef4444;
  --slate-950: #020617;
  --slate-900: #0f172a;
  --slate-800: #1e293b;
  --slate-700: #334155;
  --gray-900: #111827;
  --gray-700: #374151;
  --gray-600: #4b5563;
  --gray-100: #f3f4f6;
  --white: #ffffff;
  --shadow: 0 18px 45px rgba(15, 23, 42, 0.16);
  --soft-shadow: 0 10px 28px rgba(15, 23, 42, 0.12);
  --radius: 22px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

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(--blue), var(--cyan), var(--teal));
  box-shadow: 0 12px 28px rgba(37, 99, 235, 0.28);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 22px;
  min-height: 68px;
}

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.brand-mark {
  display: inline-grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 999px;
  color: var(--blue);
  background: var(--white);
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.15);
}

.brand-name {
  font-size: 24px;
  white-space: nowrap;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-left: auto;
}

.nav-link {
  border: 0;
  color: rgba(255, 255, 255, 0.95);
  background: transparent;
  cursor: pointer;
  font-weight: 650;
  transition: color 0.2s ease, opacity 0.2s ease;
}

.nav-link:hover,
.nav-link.is-active {
  color: #dbeafe;
}

.nav-dropdown {
  position: relative;
}

.dropdown-panel {
  position: absolute;
  top: calc(100% + 14px);
  left: 0;
  display: grid;
  min-width: 180px;
  padding: 10px;
  color: var(--gray-900);
  background: var(--white);
  border-radius: 16px;
  box-shadow: var(--shadow);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: 0.2s ease;
}

.nav-dropdown:hover .dropdown-panel,
.nav-dropdown:focus-within .dropdown-panel {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-panel a {
  padding: 9px 12px;
  border-radius: 10px;
}

.dropdown-panel a:hover {
  color: var(--blue);
  background: #eff6ff;
}

.header-search {
  display: flex;
  align-items: center;
  width: 290px;
  padding: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.17);
  backdrop-filter: blur(12px);
}

.header-search input,
.mobile-search input,
.filter-box input {
  width: 100%;
  border: 0;
  outline: 0;
  color: inherit;
  background: transparent;
}

.header-search input {
  padding: 9px 12px;
  color: var(--white);
}

.header-search input::placeholder {
  color: rgba(255, 255, 255, 0.8);
}

.header-search button,
.mobile-search button,
.filter-box button,
.primary-button,
.secondary-button {
  border: 0;
  cursor: pointer;
  font-weight: 750;
  border-radius: 999px;
}

.header-search button,
.mobile-search button {
  padding: 8px 15px;
  color: var(--blue);
  background: var(--white);
}

.menu-toggle {
  display: none;
  margin-left: auto;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  margin: 5px 0;
  border-radius: 2px;
  background: var(--white);
}

.mobile-panel {
  display: none;
  background: rgba(15, 23, 42, 0.97);
}

.mobile-panel-inner {
  display: grid;
  gap: 10px;
  padding: 16px 0 20px;
}

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

.mobile-search {
  display: flex;
  gap: 10px;
  padding: 8px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.12);
}

.mobile-search input {
  color: var(--white);
  padding: 8px;
}

.hero {
  position: relative;
  height: min(640px, calc(100vh - 68px));
  min-height: 520px;
  overflow: hidden;
  color: var(--white);
  background: var(--slate-900);
}

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

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

.hero-bg {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 18% 20%, rgba(37, 99, 235, 0.8), transparent 30%), linear-gradient(135deg, #0f172a, #1e3a8a 42%, #155e75 100%);
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.45;
  filter: saturate(1.05);
}

.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.24), rgba(0, 0, 0, 0.74));
}

.hero-content {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 100%;
  padding: 70px 0 86px;
}

.hero-copy {
  width: min(680px, 100%);
}

.hero-pill,
.kicker,
.category-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 15px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 750;
}

.hero-pill {
  color: var(--white);
  background: linear-gradient(90deg, var(--orange), var(--red));
  box-shadow: 0 12px 28px rgba(249, 115, 22, 0.25);
}

.hero h1,
.page-hero h1,
.detail-title h1 {
  margin: 18px 0 16px;
  font-size: clamp(38px, 6vw, 68px);
  line-height: 1.05;
  letter-spacing: -0.055em;
}

.hero p,
.page-hero p {
  max-width: 760px;
  margin: 0 0 28px;
  color: rgba(255, 255, 255, 0.86);
  font-size: clamp(17px, 2vw, 22px);
}

.hero-meta,
.detail-meta,
.card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 30px;
}

.hero-meta span,
.detail-meta span,
.card-meta span {
  padding: 7px 13px;
  border-radius: 999px;
  color: var(--white);
  background: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(10px);
}

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

.primary-button,
.secondary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 24px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.primary-button {
  color: var(--white);
  background: linear-gradient(90deg, var(--orange), var(--red));
  box-shadow: 0 18px 34px rgba(239, 68, 68, 0.26);
}

.secondary-button {
  color: var(--white);
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.22);
}

.primary-button:hover,
.secondary-button:hover {
  transform: translateY(-2px) scale(1.01);
}

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

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

.hero-dot.is-active {
  width: 32px;
  background: var(--white);
}

.section {
  padding: 70px 0;
  background: var(--white);
}

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

.section.dark {
  color: var(--white);
  background: linear-gradient(135deg, var(--slate-950), var(--slate-800));
}

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

.section-heading h2,
.page-section h2,
.detail-section h2 {
  margin: 0 0 8px;
  font-size: clamp(26px, 4vw, 36px);
  line-height: 1.15;
  letter-spacing: -0.04em;
}

.section-heading p {
  margin: 0;
  color: var(--gray-600);
}

.section.dark .section-heading p {
  color: #cbd5e1;
}

.section-heading a {
  color: var(--blue);
  font-weight: 750;
  white-space: nowrap;
}

.section.dark .section-heading a {
  color: #93c5fd;
}

.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: 18px;
  background: var(--white);
  box-shadow: var(--soft-shadow);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

.section.dark .movie-card {
  color: var(--white);
  background: rgba(30, 41, 59, 0.88);
}

.movie-poster {
  position: relative;
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: radial-gradient(circle at 20% 20%, rgba(6, 182, 212, 0.78), transparent 34%), linear-gradient(135deg, #1d4ed8, #0f172a);
}

.movie-poster img,
.strip-item img,
.feature-image img,
.detail-poster img,
.player-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.2s ease, transform 0.35s ease;
}

.movie-card:hover .movie-poster img,
.feature-card:hover .feature-image img,
.strip-item:hover img {
  transform: scale(1.08);
}

.poster-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 38%, rgba(15, 23, 42, 0.72));
}

.play-icon {
  position: absolute;
  left: 50%;
  top: 50%;
  display: grid;
  width: 52px;
  height: 52px;
  place-items: center;
  border-radius: 999px;
  color: var(--white);
  background: rgba(255, 255, 255, 0.22);
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.9);
  backdrop-filter: blur(10px);
  transition: 0.25s ease;
}

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

.rank-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  padding: 4px 10px;
  border-radius: 999px;
  color: var(--white);
  font-weight: 800;
  background: var(--red);
}

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

.movie-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
  color: var(--gray-600);
  font-size: 13px;
}

.movie-meta-row span {
  padding: 3px 8px;
  border-radius: 999px;
  background: #eff6ff;
}

.section.dark .movie-meta-row {
  color: #cbd5e1;
}

.section.dark .movie-meta-row span {
  color: #bfdbfe;
  background: rgba(59, 130, 246, 0.18);
}

.movie-card h2,
.movie-card h3 {
  margin: 0 0 8px;
  font-size: 19px;
  line-height: 1.35;
}

.movie-card h2 a:hover,
.movie-card h3 a:hover {
  color: var(--blue);
}

.movie-card p {
  display: -webkit-box;
  min-height: 50px;
  margin: 0 0 12px;
  overflow: hidden;
  color: var(--gray-600);
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.section.dark .movie-card p {
  color: #cbd5e1;
}

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

.tag-list span {
  padding: 4px 9px;
  border-radius: 999px;
  color: #1d4ed8;
  background: #dbeafe;
  font-size: 12px;
  font-weight: 650;
}

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

.category-tile {
  display: grid;
  min-height: 184px;
  align-content: start;
  gap: 8px;
  padding: 24px;
  overflow: hidden;
  border-radius: 22px;
  color: var(--white);
  box-shadow: var(--soft-shadow);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.category-tile:hover {
  transform: translateY(-7px) scale(1.01);
  box-shadow: var(--shadow);
}

.tile-1 {
  background: linear-gradient(135deg, #f97316, #ef4444);
}

.tile-2 {
  background: linear-gradient(135deg, #3b82f6, #6366f1);
}

.tile-3 {
  background: linear-gradient(135deg, #22c55e, #14b8a6);
}

.tile-4 {
  background: linear-gradient(135deg, #ec4899, #f43f5e);
}

.tile-icon {
  font-size: 38px;
}

.category-tile strong {
  font-size: 22px;
}

.category-tile em {
  color: rgba(255, 255, 255, 0.84);
  font-size: 14px;
  font-style: normal;
}

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

.hot-card {
  display: grid;
  grid-template-columns: 190px 1fr;
  overflow: hidden;
  border-radius: 20px;
  color: var(--gray-900);
  background: var(--white);
  box-shadow: var(--soft-shadow);
}

.hot-card .movie-poster {
  height: 100%;
  aspect-ratio: auto;
}

.hot-card .movie-card-body {
  display: grid;
  align-content: center;
}

.feature-card {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  overflow: hidden;
  border-radius: 26px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.feature-image {
  position: relative;
  min-height: 330px;
  overflow: hidden;
  background: linear-gradient(135deg, #1d4ed8, #0f172a);
}

.feature-content {
  display: grid;
  align-content: center;
  padding: clamp(28px, 5vw, 52px);
}

.feature-content h2 {
  margin: 10px 0 16px;
  font-size: clamp(30px, 4vw, 44px);
  line-height: 1.12;
}

.feature-content p {
  margin: 0 0 18px;
  color: var(--gray-600);
}

.kicker {
  color: #c2410c;
  background: #ffedd5;
}

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

.strip-item {
  display: grid;
  grid-template-columns: 44px 92px 1fr;
  gap: 12px;
  align-items: center;
  padding: 12px;
  border-radius: 18px;
  color: var(--white);
  background: rgba(255, 255, 255, 0.07);
  transition: background 0.2s ease, transform 0.2s ease;
}

.strip-item:hover {
  background: rgba(255, 255, 255, 0.12);
  transform: translateY(-3px);
}

.strip-rank {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 999px;
  font-weight: 850;
  background: linear-gradient(135deg, #facc15, #f97316);
}

.strip-item img {
  width: 92px;
  height: 62px;
  border-radius: 12px;
  background: linear-gradient(135deg, #1d4ed8, #0f172a);
}

.strip-title {
  display: block;
  font-weight: 750;
}

.strip-meta {
  display: block;
  color: #cbd5e1;
  font-size: 13px;
}

.page-hero {
  position: relative;
  color: var(--white);
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.78), rgba(15, 23, 42, 0.88)), radial-gradient(circle at 18% 25%, #2563eb, transparent 32%), linear-gradient(135deg, #0f172a, #155e75);
}

.page-hero.has-image {
  min-height: 380px;
  overflow: hidden;
}

.page-hero-bg {
  position: absolute;
  inset: 0;
  opacity: 0.38;
}

.page-hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.page-hero-inner {
  position: relative;
  padding: 72px 0;
}

.category-pill {
  color: var(--white);
  background: linear-gradient(90deg, var(--orange), var(--red));
}

.filter-section {
  padding: 28px 0 0;
  background: #f8fafc;
}

.filter-box {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 12px;
  border-radius: 20px;
  background: var(--white);
  box-shadow: var(--soft-shadow);
}

.filter-box input {
  padding: 12px 16px;
  color: var(--gray-900);
}

.filter-box button {
  padding: 12px 22px;
  color: var(--white);
  background: var(--blue);
}

.empty-state {
  display: none;
  padding: 42px;
  text-align: center;
  border-radius: 22px;
  color: var(--gray-600);
  background: var(--white);
}

.detail-hero {
  color: var(--white);
  background: linear-gradient(135deg, var(--slate-950), #0f172a 52%, #155e75);
}

.detail-wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 36px;
  padding: 50px 0;
}

.detail-title h1 {
  margin-top: 0;
}

.detail-title p {
  color: #cbd5e1;
  font-size: 18px;
}

.detail-poster {
  overflow: hidden;
  border-radius: 24px;
  background: linear-gradient(135deg, #1d4ed8, #0f172a);
  box-shadow: var(--shadow);
}

.detail-poster img {
  aspect-ratio: 3 / 4;
}

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

.player-box video {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
}

.player-cover {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  cursor: pointer;
  background: radial-gradient(circle at 20% 20%, rgba(37, 99, 235, 0.4), transparent 32%), rgba(2, 6, 23, 0.78);
  transition: opacity 0.24s ease, visibility 0.24s ease;
}

.player-cover img {
  position: absolute;
  inset: 0;
  opacity: 0.42;
}

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

.player-start {
  position: relative;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 16px 28px;
  border: 0;
  border-radius: 999px;
  color: var(--white);
  background: linear-gradient(90deg, var(--orange), var(--red));
  box-shadow: 0 18px 38px rgba(239, 68, 68, 0.32);
  cursor: pointer;
  font-weight: 850;
}

.page-section,
.detail-section {
  padding: 54px 0;
}

.content-card {
  padding: clamp(24px, 4vw, 34px);
  border-radius: 24px;
  background: var(--white);
  box-shadow: var(--soft-shadow);
}

.content-card p {
  margin: 0 0 18px;
  color: var(--gray-700);
  font-size: 17px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
  color: #bfdbfe;
  font-size: 14px;
}

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

.site-footer {
  color: #cbd5e1;
  background: linear-gradient(135deg, var(--slate-950), var(--slate-800));
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 32px;
  padding: 54px 0 34px;
}

.footer-brand {
  margin-bottom: 14px;
  color: var(--white);
  font-size: 22px;
}

.site-footer h2 {
  margin: 0 0 14px;
  color: var(--white);
  font-size: 18px;
}

.site-footer p,
.site-footer ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-footer li {
  margin: 8px 0;
}

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

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

@media (max-width: 1040px) {
  .header-search {
    display: none;
  }

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

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

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

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

  .menu-toggle {
    display: block;
  }

  .hero {
    min-height: 560px;
  }

  .hero-content {
    align-items: flex-end;
  }

  .movie-grid,
  .movie-grid.three,
  .strip-list,
  .category-grid,
  .hot-layout,
  .feature-card {
    grid-template-columns: 1fr 1fr;
  }

  .hot-card {
    grid-template-columns: 150px 1fr;
  }
}

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

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

  .hero h1,
  .page-hero h1,
  .detail-title h1 {
    font-size: 38px;
  }

  .movie-grid,
  .movie-grid.three,
  .strip-list,
  .category-grid,
  .hot-layout,
  .feature-card {
    grid-template-columns: 1fr;
  }

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

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

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