:root {
  --site-bg: #f8fbff;
  --site-card: #ffffff;
  --site-text: #0f172a;
  --site-muted: #64748b;
  --site-soft: #e0f2fe;
  --site-line: #e2e8f0;
  --site-primary: #0284c7;
  --site-primary-dark: #0369a1;
  --site-shadow: 0 22px 60px rgba(15, 23, 42, 0.12);
}

body {
  min-height: 100vh;
  background: linear-gradient(180deg, #f0f9ff 0%, #ffffff 42%, #f8fafc 100%);
  color: var(--site-text);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(255, 255, 255, 0.9);
  border-bottom: 1px solid rgba(226, 232, 240, 0.9);
  backdrop-filter: blur(18px);
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand-mark {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  color: #ffffff;
  background: linear-gradient(135deg, #0ea5e9, #2563eb);
  box-shadow: 0 12px 30px rgba(14, 165, 233, 0.35);
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.brand-text strong {
  font-size: 19px;
  font-weight: 800;
  background: linear-gradient(90deg, #0284c7, #2563eb);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.brand-text small {
  margin-top: 4px;
  color: var(--site-muted);
  font-size: 12px;
}

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

.nav-link,
.mobile-nav-link {
  color: #334155;
  font-weight: 650;
  border-radius: 999px;
  transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.nav-link {
  padding: 10px 16px;
}

.nav-link:hover,
.nav-link.active,
.mobile-nav-link:hover {
  color: #0369a1;
  background: #e0f2fe;
}

.mobile-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  color: #0369a1;
  background: #e0f2fe;
  font-size: 22px;
}

.mobile-panel {
  display: none;
  padding: 0 16px 16px;
}

.mobile-panel.open {
  display: grid;
  gap: 10px;
}

.mobile-nav-link {
  display: block;
  padding: 12px 14px;
  background: #ffffff;
}

.hero-carousel {
  position: relative;
  min-height: 580px;
  overflow: hidden;
  background: #020617;
}

.hero-track,
.hero-slide {
  min-height: 580px;
}

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

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

.hero-slide img,
.detail-backdrop {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.56;
}

.hero-slide img.is-hidden,
.poster-img.is-hidden,
.compact-poster img.is-hidden,
.tile-thumbs img.is-hidden,
.detail-backdrop.is-hidden,
.player-video.is-hidden {
  opacity: 0;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 18% 30%, rgba(14, 165, 233, 0.5), transparent 32%),
    linear-gradient(90deg, rgba(2, 6, 23, 0.96) 0%, rgba(15, 23, 42, 0.78) 45%, rgba(15, 23, 42, 0.28) 100%);
}

.hero-copy {
  position: relative;
  z-index: 2;
  width: min(1180px, calc(100% - 32px));
  min-height: 580px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  color: #ffffff;
  padding: 110px 0 78px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #0284c7;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-copy .eyebrow,
.detail-info .eyebrow,
.page-hero .eyebrow {
  color: #bae6fd;
}

.hero-copy h1 {
  max-width: 780px;
  margin: 18px 0 18px;
  font-size: clamp(42px, 7vw, 78px);
  line-height: 0.95;
  font-weight: 900;
  letter-spacing: -0.06em;
}

.hero-copy p {
  max-width: 620px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 18px;
  line-height: 1.8;
}

.hero-actions,
.detail-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
}

.primary-btn,
.ghost-btn,
.text-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border-radius: 999px;
  font-weight: 800;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.primary-btn {
  padding: 0 22px;
  color: #ffffff;
  background: linear-gradient(90deg, #0ea5e9, #2563eb);
  box-shadow: 0 18px 38px rgba(37, 99, 235, 0.28);
}

.ghost-btn {
  padding: 0 22px;
  color: #f8fafc;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(12px);
}

.primary-btn:hover,
.ghost-btn:hover,
.text-link:hover,
.movie-card:hover,
.compact-card:hover,
.category-tile:hover {
  transform: translateY(-2px);
}

.hero-control {
  position: absolute;
  top: 50%;
  z-index: 5;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(12px);
  font-size: 42px;
  line-height: 1;
}

.hero-prev {
  left: 24px;
}

.hero-next {
  right: 24px;
}

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

.hero-dot {
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.38);
  transition: width 0.25s ease, background 0.25s ease;
}

.hero-dot.active {
  width: 36px;
  background: #38bdf8;
}

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

.section-heading {
  margin-bottom: 30px;
}

.centered-heading {
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.split-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
}

.section-heading h2,
.page-hero h1,
.detail-info h1,
.story-card h2 {
  font-weight: 900;
  letter-spacing: -0.04em;
}

.section-heading h2 {
  margin-top: 8px;
  font-size: clamp(28px, 4vw, 44px);
}

.section-heading p,
.page-hero p {
  margin-top: 12px;
  color: var(--site-muted);
  font-size: 17px;
  line-height: 1.8;
}

.text-link {
  min-height: auto;
  color: #0369a1;
}

.hero-searchbar {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 14px;
  max-width: 760px;
  margin: 0 auto 30px;
  padding: 10px;
  border: 1px solid #bae6fd;
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: var(--site-shadow);
}

.hero-searchbar input,
.filter-panel input,
.filter-panel select {
  width: 100%;
  border: 1px solid var(--site-line);
  border-radius: 18px;
  background: #ffffff;
  outline: none;
}

.hero-searchbar input {
  padding: 0 18px;
  border: 0;
  background: transparent;
  font-size: 16px;
}

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

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

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

.movie-card,
.compact-card,
.category-tile,
.story-card,
.filter-panel {
  position: relative;
  border: 1px solid rgba(226, 232, 240, 0.9);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 14px 40px rgba(15, 23, 42, 0.08);
}

.movie-card {
  overflow: hidden;
  border-radius: 28px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.movie-card:hover,
.compact-card:hover,
.category-tile:hover {
  box-shadow: var(--site-shadow);
}

.poster-link {
  position: relative;
  display: block;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: linear-gradient(135deg, #0f172a, #0369a1);
}

.poster-img,
.compact-poster img,
.tile-thumbs img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease, opacity 0.2s ease;
}

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

.poster-fallback {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 28px;
  font-weight: 900;
  text-align: center;
  letter-spacing: -0.04em;
  background: radial-gradient(circle at top, rgba(56, 189, 248, 0.45), transparent 46%), linear-gradient(135deg, #0f172a, #075985);
}

.poster-img,
.compact-poster img,
.tile-thumbs img {
  position: relative;
  z-index: 2;
}

.poster-badge {
  position: absolute;
  left: 12px;
  top: 12px;
  z-index: 3;
  padding: 6px 10px;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(2, 132, 199, 0.9);
  font-size: 12px;
  font-weight: 800;
}

.card-content {
  padding: 18px;
}

.card-meta,
.compact-top {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  color: #64748b;
  font-size: 12px;
  font-weight: 700;
}

.card-content h2,
.compact-card h2 {
  margin-top: 8px;
  font-size: 18px;
  font-weight: 850;
  line-height: 1.35;
}

.card-content p,
.compact-card p {
  margin-top: 8px;
  color: #64748b;
  font-size: 14px;
  line-height: 1.7;
}

.card-tags,
.detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.tag {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  color: #0369a1;
  background: #e0f2fe;
  font-size: 12px;
  font-weight: 800;
}

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

.category-tile {
  display: flex;
  min-height: 210px;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  border-radius: 28px;
  padding: 22px;
  background: linear-gradient(145deg, #ffffff, #f0f9ff);
}

.category-tile span {
  color: #0369a1;
  font-size: 22px;
  font-weight: 900;
}

.category-tile strong {
  margin-top: 10px;
  color: #475569;
  font-size: 14px;
  line-height: 1.7;
}

.tile-thumbs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-top: 18px;
}

.tile-thumbs img {
  aspect-ratio: 3 / 4;
  border-radius: 14px;
  background: linear-gradient(135deg, #0f172a, #0369a1);
}

.ranking-panel,
.latest-panel {
  border-radius: 40px;
}

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

.compact-card {
  display: grid;
  grid-template-columns: 86px 1fr;
  gap: 14px;
  border-radius: 22px;
  padding: 12px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.compact-poster {
  position: relative;
  display: block;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border-radius: 16px;
  background: linear-gradient(135deg, #0f172a, #0369a1);
}

.rank-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 30px;
  height: 24px;
  border-radius: 999px;
  color: #ffffff;
  background: linear-gradient(90deg, #0ea5e9, #2563eb);
  font-size: 12px;
  font-weight: 900;
}

.horizontal-list {
  display: grid;
  gap: 16px;
}

.horizontal-card {
  display: grid;
  grid-template-columns: 180px 1fr;
}

.horizontal-card .poster-link {
  aspect-ratio: 16 / 10;
  min-height: 160px;
}

.page-hero,
.detail-hero {
  position: relative;
  overflow: hidden;
  color: #ffffff;
  background: #020617;
}

.page-hero {
  padding: 96px 0;
  background:
    radial-gradient(circle at 12% 22%, rgba(14, 165, 233, 0.52), transparent 34%),
    linear-gradient(135deg, #020617, #0f172a 52%, #075985);
}

.page-hero h1 {
  max-width: 820px;
  margin-top: 12px;
  font-size: clamp(38px, 6vw, 64px);
  line-height: 1;
}

.page-hero p {
  max-width: 760px;
  color: rgba(255, 255, 255, 0.78);
}

.filter-panel {
  margin-bottom: 28px;
  padding: 18px;
  border-radius: 28px;
}

.filter-row {
  display: grid;
  grid-template-columns: minmax(260px, 1.2fr) minmax(0, 2fr);
  gap: 14px;
}

.filter-panel label {
  display: grid;
  gap: 8px;
  color: #475569;
  font-size: 12px;
  font-weight: 850;
}

.filter-panel input,
.filter-panel select {
  height: 46px;
  padding: 0 14px;
  color: #0f172a;
}

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

.empty-note {
  display: none;
  margin-top: 16px;
  color: #0369a1;
  font-weight: 800;
  text-align: center;
}

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

.category-feature {
  padding: 28px 0;
  border-top: 1px solid var(--site-line);
}

.category-feature-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}

.category-feature h2 {
  font-size: 28px;
  font-weight: 900;
}

.detail-hero {
  min-height: 720px;
}

.detail-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 18% 25%, rgba(14, 165, 233, 0.46), transparent 36%),
    linear-gradient(180deg, rgba(2, 6, 23, 0.72), #020617 90%);
}

.detail-hero-inner {
  position: relative;
  z-index: 2;
  padding: 42px 0 70px;
}

.breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 14px;
  font-weight: 700;
}

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

.detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(320px, 0.75fr);
  gap: 34px;
  align-items: center;
  margin-top: 34px;
}

.player-card {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 34px;
  background:
    radial-gradient(circle at top, rgba(14, 165, 233, 0.42), transparent 38%),
    #020617;
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.38);
}

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

.player-overlay {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  color: #ffffff;
  background: linear-gradient(180deg, rgba(2, 6, 23, 0.18), rgba(2, 6, 23, 0.72));
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

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

.play-symbol {
  width: 78px;
  height: 78px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  padding-left: 5px;
  background: linear-gradient(135deg, #0ea5e9, #2563eb);
  box-shadow: 0 18px 40px rgba(14, 165, 233, 0.35);
  font-size: 30px;
}

.player-status {
  position: absolute;
  left: 18px;
  bottom: 16px;
  z-index: 4;
  color: #e0f2fe;
  font-size: 13px;
  font-weight: 800;
}

.detail-info h1 {
  margin-top: 14px;
  font-size: clamp(36px, 5vw, 60px);
  line-height: 1.05;
}

.lead {
  margin-top: 18px;
  color: rgba(255, 255, 255, 0.8);
  font-size: 18px;
  line-height: 1.85;
}

.meta-list {
  display: grid;
  gap: 10px;
  margin-top: 24px;
}

.meta-list li {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

.meta-list span {
  color: rgba(255, 255, 255, 0.62);
}

.meta-list strong {
  color: #ffffff;
  text-align: right;
}

.detail-content {
  margin-top: -42px;
  position: relative;
  z-index: 4;
}

.story-card {
  margin-bottom: 20px;
  border-radius: 30px;
  padding: 30px;
}

.story-card h2 {
  margin-bottom: 14px;
  font-size: 28px;
}

.story-card p {
  color: #334155;
  font-size: 17px;
  line-height: 1.9;
}

.related-section {
  padding-top: 36px;
}

.site-footer {
  margin-top: 60px;
  padding: 56px 0;
  color: #cbd5e1;
  background: #020617;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 34px;
}

.footer-brand {
  margin-bottom: 14px;
  color: #ffffff;
  font-size: 24px;
  font-weight: 900;
}

.site-footer p {
  max-width: 520px;
  color: #94a3b8;
  line-height: 1.8;
}

.site-footer h2 {
  margin-bottom: 14px;
  color: #ffffff;
  font-size: 18px;
  font-weight: 900;
}

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

.footer-links a:hover {
  color: #38bdf8;
}

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

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

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

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

  .hero-carousel,
  .hero-track,
  .hero-slide {
    min-height: 640px;
  }

  .hero-copy {
    min-height: 640px;
    padding-top: 98px;
  }

  .hero-control {
    display: none;
  }

  .hero-searchbar,
  .filter-row,
  .detail-grid,
  .footer-grid,
  .horizontal-card {
    grid-template-columns: 1fr;
  }

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

  .detail-grid {
    align-items: start;
  }
}

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

  .brand-text small {
    display: none;
  }

  .brand-text strong {
    font-size: 16px;
  }

  .hero-copy h1,
  .page-hero h1,
  .detail-info h1 {
    letter-spacing: -0.04em;
  }

  .hero-copy p,
  .lead,
  .story-card p {
    font-size: 15px;
  }

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

  .split-heading,
  .category-feature-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .movie-grid,
  .full-grid,
  .compact-grid,
  .ranking-list,
  .category-grid,
  .category-overview-grid {
    grid-template-columns: 1fr;
  }

  .select-row {
    grid-template-columns: 1fr;
  }

  .compact-card {
    grid-template-columns: 78px 1fr;
  }

  .detail-hero {
    min-height: auto;
  }

  .detail-hero-inner {
    padding-bottom: 54px;
  }

  .player-card {
    border-radius: 22px;
  }

  .story-card {
    padding: 22px;
  }
}
