:root {
  --site-primary: #e0561b;
  --site-primary-dark: #ba4118;
  --site-accent: #f59e0b;
  --site-bg: #f8fafc;
  --site-text: #162033;
  --site-muted: #64748b;
  --site-line: #e2e8f0;
  --site-dark: #0f172a;
  --site-card: #ffffff;
  --site-shadow: 0 18px 45px rgba(15, 23, 42, 0.12);
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  background: var(--site-bg);
  color: var(--site-text);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
}

img {
  object-fit: cover;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid rgba(226, 232, 240, 0.85);
  backdrop-filter: blur(18px);
}

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

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--site-dark);
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.logo-mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--site-primary), var(--site-accent));
  color: #ffffff;
  box-shadow: 0 10px 24px rgba(224, 86, 27, 0.3);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
}

.nav-link {
  color: #475569;
  font-size: 15px;
  font-weight: 700;
  transition: color 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
  color: var(--site-primary);
}

.header-search {
  display: flex;
  align-items: center;
  gap: 8px;
  width: min(320px, 32vw);
  padding: 8px;
  border: 1px solid var(--site-line);
  border-radius: 999px;
  background: #ffffff;
}

.header-search input,
.search-panel input,
.category-tools input {
  width: 100%;
  outline: none;
  color: var(--site-text);
  background: transparent;
}

.header-search button,
.search-panel button {
  flex: 0 0 auto;
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--site-primary);
  color: #ffffff;
  font-size: 14px;
  font-weight: 800;
  transition: transform 0.2s ease, background 0.2s ease;
}

.header-search button:hover,
.search-panel button:hover,
.button-primary:hover {
  transform: translateY(-1px);
  background: var(--site-primary-dark);
}

.menu-button {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--site-line);
  border-radius: 14px;
  color: var(--site-dark);
  background: #ffffff;
}

.mobile-menu {
  display: none;
  border-top: 1px solid var(--site-line);
  padding: 12px 0 18px;
}

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

.mobile-menu .nav-link {
  display: block;
  padding: 12px 2px;
}

.hero-slider {
  position: relative;
  overflow: hidden;
  min-height: 620px;
  color: #ffffff;
  background: radial-gradient(circle at top left, rgba(245, 158, 11, 0.45), transparent 34%), linear-gradient(135deg, #111827 0%, #1e293b 48%, #7c2d12 100%);
}

.hero-slider::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 160px;
  background: linear-gradient(to bottom, transparent, var(--site-bg));
  pointer-events: none;
}

.hero-backdrop {
  position: absolute;
  inset: 0;
  opacity: 0.23;
}

.hero-backdrop img {
  width: 100%;
  height: 100%;
  filter: blur(3px) saturate(1.2);
  transform: scale(1.05);
}

.hero-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(360px, 0.95fr);
  align-items: center;
  min-height: 620px;
  gap: 48px;
  padding: 72px 0 96px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.13);
  color: #fed7aa;
  font-size: 14px;
  font-weight: 800;
  backdrop-filter: blur(10px);
}

.hero-slide {
  display: none;
  animation: fadeSlide 0.45s ease both;
}

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

.hero-title {
  max-width: 760px;
  margin-top: 26px;
  font-size: clamp(42px, 8vw, 76px);
  line-height: 0.96;
  font-weight: 900;
  letter-spacing: -0.06em;
}

.hero-line {
  max-width: 660px;
  margin-top: 24px;
  color: #fee2e2;
  font-size: clamp(18px, 2.1vw, 23px);
  line-height: 1.7;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.pill {
  display: inline-flex;
  align-items: center;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.13);
  color: #ffffff;
  font-size: 13px;
  font-weight: 800;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin-top: 32px;
}

.button-primary,
.button-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 999px;
  font-weight: 900;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.button-primary {
  background: var(--site-primary);
  color: #ffffff;
  box-shadow: 0 16px 30px rgba(224, 86, 27, 0.32);
}

.button-secondary {
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  backdrop-filter: blur(10px);
}

.button-secondary:hover {
  transform: translateY(-1px);
  border-color: rgba(255, 255, 255, 0.65);
  background: rgba(255, 255, 255, 0.18);
}

.hero-search {
  display: flex;
  width: min(520px, 100%);
  margin-top: 30px;
  padding: 8px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(12px);
}

.hero-search input {
  flex: 1;
  min-width: 0;
  padding: 0 16px;
  color: #ffffff;
  outline: none;
  background: transparent;
}

.hero-search input::placeholder {
  color: rgba(255, 255, 255, 0.74);
}

.hero-search button {
  flex: 0 0 auto;
  padding: 12px 20px;
  border-radius: 999px;
  background: #ffffff;
  color: var(--site-primary-dark);
  font-weight: 900;
}

.hero-stage {
  display: grid;
  grid-template-columns: 1fr 0.72fr;
  gap: 18px;
  align-items: center;
}

.hero-main-card,
.hero-side-card {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.1);
  box-shadow: var(--site-shadow);
}

.hero-main-card {
  height: 520px;
}

.hero-main-card img,
.hero-side-card img {
  width: 100%;
  height: 100%;
  transition: transform 0.45s ease;
}

.hero-main-card:hover img,
.hero-side-card:hover img {
  transform: scale(1.05);
}

.hero-main-card::after,
.hero-side-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(15, 23, 42, 0.84), rgba(15, 23, 42, 0.02));
}

.hero-card-text {
  position: absolute;
  z-index: 2;
  left: 22px;
  right: 22px;
  bottom: 22px;
}

.hero-card-text strong {
  display: block;
  color: #ffffff;
  font-size: 22px;
  line-height: 1.25;
}

.hero-card-text span {
  display: block;
  margin-top: 6px;
  color: #fed7aa;
  font-size: 14px;
}

.hero-side-list {
  display: grid;
  gap: 18px;
}

.hero-side-card {
  height: 155px;
  cursor: pointer;
  opacity: 0.72;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.hero-side-card.is-active {
  opacity: 1;
  transform: translateX(-8px);
  outline: 3px solid rgba(245, 158, 11, 0.5);
}

.section {
  padding: 64px 0;
}

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

.section-kicker {
  color: var(--site-primary);
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.section-title {
  margin-top: 8px;
  color: var(--site-dark);
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.1;
  font-weight: 900;
  letter-spacing: -0.04em;
}

.section-desc {
  max-width: 720px;
  margin-top: 10px;
  color: var(--site-muted);
  line-height: 1.8;
}

.text-link {
  color: var(--site-primary);
  font-weight: 900;
}

.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.85);
  border-radius: 24px;
  background: var(--site-card);
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  border-color: rgba(224, 86, 27, 0.35);
  box-shadow: var(--site-shadow);
}

.poster-link {
  position: relative;
  display: block;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  background: #e2e8f0;
}

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

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

.poster-link::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(15, 23, 42, 0.62), transparent 45%);
  opacity: 0.76;
}

.poster-badge,
.poster-type,
.poster-play {
  position: absolute;
  z-index: 2;
}

.poster-badge {
  top: 12px;
  left: 12px;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.72);
  color: #ffffff;
  font-size: 12px;
  font-weight: 900;
  backdrop-filter: blur(8px);
}

.poster-type {
  right: 12px;
  bottom: 12px;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(224, 86, 27, 0.92);
  color: #ffffff;
  font-size: 12px;
  font-weight: 900;
}

.poster-play {
  left: 12px;
  bottom: 12px;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--site-primary);
  font-size: 13px;
}

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

.movie-card h3 {
  color: var(--site-dark);
  font-size: 17px;
  line-height: 1.4;
  font-weight: 900;
}

.movie-card h3 a:hover {
  color: var(--site-primary);
}

.movie-meta {
  margin-top: 8px;
  color: #64748b;
  font-size: 13px;
  line-height: 1.6;
}

.movie-line {
  display: -webkit-box;
  min-height: 44px;
  margin-top: 10px;
  overflow: hidden;
  color: #475569;
  font-size: 14px;
  line-height: 1.58;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.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;
  border-radius: 28px;
  color: #ffffff;
  background: linear-gradient(135deg, #1e293b, #7c2d12);
  box-shadow: var(--site-shadow);
}

.category-card::before {
  content: "";
  position: absolute;
  width: 180px;
  height: 180px;
  right: -52px;
  top: -70px;
  border-radius: 999px;
  background: rgba(245, 158, 11, 0.32);
}

.category-card h3 {
  position: relative;
  font-size: 24px;
  font-weight: 900;
}

.category-card p {
  position: relative;
  margin-top: 12px;
  color: #fed7aa;
  line-height: 1.7;
}

.category-card span {
  position: relative;
  display: inline-flex;
  margin-top: 18px;
  color: #ffffff;
  font-weight: 900;
}

.page-hero {
  padding: 68px 0 42px;
  color: #ffffff;
  background: radial-gradient(circle at top left, rgba(245, 158, 11, 0.4), transparent 35%), linear-gradient(135deg, #111827, #7c2d12);
}

.page-hero h1 {
  max-width: 860px;
  font-size: clamp(36px, 6vw, 64px);
  line-height: 1.05;
  font-weight: 900;
  letter-spacing: -0.05em;
}

.page-hero p {
  max-width: 760px;
  margin-top: 18px;
  color: #ffedd5;
  font-size: 18px;
  line-height: 1.8;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-bottom: 24px;
  color: #64748b;
  font-size: 14px;
}

.breadcrumb a {
  color: var(--site-primary);
  font-weight: 800;
}

.search-panel,
.category-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin-bottom: 28px;
  padding: 14px;
  border: 1px solid var(--site-line);
  border-radius: 22px;
  background: #ffffff;
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.05);
}

.search-panel input,
.category-tools input {
  min-width: min(100%, 360px);
  flex: 1 1 340px;
  padding: 14px 16px;
  border: 1px solid var(--site-line);
  border-radius: 999px;
  background: #f8fafc;
}

.filter-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.filter-button {
  padding: 9px 14px;
  border: 1px solid var(--site-line);
  border-radius: 999px;
  background: #ffffff;
  color: #475569;
  font-size: 14px;
  font-weight: 800;
}

.filter-button.is-active,
.filter-button:hover {
  border-color: var(--site-primary);
  background: #fff7ed;
  color: var(--site-primary);
}

.no-results {
  display: none;
  padding: 44px;
  border: 1px dashed #cbd5e1;
  border-radius: 24px;
  color: #64748b;
  text-align: center;
  background: #ffffff;
}

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

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

.rank-column {
  padding: 20px;
  border: 1px solid var(--site-line);
  border-radius: 26px;
  background: #ffffff;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.06);
}

.rank-column h2 {
  color: var(--site-dark);
  font-size: 24px;
  font-weight: 900;
}

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

.rank-item {
  display: grid;
  grid-template-columns: 42px 76px 1fr;
  gap: 12px;
  align-items: center;
}

.rank-number {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 12px;
  background: #fff7ed;
  color: var(--site-primary);
  font-weight: 900;
}

.rank-item img {
  width: 76px;
  height: 104px;
  border-radius: 14px;
}

.rank-item h3 {
  font-size: 15px;
  line-height: 1.4;
  font-weight: 900;
}

.rank-item p {
  margin-top: 5px;
  color: #64748b;
  font-size: 13px;
  line-height: 1.5;
}

.detail-wrap {
  padding: 36px 0 70px;
}

.detail-hero {
  display: grid;
  grid-template-columns: 330px 1fr;
  gap: 34px;
  align-items: center;
  padding: 28px;
  border-radius: 34px;
  background: linear-gradient(135deg, #111827, #7c2d12);
  color: #ffffff;
  box-shadow: var(--site-shadow);
}

.detail-poster {
  overflow: hidden;
  border-radius: 24px;
  box-shadow: 0 24px 55px rgba(0, 0, 0, 0.32);
}

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

.detail-info h1 {
  font-size: clamp(34px, 5vw, 64px);
  line-height: 1.06;
  font-weight: 900;
  letter-spacing: -0.05em;
}

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

.detail-summary-line {
  max-width: 800px;
  color: #ffedd5;
  font-size: 18px;
  line-height: 1.8;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
}

.tag {
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  color: #ffffff;
  font-size: 13px;
  font-weight: 800;
}

.content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(300px, 0.75fr);
  gap: 28px;
  margin-top: 34px;
}

.content-card {
  padding: 28px;
  border: 1px solid var(--site-line);
  border-radius: 28px;
  background: #ffffff;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.06);
}

.content-card h2 {
  color: var(--site-dark);
  font-size: 26px;
  font-weight: 900;
}

.content-card p {
  margin-top: 14px;
  color: #334155;
  line-height: 1.9;
}

.player-shell {
  position: relative;
  overflow: hidden;
  margin-top: 20px;
  border-radius: 24px;
  background: #000000;
  aspect-ratio: 16 / 9;
}

.player-shell video {
  width: 100%;
  height: 100%;
  background: #000000;
}

.player-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  gap: 12px;
  color: #ffffff;
  background: linear-gradient(to top, rgba(15, 23, 42, 0.82), rgba(15, 23, 42, 0.18));
  text-align: center;
}

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

.play-pulse {
  display: grid;
  place-items: center;
  width: 76px;
  height: 76px;
  margin: 0 auto;
  border-radius: 999px;
  background: var(--site-primary);
  box-shadow: 0 0 0 14px rgba(224, 86, 27, 0.22);
}

.player-overlay strong {
  display: block;
  font-size: 18px;
  font-weight: 900;
}

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

.side-link {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 12px;
  align-items: center;
}

.side-link img {
  width: 72px;
  height: 98px;
  border-radius: 14px;
}

.side-link h3 {
  color: var(--site-dark);
  font-size: 15px;
  font-weight: 900;
  line-height: 1.45;
}

.side-link p {
  margin-top: 6px;
  color: #64748b;
  font-size: 13px;
  line-height: 1.5;
}

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

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 34px;
}

.site-footer h2,
.site-footer h3 {
  color: #ffffff;
  font-weight: 900;
}

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

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

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

.hidden-card {
  display: none;
}

@keyframes fadeSlide {
  from {
    opacity: 0;
    transform: translateY(12px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 1040px) {
  .header-search {
    display: none;
  }

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

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

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

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

  .hero-main-card {
    height: 430px;
  }

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

  .hero-side-card {
    height: 120px;
  }

  .hero-side-card.is-active {
    transform: translateY(-5px);
  }

  .detail-poster {
    max-width: 360px;
  }
}

@media (max-width: 760px) {
  .nav-links {
    display: none;
  }

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

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

  .hero-grid {
    padding: 44px 0 78px;
  }

  .hero-main-card {
    height: 360px;
    border-radius: 24px;
  }

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

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

  .section-header {
    display: block;
  }

  .text-link {
    display: inline-flex;
    margin-top: 14px;
  }

  .rank-item {
    grid-template-columns: 38px 70px 1fr;
  }

  .detail-hero,
  .content-card {
    padding: 20px;
    border-radius: 24px;
  }
}
