* {
  box-sizing: border-box;
}

:root {
  --bg: #f8fafc;
  --surface: #ffffff;
  --surface-soft: #ecfdf5;
  --text: #0f172a;
  --muted: #64748b;
  --line: rgba(15, 23, 42, 0.10);
  --accent: #10b981;
  --accent-dark: #059669;
  --accent-soft: rgba(16, 185, 129, 0.14);
  --slate: #0f172a;
  --shadow: 0 24px 60px rgba(15, 23, 42, 0.14);
  --radius: 24px;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(16, 185, 129, 0.18), transparent 32rem),
    linear-gradient(180deg, #f8fafc 0%, #eef2f7 100%);
}

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

img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: linear-gradient(135deg, #0f172a, #10b981);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(15, 23, 42, 0.92);
  color: #ffffff;
  backdrop-filter: blur(18px);
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.24);
}

.nav-shell {
  width: min(1180px, calc(100% - 32px));
  height: 68px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 220px;
}

.brand-icon {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  color: #052e2b;
  background: linear-gradient(135deg, #6ee7b7, #10b981);
  border-radius: 14px;
  box-shadow: 0 12px 30px rgba(16, 185, 129, 0.34);
}

.brand-text strong,
.brand-text small {
  display: block;
}

.brand-text strong {
  font-size: 20px;
  letter-spacing: -0.04em;
}

.brand-text small {
  margin-top: 2px;
  color: #cbd5e1;
  font-size: 12px;
}

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

.nav-link {
  padding: 10px 14px;
  color: #cbd5e1;
  border-radius: 999px;
  font-size: 14px;
  transition: color 0.2s ease, background 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
  color: #ffffff;
  background: rgba(16, 185, 129, 0.18);
}

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

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

.mobile-panel.open {
  display: grid;
  gap: 8px;
}

.mobile-cats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding-top: 8px;
}

.mobile-cats a {
  padding: 8px 10px;
  color: #cbd5e1;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  font-size: 13px;
}

.hero-carousel {
  position: relative;
  min-height: 72vh;
  overflow: hidden;
  color: #ffffff;
  background: #0f172a;
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(260px, 0.55fr);
  align-items: center;
  gap: 44px;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 72px 0 92px;
  opacity: 0;
  transform: translateY(14px) scale(0.99);
  pointer-events: none;
  transition: opacity 0.55s ease, transform 0.55s ease;
}

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

.hero-bg {
  position: absolute;
  inset: 0 calc(50% - 50vw);
  z-index: 0;
  opacity: 0.38;
  filter: blur(8px) saturate(1.12);
}

.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(15, 23, 42, 0.98), rgba(15, 23, 42, 0.72), rgba(15, 23, 42, 0.92)),
    radial-gradient(circle at 30% 20%, rgba(16, 185, 129, 0.34), transparent 26rem);
}

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

.eyebrow {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  margin-bottom: 12px;
  padding: 7px 12px;
  color: #047857;
  background: rgba(16, 185, 129, 0.14);
  border: 1px solid rgba(16, 185, 129, 0.20);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-copy .eyebrow {
  color: #a7f3d0;
  background: rgba(16, 185, 129, 0.18);
  border-color: rgba(167, 243, 208, 0.20);
}

.hero-copy h1 {
  max-width: 860px;
  margin: 0 0 12px;
  font-size: clamp(38px, 7vw, 72px);
  line-height: 0.95;
  letter-spacing: -0.07em;
}

.hero-copy h2 {
  margin: 0 0 16px;
  color: #d1fae5;
  font-size: clamp(24px, 4vw, 42px);
  letter-spacing: -0.04em;
}

.hero-copy p {
  max-width: 680px;
  margin: 0 0 28px;
  color: #dbeafe;
  font-size: 18px;
  line-height: 1.75;
}

.hero-actions,
.filter-bar,
.section-title-row,
.detail-meta,
.card-meta,
.tag-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.primary-btn,
.ghost-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;
}

.primary-btn {
  color: #042f2e;
  background: linear-gradient(135deg, #a7f3d0, #10b981);
  box-shadow: 0 18px 35px rgba(16, 185, 129, 0.35);
}

.ghost-btn {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.18);
}

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

.hero-poster {
  display: block;
  overflow: hidden;
  aspect-ratio: 2 / 3;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 30px;
  box-shadow: var(--shadow);
}

.hero-poster span {
  position: absolute;
  left: 18px;
  bottom: 18px;
  padding: 8px 12px;
  color: #ffffff;
  background: rgba(15, 23, 42, 0.70);
  border-radius: 999px;
  backdrop-filter: blur(12px);
  font-size: 13px;
  font-weight: 700;
}

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

.hero-dot {
  width: 42px;
  height: 5px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.34);
}

.hero-dot.active {
  background: #6ee7b7;
}

.section-shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 58px 0;
}

.page-main {
  padding-top: 26px;
}

.glass-panel {
  margin-top: -38px;
  padding: 28px;
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(255, 255, 255, 0.70);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.quick-search h2 {
  margin: 0 0 16px;
  font-size: 26px;
  letter-spacing: -0.04em;
}

.filter-bar input,
.filter-bar select {
  min-height: 48px;
  padding: 0 16px;
  color: var(--text);
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 16px;
  outline: none;
  font-size: 15px;
}

.filter-bar input {
  flex: 1 1 280px;
}

.filter-bar select {
  flex: 0 0 180px;
}

.section-title-row {
  justify-content: space-between;
  margin-bottom: 24px;
}

.section-title-row h2 {
  margin: 0;
  font-size: clamp(26px, 4vw, 42px);
  letter-spacing: -0.06em;
}

.section-title-row a {
  color: var(--accent-dark);
  font-weight: 800;
}

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

.category-tile,
.category-overview-card a {
  display: block;
  min-height: 150px;
  padding: 22px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(236, 253, 245, 0.88)),
    radial-gradient(circle at top right, rgba(16, 185, 129, 0.20), transparent 11rem);
  border: 1px solid rgba(16, 185, 129, 0.16);
  border-radius: 24px;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.08);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

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

.category-tile span,
.category-overview-card h2 {
  display: block;
  margin: 0 0 8px;
  font-size: 20px;
  font-weight: 900;
  letter-spacing: -0.04em;
}

.category-tile small,
.category-overview-card p {
  color: var(--muted);
  line-height: 1.7;
}

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

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

.movie-card {
  overflow: hidden;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: 0 16px 38px rgba(15, 23, 42, 0.08);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.poster-link {
  position: relative;
  display: block;
  aspect-ratio: 2 / 3;
  overflow: hidden;
}

.card-score {
  position: absolute;
  top: 12px;
  right: 12px;
  padding: 7px 9px;
  color: #052e2b;
  background: #a7f3d0;
  border-radius: 999px;
  font-weight: 900;
  font-size: 12px;
}

.card-body {
  padding: 16px;
}

.card-title {
  display: -webkit-box;
  min-height: 44px;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  font-size: 18px;
  line-height: 1.25;
  font-weight: 900;
  letter-spacing: -0.04em;
}

.card-meta {
  margin-top: 10px;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
}

.card-meta span:not(:last-child)::after {
  content: "·";
  margin-left: 8px;
  color: #cbd5e1;
}

.card-body p {
  display: -webkit-box;
  min-height: 48px;
  margin: 12px 0 0;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}

.tag-row {
  margin-top: 12px;
  gap: 8px;
}

.tag-row span {
  padding: 5px 9px;
  color: #047857;
  background: var(--accent-soft);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}

.movie-card.compact .card-body p {
  display: none;
}

.movie-card.compact .card-title {
  min-height: 40px;
  font-size: 16px;
}

.dark-strip {
  width: min(1208px, calc(100% - 16px));
  padding: 44px 28px;
  color: #ffffff;
  background:
    radial-gradient(circle at top left, rgba(16, 185, 129, 0.35), transparent 26rem),
    linear-gradient(135deg, #0f172a, #111827);
  border-radius: 34px;
  box-shadow: var(--shadow);
}

.dark-strip .section-title-row a,
.dark-strip .eyebrow {
  color: #a7f3d0;
}

.dark-strip .movie-card {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.12);
}

.dark-strip .card-title,
.dark-strip .card-meta,
.dark-strip .card-body p {
  color: #ffffff;
}

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

.footer-inner {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 42px 0;
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 30px;
}

.footer-inner strong {
  display: block;
  margin-bottom: 8px;
  color: #ffffff;
  font-size: 22px;
}

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

.footer-links a {
  padding: 8px 12px;
  color: #d1fae5;
  background: rgba(16, 185, 129, 0.12);
  border-radius: 999px;
}

.page-hero {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 56px;
  color: #ffffff;
  background:
    radial-gradient(circle at top right, rgba(16, 185, 129, 0.42), transparent 24rem),
    linear-gradient(135deg, #0f172a, #1e293b);
  border-radius: 34px;
  box-shadow: var(--shadow);
}

.page-hero h1 {
  margin: 0 0 14px;
  font-size: clamp(34px, 5vw, 56px);
  letter-spacing: -0.06em;
}

.page-hero p {
  max-width: 760px;
  margin: 0;
  color: #dbeafe;
  font-size: 18px;
  line-height: 1.8;
}

.compact-filter {
  margin-top: 24px;
}

.category-overview-card a {
  min-height: 260px;
}

.mini-posters {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  height: 110px;
  margin-top: 20px;
}

.mini-posters img {
  border-radius: 14px;
}

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

.ranking-item {
  display: grid;
  grid-template-columns: 64px 86px 1fr;
  gap: 18px;
  align-items: center;
  padding: 16px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.08);
}

.ranking-no {
  color: var(--accent-dark);
  font-size: 28px;
  font-weight: 1000;
  letter-spacing: -0.06em;
}

.ranking-cover {
  display: block;
  overflow: hidden;
  aspect-ratio: 2 / 3;
  border-radius: 16px;
}

.ranking-title {
  font-size: 20px;
  font-weight: 900;
  letter-spacing: -0.04em;
}

.ranking-item p {
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.7;
}

.breadcrumb {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--muted);
  font-size: 14px;
}

.breadcrumb a {
  color: var(--accent-dark);
  font-weight: 800;
}

.detail-hero {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(220px, 330px) 1fr;
  gap: 34px;
  padding: 34px;
  color: #ffffff;
  background:
    radial-gradient(circle at top right, rgba(16, 185, 129, 0.34), transparent 24rem),
    linear-gradient(135deg, #0f172a, #111827);
  border-radius: 34px;
  box-shadow: var(--shadow);
}

.detail-poster {
  overflow: hidden;
  aspect-ratio: 2 / 3;
  border-radius: 28px;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.32);
}

.detail-info {
  align-self: center;
}

.detail-info h1 {
  margin: 0 0 18px;
  font-size: clamp(34px, 6vw, 62px);
  line-height: 1;
  letter-spacing: -0.07em;
}

.lead {
  max-width: 760px;
  margin: 0 0 20px;
  color: #e2e8f0;
  font-size: 18px;
  line-height: 1.85;
}

.detail-meta {
  margin-bottom: 12px;
  color: #a7f3d0;
  font-weight: 800;
}

.player-section {
  width: min(1180px, calc(100% - 32px));
  margin: 34px auto 0;
  padding: 28px;
  background: #0f172a;
  border-radius: 30px;
  box-shadow: var(--shadow);
}

.player-section h2 {
  margin: 0 0 18px;
  color: #ffffff;
  font-size: 26px;
  letter-spacing: -0.04em;
}

.video-frame {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: #020617;
  border-radius: 24px;
}

.video-frame video {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  background: #020617;
  cursor: pointer;
}

.play-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  border: 0;
  color: #ffffff;
  background: linear-gradient(180deg, rgba(2, 6, 23, 0.18), rgba(2, 6, 23, 0.42));
  cursor: pointer;
}

.play-overlay span {
  width: 86px;
  height: 86px;
  display: grid;
  place-items: center;
  color: #052e2b;
  background: linear-gradient(135deg, #a7f3d0, #10b981);
  border-radius: 50%;
  box-shadow: 0 18px 46px rgba(16, 185, 129, 0.36);
  font-size: 34px;
  padding-left: 6px;
}

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

.detail-text {
  padding-bottom: 16px;
}

.detail-text h2 {
  margin: 0 0 14px;
  font-size: 28px;
  letter-spacing: -0.05em;
}

.detail-text h2:not(:first-child) {
  margin-top: 34px;
}

.detail-text p {
  margin: 0;
  color: #334155;
  font-size: 17px;
  line-height: 2;
}

.is-filtered-out {
  display: none !important;
}

@media (max-width: 1080px) {
  .movie-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

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

@media (max-width: 820px) {
  .main-nav {
    display: none;
  }

  .menu-toggle {
    display: block;
  }

  .hero-slide {
    grid-template-columns: 1fr;
    gap: 26px;
    padding-top: 48px;
  }

  .hero-poster {
    width: min(280px, 70vw);
    margin: 0 auto;
  }

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

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

  .page-hero {
    padding: 34px 24px;
  }

  .ranking-item {
    grid-template-columns: 46px 72px 1fr;
    gap: 12px;
  }
}

@media (max-width: 560px) {
  .brand {
    min-width: 0;
  }

  .brand-text small {
    display: none;
  }

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

  .section-shell {
    padding: 38px 0;
  }

  .glass-panel {
    margin-top: -24px;
    padding: 20px;
  }

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

  .hero-copy h2 {
    font-size: 24px;
  }

  .hero-copy p,
  .lead,
  .page-hero p {
    font-size: 16px;
  }

  .ranking-item {
    grid-template-columns: 1fr;
  }

  .ranking-cover {
    width: 120px;
  }
}
