:root {
  color-scheme: dark;
  --bg: #0c0a09;
  --panel: #1c1917;
  --panel-soft: rgba(28, 25, 23, 0.76);
  --panel-deep: #0f0b09;
  --text: #f5f5f4;
  --muted: #a8a29e;
  --line: rgba(245, 158, 11, 0.22);
  --amber: #f59e0b;
  --amber-soft: #fbbf24;
  --amber-deep: #78350f;
  --red-glow: rgba(127, 29, 29, 0.32);
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.48);
  --radius-xl: 28px;
  --radius-lg: 20px;
  --radius-md: 14px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(120, 53, 15, 0.34), transparent 34rem),
    radial-gradient(circle at 80% 12%, rgba(127, 29, 29, 0.2), transparent 36rem),
    linear-gradient(180deg, #0c0a09 0%, #17120f 42%, #0c0a09 100%);
  color: var(--text);
  min-height: 100vh;
}

body.lock-scroll {
  overflow: hidden;
}

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

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: linear-gradient(90deg, rgba(120, 53, 15, 0.96), rgba(146, 64, 14, 0.94), rgba(120, 53, 15, 0.96));
  box-shadow: 0 10px 35px rgba(0, 0, 0, 0.4);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(18px);
}

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

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 22px;
  font-weight: 900;
  letter-spacing: 0.04em;
  color: #fff7ed;
  white-space: nowrap;
}

.logo-mark {
  width: 38px;
  height: 38px;
  display: inline-grid;
  place-items: center;
  border-radius: 14px;
  background: linear-gradient(135deg, #fbbf24, #92400e);
  color: #1c1917;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.28);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  color: #ffedd5;
  font-size: 14px;
}

.main-nav a {
  padding: 10px 13px;
  border-radius: 999px;
  transition: background 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.main-nav a:hover,
.main-nav a.is-active {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.12);
  transform: translateY(-1px);
}

.mobile-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 14px;
  color: #fff7ed;
  background: rgba(255, 255, 255, 0.1);
  cursor: pointer;
}

.mobile-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  border-radius: 999px;
  background: currentColor;
}

.hero {
  position: relative;
  min-height: 680px;
  overflow: hidden;
  border-bottom: 1px solid rgba(245, 158, 11, 0.14);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(100deg, rgba(12, 10, 9, 0.98) 0%, rgba(12, 10, 9, 0.86) 36%, rgba(12, 10, 9, 0.25) 100%),
    radial-gradient(circle at 72% 20%, rgba(245, 158, 11, 0.34), transparent 26rem),
    radial-gradient(circle at 80% 78%, rgba(127, 29, 29, 0.26), transparent 24rem);
  z-index: 2;
}

.hero-bg {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.8s ease, transform 6s ease;
  background-size: cover;
  background-position: center;
  transform: scale(1.04);
}

.hero-bg.is-active {
  opacity: 1;
  transform: scale(1);
}

.hero-inner {
  position: relative;
  z-index: 3;
  min-height: 680px;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.78fr);
  gap: 44px;
  align-items: center;
  padding: 72px 0;
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 13px;
  border: 1px solid rgba(251, 191, 36, 0.28);
  border-radius: 999px;
  background: rgba(120, 53, 15, 0.34);
  color: #fde68a;
  font-size: 14px;
  font-weight: 700;
}

.hero-title {
  margin: 22px 0 16px;
  font-size: clamp(42px, 7vw, 82px);
  line-height: 0.98;
  letter-spacing: -0.05em;
  color: #fff7ed;
}

.hero-desc {
  max-width: 680px;
  margin: 0 0 24px;
  color: #d6d3d1;
  font-size: 18px;
  line-height: 1.8;
}

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

.pill,
.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 11px;
  border-radius: 999px;
  color: #fde68a;
  background: rgba(120, 53, 15, 0.34);
  border: 1px solid rgba(251, 191, 36, 0.2);
  font-size: 13px;
}

.hero-actions,
.page-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

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

.btn-primary {
  color: #1c1917;
  background: linear-gradient(135deg, #fde68a, #f59e0b);
  box-shadow: 0 18px 42px rgba(245, 158, 11, 0.24);
}

.btn-secondary {
  color: #fff7ed;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.16);
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 22px 48px rgba(0, 0, 0, 0.24);
}

.hero-card {
  position: relative;
  display: grid;
  grid-template-columns: 145px 1fr;
  gap: 18px;
  padding: 16px;
  border-radius: var(--radius-xl);
  background: linear-gradient(145deg, rgba(28, 25, 23, 0.86), rgba(12, 10, 9, 0.72));
  border: 1px solid rgba(251, 191, 36, 0.18);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.hero-poster,
.poster-frame,
.card-cover,
.rank-poster {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(145deg, rgba(120, 53, 15, 0.7), rgba(28, 25, 23, 0.7)),
    radial-gradient(circle at 60% 20%, rgba(251, 191, 36, 0.35), transparent 10rem);
}

.hero-poster {
  aspect-ratio: 2 / 3;
  border-radius: 22px;
  box-shadow: 0 22px 44px rgba(0, 0, 0, 0.35);
}

.hero-poster img,
.poster-frame img,
.card-cover img,
.rank-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hidden-cover {
  opacity: 0;
}

.hero-side h2 {
  margin: 6px 0 12px;
  font-size: 28px;
  color: #fff7ed;
}

.hero-side p {
  color: #d6d3d1;
  line-height: 1.72;
  margin: 0 0 18px;
}

.hero-thumbs {
  position: absolute;
  z-index: 4;
  left: 0;
  right: 0;
  bottom: 26px;
}

.hero-thumb-list {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 12px;
}

.hero-thumb {
  min-height: 70px;
  border: 1px solid rgba(251, 191, 36, 0.18);
  border-radius: 18px;
  padding: 12px;
  text-align: left;
  color: #e7e5e4;
  background: rgba(28, 25, 23, 0.72);
  backdrop-filter: blur(18px);
  cursor: pointer;
}

.hero-thumb.is-active {
  border-color: rgba(251, 191, 36, 0.7);
  background: rgba(120, 53, 15, 0.58);
}

.hero-thumb strong {
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: #fff7ed;
}

.hero-thumb span {
  display: block;
  margin-top: 4px;
  font-size: 12px;
  color: #c7b8a3;
}

.section {
  padding: 58px 0;
}

.section-compact {
  padding: 34px 0;
}

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

.section-title {
  margin: 0 0 9px;
  font-size: clamp(26px, 4vw, 40px);
  color: #fde68a;
}

.section-subtitle {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

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

.movie-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(245, 158, 11, 0.15);
  background: linear-gradient(180deg, rgba(28, 25, 23, 0.94), rgba(12, 10, 9, 0.94));
  box-shadow: 0 16px 42px rgba(0, 0, 0, 0.24);
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.movie-card:hover {
  transform: translateY(-5px);
  border-color: rgba(251, 191, 36, 0.42);
  box-shadow: 0 22px 58px rgba(0, 0, 0, 0.38);
}

.card-cover {
  aspect-ratio: 3 / 4;
}

.card-badge {
  position: absolute;
  left: 10px;
  top: 10px;
  padding: 6px 9px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.68);
  color: #fde68a;
  font-size: 12px;
  font-weight: 800;
}

.card-body {
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
  padding: 16px;
}

.card-title {
  margin: 0;
  font-size: 18px;
  line-height: 1.35;
  color: #fff7ed;
}

.card-meta,
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  color: var(--muted);
  font-size: 13px;
}

.card-desc {
  margin: 0;
  color: #d6d3d1;
  line-height: 1.65;
  font-size: 14px;
}

.card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: auto;
}

.tag {
  padding: 6px 8px;
  font-size: 12px;
}

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

.category-tile {
  padding: 22px;
  min-height: 168px;
  border-radius: var(--radius-lg);
  background:
    linear-gradient(145deg, rgba(120, 53, 15, 0.62), rgba(28, 25, 23, 0.88)),
    radial-gradient(circle at top right, rgba(251, 191, 36, 0.18), transparent 12rem);
  border: 1px solid rgba(251, 191, 36, 0.16);
  transition: transform 0.18s ease, border-color 0.18s ease;
}

.category-tile:hover {
  transform: translateY(-4px);
  border-color: rgba(251, 191, 36, 0.46);
}

.category-tile h3 {
  margin: 0 0 12px;
  color: #fff7ed;
  font-size: 21px;
}

.category-tile p {
  margin: 0 0 18px;
  color: #d6d3d1;
  line-height: 1.65;
  font-size: 14px;
}

.category-count {
  color: #fde68a;
  font-weight: 800;
}

.rank-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.rank-item {
  display: grid;
  grid-template-columns: 54px 96px 1fr;
  gap: 16px;
  align-items: center;
  padding: 14px;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(245, 158, 11, 0.15);
  background: rgba(28, 25, 23, 0.78);
}

.rank-num {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  color: #1c1917;
  font-size: 19px;
  font-weight: 950;
  background: linear-gradient(135deg, #fde68a, #f59e0b);
}

.rank-poster {
  aspect-ratio: 3 / 4;
  border-radius: 14px;
}

.rank-body h3 {
  margin: 0 0 9px;
  font-size: 18px;
  color: #fff7ed;
}

.rank-body p {
  margin: 0 0 10px;
  color: #d6d3d1;
  line-height: 1.55;
  font-size: 14px;
}

.filter-bar {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) 180px 180px;
  gap: 12px;
  padding: 18px;
  margin-bottom: 26px;
  border-radius: var(--radius-lg);
  background: rgba(28, 25, 23, 0.78);
  border: 1px solid rgba(245, 158, 11, 0.14);
}

.input,
.select {
  width: 100%;
  min-height: 46px;
  border: 1px solid rgba(251, 191, 36, 0.18);
  border-radius: 14px;
  padding: 0 14px;
  color: #fff7ed;
  background: rgba(12, 10, 9, 0.72);
  outline: none;
}

.input:focus,
.select:focus {
  border-color: rgba(251, 191, 36, 0.58);
  box-shadow: 0 0 0 3px rgba(251, 191, 36, 0.12);
}

.select option {
  background: #1c1917;
  color: #fff7ed;
}

.empty-state {
  display: none;
  padding: 28px;
  border-radius: var(--radius-lg);
  text-align: center;
  color: #d6d3d1;
  background: rgba(28, 25, 23, 0.8);
  border: 1px dashed rgba(251, 191, 36, 0.24);
}

.page-hero {
  padding: 58px 0 34px;
  background:
    radial-gradient(circle at 20% 0%, rgba(120, 53, 15, 0.35), transparent 28rem),
    linear-gradient(180deg, rgba(28, 25, 23, 0.82), rgba(12, 10, 9, 0));
  border-bottom: 1px solid rgba(245, 158, 11, 0.1);
}

.page-hero h1 {
  margin: 16px 0 12px;
  font-size: clamp(34px, 5vw, 58px);
  color: #fff7ed;
  letter-spacing: -0.03em;
}

.page-hero p {
  max-width: 820px;
  margin: 0;
  color: #d6d3d1;
  line-height: 1.8;
  font-size: 17px;
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 26px;
  align-items: start;
}

.detail-panel,
.sidebar-panel {
  border-radius: var(--radius-xl);
  background: rgba(28, 25, 23, 0.82);
  border: 1px solid rgba(245, 158, 11, 0.14);
  box-shadow: var(--shadow);
  overflow: hidden;
}

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

.site-video {
  width: 100%;
  height: 100%;
  display: block;
  background: #000;
}

.play-overlay {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: grid;
  place-items: center;
  border: 0;
  color: #fff7ed;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.18), rgba(0, 0, 0, 0.72)),
    radial-gradient(circle at center, rgba(245, 158, 11, 0.22), transparent 16rem);
  cursor: pointer;
}

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

.play-core {
  display: grid;
  place-items: center;
  gap: 12px;
}

.play-icon {
  width: 78px;
  height: 78px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #1c1917;
  background: linear-gradient(135deg, #fde68a, #f59e0b);
  box-shadow: 0 20px 45px rgba(245, 158, 11, 0.32);
  font-size: 30px;
}

.player-status {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 14px;
  z-index: 4;
  color: #fde68a;
  font-size: 13px;
  pointer-events: none;
}

.detail-content {
  padding: 26px;
}

.detail-title {
  margin: 0 0 14px;
  font-size: clamp(30px, 4vw, 48px);
  color: #fff7ed;
  letter-spacing: -0.03em;
}

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 22px;
}

.detail-section {
  margin-top: 26px;
}

.detail-section h2 {
  margin: 0 0 12px;
  color: #fde68a;
  font-size: 23px;
}

.detail-section p {
  margin: 0;
  color: #d6d3d1;
  line-height: 1.88;
  font-size: 16px;
}

.poster-frame {
  aspect-ratio: 3 / 4;
  border-radius: var(--radius-xl);
  border: 1px solid rgba(245, 158, 11, 0.18);
  box-shadow: var(--shadow);
}

.sidebar-panel {
  padding: 18px;
}

.sidebar-panel h2 {
  margin: 0 0 16px;
  color: #fde68a;
  font-size: 22px;
}

.side-card {
  display: grid;
  grid-template-columns: 74px 1fr;
  gap: 12px;
  padding: 10px;
  border-radius: 18px;
  transition: background 0.18s ease;
}

.side-card:hover {
  background: rgba(255, 255, 255, 0.06);
}

.side-card .rank-poster {
  width: 74px;
}

.side-card h3 {
  margin: 0 0 8px;
  font-size: 15px;
  line-height: 1.35;
  color: #fff7ed;
}

.side-card p {
  margin: 0;
  color: #a8a29e;
  font-size: 12px;
  line-height: 1.48;
}

.site-footer {
  margin-top: 56px;
  padding: 42px 0;
  color: #a8a29e;
  background: linear-gradient(180deg, rgba(28, 25, 23, 0), rgba(12, 10, 9, 0.88));
  border-top: 1px solid rgba(245, 158, 11, 0.1);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 28px;
}

.footer-grid h3,
.footer-grid h4 {
  margin: 0 0 12px;
  color: #fde68a;
}

.footer-grid p,
.footer-grid a {
  color: #a8a29e;
  line-height: 1.7;
  font-size: 14px;
}

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

@media (max-width: 980px) {
  .main-nav {
    position: fixed;
    top: 68px;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 16px;
    background: rgba(28, 25, 23, 0.98);
    border-bottom: 1px solid rgba(245, 158, 11, 0.16);
  }

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

  .mobile-toggle {
    display: inline-block;
  }

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

  .hero-inner {
    padding-bottom: 150px;
  }

  .hero-thumb-list {
    grid-template-columns: repeat(3, 1fr);
  }

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

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

@media (max-width: 620px) {
  .container {
    width: min(100% - 22px, 1180px);
  }

  .header-inner {
    height: 62px;
  }

  .logo {
    font-size: 18px;
  }

  .logo-mark {
    width: 34px;
    height: 34px;
  }

  .hero,
  .hero-inner {
    min-height: 760px;
  }

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

  .hero-poster {
    max-width: 210px;
  }

  .hero-thumb-list,
  .grid,
  .category-grid,
  .rank-list,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .rank-item {
    grid-template-columns: 46px 80px 1fr;
    gap: 12px;
  }

  .section-head {
    display: block;
  }
}
