:root {
  color-scheme: dark;
  --bg-start: #1c1917;
  --bg-mid: #292524;
  --bg-end: #0c0a09;
  --panel: rgba(41, 37, 36, 0.88);
  --panel-soft: rgba(68, 64, 60, 0.66);
  --line: rgba(180, 83, 9, 0.42);
  --text: #fef3c7;
  --muted: rgba(253, 230, 138, 0.72);
  --muted-gray: #d1d5db;
  --white: #ffffff;
  --accent: #d97706;
  --accent-strong: #f59e0b;
  --accent-dark: #92400e;
  --danger: #7f1d1d;
  --radius-lg: 24px;
  --radius-md: 16px;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.45);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background:
    radial-gradient(circle at 12% 0%, rgba(217, 119, 6, 0.20), transparent 34%),
    radial-gradient(circle at 85% 18%, rgba(146, 64, 14, 0.30), transparent 32%),
    linear-gradient(180deg, var(--bg-start), var(--bg-mid) 44%, var(--bg-end));
}

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

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

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

.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(41, 37, 36, 0.96), rgba(120, 53, 15, 0.96));
  border-bottom: 2px solid rgba(180, 83, 9, 0.75);
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.32);
  backdrop-filter: blur(16px);
}

.nav-shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 64px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: max-content;
  font-weight: 900;
  letter-spacing: 0.02em;
}

.brand-mark {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff7ed;
  background: linear-gradient(135deg, #f59e0b, #b45309);
  border-radius: 999px;
  box-shadow: 0 12px 28px rgba(245, 158, 11, 0.28);
}

.brand-text {
  font-size: 24px;
  color: var(--text);
}

.desktop-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 22px;
  font-weight: 700;
  color: rgba(254, 243, 199, 0.88);
}

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

.desktop-nav a:hover,
.mobile-nav a:hover {
  color: var(--white);
}

.mobile-toggle {
  display: none;
  border: 0;
  color: var(--text);
  background: rgba(0, 0, 0, 0.18);
  border-radius: 12px;
  padding: 8px 12px;
}

.mobile-nav {
  display: none;
  padding: 10px 16px 16px;
  border-top: 1px solid rgba(180, 83, 9, 0.6);
  background: rgba(28, 25, 23, 0.98);
}

.mobile-nav a {
  display: block;
  padding: 11px 12px;
  border-radius: 10px;
  color: rgba(254, 243, 199, 0.92);
}

.mobile-nav a:hover {
  background: rgba(146, 64, 14, 0.42);
}

.hero-slider {
  position: relative;
  min-height: 560px;
  margin: 28px auto 64px;
  overflow: hidden;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  background: #000;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.9s ease;
}

.hero-slide.is-active {
  opacity: 1;
  pointer-events: auto;
}

.hero-media {
  position: absolute;
  inset: 0;
  background-image: var(--hero-image);
  background-size: cover;
  background-position: center;
  transform: scale(1.05);
  transition: transform 6s ease;
}

.hero-slide.is-active .hero-media {
  transform: scale(1);
}

.hero-slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.90) 0%, rgba(0, 0, 0, 0.68) 46%, rgba(0, 0, 0, 0.20) 100%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.18), rgba(0, 0, 0, 0.72));
}

.hero-copy {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: min(660px, calc(100% - 56px));
  min-height: 560px;
  margin-left: clamp(24px, 6vw, 76px);
  padding: 48px 0;
}

.eyebrow,
.poster-badge,
.detail-pill,
.search-pill {
  display: inline-flex;
  align-items: center;
  width: max-content;
  border-radius: 999px;
  background: var(--accent);
  color: var(--white);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.eyebrow {
  padding: 7px 12px;
  margin-bottom: 16px;
}

.hero-copy h1,
.hero-copy h2 {
  margin: 0 0 16px;
  color: var(--white);
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.08;
  font-weight: 950;
  text-wrap: balance;
}

.hero-copy p {
  margin: 0 0 22px;
  color: rgba(229, 231, 235, 0.92);
  font-size: 18px;
  line-height: 1.8;
}

.hero-meta,
.card-meta,
.rank-meta,
.detail-meta,
.inline-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  color: var(--muted);
}

.hero-meta {
  gap: 18px;
  margin-bottom: 28px;
  font-weight: 800;
}

.hero-actions,
.section-actions,
.form-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}

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

.btn-primary {
  color: var(--white);
  background: linear-gradient(135deg, #f59e0b, #b45309);
  box-shadow: 0 16px 34px rgba(217, 119, 6, 0.28);
}

.btn-secondary {
  color: var(--text);
  background: rgba(0, 0, 0, 0.42);
  border: 1px solid rgba(245, 158, 11, 0.42);
}

.btn-ghost {
  color: var(--text);
  background: rgba(146, 64, 14, 0.36);
}

.btn-primary:hover,
.btn-secondary:hover,
.btn-ghost:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.34);
}

.hero-control {
  position: absolute;
  z-index: 3;
  top: 50%;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 999px;
  color: var(--white);
  background: rgba(0, 0, 0, 0.46);
  transform: translateY(-50%);
  transition: background 0.22s ease, transform 0.22s ease;
}

.hero-control:hover {
  background: rgba(0, 0, 0, 0.72);
  transform: translateY(-50%) scale(1.05);
}

.hero-prev {
  left: 18px;
}

.hero-next {
  right: 18px;
}

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

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

.hero-dot.is-active {
  width: 28px;
  background: var(--accent-strong);
}

.section {
  margin: 0 auto 68px;
}

.section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 24px;
  padding-bottom: 14px;
  border-bottom: 2px solid rgba(180, 83, 9, 0.7);
}

.section-title {
  margin: 0;
  color: var(--text);
  font-size: clamp(26px, 4vw, 36px);
  line-height: 1.2;
  font-weight: 950;
}

.section-subtitle {
  margin: 7px 0 0;
  color: rgba(252, 211, 77, 0.68);
}

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

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

.movie-card {
  min-width: 0;
  overflow: hidden;
  border-radius: 18px;
  background: rgba(41, 37, 36, 0.82);
  box-shadow: 0 14px 42px rgba(0, 0, 0, 0.24);
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  background: rgba(68, 64, 60, 0.9);
  box-shadow: 0 22px 54px rgba(0, 0, 0, 0.36);
}

.poster {
  position: relative;
  display: block;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.36);
}

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

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

.poster-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 20%, rgba(0, 0, 0, 0.72) 100%);
}

.poster-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  padding: 4px 9px;
  font-size: 12px;
}

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

.card-body h3 {
  margin: 0 0 8px;
  font-size: 18px;
  line-height: 1.35;
  font-weight: 900;
  color: var(--text);
}

.card-body h3 a:hover,
.rank-copy h3 a:hover,
.channel-body h2 a:hover {
  color: #fcd34d;
}

.card-body p {
  display: -webkit-box;
  margin: 0 0 12px;
  min-height: 44px;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  color: var(--muted-gray);
  font-size: 13px;
  line-height: 1.7;
}

.card-meta {
  justify-content: space-between;
  gap: 6px;
  font-size: 12px;
}

.scroller-wrap {
  position: relative;
}

.card-scroller {
  display: flex;
  gap: 18px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 2px 2px 18px;
  scrollbar-width: none;
}

.card-scroller::-webkit-scrollbar {
  display: none;
}

.card-scroller .movie-card {
  flex: 0 0 216px;
  scroll-snap-align: start;
}

.scroll-button {
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 999px;
  color: var(--text);
  background: rgba(146, 64, 14, 0.86);
}

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

.channel-card {
  display: grid;
  grid-template-columns: 128px minmax(0, 1fr);
  gap: 18px;
  padding: 16px;
  border: 1px solid rgba(180, 83, 9, 0.32);
  border-radius: 20px;
  background: rgba(41, 37, 36, 0.74);
  transition: transform 0.24s ease, background 0.24s ease, border-color 0.24s ease;
}

.channel-card:hover {
  transform: translateY(-4px);
  background: rgba(68, 64, 60, 0.82);
  border-color: rgba(245, 158, 11, 0.62);
}

.channel-cover {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border-radius: 14px;
}

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

.channel-cover span {
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 10px;
  display: block;
  padding: 7px 10px;
  border-radius: 999px;
  color: var(--white);
  background: rgba(0, 0, 0, 0.56);
  text-align: center;
  font-weight: 900;
}

.channel-body h2 {
  margin: 0 0 10px;
  color: var(--text);
  font-size: 21px;
}

.channel-body p {
  margin: 0 0 12px;
  color: rgba(254, 243, 199, 0.78);
  line-height: 1.72;
}

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

.channel-links a,
.tag-list a,
.detail-tags span {
  display: inline-flex;
  padding: 6px 10px;
  border-radius: 999px;
  color: rgba(254, 243, 199, 0.9);
  background: rgba(68, 64, 60, 0.82);
  font-size: 12px;
}

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

.rank-item {
  display: grid;
  grid-template-columns: 56px 130px minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  padding: 14px;
  border-radius: 18px;
  background: rgba(41, 37, 36, 0.76);
  transition: background 0.22s ease, transform 0.22s ease;
}

.rank-item:hover {
  transform: translateX(4px);
  background: rgba(68, 64, 60, 0.84);
}

.rank-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  color: var(--white);
  background: var(--accent);
  font-weight: 950;
}

.rank-thumb {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-radius: 12px;
}

.rank-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.38s ease;
}

.rank-copy h3 {
  margin: 0 0 6px;
  color: var(--text);
  font-size: 20px;
}

.rank-copy p {
  margin: 0 0 8px;
  color: var(--muted-gray);
  line-height: 1.6;
}

.rank-meta {
  font-size: 13px;
}

.search-panel,
.filter-panel,
.detail-panel,
.content-panel {
  border: 1px solid rgba(180, 83, 9, 0.36);
  border-radius: 22px;
  background: rgba(41, 37, 36, 0.76);
  box-shadow: 0 18px 54px rgba(0, 0, 0, 0.24);
}

.search-panel,
.filter-panel {
  padding: 20px;
}

.search-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
}

.search-form input,
.filter-panel input,
.filter-panel select {
  width: 100%;
  min-height: 48px;
  border: 1px solid rgba(245, 158, 11, 0.28);
  border-radius: 999px;
  padding: 0 18px;
  color: var(--text);
  background: rgba(12, 10, 9, 0.56);
  outline: none;
}

.filter-panel select {
  border-radius: 14px;
}

.search-form input:focus,
.filter-panel input:focus,
.filter-panel select:focus {
  border-color: rgba(245, 158, 11, 0.72);
  box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.10);
}

.filter-panel {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 12px;
  margin-bottom: 28px;
}

.page-hero {
  padding: 64px 0 38px;
}

.page-hero h1 {
  margin: 0 0 14px;
  color: var(--white);
  font-size: clamp(34px, 5vw, 52px);
  line-height: 1.14;
  font-weight: 950;
}

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

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 18px;
  color: rgba(252, 211, 77, 0.78);
  font-size: 14px;
}

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

.player-card {
  overflow: hidden;
  border-radius: 22px;
  background: rgba(0, 0, 0, 0.72);
  box-shadow: var(--shadow);
}

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

.player-box video {
  width: 100%;
  height: 100%;
  background: #000;
}

.player-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle, rgba(0, 0, 0, 0.12), rgba(0, 0, 0, 0.50));
}

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

.play-button {
  width: 88px;
  height: 88px;
  border: 0;
  border-radius: 999px;
  color: var(--white);
  background: linear-gradient(135deg, #f59e0b, #b45309);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.38);
  font-size: 34px;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.play-button:hover {
  transform: scale(1.06);
  box-shadow: 0 24px 56px rgba(217, 119, 6, 0.36);
}

.detail-panel {
  padding: 28px;
  margin-top: 22px;
}

.detail-panel h1 {
  margin: 0 0 16px;
  color: var(--text);
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.18;
  font-weight: 950;
}

.detail-meta {
  margin-bottom: 20px;
}

.detail-pill {
  padding: 6px 11px;
}

.detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin: 18px 0 22px;
}

.prose h2,
.side-box h2 {
  margin: 24px 0 12px;
  color: #fcd34d;
  font-size: 24px;
  font-weight: 930;
}

.prose p {
  margin: 0 0 16px;
  color: rgba(254, 243, 199, 0.82);
  line-height: 1.92;
}

.side-box {
  position: sticky;
  top: 92px;
  border: 1px solid rgba(180, 83, 9, 0.34);
  border-radius: 22px;
  background: rgba(41, 37, 36, 0.76);
  padding: 18px;
}

.side-poster {
  overflow: hidden;
  border-radius: 18px;
  margin-bottom: 16px;
}

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

.mini-list {
  display: grid;
  gap: 12px;
}

.mini-item {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
}

.mini-item img {
  width: 76px;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: 10px;
}

.mini-item h3 {
  margin: 0 0 4px;
  font-size: 15px;
  line-height: 1.35;
}

.mini-item p {
  margin: 0;
  color: rgba(209, 213, 219, 0.78);
  font-size: 12px;
}

.site-footer {
  margin-top: 76px;
  border-top: 2px solid rgba(180, 83, 9, 0.66);
  background: linear-gradient(180deg, rgba(28, 25, 23, 0.94), rgba(12, 10, 9, 0.98));
}

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

.footer-grid h2 {
  margin: 0 0 14px;
  color: #fbbf24;
  font-size: 19px;
}

.footer-grid p {
  margin: 0;
  color: rgba(254, 243, 199, 0.72);
  line-height: 1.8;
}

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

.footer-links a {
  color: rgba(254, 243, 199, 0.74);
}

.footer-links a:hover {
  color: var(--white);
}

.footer-bottom {
  padding: 22px 16px 28px;
  border-top: 1px solid rgba(180, 83, 9, 0.25);
  color: rgba(254, 243, 199, 0.55);
  text-align: center;
  font-size: 13px;
}

.empty-state {
  display: none;
  padding: 34px;
  border-radius: 18px;
  color: rgba(254, 243, 199, 0.78);
  background: rgba(41, 37, 36, 0.74);
  text-align: center;
}

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

@media (max-width: 1080px) {
  .desktop-nav {
    gap: 14px;
    font-size: 14px;
  }

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

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

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

  .side-box {
    position: static;
  }
}

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

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

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

  .hero-slider {
    min-height: 520px;
    margin-top: 18px;
    border-radius: 18px;
  }

  .hero-copy {
    width: calc(100% - 42px);
    min-height: 520px;
    margin-left: 21px;
  }

  .hero-copy p {
    font-size: 16px;
  }

  .hero-control {
    display: none;
  }

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

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

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

  .rank-item {
    grid-template-columns: 42px 96px minmax(0, 1fr);
    gap: 12px;
  }

  .rank-copy p {
    display: none;
  }

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

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

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

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

  .card-body {
    padding: 12px;
  }

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

  .card-body p {
    min-height: 40px;
    font-size: 12px;
  }

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

  .channel-cover {
    aspect-ratio: 16 / 9;
  }

  .rank-item {
    grid-template-columns: 38px 82px minmax(0, 1fr);
  }

  .detail-panel {
    padding: 20px;
  }

  .play-button {
    width: 68px;
    height: 68px;
    font-size: 28px;
  }
}
