:root {
  color-scheme: dark;
  --bg: #140a05;
  --bg-soft: #241008;
  --card: rgba(45, 21, 9, 0.82);
  --card-strong: rgba(69, 30, 12, 0.94);
  --line: rgba(251, 191, 36, 0.18);
  --text: #fff7ed;
  --muted: #fed7aa;
  --muted-soft: rgba(254, 215, 170, 0.72);
  --amber: #f59e0b;
  --orange: #ea580c;
  --rose: #be123c;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.42);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 20% 0%, rgba(245, 158, 11, 0.25), transparent 32rem),
    radial-gradient(circle at 82% 8%, rgba(190, 18, 60, 0.22), transparent 34rem),
    linear-gradient(135deg, #140a05 0%, #2b1007 45%, #360b13 100%);
  color: var(--text);
  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%;
}

button,
input,
select {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: linear-gradient(90deg, rgba(120, 53, 15, 0.96), rgba(154, 52, 18, 0.96), rgba(136, 19, 55, 0.96));
  border-bottom: 1px solid rgba(251, 191, 36, 0.2);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(18px);
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: max-content;
}

.brand-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  color: #fff;
  background: linear-gradient(135deg, #fbbf24, #ea580c);
  box-shadow: 0 12px 28px rgba(234, 88, 12, 0.42);
}

.brand-text {
  font-size: clamp(20px, 3vw, 28px);
  font-weight: 900;
  letter-spacing: -0.03em;
  background: linear-gradient(90deg, #fde68a, #fdba74, #fecdd3);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 22px;
  color: #ffedd5;
  font-weight: 700;
}

.desktop-nav a,
.mobile-nav a {
  transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.desktop-nav a:hover,
.mobile-nav a:hover {
  color: #fff;
  transform: translateY(-1px);
}

.menu-button {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 12px;
  background: rgba(255, 237, 213, 0.12);
  color: #fff7ed;
  cursor: pointer;
}

.menu-button span {
  display: block;
  width: 22px;
  height: 2px;
  margin: 5px auto;
  background: currentColor;
  border-radius: 999px;
}

.mobile-nav {
  display: none;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto 14px;
  padding: 12px;
  border-radius: 16px;
  background: rgba(69, 26, 3, 0.9);
  border: 1px solid rgba(251, 191, 36, 0.22);
}

.mobile-nav.is-open {
  display: grid;
  gap: 6px;
}

.mobile-nav a {
  padding: 12px 14px;
  border-radius: 12px;
  color: #ffedd5;
  font-weight: 700;
}

.mobile-nav a:hover {
  background: rgba(251, 191, 36, 0.12);
}

main {
  overflow: hidden;
}

.hero-wrap {
  width: min(1180px, calc(100% - 32px));
  margin: 34px auto 0;
  display: grid;
  grid-template-columns: minmax(0, 1.75fr) minmax(310px, 0.75fr);
  gap: 24px;
  min-height: 620px;
}

.hero-slider,
.hero-panel,
.page-hero,
.detail-hero,
.article-card,
.player-box,
.category-card,
.movie-card,
.filter-panel {
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.hero-slider {
  position: relative;
  overflow: hidden;
  min-height: 620px;
  border-radius: 34px;
  background: #1c0b05;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: scale(1.04);
  transition: opacity 0.7s ease, transform 0.7s ease;
  pointer-events: none;
}

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

.hero-bg,
.detail-backdrop img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-shade,
.detail-backdrop::after {
  position: absolute;
  inset: 0;
  content: "";
  background:
    linear-gradient(90deg, rgba(20, 10, 5, 0.95) 0%, rgba(20, 10, 5, 0.7) 42%, rgba(20, 10, 5, 0.18) 100%),
    linear-gradient(0deg, rgba(20, 10, 5, 0.98), transparent 52%);
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(720px, 92%);
  min-height: 620px;
  padding: clamp(42px, 8vw, 86px);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.eyebrow,
.hero-kicker {
  display: inline-flex;
  width: fit-content;
  margin-bottom: 14px;
  padding: 7px 12px;
  border-radius: 999px;
  border: 1px solid rgba(251, 191, 36, 0.28);
  color: #fde68a;
  background: rgba(251, 191, 36, 0.12);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.hero-content h1,
.hero-content h2,
.page-hero h1,
.detail-info h1 {
  margin: 0;
  font-size: clamp(40px, 6.8vw, 78px);
  line-height: 0.98;
  letter-spacing: -0.07em;
}

.hero-content p,
.page-hero p,
.detail-info .one-line {
  max-width: 720px;
  margin: 22px 0 0;
  color: var(--muted);
  font-size: clamp(16px, 2vw, 20px);
  line-height: 1.8;
}

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

.primary-button,
.ghost-button,
.section-more,
.hero-search button {
  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, background 0.2s ease;
}

.primary-button,
.hero-search button {
  border: 0;
  color: #fff;
  background: linear-gradient(135deg, #f59e0b, #ea580c, #be123c);
  box-shadow: 0 18px 36px rgba(234, 88, 12, 0.36);
}

.ghost-button,
.section-more {
  border: 1px solid rgba(254, 215, 170, 0.28);
  color: #ffedd5;
  background: rgba(255, 237, 213, 0.1);
}

.primary-button:hover,
.ghost-button:hover,
.section-more:hover,
.hero-search button:hover {
  transform: translateY(-2px);
}

.hero-dots {
  position: absolute;
  left: 52px;
  bottom: 40px;
  z-index: 4;
  display: flex;
  gap: 10px;
}

.hero-dot {
  width: 12px;
  height: 12px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 237, 213, 0.35);
  cursor: pointer;
}

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

.hero-panel {
  border-radius: 34px;
  padding: 30px;
  background:
    linear-gradient(180deg, rgba(69, 26, 3, 0.92), rgba(76, 5, 25, 0.86)),
    radial-gradient(circle at 0% 0%, rgba(251, 191, 36, 0.2), transparent 18rem);
}

.hero-panel h2 {
  margin: 0;
  font-size: 30px;
  letter-spacing: -0.04em;
}

.hero-panel p {
  color: var(--muted-soft);
  line-height: 1.75;
}

.hero-search {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  margin: 20px 0;
}

.hero-search input,
.filter-panel input,
.filter-panel select {
  width: 100%;
  min-height: 48px;
  border: 1px solid rgba(254, 215, 170, 0.25);
  border-radius: 16px;
  outline: 0;
  color: #fff7ed;
  background: rgba(20, 10, 5, 0.72);
  padding: 0 15px;
}

.hero-search input:focus,
.filter-panel input:focus,
.filter-panel select:focus {
  border-color: rgba(251, 191, 36, 0.75);
  box-shadow: 0 0 0 4px rgba(251, 191, 36, 0.14);
}

.hero-category-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.hero-category-links a,
.movie-tags span,
.detail-tags span {
  padding: 7px 10px;
  border-radius: 999px;
  color: #fed7aa;
  background: rgba(251, 191, 36, 0.12);
  border: 1px solid rgba(251, 191, 36, 0.18);
  font-size: 12px;
  font-weight: 800;
}

.hero-mini-list {
  display: grid;
  gap: 12px;
  margin-top: 24px;
}

.hero-mini-card {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 12px;
  align-items: center;
  padding: 10px;
  border-radius: 18px;
  background: rgba(255, 237, 213, 0.08);
  border: 1px solid rgba(251, 191, 36, 0.12);
}

.hero-mini-card img {
  width: 72px;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 12px;
}

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

.hero-mini-card strong {
  margin-bottom: 5px;
}

.hero-mini-card em {
  color: var(--muted-soft);
  font-size: 13px;
  line-height: 1.45;
  font-style: normal;
}

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

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

.section-heading h2 {
  margin: 0;
  font-size: clamp(28px, 4.2vw, 46px);
  letter-spacing: -0.05em;
}

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

.category-card {
  min-height: 160px;
  padding: 24px;
  border-radius: 28px;
  background:
    linear-gradient(135deg, rgba(120, 53, 15, 0.86), rgba(136, 19, 55, 0.78)),
    radial-gradient(circle at top right, rgba(251, 191, 36, 0.28), transparent 12rem);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.category-card:hover,
.movie-card:hover {
  transform: translateY(-6px);
  border-color: rgba(251, 191, 36, 0.42);
}

.category-card span {
  display: block;
  margin-bottom: 12px;
  font-size: 22px;
  font-weight: 900;
}

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

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

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

.movie-card {
  position: relative;
  overflow: hidden;
  border-radius: 26px;
  background: linear-gradient(180deg, rgba(69, 26, 3, 0.86), rgba(44, 17, 7, 0.94));
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.poster-link {
  position: relative;
  display: block;
}

.poster-frame {
  display: block;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background:
    radial-gradient(circle at 30% 20%, rgba(251, 191, 36, 0.22), transparent 45%),
    linear-gradient(135deg, rgba(69, 26, 3, 0.92), rgba(136, 19, 55, 0.88));
}

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

.movie-card:hover .poster-frame img {
  transform: scale(1.06);
  filter: saturate(1.12) contrast(1.04);
}

.movie-year,
.rank-number {
  position: absolute;
  z-index: 2;
  top: 12px;
  border-radius: 999px;
  color: #fff;
  font-size: 12px;
  font-weight: 900;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.28);
}

.movie-year {
  right: 12px;
  padding: 7px 10px;
  background: rgba(20, 10, 5, 0.72);
  border: 1px solid rgba(254, 215, 170, 0.28);
}

.rank-number {
  left: 12px;
  min-width: 42px;
  height: 34px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #f59e0b, #be123c);
}

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

.movie-tags,
.detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.movie-card h3 {
  margin: 13px 0 8px;
  font-size: 19px;
  line-height: 1.35;
}

.movie-card p {
  min-height: 72px;
  margin: 0;
  color: var(--muted-soft);
  line-height: 1.65;
  font-size: 14px;
}

.movie-meta {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-top: 14px;
  color: #fde68a;
  font-size: 13px;
  font-weight: 800;
}

.page-hero {
  width: min(1180px, calc(100% - 32px));
  margin: 34px auto 0;
  padding: clamp(36px, 7vw, 76px);
  border-radius: 34px;
  background:
    linear-gradient(135deg, rgba(120, 53, 15, 0.86), rgba(136, 19, 55, 0.82)),
    radial-gradient(circle at 80% 0%, rgba(251, 191, 36, 0.26), transparent 28rem);
}

.small-hero,
.category-hero,
.rank-hero,
.search-hero {
  min-height: 300px;
  display: flex;
  align-items: center;
}

.filter-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 180px;
  gap: 12px;
  padding: 14px;
  margin-bottom: 24px;
  border-radius: 24px;
  background: rgba(69, 26, 3, 0.72);
}

.empty-state {
  display: none;
  padding: 34px;
  text-align: center;
  color: var(--muted);
  border-radius: 24px;
  background: rgba(69, 26, 3, 0.72);
  border: 1px solid var(--line);
}

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

[data-search-card].is-hidden {
  display: none;
}

.detail-hero {
  position: relative;
  overflow: hidden;
  width: min(1180px, calc(100% - 32px));
  min-height: 620px;
  margin: 34px auto 0;
  border-radius: 34px;
  background: #1c0b05;
}

.detail-backdrop {
  position: absolute;
  inset: 0;
}

.detail-layout {
  position: relative;
  z-index: 2;
  min-height: 620px;
  display: grid;
  grid-template-columns: minmax(240px, 330px) minmax(0, 1fr);
  align-items: center;
  gap: clamp(24px, 5vw, 60px);
  padding: clamp(28px, 6vw, 72px);
}

.detail-poster {
  border-radius: 28px;
  overflow: hidden;
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.52);
  border: 1px solid rgba(254, 215, 170, 0.22);
}

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

.detail-info h1 {
  max-width: 800px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
  color: #fed7aa;
  font-weight: 800;
}

.detail-tags {
  margin-top: 22px;
}

.player-section {
  margin-top: 34px;
}

.player-box {
  position: relative;
  overflow: hidden;
  border-radius: 32px;
  background: #000;
  aspect-ratio: 16 / 9;
}

.player-box video {
  width: 100%;
  height: 100%;
  display: block;
  background: #000;
  object-fit: contain;
}

.player-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  border: 0;
  color: #fff;
  background: radial-gradient(circle, rgba(20, 10, 5, 0.28), rgba(0, 0, 0, 0.62));
  cursor: pointer;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

.player-overlay span {
  width: clamp(68px, 10vw, 102px);
  height: clamp(68px, 10vw, 102px);
  display: grid;
  place-items: center;
  padding-left: 6px;
  border-radius: 999px;
  font-size: clamp(26px, 5vw, 44px);
  background: linear-gradient(135deg, #f59e0b, #ea580c, #be123c);
  box-shadow: 0 22px 44px rgba(234, 88, 12, 0.42);
}

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

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

.article-card {
  padding: clamp(22px, 4vw, 34px);
  border-radius: 28px;
  background: rgba(69, 26, 3, 0.76);
}

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

.article-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.9;
  font-size: 16px;
}

.site-footer {
  margin-top: 80px;
  background: linear-gradient(90deg, rgba(120, 53, 15, 0.96), rgba(124, 45, 18, 0.96), rgba(136, 19, 55, 0.96));
  border-top: 1px solid rgba(251, 191, 36, 0.2);
}

.footer-grid {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 44px 0;
  display: grid;
  grid-template-columns: 1.15fr 1fr 0.85fr;
  gap: 32px;
}

.site-footer h2,
.site-footer h3 {
  margin: 0 0 14px;
}

.site-footer p {
  margin: 0;
  max-width: 520px;
  color: var(--muted-soft);
  line-height: 1.75;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.footer-links a {
  padding: 8px 11px;
  border-radius: 999px;
  color: #ffedd5;
  background: rgba(255, 237, 213, 0.1);
  border: 1px solid rgba(254, 215, 170, 0.14);
}

.footer-bottom {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 20px 0 28px;
  border-top: 1px solid rgba(254, 215, 170, 0.16);
  color: rgba(254, 215, 170, 0.72);
}

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

  .menu-button {
    display: block;
  }

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

  .hero-wrap {
    min-height: auto;
  }

  .hero-panel {
    order: -1;
  }

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

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

@media (max-width: 760px) {
  .header-inner {
    width: min(100% - 22px, 1180px);
  }

  .brand-text {
    font-size: 21px;
  }

  .hero-wrap,
  .content-section,
  .page-hero,
  .detail-hero {
    width: min(100% - 22px, 1180px);
    margin-top: 22px;
  }

  .hero-slider,
  .hero-content {
    min-height: 540px;
  }

  .hero-content {
    padding: 30px;
  }

  .hero-dots {
    left: 30px;
    bottom: 28px;
  }

  .hero-panel,
  .page-hero,
  .detail-hero,
  .player-box {
    border-radius: 24px;
  }

  .hero-search,
  .filter-panel {
    grid-template-columns: 1fr;
  }

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

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

  .movie-card p {
    min-height: auto;
  }

  .detail-layout {
    min-height: auto;
    padding: 24px;
  }

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

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

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

  .brand-icon {
    width: 38px;
    height: 38px;
  }

  .hero-actions,
  .detail-actions {
    flex-direction: column;
  }

  .primary-button,
  .ghost-button,
  .section-more {
    width: 100%;
  }
}
