:root {
  color-scheme: light;
  --brand-a: #e11d48;
  --brand-b: #f97316;
  --brand-c: #f59e0b;
  --ink: #111827;
  --muted: #6b7280;
  --soft: #f8fafc;
  --card: #ffffff;
  --line: #e5e7eb;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  color: var(--ink);
  background: linear-gradient(180deg, #f8fafc 0%, #ffffff 45%, #fff7ed 100%);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
}

img {
  display: block;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: linear-gradient(90deg, var(--brand-a), var(--brand-b), var(--brand-c));
  color: #ffffff;
  box-shadow: 0 16px 38px rgba(225, 29, 72, 0.24);
}

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

.header-inner {
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
}

.site-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 21px;
  font-weight: 900;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.logo-mark {
  width: 36px;
  height: 36px;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.22);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.22);
}

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

.main-nav a {
  opacity: 0.96;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.main-nav a:hover,
.main-nav a.is-active {
  opacity: 1;
  transform: translateY(-1px);
}

.search-box {
  position: relative;
  width: 250px;
  max-width: 32vw;
}

.search-box input {
  width: 100%;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  padding: 10px 42px 10px 18px;
  outline: none;
}

.search-box input::placeholder {
  color: rgba(255, 255, 255, 0.78);
}

.search-box button {
  position: absolute;
  top: 50%;
  right: 8px;
  transform: translateY(-50%);
  width: 32px;
  height: 32px;
  border-radius: 999px;
  color: var(--brand-a);
  background: #ffffff;
  font-weight: 900;
}

.menu-toggle {
  display: none;
  color: #ffffff;
  font-size: 28px;
  line-height: 1;
}

.mobile-nav {
  display: none;
  padding: 0 0 16px;
}

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

.mobile-nav a {
  display: block;
  padding: 12px 0;
  font-weight: 700;
}

.hero {
  position: relative;
  min-height: 72vh;
  overflow: hidden;
  background: #111827;
}

.hero-slide {
  display: none;
  min-height: 72vh;
  position: relative;
}

.hero-slide.active {
  display: block;
}

.hero-image {
  position: absolute;
  inset: 0;
}

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

.hero-image::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.86), rgba(0, 0, 0, 0.48), rgba(0, 0, 0, 0.08));
}

.hero-content {
  position: relative;
  z-index: 2;
  min-height: 72vh;
  display: flex;
  align-items: center;
  color: #ffffff;
}

.hero-panel {
  width: min(660px, 100%);
  padding: 54px 0;
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--brand-a), var(--brand-b));
  font-size: 14px;
  font-weight: 800;
}

.hero h1 {
  margin: 20px 0 16px;
  font-size: clamp(36px, 6vw, 72px);
  line-height: 1.05;
  font-weight: 950;
  letter-spacing: -0.04em;
}

.hero p {
  max-width: 620px;
  color: rgba(255, 255, 255, 0.88);
  font-size: clamp(16px, 2.2vw, 21px);
  line-height: 1.8;
}

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

.meta-pill {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 5px 12px;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.18);
  font-size: 13px;
  font-weight: 700;
  backdrop-filter: blur(8px);
}

.primary-button,
.secondary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 0 24px;
  border-radius: 999px;
  font-weight: 900;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.primary-button {
  color: #ffffff;
  background: linear-gradient(90deg, var(--brand-a), var(--brand-b));
  box-shadow: 0 18px 38px rgba(225, 29, 72, 0.32);
}

.secondary-button {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.20);
  backdrop-filter: blur(10px);
}

.primary-button:hover,
.secondary-button:hover {
  transform: translateY(-2px) scale(1.02);
}

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

.hero-control {
  position: absolute;
  z-index: 5;
  top: 50%;
  transform: translateY(-50%);
  width: 46px;
  height: 46px;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(12px);
  font-size: 26px;
}

.hero-control.prev {
  left: 24px;
}

.hero-control.next {
  right: 24px;
}

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

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

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

.section {
  padding: 56px 0 0;
}

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

.section-title {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: clamp(26px, 4vw, 38px);
  line-height: 1.15;
  font-weight: 950;
  letter-spacing: -0.025em;
}

.section-title::before {
  content: "";
  width: 7px;
  height: 36px;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--brand-a), var(--brand-b));
}

.section-desc {
  color: var(--muted);
  line-height: 1.8;
}

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

.category-card {
  position: relative;
  overflow: hidden;
  min-height: 150px;
  padding: 24px;
  border-radius: 24px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--brand-a), var(--brand-b));
  box-shadow: 0 22px 45px rgba(249, 115, 22, 0.18);
}

.category-card:nth-child(2n) {
  background: linear-gradient(135deg, #7c3aed, #f97316);
}

.category-card:nth-child(3n) {
  background: linear-gradient(135deg, #0f766e, #f59e0b);
}

.category-card:nth-child(4n) {
  background: linear-gradient(135deg, #1d4ed8, #e11d48);
}

.category-card h2,
.category-card h3 {
  position: relative;
  z-index: 1;
  font-size: 23px;
  font-weight: 950;
}

.category-card p {
  position: relative;
  z-index: 1;
  margin-top: 8px;
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.65;
}

.category-card::after {
  content: "▶";
  position: absolute;
  right: 20px;
  bottom: 10px;
  color: rgba(255, 255, 255, 0.18);
  font-size: 80px;
  line-height: 1;
}

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

.movie-card {
  overflow: hidden;
  border-radius: 20px;
  background: var(--card);
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 48px rgba(15, 23, 42, 0.16);
}

.poster {
  position: relative;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  background: linear-gradient(135deg, #111827, #7f1d1d);
}

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

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

.poster-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  padding: 5px 9px;
  border-radius: 999px;
  color: #ffffff;
  background: var(--brand-b);
  font-size: 12px;
  font-weight: 900;
}

.poster-mask {
  position: absolute;
  inset: auto 0 0;
  padding: 40px 12px 12px;
  color: #ffffff;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.78));
  font-size: 13px;
  font-weight: 700;
}

.movie-body {
  padding: 16px;
}

.movie-title {
  color: var(--ink);
  font-size: 18px;
  line-height: 1.35;
  font-weight: 950;
}

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

.movie-desc {
  margin-top: 8px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 12px;
  color: #64748b;
  font-size: 12px;
}

.card-meta span {
  padding: 4px 8px;
  border-radius: 999px;
  background: #f1f5f9;
}

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

.rank-item {
  display: grid;
  grid-template-columns: 54px 92px 1fr auto;
  gap: 18px;
  align-items: center;
  padding: 14px;
  border-radius: 20px;
  background: #ffffff;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.07);
}

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

.rank-cover {
  aspect-ratio: 2 / 3;
  overflow: hidden;
  border-radius: 12px;
  background: #111827;
}

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

.rank-copy h2,
.rank-copy h3 {
  font-size: 20px;
  font-weight: 950;
}

.rank-copy p {
  margin-top: 5px;
  color: var(--muted);
  line-height: 1.6;
}

.page-hero {
  padding: 56px 0;
  color: #ffffff;
  background:
    radial-gradient(circle at 10% 10%, rgba(255, 255, 255, 0.22), transparent 32%),
    linear-gradient(135deg, #881337, #ea580c 58%, #f59e0b);
}

.page-hero h1 {
  font-size: clamp(32px, 6vw, 58px);
  line-height: 1.08;
  font-weight: 950;
  letter-spacing: -0.04em;
}

.page-hero p {
  max-width: 760px;
  margin-top: 16px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 18px;
  line-height: 1.8;
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 24px;
  padding: 16px;
  border-radius: 20px;
  background: #ffffff;
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.06);
}

.filter-chip {
  padding: 9px 14px;
  border-radius: 999px;
  color: #475569;
  background: #f1f5f9;
  font-weight: 800;
}

.filter-chip.active,
.filter-chip:hover {
  color: #ffffff;
  background: linear-gradient(90deg, var(--brand-a), var(--brand-b));
}

.detail-hero {
  color: #ffffff;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.88), rgba(0, 0, 0, 0.56)),
    linear-gradient(135deg, #111827, #7f1d1d);
}

.detail-wrap {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 36px;
  align-items: center;
  padding: 46px 0;
}

.detail-poster {
  overflow: hidden;
  border-radius: 26px;
  background: #111827;
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.38);
}

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

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

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

.detail-title {
  font-size: clamp(34px, 5vw, 64px);
  line-height: 1.08;
  font-weight: 950;
  letter-spacing: -0.04em;
}

.detail-summary {
  max-width: 760px;
  margin-top: 16px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 18px;
  line-height: 1.85;
}

.player-shell {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  background: #000000;
  box-shadow: 0 26px 64px rgba(15, 23, 42, 0.22);
}

.player-shell video {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000000;
}

.play-cover {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  gap: 12px;
  color: #ffffff;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.22), rgba(0, 0, 0, 0.70));
  font-size: 18px;
  font-weight: 950;
  cursor: pointer;
}

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

.play-circle {
  width: 76px;
  height: 76px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--brand-a), var(--brand-b));
  box-shadow: 0 18px 44px rgba(225, 29, 72, 0.38);
  font-size: 32px;
  padding-left: 5px;
}

.article-block {
  padding: 28px;
  border-radius: 24px;
  background: #ffffff;
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.07);
}

.article-block h2 {
  margin-bottom: 14px;
  font-size: 26px;
  font-weight: 950;
}

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

.article-stack {
  display: grid;
  gap: 20px;
}

.search-panel {
  display: grid;
  gap: 16px;
  max-width: 780px;
  margin-top: 28px;
}

.search-panel input {
  width: 100%;
  min-height: 54px;
  border-radius: 999px;
  padding: 0 22px;
  color: var(--ink);
  background: #ffffff;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.16);
  outline: none;
}

.search-empty {
  display: none;
  padding: 26px;
  border-radius: 20px;
  color: var(--muted);
  background: #ffffff;
  text-align: center;
}

.search-empty.is-visible {
  display: block;
}

.site-footer {
  margin-top: 72px;
  color: #ffffff;
  background: linear-gradient(180deg, #111827, #000000);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 28px;
  padding: 44px 0;
}

.site-footer h2,
.site-footer h3 {
  margin-bottom: 12px;
  font-size: 18px;
  font-weight: 950;
}

.site-footer p,
.site-footer a {
  color: rgba(255, 255, 255, 0.68);
  line-height: 1.9;
  font-size: 14px;
}

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

.footer-bottom {
  padding: 20px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.10);
  color: rgba(255, 255, 255, 0.56);
  text-align: center;
  font-size: 13px;
}

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

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

  .search-box {
    width: 210px;
  }
}

@media (max-width: 860px) {
  .main-nav,
  .site-header .search-box {
    display: none;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .hero-control {
    display: none;
  }

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

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

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

  .detail-poster {
    width: min(260px, 70vw);
  }

  .rank-item {
    grid-template-columns: 42px 72px 1fr;
  }

  .rank-item .primary-button {
    grid-column: 2 / 4;
    width: fit-content;
  }

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

@media (max-width: 560px) {
  .site-container {
    width: min(100% - 24px, 1180px);
  }

  .header-inner {
    height: 62px;
  }

  .site-logo {
    font-size: 18px;
  }

  .hero,
  .hero-slide,
  .hero-content {
    min-height: 68vh;
  }

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

  .movie-body {
    padding: 12px;
  }

  .movie-title {
    font-size: 16px;
  }

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

  .section {
    padding-top: 42px;
  }

  .page-hero {
    padding: 40px 0;
  }

  .article-block {
    padding: 20px;
  }

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