:root {
  --sky-50: #f0f9ff;
  --sky-100: #e0f2fe;
  --sky-500: #0ea5e9;
  --sky-600: #0284c7;
  --blue-600: #2563eb;
  --blue-700: #1d4ed8;
  --slate-50: #f8fafc;
  --slate-100: #f1f5f9;
  --slate-200: #e2e8f0;
  --slate-400: #94a3b8;
  --slate-500: #64748b;
  --slate-600: #475569;
  --slate-700: #334155;
  --slate-800: #1e293b;
  --slate-900: #0f172a;
  --white: #ffffff;
  --shadow-md: 0 10px 25px rgba(15, 23, 42, 0.08);
  --shadow-xl: 0 24px 60px rgba(15, 23, 42, 0.16);
  --radius-lg: 18px;
  --radius-xl: 26px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--slate-900);
  background: linear-gradient(180deg, var(--slate-50), var(--white));
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
}

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(--sky-600), var(--blue-700));
  box-shadow: 0 12px 30px rgba(2, 132, 199, 0.22);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 64px;
  gap: 20px;
}

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

.brand-mark {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border-radius: 50%;
  color: var(--sky-600);
  background: var(--white);
  box-shadow: 0 8px 22px rgba(255, 255, 255, 0.25);
}

.brand-copy,
.footer-brand div {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.brand-copy strong,
.footer-brand strong {
  font-size: 20px;
  letter-spacing: 0.02em;
}

.brand-copy small,
.footer-brand small {
  font-size: 12px;
  opacity: 0.9;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 18px;
  font-size: 15px;
  white-space: nowrap;
}

.desktop-nav a,
.mobile-panel a {
  transition: color 0.2s ease, background 0.2s ease;
}

.desktop-nav a:hover,
.mobile-panel a:hover {
  color: #bae6fd;
}

.header-search {
  display: flex;
  align-items: center;
  min-width: 260px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(12px);
  overflow: hidden;
}

.header-search input,
.mobile-panel input {
  width: 100%;
  border: 0;
  outline: 0;
  color: var(--white);
  background: transparent;
  padding: 11px 14px;
}

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

.header-search button,
.mobile-panel button {
  border: 0;
  color: var(--sky-600);
  background: var(--white);
  padding: 10px 16px;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 700;
}

.mobile-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  color: var(--white);
  background: rgba(255, 255, 255, 0.14);
  border-radius: 12px;
  cursor: pointer;
}

.mobile-panel {
  display: none;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 0 0 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
}

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

.mobile-panel form {
  display: flex;
  gap: 8px;
  margin: 14px 0;
  padding: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
}

.mobile-panel nav {
  display: grid;
  gap: 6px;
}

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

.hero {
  position: relative;
  overflow: hidden;
  color: var(--white);
  background: linear-gradient(120deg, var(--sky-600), var(--blue-600) 46%, var(--blue-700));
}

.hero::before,
.hero::after {
  content: "";
  position: absolute;
  width: 360px;
  height: 360px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
  filter: blur(18px);
}

.hero::before {
  top: -110px;
  left: 7%;
}

.hero::after {
  right: -70px;
  bottom: -120px;
  width: 460px;
  height: 460px;
}

.hero-inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  align-items: center;
  gap: 46px;
  min-height: 560px;
  padding: 72px 0;
}

.hero-copy h1 {
  margin: 0 0 20px;
  font-size: clamp(42px, 7vw, 72px);
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.hero-copy p {
  margin: 0 0 20px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 18px;
  line-height: 1.85;
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  padding: 9px 14px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.13);
  backdrop-filter: blur(12px);
  font-weight: 700;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin: 30px 0;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 24px;
  border-radius: 999px;
  font-weight: 800;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

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

.btn-primary {
  color: var(--sky-600);
  background: var(--white);
  box-shadow: 0 14px 36px rgba(255, 255, 255, 0.24);
}

.btn-ghost {
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(10px);
}

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

.hero-meta a,
.tag-row span,
.detail-tags span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 11px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
}

.hero-meta a {
  background: rgba(255, 255, 255, 0.14);
}

.hero-stage {
  position: relative;
}

.hero-slider {
  position: relative;
  min-height: 430px;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: translateY(16px) scale(0.98);
  transition: opacity 0.55s ease, transform 0.55s ease;
  pointer-events: none;
}

.hero-slide.active {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.hero-card {
  display: grid;
  grid-template-rows: 1fr auto;
  min-height: 430px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 28px;
  background: rgba(15, 23, 42, 0.24);
  box-shadow: var(--shadow-xl);
}

.hero-card img {
  width: 100%;
  height: 290px;
  object-fit: cover;
}

.hero-card-body {
  padding: 24px;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.92), rgba(15, 23, 42, 0.78));
}

.hero-card-body h2 {
  margin: 0 0 10px;
  font-size: 28px;
}

.hero-card-body p {
  margin: 0 0 16px;
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.7;
}

.hero-card-body .btn {
  min-height: 40px;
  padding: 0 18px;
}

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

.hero-dots button {
  width: 11px;
  height: 11px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.4);
  cursor: pointer;
}

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

.section {
  padding: 70px 0;
}

.section-soft {
  background: linear-gradient(90deg, var(--slate-100), var(--slate-50));
}

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

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

.section-title h1,
.section-title h2 {
  margin: 0 0 8px;
  color: var(--slate-800);
  font-size: clamp(28px, 4vw, 40px);
  letter-spacing: -0.03em;
}

.section-title p {
  max-width: 720px;
  margin: 0;
  color: var(--slate-500);
  line-height: 1.75;
}

.more-link {
  color: var(--sky-600);
  font-weight: 800;
  white-space: nowrap;
}

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

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

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

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

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

.card-cover {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--slate-200);
}

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

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

.cover-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0), rgba(15, 23, 42, 0.72));
  opacity: 0;
  transition: opacity 0.25s ease;
}

.movie-card:hover .cover-gradient {
  opacity: 1;
}

.quality-badge,
.rank-badge,
.play-badge {
  position: absolute;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-weight: 800;
}

.quality-badge {
  top: 12px;
  right: 12px;
  min-height: 28px;
  padding: 0 11px;
  color: var(--white);
  background: rgba(14, 165, 233, 0.92);
  font-size: 12px;
}

.rank-badge {
  top: 12px;
  left: 12px;
  min-width: 32px;
  height: 32px;
  color: var(--sky-600);
  background: var(--white);
}

.play-badge {
  left: 50%;
  top: 50%;
  width: 54px;
  height: 54px;
  color: var(--white);
  background: rgba(14, 165, 233, 0.92);
  transform: translate(-50%, -50%) scale(0.88);
  opacity: 0;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

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

.card-body {
  padding: 18px;
}

.card-body h2 {
  margin: 8px 0 8px;
  color: var(--slate-800);
  font-size: 18px;
  line-height: 1.35;
}

.card-body h2 a:hover {
  color: var(--sky-600);
}

.card-body p {
  min-height: 48px;
  margin: 0 0 14px;
  color: var(--slate-500);
  font-size: 14px;
  line-height: 1.7;
}

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

.tag-row span,
.detail-tags span {
  color: var(--sky-600);
  background: var(--sky-50);
}

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

.meta-row span {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 9px;
  border-radius: 999px;
  background: var(--slate-100);
}

.movie-card-large .card-cover {
  aspect-ratio: 16 / 10;
}

.movie-card-large .card-body h2 {
  font-size: 26px;
}

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

.category-card {
  display: flex;
  flex-direction: column;
  min-height: 190px;
  padding: 26px;
  border-radius: 22px;
  background: var(--white);
  box-shadow: var(--shadow-md);
  transition: transform 0.24s ease, box-shadow 0.24s ease;
}

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

.category-card strong {
  color: var(--slate-800);
  font-size: 22px;
}

.category-card p {
  flex: 1;
  margin: 12px 0 20px;
  color: var(--slate-500);
  line-height: 1.7;
}

.category-card span {
  color: var(--sky-600);
  font-weight: 800;
}

.ranking-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(300px, 0.9fr);
  gap: 28px;
}

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

.compact-card {
  display: grid;
  grid-template-columns: auto 92px 1fr;
  align-items: center;
  gap: 14px;
  padding: 10px;
  border-radius: 16px;
  background: var(--white);
  box-shadow: var(--shadow-md);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.compact-rank {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 50%;
  color: var(--white);
  background: var(--sky-500);
  font-weight: 900;
}

.compact-thumb {
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-radius: 12px;
  background: var(--slate-200);
}

.compact-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.compact-info strong {
  display: block;
  color: var(--slate-800);
  line-height: 1.35;
}

.compact-info small {
  display: block;
  margin-top: 5px;
  color: var(--slate-500);
}

.filter-bar {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) repeat(3, minmax(150px, 0.35fr));
  gap: 12px;
  margin: 26px 0 30px;
  padding: 16px;
  border-radius: 20px;
  background: var(--white);
  box-shadow: var(--shadow-md);
}

.filter-bar input,
.filter-bar select,
.search-panel input {
  width: 100%;
  border: 1px solid var(--slate-200);
  border-radius: 999px;
  outline: 0;
  padding: 12px 15px;
  color: var(--slate-700);
  background: var(--slate-50);
}

.filter-bar input:focus,
.filter-bar select:focus,
.search-panel input:focus {
  border-color: var(--sky-500);
  box-shadow: 0 0 0 4px rgba(14, 165, 233, 0.12);
}

.search-panel {
  display: flex;
  gap: 12px;
  margin: 30px 0;
  padding: 18px;
  border-radius: 22px;
  background: var(--white);
  box-shadow: var(--shadow-md);
}

.search-panel button {
  border: 0;
  color: var(--white);
  background: var(--sky-600);
  border-radius: 999px;
  padding: 0 28px;
  font-weight: 800;
  cursor: pointer;
}

.detail-hero {
  padding: 58px 0 36px;
  color: var(--white);
  background: radial-gradient(circle at 20% 0%, rgba(14, 165, 233, 0.32), transparent 34%), linear-gradient(135deg, var(--slate-900), #111827 58%, #172554);
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-bottom: 24px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 14px;
}

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

.detail-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 260px;
  gap: 28px;
  align-items: end;
}

.detail-head h1 {
  margin: 0 0 18px;
  font-size: clamp(34px, 6vw, 58px);
  letter-spacing: -0.04em;
}

.detail-head p {
  max-width: 760px;
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 18px;
  line-height: 1.8;
}

.detail-poster {
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 24px;
  box-shadow: var(--shadow-xl);
}

.detail-poster img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
}

.detail-main {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 30px;
  padding: 42px 0 10px;
}

.player-shell {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  background: #000000;
  box-shadow: var(--shadow-xl);
}

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

.play-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  border: 0;
  color: var(--white);
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.58));
  cursor: pointer;
}

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

.play-overlay span {
  display: grid;
  width: 82px;
  height: 82px;
  place-items: center;
  border-radius: 50%;
  background: rgba(14, 165, 233, 0.94);
  box-shadow: 0 18px 50px rgba(14, 165, 233, 0.35);
  font-size: 32px;
}

.content-card {
  margin-top: 24px;
  padding: 26px;
  border-radius: 22px;
  background: var(--white);
  box-shadow: var(--shadow-md);
}

.content-card h2,
.side-card h2 {
  margin: 0 0 14px;
  color: var(--slate-800);
  font-size: 24px;
}

.content-card p {
  margin: 0 0 16px;
  color: var(--slate-600);
  line-height: 1.95;
}

.detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin: 18px 0 0;
}

.side-card {
  position: sticky;
  top: 88px;
  padding: 20px;
  border-radius: 22px;
  background: var(--white);
  box-shadow: var(--shadow-md);
}

.info-list {
  display: grid;
  gap: 12px;
  margin-bottom: 22px;
}

.info-list div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--slate-100);
  color: var(--slate-600);
}

.info-list strong {
  color: var(--slate-800);
}

.cta-band {
  padding: 58px 0;
}

.cta-card {
  padding: 46px 28px;
  border-radius: 30px;
  color: var(--white);
  text-align: center;
  background: linear-gradient(90deg, var(--sky-500), var(--blue-600));
  box-shadow: var(--shadow-xl);
}

.cta-card h2 {
  margin: 0 0 14px;
  font-size: clamp(28px, 5vw, 44px);
}

.cta-card p {
  margin: 0 auto 26px;
  max-width: 680px;
  color: rgba(255, 255, 255, 0.84);
  line-height: 1.8;
}

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

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 0.8fr;
  gap: 32px;
  padding: 48px 0;
}

.footer-grid p {
  max-width: 430px;
  color: var(--slate-400);
  line-height: 1.8;
}

.footer-grid h2 {
  margin: 0 0 14px;
  color: #7dd3fc;
  font-size: 18px;
}

.footer-links {
  display: grid;
  gap: 10px;
  color: var(--slate-400);
}

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

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 22px 0;
  border-top: 1px solid rgba(148, 163, 184, 0.22);
  color: var(--slate-400);
  font-size: 14px;
}

.empty-state {
  padding: 42px;
  border-radius: 22px;
  color: var(--slate-500);
  text-align: center;
  background: var(--white);
  box-shadow: var(--shadow-md);
}

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

  .mobile-toggle {
    display: block;
  }

  .hero-inner,
  .feature-grid,
  .ranking-layout,
  .detail-main,
  .detail-head {
    grid-template-columns: 1fr;
  }

  .hero-inner {
    min-height: auto;
  }

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

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

  .side-card {
    position: static;
  }
}

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

  .hero-inner {
    gap: 28px;
    padding: 48px 0;
  }

  .hero-slider,
  .hero-card {
    min-height: 390px;
  }

  .hero-card img {
    height: 230px;
  }

  .section {
    padding: 48px 0;
  }

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

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

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

  .search-panel {
    flex-direction: column;
  }

  .search-panel button {
    min-height: 44px;
  }

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

  .footer-bottom {
    flex-direction: column;
  }
}

@media (max-width: 520px) {
  .brand-copy small {
    display: none;
  }

  .brand-copy strong {
    font-size: 17px;
  }

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

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

  .compact-card {
    grid-template-columns: auto 78px 1fr;
  }

  .detail-head h1 {
    font-size: 34px;
  }
}
