:root {
  --dark-950: #050506;
  --dark-900: #09090b;
  --dark-850: #111113;
  --dark-800: #18181b;
  --dark-760: #202026;
  --dark-700: #27272f;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.14);
  --text: #f6f6f7;
  --muted: #a1a1aa;
  --soft: #71717a;
  --accent: #ef4444;
  --accent-dark: #b91c1c;
  --accent-soft: rgba(239, 68, 68, 0.14);
  --gold: #fbbf24;
  --radius: 18px;
  --shadow: 0 26px 80px rgba(0, 0, 0, 0.42);
  --glow: 0 0 28px rgba(239, 68, 68, 0.28);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at 10% 0%, rgba(239, 68, 68, 0.14), transparent 28rem),
    radial-gradient(circle at 80% 12%, rgba(185, 28, 28, 0.18), transparent 26rem),
    var(--dark-900);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  line-height: 1.65;
}

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

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

button,
input,
select {
  font: inherit;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  border-bottom: 1px solid var(--line);
  background: rgba(9, 9, 11, 0.92);
  backdrop-filter: blur(18px);
}

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

.logo,
.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.04em;
  white-space: nowrap;
}

.logo:hover {
  color: var(--accent);
}

.logo-mark {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 12px;
  color: #fff;
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  box-shadow: var(--glow);
  font-size: 14px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 18px;
  overflow: hidden;
}

.nav-link {
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
  transition: color 0.2s ease;
  white-space: nowrap;
}

.nav-link:hover,
.nav-link.active,
.mobile-link.active {
  color: var(--accent);
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: var(--dark-800);
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  border-radius: 2px;
  background: var(--text);
}

.mobile-menu {
  display: none;
  padding: 12px 16px 18px;
  border-top: 1px solid var(--line);
  background: rgba(9, 9, 11, 0.96);
}

.mobile-menu.is-open {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.mobile-link {
  padding: 10px 12px;
  border-radius: 12px;
  color: var(--muted);
  background: var(--dark-800);
}

.hero {
  position: relative;
  min-height: 760px;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background: var(--dark-950);
}

.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 {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.06);
  filter: saturate(1.08) contrast(1.05);
}

.hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(9, 9, 11, 0.96) 0%, rgba(9, 9, 11, 0.76) 38%, rgba(9, 9, 11, 0.28) 68%, rgba(9, 9, 11, 0.68) 100%),
    linear-gradient(0deg, var(--dark-900) 0%, transparent 42%),
    radial-gradient(circle at 20% 24%, rgba(239, 68, 68, 0.28), transparent 26rem);
}

.hero-content {
  position: relative;
  min-height: 640px;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) 360px;
  align-items: end;
  gap: 54px;
  padding: 86px 0 120px;
}

.hero-copy {
  max-width: 720px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border: 1px solid rgba(239, 68, 68, 0.35);
  border-radius: 999px;
  color: #fecaca;
  background: rgba(239, 68, 68, 0.12);
  font-weight: 800;
  font-size: 13px;
  letter-spacing: 0.02em;
}

.hero h1 {
  margin: 22px 0 16px;
  font-size: clamp(40px, 8vw, 82px);
  line-height: 0.98;
  letter-spacing: -0.08em;
}

.hero p {
  max-width: 680px;
  margin: 0 0 22px;
  color: #d4d4d8;
  font-size: clamp(16px, 2vw, 20px);
}

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

.hero-tags span,
.tag-row span,
.detail-tags span {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 4px 9px;
  border-radius: 999px;
  color: #d4d4d8;
  background: rgba(255, 255, 255, 0.08);
  font-size: 12px;
  font-weight: 700;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 14px;
  font-weight: 800;
  transition: transform 0.2s ease, background 0.2s ease, border 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn.primary {
  color: #fff;
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  box-shadow: var(--glow);
}

.btn.ghost {
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(12px);
}

.hero-poster {
  display: block;
  align-self: center;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 28px;
  overflow: hidden;
  transform: rotate(2deg);
  box-shadow: var(--shadow), var(--glow);
}

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

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

.hero-dot {
  width: 26px;
  height: 6px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.32);
  cursor: pointer;
  transition: width 0.2s ease, background 0.2s ease;
}

.hero-dot.is-active {
  width: 48px;
  background: var(--accent);
}

.hero-search-panel {
  position: absolute;
  left: 50%;
  bottom: 24px;
  z-index: 5;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  transform: translateX(-50%);
}

.hero-search-card {
  display: grid;
  grid-template-columns: minmax(190px, 0.6fr) minmax(180px, 1fr);
  align-items: center;
  gap: 16px;
  padding: 14px;
  border: 1px solid var(--line-strong);
  border-radius: 18px;
  background: rgba(24, 24, 27, 0.82);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.hero-search-card strong {
  display: block;
}

.hero-search-card span {
  display: block;
  color: var(--muted);
  font-size: 13px;
}

.hero-search-card input,
.filter-bar input,
.filter-bar select {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  outline: none;
  color: var(--text);
  background: rgba(9, 9, 11, 0.72);
  padding: 0 14px;
}

.hero-search-card input:focus,
.filter-bar input:focus,
.filter-bar select:focus {
  border-color: rgba(239, 68, 68, 0.7);
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.12);
}

.hero-category-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.hero-category-links a {
  padding: 10px 12px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  color: #e4e4e7;
  background: rgba(24, 24, 27, 0.76);
  backdrop-filter: blur(16px);
  font-size: 13px;
  font-weight: 800;
}

.hero-category-links a:hover {
  border-color: rgba(239, 68, 68, 0.7);
  color: #fff;
  background: var(--accent-soft);
}

.content-section {
  padding: 58px 0 0;
}

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

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

.section-heading h1,
.section-heading h2 {
  margin: 0;
  font-size: clamp(26px, 4vw, 42px);
  line-height: 1.1;
  letter-spacing: -0.05em;
}

.section-more {
  color: #fecaca;
  font-weight: 800;
}

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

.movie-card {
  display: block;
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(24, 24, 27, 0.72);
  transition: transform 0.24s ease, box-shadow 0.24s ease, border-color 0.24s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  border-color: rgba(239, 68, 68, 0.5);
  box-shadow: var(--glow), var(--shadow);
}

.poster-frame {
  position: relative;
  margin: 0;
  overflow: hidden;
  background: var(--dark-700);
}

.poster-frame img {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  transition: transform 0.45s ease;
}

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

.rating-badge,
.duration-badge {
  position: absolute;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 3px 8px;
  border-radius: 8px;
  color: #fff;
  background: rgba(9, 9, 11, 0.86);
  font-size: 12px;
  font-weight: 900;
  backdrop-filter: blur(12px);
}

.rating-badge {
  top: 10px;
  right: 10px;
  color: #fde68a;
}

.duration-badge {
  right: 10px;
  bottom: 10px;
}

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

.movie-card h2,
.movie-card h3 {
  margin: 0 0 8px;
  overflow: hidden;
  color: #fff;
  font-size: 16px;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
  transition: color 0.2s ease;
}

.movie-card:hover h2,
.movie-card:hover h3 {
  color: #fecaca;
}

.movie-card p {
  display: -webkit-box;
  min-height: 42px;
  margin: 0 0 10px;
  overflow: hidden;
  color: var(--muted);
  font-size: 13px;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.movie-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: var(--soft);
  font-size: 12px;
}

.tag-row {
  margin-top: 9px;
}

.movie-card.compact .movie-card-body {
  padding: 12px;
}

.movie-card.compact p {
  display: none;
}

.split-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 24px;
}

.rank-panel,
.info-panel,
.filter-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(24, 24, 27, 0.7);
  box-shadow: var(--shadow);
}

.rank-panel {
  padding: 18px;
}

.rank-panel h2 {
  margin: 0 0 14px;
  font-size: 20px;
}

.rank-list {
  display: grid;
  gap: 10px;
}

.rank-row {
  display: grid;
  grid-template-columns: 34px 50px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 8px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
  transition: background 0.2s ease, transform 0.2s ease;
}

.rank-row:hover {
  transform: translateX(3px);
  background: var(--accent-soft);
}

.rank-index {
  color: var(--accent);
  font-weight: 900;
}

.rank-row img {
  width: 50px;
  height: 68px;
  border-radius: 9px;
  object-fit: cover;
  background: var(--dark-700);
}

.rank-title {
  overflow: hidden;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rank-score {
  color: #fde68a;
  font-weight: 900;
}

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

.category-tile {
  display: block;
  min-height: 236px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(239, 68, 68, 0.12), rgba(255, 255, 255, 0.04)),
    rgba(24, 24, 27, 0.76);
  transition: transform 0.24s ease, border-color 0.24s ease, box-shadow 0.24s ease;
}

.category-tile:hover {
  transform: translateY(-5px);
  border-color: rgba(239, 68, 68, 0.5);
  box-shadow: var(--glow);
}

.category-covers {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 14px;
}

.category-covers img {
  width: 100%;
  aspect-ratio: 2 / 3;
  border-radius: 10px;
  object-fit: cover;
  background: var(--dark-700);
}

.category-tile h2 {
  margin: 0 0 8px;
  font-size: 20px;
}

.category-tile p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.page-hero {
  padding: 70px 0 30px;
  background:
    radial-gradient(circle at 20% 10%, rgba(239, 68, 68, 0.24), transparent 24rem),
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), transparent);
}

.page-hero h1 {
  margin: 0 0 12px;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.06;
  letter-spacing: -0.06em;
}

.page-hero p {
  max-width: 760px;
  margin: 0;
  color: var(--muted);
  font-size: 17px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
  color: var(--soft);
  font-size: 13px;
}

.breadcrumb a:hover {
  color: var(--accent);
}

.filter-bar {
  display: grid;
  grid-template-columns: minmax(220px, 1.4fr) repeat(3, minmax(140px, 0.7fr));
  gap: 14px;
  margin: 28px 0 26px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(24, 24, 27, 0.72);
}

.filter-bar label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.detail-hero {
  position: relative;
  overflow: hidden;
  padding: 44px 0 36px;
  background: var(--dark-950);
}

.detail-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(22px) saturate(1.08);
  transform: scale(1.12);
  opacity: 0.34;
}

.detail-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(9, 9, 11, 0.97), rgba(9, 9, 11, 0.76), rgba(9, 9, 11, 0.94)),
    linear-gradient(0deg, var(--dark-900), transparent 58%);
}

.detail-wrap {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 32px;
  align-items: end;
}

.detail-cover {
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: 24px;
  box-shadow: var(--shadow), var(--glow);
}

.detail-cover img {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  background: var(--dark-700);
}

.detail-copy h1 {
  margin: 12px 0 12px;
  font-size: clamp(34px, 5vw, 64px);
  line-height: 1.05;
  letter-spacing: -0.06em;
}

.detail-copy p {
  max-width: 820px;
  margin: 0 0 18px;
  color: #d4d4d8;
  font-size: 17px;
}

.detail-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 16px 0 18px;
}

.detail-facts span {
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: #e4e4e7;
  font-size: 13px;
  font-weight: 800;
}

.player-section {
  padding: 42px 0 0;
}

.player-card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: #000;
  box-shadow: var(--shadow);
}

.player-card video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
}

.player-cover-layer {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  cursor: pointer;
  background:
    linear-gradient(0deg, rgba(0, 0, 0, 0.58), rgba(0, 0, 0, 0.28)),
    rgba(0, 0, 0, 0.32);
  transition: opacity 0.24s ease, visibility 0.24s ease;
}

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

.play-button {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 58px;
  padding: 0 26px;
  border: 0;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  box-shadow: var(--glow);
  cursor: pointer;
  font-weight: 900;
}

.play-button span:first-child {
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
}

.detail-main {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 26px;
  padding: 34px 0 0;
}

.article-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(24, 24, 27, 0.72);
  padding: 24px;
}

.article-card h2 {
  margin: 0 0 14px;
  font-size: 24px;
}

.article-card p {
  margin: 0 0 18px;
  color: #d4d4d8;
}

.info-panel {
  padding: 18px;
}

.info-list {
  display: grid;
  gap: 10px;
  margin: 0;
}

.info-list div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}

.info-list dt {
  color: var(--soft);
}

.info-list dd {
  margin: 0;
  text-align: right;
  font-weight: 800;
}

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

.site-footer {
  margin-top: 70px;
  border-top: 1px solid var(--line);
  background: rgba(5, 5, 6, 0.88);
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(180px, 0.7fr) minmax(200px, 0.8fr);
  gap: 32px;
  padding: 42px 0;
}

.footer-grid h2 {
  margin: 0 0 12px;
  font-size: 16px;
}

.footer-grid p,
.footer-grid a,
.footer-bottom {
  color: var(--muted);
  font-size: 14px;
}

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

.footer-grid a:hover {
  color: var(--accent);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 0;
  border-top: 1px solid var(--line);
}

[data-movie-card].is-hidden {
  display: none;
}

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

  .menu-toggle {
    display: inline-block;
  }

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

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

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

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

@media (max-width: 820px) {
  .hero {
    min-height: 790px;
  }

  .hero-content {
    grid-template-columns: 1fr;
    align-items: end;
    gap: 24px;
    padding: 58px 0 190px;
  }

  .hero-poster {
    display: none;
  }

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

  .hero-search-card,
  .filter-bar {
    grid-template-columns: 1fr;
  }

  .hero-category-links {
    justify-content: flex-start;
  }

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

  .detail-wrap {
    grid-template-columns: 120px minmax(0, 1fr);
    gap: 18px;
  }

  .detail-copy h1 {
    font-size: 32px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }
}

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

  .mobile-menu.is-open {
    grid-template-columns: 1fr;
  }

  .hero h1 {
    font-size: 40px;
  }

  .hero p,
  .detail-copy p,
  .page-hero p {
    font-size: 15px;
  }

  .movie-grid {
    gap: 14px;
  }

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

  .movie-card h2,
  .movie-card h3 {
    font-size: 14px;
  }

  .detail-wrap {
    display: block;
  }

  .detail-cover {
    width: 44%;
    margin-bottom: 18px;
  }

  .article-card,
  .info-panel,
  .rank-panel {
    padding: 16px;
  }
}
