:root {
  --cyan: #0891b2;
  --cyan-dark: #0e7490;
  --blue: #2563eb;
  --ink: #0f172a;
  --muted: #64748b;
  --line: #e2e8f0;
  --soft: #f8fafc;
  --card: #ffffff;
  --shadow: 0 20px 45px rgba(15, 23, 42, 0.10);
  --radius: 24px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(8, 145, 178, 0.12), transparent 28rem),
    linear-gradient(180deg, #f8fbff 0%, #ffffff 42%, #f8fafc 100%);
  line-height: 1.65;
}

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

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

button,
input,
select {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(226, 232, 240, 0.82);
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.06);
}

.header-inner,
.quick-cats-inner,
.footer-inner,
.content-section,
.hero-slider,
.page-hero,
.breadcrumbs,
.detail-hero,
.player-section,
.catalog-tools {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

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

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

.brand-mark {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  color: #fff;
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  box-shadow: 0 12px 26px rgba(8, 145, 178, 0.28);
  font-size: 15px;
}

.brand-text,
.footer-logo {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.04em;
  background: linear-gradient(90deg, var(--cyan), var(--blue));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

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

.nav-link,
.mobile-link {
  font-size: 15px;
  font-weight: 700;
  color: #475569;
  transition: color 0.2s ease, background 0.2s ease;
}

.nav-link:hover,
.nav-link.active,
.mobile-link:hover,
.mobile-link.active {
  color: var(--cyan);
}

.header-search {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 300px;
}

.header-search input,
.mobile-search input,
.catalog-search,
.filter-select {
  width: 100%;
  border: 1px solid #cbd5e1;
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  outline: none;
  transition: border 0.2s ease, box-shadow 0.2s ease;
}

.header-search input,
.mobile-search input {
  padding: 10px 15px;
}

.header-search input:focus,
.mobile-search input:focus,
.catalog-search:focus,
.filter-select:focus {
  border-color: rgba(8, 145, 178, 0.7);
  box-shadow: 0 0 0 4px rgba(8, 145, 178, 0.12);
}

.header-search button,
.mobile-search button {
  border: 0;
  border-radius: 999px;
  padding: 10px 16px;
  color: #fff;
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  cursor: pointer;
  font-weight: 700;
}

.menu-toggle {
  display: none;
  border: 0;
  background: #f1f5f9;
  color: var(--ink);
  border-radius: 12px;
  padding: 9px 12px;
  cursor: pointer;
}

.quick-cats {
  border-top: 1px solid rgba(226, 232, 240, 0.72);
}

.quick-cats-inner {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding: 9px 0 10px;
}

.quick-cats a {
  flex: 0 0 auto;
  padding: 6px 12px;
  border-radius: 999px;
  color: #475569;
  background: #f8fafc;
  font-size: 13px;
  font-weight: 700;
}

.quick-cats a:hover {
  color: var(--cyan-dark);
  background: rgba(8, 145, 178, 0.08);
}

.mobile-panel {
  border-top: 1px solid var(--line);
  padding: 12px 16px 18px;
  background: #fff;
}

.mobile-panel .mobile-link {
  display: block;
  padding: 11px 4px;
}

.mobile-search {
  display: flex;
  gap: 8px;
  margin-top: 8px;
}

.hero-slider {
  position: relative;
  margin-top: 28px;
  border-radius: 34px;
  overflow: hidden;
  min-height: 560px;
  background: #0f172a;
  box-shadow: var(--shadow);
}

.hero-stage {
  position: relative;
  min-height: 560px;
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) 340px;
  align-items: center;
  gap: 48px;
  padding: 70px;
  opacity: 0;
  transform: scale(1.03);
  pointer-events: none;
  transition: opacity 0.6s ease, transform 0.6s ease;
}

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

.hero-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(18px) saturate(1.1);
  transform: scale(1.12);
  opacity: 0.46;
}

.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 70% 35%, rgba(14, 165, 233, 0.34), transparent 28rem),
    linear-gradient(90deg, rgba(15, 23, 42, 0.94), rgba(15, 23, 42, 0.70) 46%, rgba(15, 23, 42, 0.38));
}

.hero-content,
.hero-poster {
  position: relative;
  z-index: 2;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--cyan);
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 13px;
}

.hero-content .eyebrow,
.page-hero .eyebrow,
.detail-info .eyebrow,
.intro-card .eyebrow {
  color: #67e8f9;
}

.hero-content h1 {
  margin: 0;
  color: #fff;
  font-size: clamp(38px, 6vw, 72px);
  line-height: 1.05;
  letter-spacing: -0.08em;
}

.hero-summary {
  max-width: 680px;
  margin: 22px 0 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: 18px;
}

.hero-tags,
.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.hero-tags {
  margin-top: 22px;
}

.hero-tags span,
.chip-row span {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 6px 11px;
  color: #0e7490;
  background: rgba(8, 145, 178, 0.09);
  font-size: 13px;
  font-weight: 700;
}

.hero-tags span {
  color: #ecfeff;
  background: rgba(255, 255, 255, 0.13);
  border: 1px solid rgba(255, 255, 255, 0.16);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

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

.primary-btn {
  color: #fff;
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  box-shadow: 0 16px 34px rgba(37, 99, 235, 0.28);
}

.ghost-btn {
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.26);
  background: rgba(255, 255, 255, 0.10);
}

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

.hero-poster {
  border-radius: 30px;
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
  transform: rotate(2deg);
}

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

.hero-dots {
  position: absolute;
  left: 70px;
  bottom: 32px;
  z-index: 3;
  display: flex;
  gap: 10px;
}

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

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

.hero-search-card {
  position: absolute;
  right: 28px;
  bottom: 28px;
  z-index: 4;
  width: min(460px, calc(100% - 56px));
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 24px;
  background: rgba(15, 23, 42, 0.58);
  backdrop-filter: blur(18px);
  color: #fff;
  padding: 18px;
  display: grid;
  gap: 12px;
}

.hero-search-card strong {
  display: block;
  font-size: 18px;
}

.hero-search-card span {
  color: rgba(255, 255, 255, 0.72);
  font-size: 13px;
}

.hero-hotlinks {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.hero-hotlinks a {
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.88);
  font-size: 13px;
}

.content-section {
  padding: 46px 0;
}

.intro-strip {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
  gap: 22px;
}

.intro-card,
.intro-stats,
.side-panel,
.detail-article {
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 16px 38px rgba(15, 23, 42, 0.06);
}

.intro-card {
  padding: 30px;
  background: linear-gradient(135deg, #0f172a, #164e63 58%, #0e7490);
  color: #fff;
}

.intro-card h2,
.section-heading h2,
.page-hero h1,
.detail-info h1,
.detail-article h2,
.side-panel h2 {
  margin: 0;
  letter-spacing: -0.05em;
}

.intro-card h2,
.section-heading h2,
.page-hero h1,
.detail-info h1 {
  font-size: clamp(28px, 4vw, 46px);
  line-height: 1.12;
}

.intro-card p:last-child {
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.82);
}

.intro-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  overflow: hidden;
}

.intro-stats a {
  padding: 28px 18px;
  border-right: 1px solid var(--line);
  display: grid;
  align-content: center;
  gap: 4px;
}

.intro-stats a:last-child {
  border-right: 0;
}

.intro-stats strong {
  color: var(--cyan-dark);
  font-size: 24px;
}

.intro-stats span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

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

.section-heading .eyebrow {
  color: var(--cyan-dark);
}

.section-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--cyan-dark);
  font-weight: 800;
}

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

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

.movie-card {
  position: relative;
  border: 1px solid rgba(226, 232, 240, 0.88);
  border-radius: 22px;
  background: var(--card);
  overflow: hidden;
  box-shadow: 0 18px 35px rgba(15, 23, 42, 0.07);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border 0.22s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  border-color: rgba(8, 145, 178, 0.38);
  box-shadow: 0 24px 48px rgba(15, 23, 42, 0.12);
}

.poster-link {
  position: relative;
  display: block;
  overflow: hidden;
  background: #e2e8f0;
}

.poster-link img {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  transition: transform 0.35s ease;
}

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

.play-pill,
.rank-badge {
  position: absolute;
  z-index: 2;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
}

.play-pill {
  right: 10px;
  bottom: 10px;
  color: #fff;
  background: rgba(15, 23, 42, 0.72);
  padding: 6px 10px;
  backdrop-filter: blur(10px);
}

.rank-badge {
  left: 10px;
  top: 10px;
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  color: #fff;
  background: linear-gradient(135deg, #f59e0b, #ef4444);
  box-shadow: 0 12px 22px rgba(239, 68, 68, 0.28);
}

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

.card-meta {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.card-meta a {
  color: var(--cyan-dark);
}

.movie-card h3 {
  min-height: 48px;
  margin: 8px 0 6px;
  font-size: 16px;
  line-height: 1.45;
  letter-spacing: -0.02em;
}

.movie-card h3 a:hover {
  color: var(--cyan-dark);
}

.movie-card p {
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

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

.category-tile {
  position: relative;
  min-height: 170px;
  overflow: hidden;
  border-radius: 24px;
  color: #fff;
  box-shadow: 0 18px 35px rgba(15, 23, 42, 0.12);
}

.category-tile img {
  width: 100%;
  height: 100%;
  min-height: 170px;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.category-tile:hover img {
  transform: scale(1.06);
}

.tile-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.12), rgba(15, 23, 42, 0.78));
}

.category-tile strong,
.category-tile small {
  position: absolute;
  left: 18px;
  right: 18px;
  z-index: 2;
}

.category-tile strong {
  bottom: 48px;
  font-size: 22px;
  letter-spacing: -0.04em;
}

.category-tile small {
  bottom: 20px;
  color: rgba(255, 255, 255, 0.78);
}

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

.page-hero {
  margin-top: 28px;
  padding: 56px;
  border-radius: 32px;
  color: #fff;
  background:
    radial-gradient(circle at 80% 20%, rgba(103, 232, 249, 0.30), transparent 22rem),
    linear-gradient(135deg, #0f172a, #155e75 58%, #2563eb);
  box-shadow: var(--shadow);
}

.page-hero p:last-child {
  max-width: 720px;
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 17px;
}

.ranking-hero {
  background:
    radial-gradient(circle at 78% 30%, rgba(250, 204, 21, 0.24), transparent 22rem),
    linear-gradient(135deg, #111827, #164e63 62%, #0e7490);
}

.catalog-tools {
  margin-top: 20px;
  display: grid;
  grid-template-columns: minmax(260px, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 18px;
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.06);
}

.catalog-search {
  min-height: 46px;
  padding: 0 18px;
}

.tool-selects {
  display: flex;
  gap: 10px;
}

.filter-select {
  min-height: 46px;
  padding: 0 38px 0 14px;
}

.search-empty {
  grid-column: 1 / -1;
  padding: 34px;
  text-align: center;
  color: var(--muted);
  border: 1px dashed #cbd5e1;
  border-radius: 20px;
  background: #fff;
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  color: var(--muted);
  padding-top: 24px;
  font-size: 14px;
}

.breadcrumbs a {
  color: var(--cyan-dark);
  font-weight: 800;
}

.detail-hero {
  margin-top: 22px;
  display: grid;
  grid-template-columns: 310px minmax(0, 1fr);
  gap: 34px;
  align-items: center;
  padding: 34px;
  border-radius: 34px;
  color: #fff;
  background:
    radial-gradient(circle at 72% 20%, rgba(103, 232, 249, 0.24), transparent 24rem),
    linear-gradient(135deg, #0f172a, #164e63 60%, #1d4ed8);
  box-shadow: var(--shadow);
}

.detail-poster {
  overflow: hidden;
  border-radius: 26px;
  box-shadow: 0 25px 70px rgba(0, 0, 0, 0.34);
}

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

.detail-info h1 {
  font-size: clamp(34px, 5vw, 62px);
}

.detail-one-line {
  max-width: 760px;
  color: rgba(255, 255, 255, 0.84);
  font-size: 18px;
}

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 18px 0;
}

.detail-meta span,
.detail-meta a {
  padding: 8px 12px;
  border-radius: 999px;
  color: #e0f2fe;
  background: rgba(255, 255, 255, 0.12);
  font-size: 14px;
  font-weight: 800;
}

.detail-chips span {
  color: #ecfeff;
  background: rgba(255, 255, 255, 0.14);
}

.player-section {
  padding-top: 36px;
}

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

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

.player-overlay {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: grid;
  place-items: center;
  gap: 10px;
  border: 0;
  color: #fff;
  background:
    radial-gradient(circle at center, rgba(8, 145, 178, 0.25), transparent 28rem),
    rgba(2, 6, 23, 0.42);
  cursor: pointer;
  font-weight: 900;
  letter-spacing: -0.03em;
}

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

.player-icon {
  width: 82px;
  height: 82px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  box-shadow: 0 20px 45px rgba(37, 99, 235, 0.35);
  font-size: 28px;
}

.detail-content {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 24px;
  align-items: start;
}

.detail-article,
.side-panel {
  padding: 28px;
}

.detail-article h2,
.side-panel h2 {
  margin-bottom: 12px;
  font-size: 24px;
}

.detail-article p {
  color: #334155;
  font-size: 17px;
}

.side-panel {
  display: grid;
  gap: 12px;
  position: sticky;
  top: 116px;
}

.side-panel a {
  padding: 12px 14px;
  border-radius: 14px;
  color: #0f172a;
  background: #f8fafc;
  font-weight: 800;
}

.side-panel a:hover {
  color: var(--cyan-dark);
  background: rgba(8, 145, 178, 0.08);
}

.site-footer {
  margin-top: 28px;
  border-top: 1px solid var(--line);
  background: #fff;
}

.footer-inner {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: 40px;
  padding: 40px 0;
}

.footer-inner p {
  color: var(--muted);
  margin-bottom: 0;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-content: start;
  justify-content: end;
}

.footer-links a {
  padding: 8px 12px;
  border-radius: 999px;
  background: #f8fafc;
  color: #475569;
  font-size: 14px;
  font-weight: 800;
}

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

@media (max-width: 1100px) {
  .movie-grid,
  .ranking-grid,
  .compact-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

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

  .hero-slide {
    grid-template-columns: minmax(0, 1fr) 280px;
    padding: 54px;
  }
}

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

  .menu-toggle {
    display: inline-flex;
    margin-left: auto;
  }

  .hero-slider,
  .hero-stage {
    min-height: 720px;
  }

  .hero-slide {
    grid-template-columns: 1fr;
    align-content: start;
    gap: 28px;
    padding: 38px 24px 150px;
  }

  .hero-poster {
    width: min(260px, 72vw);
    transform: none;
  }

  .hero-dots {
    left: 24px;
    bottom: 112px;
  }

  .intro-strip,
  .detail-content,
  .footer-inner,
  .detail-hero,
  .catalog-tools {
    grid-template-columns: 1fr;
  }

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

  .side-panel {
    position: static;
  }

  .tool-selects {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

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

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

  .footer-links {
    justify-content: start;
  }
}

@media (max-width: 620px) {
  .header-inner,
  .quick-cats-inner,
  .footer-inner,
  .content-section,
  .hero-slider,
  .page-hero,
  .breadcrumbs,
  .detail-hero,
  .player-section,
  .catalog-tools {
    width: min(100% - 22px, 1180px);
  }

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

  .hero-content h1,
  .detail-info h1 {
    font-size: 34px;
  }

  .hero-summary,
  .detail-one-line {
    font-size: 16px;
  }

  .hero-search-card {
    right: 14px;
    bottom: 18px;
    width: calc(100% - 28px);
  }

  .page-hero,
  .detail-hero {
    padding: 28px;
    border-radius: 26px;
  }

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

  .intro-stats {
    grid-template-columns: 1fr;
  }

  .intro-stats a {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .intro-stats a:last-child {
    border-bottom: 0;
  }

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

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

  .card-body {
    padding: 12px;
  }

  .movie-card h3 {
    font-size: 15px;
  }

  .tool-selects {
    grid-template-columns: 1fr;
  }
}
