:root {
  --bg: #f8fafc;
  --panel: #ffffff;
  --text: #0f172a;
  --muted: #64748b;
  --soft: #e2e8f0;
  --brand: #334155;
  --brand-dark: #0f172a;
  --accent: #f59e0b;
  --shadow: 0 22px 60px rgba(15, 23, 42, 0.16);
  --radius: 22px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background: var(--bg);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "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;
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid rgba(226, 232, 240, 0.9);
  backdrop-filter: blur(18px);
}

.header-inner {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  height: 72px;
  display: flex;
  align-items: center;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: max-content;
  font-weight: 900;
  letter-spacing: -0.02em;
}

.brand-mark {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  color: #ffffff;
  border-radius: 12px;
  background: linear-gradient(135deg, #0f172a, #475569);
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.22);
}

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

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

.nav-link {
  color: #475569;
  font-size: 15px;
  font-weight: 700;
  transition: color 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
  color: #0f172a;
}

.header-search {
  display: flex;
  align-items: center;
  width: 280px;
  border: 1px solid var(--soft);
  border-radius: 999px;
  background: #ffffff;
  overflow: hidden;
}

.header-search input {
  width: 100%;
  border: 0;
  outline: 0;
  padding: 10px 4px 10px 16px;
  background: transparent;
  color: var(--text);
}

.header-search button,
.wide-search button {
  border: 0;
  color: #ffffff;
  background: #0f172a;
  padding: 10px 16px;
  font-weight: 800;
  cursor: pointer;
}

.menu-button {
  display: none;
  border: 0;
  background: #0f172a;
  color: #ffffff;
  border-radius: 12px;
  padding: 8px 12px;
}

.mobile-panel {
  display: none;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto 16px;
  padding: 16px;
  border: 1px solid var(--soft);
  border-radius: 18px;
  background: #ffffff;
  box-shadow: var(--shadow);
}

.mobile-panel a {
  display: block;
  padding: 10px 0;
  color: #334155;
  font-weight: 800;
}

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

.hero {
  position: relative;
  min-height: 620px;
  overflow: hidden;
  background: radial-gradient(circle at top left, #64748b, #0f172a 56%, #020617);
}

.hero-slider {
  position: relative;
  min-height: 620px;
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  align-items: center;
  gap: 54px;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  left: 50%;
  transform: translateX(-50%);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}

.hero-slide.active {
  opacity: 1;
  visibility: visible;
}

.hero-backdrop {
  position: fixed;
  inset: 0;
  background-image: linear-gradient(90deg, rgba(2, 6, 23, 0.94) 0%, rgba(15, 23, 42, 0.78) 45%, rgba(15, 23, 42, 0.42) 100%), var(--hero-image);
  background-size: cover;
  background-position: center;
  filter: saturate(1.1);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 60px 0 120px;
  color: #ffffff;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 800px;
  margin: 0 0 18px;
  font-size: clamp(34px, 5vw, 62px);
  line-height: 1.08;
  letter-spacing: -0.06em;
}

.hero h2 {
  margin: 0 0 12px;
  font-size: clamp(24px, 3vw, 42px);
  letter-spacing: -0.04em;
}

.hero p {
  max-width: 720px;
  margin: 0 0 24px;
  color: #e2e8f0;
  font-size: 18px;
}

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

.hero-tags span,
.tag-row span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 5px 10px;
  border-radius: 999px;
  color: #334155;
  background: #f1f5f9;
  font-size: 12px;
  font-weight: 800;
}

.hero-tags span {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.22);
}

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

.primary-button,
.ghost-button,
.section-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 20px;
  border-radius: 14px;
  font-weight: 900;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.primary-button {
  color: #0f172a;
  background: #ffffff;
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.18);
}

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

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

.hero-poster {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 360px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 30px;
  overflow: hidden;
  box-shadow: 0 35px 80px rgba(0, 0, 0, 0.38);
}

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

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

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

.hero-dot.active {
  width: 32px;
  background: #ffffff;
}

.hero-focus {
  position: relative;
  z-index: 5;
  margin-top: -80px;
}

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

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

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

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

.poster-link {
  position: relative;
  display: block;
  overflow: hidden;
  background: #0f172a;
}

.poster-link img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  transition: transform 0.7s ease;
}

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

.poster-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(2, 6, 23, 0.72), transparent 62%);
}

.play-pill {
  position: absolute;
  left: 14px;
  bottom: 14px;
  color: #ffffff;
  background: rgba(15, 23, 42, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  padding: 7px 12px;
  font-size: 12px;
  font-weight: 900;
  backdrop-filter: blur(12px);
}

.rank-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  color: #0f172a;
  background: #fbbf24;
  border-radius: 12px;
  font-size: 14px;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.22);
}

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

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

.movie-card h3 a:hover {
  color: #475569;
}

.meta-line,
.movie-desc,
.section-head p,
.category-card-body p,
.page-hero p,
.detail-lead,
.content-card p,
.site-footer p {
  color: var(--muted);
}

.meta-line {
  margin: 0 0 10px;
  font-size: 13px;
  font-weight: 700;
}

.movie-desc {
  min-height: 48px;
  margin: 0 0 14px;
  font-size: 14px;
}

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

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

.section-head h2 {
  margin: 0 0 10px;
  font-size: clamp(26px, 3vw, 40px);
  line-height: 1.15;
  letter-spacing: -0.04em;
}

.section-head p {
  max-width: 680px;
  margin: 0;
}

.section-link {
  color: #ffffff;
  background: #0f172a;
}

.home-search-panel {
  margin-top: 36px;
}

.wide-search {
  display: flex;
  overflow: hidden;
  border: 1px solid rgba(203, 213, 225, 0.94);
  border-radius: 20px;
  background: #ffffff;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.08);
}

.wide-search input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  padding: 18px 20px;
  color: var(--text);
  background: transparent;
}

.wide-search button {
  padding: 0 28px;
}

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

.category-tile {
  position: relative;
  min-height: 180px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 8px;
  padding: 18px;
  color: #ffffff;
  border-radius: 22px;
  overflow: hidden;
  background-image: linear-gradient(to top, rgba(2, 6, 23, 0.9), rgba(2, 6, 23, 0.22)), var(--tile-image);
  background-size: cover;
  background-position: center;
  box-shadow: 0 16px 38px rgba(15, 23, 42, 0.16);
}

.category-tile span {
  font-size: 20px;
  font-weight: 900;
}

.category-tile strong {
  font-size: 13px;
  color: #cbd5e1;
}

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

.rank-list .movie-card {
  display: grid;
  grid-template-columns: 160px minmax(0, 1fr);
}

.rank-list .poster-link img {
  height: 100%;
  aspect-ratio: auto;
}

.page-main {
  min-height: 70vh;
}

.page-hero {
  position: relative;
  color: #ffffff;
  background: radial-gradient(circle at top left, #475569, #0f172a 65%, #020617);
  overflow: hidden;
}

.compact-hero {
  padding: 78px 0;
}

.page-hero h1 {
  max-width: 860px;
  margin: 0 0 16px;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.08;
  letter-spacing: -0.05em;
}

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

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  align-items: center;
  margin-top: 24px;
  color: #cbd5e1;
  font-size: 14px;
  font-weight: 800;
}

.breadcrumb a:hover {
  color: #ffffff;
}

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

.category-card {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  overflow: hidden;
  background: #ffffff;
  border: 1px solid var(--soft);
  border-radius: 24px;
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.08);
}

.category-card-cover {
  min-height: 220px;
  display: flex;
  align-items: flex-end;
  padding: 18px;
  color: #ffffff;
  background-image: linear-gradient(to top, rgba(2, 6, 23, 0.86), rgba(2, 6, 23, 0.16)), var(--category-image);
  background-size: cover;
  background-position: center;
}

.category-card-cover span {
  font-size: 24px;
  font-weight: 900;
}

.category-card-body {
  padding: 24px;
}

.category-card-body h2 {
  margin: 0 0 10px;
  font-size: 28px;
}

.category-preview-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.category-preview-links a {
  padding: 7px 11px;
  border-radius: 999px;
  background: #f1f5f9;
  color: #334155;
  font-size: 13px;
  font-weight: 800;
}

.filter-panel,
.search-page-panel {
  margin-top: 34px;
  padding: 20px;
  border: 1px solid var(--soft);
  border-radius: 24px;
  background: #ffffff;
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.08);
}

.filter-input {
  width: 100%;
  border: 1px solid var(--soft);
  outline: 0;
  border-radius: 16px;
  padding: 15px 18px;
  color: var(--text);
  background: #f8fafc;
}

.filter-line {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-top: 16px;
}

.filter-line strong {
  margin-right: 6px;
}

.filter-line button {
  border: 0;
  border-radius: 999px;
  padding: 8px 12px;
  color: #334155;
  background: #f1f5f9;
  font-weight: 800;
}

.filter-line button.active {
  color: #ffffff;
  background: #0f172a;
}

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

.detail-hero {
  position: relative;
  padding: 54px 0 74px;
  color: #ffffff;
  background-image: linear-gradient(90deg, rgba(2, 6, 23, 0.96), rgba(15, 23, 42, 0.82), rgba(15, 23, 42, 0.48)), var(--detail-image);
  background-size: cover;
  background-position: center;
}

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

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

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

.detail-info h1 {
  margin: 0 0 16px;
  font-size: clamp(34px, 5vw, 60px);
  line-height: 1.08;
  letter-spacing: -0.05em;
}

.detail-lead {
  max-width: 820px;
  margin: 0 0 24px;
  color: #e2e8f0;
  font-size: 18px;
}

.large-tags {
  margin-bottom: 28px;
}

.jump-player {
  color: #0f172a;
  background: #ffffff;
}

.player-section {
  padding: 48px 0 22px;
}

.player-section h2,
.detail-content h2 {
  margin: 0 0 18px;
  font-size: 28px;
  letter-spacing: -0.03em;
}

.video-shell {
  position: relative;
  overflow: hidden;
  border-radius: 26px;
  background: #000000;
  box-shadow: var(--shadow);
}

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

.player-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  gap: 12px;
  border: 0;
  color: #ffffff;
  background: linear-gradient(to top, rgba(2, 6, 23, 0.7), rgba(2, 6, 23, 0.18));
  cursor: pointer;
}

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

.player-icon {
  width: 74px;
  height: 74px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: #0f172a;
  background: #ffffff;
  font-size: 28px;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.35);
}

.player-overlay strong {
  padding: 0 20px;
  text-align: center;
  font-size: 22px;
}

.detail-content {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  gap: 22px;
  padding: 28px 0 18px;
}

.content-card {
  padding: 24px;
  border: 1px solid var(--soft);
  border-radius: 24px;
  background: #ffffff;
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.08);
}

.content-card p {
  margin: 0;
}

.detail-table-card {
  grid-column: span 2;
}

.detail-table {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 0;
}

.detail-table div {
  display: grid;
  grid-template-columns: 86px minmax(0, 1fr);
  gap: 14px;
  padding: 14px;
  border-radius: 16px;
  background: #f8fafc;
}

.detail-table dt {
  color: #64748b;
  font-weight: 900;
}

.detail-table dd {
  margin: 0;
  color: #0f172a;
  font-weight: 800;
}

.search-results {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 24px;
}

.search-item {
  display: grid;
  grid-template-columns: 86px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--soft);
  border-radius: 18px;
  background: #ffffff;
}

.search-item img {
  width: 86px;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 14px;
}

.search-item h3 {
  margin: 0 0 6px;
  font-size: 17px;
}

.search-item p {
  margin: 0;
  color: #64748b;
  font-size: 13px;
}

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

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

.footer-brand {
  display: inline-block;
  margin-bottom: 12px;
  color: #ffffff;
  font-size: 22px;
  font-weight: 900;
}

.site-footer p {
  max-width: 760px;
  margin: 0 0 18px;
  color: #cbd5e1;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-links a {
  color: #ffffff;
  font-weight: 800;
}

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

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

  .hero-slide {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .hero-poster {
    display: none;
  }

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

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

  .category-overview-grid,
  .rank-list,
  .detail-content,
  .search-results {
    grid-template-columns: 1fr;
  }

  .detail-table-card {
    grid-column: auto;
  }
}

@media (max-width: 760px) {
  .header-inner {
    height: 64px;
  }

  .brand-name {
    font-size: 16px;
  }

  .hero,
  .hero-slider {
    min-height: 620px;
  }

  .hero-content {
    padding: 54px 0 110px;
  }

  .hero-actions,
  .wide-search,
  .section-head {
    flex-direction: column;
    align-items: stretch;
  }

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

  .category-card,
  .rank-list .movie-card,
  .detail-layout,
  .detail-table,
  .search-item {
    grid-template-columns: 1fr;
  }

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

  .rank-list .poster-link img {
    aspect-ratio: 4 / 5;
  }

  .compact-hero {
    padding: 56px 0;
  }

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