* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: #111827;
  background: #f8fafc;
}

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

img {
  display: block;
  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: linear-gradient(90deg, #0f172a, #1e293b);
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.28);
}

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

.site-logo,
.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: 0.01em;
}

.logo-mark {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  background: linear-gradient(135deg, #2563eb, #06b6d4);
  border-radius: 999px;
  box-shadow: 0 10px 28px rgba(37, 99, 235, 0.35);
}

.logo-text {
  font-size: 21px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 20px;
  color: #cbd5e1;
  font-size: 14px;
}

.nav-link {
  transition: color 0.2s ease;
}

.nav-link:hover,
.nav-link.is-active {
  color: #60a5fa;
}

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

.header-search input,
.mobile-search input,
.local-search input {
  border: 1px solid rgba(148, 163, 184, 0.45);
  outline: none;
  border-radius: 999px;
  padding: 10px 16px;
  color: #ffffff;
  background: rgba(30, 41, 59, 0.9);
}

.header-search input:focus,
.mobile-search input:focus,
.local-search input:focus {
  border-color: #38bdf8;
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.18);
}

.header-search button,
.mobile-search button,
.primary-button {
  border: 0;
  border-radius: 999px;
  padding: 10px 18px;
  color: #ffffff;
  cursor: pointer;
  background: #2563eb;
  font-weight: 700;
  transition: transform 0.2s ease, background 0.2s ease;
}

.header-search button:hover,
.mobile-search button:hover,
.primary-button:hover {
  background: #1d4ed8;
  transform: translateY(-1px);
}

.mobile-menu-button {
  display: none;
  border: 0;
  width: 42px;
  height: 42px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  cursor: pointer;
}

.mobile-nav {
  display: none;
  padding: 16px;
  border-top: 1px solid rgba(148, 163, 184, 0.2);
  background: #0f172a;
}

.mobile-nav.is-open {
  display: grid;
  gap: 12px;
}

.mobile-nav-link {
  color: #cbd5e1;
  padding: 8px 0;
}

.mobile-nav-link.is-active {
  color: #60a5fa;
}

.hero {
  position: relative;
  min-height: 620px;
  overflow: hidden;
  background: #0f172a;
}

.hero-stage,
.hero-slide {
  position: absolute;
  inset: 0;
}

.hero-slide {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.9s ease;
}

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

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

.hero-shade,
.detail-hero-mask {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(2, 6, 23, 0.9), rgba(15, 23, 42, 0.62), rgba(15, 23, 42, 0.16));
}

.hero-content {
  position: relative;
  height: 620px;
  display: flex;
  align-items: center;
}

.hero-copy {
  max-width: 680px;
  color: #ffffff;
  padding: 40px 0;
}

.hero-tags,
.card-meta,
.detail-title-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-tags span {
  display: inline-flex;
  padding: 7px 12px;
  color: #ffffff;
  background: rgba(37, 99, 235, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  font-weight: 700;
  font-size: 13px;
  backdrop-filter: blur(10px);
}

.hero h1,
.hero h2 {
  margin: 20px 0 18px;
  font-size: clamp(40px, 7vw, 72px);
  line-height: 1.02;
  letter-spacing: -0.04em;
}

.hero p {
  max-width: 620px;
  margin: 0 0 30px;
  color: #e5e7eb;
  font-size: clamp(18px, 2.1vw, 24px);
  line-height: 1.65;
}

.hero-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.primary-button,
.ghost-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
}

.ghost-button {
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 999px;
  padding: 10px 20px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(12px);
  font-weight: 700;
}

.hero-arrow {
  position: absolute;
  top: 50%;
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(12px);
  cursor: pointer;
  font-size: 34px;
  line-height: 1;
}

.hero-prev {
  left: 18px;
}

.hero-next {
  right: 18px;
}

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

.hero-dots button {
  width: 11px;
  height: 11px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: width 0.2s ease, background 0.2s ease;
}

.hero-dots button.is-active {
  width: 34px;
  background: #ffffff;
}

.hero-feature-panel {
  position: absolute;
  right: max(32px, calc((100% - 1180px) / 2));
  bottom: 72px;
  width: 330px;
  padding: 22px;
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 24px;
  background: rgba(15, 23, 42, 0.58);
  backdrop-filter: blur(18px);
  box-shadow: 0 24px 70px rgba(2, 6, 23, 0.45);
}

.hero-feature-panel h2 {
  margin: 0 0 16px;
  font-size: 20px;
}

.compact-stack {
  display: grid;
  gap: 12px;
}

.compact-card {
  position: relative;
  display: grid;
  grid-template-columns: 82px 1fr;
  gap: 12px;
  align-items: center;
  min-height: 64px;
  color: #ffffff;
}

.compact-card img {
  height: 56px;
  border-radius: 12px;
  object-fit: cover;
}

.compact-card span:not(.compact-rank) {
  display: block;
  font-weight: 800;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.compact-card small {
  color: #cbd5e1;
}

.compact-rank {
  position: absolute;
  left: 6px;
  top: 6px;
  padding: 2px 7px;
  color: #ffffff;
  background: rgba(37, 99, 235, 0.92);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
}

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

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

.section-heading h2,
.page-hero h1,
.detail-hero h1,
.article-page h2,
.content-card h2,
.info-panel h2 {
  margin: 0;
  color: #0f172a;
}

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

.section-heading a {
  color: #2563eb;
  font-weight: 800;
}

.eyebrow {
  display: inline-block;
  margin-bottom: 8px;
  color: #2563eb;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

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

.movie-card {
  min-width: 0;
}

.card-link {
  display: block;
  height: 100%;
  overflow: hidden;
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 14px 38px rgba(15, 23, 42, 0.1);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.card-link:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.18);
}

.card-cover {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #0f172a;
}

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

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

.card-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent, rgba(15, 23, 42, 0.52));
  opacity: 0.88;
}

.card-region,
.rank-badge {
  position: absolute;
  z-index: 2;
  top: 12px;
  padding: 6px 10px;
  color: #ffffff;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
}

.card-region {
  right: 12px;
  background: #2563eb;
}

.rank-badge {
  left: 12px;
  background: #f97316;
}

.card-play {
  position: absolute;
  z-index: 2;
  left: 50%;
  top: 50%;
  width: 54px;
  height: 54px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #2563eb;
  background: #ffffff;
  border-radius: 999px;
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.85);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.card-link:hover .card-play {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.card-body {
  padding: 18px;
}

.card-body h2 {
  margin: 0 0 10px;
  color: #1f2937;
  font-size: 18px;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

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

.card-meta {
  justify-content: space-between;
  color: #64748b;
  font-size: 13px;
}

.category-band {
  padding: 70px 0;
  color: #ffffff;
  background: linear-gradient(135deg, #0f172a, #1e3a8a 55%, #0e7490);
}

.light-heading h2,
.light-heading a {
  color: #ffffff;
}

.light-heading .eyebrow {
  color: #93c5fd;
}

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

.category-tile,
.category-overview-card {
  min-height: 150px;
  padding: 22px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.18);
  transition: transform 0.22s ease, background 0.22s ease;
}

.category-tile:hover,
.category-overview-card:hover {
  transform: translateY(-5px);
  background: rgba(255, 255, 255, 0.2);
}

.category-tile span,
.category-overview-card h2 {
  display: block;
  margin: 0 0 10px;
  font-size: 20px;
  font-weight: 900;
}

.category-tile p,
.category-overview-card p {
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.7;
  font-size: 14px;
}

.category-overview-card {
  color: #ffffff;
  background: linear-gradient(135deg, #1e293b, #2563eb);
  box-shadow: 0 18px 45px rgba(37, 99, 235, 0.2);
}

.split-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 28px;
  align-items: start;
}

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

.ranking-panel,
.content-card,
.info-panel,
.poster-panel,
.filter-panel,
.article-page {
  border-radius: 22px;
  background: #ffffff;
  box-shadow: 0 16px 44px rgba(15, 23, 42, 0.1);
}

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

.ranking-heading {
  align-items: center;
  margin-bottom: 14px;
}

.ranking-list {
  list-style: none;
  display: grid;
  gap: 12px;
  padding: 0;
  margin: 0;
}

.ranking-list a {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 10px;
  align-items: center;
  padding: 12px;
  border-radius: 14px;
  background: #f8fafc;
}

.ranking-list span {
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  background: #2563eb;
  border-radius: 12px;
  font-weight: 900;
}

.ranking-list strong,
.ranking-list em {
  display: block;
}

.ranking-list strong {
  color: #0f172a;
}

.ranking-list em {
  margin-top: 2px;
  color: #64748b;
  font-size: 12px;
  font-style: normal;
}

.page-hero {
  padding: 88px 0;
  color: #ffffff;
  background: linear-gradient(135deg, #0f172a, #1e3a8a 55%, #0891b2);
}

.page-hero-soft {
  background: linear-gradient(135deg, #eff6ff, #ffffff);
  color: #0f172a;
}

.page-hero h1 {
  margin: 0 0 16px;
  color: inherit;
  font-size: clamp(36px, 5vw, 58px);
}

.page-hero p {
  max-width: 760px;
  margin: 0;
  color: inherit;
  opacity: 0.82;
  font-size: 18px;
  line-height: 1.8;
}

.breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
  color: rgba(15, 23, 42, 0.72);
  font-size: 14px;
}

.detail-hero .breadcrumb {
  color: rgba(255, 255, 255, 0.78);
}

.breadcrumb a:hover {
  color: #60a5fa;
}

.category-overview {
  padding-top: 46px;
}

.filter-panel {
  display: grid;
  gap: 16px;
  margin-bottom: 26px;
  padding: 22px;
}

.local-search input {
  width: 100%;
  color: #0f172a;
  background: #f8fafc;
}

.filter-buttons,
.category-pills {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.filter-buttons button,
.category-pill {
  border: 0;
  border-radius: 999px;
  padding: 9px 14px;
  color: #334155;
  background: #e2e8f0;
  cursor: pointer;
  font-weight: 800;
}

.filter-buttons button.is-active,
.category-pill:hover {
  color: #ffffff;
  background: #2563eb;
}

.category-pills {
  margin-bottom: 22px;
}

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

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

.empty-state {
  display: none;
  padding: 40px;
  text-align: center;
  color: #64748b;
}

.empty-state.is-visible {
  display: block;
}

.searchable-card.is-hidden {
  display: none;
}

.detail-hero {
  position: relative;
  height: 430px;
  overflow: hidden;
  background: #0f172a;
}

.detail-hero-content {
  position: relative;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  color: #ffffff;
}

.detail-title-row h1 {
  margin: 18px 0 14px;
  color: #ffffff;
  font-size: clamp(34px, 5vw, 62px);
  line-height: 1.05;
}

.detail-title-row p {
  max-width: 760px;
  margin: 0;
  color: #e2e8f0;
  font-size: 19px;
  line-height: 1.8;
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 28px;
  padding: 44px 0 72px;
  align-items: start;
}

.detail-main {
  display: grid;
  gap: 24px;
}

.player-card {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 22px;
  background: #020617;
  box-shadow: 0 20px 60px rgba(2, 6, 23, 0.28);
}

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

.player-start {
  position: absolute;
  inset: 0;
  z-index: 4;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border: 0;
  color: #ffffff;
  background: radial-gradient(circle at center, rgba(37, 99, 235, 0.24), rgba(2, 6, 23, 0.7));
  cursor: pointer;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.player-start span {
  width: 78px;
  height: 78px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: #2563eb;
  background: #ffffff;
  font-size: 34px;
  box-shadow: 0 20px 50px rgba(2, 6, 23, 0.35);
}

.player-start strong {
  font-size: 18px;
}

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

.player-status {
  position: absolute;
  left: 18px;
  bottom: 18px;
  z-index: 5;
  color: #ffffff;
  font-size: 13px;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.55);
}

.content-card {
  padding: 28px;
}

.content-card h2,
.info-panel h2,
.article-page h2 {
  margin-bottom: 14px;
  font-size: 24px;
}

.content-card p,
.article-page p {
  margin: 0;
  color: #334155;
  line-height: 1.9;
  font-size: 16px;
}

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

.detail-sidebar {
  position: sticky;
  top: 92px;
  display: grid;
  gap: 18px;
}

.poster-panel {
  overflow: hidden;
}

.poster-panel img {
  aspect-ratio: 3 / 4;
  object-fit: cover;
}

.info-panel {
  padding: 22px;
}

.info-panel dl {
  display: grid;
  gap: 14px;
  margin: 0;
}

.info-panel dl div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid #e2e8f0;
  padding-bottom: 12px;
}

.info-panel dt {
  color: #64748b;
}

.info-panel dd {
  margin: 0;
  color: #0f172a;
  font-weight: 800;
  text-align: right;
}

.info-panel a {
  color: #2563eb;
}

.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.tag-cloud span {
  display: inline-flex;
  padding: 8px 12px;
  color: #1d4ed8;
  background: #eff6ff;
  border-radius: 999px;
  font-weight: 800;
  font-size: 13px;
}

.prev-next {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.prev-next a {
  padding: 18px;
  border-radius: 16px;
  background: #ffffff;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.1);
  color: #2563eb;
  font-weight: 900;
}

.article-page {
  margin: 54px auto 72px;
  padding: 32px;
}

.article-page h2:not(:first-child) {
  margin-top: 26px;
}

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

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 34px;
  padding: 54px 0;
}

.site-footer h2 {
  margin: 0 0 16px;
  color: #ffffff;
  font-size: 18px;
}

.site-footer p {
  margin: 14px 0 0;
  line-height: 1.8;
}

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

.site-footer a:hover {
  color: #60a5fa;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 16px;
  padding: 22px;
  color: #94a3b8;
  border-top: 1px solid rgba(148, 163, 184, 0.16);
}

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

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

  .hero-feature-panel {
    display: none;
  }

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

  .ranking-panel,
  .detail-sidebar {
    position: static;
  }
}

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

  .mobile-menu-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .hero,
  .hero-content {
    min-height: 560px;
    height: 560px;
  }

  .hero-copy {
    padding: 32px 18px;
  }

  .hero-arrow {
    display: none;
  }

  .movie-grid,
  .compact-grid,
  .related-grid,
  .ranking-grid,
  .all-grid,
  .category-tiles,
  .category-overview-grid,
  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

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

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

  .hero,
  .hero-content {
    min-height: 520px;
    height: 520px;
  }

  .hero h1,
  .hero h2 {
    font-size: 38px;
  }

  .hero p,
  .page-hero p,
  .detail-title-row p {
    font-size: 16px;
  }

  .movie-grid,
  .compact-grid,
  .related-grid,
  .ranking-grid,
  .all-grid,
  .category-tiles,
  .category-overview-grid,
  .footer-grid,
  .prev-next {
    grid-template-columns: 1fr;
  }

  .page-hero {
    padding: 62px 0;
  }

  .detail-hero {
    height: 380px;
  }

  .detail-layout {
    padding-top: 28px;
  }
}
