:root {
  --bg: #f8fafc;
  --panel: #ffffff;
  --ink: #0f172a;
  --muted: #64748b;
  --soft: #e2e8f0;
  --line: rgba(148, 163, 184, 0.32);
  --red: #dc2626;
  --orange: #f97316;
  --yellow: #facc15;
  --slate: #111827;
  --slate-light: #1f2937;
  --shadow: 0 24px 60px rgba(15, 23, 42, 0.14);
  --radius: 22px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: radial-gradient(circle at top left, rgba(249, 115, 22, 0.08), transparent 34%), var(--bg);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  line-height: 1.6;
}

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

img {
  display: block;
  width: 100%;
  height: auto;
}

button,
input {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: linear-gradient(90deg, rgba(15, 23, 42, 0.96), rgba(30, 41, 59, 0.96), rgba(15, 23, 42, 0.96));
  color: #ffffff;
  box-shadow: 0 14px 40px rgba(15, 23, 42, 0.24);
  backdrop-filter: blur(16px);
}

.site-nav {
  width: min(1200px, calc(100% - 32px));
  margin: 0 auto;
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
  letter-spacing: 0.02em;
}

.brand-mark {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--red), var(--orange));
  box-shadow: 0 10px 25px rgba(220, 38, 38, 0.3);
}

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

.site-menu {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-link {
  padding: 10px 14px;
  color: rgba(255, 255, 255, 0.82);
  border-radius: 999px;
  transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.nav-link:hover,
.nav-link.is-active {
  color: #ffffff;
  background: rgba(248, 113, 113, 0.16);
  transform: translateY(-1px);
}

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

.mobile-toggle span {
  display: block;
  height: 2px;
  margin: 5px 0;
  border-radius: 10px;
  background: #ffffff;
}

.hero {
  position: relative;
  overflow: hidden;
  color: #ffffff;
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 44%, #7f1d1d 100%);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 20% 10%, rgba(249, 115, 22, 0.25), transparent 26%), radial-gradient(circle at 80% 0%, rgba(220, 38, 38, 0.22), transparent 30%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  width: min(1200px, calc(100% - 32px));
  margin: 0 auto;
  padding: 72px 0 84px;
}

.hero-glow {
  position: absolute;
  width: 280px;
  height: 280px;
  border-radius: 999px;
  filter: blur(20px);
  opacity: 0.24;
}

.hero-glow-one {
  left: -90px;
  top: 100px;
  background: #ef4444;
}

.hero-glow-two {
  right: -80px;
  bottom: 80px;
  background: #f97316;
}

.hero-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 22px;
  color: rgba(255, 255, 255, 0.78);
}

.hero-topline a,
.breadcrumb a {
  color: #fed7aa;
}

.hero h1 {
  max-width: 920px;
  margin: 0;
  font-size: clamp(38px, 7vw, 76px);
  line-height: 1.05;
  letter-spacing: -0.06em;
}

.hero-lead {
  max-width: 780px;
  margin: 20px 0 28px;
  font-size: 18px;
  color: rgba(255, 255, 255, 0.78);
}

.hero-search,
.search-wide {
  display: flex;
  gap: 12px;
  max-width: 720px;
  padding: 8px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(14px);
}

.hero-search input,
.search-wide input,
.inline-search input {
  width: 100%;
  border: 0;
  outline: none;
  color: #0f172a;
  background: #ffffff;
}

.hero-search input,
.search-wide input {
  min-height: 48px;
  padding: 0 18px;
  border-radius: 999px;
}

.hero-search button {
  border: 0;
  padding: 0 24px;
  border-radius: 999px;
  color: #ffffff;
  font-weight: 800;
  background: linear-gradient(135deg, var(--red), var(--orange));
  cursor: pointer;
}

.hero-category-links,
.filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 18px 0 0;
}

.hero-category-links a,
.filter-chips button {
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  padding: 8px 14px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.1);
  cursor: pointer;
}

.hero-carousel {
  margin-top: 42px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 32px;
  background: rgba(15, 23, 42, 0.62);
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.28);
  overflow: hidden;
  backdrop-filter: blur(18px);
}

.hero-track {
  position: relative;
  min-height: 480px;
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  gap: 36px;
  align-items: stretch;
  padding: 28px;
  opacity: 0;
  transform: translateX(20px);
  pointer-events: none;
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.hero-slide.is-active {
  opacity: 1;
  transform: translateX(0);
  pointer-events: auto;
}

.hero-image {
  position: relative;
  min-height: 420px;
  overflow: hidden;
  border-radius: 26px;
  background: linear-gradient(135deg, #111827, #7f1d1d);
}

.hero-image::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.28));
}

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

.hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 20px 10px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  margin-bottom: 14px;
  padding: 7px 12px;
  border-radius: 999px;
  color: #fff7ed;
  background: linear-gradient(135deg, rgba(220, 38, 38, 0.9), rgba(249, 115, 22, 0.85));
  font-size: 13px;
  font-weight: 800;
}

.hero-copy h2 {
  margin: 0 0 14px;
  font-size: clamp(32px, 4vw, 58px);
  line-height: 1.08;
}

.hero-copy p {
  margin: 0;
  color: rgba(255, 255, 255, 0.76);
  font-size: 17px;
}

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

.hero-tags span,
.tag-row span {
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}

.hero-tags span {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.14);
}

.tag-row span {
  color: #b91c1c;
  background: #fee2e2;
}

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

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

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

.btn-primary {
  color: #ffffff;
  background: linear-gradient(135deg, var(--red), var(--orange));
  box-shadow: 0 14px 28px rgba(220, 38, 38, 0.28);
}

.btn-soft {
  color: #fed7aa;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.1);
}

.hero-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 0 0 24px;
}

.hero-arrow,
.hero-dot {
  border: 0;
  cursor: pointer;
}

.hero-arrow {
  width: 38px;
  height: 38px;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.12);
  font-size: 28px;
  line-height: 1;
}

.hero-dots {
  display: flex;
  gap: 8px;
}

.hero-dot {
  width: 9px;
  height: 9px;
  padding: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.34);
}

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

.page-main,
.detail-main,
.content-section {
  width: min(1200px, calc(100% - 32px));
  margin: 0 auto;
}

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

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

.section-heading h2 {
  margin: 0;
  font-size: clamp(28px, 4vw, 40px);
  line-height: 1.15;
}

.section-heading p {
  max-width: 680px;
  margin: 8px 0 0;
  color: var(--muted);
}

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

.movie-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--panel);
  box-shadow: 0 16px 35px 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);
}

.movie-cover-link {
  position: relative;
  display: block;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: linear-gradient(135deg, #111827, #7f1d1d);
}

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

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

.cover-pill,
.rank-badge {
  position: absolute;
  z-index: 2;
  border-radius: 999px;
  color: #ffffff;
  font-size: 12px;
  font-weight: 900;
}

.cover-pill {
  left: 10px;
  bottom: 10px;
  padding: 5px 9px;
  background: rgba(15, 23, 42, 0.72);
  backdrop-filter: blur(8px);
}

.rank-badge {
  top: 10px;
  left: 10px;
  min-width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--red), var(--orange));
  box-shadow: 0 10px 20px rgba(220, 38, 38, 0.28);
}

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

.movie-card-body h2 {
  margin: 0 0 6px;
  font-size: 17px;
  line-height: 1.35;
}

.movie-meta,
.movie-line {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.movie-line {
  display: -webkit-box;
  min-height: 42px;
  margin-top: 8px;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

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

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

.category-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, #ffffff, #fff7ed);
  box-shadow: 0 16px 35px rgba(15, 23, 42, 0.08);
  overflow: hidden;
}

.category-card > a {
  display: block;
  padding: 24px;
}

.category-icon {
  display: inline-flex;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  border-radius: 15px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--red), var(--orange));
}

.category-card h2 {
  margin: 16px 0 8px;
  font-size: 24px;
}

.category-card p {
  margin: 0;
  color: var(--muted);
}

.category-mini-list {
  display: grid;
  gap: 10px;
  padding: 0 18px 18px;
}

.mini-movie {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 10px;
  align-items: center;
  min-height: 72px;
  padding: 8px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.72);
}

.mini-movie img {
  width: 52px;
  height: 64px;
  object-fit: cover;
  border-radius: 10px;
  background: #111827;
}

.mini-movie strong,
.mini-movie em {
  display: block;
}

.mini-movie strong {
  font-size: 14px;
}

.mini-movie em {
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
}

.mini-rank {
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  grid-row: span 1;
  border-radius: 999px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--red), var(--orange));
  font-weight: 900;
  font-size: 12px;
}

.page-hero,
.detail-hero {
  margin-top: 34px;
  border-radius: 32px;
  color: #ffffff;
  background: linear-gradient(135deg, #111827, #1f2937 58%, #7f1d1d);
  box-shadow: var(--shadow);
}

.page-hero {
  display: grid;
  grid-template-columns: 1fr 0.78fr;
  gap: 32px;
  padding: 42px;
}

.compact-hero {
  display: block;
}

.page-hero h1,
.detail-info h1 {
  margin: 0;
  font-size: clamp(34px, 5vw, 56px);
  line-height: 1.08;
}

.page-hero p,
.detail-one-line {
  max-width: 760px;
  color: rgba(255, 255, 255, 0.75);
  font-size: 17px;
}

.page-actions .btn-soft {
  color: #ffffff;
}

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

.inline-search {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: min(360px, 100%);
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #ffffff;
}

.inline-search span,
.search-wide span {
  color: var(--muted);
  font-weight: 800;
  white-space: nowrap;
}

.search-wide {
  max-width: 780px;
  margin-top: 24px;
}

.filter-chips button {
  color: #ffffff;
}

.detail-main {
  padding-bottom: 24px;
}

.detail-hero {
  display: grid;
  grid-template-columns: minmax(260px, 360px) 1fr;
  gap: 34px;
  padding: 34px;
}

.detail-poster {
  overflow: hidden;
  border-radius: 26px;
  background: linear-gradient(135deg, #111827, #7f1d1d);
  box-shadow: 0 24px 55px rgba(0, 0, 0, 0.28);
}

.detail-poster img {
  aspect-ratio: 3 / 4;
  object-fit: cover;
}

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

.detail-meta-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 22px;
}

.detail-meta-grid div {
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.08);
}

.detail-meta-grid strong,
.detail-meta-grid span,
.detail-meta-grid a {
  display: block;
}

.detail-meta-grid strong {
  color: rgba(255, 255, 255, 0.58);
  font-size: 12px;
}

.detail-meta-grid span,
.detail-meta-grid a {
  margin-top: 3px;
  color: #ffffff;
  font-weight: 800;
}

.detail-tags span {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.14);
}

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

.player-box {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  background: #020617;
  box-shadow: 0 28px 70px rgba(2, 6, 23, 0.35);
}

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

.play-mask {
  position: absolute;
  inset: 0;
  z-index: 4;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  border: 0;
  color: #ffffff;
  background: linear-gradient(180deg, rgba(2, 6, 23, 0.18), rgba(2, 6, 23, 0.72));
  cursor: pointer;
}

.play-mask.is-hidden {
  display: none;
}

.play-circle {
  width: 82px;
  height: 82px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--red), var(--orange));
  box-shadow: 0 22px 45px rgba(220, 38, 38, 0.38);
  font-size: 28px;
  text-indent: 4px;
}

.play-mask strong {
  font-size: 22px;
}

.detail-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}

.article-card {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #ffffff;
  box-shadow: 0 16px 35px rgba(15, 23, 42, 0.08);
}

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

.article-card p {
  margin: 0;
  color: #334155;
  font-size: 16px;
}

.accent-card {
  background: linear-gradient(180deg, #fff7ed, #ffffff);
}

.site-footer {
  margin-top: 76px;
  color: #cbd5e1;
  background: linear-gradient(180deg, #111827, #020617);
}

.footer-inner {
  width: min(1200px, calc(100% - 32px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 0.8fr;
  gap: 34px;
  padding: 46px 0;
}

.footer-brand p {
  max-width: 420px;
  color: #94a3b8;
}

.footer-group h2 {
  margin: 0 0 12px;
  color: #ffffff;
  font-size: 18px;
}

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

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

.footer-bottom {
  border-top: 1px solid rgba(148, 163, 184, 0.18);
  padding: 18px;
  color: #94a3b8;
  text-align: center;
}

.search-item.is-filtered {
  display: none;
}

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

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

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

  .site-menu {
    position: absolute;
    top: 72px;
    left: 16px;
    right: 16px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 14px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 18px;
    background: rgba(15, 23, 42, 0.98);
  }

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

  .hero-slide,
  .page-hero,
  .detail-hero,
  .detail-content,
  .footer-inner {
    grid-template-columns: 1fr;
  }

  .hero-track {
    min-height: 780px;
  }

  .hero-image {
    min-height: 360px;
  }

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

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

  .section-heading,
  .section-heading.with-search {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 620px) {
  .brand-text {
    font-size: 20px;
  }

  .hero-inner {
    padding: 48px 0 60px;
  }

  .hero-search,
  .search-wide {
    flex-direction: column;
    border-radius: 24px;
  }

  .hero-search button {
    min-height: 46px;
  }

  .hero-slide {
    padding: 18px;
  }

  .hero-track {
    min-height: 740px;
  }

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

  .page-hero,
  .detail-hero,
  .article-card {
    padding: 22px;
    border-radius: 22px;
  }

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