:root {
  --bg: #0f172a;
  --panel: #111827;
  --card: #ffffff;
  --muted: #64748b;
  --text: #0f172a;
  --light: #f8fafc;
  --line: rgba(148, 163, 184, 0.22);
  --red: #ef4444;
  --orange: #f97316;
  --amber: #f59e0b;
  --blue: #38bdf8;
  --shadow: 0 20px 60px rgba(15, 23, 42, 0.18);
  --radius: 24px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Inter, "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  color: var(--text);
  background: #f1f5f9;
}

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

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

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

.nav-wrap {
  max-width: 1280px;
  height: 72px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
  white-space: nowrap;
}

.brand-mark {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--red), var(--orange));
  box-shadow: 0 14px 35px rgba(239, 68, 68, 0.35);
}

.brand-text {
  font-size: 21px;
  background: linear-gradient(90deg, #fb7185, #fb923c);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 22px;
  margin-left: auto;
}

.desktop-nav a,
.mobile-panel a {
  color: #e2e8f0;
  font-weight: 700;
  transition: color 0.2s ease;
}

.desktop-nav a:hover,
.mobile-panel a:hover {
  color: #fb7185;
}

.top-search,
.mobile-search {
  display: flex;
  align-items: center;
  overflow: hidden;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.3);
  background: rgba(30, 41, 59, 0.82);
}

.top-search input,
.mobile-search input,
.filter-bar input,
.search-panel input {
  min-width: 0;
  border: 0;
  outline: 0;
  color: white;
  background: transparent;
}

.top-search input,
.mobile-search input {
  width: 200px;
  padding: 12px 14px;
}

.top-search button,
.mobile-search button {
  border: 0;
  padding: 12px 16px;
  color: white;
  cursor: pointer;
  background: linear-gradient(135deg, var(--red), var(--orange));
}

.menu-toggle {
  display: none;
  border: 0;
  color: white;
  background: rgba(148, 163, 184, 0.18);
  border-radius: 12px;
  padding: 10px 13px;
  cursor: pointer;
}

.mobile-panel {
  display: none;
  padding: 16px 24px 22px;
  border-top: 1px solid rgba(148, 163, 184, 0.18);
}

.mobile-panel.is-open {
  display: block;
}

.mobile-panel nav {
  display: grid;
  gap: 12px;
  margin-top: 16px;
}

.hero {
  min-height: 680px;
  position: relative;
  overflow: hidden;
  background: #020617;
  color: white;
}

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

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

.hero-bg,
.detail-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.44;
  filter: saturate(1.08);
}

.hero-overlay,
.detail-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 78% 18%, rgba(249, 115, 22, 0.38), transparent 34%),
    radial-gradient(circle at 12% 42%, rgba(239, 68, 68, 0.26), transparent 30%),
    linear-gradient(90deg, rgba(2, 6, 23, 0.98), rgba(15, 23, 42, 0.74) 48%, rgba(15, 23, 42, 0.42));
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 1280px;
  min-height: 680px;
  margin: 0 auto;
  padding: 94px 24px 80px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 50px;
  align-items: center;
}

.eyebrow {
  margin: 0 0 12px;
  color: #fb923c;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hero-copy h1,
.detail-copy h1,
.page-hero h1 {
  margin: 0;
  font-size: clamp(38px, 6vw, 72px);
  line-height: 1.02;
  letter-spacing: -0.04em;
}

.hero-copy p,
.detail-copy p,
.page-hero p {
  max-width: 720px;
  color: #e2e8f0;
  font-size: 19px;
  line-height: 1.8;
}

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

.hero-tags span,
.detail-tags span,
.tag-row span {
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  padding: 7px 11px;
  color: #e2e8f0;
  background: rgba(255, 255, 255, 0.09);
  font-size: 13px;
  font-weight: 700;
}

.tag-row span {
  color: #475569;
  border-color: rgba(100, 116, 139, 0.22);
  background: #f8fafc;
}

.hero-actions,
.section-head,
.score-line {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.hero-actions {
  margin-top: 28px;
}

.btn-primary,
.btn-ghost,
.section-head > a,
.related-section .section-head a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border-radius: 999px;
  padding: 0 20px;
  font-weight: 900;
}

.btn-primary {
  color: white;
  background: linear-gradient(135deg, var(--red), var(--orange));
  box-shadow: 0 16px 38px rgba(239, 68, 68, 0.34);
}

.btn-ghost {
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.09);
}

.hero-poster {
  position: relative;
  overflow: hidden;
  border-radius: 30px;
  box-shadow: 0 35px 90px rgba(2, 6, 23, 0.55);
  transform: rotate(2deg);
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.hero-poster img {
  width: 100%;
  height: 520px;
  object-fit: cover;
}

.hero-poster span {
  position: absolute;
  left: 20px;
  bottom: 20px;
  padding: 9px 14px;
  border-radius: 999px;
  color: white;
  font-weight: 900;
  background: rgba(239, 68, 68, 0.9);
}

.hero-control {
  position: absolute;
  top: 50%;
  z-index: 3;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 999px;
  color: white;
  font-size: 34px;
  cursor: pointer;
  background: rgba(15, 23, 42, 0.58);
}

.hero-prev {
  left: 24px;
}

.hero-next {
  right: 24px;
}

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

.hero-dot {
  width: 10px;
  height: 10px;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.38);
}

.hero-dot.is-active {
  width: 34px;
  background: linear-gradient(135deg, var(--red), var(--orange));
}

.section {
  max-width: 1280px;
  margin: 0 auto;
  padding: 74px 24px;
}

.dark-section {
  margin-top: -36px;
  position: relative;
  z-index: 5;
  border-radius: 34px 34px 0 0;
  background: #f8fafc;
}

.section-head {
  justify-content: space-between;
  margin-bottom: 30px;
}

.section-head h2,
.panel-title h2,
.detail-article h2 {
  margin: 0;
  font-size: clamp(26px, 3vw, 38px);
  line-height: 1.15;
  letter-spacing: -0.03em;
}

.section-head > a,
.related-section .section-head a {
  color: #ef4444;
  background: #fff1f2;
}

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

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

.movie-card {
  overflow: hidden;
  border-radius: 24px;
  background: white;
  box-shadow: 0 14px 36px rgba(15, 23, 42, 0.08);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
}

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

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

.movie-card:hover .poster-link img,
.category-tile:hover img,
.ranking-poster:hover img {
  transform: scale(1.08);
}

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

.poster-play {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: white;
  background: linear-gradient(135deg, var(--red), var(--orange));
  transform: translate(-50%, -50%) scale(0.86);
  opacity: 0;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

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

.card-body {
  padding: 18px;
}

.meta-row {
  display: flex;
  gap: 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.card-body h3 {
  margin: 10px 0 8px;
  font-size: 20px;
  line-height: 1.25;
}

.card-body h3 a:hover,
.ranking-info h2 a:hover,
.detail-article a:hover {
  color: #ef4444;
}

.card-body p {
  min-height: 50px;
  margin: 0 0 14px;
  color: #475569;
  line-height: 1.65;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

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

.category-tile {
  position: relative;
  min-height: 210px;
  overflow: hidden;
  border-radius: 24px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 20px;
  color: white;
  background: #0f172a;
  box-shadow: 0 18px 46px rgba(15, 23, 42, 0.14);
}

.category-tile img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.78;
  transition: transform 0.4s ease;
}

.category-tile strong,
.category-tile em {
  position: relative;
  z-index: 2;
}

.category-tile strong {
  font-size: 24px;
}

.category-tile em {
  margin-top: 6px;
  color: #e2e8f0;
  font-style: normal;
  line-height: 1.55;
}

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

.ranking-panel {
  align-self: start;
  position: sticky;
  top: 92px;
  border-radius: 28px;
  padding: 24px;
  background: #0f172a;
  color: white;
  box-shadow: var(--shadow);
}

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

.rank-item {
  display: grid;
  grid-template-columns: 40px 58px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 10px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.06);
}

.rank-item img {
  width: 58px;
  height: 76px;
  border-radius: 12px;
  object-fit: cover;
}

.rank-no {
  color: #fb923c;
  font-size: 20px;
  font-weight: 900;
}

.rank-copy strong,
.rank-copy em {
  display: block;
}

.rank-copy strong {
  color: white;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.rank-copy em {
  margin-top: 4px;
  color: #94a3b8;
  font-style: normal;
  font-size: 13px;
}

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

.slim-hero {
  min-height: 330px;
  display: flex;
  align-items: center;
  padding: 78px 24px;
  background:
    radial-gradient(circle at 18% 20%, rgba(239, 68, 68, 0.26), transparent 28%),
    linear-gradient(135deg, #020617, #1e293b);
}

.slim-hero > div {
  max-width: 1280px;
  width: 100%;
  margin: 0 auto;
}

.category-hero {
  min-height: 430px;
  display: grid;
  place-items: center;
  padding: 90px 24px;
}

.category-hero img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.32;
}

.category-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(2, 6, 23, 0.96), rgba(15, 23, 42, 0.56));
}

.category-hero > div {
  position: relative;
  z-index: 2;
  max-width: 1280px;
  width: 100%;
}

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

.breadcrumb.light {
  color: #cbd5e1;
}

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

.filter-bar input,
.search-panel input {
  width: 100%;
  color: #0f172a;
  border-radius: 18px;
  padding: 16px 18px;
  background: white;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
}

.inline-filter {
  width: min(360px, 100%);
}

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

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

.category-card-large {
  display: grid;
  grid-template-columns: 200px minmax(0, 1fr);
  gap: 20px;
  padding: 18px;
  border-radius: 28px;
  background: white;
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.08);
}

.category-cover {
  position: relative;
  overflow: hidden;
  border-radius: 22px;
  min-height: 220px;
  background: #0f172a;
}

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

.category-cover span {
  position: absolute;
  left: 14px;
  bottom: 14px;
  padding: 8px 12px;
  border-radius: 999px;
  color: white;
  font-weight: 900;
  background: rgba(239, 68, 68, 0.92);
}

.category-card-large h2 {
  margin: 8px 0 10px;
  font-size: 28px;
}

.category-card-large p {
  color: #475569;
  line-height: 1.7;
}

.mini-links {
  display: grid;
  gap: 8px;
}

.mini-links a {
  color: #ef4444;
  font-weight: 800;
}

.ranking-grid {
  display: grid;
  gap: 18px;
}

.ranking-card {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 22px;
  padding: 16px;
  border-radius: 26px;
  background: white;
  box-shadow: 0 12px 34px rgba(15, 23, 42, 0.07);
}

.ranking-poster {
  position: relative;
  overflow: hidden;
  border-radius: 20px;
  aspect-ratio: 3 / 4;
  background: #0f172a;
}

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

.ranking-poster span {
  position: absolute;
  left: 12px;
  top: 12px;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  color: white;
  font-weight: 900;
  background: linear-gradient(135deg, var(--red), var(--orange));
}

.score-line strong {
  color: #ef4444;
  font-size: 28px;
}

.score-line span {
  color: #64748b;
  font-weight: 800;
}

.ranking-info h2 {
  margin: 8px 0 10px;
  font-size: 28px;
}

.ranking-info p {
  color: #475569;
  line-height: 1.7;
}

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

.detail-inner {
  position: relative;
  z-index: 2;
  max-width: 1280px;
  min-height: 620px;
  margin: 0 auto;
  padding: 84px 24px;
  display: grid;
  grid-template-columns: 330px minmax(0, 1fr);
  gap: 42px;
  align-items: center;
}

.detail-poster {
  overflow: hidden;
  border-radius: 28px;
  box-shadow: 0 35px 90px rgba(2, 6, 23, 0.55);
}

.detail-poster img {
  width: 100%;
  height: 460px;
  object-fit: cover;
}

.detail-copy h1 {
  max-width: 850px;
}

.detail-section {
  margin-top: -44px;
  position: relative;
  z-index: 3;
}

.player-card,
.detail-article,
.related-section {
  border-radius: 30px;
  background: white;
  box-shadow: var(--shadow);
}

.player-card {
  overflow: hidden;
}

.player-box {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: #020617;
}

.player-box video,
.player-cover,
.player-cover img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.player-box video {
  object-fit: contain;
  z-index: 1;
}

.player-cover {
  z-index: 2;
  border: 0;
  padding: 0;
  cursor: pointer;
  background: #020617;
}

.player-cover img {
  object-fit: cover;
  opacity: 0.68;
}

.player-cover span {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 88px;
  height: 88px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: white;
  font-size: 36px;
  transform: translate(-50%, -50%);
  background: linear-gradient(135deg, var(--red), var(--orange));
  box-shadow: 0 20px 50px rgba(239, 68, 68, 0.35);
}

.player-cover.is-hidden {
  display: none;
}

.player-title {
  padding: 24px 28px 30px;
}

.player-title h2 {
  margin: 0 0 8px;
  font-size: 30px;
}

.player-title p {
  margin: 0;
  color: #475569;
  line-height: 1.7;
}

.detail-article {
  margin-top: 28px;
  padding: 32px;
}

.detail-article p {
  color: #334155;
  font-size: 17px;
  line-height: 1.95;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-top: 24px;
}

.info-grid div {
  padding: 16px;
  border-radius: 18px;
  background: #f8fafc;
}

.info-grid strong,
.info-grid span {
  display: block;
}

.info-grid strong {
  color: #64748b;
  font-size: 13px;
  margin-bottom: 6px;
}

.info-grid span {
  font-weight: 900;
}

.related-section {
  margin-top: 28px;
  padding: 30px;
}

.site-footer {
  color: #cbd5e1;
  background: #020617;
}

.footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 42px 24px;
  display: grid;
  grid-template-columns: 360px minmax(0, 1fr);
  gap: 40px;
}

.footer-logo {
  color: white;
  font-size: 24px;
  font-weight: 900;
}

.footer-inner p {
  line-height: 1.75;
}

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

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

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

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

  .split-section,
  .hero-content,
  .detail-inner {
    grid-template-columns: 1fr;
  }

  .hero-poster {
    max-width: 360px;
    transform: none;
  }

  .ranking-panel {
    position: static;
  }
}

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

  .menu-toggle {
    display: block;
    margin-left: auto;
  }

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

  .hero-content {
    padding-top: 72px;
  }

  .hero-poster {
    display: none;
  }

  .hero-control {
    display: none;
  }

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

  .category-card-large,
  .ranking-card {
    grid-template-columns: 1fr;
  }

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

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

@media (max-width: 560px) {
  .nav-wrap {
    padding: 0 16px;
  }

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

  .section {
    padding: 48px 16px;
  }

  .movie-grid,
  .compact-grid,
  .category-grid,
  .category-large-grid,
  .info-grid {
    grid-template-columns: 1fr;
  }

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

  .detail-inner {
    padding: 56px 16px;
  }

  .detail-poster img {
    height: auto;
  }

  .player-cover span {
    width: 70px;
    height: 70px;
    font-size: 28px;
  }
}
