:root {
  --color-blue-950: #0f2148;
  --color-blue-900: #12336f;
  --color-blue-800: #1650a8;
  --color-cyan-500: #06b6d4;
  --color-cyan-300: #67e8f9;
  --color-red-500: #ef4444;
  --color-green-600: #16a34a;
  --color-orange-50: #fff7ed;
  --color-green-50: #f0fdf4;
  --color-slate-50: #f8fafc;
  --color-slate-100: #f1f5f9;
  --color-slate-200: #e2e8f0;
  --color-slate-500: #64748b;
  --color-slate-600: #475569;
  --color-slate-700: #334155;
  --color-slate-900: #0f172a;
  --shadow-card: 0 14px 35px rgba(15, 23, 42, 0.12);
  --shadow-card-hover: 0 18px 50px rgba(15, 23, 42, 0.2);
  --radius-xl: 1rem;
  --radius-2xl: 1.25rem;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--color-slate-50);
  color: var(--color-slate-900);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  line-height: 1.6;
}

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

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

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: #fff;
  background: linear-gradient(90deg, var(--color-blue-950), var(--color-blue-900), #0e7490);
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.25);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 70px;
  gap: 20px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 20px;
  font-weight: 800;
  white-space: nowrap;
}

.logo-mark {
  display: inline-grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 999px;
  background: linear-gradient(135deg, #38bdf8, #22d3ee);
  color: #082f49;
  box-shadow: 0 0 25px rgba(103, 232, 249, 0.48);
}

.nav {
  display: flex;
  align-items: center;
  gap: 26px;
  font-size: 15px;
  font-weight: 600;
}

.nav a,
.mobile-nav a,
.dropdown-button {
  opacity: 0.94;
  transition: color 0.2s ease, opacity 0.2s ease;
}

.nav a:hover,
.mobile-nav a:hover,
.dropdown-button:hover {
  color: var(--color-cyan-300);
  opacity: 1;
}

.dropdown {
  position: relative;
}

.dropdown-button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 0;
  color: #fff;
  background: transparent;
  cursor: pointer;
}

.dropdown-menu {
  position: absolute;
  top: calc(100% + 16px);
  left: 0;
  min-width: 180px;
  padding: 10px;
  border-radius: 14px;
  background: #fff;
  color: var(--color-slate-800);
  box-shadow: var(--shadow-card-hover);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
}

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

.dropdown-menu a {
  display: block;
  padding: 9px 12px;
  border-radius: 10px;
  color: var(--color-slate-700);
}

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

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.search-form {
  display: flex;
  align-items: center;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(12px);
}

.search-form input {
  width: 190px;
  border: 0;
  outline: 0;
  padding: 10px 14px;
  color: #fff;
  background: transparent;
}

.search-form input::placeholder {
  color: rgba(255, 255, 255, 0.72);
}

.search-form button,
.menu-button {
  border: 0;
  color: #fff;
  background: rgba(255, 255, 255, 0.13);
  cursor: pointer;
}

.search-form button {
  padding: 10px 14px;
}

.menu-button {
  display: none;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  font-size: 22px;
}

.mobile-nav {
  display: none;
  padding: 12px 0 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
}

.mobile-nav.is-open {
  display: grid;
  gap: 12px;
}

.hero {
  position: relative;
  overflow: hidden;
  min-height: 560px;
  padding: 76px 0;
  color: #fff;
  background: radial-gradient(circle at 15% 10%, rgba(34, 211, 238, 0.34), transparent 24%), radial-gradient(circle at 88% 72%, rgba(59, 130, 246, 0.35), transparent 30%), linear-gradient(135deg, #10275c 0%, #124d9b 50%, #0891b2 100%);
}

.hero::before,
.hero::after {
  position: absolute;
  display: block;
  content: "";
  border-radius: 999px;
  filter: blur(42px);
  opacity: 0.42;
}

.hero::before {
  width: 300px;
  height: 300px;
  top: 42px;
  left: 5%;
  background: #22d3ee;
}

.hero::after {
  width: 390px;
  height: 390px;
  right: 4%;
  bottom: -60px;
  background: #2563eb;
}

.hero-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.02fr 0.98fr;
  align-items: center;
  gap: 48px;
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  color: var(--color-cyan-300);
  font-weight: 800;
}

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

.hero h1 span {
  color: var(--color-cyan-300);
}

.hero p {
  max-width: 660px;
  margin: 0 0 30px;
  color: #dbeafe;
  font-size: 20px;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 12px 22px;
  border-radius: 12px;
  border: 1px solid transparent;
  font-weight: 800;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.button:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 28px rgba(15, 23, 42, 0.18);
}

.button-primary {
  background: #fff;
  color: #12336f;
}

.button-ghost {
  border-color: rgba(255, 255, 255, 0.52);
  color: #fff;
  background: rgba(15, 23, 42, 0.18);
  backdrop-filter: blur(8px);
}

.hero-slider {
  position: relative;
}

.hero-slide {
  display: none;
}

.hero-slide.is-active {
  display: block;
  animation: heroFade 0.5s ease both;
}

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

.featured-card {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  box-shadow: 0 34px 80px rgba(2, 8, 23, 0.36);
  transform: translateZ(0);
}

.featured-card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  transform: scale(1.02);
}

.featured-card::after {
  position: absolute;
  inset: 0;
  display: block;
  content: "";
  background: linear-gradient(180deg, rgba(2, 6, 23, 0.04), rgba(2, 6, 23, 0.82));
}

.featured-content {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 2;
  padding: 28px;
}

.featured-content h2 {
  margin: 10px 0 10px;
  font-size: clamp(24px, 4vw, 34px);
  line-height: 1.18;
}

.featured-content p {
  display: -webkit-box;
  overflow: hidden;
  margin: 0 0 16px;
  color: #e0f2fe;
  font-size: 15px;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(37, 99, 235, 0.88);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
}

.badge-red {
  background: var(--color-red-500);
}

.hero-dots {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 22px;
}

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

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

.section {
  padding: 64px 0;
}

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

.section-green {
  background: linear-gradient(135deg, #f0fdf4, #ecfdf5);
}

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

.section-gray {
  background: #fff;
}

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

.section-title {
  margin: 0;
  font-size: clamp(26px, 4vw, 36px);
  line-height: 1.2;
}

.section-title small {
  display: block;
  margin-bottom: 8px;
  color: var(--color-blue-800);
  font-size: 14px;
  letter-spacing: 0.08em;
}

.more-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--color-blue-800);
  font-weight: 800;
  white-space: nowrap;
}

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

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

.movie-card {
  min-width: 0;
}

.movie-card__link {
  display: block;
  overflow: hidden;
  height: 100%;
  border-radius: var(--radius-xl);
  background: #fff;
  box-shadow: var(--shadow-card);
  transition: transform 0.24s ease, box-shadow 0.24s ease;
}

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

.cover-wrap {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #dbeafe, #cffafe);
}

.cover-wrap img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.movie-card__link:hover .cover-wrap img {
  transform: scale(1.08);
}

.cover-wrap::after {
  position: absolute;
  inset: 0;
  display: block;
  content: "";
  background: linear-gradient(180deg, transparent, rgba(2, 6, 23, 0.52));
  opacity: 0;
  transition: opacity 0.24s ease;
}

.movie-card__link:hover .cover-wrap::after {
  opacity: 1;
}

.play-pill {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 2;
  display: grid;
  width: 54px;
  height: 54px;
  place-items: center;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--color-blue-800);
  font-size: 20px;
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.82);
  transition: transform 0.24s ease, opacity 0.24s ease;
}

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

.card-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 3;
  padding: 5px 9px;
  border-radius: 8px;
  background: rgba(22, 80, 168, 0.92);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
}

.card-body {
  padding: 16px;
}

.card-title {
  display: -webkit-box;
  overflow: hidden;
  margin: 0 0 8px;
  color: var(--color-slate-900);
  font-size: 17px;
  line-height: 1.35;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  transition: color 0.2s ease;
}

.movie-card__link:hover .card-title {
  color: var(--color-blue-800);
}

.card-desc {
  display: -webkit-box;
  overflow: hidden;
  min-height: 44px;
  margin: 0 0 12px;
  color: var(--color-slate-600);
  font-size: 14px;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--color-slate-500);
  font-size: 12px;
}

.card-meta span {
  padding: 4px 8px;
  border-radius: 8px;
  background: var(--color-slate-100);
}

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

.category-card {
  display: block;
  padding: 24px;
  border: 1px solid rgba(148, 163, 184, 0.28);
  border-radius: 20px;
  background: #fff;
  box-shadow: var(--shadow-card);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.category-card strong {
  display: block;
  margin-bottom: 8px;
  font-size: 20px;
}

.category-card span {
  color: var(--color-slate-600);
  font-size: 14px;
}

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

.ranking-item {
  display: grid;
  grid-template-columns: 58px 110px 1fr auto;
  align-items: center;
  gap: 16px;
  padding: 12px;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.ranking-item:hover {
  transform: translateX(4px);
  box-shadow: var(--shadow-card);
}

.ranking-num {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 14px;
  background: linear-gradient(135deg, #ef4444, #f97316);
  color: #fff;
  font-weight: 900;
}

.ranking-thumb {
  overflow: hidden;
  border-radius: 14px;
}

.ranking-thumb img {
  width: 110px;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.ranking-title {
  margin: 0 0 5px;
  font-size: 18px;
}

.ranking-desc {
  display: -webkit-box;
  overflow: hidden;
  margin: 0;
  color: var(--color-slate-600);
  font-size: 14px;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
}

.filter-panel {
  display: grid;
  grid-template-columns: 1.3fr repeat(3, minmax(130px, 0.6fr));
  gap: 14px;
  margin-bottom: 28px;
  padding: 18px;
  border-radius: 20px;
  background: #fff;
  box-shadow: var(--shadow-card);
}

.filter-panel input,
.filter-panel select {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--color-slate-200);
  border-radius: 12px;
  outline: 0;
  padding: 0 14px;
  color: var(--color-slate-700);
  background: #fff;
}

.filter-panel input:focus,
.filter-panel select:focus {
  border-color: var(--color-cyan-500);
  box-shadow: 0 0 0 4px rgba(6, 182, 212, 0.14);
}

.page-hero {
  padding: 58px 0;
  color: #fff;
  background: radial-gradient(circle at 18% 20%, rgba(34, 211, 238, 0.25), transparent 22%), linear-gradient(135deg, #10275c, #1650a8 54%, #0891b2);
}

.page-hero h1 {
  margin: 0 0 12px;
  font-size: clamp(30px, 4vw, 46px);
}

.page-hero p {
  max-width: 820px;
  margin: 0;
  color: #dbeafe;
  font-size: 18px;
}

.breadcrumb {
  margin: 0 0 20px;
  color: #bfdbfe;
  font-size: 14px;
}

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

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

.player-shell {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  background: #020617;
  box-shadow: 0 28px 70px rgba(2, 6, 23, 0.28);
}

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

.play-overlay {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: grid;
  place-items: center;
  border: 0;
  color: #fff;
  background: linear-gradient(180deg, rgba(2, 6, 23, 0.1), rgba(2, 6, 23, 0.74));
  cursor: pointer;
}

.play-overlay span {
  display: inline-grid;
  width: 86px;
  height: 86px;
  place-items: center;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.94);
  color: var(--color-blue-800);
  font-size: 32px;
  box-shadow: 0 20px 42px rgba(2, 6, 23, 0.26);
  transform: translateZ(0);
  transition: transform 0.2s ease;
}

.play-overlay:hover span {
  transform: scale(1.08);
}

.play-overlay.is-hidden {
  display: none;
}

.detail-card,
.sidebar-card {
  padding: 24px;
  border-radius: 22px;
  background: #fff;
  box-shadow: var(--shadow-card);
}

.detail-card h2,
.sidebar-card h2 {
  margin: 0 0 16px;
  font-size: 24px;
}

.detail-card p {
  margin: 0 0 16px;
  color: var(--color-slate-700);
}

.info-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 18px 0;
}

.info-item {
  padding: 12px;
  border-radius: 12px;
  background: var(--color-slate-100);
}

.info-item b {
  display: block;
  color: var(--color-slate-500);
  font-size: 12px;
}

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

.tag-list a,
.tag-list span {
  padding: 6px 10px;
  border-radius: 999px;
  background: #eff6ff;
  color: var(--color-blue-800);
  font-size: 13px;
  font-weight: 700;
}

.sidebar-stack {
  display: grid;
  gap: 16px;
}

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

.related-item {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 12px;
  align-items: center;
}

.related-item img {
  width: 96px;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: 12px;
}

.related-item strong {
  display: -webkit-box;
  overflow: hidden;
  margin-bottom: 4px;
  line-height: 1.35;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.related-item span {
  color: var(--color-slate-500);
  font-size: 13px;
}

.no-results {
  display: none;
  padding: 28px;
  border-radius: 18px;
  background: #fff;
  color: var(--color-slate-600);
  text-align: center;
  box-shadow: var(--shadow-card);
}

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

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 34px;
  padding: 48px 0 30px;
}

.footer-grid h2,
.footer-grid h3 {
  margin: 0 0 14px;
  color: #fff;
}

.footer-grid p {
  margin: 0;
  color: #94a3b8;
}

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

.footer-links a:hover {
  color: var(--color-cyan-300);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 0;
  border-top: 1px solid rgba(148, 163, 184, 0.22);
  color: #94a3b8;
  font-size: 14px;
}

@media (max-width: 980px) {
  .nav,
  .search-form {
    display: none;
  }

  .menu-button {
    display: inline-grid;
    place-items: center;
  }

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

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

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

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

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

  .hero,
  .page-hero {
    padding: 46px 0;
  }

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

  .hero-actions,
  .card-actions,
  .section-header,
  .footer-bottom {
    align-items: flex-start;
    flex-direction: column;
  }

  .movie-grid,
  .movie-grid-wide,
  .category-grid,
  .filter-panel,
  .info-list,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .ranking-item {
    grid-template-columns: 42px 82px 1fr;
  }

  .ranking-thumb img {
    width: 82px;
  }

  .ranking-item .button {
    grid-column: 2 / -1;
  }
}
