html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  color: #1f2937;
  background: linear-gradient(135deg, #f8fafc 0%, #eef6ff 48%, #e0f2fe 100%);
}

body.nav-open {
  overflow: hidden;
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(148, 163, 184, 0.18);
}

.header-inner {
  max-width: 1600px;
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 22px;
  font-weight: 900;
  color: #0f172a;
}

.brand-mark {
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  border-radius: 14px;
  background: linear-gradient(135deg, #2563eb, #06b6d4);
  box-shadow: 0 12px 30px rgba(37, 99, 235, 0.25);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.site-nav a {
  padding: 10px 15px;
  border-radius: 999px;
  color: #475569;
  font-weight: 700;
  transition: all 0.25s ease;
}

.site-nav a:hover {
  color: #2563eb;
  background: rgba(37, 99, 235, 0.08);
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 12px;
  background: #eff6ff;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 4px auto;
  background: #1d4ed8;
  border-radius: 2px;
}

.hero-section {
  position: relative;
  height: 85vh;
  min-height: 620px;
  overflow: hidden;
}

.hero-fade {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 0%, transparent 72%, #f8fafc 100%);
  pointer-events: none;
  z-index: 2;
}

.hero-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  height: 100%;
  padding: 16px;
}

.hero-card {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  box-shadow: 0 30px 70px rgba(15, 23, 42, 0.32);
  isolation: isolate;
  transform: translateZ(0);
}

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

.hero-card:hover img {
  transform: scale(1.1);
}

.hero-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.9), rgba(0, 0, 0, 0.42), transparent);
  z-index: 1;
}

.hero-content {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 3;
  padding: 32px;
  color: #ffffff;
}

.hero-label,
.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 12px;
  color: #f59e0b;
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-content h1,
.hero-content h2 {
  margin: 0 0 14px;
  font-size: clamp(32px, 4vw, 58px);
  line-height: 1.05;
  font-weight: 950;
  text-shadow: 0 18px 38px rgba(0, 0, 0, 0.38);
}

.hero-movie-title {
  font-size: clamp(22px, 2.4vw, 36px) !important;
}

.hero-content p {
  max-width: 620px;
  margin: 0 0 18px;
  color: rgba(255, 255, 255, 0.88);
  line-height: 1.75;
}

.hero-tags,
.detail-tags,
.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-tags span,
.detail-tags span,
.tag-cloud span {
  padding: 7px 11px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
}

.hero-tags span {
  background: rgba(255, 255, 255, 0.16);
  color: #ffffff;
  backdrop-filter: blur(12px);
}

.hero-play {
  position: absolute;
  right: 30px;
  bottom: 30px;
  width: 74px;
  height: 74px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(12px);
  font-size: 28px;
  transition: transform 0.25s ease, background 0.25s ease;
}

.hero-card:hover .hero-play {
  transform: scale(1.08);
  background: rgba(255, 255, 255, 0.32);
}

.hero-actions {
  position: absolute;
  z-index: 5;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%);
  display: flex;
  gap: 12px;
}

.hero-actions a,
.primary-button,
.text-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 22px;
  border-radius: 999px;
  font-weight: 900;
  transition: all 0.25s ease;
}

.hero-actions a,
.primary-button {
  color: #2563eb;
  background: #ffffff;
  box-shadow: 0 20px 40px rgba(15, 23, 42, 0.18);
}

.hero-actions a:hover,
.primary-button:hover {
  transform: translateY(-2px);
  background: #eff6ff;
}

.section-shell {
  max-width: 1600px;
  margin: 0 auto;
  padding: 64px 24px;
}

.compact-shell {
  padding-top: 0;
  padding-bottom: 0;
}

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

.section-heading h2,
.page-hero h1,
.detail-copy h1 {
  margin: 0;
  color: #111827;
  font-weight: 950;
  letter-spacing: -0.04em;
}

.section-heading h2 {
  font-size: clamp(28px, 3vw, 42px);
}

.more-link,
.text-button {
  color: #2563eb;
  font-weight: 900;
}

.more-link:hover,
.text-button:hover {
  color: #0f172a;
}

.filter-panel {
  margin-bottom: 28px;
}

.filter-controls {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) 180px 180px;
  gap: 14px;
  padding: 16px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.08);
  border: 1px solid rgba(226, 232, 240, 0.85);
}

.filter-controls input,
.filter-controls select {
  width: 100%;
  border: 1px solid #dbeafe;
  border-radius: 16px;
  padding: 13px 15px;
  color: #1f2937;
  background: #ffffff;
  outline: none;
  font-weight: 700;
}

.filter-controls input:focus,
.filter-controls select:focus {
  border-color: #2563eb;
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
}

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

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

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

.movie-card {
  position: relative;
  border-radius: 24px;
  background: #ffffff;
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.08);
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.movie-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 28px 70px rgba(15, 23, 42, 0.16);
}

.poster-wrap {
  position: relative;
  display: block;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: #dbeafe;
}

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

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

.poster-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.58), transparent 55%);
  opacity: 0;
  transition: opacity 0.25s ease;
}

.movie-card:hover .poster-shade {
  opacity: 1;
}

.score-badge,
.rank-badge {
  position: absolute;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  height: 32px;
  border-radius: 999px;
  color: #ffffff;
  font-weight: 950;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.22);
}

.score-badge {
  top: 12px;
  right: 12px;
  background: linear-gradient(135deg, #f97316, #ef4444);
}

.rank-badge {
  top: 12px;
  left: 12px;
  background: linear-gradient(135deg, #ef4444, #f97316);
}

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

.movie-meta-line {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
  color: #64748b;
  font-size: 13px;
  font-weight: 800;
}

.movie-card h3 {
  margin: 0 0 9px;
  color: #111827;
  font-size: 18px;
  line-height: 1.35;
  font-weight: 950;
}

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

.movie-card p {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 45px;
  margin: 0;
  color: #64748b;
  line-height: 1.6;
  font-size: 14px;
}

.highlight-band {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.82fr);
  gap: 42px;
  align-items: center;
  padding: 64px max(24px, calc((100vw - 1600px) / 2 + 24px));
  color: #ffffff;
  background: linear-gradient(135deg, #2563eb, #06b6d4);
}

.highlight-media a {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 30px;
  box-shadow: 0 28px 60px rgba(15, 23, 42, 0.3);
}

.highlight-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.highlight-media span {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 86px;
  height: 86px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.28);
  backdrop-filter: blur(14px);
  font-size: 34px;
}

.highlight-copy h2 {
  margin: 0 0 18px;
  font-size: clamp(34px, 4vw, 56px);
  font-weight: 950;
  letter-spacing: -0.04em;
}

.highlight-copy p {
  max-width: 660px;
  margin: 0 0 28px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 18px;
  line-height: 1.8;
}

.soft-section {
  padding: 64px 0;
  background: rgba(226, 232, 240, 0.4);
}

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

.category-chip {
  display: flex;
  flex-direction: column;
  min-height: 138px;
  justify-content: space-between;
  padding: 20px;
  border-radius: 24px;
  background: #ffffff;
  box-shadow: 0 14px 36px rgba(15, 23, 42, 0.08);
  transition: all 0.25s ease;
}

.category-chip:hover {
  transform: translateY(-6px);
  color: #2563eb;
  box-shadow: 0 24px 50px rgba(15, 23, 42, 0.14);
}

.category-chip span {
  font-size: 19px;
  font-weight: 950;
}

.category-chip small {
  color: #64748b;
  line-height: 1.6;
}

.wide-scroll {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(280px, 360px);
  gap: 22px;
  overflow-x: auto;
  padding: 8px 4px 20px;
  scroll-snap-type: x mandatory;
}

.wide-card {
  position: relative;
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-radius: 24px;
  scroll-snap-align: start;
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.12);
}

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

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

.wide-card-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.78), transparent 62%);
}

.wide-card-title,
.wide-card-tag {
  position: absolute;
  z-index: 2;
  color: #ffffff;
  font-weight: 950;
}

.wide-card-title {
  left: 18px;
  right: 18px;
  bottom: 16px;
  font-size: 18px;
}

.wide-card-tag {
  top: 14px;
  right: 14px;
  padding: 6px 10px;
  border-radius: 999px;
  background: #f97316;
}

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

.page-hero {
  max-width: 1600px;
  margin: 0 auto;
  padding: 76px 24px 28px;
}

.page-hero h1 {
  font-size: clamp(36px, 5vw, 64px);
}

.page-hero p {
  max-width: 760px;
  margin: 16px 0 0;
  color: #64748b;
  line-height: 1.8;
  font-size: 18px;
}

.category-overview-grid {
  max-width: 1600px;
  margin: 0 auto;
  padding: 26px 24px 72px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.category-overview-card {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 22px;
  align-items: stretch;
  padding: 18px;
  border-radius: 28px;
  background: #ffffff;
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.08);
}

.category-cover {
  position: relative;
  overflow: hidden;
  border-radius: 22px;
  min-height: 260px;
}

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

.category-cover span {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.38), transparent);
}

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

.category-overview-card p {
  color: #64748b;
  line-height: 1.7;
}

.category-preview-list {
  display: grid;
  gap: 8px;
  margin: 16px 0 18px;
  padding: 0;
  list-style: none;
}

.category-preview-list a {
  color: #334155;
  font-weight: 800;
}

.category-preview-list a:hover {
  color: #2563eb;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  align-items: center;
  margin-bottom: 18px;
  color: #64748b;
  font-weight: 800;
}

.breadcrumb a {
  color: #2563eb;
}

.detail-main {
  padding: 32px 24px 72px;
}

.detail-layout {
  max-width: 1800px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 2.1fr) minmax(320px, 0.9fr);
  gap: 32px;
}

.player-card {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 30px;
  background: #020617;
  box-shadow: 0 30px 80px rgba(15, 23, 42, 0.32);
}

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

.player-overlay {
  position: absolute;
  inset: 0;
  z-index: 4;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  border: 0;
  color: #ffffff;
  background: linear-gradient(to top, rgba(2, 6, 23, 0.86), rgba(2, 6, 23, 0.18)), center / cover no-repeat;
  cursor: pointer;
}

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

.play-circle {
  width: 92px;
  height: 92px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.24);
  backdrop-filter: blur(14px);
  font-size: 34px;
  transition: transform 0.25s ease;
}

.player-overlay:hover .play-circle {
  transform: scale(1.08);
}

.play-title {
  max-width: 80%;
  font-size: clamp(24px, 4vw, 44px);
  font-weight: 950;
  line-height: 1.2;
  text-align: center;
  text-shadow: 0 14px 30px rgba(0, 0, 0, 0.35);
}

.detail-copy,
.side-box {
  margin-top: 24px;
  padding: 28px;
  border-radius: 28px;
  background: #ffffff;
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.08);
}

.detail-copy h1 {
  font-size: clamp(32px, 4vw, 52px);
  margin-bottom: 16px;
}

.detail-copy h2,
.side-box h2 {
  margin: 28px 0 12px;
  color: #111827;
  font-size: 24px;
  font-weight: 950;
}

.detail-copy p {
  margin: 0 0 16px;
  color: #475569;
  line-height: 1.9;
  font-size: 17px;
}

.detail-tags span {
  color: #1d4ed8;
  background: #dbeafe;
}

.tag-cloud {
  margin-top: 22px;
}

.tag-cloud span {
  color: #475569;
  background: #f1f5f9;
}

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

.side-poster {
  overflow: hidden;
  border-radius: 28px;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.18);
}

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

.side-box dl {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 12px 18px;
  margin: 0;
}

.side-box dt {
  color: #64748b;
  font-weight: 900;
}

.side-box dd {
  margin: 0;
  color: #0f172a;
  font-weight: 800;
}

.related-shell {
  padding-top: 52px;
}

.site-footer {
  margin-top: 36px;
  background: #0f172a;
  color: #e2e8f0;
}

.footer-inner {
  max-width: 1600px;
  margin: 0 auto;
  padding: 40px 24px;
  display: flex;
  justify-content: space-between;
  gap: 32px;
}

.footer-brand {
  color: #ffffff;
}

.footer-inner p {
  max-width: 620px;
  color: #94a3b8;
  line-height: 1.7;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  align-content: flex-start;
  justify-content: flex-end;
  gap: 12px;
}

.footer-links a {
  padding: 8px 12px;
  border-radius: 999px;
  color: #cbd5e1;
  background: rgba(255, 255, 255, 0.08);
}

.footer-links a:hover {
  color: #ffffff;
  background: rgba(37, 99, 235, 0.55);
}

.footer-bottom {
  border-top: 1px solid rgba(148, 163, 184, 0.18);
  padding: 18px 24px;
  text-align: center;
  color: #94a3b8;
}

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

@media (max-width: 1180px) {
  .movie-grid-four,
  .category-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .category-overview-grid,
  .highlight-band,
  .detail-layout {
    grid-template-columns: 1fr;
  }

  .detail-side {
    position: static;
  }
}

@media (max-width: 860px) {
  .header-inner {
    padding: 12px 16px;
  }

  .nav-toggle {
    display: block;
  }

  .site-nav {
    position: fixed;
    left: 12px;
    right: 12px;
    top: 68px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 16px;
    border-radius: 22px;
    background: #ffffff;
    box-shadow: 0 24px 70px rgba(15, 23, 42, 0.18);
  }

  body.nav-open .site-nav {
    display: flex;
  }

  .hero-section {
    height: auto;
    min-height: 0;
  }

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

  .hero-card {
    min-height: 520px;
  }

  .hero-actions {
    position: static;
    transform: none;
    justify-content: center;
    padding: 4px 16px 28px;
  }

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

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

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

  .footer-inner {
    flex-direction: column;
  }

  .footer-links {
    justify-content: flex-start;
  }
}

@media (max-width: 560px) {
  .brand-name {
    font-size: 18px;
  }

  .section-shell,
  .page-hero,
  .detail-main {
    padding-left: 14px;
    padding-right: 14px;
  }

  .hero-grid {
    padding: 10px;
  }

  .hero-card {
    min-height: 480px;
    border-radius: 22px;
  }

  .hero-content {
    padding: 22px;
  }

  .hero-play {
    width: 58px;
    height: 58px;
    right: 20px;
    bottom: 20px;
  }

  .hero-actions {
    flex-direction: column;
  }

  .movie-grid-four,
  .movie-grid-three,
  .category-grid,
  .category-overview-grid {
    grid-template-columns: 1fr;
  }

  .highlight-band {
    padding-left: 14px;
    padding-right: 14px;
  }

  .detail-copy,
  .side-box {
    padding: 20px;
  }

  .play-circle {
    width: 72px;
    height: 72px;
  }
}
