:root {
  --slate-950: #020617;
  --slate-900: #0f172a;
  --slate-800: #1e293b;
  --slate-700: #334155;
  --slate-600: #475569;
  --slate-500: #64748b;
  --slate-100: #f1f5f9;
  --slate-50: #f8fafc;
  --emerald-700: #047857;
  --emerald-600: #059669;
  --emerald-500: #10b981;
  --emerald-400: #34d399;
  --rose-600: #e11d48;
  --blue-600: #2563eb;
  --white: #ffffff;
  --shadow-soft: 0 18px 50px rgba(15, 23, 42, 0.12);
  --shadow-card: 0 12px 32px rgba(15, 23, 42, 0.10);
  --radius-lg: 24px;
  --radius-md: 18px;
  --radius-sm: 12px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  color: var(--slate-800);
  background: linear-gradient(180deg, var(--slate-50), var(--white));
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  color: var(--white);
  background: linear-gradient(90deg, var(--slate-900), var(--slate-800));
  box-shadow: 0 14px 28px rgba(2, 6, 23, 0.22);
}

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

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 78px;
  gap: 22px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 210px;
}

.logo-mark {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  color: var(--slate-900);
  background: linear-gradient(135deg, var(--emerald-400), var(--emerald-600));
  font-weight: 900;
  box-shadow: 0 12px 24px rgba(16, 185, 129, 0.32);
}

.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.logo-title {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.logo-subtitle {
  margin-top: 4px;
  color: #cbd5e1;
  font-size: 12px;
}

.primary-nav {
  display: flex;
  align-items: center;
  gap: 18px;
  font-weight: 650;
  white-space: nowrap;
}

.primary-nav a {
  padding: 10px 4px;
  color: #e2e8f0;
  transition: color 0.2s ease, transform 0.2s ease;
}

.primary-nav a:hover {
  color: var(--emerald-400);
  transform: translateY(-1px);
}

.header-search {
  display: flex;
  align-items: center;
  width: min(290px, 28vw);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.header-search input {
  width: 100%;
  min-width: 0;
  border: 0;
  padding: 11px 14px;
  color: var(--white);
  background: transparent;
  outline: 0;
}

.header-search input::placeholder {
  color: #cbd5e1;
}

.header-search button {
  border: 0;
  padding: 11px 14px;
  color: var(--white);
  background: var(--emerald-600);
  cursor: pointer;
}

.mobile-toggle {
  display: none;
  border: 0;
  border-radius: 12px;
  padding: 10px 12px;
  color: var(--white);
  background: rgba(255, 255, 255, 0.10);
  cursor: pointer;
}

.mobile-nav {
  display: none;
  padding: 0 0 16px;
}

.mobile-nav a {
  display: block;
  padding: 12px 14px;
  border-radius: 12px;
  color: #e2e8f0;
}

.mobile-nav a:hover {
  background: rgba(255, 255, 255, 0.10);
}

.hero {
  position: relative;
  min-height: 72vh;
  overflow: hidden;
  background: var(--slate-950);
}

.hero-backdrop {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}

.hero-panel {
  position: relative;
  overflow: hidden;
}

.hero-panel img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.08) contrast(1.04);
  transform: scale(1.02);
  transition: transform 0.7s ease;
}

.hero-panel:hover img {
  transform: scale(1.12);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(180deg, rgba(2, 6, 23, 0.44), rgba(2, 6, 23, 0.22) 42%, rgba(2, 6, 23, 0.72));
}

.hero-content {
  position: relative;
  z-index: 3;
  display: flex;
  min-height: 72vh;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 96px 0;
  color: var(--white);
  text-align: center;
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
  padding: 8px 16px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  color: #d1fae5;
  background: rgba(15, 23, 42, 0.48);
  backdrop-filter: blur(8px);
}

.hero h1 {
  margin: 0;
  max-width: 980px;
  font-size: clamp(40px, 8vw, 86px);
  line-height: 1.02;
  letter-spacing: -0.04em;
}

.hero-lead {
  max-width: 780px;
  margin: 22px auto 30px;
  color: #e2e8f0;
  font-size: clamp(18px, 2.4vw, 26px);
  line-height: 1.75;
}

.hero-actions,
.hero-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
}

.hero-actions {
  margin-bottom: 26px;
}

.hero-links a {
  padding: 9px 14px;
  border: 1px solid rgba(255, 255, 255, 0.20);
  border-radius: 999px;
  color: #ecfeff;
  background: rgba(255, 255, 255, 0.10);
  backdrop-filter: blur(8px);
}

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

.button:hover {
  transform: translateY(-2px) scale(1.02);
}

.button-primary {
  color: var(--white);
  background: var(--emerald-600);
  box-shadow: 0 16px 30px rgba(5, 150, 105, 0.34);
}

.button-primary:hover {
  background: var(--emerald-700);
}

.button-ghost {
  border: 2px solid rgba(255, 255, 255, 0.32);
  color: var(--white);
  background: rgba(255, 255, 255, 0.10);
  backdrop-filter: blur(8px);
}

.hero-focus {
  position: absolute;
  right: 32px;
  bottom: 28px;
  z-index: 4;
  display: grid;
  grid-template-columns: repeat(3, minmax(170px, 1fr));
  gap: 14px;
  width: min(680px, calc(100% - 64px));
}

.hero-focus-card {
  display: flex;
  gap: 12px;
  align-items: center;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 18px;
  padding: 10px;
  color: var(--white);
  background: rgba(15, 23, 42, 0.62);
  box-shadow: 0 20px 44px rgba(2, 6, 23, 0.30);
  backdrop-filter: blur(10px);
}

.hero-focus-card img {
  width: 62px;
  height: 46px;
  border-radius: 12px;
  object-fit: cover;
}

.hero-focus-card strong {
  display: block;
  overflow: hidden;
  font-size: 14px;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.hero-focus-card span {
  display: block;
  margin-top: 3px;
  color: #cbd5e1;
  font-size: 12px;
}

.section {
  padding: 76px 0;
}

.section-white {
  background: var(--white);
}

.section-soft {
  background: linear-gradient(135deg, #f1f5f9, #f8fafc);
}

.section-dark {
  color: var(--white);
  background: linear-gradient(135deg, var(--slate-900), var(--slate-800));
}

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

.section-title {
  margin: 0 0 10px;
  color: var(--slate-800);
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.12;
}

.section-dark .section-title {
  color: var(--white);
}

.section-desc {
  margin: 0;
  color: var(--slate-600);
  line-height: 1.8;
}

.section-dark .section-desc {
  color: #cbd5e1;
}

.more-link {
  color: var(--emerald-700);
  font-weight: 800;
  white-space: nowrap;
}

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

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

.movie-card {
  display: flex;
  min-width: 0;
  flex-direction: column;
  overflow: hidden;
  border-radius: var(--radius-md);
  background: var(--white);
  box-shadow: var(--shadow-card);
  transition: transform 0.24s ease, box-shadow 0.24s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 22px 46px rgba(15, 23, 42, 0.16);
}

.poster {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--slate-900);
}

.poster.tall {
  aspect-ratio: 3 / 4;
}

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

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

.play-glow {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: var(--white);
  font-size: 34px;
  opacity: 0;
  background: rgba(2, 6, 23, 0.40);
  transition: opacity 0.2s ease;
}

.movie-card:hover .play-glow {
  opacity: 1;
}

.badge {
  position: absolute;
  top: 12px;
  right: 12px;
  border-radius: 999px;
  padding: 5px 10px;
  color: var(--white);
  background: var(--emerald-600);
  font-size: 12px;
  font-weight: 800;
}

.card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 16px;
}

.card-body h3 {
  display: -webkit-box;
  min-height: 44px;
  margin: 0 0 8px;
  overflow: hidden;
  color: var(--slate-800);
  font-size: 17px;
  line-height: 1.35;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.movie-card:hover h3 {
  color: var(--emerald-700);
}

.card-body p {
  display: -webkit-box;
  margin: 0 0 14px;
  overflow: hidden;
  color: var(--slate-600);
  font-size: 14px;
  line-height: 1.65;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.card-meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
  color: var(--slate-500);
  font-size: 12px;
}

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

.category-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  padding: 24px;
  color: var(--white);
  background: linear-gradient(135deg, var(--emerald-600), var(--slate-800));
  box-shadow: var(--shadow-card);
  min-height: 186px;
}

.category-card:nth-child(3n + 2) {
  background: linear-gradient(135deg, var(--blue-600), var(--slate-800));
}

.category-card:nth-child(3n) {
  background: linear-gradient(135deg, var(--rose-600), var(--slate-800));
}

.category-card::after {
  content: "";
  position: absolute;
  right: -40px;
  bottom: -40px;
  width: 130px;
  height: 130px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.13);
}

.category-card h3 {
  position: relative;
  z-index: 1;
  margin: 0 0 12px;
  font-size: 24px;
}

.category-card p {
  position: relative;
  z-index: 1;
  margin: 0 0 20px;
  color: rgba(255, 255, 255, 0.86);
  line-height: 1.75;
}

.category-card span {
  position: relative;
  z-index: 1;
  font-weight: 800;
}

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

.rank-item {
  display: grid;
  grid-template-columns: 58px 120px 1fr auto;
  align-items: center;
  gap: 18px;
  border-radius: 18px;
  padding: 12px;
  background: var(--white);
  box-shadow: 0 8px 26px rgba(15, 23, 42, 0.08);
}

.rank-num {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  color: var(--white);
  background: linear-gradient(135deg, var(--emerald-500), var(--emerald-700));
  font-weight: 900;
}

.rank-item img {
  width: 120px;
  height: 72px;
  border-radius: 14px;
  object-fit: cover;
}

.rank-info h3 {
  margin: 0 0 6px;
  font-size: 18px;
}

.rank-info p {
  margin: 0;
  color: var(--slate-600);
  line-height: 1.65;
}

.rank-tag {
  border-radius: 999px;
  padding: 8px 12px;
  color: var(--emerald-700);
  background: #d1fae5;
  font-size: 12px;
  font-weight: 800;
}

.page-hero {
  padding: 74px 0;
  color: var(--white);
  background: radial-gradient(circle at 10% 20%, rgba(16, 185, 129, 0.32), transparent 28%), linear-gradient(135deg, var(--slate-900), var(--slate-800));
}

.page-hero h1 {
  margin: 0 0 16px;
  font-size: clamp(34px, 6vw, 62px);
  letter-spacing: -0.04em;
}

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

.filter-bar {
  display: grid;
  grid-template-columns: 1fr 180px 180px;
  gap: 14px;
  margin-bottom: 30px;
  border-radius: var(--radius-lg);
  padding: 16px;
  background: var(--white);
  box-shadow: var(--shadow-card);
}

.filter-bar input,
.filter-bar select {
  width: 100%;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 13px 14px;
  color: var(--slate-800);
  background: var(--slate-50);
  outline: 0;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 22px;
  color: #d1fae5;
  font-size: 14px;
}

.detail-hero {
  padding: 56px 0 70px;
  color: var(--white);
  background: radial-gradient(circle at 20% 15%, rgba(16, 185, 129, 0.30), transparent 28%), linear-gradient(135deg, var(--slate-950), var(--slate-800));
}

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

.detail-poster {
  overflow: hidden;
  border-radius: 26px;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.38);
}

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

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

.detail-info .intro {
  max-width: 840px;
  margin: 0 0 24px;
  color: #e2e8f0;
  font-size: 18px;
  line-height: 1.85;
}

.meta-pills,
.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.meta-pills span,
.tag-list span {
  border-radius: 999px;
  padding: 8px 12px;
  color: #ecfeff;
  background: rgba(255, 255, 255, 0.12);
  font-size: 13px;
  font-weight: 800;
}

.content-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 28px;
}

.panel {
  border-radius: var(--radius-lg);
  padding: 26px;
  background: var(--white);
  box-shadow: var(--shadow-card);
}

.panel + .panel {
  margin-top: 22px;
}

.panel h2 {
  margin: 0 0 16px;
  color: var(--slate-800);
  font-size: 26px;
}

.panel p {
  margin: 0;
  color: var(--slate-700);
  font-size: 16px;
  line-height: 1.95;
}

.player-box {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: #000;
  box-shadow: 0 24px 54px rgba(2, 6, 23, 0.25);
}

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

.player-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  border: 0;
  color: var(--white);
  background: linear-gradient(180deg, rgba(2, 6, 23, 0.25), rgba(2, 6, 23, 0.66));
  cursor: pointer;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

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

.play-button {
  display: grid;
  place-items: center;
  width: 86px;
  height: 86px;
  border-radius: 50%;
  color: var(--slate-900);
  background: var(--emerald-400);
  box-shadow: 0 0 0 16px rgba(52, 211, 153, 0.16), 0 24px 50px rgba(0, 0, 0, 0.30);
  font-size: 34px;
  transform: translateX(3px);
}

.side-list {
  display: grid;
  gap: 12px;
}

.side-item {
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 12px;
  align-items: center;
  border-radius: 16px;
  padding: 10px;
  background: var(--slate-50);
}

.side-item img {
  width: 92px;
  height: 62px;
  border-radius: 12px;
  object-fit: cover;
}

.side-item strong {
  display: -webkit-box;
  overflow: hidden;
  color: var(--slate-800);
  font-size: 14px;
  line-height: 1.4;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.side-item span {
  display: block;
  margin-top: 5px;
  color: var(--slate-500);
  font-size: 12px;
}

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

.footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 30px;
  padding: 54px 0 34px;
}

.footer-inner h3,
.footer-inner h4 {
  margin: 0 0 14px;
  color: var(--white);
}

.footer-inner p {
  margin: 0;
  color: #94a3b8;
  line-height: 1.8;
}

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

.footer-links a:hover {
  color: var(--emerald-400);
}

.footer-bottom {
  border-top: 1px solid rgba(148, 163, 184, 0.20);
  padding: 20px 0;
  color: #94a3b8;
  font-size: 13px;
}

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

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

  .mobile-toggle {
    display: inline-flex;
  }

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

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

  .content-layout,
  .detail-layout {
    grid-template-columns: 1fr;
  }

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

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

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

  .header-inner {
    min-height: 68px;
  }

  .logo-title {
    font-size: 18px;
  }

  .hero-backdrop {
    grid-template-columns: 1fr;
  }

  .hero-backdrop .hero-panel:nth-child(n + 2) {
    display: none;
  }

  .hero-content {
    min-height: 68vh;
    padding: 74px 0 110px;
  }

  .hero-focus {
    right: 12px;
    bottom: 14px;
    grid-template-columns: 1fr;
    width: calc(100% - 24px);
  }

  .hero-focus-card:nth-child(n + 2) {
    display: none;
  }

  .section {
    padding: 52px 0;
  }

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

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

  .card-body {
    padding: 12px;
  }

  .rank-item {
    grid-template-columns: 42px 88px 1fr;
  }

  .rank-item img {
    width: 88px;
    height: 58px;
  }

  .rank-tag {
    display: none;
  }

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

  .panel {
    padding: 20px;
  }

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

@media (max-width: 480px) {
  .movie-grid,
  .movie-grid.compact {
    grid-template-columns: 1fr;
  }

  .category-grid {
    grid-template-columns: 1fr;
  }
}
