:root {
  --primary-50: #eff6ff;
  --primary-100: #dbeafe;
  --primary-500: #3b82f6;
  --primary-600: #2563eb;
  --primary-700: #1d4ed8;
  --accent-400: #fbbf24;
  --secondary-50: #f8fafc;
  --secondary-100: #f1f5f9;
  --secondary-200: #e2e8f0;
  --secondary-300: #cbd5e1;
  --secondary-400: #94a3b8;
  --secondary-500: #64748b;
  --secondary-600: #475569;
  --secondary-700: #334155;
  --secondary-800: #1e293b;
  --secondary-900: #0f172a;
  --white: #ffffff;
  --radius: 18px;
  --shadow: 0 18px 45px rgba(15, 23, 42, 0.12);
  --soft-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
  font-family: Inter, "PingFang SC", "Microsoft YaHei", system-ui, -apple-system, sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--secondary-50);
  color: var(--secondary-900);
  line-height: 1.65;
}

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

img {
  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: 80;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid rgba(226, 232, 240, 0.85);
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.06);
  backdrop-filter: blur(18px);
}

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

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

.brand-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 12px;
  color: var(--white);
  background: linear-gradient(135deg, var(--primary-500), var(--primary-700));
  box-shadow: 0 8px 18px rgba(37, 99, 235, 0.32);
  font-size: 14px;
}

.brand-text {
  color: var(--secondary-900);
  font-size: 21px;
}

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

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

.nav-link:hover,
.nav-link.active {
  color: var(--primary-700);
  background: var(--primary-50);
}

.header-search {
  display: flex;
  align-items: center;
  gap: 8px;
}

.header-search input,
.mobile-search input,
.inline-search input,
.search-page-box input {
  width: 230px;
  border: 1px solid var(--secondary-300);
  border-radius: 13px;
  padding: 10px 13px;
  outline: none;
  color: var(--secondary-800);
  background: var(--white);
  transition: border 0.2s ease, box-shadow 0.2s ease;
}

.header-search input:focus,
.mobile-search input:focus,
.inline-search input:focus,
.search-page-box input:focus {
  border-color: var(--primary-500);
  box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.13);
}

.header-search button,
.mobile-search button {
  border: 0;
  color: var(--white);
  background: var(--primary-600);
  border-radius: 12px;
  padding: 10px 14px;
  cursor: pointer;
  font-weight: 700;
}

.menu-toggle {
  display: none;
  border: 0;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: var(--secondary-100);
  color: var(--secondary-800);
  cursor: pointer;
  font-size: 22px;
}

.mobile-panel {
  display: none;
  padding: 14px 16px 18px;
  border-top: 1px solid var(--secondary-200);
  background: var(--white);
}

.mobile-panel.is-open {
  display: block;
}

.mobile-search {
  display: flex;
  gap: 8px;
  margin-bottom: 14px;
}

.mobile-search input {
  width: 100%;
}

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

.hero {
  position: relative;
  min-height: 76vh;
  overflow: hidden;
  background: var(--secondary-900);
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.7s ease;
}

.hero-slide.is-active {
  opacity: 1;
  pointer-events: auto;
}

.hero-image,
.detail-backdrop img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(2, 6, 23, 0.92), rgba(15, 23, 42, 0.60), rgba(15, 23, 42, 0.12)),
              linear-gradient(0deg, rgba(2, 6, 23, 0.95), rgba(2, 6, 23, 0.10) 42%, rgba(2, 6, 23, 0.20));
}

.hero-content {
  position: relative;
  z-index: 2;
  min-height: 76vh;
  display: flex;
  align-items: flex-end;
  padding: 120px 0 82px;
}

.hero-copy {
  width: min(720px, 100%);
  color: var(--white);
}

.hero-kicker,
.section-kicker {
  display: inline-flex;
  align-items: center;
  margin-bottom: 12px;
  color: var(--accent-400);
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 13px;
}

.hero h1 {
  margin: 0 0 18px;
  font-size: clamp(42px, 8vw, 72px);
  line-height: 1.05;
  letter-spacing: -0.045em;
}

.hero p {
  margin: 0 0 24px;
  max-width: 680px;
  color: #e2e8f0;
  font-size: clamp(17px, 2.2vw, 22px);
}

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

.tag {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 5px 10px;
  background: var(--primary-50);
  color: var(--primary-700);
  font-size: 12px;
  font-weight: 700;
}

.tag-light {
  color: var(--white);
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.28);
  backdrop-filter: blur(10px);
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 22px;
  border-radius: 14px;
  font-weight: 800;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

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

.btn-primary {
  color: var(--white);
  background: var(--primary-600);
  box-shadow: 0 16px 34px rgba(37, 99, 235, 0.32);
}

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

.btn-glass {
  color: var(--white);
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.28);
  backdrop-filter: blur(12px);
}

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

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

.hero-dot.is-active {
  background: var(--white);
}

.section {
  padding: 70px 0;
}

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

.section-heading h2,
.panel-heading h2 {
  margin: 0;
  font-size: clamp(27px, 4vw, 38px);
  line-height: 1.16;
  letter-spacing: -0.03em;
}

.section-heading p {
  margin: 8px 0 0;
  color: var(--secondary-600);
}

.section-more,
.text-link,
.panel-link {
  color: var(--primary-700);
  font-weight: 800;
}

.movie-grid {
  display: grid;
  gap: 24px;
}

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

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

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

.movie-card {
  overflow: hidden;
  background: var(--white);
  border: 1px solid rgba(226, 232, 240, 0.92);
  border-radius: var(--radius);
  box-shadow: var(--soft-shadow);
  transition: transform 0.24s ease, box-shadow 0.24s ease, border-color 0.24s ease;
}

.movie-card:hover {
  transform: translateY(-5px);
  border-color: rgba(59, 130, 246, 0.32);
  box-shadow: var(--shadow);
}

.poster {
  position: relative;
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: linear-gradient(135deg, var(--secondary-800), var(--secondary-900));
}

.poster img,
.rank-cover img,
.ranking-poster img,
.detail-poster img,
.category-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

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

.poster-badge {
  position: absolute;
  right: 12px;
  top: 12px;
  padding: 4px 9px;
  border-radius: 999px;
  color: var(--white);
  background: rgba(15, 23, 42, 0.70);
  font-size: 12px;
  font-weight: 800;
  backdrop-filter: blur(8px);
}

.movie-card-body {
  padding: 18px;
}

.movie-card h2 {
  margin: 8px 0 8px;
  font-size: 20px;
  line-height: 1.3;
}

.movie-card h2 a:hover,
.ranking-card h2 a:hover,
.category-card-large h2 a:hover {
  color: var(--primary-700);
}

.movie-card p {
  margin: 0 0 14px;
  color: var(--secondary-600);
  font-size: 14px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.movie-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--secondary-500);
  font-size: 13px;
  font-weight: 700;
}

.movie-meta span {
  padding: 3px 8px;
  border-radius: 999px;
  background: var(--secondary-100);
}

.movie-card.horizontal {
  display: grid;
  grid-template-columns: 42% 1fr;
}

.movie-card.horizontal .poster {
  height: 100%;
  min-height: 220px;
  aspect-ratio: auto;
}

.gradient-section {
  background: linear-gradient(135deg, var(--primary-50), var(--primary-100));
}

.dark-section {
  background: var(--secondary-900);
  color: var(--white);
}

.dark-section .section-heading p,
.dark-section .movie-card p {
  color: var(--secondary-400);
}

.dark-section .movie-card {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.12);
  color: var(--white);
}

.split-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 32px;
}

.ranking-panel,
.content-card,
.category-card-large,
.ranking-card {
  background: var(--white);
  border: 1px solid rgba(226, 232, 240, 0.92);
  border-radius: var(--radius);
  box-shadow: var(--soft-shadow);
}

.ranking-panel {
  position: sticky;
  top: 92px;
  align-self: start;
  padding: 24px;
}

.rank-list {
  display: grid;
  gap: 12px;
  margin: 18px 0;
}

.rank-row {
  display: grid;
  grid-template-columns: 74px 1fr;
  gap: 12px;
  align-items: center;
  padding: 8px;
  border-radius: 14px;
  transition: background 0.2s ease;
}

.rank-row:hover {
  background: var(--primary-50);
}

.rank-cover {
  display: block;
  height: 52px;
  overflow: hidden;
  border-radius: 12px;
  background: var(--secondary-800);
}

.rank-info strong,
.rank-info em {
  display: block;
}

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

.rank-info em {
  color: var(--secondary-500);
  font-size: 12px;
  font-style: normal;
}

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

.category-tile {
  min-height: 150px;
  padding: 22px;
  border-radius: var(--radius);
  color: var(--white);
  background: linear-gradient(135deg, var(--primary-600), var(--secondary-900));
  box-shadow: var(--soft-shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.category-tile:nth-child(even) {
  background: linear-gradient(135deg, #0f172a, #334155);
}

.category-tile:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.category-tile span,
.category-tile em {
  display: block;
}

.category-tile span {
  margin-bottom: 10px;
  font-size: 21px;
  font-weight: 900;
}

.category-tile em {
  color: rgba(255, 255, 255, 0.78);
  font-style: normal;
  font-size: 13px;
}

.page-hero {
  position: relative;
  padding: 78px 0 56px;
  color: var(--white);
  background: radial-gradient(circle at top left, rgba(59, 130, 246, 0.45), transparent 32%), linear-gradient(135deg, var(--secondary-900), #1e3a8a);
}

.page-hero.slim {
  padding: 70px 0 48px;
}

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

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

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 22px;
  color: rgba(255, 255, 255, 0.80);
  font-size: 14px;
}

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

.inline-search,
.search-page-box {
  margin-top: 24px;
}

.inline-search input,
.search-page-box input {
  width: min(640px, 100%);
  padding: 14px 16px;
}

.category-list-large {
  display: grid;
  gap: 24px;
}

.category-card-large {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 24px;
  padding: 22px;
  align-items: center;
}

.category-preview {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

.category-preview span {
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-radius: 13px;
  background: var(--secondary-800);
}

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

.category-card-large p {
  color: var(--secondary-600);
  margin: 0 0 14px;
}

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

.ranking-card {
  display: grid;
  grid-template-columns: 58px 190px 1fr;
  gap: 20px;
  padding: 18px;
  align-items: center;
}

.ranking-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 16px;
  color: var(--white);
  background: linear-gradient(135deg, var(--primary-500), var(--primary-700));
  font-weight: 900;
  font-size: 20px;
}

.ranking-poster {
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-radius: 15px;
  background: var(--secondary-900);
}

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

.ranking-card p {
  margin: 0 0 12px;
  color: var(--secondary-600);
}

.detail-hero {
  position: relative;
  overflow: hidden;
  color: var(--white);
  background: var(--secondary-900);
}

.detail-backdrop {
  position: absolute;
  inset: 0;
  opacity: 0.46;
  filter: blur(2px);
}

.detail-backdrop div {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(2, 6, 23, 0.98), rgba(15, 23, 42, 0.72)), linear-gradient(0deg, var(--secondary-900), transparent);
}

.detail-top {
  position: relative;
  z-index: 2;
  padding: 66px 0 70px;
}

.detail-grid {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 34px;
  align-items: end;
}

.detail-poster {
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 24px;
  aspect-ratio: 3 / 4;
  background: var(--secondary-800);
  box-shadow: 0 28px 60px rgba(2, 6, 23, 0.45);
}

.detail-copy h1 {
  margin: 0 0 18px;
  font-size: clamp(38px, 7vw, 70px);
  line-height: 1.08;
  letter-spacing: -0.045em;
}

.detail-one-line {
  max-width: 820px;
  margin: 0 0 20px;
  color: #e2e8f0;
  font-size: 20px;
}

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 18px;
}

.detail-meta span {
  padding: 7px 11px;
  border-radius: 999px;
  color: var(--white);
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.20);
}

.tag-row.large .tag {
  font-size: 13px;
  padding: 6px 12px;
}

.player-block {
  padding-bottom: 40px;
}

.player-shell {
  position: relative;
  overflow: hidden;
  border-radius: 26px;
  background: #020617;
  box-shadow: var(--shadow);
  aspect-ratio: 16 / 9;
}

.player-shell video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #020617;
}

.play-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  border: 0;
  color: var(--white);
  background: radial-gradient(circle, rgba(37, 99, 235, 0.20), rgba(2, 6, 23, 0.62));
  cursor: pointer;
  transition: opacity 0.24s ease, visibility 0.24s ease;
}

.play-overlay span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 84px;
  height: 84px;
  border-radius: 50%;
  background: var(--primary-600);
  box-shadow: 0 20px 45px rgba(37, 99, 235, 0.45);
  font-size: 34px;
  padding-left: 6px;
}

.play-overlay strong {
  font-size: 20px;
}

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

.detail-content {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  padding-top: 34px;
}

.content-card {
  padding: 26px;
}

.content-card h2 {
  margin: 0 0 12px;
  font-size: 26px;
}

.content-card p {
  margin: 0;
  color: var(--secondary-700);
}

.site-footer {
  margin-top: 40px;
  color: var(--secondary-300);
  background: var(--secondary-900);
}

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

.footer-brand {
  color: var(--white);
  margin-bottom: 14px;
}

.footer-about p {
  max-width: 560px;
  margin: 0;
  color: var(--secondary-400);
}

.site-footer h2 {
  margin: 0 0 12px;
  color: var(--white);
  font-size: 18px;
}

.site-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

.site-footer a:hover {
  color: var(--accent-400);
}

.footer-bottom {
  border-top: 1px solid rgba(148, 163, 184, 0.16);
  padding: 18px 16px 22px;
  text-align: center;
  color: var(--secondary-500);
  font-size: 13px;
}

.is-hidden-by-filter {
  display: none !important;
}

.empty-results {
  grid-column: 1 / -1;
  padding: 36px;
  border-radius: var(--radius);
  background: var(--white);
  text-align: center;
  color: var(--secondary-600);
  box-shadow: var(--soft-shadow);
}

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

  .menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-left: auto;
  }

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

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

  .ranking-panel {
    position: static;
  }

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

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

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

  .brand-text {
    font-size: 18px;
  }

  .hero,
  .hero-content {
    min-height: 72vh;
  }

  .hero-content {
    padding: 96px 0 70px;
  }

  .section {
    padding: 46px 0;
  }

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

  .four-cols,
  .three-cols,
  .two-cols,
  .category-grid {
    grid-template-columns: 1fr;
  }

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

  .movie-card.horizontal .poster {
    min-height: auto;
    aspect-ratio: 16 / 10;
  }

  .category-card-large,
  .ranking-card,
  .detail-grid {
    grid-template-columns: 1fr;
  }

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

  .ranking-card {
    gap: 14px;
  }

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

  .detail-poster {
    width: min(250px, 78vw);
  }

  .detail-top {
    padding: 44px 0 52px;
  }

  .player-shell {
    border-radius: 18px;
  }

  .play-overlay span {
    width: 68px;
    height: 68px;
    font-size: 28px;
  }
}
