:root {
  --bg: #f8fafc;
  --paper: #ffffff;
  --ink: #111827;
  --muted: #6b7280;
  --line: #e5e7eb;
  --brand: #ea580c;
  --brand-dark: #c2410c;
  --brand-red: #dc2626;
  --soft: #fff7ed;
  --shadow: 0 18px 48px rgba(17, 24, 39, 0.12);
  --radius: 18px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  line-height: 1.65;
}

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

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  color: #fff;
  background: linear-gradient(90deg, #ea580c, #dc2626);
  box-shadow: 0 12px 30px rgba(194, 65, 12, 0.24);
}

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

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 24px;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.brand-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 14px;
  color: var(--brand);
  background: #fff;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.16);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 26px;
  font-weight: 700;
}

.site-nav a {
  opacity: 0.95;
  transition: color 0.2s ease, transform 0.2s ease;
}

.site-nav a:hover {
  color: #fed7aa;
  transform: translateY(-1px);
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.12);
  padding: 10px;
}

.nav-toggle span {
  display: block;
  height: 2px;
  margin: 5px 0;
  background: #fff;
}

.hero {
  width: min(1440px, calc(100% - 32px));
  margin: 28px auto 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 24px;
  min-height: 560px;
}

.hero-stage,
.hero-side,
.page-hero,
.detail-hero {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  box-shadow: var(--shadow);
}

.hero-stage {
  background: #111827;
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 290px;
  align-items: center;
  gap: 36px;
  padding: 58px;
  color: #fff;
  background-position: center;
  background-size: cover;
  opacity: 0;
  transform: scale(1.02);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.hero-slide.is-active {
  opacity: 1;
  transform: scale(1);
  z-index: 2;
}

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

.eyebrow {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  border-radius: 999px;
  padding: 7px 13px;
  margin-bottom: 16px;
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(12px);
}

.eyebrow.dark {
  color: var(--brand-dark);
  background: #ffedd5;
}

.hero h1,
.detail-hero h1,
.page-hero h1 {
  margin: 0 0 18px;
  font-size: clamp(34px, 5vw, 66px);
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.hero p,
.detail-hero p,
.page-hero p {
  max-width: 760px;
  margin: 0 0 24px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 18px;
}

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

.hero-tags span,
.tag-row span {
  border-radius: 999px;
  padding: 5px 10px;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.17);
}

.tag-row span {
  color: var(--brand-dark);
  background: #ffedd5;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

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

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

.btn.primary {
  color: #fff;
  background: linear-gradient(90deg, #f97316, #ef4444);
  box-shadow: 0 16px 34px rgba(239, 68, 68, 0.34);
}

.btn.ghost {
  color: #fff;
  background: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(10px);
}

.hero-poster,
.detail-poster {
  display: block;
  overflow: hidden;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.32);
  background: linear-gradient(135deg, #7c2d12, #111827);
}

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

.hero-dots {
  position: absolute;
  z-index: 3;
  left: 58px;
  bottom: 36px;
  display: flex;
  gap: 10px;
}

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

.hero-dot.is-active {
  width: 34px;
  background: #fff;
}

.hero-side {
  padding: 26px;
  color: #fff;
  background: linear-gradient(145deg, #111827, #7f1d1d 62%, #ea580c);
}

.hero-side h2 {
  margin: 0 0 18px;
  font-size: 24px;
}

.hero-side-item {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 14px;
  padding: 12px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.1);
  margin-bottom: 12px;
  transition: transform 0.2s ease, background 0.2s ease;
}

.hero-side-item:hover {
  transform: translateX(4px);
  background: rgba(255, 255, 255, 0.18);
}

.hero-side-item img {
  width: 72px;
  height: 96px;
  object-fit: cover;
  border-radius: 14px;
  background: #1f2937;
}

.hero-side-item strong,
.hero-side-item em {
  display: block;
}

.hero-side-item strong {
  margin-top: 5px;
  font-size: 15px;
  line-height: 1.4;
}

.hero-side-item em {
  margin-top: 8px;
  color: #fed7aa;
  font-size: 12px;
  font-style: normal;
}

.hero-side-more {
  display: block;
  margin-top: 18px;
  border-radius: 999px;
  padding: 12px 16px;
  text-align: center;
  font-weight: 800;
  color: #7c2d12;
  background: #fff7ed;
}

.section-intro,
.section-block,
.category-content,
.ranking-content {
  padding: 58px 0 0;
}

.section-intro h2,
.section-title-row h2,
.filter-head h2,
.content-card h2,
.side-card h2 {
  margin: 0;
  color: #1f2937;
  font-size: clamp(26px, 3vw, 38px);
  line-height: 1.18;
}

.section-intro p,
.filter-head p {
  max-width: 720px;
  color: var(--muted);
}

.filter-panel {
  margin-bottom: 24px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: 0 12px 34px rgba(17, 24, 39, 0.06);
}

.filter-controls {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 180px 160px;
  gap: 14px;
  margin-top: 18px;
}

.filter-controls input,
.filter-controls select {
  width: 100%;
  border: 1px solid #fed7aa;
  border-radius: 14px;
  padding: 13px 15px;
  color: var(--ink);
  outline: none;
  background: #fffaf5;
}

.filter-controls input:focus,
.filter-controls select:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 4px rgba(249, 115, 22, 0.12);
}

.empty-state {
  margin: 18px 0 0;
  border-radius: 14px;
  padding: 18px;
  color: #991b1b;
  background: #fef2f2;
}

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

.movie-card {
  overflow: hidden;
  border: 1px solid rgba(229, 231, 235, 0.9);
  border-radius: 20px;
  background: var(--paper);
  box-shadow: 0 10px 28px rgba(17, 24, 39, 0.07);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.movie-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 22px 46px rgba(17, 24, 39, 0.15);
}

.poster-link {
  position: relative;
  display: block;
  overflow: hidden;
  background: linear-gradient(135deg, #111827, #7c2d12);
}

.poster-link img {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  transition: transform 0.3s ease, filter 0.3s ease;
}

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

.play-badge {
  position: absolute;
  left: 50%;
  top: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 54px;
  border-radius: 999px;
  color: #fff;
  background: rgba(234, 88, 12, 0.88);
  transform: translate(-50%, -50%) scale(0.84);
  opacity: 0;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

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

.rating-badge {
  position: absolute;
  right: 10px;
  bottom: 10px;
  border-radius: 999px;
  padding: 4px 9px;
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  background: rgba(17, 24, 39, 0.78);
}

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

.movie-title {
  display: -webkit-box;
  min-height: 48px;
  overflow: hidden;
  color: #1f2937;
  font-size: 18px;
  font-weight: 800;
  line-height: 1.35;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.movie-title:hover {
  color: var(--brand-dark);
}

.movie-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 10px 0;
  color: var(--muted);
  font-size: 13px;
}

.movie-meta span,
.movie-meta a {
  border-radius: 999px;
  padding: 3px 8px;
  background: #f3f4f6;
}

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

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

.section-title-row > a {
  color: var(--brand-dark);
  font-weight: 800;
}

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

.category-card,
.category-overview-card {
  position: relative;
  overflow: hidden;
  border-radius: 22px;
  min-height: 210px;
  padding: 24px;
  color: #fff;
  background: linear-gradient(135deg, #111827, #ea580c);
  box-shadow: var(--shadow);
}

.category-card img,
.category-overview-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.28;
  transition: transform 0.35s ease;
}

.category-card:hover img,
.category-overview-card:hover img {
  transform: scale(1.07);
}

.category-card span,
.category-card p,
.category-overview-card div {
  position: relative;
  z-index: 2;
}

.category-card span {
  display: block;
  margin-bottom: 12px;
  font-size: 24px;
  font-weight: 900;
}

.category-card p {
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
}

.two-column {
  display: grid;
  grid-template-columns: 430px minmax(0, 1fr);
  gap: 24px;
  padding-bottom: 64px;
}

.rank-panel,
.strip-panel,
.content-card,
.side-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  background: var(--paper);
  box-shadow: 0 12px 30px rgba(17, 24, 39, 0.07);
}

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

.rank-item {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) 48px;
  align-items: center;
  gap: 12px;
  border-radius: 14px;
  padding: 12px;
  background: #fff7ed;
  transition: transform 0.2s ease, background 0.2s ease;
}

.rank-item:hover {
  transform: translateX(4px);
  background: #ffedd5;
}

.rank-no {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 12px;
  color: #fff;
  font-weight: 900;
  background: linear-gradient(135deg, #f97316, #dc2626);
}

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

.rank-score {
  color: var(--brand-dark);
  font-weight: 900;
  text-align: right;
}

.strip-scroll {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 170px;
  gap: 14px;
  overflow-x: auto;
  padding-bottom: 8px;
}

.strip-card {
  display: block;
  overflow: hidden;
  border-radius: 18px;
  background: #111827;
}

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

.strip-card span {
  display: block;
  padding: 10px;
  color: #fff;
  font-weight: 800;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.site-footer {
  margin-top: 70px;
  color: #d1d5db;
  background: #111827;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 38px;
  padding: 46px 0;
}

.footer-brand {
  color: #fff;
}

.footer-grid h2 {
  margin: 0 0 14px;
  color: #fff;
  font-size: 18px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
}

.footer-links.vertical {
  display: grid;
}

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

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 18px 0;
  color: #9ca3af;
  text-align: center;
}

.page-main {
  min-height: 60vh;
}

.page-hero {
  margin: 28px auto 0;
  width: min(1200px, calc(100% - 32px));
  min-height: 330px;
  display: flex;
  align-items: center;
  color: #fff;
  background-color: #111827;
  background-size: cover;
  background-position: center;
}

.page-hero.compact {
  background: linear-gradient(135deg, #111827, #7f1d1d 56%, #ea580c);
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
  color: rgba(255, 255, 255, 0.74);
  font-size: 14px;
}

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

.category-overview-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  padding-top: 42px;
}

.category-overview-card {
  display: grid;
  align-items: end;
  min-height: 280px;
}

.category-overview-card h2 {
  margin: 0 0 8px;
  font-size: 30px;
}

.sample-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.sample-links a {
  border-radius: 999px;
  padding: 6px 10px;
  background: rgba(255, 255, 255, 0.14);
}

.ranking-list-page {
  display: grid;
  gap: 14px;
}

.ranking-row {
  display: grid;
  grid-template-columns: 58px 92px minmax(0, 1fr) 70px;
  align-items: center;
  gap: 18px;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 16px;
  background: var(--paper);
  box-shadow: 0 8px 24px rgba(17, 24, 39, 0.06);
}

.ranking-poster img {
  width: 92px;
  height: 124px;
  border-radius: 14px;
  object-fit: cover;
  background: #111827;
}

.ranking-info h2 {
  margin: 0 0 6px;
  font-size: 20px;
}

.ranking-info p {
  margin: 0;
  color: var(--muted);
}

.ranking-score {
  color: var(--brand-dark);
  font-size: 24px;
  font-weight: 900;
  text-align: center;
}

.ranking-no {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  color: #fff;
  font-weight: 900;
  background: linear-gradient(135deg, #f97316, #dc2626);
}

.detail-hero {
  margin: 28px auto 0;
  width: min(1200px, calc(100% - 32px));
  color: #fff;
  background-size: cover;
  background-position: center;
}

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

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

.detail-meta span,
.detail-meta strong {
  border-radius: 999px;
  padding: 7px 12px;
  background: rgba(255, 255, 255, 0.16);
}

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

.detail-content,
.detail-aside {
  display: grid;
  align-content: start;
  gap: 22px;
}

.player-box {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  background: #030712;
  box-shadow: var(--shadow);
}

.movie-video {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
}

.player-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  border: 0;
  color: #fff;
  font-size: 18px;
  font-weight: 900;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.16), rgba(0, 0, 0, 0.58));
  cursor: pointer;
}

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

.player-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 76px;
  height: 76px;
  border-radius: 999px;
  background: linear-gradient(135deg, #f97316, #ef4444);
  box-shadow: 0 18px 38px rgba(239, 68, 68, 0.34);
}

.player-error {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 18px;
  margin: 0;
  border-radius: 12px;
  padding: 12px 14px;
  color: #fff;
  background: rgba(185, 28, 28, 0.88);
}

.content-card p {
  margin: 14px 0 0;
  color: #374151;
  font-size: 17px;
}

.info-table dl {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 18px 0 0;
}

.info-table div {
  border-radius: 14px;
  padding: 14px;
  background: #f9fafb;
}

.info-table dt {
  color: var(--muted);
  font-size: 13px;
}

.info-table dd {
  margin: 4px 0 0;
  font-weight: 800;
}

.prev-next {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.prev-next a {
  border-radius: 16px;
  padding: 14px 16px;
  color: var(--brand-dark);
  font-weight: 800;
  background: #ffedd5;
}

.side-links {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.side-links a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-radius: 14px;
  padding: 12px;
  background: #fff7ed;
}

.side-links span {
  overflow: hidden;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.side-links em {
  color: var(--brand-dark);
  font-style: normal;
  font-weight: 900;
}

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

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

@media (max-width: 1080px) {
  .hero,
  .two-column,
  .detail-layout {
    grid-template-columns: 1fr;
  }

  .hero-side {
    display: none;
  }

  .hero {
    min-height: 540px;
  }

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

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

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

@media (max-width: 780px) {
  .nav-toggle {
    display: block;
  }

  .site-nav {
    position: absolute;
    top: 72px;
    left: 16px;
    right: 16px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    border-radius: 18px;
    padding: 10px;
    background: #9a3412;
    box-shadow: var(--shadow);
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav a {
    padding: 12px 14px;
    border-radius: 12px;
  }

  .hero {
    min-height: 640px;
  }

  .hero-slide,
  .detail-hero-grid {
    grid-template-columns: 1fr;
    padding: 34px 24px;
  }

  .hero-poster,
  .detail-poster {
    max-width: 220px;
  }

  .hero-dots {
    left: 24px;
    bottom: 22px;
  }

  .filter-controls {
    grid-template-columns: 1fr;
  }

  .movie-grid,
  .category-grid,
  .category-overview-grid,
  .related-grid,
  .footer-grid,
  .info-table dl,
  .prev-next {
    grid-template-columns: 1fr;
  }

  .ranking-row {
    grid-template-columns: 42px 74px minmax(0, 1fr);
  }

  .ranking-score {
    grid-column: 3;
    text-align: left;
  }
}

@media (max-width: 520px) {
  .container,
  .hero,
  .page-hero,
  .detail-hero {
    width: min(100% - 20px, 1200px);
  }

  .brand {
    font-size: 20px;
  }

  .hero {
    margin-top: 14px;
    min-height: 690px;
  }

  .hero h1,
  .detail-hero h1,
  .page-hero h1 {
    font-size: 34px;
  }

  .page-hero,
  .detail-hero,
  .hero-stage {
    border-radius: 20px;
  }

  .movie-grid {
    gap: 16px;
  }
}
