:root {
  --teal: #0d9488;
  --cyan: #0891b2;
  --blue: #2563eb;
  --slate-50: #f8fafc;
  --slate-100: #f1f5f9;
  --slate-200: #e2e8f0;
  --slate-500: #64748b;
  --slate-700: #334155;
  --slate-800: #1e293b;
  --slate-900: #0f172a;
  --amber-50: #fffbeb;
  --orange-50: #fff7ed;
  --shadow-sm: 0 12px 30px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 24px 70px rgba(15, 23, 42, 0.16);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--slate-900);
  background: linear-gradient(135deg, var(--slate-50), var(--slate-100));
  min-height: 100vh;
}

img {
  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;
}

.narrow {
  width: min(860px, calc(100% - 32px));
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(226, 232, 240, 0.8);
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(18px);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.05);
}

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

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

.brand-icon {
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  color: #fff;
  background: linear-gradient(135deg, var(--teal), var(--cyan));
  box-shadow: 0 12px 26px rgba(13, 148, 136, 0.24);
}

.brand-text {
  display: grid;
  line-height: 1.15;
}

.brand-text strong {
  font-size: 20px;
  background: linear-gradient(135deg, var(--teal), var(--cyan));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.brand-text small {
  color: var(--slate-500);
  font-size: 12px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-link {
  padding: 10px 14px;
  border-radius: 12px;
  color: var(--slate-700);
  font-size: 15px;
  font-weight: 600;
  transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.nav-link:hover,
.nav-link.is-active {
  color: var(--teal);
  background: rgba(13, 148, 136, 0.09);
}

.nav-link:hover {
  transform: translateY(-1px);
}

.nav-toggle {
  display: none;
  border: 0;
  border-radius: 12px;
  background: var(--slate-100);
  color: var(--slate-700);
  width: 44px;
  height: 44px;
}

.hero {
  position: relative;
  overflow: hidden;
  color: #fff;
  background: radial-gradient(circle at 20% 20%, rgba(45, 212, 191, 0.34), transparent 28%),
    linear-gradient(135deg, #0f766e 0%, #0891b2 48%, #164e63 100%);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.2) 1px, transparent 1px);
  background-size: 26px 26px;
  opacity: 0.18;
}

.hero-glow {
  position: absolute;
  border-radius: 999px;
  filter: blur(8px);
  opacity: 0.45;
}

.hero-glow-one {
  width: 360px;
  height: 360px;
  left: -120px;
  top: -80px;
  background: rgba(255, 255, 255, 0.24);
}

.hero-glow-two {
  width: 420px;
  height: 420px;
  right: -130px;
  bottom: -160px;
  background: rgba(14, 165, 233, 0.4);
}

.hero-layout {
  position: relative;
  z-index: 1;
  min-height: 620px;
  padding: 76px 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 520px);
  gap: 54px;
  align-items: center;
}

.hero-kicker,
.section-kicker,
.eyebrow {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-kicker,
.eyebrow {
  padding: 8px 14px;
  color: #ccfbf1;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(10px);
}

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

.hero-copy p {
  max-width: 680px;
  color: #dffcf8;
  font-size: clamp(18px, 2vw, 24px);
  line-height: 1.7;
}

.hero-search {
  display: flex;
  gap: 12px;
  max-width: 620px;
  padding: 8px;
  margin: 30px 0 22px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(18px);
}

.hero-search input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  color: #fff;
  background: transparent;
  padding: 0 14px;
}

.hero-search input::placeholder {
  color: rgba(255, 255, 255, 0.78);
}

.hero-search button,
.button {
  border: 0;
  cursor: pointer;
  border-radius: 999px;
  padding: 13px 22px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.hero-search button,
.button-primary {
  color: var(--teal);
  background: #fff;
  box-shadow: 0 16px 34px rgba(15, 23, 42, 0.16);
}

.button-primary {
  color: #fff;
  background: linear-gradient(135deg, var(--teal), var(--cyan));
}

.button-light {
  color: var(--teal);
  background: #fff;
}

.button-ghost {
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.32);
  background: rgba(255, 255, 255, 0.12);
}

.button:hover,
.hero-search button:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 42px rgba(15, 23, 42, 0.2);
}

.hero-actions,
.center-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
}

.hero-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.hero-links a {
  padding: 8px 14px;
  border-radius: 999px;
  color: #e0fffb;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

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

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-rows: 1fr auto;
  border-radius: 32px;
  overflow: hidden;
  background: rgba(15, 23, 42, 0.2);
  box-shadow: var(--shadow-lg);
  opacity: 0;
  transform: translateX(24px) scale(0.98);
  pointer-events: none;
  transition: opacity 0.6s ease, transform 0.6s ease;
}

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

.hero-poster {
  position: relative;
  min-height: 340px;
  overflow: hidden;
}

.hero-poster::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 25%, rgba(15, 23, 42, 0.8));
}

.hero-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 360px;
  transition: transform 0.6s ease;
}

.hero-slide:hover .hero-poster img {
  transform: scale(1.05);
}

.hero-slide-copy {
  position: relative;
  padding: 28px;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.92), rgba(15, 23, 42, 0.98));
}

.hero-slide-copy h2 {
  margin: 14px 0 10px;
  font-size: 30px;
}

.hero-slide-copy p {
  margin: 0 0 20px;
  color: #cbd5e1;
  line-height: 1.7;
}

.hero-dots {
  position: absolute;
  z-index: 3;
  left: 26px;
  bottom: 26px;
  display: flex;
  gap: 8px;
}

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

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

.section {
  padding: 70px 0;
}

.section-warm {
  background: linear-gradient(135deg, var(--amber-50), var(--orange-50));
}

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

.section-head {
  margin-bottom: 30px;
}

.section-head.center {
  text-align: center;
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
}

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

.section-kicker {
  margin-bottom: 10px;
  color: var(--teal);
}

.section-head h2,
.page-hero h1 {
  margin: 0;
  font-size: clamp(30px, 4vw, 44px);
  line-height: 1.18;
  letter-spacing: -0.035em;
}

.section-head p,
.page-hero p {
  color: var(--slate-500);
  line-height: 1.8;
  font-size: 17px;
}

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

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

.category-card,
.overview-card {
  position: relative;
  overflow: hidden;
  min-height: 210px;
  border-radius: 26px;
  background: #fff;
  box-shadow: var(--shadow-sm);
  transition: transform 0.24s ease, box-shadow 0.24s ease;
}

.category-card:hover,
.overview-card:hover,
.movie-card:hover,
.rank-row:hover,
.related-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.category-cover {
  position: absolute;
  inset: 0;
  opacity: 0.18;
}

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

.category-copy {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 12px;
  padding: 26px;
}

.category-copy strong,
.overview-copy strong {
  font-size: 22px;
}

.category-copy em,
.overview-copy em {
  color: var(--slate-500);
  font-style: normal;
  line-height: 1.7;
}

.category-arrow {
  position: absolute;
  left: 26px;
  bottom: 22px;
  color: var(--teal);
  font-weight: 800;
}

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

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

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

.movie-card {
  display: grid;
  overflow: hidden;
  border-radius: 24px;
  background: #fff;
  box-shadow: var(--shadow-sm);
  transition: transform 0.24s ease, box-shadow 0.24s ease;
}

.poster-frame {
  position: relative;
  overflow: hidden;
  aspect-ratio: 3 / 4;
  background: var(--slate-200);
}

.movie-card.feature .poster-frame {
  aspect-ratio: 16 / 10;
}

.poster-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.movie-card:hover .poster-frame img {
  transform: scale(1.08);
}

.year-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  border-radius: 999px;
  padding: 5px 10px;
  color: var(--slate-700);
  background: rgba(255, 255, 255, 0.9);
  font-size: 12px;
  font-weight: 800;
}

.play-bubble {
  position: absolute;
  inset: 0;
  width: 54px;
  height: 54px;
  margin: auto;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: var(--teal);
  background: rgba(255, 255, 255, 0.94);
  opacity: 0;
  transform: scale(0.88);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.movie-card:hover .play-bubble {
  opacity: 1;
  transform: scale(1);
}

.movie-info {
  display: grid;
  gap: 10px;
  padding: 18px;
}

.movie-info strong {
  font-size: 18px;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.movie-info em {
  color: var(--slate-500);
  font-style: normal;
  line-height: 1.65;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.movie-card.compact .movie-info em {
  display: none;
}

.movie-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: var(--slate-500);
  font-size: 13px;
}

.page-hero,
.detail-hero {
  position: relative;
  padding: 72px 0;
  background: linear-gradient(135deg, #f0fdfa, #ecfeff 55%, #f8fafc);
  overflow: hidden;
}

.page-hero::after,
.detail-hero::after {
  content: "";
  position: absolute;
  right: -140px;
  top: -160px;
  width: 420px;
  height: 420px;
  border-radius: 999px;
  background: rgba(20, 184, 166, 0.16);
}

.filter-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 180px 180px;
  gap: 14px;
  padding: 16px;
  margin-bottom: 30px;
  border: 1px solid rgba(226, 232, 240, 0.85);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(12px);
}

.filter-field,
.filter-panel select {
  height: 52px;
  border: 1px solid var(--slate-200);
  border-radius: 16px;
  background: #fff;
}

.filter-field {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 16px;
}

.filter-field input {
  width: 100%;
  border: 0;
  outline: 0;
}

.filter-panel select {
  padding: 0 14px;
  color: var(--slate-700);
}

.overview-card {
  min-height: 260px;
  padding: 18px;
}

.overview-posters {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 8px;
  height: 132px;
  margin-bottom: 18px;
}

.overview-posters img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 16px;
}

.overview-copy {
  display: grid;
  gap: 8px;
}

.overview-copy span {
  color: var(--teal);
  font-weight: 800;
}

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

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

.rank-row {
  display: grid;
  grid-template-columns: 54px 72px minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  min-height: 104px;
  padding: 14px;
  border-radius: 22px;
  background: #fff;
  box-shadow: var(--shadow-sm);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.rank-number {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  color: #fff;
  font-weight: 900;
  background: linear-gradient(135deg, var(--teal), var(--cyan));
}

.rank-row img {
  width: 72px;
  height: 76px;
  border-radius: 16px;
  object-fit: cover;
}

.rank-copy {
  min-width: 0;
  display: grid;
  gap: 6px;
}

.rank-copy strong {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.rank-copy em,
.rank-meta {
  color: var(--slate-500);
  font-style: normal;
  line-height: 1.55;
}

.rank-copy em {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.detail-layout {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 38px;
  align-items: center;
}

.detail-poster {
  border-radius: 28px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

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

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

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  color: var(--slate-500);
  margin-bottom: 20px;
}

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

.badge-row,
.tag-row,
.detail-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.badge-row span,
.tag-row span {
  padding: 7px 12px;
  border-radius: 999px;
  background: #ccfbf1;
  color: #0f766e;
  font-weight: 800;
  font-size: 13px;
}

.tag-row span {
  background: #fff;
  color: var(--slate-700);
  border: 1px solid var(--slate-200);
}

.lead {
  max-width: 820px;
  color: var(--slate-500);
  font-size: 20px;
  line-height: 1.75;
}

.detail-facts {
  margin: 22px 0;
  color: var(--slate-700);
  font-weight: 700;
}

.detail-main {
  display: grid;
  gap: 28px;
}

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

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

.player-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  gap: 14px;
  border: 0;
  color: #fff;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.42), rgba(15, 23, 42, 0.74));
  cursor: pointer;
  text-align: center;
}

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

.player-button {
  width: 86px;
  height: 86px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: var(--teal);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 20px 52px rgba(0, 0, 0, 0.28);
  font-size: 32px;
}

.player-overlay strong {
  font-size: 22px;
  text-shadow: 0 4px 18px rgba(0, 0, 0, 0.4);
}

.content-card {
  padding: 30px;
  border-radius: 26px;
  background: #fff;
  box-shadow: var(--shadow-sm);
}

.content-card h2 {
  margin: 0 0 16px;
  font-size: 28px;
}

.content-card p {
  margin: 0;
  color: var(--slate-700);
  line-height: 1.9;
  font-size: 17px;
}

.warm-card {
  background: linear-gradient(135deg, var(--amber-50), var(--orange-50));
  border: 1px solid #fde68a;
}

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

.related-card {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  padding: 12px;
  border-radius: 20px;
  background: #fff;
  box-shadow: var(--shadow-sm);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.related-card img {
  width: 92px;
  height: 118px;
  object-fit: cover;
  border-radius: 16px;
}

.related-card span {
  display: grid;
  gap: 8px;
}

.related-card strong {
  line-height: 1.35;
}

.related-card em {
  color: var(--slate-500);
  font-style: normal;
}

.filter-item.is-hidden {
  display: none;
}

.site-footer {
  color: #cbd5e1;
  background: linear-gradient(135deg, var(--slate-800), var(--slate-900));
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 32px;
  padding: 54px 0;
}

.footer-grid h3,
.footer-brand strong {
  color: #fff;
}

.footer-grid p {
  line-height: 1.8;
  color: #94a3b8;
}

.footer-grid a {
  display: block;
  color: #94a3b8;
  margin: 10px 0;
}

.footer-grid a:hover {
  color: #fff;
}

.footer-bottom {
  padding: 20px;
  text-align: center;
  border-top: 1px solid rgba(148, 163, 184, 0.2);
  color: #94a3b8;
}

@media (max-width: 1100px) {
  .hero-layout,
  .detail-layout {
    grid-template-columns: 1fr;
  }

  .hero-stage {
    min-height: 520px;
  }

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

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

  .home-rank,
  .related-grid,
  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .nav-toggle {
    display: inline-grid;
    place-items: center;
  }

  .site-nav {
    position: absolute;
    left: 16px;
    right: 16px;
    top: 72px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 12px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: var(--shadow-lg);
  }

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

  .nav-link {
    padding: 13px 14px;
  }

  .brand-text small {
    display: none;
  }

  .hero-layout {
    padding: 52px 0;
    min-height: auto;
  }

  .hero-search,
  .section-head.between,
  .hero-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .hero-search {
    border-radius: 24px;
  }

  .hero-search input {
    min-height: 44px;
  }

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

  .category-grid,
  .overview-grid,
  .movie-grid,
  .feature-grid,
  .movie-grid.compact,
  .home-rank,
  .related-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

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

  .rank-row {
    grid-template-columns: 42px 62px minmax(0, 1fr);
  }

  .rank-meta {
    grid-column: 3;
  }

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

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