:root {
  --page-bg: #fff7ed;
  --surface: #ffffff;
  --surface-soft: #fff1e8;
  --text: #111827;
  --muted: #6b7280;
  --line: rgba(17, 24, 39, 0.12);
  --brand: #ef4444;
  --brand-deep: #dc2626;
  --brand-warm: #f97316;
  --gold: #facc15;
  --dark: #111827;
  --shadow: 0 24px 70px rgba(127, 29, 29, 0.18);
  --radius: 22px;
  --container: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  background:
    radial-gradient(circle at top left, rgba(255, 237, 213, 0.9), transparent 34rem),
    linear-gradient(180deg, #ffffff 0%, var(--page-bg) 54%, #ffffff 100%);
}

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

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

img.is-missing {
  display: none;
}

button,
input,
select {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(229, 231, 235, 0.9);
  box-shadow: 0 12px 36px rgba(17, 24, 39, 0.06);
}

.header-inner {
  max-width: var(--container);
  height: 72px;
  margin: 0 auto;
  padding: 0 22px;
  display: flex;
  align-items: center;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex: 0 0 auto;
}

.logo-mark {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  color: #ffffff;
  font-weight: 900;
  font-size: 22px;
  background: linear-gradient(135deg, var(--brand), var(--brand-warm), var(--gold));
  box-shadow: 0 16px 32px rgba(239, 68, 68, 0.28);
}

.logo-text strong {
  display: block;
  font-size: 20px;
  line-height: 1.1;
}

.logo-text span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
}

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

.site-nav a {
  padding: 10px 12px;
  border-radius: 999px;
  color: #374151;
  font-size: 15px;
  transition: 0.2s ease;
}

.site-nav a:hover,
.site-nav a.active {
  color: var(--brand-deep);
  background: #fff1f2;
}

.header-search {
  position: relative;
  width: min(280px, 26vw);
}

.header-search input {
  width: 100%;
  border: 1px solid #e5e7eb;
  border-radius: 999px;
  padding: 10px 44px 10px 16px;
  outline: none;
  background: #ffffff;
  transition: 0.2s ease;
}

.header-search input:focus {
  border-color: rgba(239, 68, 68, 0.45);
  box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.12);
}

.header-search button {
  position: absolute;
  right: 5px;
  top: 5px;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 999px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--brand), var(--brand-warm));
  cursor: pointer;
}

.menu-toggle {
  display: none;
  margin-left: auto;
  border: 0;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  color: var(--brand-deep);
  background: #fff1f2;
  cursor: pointer;
}

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 22px;
}

.hero {
  position: relative;
  overflow: hidden;
  color: #ffffff;
  background: linear-gradient(135deg, #dc2626 0%, #f97316 56%, #facc15 100%);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 15% 18%, rgba(255, 255, 255, 0.22), transparent 26rem),
    radial-gradient(circle at 85% 20%, rgba(127, 29, 29, 0.28), transparent 24rem);
  pointer-events: none;
}

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

.hero-slide {
  position: absolute;
  inset: 0;
  display: none;
  align-items: center;
}

.hero-slide.is-active {
  display: flex;
}

.hero-slide .container {
  position: relative;
  z-index: 2;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.72fr);
  gap: 56px;
  align-items: center;
  min-height: 620px;
  padding: 72px 22px 84px;
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  padding: 8px 14px;
  border-radius: 999px;
  color: #fff7ed;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(16px);
}

.hero h1 {
  margin: 0 0 18px;
  font-size: clamp(40px, 7vw, 78px);
  line-height: 1.02;
  letter-spacing: -0.045em;
}

.hero h2 {
  margin: 0 0 18px;
  font-size: clamp(34px, 5vw, 62px);
  line-height: 1.06;
  letter-spacing: -0.035em;
}

.hero p {
  max-width: 680px;
  margin: 0 0 26px;
  color: #fff7ed;
  font-size: 19px;
  line-height: 1.8;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 28px;
}

.hero-meta span,
.tag {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 6px 12px;
  border-radius: 999px;
  color: #7f1d1d;
  background: #ffffff;
  font-size: 13px;
  font-weight: 700;
}

.hero-actions,
.action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}

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

.btn-primary {
  color: var(--brand-deep);
  background: #ffffff;
  box-shadow: 0 18px 40px rgba(127, 29, 29, 0.18);
}

.btn-primary:hover {
  transform: translateY(-2px);
  background: #fff7ed;
}

.btn-ghost {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.25);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.24);
}

.btn-warm {
  color: #ffffff;
  background: linear-gradient(135deg, var(--brand), var(--brand-warm));
  box-shadow: 0 18px 36px rgba(239, 68, 68, 0.25);
}

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

.hero-visual {
  position: relative;
}

.hero-poster {
  position: relative;
  overflow: hidden;
  min-height: 430px;
  border-radius: 34px;
  background: linear-gradient(135deg, rgba(127, 29, 29, 0.22), rgba(251, 191, 36, 0.26));
  box-shadow: 0 38px 90px rgba(127, 29, 29, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.22);
}

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

.hero-poster::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(17, 24, 39, 0.68));
}

.hero-card {
  position: absolute;
  left: -28px;
  bottom: 28px;
  right: 34px;
  z-index: 2;
  padding: 22px;
  border-radius: 24px;
  color: #ffffff;
  background: rgba(17, 24, 39, 0.64);
  border: 1px solid rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(18px);
}

.hero-card strong {
  display: block;
  margin-bottom: 8px;
  font-size: 22px;
}

.hero-card span {
  color: #fde68a;
  font-size: 14px;
}

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

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

.hero-dot.is-active {
  width: 58px;
  background: #ffffff;
}

.section {
  padding: 70px 0;
}

.section-soft {
  background: rgba(255, 237, 213, 0.38);
}

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

.section-heading h2,
.page-title h1 {
  margin: 0;
  font-size: clamp(28px, 4vw, 42px);
  letter-spacing: -0.03em;
}

.section-heading p,
.page-title p {
  max-width: 760px;
  margin: 10px 0 0;
  color: var(--muted);
  line-height: 1.8;
}

.grid {
  display: grid;
  gap: 22px;
}

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

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

.movie-card,
.category-card,
.rank-card,
.detail-panel,
.player-panel {
  background: var(--surface);
  border: 1px solid rgba(229, 231, 235, 0.92);
  border-radius: var(--radius);
  box-shadow: 0 14px 34px rgba(17, 24, 39, 0.07);
}

.movie-card {
  overflow: hidden;
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

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

.poster {
  position: relative;
  overflow: hidden;
  aspect-ratio: 2 / 2.75;
  background:
    radial-gradient(circle at 30% 20%, rgba(255, 255, 255, 0.44), transparent 7rem),
    linear-gradient(135deg, #fee2e2, #fed7aa 50%, #fef3c7);
}

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

.poster img.is-missing {
  display: none;
}

.poster-badge,
.poster-type {
  position: absolute;
  z-index: 2;
  top: 12px;
  padding: 6px 10px;
  border-radius: 999px;
  color: #ffffff;
  font-size: 12px;
  font-weight: 800;
  background: rgba(17, 24, 39, 0.72);
  backdrop-filter: blur(12px);
}

.poster-badge {
  left: 12px;
}

.poster-type {
  right: 12px;
  background: rgba(220, 38, 38, 0.82);
}

.movie-body {
  padding: 18px;
}

.movie-body h3 {
  margin: 0 0 10px;
  font-size: 18px;
  line-height: 1.35;
}

.movie-body h3 a:hover {
  color: var(--brand-deep);
}

.movie-desc {
  min-height: 48px;
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}

.movie-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: #6b7280;
  font-size: 13px;
}

.movie-meta span {
  padding: 5px 9px;
  border-radius: 999px;
  background: #f9fafb;
}

.category-card {
  padding: 22px;
  min-height: 168px;
  transition: 0.22s ease;
}

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

.category-card strong {
  display: block;
  margin-bottom: 10px;
  font-size: 20px;
}

.category-card p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.75;
}

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

.rank-card {
  display: grid;
  grid-template-columns: 54px 88px minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  padding: 14px;
}

.rank-number {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  color: #ffffff;
  font-weight: 900;
  background: linear-gradient(135deg, var(--brand), var(--brand-warm));
}

.rank-thumb {
  overflow: hidden;
  width: 88px;
  aspect-ratio: 2 / 2.6;
  border-radius: 14px;
  background: linear-gradient(135deg, #fee2e2, #fed7aa);
}

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

.rank-card h3 {
  margin: 0 0 8px;
  font-size: 18px;
}

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

.page-hero {
  padding: 64px 0 42px;
  color: #ffffff;
  background:
    radial-gradient(circle at 15% 18%, rgba(255, 255, 255, 0.22), transparent 28rem),
    linear-gradient(135deg, #991b1b, #ef4444 42%, #f97316 100%);
}

.page-title h1 {
  color: #ffffff;
}

.page-title p {
  color: #ffedd5;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
  color: #ffedd5;
  font-size: 14px;
}

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

.filter-bar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 180px 180px;
  gap: 14px;
  margin: 0 0 26px;
  padding: 16px;
  border-radius: 20px;
  background: #ffffff;
  border: 1px solid rgba(229, 231, 235, 0.94);
  box-shadow: 0 14px 34px rgba(17, 24, 39, 0.06);
}

.filter-bar input,
.filter-bar select {
  width: 100%;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  padding: 12px 14px;
  outline: none;
  background: #ffffff;
}

.filter-bar input:focus,
.filter-bar select:focus {
  border-color: rgba(239, 68, 68, 0.42);
  box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.11);
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(0, 1.14fr);
  gap: 30px;
  align-items: start;
}

.detail-poster {
  overflow: hidden;
  border-radius: 30px;
  background: linear-gradient(135deg, #fee2e2, #fed7aa);
  box-shadow: var(--shadow);
}

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

.detail-panel {
  padding: 28px;
}

.detail-panel h1 {
  margin: 0 0 16px;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.12;
  letter-spacing: -0.03em;
}

.detail-summary {
  color: #374151;
  font-size: 16px;
  line-height: 1.95;
}

.detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 20px 0 0;
}

.detail-tags span {
  padding: 7px 12px;
  border-radius: 999px;
  color: #7f1d1d;
  background: #ffedd5;
  font-weight: 700;
  font-size: 13px;
}

.player-panel {
  overflow: hidden;
  margin-top: 30px;
}

.player-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 18px 22px;
  background: #111827;
  color: #ffffff;
}

.player-head h2 {
  margin: 0;
  font-size: 20px;
}

.video-wrap {
  position: relative;
  background: #000000;
}

.video-wrap video {
  width: 100%;
  min-height: 420px;
  max-height: 72vh;
  display: block;
  cursor: pointer;
  background: #000000;
}

.play-overlay {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 2;
  width: 86px;
  height: 86px;
  border: 0;
  border-radius: 999px;
  color: #ffffff;
  font-size: 28px;
  background: linear-gradient(135deg, var(--brand), var(--brand-warm));
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.32);
  transform: translate(-50%, -50%);
  cursor: pointer;
}

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

.article-section {
  margin-top: 30px;
}

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

.article-section p {
  margin: 0 0 18px;
  color: #374151;
  font-size: 16px;
  line-height: 1.95;
}

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

.footer-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 48px 22px;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) repeat(3, minmax(140px, 1fr));
  gap: 34px;
}

.footer h3,
.footer h4 {
  margin: 0 0 14px;
  color: #ffffff;
}

.footer p,
.footer a {
  color: #d1d5db;
  line-height: 1.8;
}

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

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

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

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

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

  .hero-visual {
    max-width: 540px;
  }
}

@media (max-width: 760px) {
  .header-inner {
    height: auto;
    min-height: 68px;
    flex-wrap: wrap;
    padding: 12px 16px;
  }

  .logo-text span {
    display: none;
  }

  .menu-toggle {
    display: inline-grid;
    place-items: center;
  }

  .site-nav,
  .header-search {
    display: none;
    width: 100%;
  }

  .site-nav.is-open,
  .header-search.is-open {
    display: grid;
  }

  .site-nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-left: 0;
  }

  .site-nav a {
    background: #fff7ed;
  }

  .hero-slider,
  .hero-grid {
    min-height: auto;
  }

  .hero-grid {
    padding: 56px 18px 78px;
    gap: 30px;
  }

  .hero-poster,
  .hero-poster img {
    min-height: 320px;
    height: 320px;
  }

  .hero-card {
    left: 18px;
    right: 18px;
    bottom: 18px;
  }

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

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

  .rank-card {
    grid-template-columns: 42px 68px minmax(0, 1fr);
  }

  .rank-card .btn {
    grid-column: 2 / 4;
  }

  .video-wrap video {
    min-height: 260px;
  }

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

@media (max-width: 480px) {
  .movie-grid,
  .category-grid {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 48px 0;
  }
}
