html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: #0f172a;
  color: #e5e7eb;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
}

img {
  background: linear-gradient(135deg, #1e293b, #7f1d1d);
}

.site-header {
  backdrop-filter: blur(18px);
}

.header-row,
.desktop-nav,
.brand,
.hero-actions,
.hero-meta,
.section-heading,
.footer-grid,
.search-control,
.category-chip-row {
  display: flex;
  align-items: center;
}

.header-row,
.section-heading,
.footer-grid {
  justify-content: space-between;
}

.brand {
  gap: 0.75rem;
  color: #ffffff;
  font-weight: 900;
  letter-spacing: 0.02em;
}

.brand-mark {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.75rem;
  background: linear-gradient(135deg, #dc2626, #ea580c);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 18px 45px rgba(220, 38, 38, 0.35);
}

.brand-mark svg,
.primary-btn svg,
.search-control svg,
.play-badge svg,
.big-play svg {
  width: 1.25rem;
  height: 1.25rem;
  fill: currentColor;
  stroke: currentColor;
  stroke-width: 1.8;
}

.brand-mark svg {
  fill: none;
}

.brand-text {
  font-size: 1.15rem;
}

.desktop-nav {
  gap: 0.25rem;
}

.nav-link,
.mobile-nav-link {
  color: #cbd5e1;
  font-weight: 700;
  padding: 0.65rem 0.9rem;
  border-radius: 999px;
  transition: color 0.25s ease, background 0.25s ease, transform 0.25s ease;
}

.nav-link:hover,
.nav-link.is-active,
.mobile-nav-link:hover,
.mobile-nav-link.is-active {
  color: #ffffff;
  background: linear-gradient(135deg, rgba(220, 38, 38, 0.9), rgba(234, 88, 12, 0.9));
  transform: translateY(-1px);
}

.menu-button {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 0.8rem;
  background: #1e293b;
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 0.25rem;
  padding: 0.65rem;
}

.menu-button span {
  height: 2px;
  border-radius: 999px;
  background: #fff;
}

.mobile-nav {
  display: none;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
  padding-top: 1rem;
}

.hero-slider {
  position: relative;
  min-height: 600px;
  overflow: hidden;
  background: linear-gradient(90deg, #7f1d1d, #7c2d12, #7f1d1d);
}

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

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

.hero-bg,
.hero-overlay,
.detail-hero-overlay {
  position: absolute;
  inset: 0;
}

.hero-bg {
  background-size: cover;
  background-position: center;
  transform: scale(1.03);
  opacity: 0.42;
}

.hero-overlay {
  background: radial-gradient(circle at 70% 35%, rgba(248, 113, 113, 0.25), transparent 35%), linear-gradient(0deg, rgba(2, 6, 23, 0.95), rgba(2, 6, 23, 0.55) 40%, rgba(2, 6, 23, 0.32));
}

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

.hero-copy {
  max-width: 52rem;
  color: #fff;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  color: #fca5a5;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 0.8rem;
}

.hero-copy h1,
.page-hero h1,
.detail-copy h1 {
  font-weight: 950;
  line-height: 1.06;
  color: #ffffff;
  text-shadow: 0 18px 60px rgba(0, 0, 0, 0.45);
}

.hero-copy h1 {
  font-size: clamp(2.8rem, 7vw, 5.6rem);
  margin: 0 0 1.25rem;
}

.hero-copy p,
.page-hero p,
.detail-copy p {
  color: #e5e7eb;
  line-height: 1.9;
}

.hero-copy p {
  font-size: clamp(1.1rem, 2.5vw, 1.55rem);
  max-width: 48rem;
  margin-bottom: 1.4rem;
}

.hero-meta {
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 2rem;
}

.hero-meta span {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  border-radius: 999px;
  padding: 0.5rem 0.9rem;
  font-weight: 800;
}

.hero-actions {
  flex-wrap: wrap;
  gap: 0.85rem;
}

.primary-btn,
.ghost-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  border-radius: 999px;
  padding: 0.9rem 1.35rem;
  font-weight: 900;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.primary-btn {
  color: #ffffff;
  background: linear-gradient(135deg, #dc2626, #ea580c);
  box-shadow: 0 18px 45px rgba(220, 38, 38, 0.35);
}

.primary-btn:hover,
.ghost-btn:hover {
  transform: translateY(-2px) scale(1.02);
}

.ghost-btn {
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(15, 23, 42, 0.45);
  backdrop-filter: blur(12px);
}

.primary-btn.inverted {
  color: #7f1d1d;
  background: #ffffff;
}

.hero-controls {
  position: absolute;
  left: 50%;
  bottom: 2rem;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 1rem;
  z-index: 5;
}

.hero-arrow,
.hero-dot {
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: rgba(15, 23, 42, 0.5);
  color: #fff;
  backdrop-filter: blur(10px);
}

.hero-arrow {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  font-size: 1.75rem;
  line-height: 1;
}

.hero-dots {
  display: flex;
  gap: 0.45rem;
}

.hero-dot {
  width: 0.75rem;
  height: 0.75rem;
  border-radius: 999px;
  padding: 0;
}

.hero-dot.is-active {
  width: 2rem;
  background: #ef4444;
}

.section-block {
  padding-top: 4.5rem;
  padding-bottom: 4.5rem;
}

.search-band {
  margin-top: -3rem;
  position: relative;
  z-index: 6;
}

.search-panel,
.filter-card,
.content-card,
.side-card,
.text-panel,
.player-section {
  background: rgba(30, 41, 59, 0.92);
  border: 1px solid rgba(148, 163, 184, 0.18);
  box-shadow: 0 25px 80px rgba(2, 6, 23, 0.25);
  border-radius: 1.5rem;
}

.search-panel {
  padding: 1.4rem;
}

.search-panel label,
.filter-label {
  display: block;
  color: #ffffff;
  font-weight: 900;
  margin-bottom: 0.8rem;
}

.search-control {
  gap: 0.75rem;
  background: #0f172a;
  border: 1px solid #334155;
  border-radius: 999px;
  padding: 0.45rem 0.55rem 0.45rem 1rem;
}

.search-control svg {
  fill: none;
  color: #f87171;
}

.search-control input {
  flex: 1;
  min-width: 0;
  background: transparent;
  outline: none;
  color: #ffffff;
  padding: 0.75rem 0;
}

.search-control button {
  background: linear-gradient(135deg, #dc2626, #ea580c);
  color: #fff;
  border-radius: 999px;
  padding: 0.8rem 1.25rem;
  font-weight: 900;
}

.compact-search {
  max-width: 42rem;
}

.large-filter {
  margin-bottom: 2rem;
}

.section-heading {
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.section-heading h2,
.content-card h2,
.side-card h2,
.text-panel h2,
.cta-card h2 {
  color: #ffffff;
  font-size: clamp(1.65rem, 4vw, 2.5rem);
  font-weight: 950;
  margin: 0;
}

.section-heading a {
  color: #fca5a5;
  font-weight: 900;
}

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

.movie-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: 1.35rem;
}

.movie-card {
  overflow: hidden;
  border-radius: 1.1rem;
  background: #1e293b;
  border: 1px solid rgba(148, 163, 184, 0.16);
  box-shadow: 0 18px 40px rgba(2, 6, 23, 0.22);
  transition: transform 0.28s ease, border-color 0.28s ease, box-shadow 0.28s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  border-color: rgba(248, 113, 113, 0.55);
  box-shadow: 0 28px 70px rgba(127, 29, 29, 0.28);
}

.poster-wrap {
  position: relative;
  display: block;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  background: linear-gradient(135deg, #1e293b, #991b1b);
}

.poster-wrap img,
.detail-cover,
.rank-item img,
.category-tile img,
.featured-panel img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.poster-wrap img {
  transition: transform 0.45s ease;
}

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

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

.play-badge {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%) scale(0.9);
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #dc2626;
  background: rgba(255, 255, 255, 0.88);
  opacity: 0;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

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

.card-content {
  display: block;
  padding: 0.95rem;
}

.card-content strong,
.rank-copy strong,
.category-tile strong {
  display: block;
  color: #ffffff;
  font-weight: 950;
}

.card-content small,
.rank-copy small {
  display: block;
  color: #94a3b8;
  font-size: 0.8rem;
  margin-top: 0.25rem;
}

.card-content em,
.category-tile em {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  color: #cbd5e1;
  font-style: normal;
  font-size: 0.88rem;
  line-height: 1.65;
  margin-top: 0.55rem;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-top: 0.65rem;
}

.tag-row span {
  border-radius: 999px;
  background: rgba(248, 113, 113, 0.12);
  color: #fecaca;
  font-size: 0.75rem;
  padding: 0.25rem 0.55rem;
}

.category-grid,
.category-overview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.25rem;
}

.category-tile {
  position: relative;
  min-height: 220px;
  overflow: hidden;
  border-radius: 1.35rem;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: #1e293b;
  box-shadow: 0 20px 60px rgba(2, 6, 23, 0.25);
}

.category-tile img {
  position: absolute;
  inset: 0;
  opacity: 0.45;
  transition: transform 0.45s ease, opacity 0.3s ease;
}

.category-tile:hover img {
  transform: scale(1.08);
  opacity: 0.58;
}

.category-tile span {
  position: absolute;
  left: 1.25rem;
  right: 1.25rem;
  bottom: 1.25rem;
}

.category-tile strong {
  font-size: 1.4rem;
}

.split-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 410px;
  gap: 1.5rem;
  align-items: start;
}

.rank-list,
.rank-board,
.side-list {
  display: grid;
  gap: 0.85rem;
}

.rank-board {
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
}

.rank-item {
  display: grid;
  grid-template-columns: 3rem 4.5rem minmax(0, 1fr);
  gap: 0.85rem;
  align-items: center;
  border-radius: 1rem;
  padding: 0.65rem;
  background: rgba(30, 41, 59, 0.92);
  border: 1px solid rgba(148, 163, 184, 0.16);
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.rank-item:hover {
  transform: translateX(4px);
  border-color: rgba(248, 113, 113, 0.55);
}

.rank-number {
  color: #fecaca;
  font-size: 1.4rem;
  font-weight: 950;
  text-align: center;
}

.rank-item img {
  aspect-ratio: 2 / 3;
  border-radius: 0.7rem;
}

.featured-panel {
  overflow: hidden;
  border-radius: 1.5rem;
  background: linear-gradient(135deg, #1e293b, #7f1d1d);
  border: 1px solid rgba(248, 113, 113, 0.25);
  box-shadow: 0 25px 80px rgba(127, 29, 29, 0.25);
}

.featured-panel img {
  aspect-ratio: 16 / 10;
}

.featured-panel div {
  padding: 1.5rem;
}

.featured-panel p,
.cta-card p,
.text-panel p,
.content-card p {
  color: #d1d5db;
  line-height: 1.9;
}

.red-section {
  padding: 4.5rem 0;
  background: linear-gradient(90deg, #7f1d1d, #9a3412);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), inset 0 -1px 0 rgba(255, 255, 255, 0.08);
}

.hot-grid .movie-card {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.18);
}

.cta-card {
  text-align: center;
  border-radius: 1.75rem;
  padding: clamp(2rem, 5vw, 4rem);
  background: linear-gradient(90deg, #7f1d1d, #9a3412);
  border: 1px solid rgba(248, 113, 113, 0.45);
  box-shadow: 0 25px 90px rgba(127, 29, 29, 0.28);
}

.cta-card.slim {
  margin-top: 1.5rem;
}

.page-hero {
  padding: 5.5rem 0;
  background: radial-gradient(circle at 70% 10%, rgba(248, 113, 113, 0.25), transparent 30%), linear-gradient(90deg, #7f1d1d, #9a3412);
}

.page-hero h1 {
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  margin: 0 0 1rem;
}

.page-hero p {
  max-width: 56rem;
  font-size: 1.1rem;
}

.text-center-page p {
  margin-left: auto;
  margin-right: auto;
}

.filter-card {
  padding: 1.25rem;
  margin-bottom: 1.5rem;
}

.category-chip-row {
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-bottom: 1.2rem;
}

.category-chip {
  color: #cbd5e1;
  background: #0f172a;
  border: 1px solid #334155;
  border-radius: 999px;
  padding: 0.55rem 0.9rem;
  font-weight: 800;
}

.category-chip.is-active,
.category-chip:hover {
  color: #fff;
  background: linear-gradient(135deg, #dc2626, #ea580c);
  border-color: transparent;
}

.empty-state {
  display: none;
  text-align: center;
  color: #cbd5e1;
  padding: 2rem;
}

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

.detail-hero {
  position: relative;
  background-size: cover;
  background-position: center;
}

.detail-hero-overlay {
  background: linear-gradient(90deg, rgba(2, 6, 23, 0.98), rgba(2, 6, 23, 0.76), rgba(127, 29, 29, 0.58));
}

.detail-hero-inner {
  position: relative;
  padding-top: 2rem;
  padding-bottom: 4rem;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  color: #cbd5e1;
  font-weight: 700;
  margin-bottom: 2rem;
}

.breadcrumb a {
  color: #fecaca;
}

.detail-hero-grid {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 2rem;
  align-items: center;
}

.detail-cover {
  aspect-ratio: 2 / 3;
  border-radius: 1.25rem;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.45);
}

.detail-copy h1 {
  font-size: clamp(2.2rem, 5vw, 4.4rem);
  margin: 0 0 1rem;
}

.detail-copy p {
  max-width: 62rem;
  font-size: 1.15rem;
  margin-bottom: 1.25rem;
}

.player-section {
  padding: 1rem;
}

.player-box {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 1.25rem;
  background: #000;
}

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

.player-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.9rem;
  background: linear-gradient(0deg, rgba(2, 6, 23, 0.72), rgba(2, 6, 23, 0.28));
  color: #ffffff;
  transition: opacity 0.25s ease;
}

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

.big-play {
  width: 5rem;
  height: 5rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.92);
  color: #dc2626;
  box-shadow: 0 20px 50px rgba(220, 38, 38, 0.35);
}

.big-play svg {
  width: 2.2rem;
  height: 2.2rem;
}

.player-overlay strong {
  font-size: 1.2rem;
  font-weight: 950;
}

.detail-content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  gap: 1.5rem;
  padding-bottom: 2rem;
}

.content-card,
.side-card,
.text-panel {
  padding: clamp(1.25rem, 3vw, 2rem);
}

.content-card h2 {
  font-size: 1.75rem;
  margin-top: 1.25rem;
  margin-bottom: 0.75rem;
}

.content-card h2:first-child {
  margin-top: 0;
}

.info-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0.75rem;
  margin-top: 1rem;
}

.info-list li {
  background: #0f172a;
  border: 1px solid #334155;
  border-radius: 0.9rem;
  padding: 0.8rem;
}

.info-list span {
  display: block;
  color: #94a3b8;
  font-size: 0.8rem;
}

.info-list strong {
  display: block;
  color: #fff;
  margin-top: 0.25rem;
}

.large-tags span {
  font-size: 0.85rem;
  padding: 0.4rem 0.7rem;
}

.text-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1rem;
}

.site-footer {
  padding: 3rem 0 1.6rem;
  background: #020617;
  border-top: 1px solid rgba(148, 163, 184, 0.16);
}

.footer-grid {
  gap: 1.5rem;
  align-items: flex-start;
}

.footer-brand {
  color: #fff;
  font-size: 1.4rem;
  font-weight: 950;
  margin-bottom: 0.6rem;
}

.site-footer p,
.footer-bottom {
  color: #94a3b8;
  line-height: 1.8;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.footer-links a {
  color: #cbd5e1;
  background: #0f172a;
  border-radius: 999px;
  padding: 0.55rem 0.85rem;
}

.footer-bottom {
  margin-top: 2rem;
  padding-top: 1.2rem;
  border-top: 1px solid rgba(148, 163, 184, 0.12);
}

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

  .menu-button {
    display: flex;
  }

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

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

  .detail-hero-grid {
    grid-template-columns: 220px minmax(0, 1fr);
  }
}

@media (max-width: 720px) {
  .hero-slider,
  .hero-content {
    min-height: 680px;
  }

  .hero-content {
    align-items: flex-end;
    padding-bottom: 6rem;
  }

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

  .movie-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.9rem;
  }

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

  .detail-cover {
    max-width: 220px;
  }

  .rank-board {
    grid-template-columns: 1fr;
  }

  .rank-item {
    grid-template-columns: 2.5rem 4rem minmax(0, 1fr);
  }

  .search-control {
    border-radius: 1rem;
    align-items: stretch;
  }

  .search-control button {
    padding-left: 1rem;
    padding-right: 1rem;
  }
}
