:root {
  --page: #f8fafc;
  --surface: #ffffff;
  --surface-soft: #fff7ed;
  --text: #172033;
  --muted: #667085;
  --line: #e8edf5;
  --brand: #ef4444;
  --brand-dark: #dc2626;
  --brand-warm: #f97316;
  --shadow: 0 20px 60px rgba(15, 23, 42, 0.12);
  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-sm: 12px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background:
    radial-gradient(circle at 10% -10%, rgba(239, 68, 68, 0.10), transparent 30%),
    radial-gradient(circle at 90% 5%, rgba(249, 115, 22, 0.10), transparent 32%),
    var(--page);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(232, 237, 245, 0.85);
}

.header-inner {
  width: min(1240px, calc(100% - 32px));
  height: 68px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

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

.brand-mark {
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--brand), var(--brand-warm));
  box-shadow: 0 10px 22px rgba(239, 68, 68, 0.28);
}

.brand-name {
  font-size: 21px;
  background: linear-gradient(135deg, var(--brand-dark), var(--brand-warm));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 30px;
  color: #334155;
  font-size: 15px;
  font-weight: 700;
}

.site-nav a {
  position: relative;
  padding: 8px 0;
}

.site-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  transform: scaleX(0);
  transform-origin: right;
  background: linear-gradient(90deg, var(--brand), var(--brand-warm));
  transition: transform 0.25s ease;
}

.site-nav a:hover {
  color: var(--brand-dark);
}

.site-nav a:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 12px;
  background: #fff1f2;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  background: #991b1b;
}

.page-main {
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto;
  padding: 34px 0 20px;
}

.hero-carousel {
  position: relative;
  min-height: 570px;
  overflow: hidden;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  background: #111827;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}

.hero-slide.is-active {
  opacity: 1;
  visibility: visible;
}

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.02);
}

.hero-backdrop {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(2, 6, 23, 0.86), rgba(2, 6, 23, 0.54), rgba(2, 6, 23, 0.12)),
    linear-gradient(0deg, rgba(2, 6, 23, 0.58), transparent 42%);
}

.hero-content {
  position: absolute;
  top: 50%;
  left: clamp(24px, 7vw, 86px);
  width: min(610px, calc(100% - 48px));
  transform: translateY(-50%);
  color: #fff;
}

.hero-kicker,
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  color: #fff;
  font-size: 14px;
  font-weight: 800;
  border-radius: 999px;
  background: rgba(239, 68, 68, 0.88);
  box-shadow: 0 12px 30px rgba(239, 68, 68, 0.24);
}

.hero-content h1,
.hero-content h2 {
  margin: 18px 0 16px;
  font-size: clamp(34px, 6vw, 62px);
  line-height: 1.04;
  letter-spacing: -0.05em;
}

.hero-content p {
  margin: 0 0 24px;
  color: rgba(255, 255, 255, 0.88);
  font-size: clamp(16px, 2vw, 20px);
  line-height: 1.75;
}

.hero-tags,
.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 28px;
}

.hero-tags span,
.chip-row span,
.detail-tags a,
.detail-tags span {
  padding: 7px 12px;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(8px);
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

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

.btn-primary {
  color: #fff;
  background: linear-gradient(135deg, var(--brand), var(--brand-warm));
  box-shadow: 0 16px 32px rgba(239, 68, 68, 0.28);
}

.btn-secondary {
  color: #fff;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(8px);
}

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

.hero-control {
  position: absolute;
  top: 50%;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 999px;
  color: #fff;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(8px);
  cursor: pointer;
  transform: translateY(-50%);
}

.hero-prev {
  left: 18px;
}

.hero-next {
  right: 18px;
}

.hero-dots {
  position: absolute;
  left: 50%;
  bottom: 24px;
  display: flex;
  gap: 8px;
  transform: translateX(-50%);
}

.hero-dot {
  width: 10px;
  height: 10px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.52);
  cursor: pointer;
  transition: width 0.25s ease, background 0.25s ease;
}

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

.quick-search {
  margin: -34px auto 44px;
  position: relative;
  z-index: 5;
  width: min(920px, calc(100% - 34px));
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 20px 46px rgba(15, 23, 42, 0.12);
  backdrop-filter: blur(18px);
}

.quick-search form,
.search-box {
  display: flex;
  align-items: center;
  gap: 12px;
}

.quick-search input,
.search-box input,
.filter-selects select {
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  padding: 0 18px;
  color: var(--text);
  outline: 0;
}

.quick-search button {
  min-width: 124px;
}

.content-section {
  margin: 56px 0;
}

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

.section-heading h2,
.page-heading h1 {
  margin: 0 0 8px;
  color: #111827;
  font-size: clamp(26px, 4vw, 38px);
  line-height: 1.1;
  letter-spacing: -0.035em;
}

.section-heading p,
.page-heading p {
  margin: 0;
  color: var(--muted);
  line-height: 1.8;
}

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

.movie-card {
  overflow: hidden;
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: 18px;
  background: var(--surface);
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.06);
  transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
}

.movie-card:hover {
  border-color: rgba(239, 68, 68, 0.24);
  box-shadow: 0 22px 46px rgba(15, 23, 42, 0.13);
  transform: translateY(-6px);
}

.movie-cover {
  position: relative;
  display: block;
  height: 268px;
  overflow: hidden;
  background: #111827;
}

.movie-card-compact .movie-cover {
  height: 210px;
}

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

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

.movie-type {
  position: absolute;
  top: 12px;
  right: 12px;
  padding: 5px 9px;
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  border-radius: 999px;
  background: rgba(2, 6, 23, 0.70);
  backdrop-filter: blur(10px);
}

.cover-play {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 58px;
  height: 58px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--brand-dark);
  font-size: 21px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.72);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

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

.movie-info {
  padding: 16px;
}

.movie-title {
  display: -webkit-box;
  min-height: 48px;
  margin-bottom: 8px;
  overflow: hidden;
  color: #111827;
  font-size: 17px;
  line-height: 1.45;
  font-weight: 850;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

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

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

.movie-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  color: #94a3b8;
  font-size: 12px;
  font-weight: 700;
}

.movie-meta a {
  color: var(--brand-dark);
}

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

.category-card {
  position: relative;
  overflow: hidden;
  min-height: 190px;
  padding: 26px;
  color: #fff;
  border-radius: 24px;
  background:
    linear-gradient(135deg, rgba(239, 68, 68, 0.92), rgba(249, 115, 22, 0.82)),
    #991b1b;
  box-shadow: 0 18px 42px rgba(239, 68, 68, 0.18);
}

.category-card::after {
  content: "";
  position: absolute;
  right: -42px;
  bottom: -42px;
  width: 150px;
  height: 150px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
}

.category-card h2,
.category-card h3 {
  position: relative;
  margin: 0 0 10px;
  font-size: 25px;
}

.category-card p {
  position: relative;
  margin: 0 0 22px;
  color: rgba(255, 255, 255, 0.86);
  line-height: 1.7;
}

.category-card span {
  position: relative;
  font-weight: 850;
}

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

.rank-item {
  display: grid;
  grid-template-columns: 58px 98px 1fr auto;
  gap: 16px;
  align-items: center;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.05);
}

.rank-num {
  color: var(--brand-dark);
  font-size: 30px;
  font-weight: 900;
  text-align: center;
}

.rank-item img {
  width: 98px;
  height: 126px;
  object-fit: cover;
  border-radius: 12px;
  background: #111827;
}

.rank-item h2,
.rank-item h3 {
  margin: 0 0 8px;
  font-size: 20px;
}

.rank-item p {
  margin: 0 0 12px;
  color: var(--muted);
  line-height: 1.7;
}

.rank-score {
  min-width: 58px;
  color: #f97316;
  font-size: 22px;
  font-weight: 900;
}

.filter-panel {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) auto;
  gap: 16px;
  align-items: center;
  margin: 0 0 26px;
  padding: 18px;
  border: 1px solid rgba(226, 232, 240, 0.88);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.06);
}

.search-box span {
  color: var(--brand-dark);
  font-weight: 900;
}

.filter-selects {
  display: flex;
  gap: 10px;
}

.no-results {
  display: none;
  padding: 30px;
  color: var(--muted);
  text-align: center;
  border: 1px dashed #cbd5e1;
  border-radius: 18px;
  background: #fff;
}

.no-results.is-visible {
  display: block;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 8px 0 18px;
  color: var(--muted);
  font-size: 14px;
}

.breadcrumb a {
  color: var(--brand-dark);
  font-weight: 800;
}

.detail-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(320px, 0.7fr);
  gap: 28px;
  align-items: start;
}

.player-shell {
  overflow: hidden;
  border-radius: 26px;
  background: #020617;
  box-shadow: var(--shadow);
}

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

.player-stage video {
  width: 100%;
  height: 100%;
  display: block;
  background: #020617;
}

.player-cover {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  background: #020617;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.player-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.64;
}

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

.player-play {
  position: absolute;
  width: 88px;
  height: 88px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--brand-dark);
  font-size: 32px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 16px 42px rgba(0, 0, 0, 0.32);
  cursor: pointer;
}

.detail-panel {
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 26px;
  background: var(--surface);
  box-shadow: 0 14px 36px rgba(15, 23, 42, 0.06);
}

.detail-panel h1 {
  margin: 0 0 14px;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.16;
  letter-spacing: -0.04em;
}

.detail-one-line {
  margin: 0 0 20px;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.8;
}

.detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 20px;
}

.detail-tags a,
.detail-tags span {
  color: var(--brand-dark);
  background: #fff1f2;
  backdrop-filter: none;
}

.article-block {
  margin: 34px 0;
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: 26px;
  background: var(--surface);
  box-shadow: 0 14px 36px rgba(15, 23, 42, 0.05);
}

.article-block h2 {
  margin: 0 0 16px;
  font-size: 26px;
}

.article-block p {
  margin: 0;
  color: #334155;
  font-size: 16px;
  line-height: 2;
}

.prev-next {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 24px;
}

.prev-next a {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
  font-weight: 800;
}

.site-footer {
  margin-top: 72px;
  color: #cbd5e1;
  background: #0f172a;
}

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

.brand-footer .brand-name {
  color: #fff;
  background: none;
}

.footer-brand p {
  margin: 16px 0 0;
  max-width: 520px;
  color: #94a3b8;
  line-height: 1.8;
}

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

.footer-links a {
  display: block;
  margin: 10px 0;
  color: #cbd5e1;
}

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

.copyright {
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto;
  padding: 20px 0 28px;
  color: #64748b;
  border-top: 1px solid rgba(148, 163, 184, 0.16);
  text-align: center;
}

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

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

@media (max-width: 760px) {
  .header-inner {
    height: 64px;
  }

  .site-nav {
    position: absolute;
    top: 64px;
    left: 16px;
    right: 16px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: #fff;
    box-shadow: var(--shadow);
  }

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

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

  .site-nav a::after {
    display: none;
  }

  .nav-toggle {
    display: block;
  }

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

  .hero-carousel {
    min-height: 520px;
    border-radius: 22px;
  }

  .hero-control {
    display: none;
  }

  .quick-search form,
  .filter-panel,
  .footer-inner {
    grid-template-columns: 1fr;
  }

  .quick-search form,
  .filter-selects {
    display: grid;
    grid-template-columns: 1fr;
  }

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

  .movie-cover {
    height: 210px;
  }

  .rank-item {
    grid-template-columns: 46px 78px 1fr;
  }

  .rank-item img {
    width: 78px;
    height: 104px;
  }

  .rank-score {
    grid-column: 2 / 4;
    font-size: 18px;
  }

  .prev-next {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .page-main,
  .header-inner,
  .footer-inner,
  .copyright {
    width: min(100% - 22px, 1240px);
  }

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

  .movie-cover,
  .movie-card-compact .movie-cover {
    height: 300px;
  }
}
