:root {
  --brand: #10b981;
  --brand-dark: #059669;
  --cyan: #06b6d4;
  --blue: #3b82f6;
  --ink: #0f172a;
  --muted: #64748b;
  --soft: #f8fafc;
  --line: #e2e8f0;
  --card: #ffffff;
  --shadow: 0 20px 45px rgba(15, 23, 42, 0.12);
  --radius: 24px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  color: var(--ink);
  background: #ffffff;
  line-height: 1.6;
}

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

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

button,
input,
select {
  font: inherit;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(18px);
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
}

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

.logo,
.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--brand-dark);
}

.logo-mark {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--brand), var(--cyan));
  box-shadow: 0 12px 24px rgba(16, 185, 129, 0.28);
}

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

.nav-link,
.mobile-link {
  color: #334155;
  font-weight: 700;
  padding: 10px 14px;
  border-radius: 999px;
  transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.nav-link:hover,
.nav-link.active,
.mobile-link:hover,
.mobile-link.active {
  color: var(--brand-dark);
  background: #ecfdf5;
}

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

.top-search input,
.mobile-search input,
.filter-controls input,
.filter-controls select {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 12px 16px;
  outline: none;
  background: #ffffff;
  min-width: 0;
  transition: border 0.2s ease, box-shadow 0.2s ease;
}

.top-search input {
  width: 210px;
}

.top-search input:focus,
.mobile-search input:focus,
.filter-controls input:focus,
.filter-controls select:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.12);
}

.top-search button,
.mobile-search button,
.primary-btn,
.ghost-btn {
  border: 0;
  border-radius: 999px;
  padding: 12px 20px;
  font-weight: 800;
  cursor: pointer;
}

.top-search button,
.mobile-search button,
.primary-btn {
  color: #ffffff;
  background: linear-gradient(135deg, var(--brand), var(--cyan));
  box-shadow: 0 14px 30px rgba(16, 185, 129, 0.25);
}

.ghost-btn {
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.48);
  background: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(12px);
}

.ghost-btn.dark {
  color: var(--brand-dark);
  border-color: rgba(16, 185, 129, 0.28);
  background: #ffffff;
}

.primary-btn,
.ghost-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 12px;
  background: #ecfdf5;
  padding: 10px;
}

.menu-toggle span {
  display: block;
  height: 2px;
  background: var(--brand-dark);
  margin: 5px 0;
}

.mobile-nav {
  display: none;
  border-top: 1px solid var(--line);
  padding: 16px;
  background: #ffffff;
}

.mobile-nav.open {
  display: grid;
  gap: 10px;
}

.hero {
  position: relative;
  overflow: hidden;
  color: #ffffff;
  background: linear-gradient(135deg, #10b981 0%, #06b6d4 48%, #3b82f6 100%);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(15, 23, 42, 0.28), rgba(15, 23, 42, 0.08));
}

.hero-glow {
  position: absolute;
  width: 420px;
  height: 420px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.22);
  filter: blur(38px);
  mix-blend-mode: overlay;
  animation: pulseGlow 5s ease-in-out infinite alternate;
}

.hero-glow.one {
  top: -120px;
  left: 8%;
}

.hero-glow.two {
  right: 5%;
  bottom: -160px;
  animation-delay: 1.4s;
}

@keyframes pulseGlow {
  from {
    transform: scale(0.94);
    opacity: 0.42;
  }
  to {
    transform: scale(1.12);
    opacity: 0.74;
  }
}

.hero-inner {
  position: relative;
  min-height: 660px;
  display: grid;
  align-items: center;
  padding: 72px 0 42px;
}

.hero-carousel {
  position: relative;
  min-height: 520px;
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
  gap: 48px;
  align-items: center;
  opacity: 0;
  pointer-events: none;
  transform: translateX(34px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

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

.hero-kicker {
  display: inline-flex;
  width: fit-content;
  margin-bottom: 18px;
  padding: 9px 14px;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(12px);
  font-weight: 800;
}

.hero h1 {
  margin: 0;
  font-size: clamp(38px, 5vw, 72px);
  line-height: 1.04;
  letter-spacing: -0.05em;
}

.hero h2 {
  margin: 20px 0 8px;
  font-size: clamp(28px, 3vw, 46px);
  line-height: 1.12;
}

.hero p,
.hero-summary {
  max-width: 760px;
  margin: 0;
  color: rgba(255, 255, 255, 0.92);
  font-size: 19px;
}

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

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

.hero-tags span,
.tag-row span {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
}

.hero-tags span {
  color: #ffffff;
  padding: 8px 12px;
  background: rgba(255, 255, 255, 0.18);
}

.hero-actions,
.page-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
}

.hero-poster {
  position: relative;
  display: block;
  border-radius: 32px;
  overflow: hidden;
  min-height: 460px;
  box-shadow: 0 28px 70px rgba(15, 23, 42, 0.36);
  transform: rotate(2deg);
}

.hero-poster img {
  width: 100%;
  height: 100%;
  min-height: 460px;
  object-fit: cover;
}

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

.hero-poster span,
.score-badge,
.rank-badge {
  position: absolute;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  color: #ffffff;
}

.hero-poster span {
  right: 18px;
  bottom: 18px;
  width: 66px;
  height: 66px;
  border-radius: 22px;
  background: linear-gradient(135deg, #f59e0b, #ef4444);
  font-size: 24px;
}

.hero-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 16px;
}

.hero-arrow,
.hero-dot {
  border: 0;
  cursor: pointer;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
}

.hero-arrow {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  font-size: 28px;
}

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

.hero-dot {
  width: 10px;
  height: 10px;
  padding: 0;
  border-radius: 999px;
  opacity: 0.7;
}

.hero-dot.active {
  width: 30px;
  background: #ffffff;
  opacity: 1;
}

.intro-strip {
  background: #ffffff;
}

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

.intro-grid div {
  padding: 24px;
  border: 1px solid #ecfdf5;
  border-radius: 22px;
  background: linear-gradient(180deg, #ffffff, #f8fafc);
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.06);
}

.intro-grid strong {
  display: block;
  font-size: 24px;
}

.intro-grid span {
  color: var(--muted);
}

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

.soft-bg {
  background: var(--soft);
}

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

.section-title span,
.page-hero p {
  color: var(--brand-dark);
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.section-title h2,
.page-hero h1,
.detail-copy h1,
.content-card h2 {
  margin: 0;
  font-size: clamp(28px, 4vw, 44px);
  letter-spacing: -0.03em;
  line-height: 1.12;
}

.section-title a {
  color: var(--brand-dark);
  font-weight: 900;
}

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

.category-grid a,
.category-card,
.content-card,
.filter-section {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #ffffff;
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.06);
}

.category-grid a {
  display: grid;
  gap: 8px;
  padding: 24px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.category-grid strong {
  color: var(--ink);
  font-size: 20px;
}

.category-grid span,
.category-card p,
.content-card p,
.filter-head p,
.card-body p {
  color: var(--muted);
}

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

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

.movie-card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: #ffffff;
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.07);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.movie-card.hidden {
  display: none;
}

.card-poster {
  position: relative;
  display: block;
  aspect-ratio: 3 / 4.15;
  overflow: hidden;
  background: #f1f5f9;
}

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

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

.score-badge {
  right: 12px;
  top: 12px;
  min-width: 44px;
  height: 32px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.82);
  font-size: 14px;
}

.rank-badge {
  left: 12px;
  top: 12px;
  width: 38px;
  height: 38px;
  border-radius: 14px;
  background: linear-gradient(135deg, #f59e0b, #ef4444);
}

.card-body {
  padding: 16px;
}

.card-meta,
.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

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

.card-body h3 a:hover {
  color: var(--brand-dark);
}

.card-body p {
  margin: 0 0 12px;
  display: -webkit-box;
  min-height: 48px;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.tag-row span {
  color: var(--brand-dark);
  padding: 6px 10px;
  background: #ecfdf5;
}

.filter-section {
  margin-bottom: 28px;
  padding: 24px;
}

.filter-head {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: end;
  margin-bottom: 18px;
}

.filter-head h2 {
  margin: 0;
  font-size: 26px;
}

.filter-head p {
  margin: 0;
}

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

.no-results {
  display: none;
  margin-top: 16px;
  padding: 16px;
  border-radius: 16px;
  color: var(--muted);
  background: var(--soft);
  text-align: center;
  font-weight: 800;
}

.no-results.show {
  display: block;
}

.page-hero {
  padding: 74px 0;
  background: linear-gradient(135deg, #ecfdf5, #eff6ff);
}

.page-hero p {
  margin: 0 0 12px;
}

.page-hero h1 {
  max-width: 850px;
}

.page-hero .hero-summary {
  max-width: 780px;
  margin-top: 16px;
  color: #475569;
}

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

.category-card {
  display: grid;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.category-card > div:last-child {
  padding: 22px;
}

.category-card h2 {
  margin: 0 0 8px;
  font-size: 24px;
}

.category-card span {
  display: inline-flex;
  margin-top: 12px;
  color: var(--brand-dark);
  font-weight: 900;
}

.category-thumbs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  min-height: 150px;
  background: #f1f5f9;
}

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

.cat-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 22px;
}

.cat-tab {
  padding: 10px 14px;
  border-radius: 999px;
  color: #334155;
  background: #ffffff;
  border: 1px solid var(--line);
  font-weight: 800;
}

.cat-tab.active,
.cat-tab:hover {
  color: #ffffff;
  border-color: transparent;
  background: linear-gradient(135deg, var(--brand), var(--cyan));
}

.detail-hero {
  padding: 70px 0;
  background: radial-gradient(circle at top left, #d1fae5, transparent 34%), linear-gradient(135deg, #f8fafc, #eff6ff);
}

.detail-grid {
  display: grid;
  grid-template-columns: 330px minmax(0, 1fr);
  gap: 44px;
  align-items: center;
}

.detail-poster {
  overflow: hidden;
  border-radius: 30px;
  box-shadow: var(--shadow);
  background: #f1f5f9;
}

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

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--muted);
  font-weight: 800;
  margin-bottom: 18px;
}

.breadcrumb a {
  color: var(--brand-dark);
}

.detail-copy p {
  max-width: 860px;
  color: #475569;
  font-size: 19px;
}

.detail-meta {
  margin: 18px 0;
}

.detail-meta span,
.detail-meta strong {
  padding: 7px 11px;
  border-radius: 999px;
  background: #ffffff;
  border: 1px solid var(--line);
}

.detail-meta strong {
  color: #ffffff;
  border-color: transparent;
  background: linear-gradient(135deg, #f59e0b, #ef4444);
}

.detail-tags {
  margin-top: 16px;
}

.player-section {
  padding: 68px 0;
  color: #ffffff;
  background: #07111f;
}

.light-title span,
.light-title h2 {
  color: #ffffff;
}

.player-shell {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  background: #000000;
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.38);
}

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

.player-button {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  border: 0;
  color: #ffffff;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.18), rgba(15, 23, 42, 0.74));
  cursor: pointer;
  font-size: 18px;
  font-weight: 900;
}

.play-icon {
  width: 86px;
  height: 86px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--brand), var(--cyan));
  box-shadow: 0 18px 42px rgba(6, 182, 212, 0.32);
  position: relative;
}

.play-icon::after {
  content: "";
  position: absolute;
  left: 34px;
  top: 26px;
  border-left: 24px solid #ffffff;
  border-top: 16px solid transparent;
  border-bottom: 16px solid transparent;
}

.player-status {
  position: absolute;
  left: 18px;
  bottom: 18px;
  padding: 8px 12px;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(15, 23, 42, 0.72);
  font-weight: 800;
  pointer-events: none;
}

.player-shell.is-playing .player-button {
  display: none;
}

.player-shell.is-loading .player-status {
  background: rgba(16, 185, 129, 0.82);
}

.article-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.content-card {
  padding: 28px;
}

.content-card h2 {
  font-size: 28px;
  margin-bottom: 14px;
}

.content-card p {
  margin: 0;
  font-size: 17px;
}

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

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 34px;
}

.footer-logo {
  color: #ffffff;
  margin-bottom: 14px;
}

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

.site-footer p {
  margin: 0;
  max-width: 520px;
}

.footer-links {
  display: grid;
  gap: 8px;
}

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

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

@media (max-width: 1080px) {
  .main-nav,
  .top-search {
    display: none;
  }

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

  .hero-slide,
  .detail-grid,
  .article-grid {
    grid-template-columns: 1fr;
  }

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

  .hero-poster {
    min-height: 380px;
    transform: none;
  }

  .hero-poster img {
    min-height: 380px;
  }

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

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

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

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

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

  .hero-inner {
    min-height: 760px;
    padding-top: 42px;
  }

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

  .hero-slide {
    gap: 24px;
  }

  .hero-poster {
    min-height: 280px;
  }

  .hero-poster img {
    min-height: 280px;
  }

  .hero p,
  .hero-summary,
  .detail-copy p {
    font-size: 16px;
  }

  .intro-grid,
  .footer-grid,
  .category-grid,
  .category-page-grid,
  .movie-grid,
  .compact-grid,
  .library-grid,
  .filter-controls {
    grid-template-columns: 1fr;
  }

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

  .section-title,
  .filter-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .detail-grid {
    gap: 26px;
  }
}
