:root {
  --cyan: #0891b2;
  --teal: #0d9488;
  --blue: #2563eb;
  --dark: #0f172a;
  --muted: #64748b;
  --soft: #f1f5f9;
  --card: #ffffff;
  --line: rgba(15, 23, 42, 0.08);
  --shadow: 0 18px 45px rgba(15, 23, 42, 0.12);
  --radius: 22px;
}

* {
  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(--dark);
  background: linear-gradient(180deg, #ecfeff 0%, #f8fafc 28%, #ffffff 100%);
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: linear-gradient(135deg, rgba(8, 145, 178, 0.96), rgba(13, 148, 136, 0.96), rgba(37, 99, 235, 0.94));
  color: #ffffff;
  box-shadow: 0 14px 30px rgba(8, 145, 178, 0.25);
  backdrop-filter: blur(16px);
}

.header-inner {
  width: min(1180px, calc(100% - 32px));
  height: 68px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 22px;
}

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

.brand-icon {
  width: 34px;
  height: 34px;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.22);
}

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

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

.nav-link,
.mobile-nav-link {
  padding: 10px 13px;
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.86);
  font-weight: 650;
  transition: 0.22s ease;
}

.nav-link:hover,
.nav-link.active,
.mobile-nav-link:hover,
.mobile-nav-link.active {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.16);
}

.header-search,
.mobile-search,
.big-search {
  display: flex;
  align-items: center;
  gap: 8px;
}

.header-search input,
.mobile-search input,
.big-search input,
.filter-input {
  border: 0;
  outline: 0;
  border-radius: 999px;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.18);
  color: #ffffff;
  min-width: 235px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.24);
}

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

.header-search button,
.mobile-search button,
.big-search button {
  border: 0;
  border-radius: 999px;
  padding: 11px 16px;
  font-weight: 700;
  color: var(--cyan);
  background: #ffffff;
  cursor: pointer;
}

.menu-toggle {
  display: none;
  margin-left: auto;
  border: 0;
  background: rgba(255, 255, 255, 0.18);
  color: #ffffff;
  border-radius: 12px;
  width: 42px;
  height: 42px;
  font-size: 22px;
}

.mobile-panel {
  display: none;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 0 0 16px;
}

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

.mobile-nav {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

main {
  min-height: 70vh;
}

.hero-section {
  position: relative;
  overflow: hidden;
  color: #ffffff;
  background: linear-gradient(135deg, #0891b2 0%, #0d9488 46%, #2563eb 100%);
  padding: 72px 0 48px;
}

.hero-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top left, rgba(255, 255, 255, 0.28), transparent 35%), radial-gradient(circle at bottom right, rgba(255, 255, 255, 0.18), transparent 30%);
  pointer-events: none;
}

.hero-glow {
  position: absolute;
  width: 360px;
  height: 360px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  filter: blur(24px);
  animation: pulseGlow 5s ease-in-out infinite alternate;
}

.hero-glow.one {
  left: -80px;
  top: 40px;
}

.hero-glow.two {
  right: -110px;
  bottom: -60px;
  animation-delay: 1.2s;
}

@keyframes pulseGlow {
  from {
    transform: scale(0.94);
    opacity: 0.65;
  }
  to {
    transform: scale(1.08);
    opacity: 1;
  }
}

.hero-carousel {
  position: relative;
  z-index: 2;
  width: min(1180px, calc(100% - 32px));
  min-height: 460px;
  margin: 0 auto;
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: 0.96fr 1.04fr;
  gap: 42px;
  align-items: center;
  opacity: 0;
  transform: translateY(16px);
  pointer-events: none;
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.hero-slide::before {
  content: "";
  position: absolute;
  inset: -36px;
  z-index: -1;
  background-image: linear-gradient(90deg, rgba(0, 0, 0, 0.12), rgba(0, 0, 0, 0.02)), var(--hero-image);
  background-size: cover;
  background-position: center;
  opacity: 0.22;
  filter: blur(22px) saturate(1.1);
}

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

.hero-visual {
  border-radius: 32px;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: rgba(255, 255, 255, 0.16);
  box-shadow: 0 30px 80px rgba(3, 7, 18, 0.32);
  transform: perspective(900px) rotateY(5deg);
}

.hero-visual img {
  height: 100%;
  object-fit: cover;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #06b6d4;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.hero-section .eyebrow,
.detail-hero .eyebrow,
.page-hero .eyebrow {
  color: #cffafe;
}

.hero-copy h1,
.page-hero h1,
.detail-info h1 {
  margin: 12px 0 18px;
  font-size: clamp(36px, 6vw, 64px);
  line-height: 1.04;
  letter-spacing: -0.04em;
}

.hero-copy p,
.page-hero p,
.detail-info .one-line {
  margin: 0 0 24px;
  font-size: clamp(17px, 2vw, 22px);
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.86);
}

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

.tag-row span {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 6px 10px;
  background: rgba(8, 145, 178, 0.1);
  color: #0e7490;
  font-size: 12px;
  font-weight: 700;
}

.hero-tags span,
.detail-hero .tag-row span {
  background: rgba(255, 255, 255, 0.16);
  color: #ffffff;
}

.hero-actions,
.detail-info .primary-btn {
  margin-top: 26px;
}

.primary-btn,
.ghost-btn,
.text-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-weight: 800;
  transition: 0.22s ease;
}

.primary-btn {
  padding: 14px 22px;
  color: #0e7490;
  background: #ffffff;
  box-shadow: 0 18px 35px rgba(8, 145, 178, 0.22);
}

.primary-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 22px 45px rgba(8, 145, 178, 0.3);
}

.ghost-btn {
  margin-left: 10px;
  padding: 13px 20px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.14);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.22);
}

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

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

.hero-dot.active {
  width: 34px;
  background: #ffffff;
}

.hero-stats {
  position: relative;
  z-index: 3;
  width: min(780px, calc(100% - 32px));
  margin: 54px auto 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.hero-stats a {
  padding: 20px;
  text-align: center;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(14px);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.16);
}

.hero-stats strong {
  display: block;
  font-size: 30px;
  line-height: 1;
}

.hero-stats span {
  display: block;
  margin-top: 8px;
  color: #cffafe;
  font-size: 14px;
}

.quick-search-panel,
.section-block,
.page-hero,
.detail-hero {
  width: min(1180px, calc(100% - 32px));
  margin-left: auto;
  margin-right: auto;
}

.quick-search-panel {
  margin-top: -20px;
  position: relative;
  z-index: 5;
  display: grid;
  grid-template-columns: minmax(220px, 0.75fr) 1.25fr;
  gap: 24px;
  align-items: center;
  padding: 26px;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.quick-search-panel h2,
.section-heading h2,
.article-content h2 {
  margin: 8px 0 0;
  font-size: clamp(24px, 3vw, 34px);
  letter-spacing: -0.03em;
}

.category-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.category-chip {
  padding: 10px 14px;
  border-radius: 999px;
  background: #ecfeff;
  color: #0e7490;
  font-weight: 750;
  box-shadow: inset 0 0 0 1px rgba(8, 145, 178, 0.12);
}

.section-block {
  padding: 58px 0 0;
}

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

.section-heading > a,
.text-link {
  color: #0891b2;
  font-weight: 800;
}

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

.category-card,
.category-overview-card,
.ranking-hero-card,
.article-content {
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
}

.category-card {
  min-height: 150px;
  padding: 22px;
  transition: 0.22s ease;
}

.category-card:hover,
.movie-card:hover,
.category-overview-card:hover,
.ranking-hero-card:hover {
  transform: translateY(-5px);
}

.category-card span,
.category-overview-title {
  display: block;
  font-size: 20px;
  font-weight: 850;
  color: #0f172a;
}

.category-card p,
.category-overview-card p,
.movie-card-body p,
.article-content p {
  color: var(--muted);
  line-height: 1.7;
}

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

.movie-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--card);
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
  transition: 0.22s ease;
}

.poster-link {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 2 / 3;
  background: linear-gradient(135deg, #e0f2fe, #ccfbf1);
}

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

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

.movie-badge,
.rank-mark,
.play-float,
.rank-pill {
  position: absolute;
  border-radius: 999px;
  color: #ffffff;
  font-weight: 850;
  background: linear-gradient(135deg, var(--cyan), var(--teal));
  box-shadow: 0 12px 25px rgba(8, 145, 178, 0.32);
}

.movie-badge {
  left: 12px;
  top: 12px;
  padding: 7px 10px;
  font-size: 12px;
}

.rank-mark {
  right: 12px;
  top: 12px;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
}

.play-float {
  right: 12px;
  bottom: 12px;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  background: rgba(15, 23, 42, 0.74);
  backdrop-filter: blur(10px);
}

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

.movie-meta-line,
.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: #0891b2;
  font-size: 13px;
  font-weight: 750;
}

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

.movie-card h3 a:hover {
  color: #0891b2;
}

.page-hero {
  margin-top: 34px;
  padding: 52px;
  border-radius: 32px;
  color: #ffffff;
  background: linear-gradient(135deg, #0891b2, #0d9488 52%, #2563eb);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.compact-hero h1 {
  max-width: 760px;
}

.compact-hero p {
  max-width: 820px;
}

.category-overview-card {
  padding: 22px;
}

.category-overview-card ul,
.site-footer ul {
  list-style: none;
  margin: 16px 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.category-overview-card li a:hover,
.site-footer a:hover {
  color: #22d3ee;
}

.list-tools {
  padding-top: 34px;
}

.filter-box {
  margin-bottom: 24px;
}

.filter-input {
  width: min(460px, 100%);
  color: #0f172a;
  background: #ffffff;
  box-shadow: inset 0 0 0 1px rgba(8, 145, 178, 0.18), var(--shadow);
}

.filter-input::placeholder {
  color: #94a3b8;
}

.ranking-hero-grid {
  grid-template-columns: repeat(3, 1fr);
}

.ranking-hero-card {
  overflow: hidden;
}

.ranking-hero-card img {
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.ranking-hero-card div {
  padding: 20px;
}

.ranking-hero-card h2 {
  margin: 14px 0 10px;
}

.rank-pill {
  position: static;
  display: inline-flex;
  padding: 8px 12px;
}

.big-search {
  margin-top: 24px;
}

.big-search input {
  width: min(520px, 100%);
  color: #ffffff;
}

.detail-hero {
  position: relative;
  margin-top: 34px;
  padding: 28px;
  overflow: hidden;
  border-radius: 34px;
  color: #ffffff;
  background: linear-gradient(135deg, rgba(8, 145, 178, 0.95), rgba(13, 148, 136, 0.9), rgba(37, 99, 235, 0.92));
  box-shadow: var(--shadow);
}

.detail-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(90deg, rgba(15, 23, 42, 0.78), rgba(15, 23, 42, 0.28)), var(--detail-bg);
  background-size: cover;
  background-position: center;
  filter: blur(16px) saturate(1.1);
  transform: scale(1.08);
  opacity: 0.58;
}

.breadcrumb,
.detail-layout {
  position: relative;
  z-index: 2;
}

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

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

.detail-layout {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 34px;
  align-items: center;
}

.detail-cover {
  overflow: hidden;
  border-radius: 28px;
  box-shadow: 0 25px 70px rgba(2, 6, 23, 0.45);
}

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

.detail-meta span {
  padding: 8px 10px;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.16);
}

.player-block {
  padding-top: 46px;
}

.player-shell {
  position: relative;
  overflow: hidden;
  border-radius: 30px;
  background: #020617;
  box-shadow: 0 28px 80px rgba(2, 6, 23, 0.38);
  aspect-ratio: 16 / 9;
}

.movie-video {
  width: 100%;
  height: 100%;
  display: block;
  background: #020617;
}

.player-overlay {
  position: absolute;
  inset: 0;
  border: 0;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 16px;
  color: #ffffff;
  background: radial-gradient(circle at center, rgba(8, 145, 178, 0.28), rgba(2, 6, 23, 0.72));
  cursor: pointer;
  transition: opacity 0.22s ease, visibility 0.22s ease;
}

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

.player-start {
  width: 76px;
  height: 76px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--cyan), var(--teal));
  box-shadow: 0 20px 50px rgba(8, 145, 178, 0.42);
  font-size: 28px;
}

.player-overlay strong {
  font-size: clamp(20px, 4vw, 36px);
}

.article-content {
  padding: 32px;
}

.article-content h2 + p {
  margin-top: 12px;
}

.article-content p {
  font-size: 17px;
}

.related-grid {
  padding-bottom: 18px;
}

.site-footer {
  margin-top: 70px;
  color: #cbd5e1;
  background: #0f172a;
}

.footer-inner {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 44px 0;
  display: grid;
  grid-template-columns: 1.3fr 0.7fr 0.7fr;
  gap: 36px;
}

.footer-brand {
  color: #ffffff;
  font-size: 22px;
}

.site-footer p {
  max-width: 500px;
  line-height: 1.7;
}

.site-footer h2 {
  margin: 0;
  color: #ffffff;
  font-size: 18px;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 18px;
  text-align: center;
  color: #94a3b8;
}

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

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

  .hero-slide,
  .detail-layout,
  .quick-search-panel {
    grid-template-columns: 1fr;
  }

  .hero-carousel {
    min-height: 720px;
  }

  .hero-visual {
    transform: none;
  }

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

  .ranking-hero-grid,
  .footer-inner {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .header-inner {
    width: min(100% - 24px, 1180px);
  }

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

  .hero-section {
    padding-top: 44px;
  }

  .hero-carousel {
    min-height: 650px;
  }

  .hero-stats,
  .category-grid,
  .movie-grid,
  .category-overview-grid {
    grid-template-columns: 1fr 1fr;
  }

  .quick-search-panel,
  .section-block,
  .page-hero,
  .detail-hero {
    width: min(100% - 24px, 1180px);
  }

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

  .detail-layout {
    gap: 22px;
  }

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

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

@media (max-width: 460px) {
  .hero-stats,
  .movie-grid,
  .category-grid,
  .category-overview-grid {
    grid-template-columns: 1fr;
  }

  .hero-carousel {
    min-height: 610px;
  }

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

  .mobile-search input,
  .mobile-search button,
  .big-search input,
  .big-search button {
    width: 100%;
  }
}
