:root {
  --teal: #0d9488;
  --cyan: #0891b2;
  --blue: #2563eb;
  --rose: #f43f5e;
  --orange: #f97316;
  --slate-950: #020617;
  --slate-900: #0f172a;
  --slate-800: #1e293b;
  --slate-700: #334155;
  --slate-500: #64748b;
  --slate-200: #e2e8f0;
  --slate-100: #f1f5f9;
  --white: #ffffff;
  --shadow: 0 24px 70px rgba(15, 23, 42, 0.18);
  --soft-shadow: 0 18px 40px rgba(15, 23, 42, 0.12);
  --radius-xl: 30px;
  --radius-lg: 22px;
  --radius-md: 16px;
  --container: 1200px;
}

* {
  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(--slate-800);
  background: linear-gradient(180deg, #f8fafc 0%, #eef6ff 50%, #f8fafc 100%);
}

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: linear-gradient(90deg, var(--teal), var(--cyan), var(--blue));
  color: var(--white);
  box-shadow: 0 12px 34px rgba(2, 132, 199, 0.28);
}

.top-nav {
  width: min(100% - 32px, var(--container));
  height: 66px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.brand-icon {
  width: 36px;
  height: 36px;
  display: inline-grid;
  place-items: center;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.22);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.24);
  transition: transform 0.25s ease;
}

.brand:hover .brand-icon {
  transform: scale(1.08) rotate(-4deg);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-links > a,
.nav-dropdown > button {
  border: 0;
  color: var(--white);
  cursor: pointer;
  padding: 10px 14px;
  border-radius: 12px;
  background: transparent;
  transition: background 0.2s ease, transform 0.2s ease;
}

.nav-links > a:hover,
.nav-links > a.is-active,
.nav-dropdown > button:hover {
  background: rgba(255, 255, 255, 0.18);
  transform: translateY(-1px);
}

.nav-dropdown {
  position: relative;
}

.dropdown-panel {
  position: absolute;
  top: calc(100% + 14px);
  right: 0;
  width: 180px;
  padding: 10px;
  border-radius: 18px;
  background: rgba(15, 23, 42, 0.92);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
  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 {
  display: block;
  padding: 10px 12px;
  border-radius: 12px;
  color: #dbeafe;
}

.dropdown-panel a:hover {
  background: rgba(255, 255, 255, 0.12);
  color: var(--white);
}

.menu-toggle {
  display: none;
  border: 0;
  border-radius: 12px;
  color: var(--white);
  background: rgba(255, 255, 255, 0.18);
  padding: 9px 12px;
}

.hero-carousel,
.page-hero,
.detail-hero {
  position: relative;
  overflow: hidden;
}

.hero-carousel {
  min-height: 620px;
  background: radial-gradient(circle at 15% 12%, rgba(20, 184, 166, 0.35), transparent 32%), radial-gradient(circle at 80% 20%, rgba(37, 99, 235, 0.35), transparent 30%), linear-gradient(135deg, #071524 0%, #0f766e 45%, #1d4ed8 100%);
  color: var(--white);
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) 420px;
  align-items: center;
  gap: 56px;
  width: min(100% - 40px, var(--container));
  margin: 0 auto;
  padding: 80px 0 94px;
  opacity: 0;
  pointer-events: none;
  transform: translateX(20px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}

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

.hero-bg {
  position: absolute;
  inset: -30px calc(50% - 50vw);
  opacity: 0.18;
  filter: blur(18px) saturate(1.2);
}

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

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 720px;
}

.hero-kicker,
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #67e8f9;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero-content h1,
.page-hero h1,
.detail-info h1 {
  margin: 14px 0 18px;
  font-size: clamp(42px, 6vw, 76px);
  line-height: 1.03;
  letter-spacing: -0.06em;
}

.hero-content p,
.page-hero p,
.detail-info .lead {
  max-width: 700px;
  margin: 0 0 26px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 18px;
  line-height: 1.85;
}

.hero-tags,
.tag-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.hero-tags span,
.tag-row span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(20, 184, 166, 0.12);
  color: #0f766e;
  font-size: 12px;
  font-weight: 700;
}

.hero-tags span {
  background: rgba(255, 255, 255, 0.16);
  color: var(--white);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.16);
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 28px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 20px;
  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(--white);
  background: linear-gradient(135deg, #fb7185, #f97316);
  box-shadow: 0 18px 34px rgba(244, 63, 94, 0.28);
}

.btn.ghost {
  color: var(--white);
  background: rgba(255, 255, 255, 0.14);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.22);
}

.hero-poster {
  position: relative;
  z-index: 2;
  display: block;
  border-radius: 32px;
  overflow: hidden;
  box-shadow: 0 36px 80px rgba(2, 6, 23, 0.42);
  transform: rotate(2deg);
}

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

.hero-poster::after {
  content: "";
  position: absolute;
  inset: 0;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.24);
  border-radius: inherit;
}

.hero-controls {
  position: absolute;
  z-index: 4;
  left: 50%;
  bottom: 32px;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 14px;
}

.hero-arrow,
.hero-dot {
  border: 0;
  color: var(--white);
  cursor: pointer;
}

.hero-arrow {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
  font-size: 30px;
}

.hero-dots {
  display: flex;
  gap: 8px;
  align-items: center;
}

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

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

.content-section {
  width: min(100% - 32px, var(--container));
  margin: 0 auto;
  padding: 62px 0;
}

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

.section-heading h2,
.filter-panel h2,
.story-card h2,
.ranking-sidebar h2,
.category-card-large h2 {
  margin: 8px 0 0;
  color: var(--slate-900);
  font-size: clamp(28px, 4vw, 42px);
  letter-spacing: -0.04em;
}

.section-heading p {
  margin: 8px 0 0;
  color: var(--slate-500);
  line-height: 1.8;
}

.section-more,
.text-link {
  color: var(--teal);
  font-weight: 800;
}

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

.category-tile {
  min-height: 140px;
  padding: 22px;
  border-radius: 24px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.94), rgba(226, 246, 255, 0.9));
  box-shadow: var(--soft-shadow);
  border: 1px solid rgba(14, 165, 233, 0.12);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.category-tile span {
  color: var(--slate-900);
  font-size: 20px;
  font-weight: 900;
}

.category-tile p {
  color: var(--slate-500);
  line-height: 1.7;
}

.movie-grid {
  display: grid;
  gap: 22px;
}

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

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

.movie-card {
  overflow: hidden;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: var(--soft-shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.poster-link {
  position: relative;
  display: block;
  overflow: hidden;
  background: linear-gradient(135deg, #0f766e, #1d4ed8);
}

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

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

.play-mark {
  position: absolute;
  right: 14px;
  bottom: 14px;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  color: var(--white);
  border-radius: 50%;
  background: rgba(15, 23, 42, 0.72);
  backdrop-filter: blur(12px);
}

.rank-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  min-width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  color: var(--white);
  border-radius: 13px;
  background: linear-gradient(135deg, var(--rose), var(--orange));
  box-shadow: 0 10px 25px rgba(244, 63, 94, 0.36);
}

.card-body {
  padding: 18px;
}

.meta-line {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  color: var(--cyan);
  font-size: 12px;
  font-weight: 800;
}

.card-body h3 {
  margin: 10px 0 8px;
  font-size: 20px;
  line-height: 1.35;
  color: var(--slate-900);
}

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

.filter-panel {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 22px;
  align-items: end;
  margin-bottom: 28px;
  padding: 24px;
  border-radius: 28px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(224, 242, 254, 0.88));
  box-shadow: var(--soft-shadow);
}

.filter-controls {
  display: grid;
  grid-template-columns: minmax(220px, 1.5fr) repeat(3, minmax(120px, 1fr));
  gap: 12px;
}

.search-input,
.filter-select {
  width: 100%;
  min-height: 46px;
  border: 1px solid rgba(14, 165, 233, 0.18);
  border-radius: 14px;
  color: var(--slate-800);
  background: var(--white);
  padding: 0 14px;
  outline: none;
}

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

.page-hero {
  min-height: 360px;
  display: grid;
  place-items: center;
  padding: 90px 20px;
  color: var(--white);
  background: radial-gradient(circle at 18% 10%, rgba(45, 212, 191, 0.36), transparent 30%), linear-gradient(135deg, #0f172a, #0f766e 52%, #2563eb);
}

.page-hero > div {
  width: min(100%, var(--container));
}

.small-hero h1,
.category-hero h1,
.ranking-hero h1 {
  max-width: 760px;
}

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

.category-card-large {
  display: grid;
  grid-template-columns: 210px minmax(0, 1fr);
  gap: 22px;
  padding: 20px;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--soft-shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.category-cover-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

.category-cover-row img {
  width: 100%;
  aspect-ratio: 3 / 4;
  border-radius: 14px;
  object-fit: cover;
}

.ranking-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 26px;
  align-items: start;
}

.ranking-sidebar {
  position: sticky;
  top: 90px;
  padding: 22px;
  border-radius: 26px;
  background: rgba(15, 23, 42, 0.95);
  color: var(--white);
  box-shadow: var(--shadow);
}

.ranking-sidebar h2 {
  color: var(--white);
  font-size: 26px;
}

.ranking-list {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.ranking-list a {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  gap: 10px;
  padding: 12px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.08);
}

.ranking-list span {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--rose), var(--orange));
  font-weight: 900;
}

.ranking-list strong,
.ranking-list em {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ranking-list em {
  margin-top: 3px;
  color: #bfdbfe;
  font-size: 12px;
  font-style: normal;
}

.detail-hero {
  color: var(--white);
  background: linear-gradient(135deg, #020617, #0f766e 46%, #1d4ed8);
}

.detail-bg {
  position: absolute;
  inset: 0;
  opacity: 0.2;
  filter: blur(18px) saturate(1.25);
}

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

.detail-wrap {
  position: relative;
  z-index: 2;
  width: min(100% - 40px, var(--container));
  margin: 0 auto;
  padding: 72px 0;
  display: grid;
  grid-template-columns: 340px minmax(0, 1fr);
  gap: 42px;
  align-items: center;
}

.detail-poster {
  overflow: hidden;
  border-radius: 32px;
  box-shadow: 0 30px 75px rgba(2, 6, 23, 0.45);
}

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

.breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
  color: rgba(255, 255, 255, 0.74);
}

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

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

.detail-meta span {
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
}

.detail-content {
  display: grid;
  gap: 24px;
}

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

.movie-player {
  width: 100%;
  aspect-ratio: 16 / 9;
  display: block;
  background: #000;
  cursor: pointer;
}

.player-cover {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 14px;
  border: 0;
  color: var(--white);
  cursor: pointer;
  background: linear-gradient(180deg, rgba(2, 6, 23, 0.18), rgba(2, 6, 23, 0.72));
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

.player-cover span {
  width: 76px;
  height: 76px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--rose), var(--orange));
  box-shadow: 0 18px 38px rgba(244, 63, 94, 0.38);
  font-size: 32px;
}

.player-cover strong {
  font-size: 18px;
}

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

.story-card {
  padding: 28px;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--soft-shadow);
}

.story-card p {
  color: var(--slate-700);
  line-height: 2;
  font-size: 17px;
}

.site-footer {
  margin-top: 50px;
  color: #cbd5e1;
  background: linear-gradient(180deg, #1e293b, #020617);
}

.footer-grid {
  width: min(100% - 32px, var(--container));
  margin: 0 auto;
  padding: 46px 0;
  display: grid;
  grid-template-columns: 1.1fr 1fr 1fr;
  gap: 36px;
}

.footer-grid h2,
.footer-grid h3 {
  color: var(--white);
}

.footer-grid p {
  line-height: 1.8;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
}

.footer-links a:hover {
  color: #67e8f9;
}

.footer-bottom {
  width: min(100% - 32px, var(--container));
  margin: 0 auto;
  padding: 18px 0 28px;
  color: #94a3b8;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.is-hidden-card {
  display: none !important;
}

@media (max-width: 980px) {
  .menu-toggle {
    display: inline-flex;
  }

  .nav-links {
    position: absolute;
    top: 66px;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 14px 20px 18px;
    background: rgba(15, 118, 110, 0.96);
    backdrop-filter: blur(16px);
  }

  .site-header.is-open .nav-links {
    display: flex;
  }

  .nav-dropdown,
  .dropdown-panel {
    width: 100%;
  }

  .dropdown-panel {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    background: rgba(255, 255, 255, 0.1);
  }

  .hero-slide,
  .detail-wrap,
  .ranking-layout,
  .filter-panel,
  .category-card-large {
    grid-template-columns: 1fr;
  }

  .hero-slide {
    gap: 28px;
    padding-top: 52px;
  }

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

  .hero-poster,
  .detail-poster {
    max-width: 360px;
  }

  .filter-controls,
  .category-grid,
  .feature-grid,
  .compact-grid,
  .all-grid,
  .ranking-grid,
  .category-large-grid,
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 620px) {
  .top-nav {
    width: min(100% - 22px, var(--container));
  }

  .brand {
    font-size: 18px;
  }

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

  .hero-slide,
  .content-section,
  .detail-wrap {
    width: min(100% - 24px, var(--container));
  }

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

  .filter-controls,
  .category-grid,
  .feature-grid,
  .compact-grid,
  .all-grid,
  .ranking-grid,
  .category-large-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

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

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

  .story-card {
    padding: 22px;
  }
}
