:root {
  --bg: #030712;
  --bg-soft: #0f172a;
  --card: #111827;
  --card-2: #1f2937;
  --line: #374151;
  --text: #f9fafb;
  --muted: #9ca3af;
  --muted-2: #6b7280;
  --amber: #d97706;
  --amber-light: #f59e0b;
  --amber-deep: #92400e;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.42);
  --radius: 18px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--bg);
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background: linear-gradient(180deg, #111827 0%, #030712 42%, #111827 100%);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}

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

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

button,
input {
  font: inherit;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: linear-gradient(90deg, rgba(17, 24, 39, 0.96), rgba(31, 41, 55, 0.94), rgba(17, 24, 39, 0.96));
  border-bottom: 1px solid rgba(75, 85, 99, 0.72);
  backdrop-filter: blur(16px);
}

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

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.brand-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--amber-light), var(--amber-deep));
  color: white;
  box-shadow: 0 12px 30px rgba(217, 119, 6, 0.28);
  transition: transform 0.25s ease;
}

.brand:hover .brand-mark {
  transform: scale(1.06);
}

.brand-copy {
  display: grid;
  line-height: 1.1;
}

.brand-copy strong,
.footer-brand {
  font-size: 21px;
  font-weight: 800;
  letter-spacing: 0.02em;
  background: linear-gradient(90deg, #fbbf24, #d97706);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.brand-copy small {
  margin-top: 5px;
  color: var(--muted);
  font-size: 12px;
}

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

.nav-link,
.mobile-nav-link {
  color: #d1d5db;
  font-weight: 600;
  transition: color 0.2s ease;
}

.nav-link:hover,
.nav-link.is-active,
.mobile-nav-link:hover,
.mobile-nav-link.is-active {
  color: var(--amber-light);
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 12px;
  background: rgba(31, 41, 55, 0.9);
  cursor: pointer;
}

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

.mobile-nav {
  display: none;
  padding: 0 16px 16px;
  border-top: 1px solid rgba(75, 85, 99, 0.52);
}

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

.mobile-nav-link {
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(17, 24, 39, 0.86);
}

.hero-carousel {
  position: relative;
  height: 72vh;
  min-height: 560px;
  overflow: hidden;
  background: #000;
}

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

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

.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.02);
}

.hero-shade {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 20% 25%, rgba(245, 158, 11, 0.24), transparent 28%), linear-gradient(0deg, #030712 0%, rgba(3, 7, 18, 0.86) 28%, rgba(0, 0, 0, 0.42) 100%);
}

.hero-copy {
  position: relative;
  z-index: 3;
  height: 100%;
  display: flex;
  align-items: flex-end;
  padding-bottom: 92px;
}

.hero-text {
  max-width: 700px;
}

.hero-eyebrow,
.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--amber-light);
  font-weight: 800;
  letter-spacing: 0.08em;
}

.hero-title {
  margin: 14px 0 18px;
  color: white;
  font-size: clamp(40px, 7vw, 72px);
  line-height: 1.05;
  letter-spacing: -0.045em;
}

.hero-text p,
.page-hero p,
.section-heading p,
.detail-lead {
  color: #d1d5db;
  line-height: 1.8;
}

.hero-text p {
  max-width: 620px;
  font-size: 18px;
}

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

.hero-meta span,
.detail-meta span,
.rank-meta span,
.list-meta span,
.movie-meta span {
  display: inline-flex;
  align-items: center;
}

.hero-tags,
.detail-tags,
.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.hero-tags {
  margin-top: 18px;
}

.hero-tags span,
.detail-tags span,
.tag-row span {
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(55, 65, 81, 0.72);
  color: #d1d5db;
  font-size: 12px;
}

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

.btn-primary,
.btn-secondary,
.section-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border-radius: 12px;
  font-weight: 800;
  transition: transform 0.24s ease, box-shadow 0.24s ease, background 0.24s ease, color 0.24s ease;
}

.btn-primary {
  padding: 0 28px;
  color: white;
  background: var(--amber);
  box-shadow: 0 16px 34px rgba(217, 119, 6, 0.28);
}

.btn-primary:hover {
  transform: translateY(-2px) scale(1.02);
  background: var(--amber-light);
  box-shadow: 0 20px 44px rgba(217, 119, 6, 0.38);
}

.btn-secondary {
  padding: 0 24px;
  color: #fde68a;
  border: 1px solid rgba(245, 158, 11, 0.55);
  background: rgba(17, 24, 39, 0.62);
}

.btn-secondary:hover {
  transform: translateY(-2px);
  background: rgba(146, 64, 14, 0.32);
}

.hero-dots {
  position: absolute;
  right: max(28px, calc((100% - 1180px) / 2));
  bottom: 42px;
  z-index: 4;
  display: flex;
  gap: 10px;
}

.hero-dot {
  width: 12px;
  height: 12px;
  border: 0;
  border-radius: 999px;
  background: #6b7280;
  cursor: pointer;
  transition: width 0.25s ease, background 0.25s ease;
}

.hero-dot.is-active {
  width: 34px;
  background: var(--amber);
}

.hero-search {
  position: absolute;
  left: 50%;
  bottom: 28px;
  z-index: 5;
  width: min(560px, calc(100% - 184px));
  transform: translateX(-50%);
  display: flex;
  padding: 8px;
  border: 1px solid rgba(245, 158, 11, 0.35);
  border-radius: 16px;
  background: rgba(3, 7, 18, 0.72);
  backdrop-filter: blur(16px);
}

.hero-search input,
.filter-search input {
  width: 100%;
  border: 0;
  outline: none;
  color: white;
  background: transparent;
}

.hero-search input {
  padding: 0 16px;
}

.hero-search button {
  border: 0;
  border-radius: 12px;
  padding: 0 22px;
  color: white;
  background: var(--amber);
  font-weight: 800;
  cursor: pointer;
}

.content-section {
  padding: 72px 0;
}

.wide-band {
  background: linear-gradient(180deg, rgba(17, 24, 39, 0.78), rgba(0, 0, 0, 0.74));
}

.alt-band {
  background: linear-gradient(0deg, rgba(17, 24, 39, 0.78), rgba(0, 0, 0, 0.74));
}

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

.section-heading h2,
.page-hero h1,
.detail-copy h1,
.watch-heading h2,
.detail-body h2 {
  margin: 10px 0 0;
  color: white;
  line-height: 1.16;
}

.section-heading h2,
.page-hero h1 {
  font-size: clamp(30px, 4.5vw, 46px);
}

.section-heading p {
  margin: 12px 0 0;
  max-width: 640px;
}

.section-link {
  min-width: 110px;
  padding: 0 18px;
  color: var(--amber-light);
  border: 1px solid rgba(245, 158, 11, 0.32);
}

.section-link:hover {
  background: rgba(217, 119, 6, 0.12);
}

.large-grid,
.movie-grid,
.category-grid,
.overview-grid {
  display: grid;
  gap: 22px;
}

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

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

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

.movie-card,
.movie-list-item,
.rank-item,
.category-card,
.category-overview-card {
  background: var(--card);
  border: 1px solid rgba(75, 85, 99, 0.86);
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.22);
  transition: transform 0.28s ease, border-color 0.28s ease, box-shadow 0.28s ease;
}

.movie-card {
  display: block;
  height: 100%;
  overflow: hidden;
  border-radius: var(--radius);
}

.movie-card:hover,
.movie-list-item:hover,
.rank-item:hover,
.category-card:hover,
.category-overview-card:hover {
  transform: translateY(-4px);
  border-color: rgba(245, 158, 11, 0.86);
  box-shadow: 0 26px 68px rgba(146, 64, 14, 0.24);
}

.movie-poster {
  position: relative;
  height: 210px;
  overflow: hidden;
  background: linear-gradient(135deg, #1f2937, #030712);
}

.large-poster {
  height: 320px;
}

.movie-poster img,
.list-thumb img,
.rank-item img,
.detail-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

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

.poster-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.78), transparent 58%);
}

.poster-play,
.list-play {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  opacity: 0;
  background: rgba(0, 0, 0, 0.34);
  transition: opacity 0.25s ease;
}

.movie-card:hover .poster-play,
.movie-list-item:hover .list-play {
  opacity: 1;
}

.play-symbol {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--amber);
  color: white;
  box-shadow: 0 14px 35px rgba(217, 119, 6, 0.32);
}

.year-pill {
  position: absolute;
  right: 12px;
  top: 12px;
  padding: 5px 10px;
  border-radius: 999px;
  color: white;
  background: rgba(0, 0, 0, 0.66);
  font-size: 12px;
  font-weight: 800;
  backdrop-filter: blur(10px);
}

.movie-info {
  padding: 16px;
}

.movie-info h3,
.list-copy h3,
.rank-copy h3 {
  margin: 0;
  color: white;
  transition: color 0.24s ease;
}

.movie-card:hover h3,
.movie-list-item:hover h3,
.rank-item:hover h3 {
  color: var(--amber-light);
}

.movie-info h3 {
  min-height: 46px;
  font-size: 17px;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.movie-card-large .movie-info h3 {
  min-height: auto;
  font-size: 22px;
  -webkit-line-clamp: 1;
}

.movie-info p,
.list-copy p,
.rank-copy p {
  color: var(--muted);
  line-height: 1.7;
}

.movie-info p {
  margin: 10px 0 12px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.movie-meta {
  justify-content: space-between;
  margin: 10px 0;
  font-size: 13px;
}

.movie-meta span:first-child {
  color: var(--amber-light);
  font-weight: 800;
}

.tag-row {
  margin-top: 12px;
}

.list-stack {
  display: grid;
  gap: 16px;
}

.movie-list-item {
  display: flex;
  gap: 16px;
  padding: 14px;
  overflow: hidden;
  border-radius: 16px;
}

.list-thumb {
  position: relative;
  width: 150px;
  min-height: 104px;
  flex: 0 0 150px;
  overflow: hidden;
  border-radius: 12px;
  background: #111827;
}

.list-copy {
  min-width: 0;
  flex: 1;
}

.list-copy h3,
.rank-copy h3 {
  font-size: 18px;
}

.list-copy p,
.rank-copy p {
  margin: 8px 0 10px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.category-card,
.category-overview-card {
  min-height: 190px;
  padding: 22px;
  border-radius: 20px;
  background: radial-gradient(circle at 85% 10%, rgba(245, 158, 11, 0.22), transparent 34%), linear-gradient(135deg, rgba(31, 41, 55, 0.96), rgba(17, 24, 39, 0.96));
}

.category-name,
.category-main-link span {
  color: white;
  font-size: 22px;
  font-weight: 900;
}

.category-card p,
.category-overview-card p {
  color: var(--muted);
  line-height: 1.8;
}

.category-preview,
.category-title-links,
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.category-preview span,
.category-title-links a {
  padding: 6px 10px;
  border-radius: 999px;
  color: #fde68a;
  background: rgba(146, 64, 14, 0.24);
  font-size: 12px;
}

.page-main {
  min-height: 70vh;
}

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

.compact-hero {
  border-bottom: 1px solid rgba(75, 85, 99, 0.4);
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 26px;
  color: var(--muted);
  font-size: 14px;
}

.breadcrumb a:hover {
  color: var(--amber-light);
}

.filter-panel {
  display: grid;
  gap: 16px;
  margin-bottom: 28px;
  padding: 16px;
  border: 1px solid rgba(75, 85, 99, 0.78);
  border-radius: 20px;
  background: rgba(17, 24, 39, 0.82);
}

.filter-search {
  display: grid;
  gap: 10px;
  color: var(--amber-light);
  font-weight: 800;
}

.filter-search input {
  min-height: 48px;
  padding: 0 16px;
  border: 1px solid rgba(75, 85, 99, 0.8);
  border-radius: 14px;
  background: rgba(3, 7, 18, 0.78);
}

.filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.filter-chips button {
  border: 1px solid rgba(245, 158, 11, 0.24);
  border-radius: 999px;
  padding: 8px 12px;
  color: #fde68a;
  background: rgba(146, 64, 14, 0.18);
  cursor: pointer;
}

.filter-chips button:hover {
  background: rgba(217, 119, 6, 0.28);
}

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

.category-main-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.category-main-link strong {
  color: var(--amber-light);
}

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

.rank-item {
  display: grid;
  grid-template-columns: 58px 120px 1fr;
  align-items: center;
  gap: 18px;
  padding: 12px;
  border-radius: 18px;
}

.rank-badge {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  color: white;
  background: linear-gradient(135deg, var(--amber-light), var(--amber-deep));
}

.rank-item img {
  width: 120px;
  height: 82px;
  border-radius: 12px;
  object-fit: cover;
}

.detail-hero {
  padding: 42px 0 38px;
}

.detail-layout {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 34px;
  align-items: center;
}

.detail-cover {
  height: 500px;
  overflow: hidden;
  border: 1px solid rgba(75, 85, 99, 0.82);
  border-radius: 24px;
  background: var(--card);
  box-shadow: var(--shadow);
}

.detail-copy h1 {
  font-size: clamp(34px, 5vw, 58px);
}

.detail-lead {
  margin: 18px 0;
  max-width: 820px;
  font-size: 18px;
}

.detail-meta {
  margin: 18px 0;
}

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

.watch-section {
  padding: 26px 0 48px;
}

.watch-heading {
  margin-bottom: 18px;
}

.player-card {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(75, 85, 99, 0.82);
  border-radius: 24px;
  background: #000;
  box-shadow: var(--shadow);
}

.movie-video {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
}

.player-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  gap: 12px;
  border: 0;
  color: white;
  background: radial-gradient(circle at center, rgba(217, 119, 6, 0.24), rgba(0, 0, 0, 0.66));
  cursor: pointer;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

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

.player-button {
  width: 86px;
  height: 86px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: var(--amber);
  box-shadow: 0 22px 54px rgba(217, 119, 6, 0.34);
  font-size: 34px;
}

.player-overlay strong {
  font-size: 18px;
}

.detail-body {
  padding: 10px 0 28px;
}

.detail-body article {
  padding: 28px;
  border: 1px solid rgba(75, 85, 99, 0.76);
  border-radius: 22px;
  background: rgba(17, 24, 39, 0.82);
}

.detail-body p {
  color: #d1d5db;
  font-size: 16px;
  line-height: 2;
}

.site-footer {
  margin-top: 44px;
  border-top: 1px solid rgba(75, 85, 99, 0.58);
  background: rgba(3, 7, 18, 0.9);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 32px;
  padding: 46px 0;
}

.footer-grid p,
.footer-links a {
  color: var(--muted);
  line-height: 1.8;
}

.footer-grid h2 {
  margin: 0 0 14px;
  font-size: 18px;
}

.footer-links {
  flex-direction: column;
}

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

.footer-bottom {
  padding: 20px 16px;
  text-align: center;
  color: var(--muted-2);
  border-top: 1px solid rgba(75, 85, 99, 0.4);
}

[hidden],
.is-filtered-out {
  display: none !important;
}

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

  .menu-toggle {
    display: block;
  }

  .hero-carousel {
    min-height: 600px;
  }

  .hero-search {
    width: calc(100% - 32px);
    bottom: 18px;
  }

  .hero-dots {
    right: 18px;
    bottom: 82px;
  }

  .large-grid,
  .movie-grid,
  .movie-grid.three-col,
  .category-grid,
  .overview-grid,
  .footer-grid,
  .detail-layout {
    grid-template-columns: 1fr 1fr;
  }

  .detail-layout {
    align-items: start;
  }

  .detail-cover {
    height: 420px;
  }
}

@media (max-width: 680px) {
  .site-shell {
    width: min(100% - 24px, 1180px);
  }

  .brand-copy small {
    display: none;
  }

  .hero-carousel {
    height: 78vh;
    min-height: 620px;
  }

  .hero-copy {
    padding-bottom: 138px;
  }

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

  .hero-actions,
  .detail-actions,
  .section-heading {
    align-items: stretch;
    flex-direction: column;
  }

  .hero-search {
    flex-direction: column;
    gap: 8px;
  }

  .hero-search input,
  .hero-search button {
    min-height: 44px;
  }

  .large-grid,
  .movie-grid,
  .movie-grid.three-col,
  .category-grid,
  .overview-grid,
  .footer-grid,
  .detail-layout {
    grid-template-columns: 1fr;
  }

  .movie-poster {
    height: 240px;
  }

  .large-poster {
    height: 330px;
  }

  .movie-list-item,
  .rank-item {
    grid-template-columns: 1fr;
  }

  .movie-list-item {
    flex-direction: column;
  }

  .list-thumb,
  .rank-item img {
    width: 100%;
    height: 190px;
  }

  .rank-badge {
    position: absolute;
    z-index: 2;
    margin: 10px;
  }

  .rank-item {
    position: relative;
  }

  .detail-cover {
    height: 460px;
  }
}
