: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;
  --teal-500: #14b8a6;
  --blue-600: #2563eb;
  --rose-600: #e11d48;
  --shadow-lg: 0 20px 40px rgba(15, 23, 42, 0.14);
  --shadow-md: 0 12px 26px rgba(15, 23, 42, 0.11);
  --radius-xl: 24px;
  --radius-lg: 18px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

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

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

button,
input {
  font: inherit;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  color: #ffffff;
  background: linear-gradient(90deg, #0f172a, #1e293b 52%, #0f172a);
  box-shadow: 0 12px 30px rgba(2, 6, 23, 0.22);
}

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

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
}

.brand-mark {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  color: #ffffff;
  background: linear-gradient(135deg, var(--emerald-500), var(--teal-500));
  border-radius: 14px;
  box-shadow: 0 8px 18px rgba(16, 185, 129, 0.35);
}

.brand-copy {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.brand-name {
  font-size: clamp(20px, 3vw, 27px);
  letter-spacing: 0.03em;
}

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

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 24px;
}

.nav-link,
.mobile-link {
  color: #e2e8f0;
  font-weight: 700;
  transition: color 0.2s ease, background 0.2s ease;
}

.nav-link:hover,
.nav-link.active,
.mobile-link:hover,
.mobile-link.active {
  color: #6ee7b7;
}

.menu-button {
  display: none;
  width: 42px;
  height: 42px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
  border: 0;
  border-radius: 12px;
}

.menu-button span {
  width: 20px;
  height: 2px;
  background: #ffffff;
  border-radius: 99px;
}

.mobile-nav {
  display: none;
  flex-direction: column;
  gap: 8px;
  padding: 0 16px 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

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

.mobile-link {
  padding: 10px 14px;
  border-radius: 12px;
}

.mobile-link:hover,
.mobile-link.active {
  background: rgba(255, 255, 255, 0.08);
}

.hero {
  position: relative;
  min-height: 78vh;
  overflow: hidden;
  color: #ffffff;
}

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

.hero-panel {
  position: relative;
  overflow: hidden;
  background-position: center;
  background-size: cover;
  transform: scale(1.02);
  transition: transform 0.7s ease, filter 0.7s ease;
}

.hero-panel:hover {
  transform: scale(1.08);
  filter: saturate(1.12);
}

.hero-panel span {
  position: absolute;
  right: 18px;
  bottom: 18px;
  z-index: 2;
  max-width: calc(100% - 36px);
  padding: 8px 12px;
  color: #ffffff;
  background: rgba(15, 23, 42, 0.58);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  backdrop-filter: blur(12px);
  font-size: 13px;
  font-weight: 700;
}

.hero-panel::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(180deg, rgba(2, 6, 23, 0.18), rgba(2, 6, 23, 0.74));
}

.hero-shade {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 30% 26%, rgba(16, 185, 129, 0.28), transparent 38%),
    linear-gradient(180deg, rgba(2, 6, 23, 0.18), rgba(2, 6, 23, 0.74));
}

.hero-content {
  position: relative;
  z-index: 2;
  display: grid;
  min-height: 78vh;
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.78fr);
  gap: 42px;
  align-items: center;
  padding: 70px 0;
}

.hero-copy h1 {
  max-width: 850px;
  margin: 0 0 24px;
  font-size: clamp(38px, 6vw, 78px);
  line-height: 1.08;
  letter-spacing: -0.06em;
  text-shadow: 0 18px 40px rgba(0, 0, 0, 0.32);
}

.hero-copy p {
  max-width: 720px;
  margin: 0 0 30px;
  color: #e2e8f0;
  font-size: clamp(17px, 2.3vw, 24px);
}

.hero-search-bar {
  display: flex;
  width: min(660px, 100%);
  overflow: hidden;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 999px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.16);
  backdrop-filter: blur(16px);
}

.hero-search-bar input {
  flex: 1;
  min-width: 0;
  padding: 16px 22px;
  color: #ffffff;
  background: transparent;
  border: 0;
  outline: 0;
}

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

.hero-search-bar a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 26px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--emerald-600), var(--teal-500));
  font-weight: 800;
}

.hero-feature {
  position: relative;
  min-height: 360px;
  padding: 26px;
  background: rgba(15, 23, 42, 0.48);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius-xl);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(18px);
}

.hero-slide {
  display: none;
  animation: fadeUp 0.45s ease both;
}

.hero-slide.active {
  display: block;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  margin-bottom: 14px;
  padding: 6px 12px;
  color: #a7f3d0;
  background: rgba(16, 185, 129, 0.16);
  border: 1px solid rgba(110, 231, 183, 0.22);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
}

.hero-slide h2 {
  margin: 0 0 16px;
  font-size: clamp(28px, 4vw, 46px);
  line-height: 1.15;
}

.hero-slide p {
  min-height: 88px;
  margin: 0 0 24px;
  color: #dbeafe;
  font-size: 17px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.primary-button,
.ghost-button,
.rank-button,
.section-more {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 20px;
  border-radius: 999px;
  font-weight: 800;
  transition: transform 0.22s ease, box-shadow 0.22s ease, background 0.22s ease;
}

.primary-button,
.rank-button {
  color: #ffffff;
  background: linear-gradient(135deg, var(--emerald-600), var(--teal-500));
  box-shadow: 0 14px 30px rgba(5, 150, 105, 0.28);
}

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

.primary-button:hover,
.ghost-button:hover,
.rank-button:hover,
.section-more:hover {
  transform: translateY(-2px);
}

.hero-dots {
  position: absolute;
  right: 26px;
  bottom: 26px;
  display: flex;
  gap: 8px;
}

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

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

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

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

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto 34px;
}

.section-heading h2 {
  margin: 0 0 8px;
  color: var(--slate-800);
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.16;
}

.section-heading p {
  margin: 0;
  color: var(--slate-500);
}

.section-more {
  color: var(--emerald-700);
  background: #ecfdf5;
}

.movie-grid {
  display: grid;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  gap: 22px;
}

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

.movie-grid.six-col {
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

.movie-card {
  overflow: hidden;
  background: #ffffff;
  border: 1px solid rgba(226, 232, 240, 0.92);
  border-radius: 18px;
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.08);
  transition: transform 0.28s ease, box-shadow 0.28s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.card-media {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #0f172a;
}

.card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.55s ease, filter 0.55s ease;
}

.movie-card:hover .card-media img,
.rank-item:hover .rank-cover img {
  transform: scale(1.08);
  filter: brightness(0.82);
}

.play-badge {
  position: absolute;
  left: 50%;
  top: 50%;
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  color: #ffffff;
  background: rgba(5, 150, 105, 0.88);
  border-radius: 999px;
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.86);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.movie-card:hover .play-badge,
.rank-item:hover .play-badge {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.year-badge {
  position: absolute;
  right: 10px;
  top: 10px;
  padding: 4px 8px;
  color: #ffffff;
  background: var(--emerald-600);
  border-radius: 7px;
  font-size: 12px;
  font-weight: 800;
}

.card-body {
  padding: 16px;
}

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

.card-body h3 a:hover,
.rank-info h2 a:hover {
  color: var(--emerald-700);
}

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

.card-meta,
.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--slate-500);
  font-size: 13px;
}

.card-meta span,
.detail-meta span {
  padding: 5px 9px;
  background: var(--slate-100);
  border-radius: 999px;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 12px;
}

.tag-row span {
  padding: 4px 8px;
  color: var(--emerald-700);
  background: #ecfdf5;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}

.page-hero {
  color: #ffffff;
  padding: 74px 0;
}

.page-hero.emerald {
  background: linear-gradient(135deg, #059669, #14b8a6);
}

.page-hero.blue {
  background: linear-gradient(135deg, #2563eb, #06b6d4);
}

.page-hero.rose {
  background: linear-gradient(135deg, #e11d48, #f97316);
}

.page-hero h1 {
  margin: 0 0 14px;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.1;
}

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

.category-grid {
  display: grid;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.category-card {
  position: relative;
  min-height: 230px;
  overflow: hidden;
  color: #ffffff;
  background-position: center;
  background-size: cover;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md);
  transition: transform 0.28s ease, box-shadow 0.28s ease;
}

.category-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.category-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.18), rgba(15, 23, 42, 0.82));
}

.category-content {
  position: absolute;
  inset: auto 22px 22px 22px;
}

.category-content strong {
  display: block;
  margin-bottom: 8px;
  font-size: 26px;
}

.category-content em {
  color: #dbeafe;
  font-style: normal;
}

.filter-panel {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto 28px;
  padding: 18px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-xl);
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
}

.search-field input {
  width: 100%;
  padding: 15px 18px;
  border: 1px solid #cbd5e1;
  border-radius: 16px;
  outline: 0;
}

.search-field input:focus {
  border-color: var(--emerald-500);
  box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.14);
}

.quick-links,
.category-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.filter-chip,
.category-strip a,
.category-links a {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 14px;
  color: var(--slate-700);
  background: var(--slate-100);
  border: 0;
  border-radius: 999px;
  font-weight: 700;
}

.filter-chip.active,
.filter-chip:hover,
.category-strip a:hover,
.category-links a:hover {
  color: #ffffff;
  background: var(--emerald-600);
}

.empty-state {
  display: none;
  width: min(1180px, calc(100% - 32px));
  margin: 32px auto 0;
  padding: 28px;
  text-align: center;
  color: var(--slate-500);
  background: #ffffff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

.empty-state.show {
  display: block;
}

.rank-list {
  display: grid;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  gap: 14px;
}

.rank-item {
  display: grid;
  grid-template-columns: 170px 90px minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  padding: 14px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 22px;
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.07);
}

.rank-cover {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #0f172a;
  border-radius: 16px;
}

.rank-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease, filter 0.45s ease;
}

.rank-number {
  color: var(--rose-600);
  font-size: 20px;
  font-weight: 900;
}

.rank-info h2 {
  margin: 0 0 8px;
  font-size: 21px;
  line-height: 1.25;
}

.rank-info p {
  margin: 0 0 10px;
  color: var(--slate-500);
}

.detail-shell {
  padding: 42px 0 76px;
}

.detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(300px, 0.86fr);
  gap: 28px;
}

.player-card {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: #000000;
  border-radius: var(--radius-xl);
  box-shadow: 0 28px 70px rgba(2, 6, 23, 0.28);
}

.movie-player {
  width: 100%;
  height: 100%;
  background: #000000;
}

.player-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: radial-gradient(circle, rgba(15, 23, 42, 0.08), rgba(2, 6, 23, 0.34));
  pointer-events: none;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

.player-overlay.hide {
  opacity: 0;
  visibility: hidden;
}

.player-start {
  display: grid;
  width: 82px;
  height: 82px;
  place-items: center;
  color: #ffffff;
  background: linear-gradient(135deg, var(--emerald-600), var(--teal-500));
  border: 0;
  border-radius: 999px;
  box-shadow: 0 18px 45px rgba(5, 150, 105, 0.34);
  pointer-events: auto;
  transition: transform 0.2s ease;
}

.player-start:hover {
  transform: scale(1.08);
}

.detail-card,
.side-card {
  margin-top: 24px;
  padding: 28px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md);
}

.detail-card h1 {
  margin: 0 0 16px;
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1.15;
}

.lead-text {
  margin: 24px 0;
  padding: 18px 20px;
  color: var(--slate-700);
  background: #f8fafc;
  border-left: 5px solid var(--emerald-600);
  border-radius: 14px;
  font-size: 18px;
}

.detail-block {
  margin-top: 24px;
}

.detail-block h2,
.side-card h2 {
  margin: 0 0 12px;
  color: var(--slate-800);
  font-size: 22px;
}

.detail-block p {
  margin: 0;
  color: var(--slate-600);
}

.detail-tags {
  margin-top: 0;
}

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

.detail-side {
  align-self: start;
  position: sticky;
  top: 102px;
}

.side-card {
  margin-top: 0;
}

.side-list {
  width: 100%;
  grid-template-columns: 1fr;
  gap: 14px;
}

.side-list .movie-card {
  display: grid;
  grid-template-columns: 130px minmax(0, 1fr);
  box-shadow: none;
}

.side-list .card-media {
  height: 100%;
  min-height: 86px;
  aspect-ratio: auto;
}

.side-list .card-body {
  padding: 12px;
}

.side-list .tag-row,
.side-list .card-body p {
  display: none;
}

.site-footer {
  color: #cbd5e1;
  background: linear-gradient(180deg, #1e293b, #0f172a);
}

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

.footer-brand {
  color: #ffffff;
  font-size: 21px;
}

.site-footer p {
  max-width: 460px;
  color: #94a3b8;
}

.site-footer h3 {
  margin: 0 0 14px;
  color: #ffffff;
}

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

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

.footer-bottom {
  padding: 18px 16px;
  text-align: center;
  color: #64748b;
  border-top: 1px solid rgba(148, 163, 184, 0.16);
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 1100px) {
  .movie-grid.six-col {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

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

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

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

  .detail-side {
    position: static;
  }
}

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

  .menu-button {
    display: flex;
  }

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

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

  .hero-panel:not(:first-child) {
    display: none;
  }

  .hero-content {
    grid-template-columns: 1fr;
    gap: 28px;
    padding: 48px 0;
  }

  .hero-feature {
    min-height: 300px;
  }

  .movie-grid.six-col,
  .movie-grid.four-col {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

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

  .rank-number,
  .rank-button {
    grid-column: 2;
  }

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

@media (max-width: 560px) {
  .brand-subtitle {
    display: none;
  }

  .brand-mark {
    width: 36px;
    height: 36px;
  }

  .hero {
    min-height: auto;
  }

  .hero-content {
    min-height: 680px;
  }

  .hero-search-bar {
    flex-direction: column;
    border-radius: 22px;
  }

  .hero-search-bar a {
    min-height: 48px;
  }

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

  .movie-grid.six-col,
  .movie-grid.four-col,
  .category-grid {
    grid-template-columns: 1fr;
  }

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

  .rank-number,
  .rank-button {
    grid-column: auto;
  }

  .side-list .movie-card {
    grid-template-columns: 1fr;
  }
}
