:root {
  color-scheme: dark;
  --bg: #0c0a09;
  --bg-soft: #1c1917;
  --bg-card: #292524;
  --bg-card-light: #3b332d;
  --text: #fff7ed;
  --muted: #d6d3d1;
  --subtle: #a8a29e;
  --brand: #f59e0b;
  --brand-strong: #d97706;
  --brand-dark: #78350f;
  --line: rgba(245, 158, 11, 0.22);
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.38);
  --radius-lg: 26px;
  --radius-md: 18px;
  --radius-sm: 12px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(245, 158, 11, 0.12), transparent 34rem),
    linear-gradient(180deg, #0c0a09 0%, #1c1917 45%, #0c0a09 100%);
}

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

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

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(245, 158, 11, 0.16);
  background: rgba(28, 25, 23, 0.86);
  backdrop-filter: blur(18px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1280px;
  margin: 0 auto;
  padding: 14px 20px;
}

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.brand-mark {
  display: inline-grid;
  width: 38px;
  height: 38px;
  place-items: center;
  color: #fff;
  border-radius: 999px;
  background: linear-gradient(135deg, #f59e0b, #92400e);
  box-shadow: 0 12px 32px rgba(245, 158, 11, 0.25);
}

.brand-name {
  color: #fde68a;
  white-space: nowrap;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 18px;
  overflow-x: auto;
  scrollbar-width: none;
}

.desktop-nav::-webkit-scrollbar {
  display: none;
}

.nav-link,
.mobile-link,
.footer-links a {
  color: rgba(253, 230, 138, 0.86);
  transition: color 0.2s ease, background 0.2s ease;
}

.nav-link:hover,
.mobile-link:hover,
.footer-links a:hover {
  color: #fff;
}

.mobile-menu-button {
  display: none;
  width: 42px;
  height: 42px;
  padding: 9px;
  border: 1px solid rgba(245, 158, 11, 0.25);
  border-radius: 12px;
  color: var(--text);
  background: rgba(68, 64, 60, 0.5);
}

.mobile-menu-button span {
  display: block;
  height: 2px;
  margin: 5px 0;
  border-radius: 999px;
  background: #fde68a;
}

.mobile-nav {
  display: none;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 20px 18px;
}

.mobile-nav.is-open {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.mobile-link {
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(68, 64, 60, 0.46);
}

main,
.page-main {
  max-width: 1280px;
  margin: 0 auto;
  padding: 28px 20px 64px;
}

.hero-slider {
  position: relative;
  max-width: none;
  min-height: 620px;
  margin: 0 auto 34px;
  overflow: hidden;
  border-radius: 0 0 34px 34px;
  background: #111;
  box-shadow: var(--shadow);
}

.hero-track,
.hero-slide,
.hero-backdrop,
.hero-overlay {
  position: absolute;
  inset: 0;
}

.hero-slide {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.8s ease, transform 0.8s ease;
  transform: scale(1.02);
}

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

.hero-backdrop {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.65;
}

.hero-overlay {
  background:
    linear-gradient(90deg, rgba(12, 10, 9, 0.96) 0%, rgba(12, 10, 9, 0.72) 42%, rgba(12, 10, 9, 0.2) 100%),
    linear-gradient(0deg, rgba(12, 10, 9, 0.88) 0%, transparent 55%);
}

.hero-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: 740px;
  min-height: 620px;
  padding: 70px 56px;
}

.hero-kicker,
.section-kicker {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  margin-bottom: 14px;
  padding: 6px 12px;
  color: #fff;
  border-radius: 999px;
  background: rgba(217, 119, 6, 0.88);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.hero-content h1,
.hero-content h2,
.page-hero h1 {
  margin: 0;
  color: #fff;
  font-size: clamp(36px, 6vw, 64px);
  line-height: 1.04;
  letter-spacing: -0.04em;
}

.hero-summary,
.page-hero p {
  max-width: 680px;
  margin: 20px 0 0;
  color: rgba(231, 229, 228, 0.9);
  font-size: 18px;
  line-height: 1.8;
}

.hero-movie {
  max-width: 680px;
  margin-top: 26px;
  padding: 20px;
  border: 1px solid rgba(245, 158, 11, 0.22);
  border-radius: var(--radius-md);
  background: rgba(41, 37, 36, 0.7);
  box-shadow: 0 22px 50px rgba(0, 0, 0, 0.24);
}

.hero-movie-label {
  display: block;
  color: #fbbf24;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.hero-movie strong {
  display: block;
  margin-top: 8px;
  font-size: 28px;
}

.hero-movie p {
  margin: 10px 0 0;
  color: rgba(231, 229, 228, 0.86);
  line-height: 1.7;
}

.hero-tags,
.movie-tags,
.detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.hero-tags span,
.movie-tags span,
.detail-tags span {
  padding: 5px 9px;
  color: #fde68a;
  border: 1px solid rgba(245, 158, 11, 0.24);
  border-radius: 999px;
  background: rgba(120, 53, 15, 0.36);
  font-size: 12px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
}

.primary-button,
.ghost-button,
.text-button,
.search-form button,
.rank-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 999px;
  font-weight: 800;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.primary-button,
.search-form button,
.rank-action {
  color: #fff;
  background: linear-gradient(135deg, #f59e0b, #b45309);
  box-shadow: 0 14px 28px rgba(245, 158, 11, 0.24);
}

.primary-button:hover,
.search-form button:hover,
.rank-action:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 36px rgba(245, 158, 11, 0.32);
}

.ghost-button {
  color: #fde68a;
  border: 1px solid rgba(245, 158, 11, 0.35);
  background: rgba(41, 37, 36, 0.74);
}

.ghost-button:hover,
.text-button:hover {
  color: #fff;
  background: rgba(120, 53, 15, 0.68);
}

.text-button {
  color: #fbbf24;
}

.full-width {
  width: 100%;
}

.hero-dots {
  position: absolute;
  right: 42px;
  bottom: 36px;
  z-index: 4;
  display: flex;
  gap: 10px;
}

.hero-dot {
  width: 11px;
  height: 11px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.45);
  transition: width 0.2s ease, background 0.2s ease;
}

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

.quick-search,
.content-section,
.page-hero,
.watch-section,
.detail-layout {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: rgba(28, 25, 23, 0.82);
  box-shadow: var(--shadow);
}

.quick-search {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1.1fr);
  gap: 22px;
  align-items: center;
  margin-bottom: 34px;
  padding: 28px;
}

.quick-search h2,
.section-heading h2,
.detail-content h2 {
  margin: 0;
  color: #fff7ed;
  font-size: clamp(24px, 3vw, 36px);
  line-height: 1.2;
}

.search-form {
  display: flex;
  gap: 12px;
  padding: 8px;
  border: 1px solid rgba(245, 158, 11, 0.2);
  border-radius: 999px;
  background: rgba(12, 10, 9, 0.5);
}

.search-form input,
.filter-control input,
.filter-control select {
  width: 100%;
  color: #fff7ed;
  border: 1px solid rgba(245, 158, 11, 0.2);
  outline: none;
  background: rgba(12, 10, 9, 0.62);
}

.search-form input {
  min-height: 48px;
  padding: 0 16px;
  border: 0;
  background: transparent;
}

.search-form input::placeholder,
.filter-control input::placeholder {
  color: rgba(214, 211, 209, 0.62);
}

.content-section,
.page-hero,
.watch-section,
.detail-layout {
  margin-bottom: 34px;
  padding: 28px;
}

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

.section-more {
  flex-shrink: 0;
  color: #fbbf24;
  font-weight: 800;
}

.section-more:hover {
  color: #fff;
}

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

.category-tile,
.category-card-large a {
  display: block;
  height: 100%;
  padding: 20px;
  border: 1px solid rgba(245, 158, 11, 0.18);
  border-radius: var(--radius-md);
  background:
    radial-gradient(circle at top right, rgba(245, 158, 11, 0.16), transparent 12rem),
    rgba(41, 37, 36, 0.76);
  transition: transform 0.2s ease, border 0.2s ease, background 0.2s ease;
}

.category-tile:hover,
.category-card-large a:hover,
.movie-card:hover,
.rank-row:hover {
  transform: translateY(-4px);
  border-color: rgba(245, 158, 11, 0.48);
}

.category-tile span,
.category-card-large h2 {
  display: block;
  margin: 0 0 10px;
  color: #fde68a;
  font-size: 20px;
  font-weight: 800;
}

.category-tile p,
.category-card-large p {
  margin: 0;
  color: rgba(214, 211, 209, 0.8);
  line-height: 1.7;
}

.category-card-label {
  color: #fbbf24;
  font-size: 13px;
  font-weight: 800;
}

.category-samples {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 18px 0;
}

.category-samples span {
  max-width: 100%;
  padding: 6px 10px;
  overflow: hidden;
  color: rgba(253, 230, 138, 0.88);
  border-radius: 999px;
  background: rgba(120, 53, 15, 0.42);
  text-overflow: ellipsis;
  white-space: nowrap;
}

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

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

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

.movie-strip {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(190px, 1fr);
  gap: 16px;
  overflow-x: auto;
  padding-bottom: 6px;
  scrollbar-width: thin;
}

.movie-card {
  overflow: hidden;
  border: 1px solid rgba(245, 158, 11, 0.14);
  border-radius: var(--radius-md);
  background: rgba(41, 37, 36, 0.82);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.18);
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.movie-card:hover {
  box-shadow: 0 22px 52px rgba(0, 0, 0, 0.28);
}

.poster-wrap {
  position: relative;
  display: block;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  background: linear-gradient(135deg, #292524, #0c0a09);
}

.poster-wrap img,
.detail-cover img,
.rank-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease, opacity 0.3s ease;
}

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

.poster-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  padding: 5px 8px;
  color: #fff;
  border-radius: 999px;
  background: rgba(12, 10, 9, 0.7);
  font-size: 12px;
  font-weight: 800;
}

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

.movie-card-meta,
.watch-meta,
.rank-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: #fbbf24;
  font-size: 12px;
  font-weight: 700;
}

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

.movie-card h3 a:hover,
.rank-content h3 a:hover {
  color: #fde68a;
}

.movie-card p {
  display: -webkit-box;
  min-height: 46px;
  margin: 0;
  overflow: hidden;
  color: rgba(214, 211, 209, 0.82);
  font-size: 14px;
  line-height: 1.65;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.compact-card .movie-card-body {
  padding: 12px;
}

.compact-card h3 {
  font-size: 16px;
}

.rank-list {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.rank-row {
  display: grid;
  grid-template-columns: 52px 80px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 12px;
  border: 1px solid rgba(245, 158, 11, 0.14);
  border-radius: var(--radius-md);
  background: rgba(41, 37, 36, 0.76);
  transition: transform 0.2s ease, border 0.2s ease, background 0.2s ease;
}

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

.rank-poster {
  display: block;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  border-radius: 12px;
  background: #1c1917;
}

.rank-content h3 {
  margin: 0 0 6px;
  font-size: 18px;
}

.rank-content p {
  margin: 0 0 8px;
  color: rgba(214, 211, 209, 0.82);
  line-height: 1.6;
}

.page-hero {
  min-height: 260px;
  padding: 42px;
  background:
    radial-gradient(circle at top right, rgba(245, 158, 11, 0.18), transparent 18rem),
    linear-gradient(135deg, rgba(41, 37, 36, 0.95), rgba(12, 10, 9, 0.88));
}

.small-hero {
  min-height: 220px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin: 0 0 18px;
  color: rgba(253, 230, 138, 0.82);
  font-size: 14px;
}

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

.filter-panel {
  display: grid;
  grid-template-columns: minmax(260px, 1.4fr) repeat(4, minmax(130px, 1fr));
  gap: 12px;
  margin-bottom: 24px;
}

.filter-control {
  display: grid;
  gap: 8px;
  color: rgba(253, 230, 138, 0.88);
  font-size: 13px;
  font-weight: 800;
}

.filter-control input,
.filter-control select {
  min-height: 46px;
  padding: 0 12px;
  border-radius: 14px;
}

.empty-message {
  display: none;
  margin: 20px 0 0;
  color: rgba(214, 211, 209, 0.82);
  text-align: center;
}

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

.link-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.link-cloud a {
  padding: 9px 14px;
  color: #fde68a;
  border: 1px solid rgba(245, 158, 11, 0.2);
  border-radius: 999px;
  background: rgba(41, 37, 36, 0.62);
}

.link-cloud a:hover {
  color: #fff;
  border-color: rgba(245, 158, 11, 0.5);
}

.watch-section {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(320px, 0.8fr);
  gap: 24px;
  align-items: center;
}

.player-shell {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(245, 158, 11, 0.22);
  border-radius: var(--radius-lg);
  background: #000;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.5);
  aspect-ratio: 16 / 9;
}

.movie-video {
  width: 100%;
  height: 100%;
  background: #000;
  object-fit: contain;
}

.player-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  gap: 14px;
  border: 0;
  color: #fff;
  background:
    radial-gradient(circle at center, rgba(245, 158, 11, 0.18), transparent 14rem),
    rgba(0, 0, 0, 0.36);
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

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

.play-button-icon {
  display: grid;
  width: 78px;
  height: 78px;
  place-items: center;
  border-radius: 999px;
  background: linear-gradient(135deg, #f59e0b, #b45309);
  box-shadow: 0 18px 45px rgba(245, 158, 11, 0.35);
}

.play-button-icon::before {
  display: block;
  width: 0;
  height: 0;
  margin-left: 6px;
  border-top: 15px solid transparent;
  border-bottom: 15px solid transparent;
  border-left: 24px solid #fff;
  content: "";
}

.play-button-text {
  font-size: 18px;
  font-weight: 900;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.5);
}

.watch-info h1 {
  margin: 0;
  color: #fff;
  font-size: clamp(28px, 4vw, 46px);
  line-height: 1.15;
}

.watch-info p {
  margin: 18px 0;
  color: rgba(231, 229, 228, 0.88);
  line-height: 1.8;
}

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

.detail-cover {
  position: sticky;
  top: 92px;
  display: grid;
  gap: 14px;
}

.detail-cover img {
  border-radius: var(--radius-md);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.34);
  aspect-ratio: 2 / 3;
  background: #1c1917;
}

.detail-content h2 {
  margin-top: 0;
  margin-bottom: 14px;
  font-size: 26px;
}

.detail-content h2:not(:first-child) {
  margin-top: 30px;
}

.detail-content p {
  margin: 0;
  color: rgba(231, 229, 228, 0.88);
  font-size: 17px;
  line-height: 1.9;
}

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

.info-list div {
  display: grid;
  gap: 6px;
  padding: 14px;
  border: 1px solid rgba(245, 158, 11, 0.14);
  border-radius: var(--radius-sm);
  background: rgba(12, 10, 9, 0.34);
}

.info-list dt {
  color: #fbbf24;
  font-size: 13px;
  font-weight: 800;
}

.info-list dd {
  margin: 0;
  color: #fff7ed;
}

.site-footer {
  border-top: 1px solid rgba(245, 158, 11, 0.16);
  background: rgba(12, 10, 9, 0.88);
}

.footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 34px 20px;
}

.footer-inner p {
  max-width: 760px;
  color: rgba(214, 211, 209, 0.78);
  line-height: 1.8;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin: 20px 0;
}

.copyright {
  margin-bottom: 0;
  color: rgba(168, 162, 158, 0.8);
}

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

  .mobile-menu-button {
    display: block;
  }

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

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

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

  .filter-search {
    grid-column: 1 / -1;
  }
}

@media (max-width: 820px) {
  main,
  .page-main {
    padding: 18px 14px 48px;
  }

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

  .hero-content {
    padding: 42px 22px 80px;
  }

  .hero-overlay {
    background:
      linear-gradient(0deg, rgba(12, 10, 9, 0.96) 0%, rgba(12, 10, 9, 0.78) 70%, rgba(12, 10, 9, 0.45) 100%);
  }

  .hero-dots {
    right: 22px;
    bottom: 24px;
  }

  .quick-search,
  .watch-section,
  .detail-layout {
    grid-template-columns: 1fr;
  }

  .search-form {
    border-radius: 18px;
    flex-direction: column;
  }

  .search-form button {
    width: 100%;
  }

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

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

  .rank-row {
    grid-template-columns: 44px 72px minmax(0, 1fr);
  }

  .rank-action {
    grid-column: 2 / -1;
    width: fit-content;
  }

  .detail-cover {
    position: static;
    max-width: 320px;
  }
}

@media (max-width: 560px) {
  .header-inner {
    padding: 12px 14px;
  }

  .brand-name {
    max-width: 150px;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .mobile-nav.is-open {
    grid-template-columns: 1fr;
    padding: 0 14px 14px;
  }

  .hero-slider {
    min-height: 620px;
    margin-left: -14px;
    margin-right: -14px;
    border-radius: 0 0 24px 24px;
  }

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

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

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

  .content-section,
  .page-hero,
  .watch-section,
  .detail-layout,
  .quick-search {
    padding: 18px;
    border-radius: 20px;
  }

  .filter-panel,
  .category-grid,
  .category-large-grid,
  .movie-grid,
  .category-movie-grid,
  .related-grid,
  .info-list {
    grid-template-columns: 1fr;
  }

  .movie-strip {
    grid-auto-columns: 78%;
  }
}
