:root {
  --bg: #f8fafc;
  --bg-soft: #eef2f7;
  --card: #ffffff;
  --ink: #0f172a;
  --muted: #64748b;
  --line: #e2e8f0;
  --brand: #f59e0b;
  --brand-2: #ea580c;
  --dark: #0f172a;
  --dark-2: #1e293b;
  --shadow: 0 18px 45px rgba(15, 23, 42, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 45%, #e2e8f0 100%);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  -webkit-font-smoothing: antialiased;
}

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

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

button,
input,
select {
  font: inherit;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  color: #fff;
  background: linear-gradient(90deg, rgba(15, 23, 42, 0.98), rgba(30, 41, 59, 0.96), rgba(15, 23, 42, 0.98));
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.22);
  backdrop-filter: blur(16px);
}

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

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

.logo-mark {
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 14px;
  color: #fff;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  box-shadow: 0 10px 24px rgba(234, 88, 12, 0.34);
}

.brand-text {
  display: grid;
  gap: 2px;
}

.brand-text strong {
  font-size: 23px;
  line-height: 1;
  background: linear-gradient(90deg, #fbbf24, #fb923c);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.brand-text small {
  color: #cbd5e1;
  font-size: 12px;
  font-weight: 500;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-link {
  padding: 10px 14px;
  border-radius: 12px;
  color: #cbd5e1;
  font-size: 14px;
  font-weight: 700;
  transition: 0.2s ease;
}

.nav-link:hover,
.nav-link.is-active {
  color: #fff;
  background: linear-gradient(90deg, var(--brand), var(--brand-2));
  box-shadow: 0 8px 20px rgba(234, 88, 12, 0.28);
}

.menu-toggle {
  display: none;
  border: 0;
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 10px 12px;
}

.mobile-nav {
  display: none;
  padding: 8px 16px 18px;
  border-top: 1px solid rgba(148, 163, 184, 0.2);
}

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

.hero {
  position: relative;
  min-height: 620px;
  overflow: hidden;
  background: #020617;
}

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

.hero-slide {
  opacity: 0;
  transition: opacity 0.8s ease;
  pointer-events: none;
}

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

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

.hero-overlay {
  background:
    radial-gradient(circle at 20% 35%, rgba(245, 158, 11, 0.32), transparent 32%),
    linear-gradient(0deg, rgba(2, 6, 23, 0.98) 0%, rgba(2, 6, 23, 0.62) 42%, rgba(2, 6, 23, 0.18) 100%),
    linear-gradient(90deg, rgba(2, 6, 23, 0.82), rgba(2, 6, 23, 0.18));
}

.hero-content {
  position: relative;
  z-index: 2;
  min-height: 620px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 0 0 126px;
  color: #fff;
}

.hero-badge,
.section-eyebrow {
  display: inline-flex;
  align-items: center;
  width: max-content;
  padding: 6px 12px;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(90deg, var(--brand), var(--brand-2));
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.hero h1 {
  max-width: 760px;
  margin: 18px 0 16px;
  font-size: clamp(34px, 6vw, 64px);
  line-height: 1.04;
  font-weight: 900;
  letter-spacing: -0.04em;
}

.hero p {
  max-width: 720px;
  margin: 0 0 22px;
  color: #e2e8f0;
  font-size: clamp(16px, 2vw, 20px);
  line-height: 1.75;
}

.hero-tags,
.detail-meta,
.movie-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.hero-tags span,
.detail-meta span,
.movie-meta span {
  padding: 5px 9px;
  border-radius: 999px;
  color: #475569;
  background: #f1f5f9;
  font-size: 12px;
  font-weight: 700;
}

.hero-tags span {
  color: #f8fafc;
  background: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(8px);
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 20px;
  border-radius: 14px;
  font-weight: 850;
  transition: 0.2s ease;
}

.btn-primary {
  color: #fff;
  background: linear-gradient(90deg, var(--brand), var(--brand-2));
  box-shadow: 0 14px 28px rgba(234, 88, 12, 0.35);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 34px rgba(234, 88, 12, 0.42);
}

.btn-ghost {
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.26);
  background: rgba(15, 23, 42, 0.42);
  backdrop-filter: blur(12px);
}

.hero-arrow {
  position: absolute;
  top: 50%;
  z-index: 4;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 999px;
  color: #fff;
  background: rgba(2, 6, 23, 0.48);
  font-size: 34px;
  line-height: 1;
  transition: 0.2s ease;
}

.hero-arrow:hover {
  background: rgba(2, 6, 23, 0.78);
}

.hero-prev {
  left: 18px;
}

.hero-next {
  right: 18px;
}

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

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

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

.hero-search {
  position: absolute;
  z-index: 4;
  left: 50%;
  bottom: 68px;
  display: grid;
  grid-template-columns: 1fr auto;
  width: min(760px, calc(100% - 32px));
  padding: 8px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 18px;
  background: rgba(15, 23, 42, 0.55);
  backdrop-filter: blur(18px);
  transform: translateX(-50%);
}

.hero-search input,
.filter-search input,
.filter-selects select {
  min-width: 0;
  border: 0;
  outline: none;
  border-radius: 12px;
}

.hero-search input {
  color: #fff;
  background: transparent;
  padding: 0 14px;
}

.hero-search input::placeholder {
  color: #cbd5e1;
}

.hero-search button {
  border: 0;
  border-radius: 12px;
  color: #fff;
  background: linear-gradient(90deg, var(--brand), var(--brand-2));
  padding: 12px 22px;
  font-weight: 850;
}

.category-strip {
  color: #fff;
  background: linear-gradient(90deg, #0f172a, #1e293b);
}

.strip-inner {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 0;
}

.strip-inner div {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.strip-inner a {
  padding: 8px 12px;
  border-radius: 999px;
  color: #f8fafc;
  background: rgba(255, 255, 255, 0.08);
  font-size: 14px;
  font-weight: 700;
}

.strip-inner a:hover {
  background: linear-gradient(90deg, var(--brand), var(--brand-2));
}

.page-stack {
  display: grid;
  gap: 52px;
  padding: 52px 0;
}

.content-section {
  display: grid;
  gap: 22px;
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
}

.section-head h2 {
  margin: 12px 0 0;
  color: var(--ink);
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.12;
  font-weight: 900;
  letter-spacing: -0.025em;
}

.section-more {
  color: #d97706;
  font-weight: 850;
}

.movie-grid {
  display: grid;
  gap: 22px;
}

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

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

.movie-card {
  overflow: hidden;
  border: 1px solid rgba(226, 232, 240, 0.92);
  border-radius: 22px;
  background: var(--card);
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.07);
  transition: 0.25s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
}

.movie-poster {
  position: relative;
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #1e293b;
}

.movie-card-small .movie-poster {
  aspect-ratio: 3 / 4;
}

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

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

.poster-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(2, 6, 23, 0.72), transparent 58%);
  opacity: 0;
  transition: 0.25s ease;
}

.movie-card:hover .poster-gradient {
  opacity: 1;
}

.poster-badge,
.poster-year {
  position: absolute;
  z-index: 2;
  border-radius: 999px;
  padding: 5px 9px;
  font-size: 12px;
  font-weight: 850;
}

.poster-badge {
  left: 10px;
  top: 10px;
  color: #fff;
  background: linear-gradient(90deg, var(--brand), var(--brand-2));
}

.poster-year {
  right: 10px;
  bottom: 10px;
  color: #fff;
  background: rgba(2, 6, 23, 0.72);
}

.movie-info {
  display: grid;
  gap: 10px;
  padding: 15px;
}

.movie-info h3 {
  margin: 0;
  font-size: 17px;
  line-height: 1.35;
  font-weight: 900;
}

.movie-info h3 a:hover {
  color: #d97706;
}

.movie-info p {
  display: -webkit-box;
  min-height: 44px;
  margin: 0;
  overflow: hidden;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.movie-meta span {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.scroll-row {
  display: flex;
  gap: 22px;
  overflow-x: auto;
  padding: 4px 4px 18px;
  scroll-snap-type: x proximity;
}

.scroll-card {
  flex: 0 0 310px;
  scroll-snap-align: start;
}

.rank-feature,
.discover-panel {
  padding: 28px;
  border-radius: 26px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.74), rgba(226, 232, 240, 0.92));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.55);
}

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

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

.rank-item {
  display: grid;
  grid-template-columns: auto 92px 1fr auto;
  align-items: center;
  gap: 14px;
  padding: 12px;
  border: 1px solid rgba(226, 232, 240, 0.92);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.06);
}

.rank-num {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 12px;
  color: #fff;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  font-weight: 900;
}

.rank-thumb {
  display: block;
  width: 92px;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-radius: 14px;
  background: #1e293b;
}

.rank-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.rank-body h3 {
  margin: 0 0 6px;
  font-size: 16px;
  font-weight: 900;
}

.rank-body p {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.rank-action {
  padding: 9px 12px;
  border-radius: 12px;
  color: #fff;
  background: linear-gradient(90deg, var(--brand), var(--brand-2));
  font-size: 13px;
  font-weight: 850;
}

.page-hero {
  padding: 78px 0;
  color: #fff;
  background:
    radial-gradient(circle at 20% 20%, rgba(245, 158, 11, 0.32), transparent 28%),
    linear-gradient(135deg, #020617, #1e293b 55%, #0f172a);
}

.page-hero h1 {
  margin: 16px 0 14px;
  font-size: clamp(36px, 5vw, 58px);
  line-height: 1.08;
  font-weight: 950;
  letter-spacing: -0.04em;
}

.page-hero p {
  max-width: 760px;
  margin: 0;
  color: #cbd5e1;
  font-size: 18px;
  line-height: 1.75;
}

.filter-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  padding: 14px;
  border: 1px solid rgba(226, 232, 240, 0.95);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.06);
}

.filter-search input,
.filter-selects select {
  width: 100%;
  height: 46px;
  color: var(--ink);
  background: #f8fafc;
  padding: 0 14px;
  border: 1px solid #e2e8f0;
}

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

.empty-filter {
  margin: 0;
  padding: 18px;
  border-radius: 16px;
  color: var(--muted);
  background: #fff;
  text-align: center;
}

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

.category-card {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 18px;
  align-items: center;
  padding: 18px;
  border: 1px solid rgba(226, 232, 240, 0.94);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.06);
  transition: 0.2s ease;
}

.category-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.category-card-images {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
  overflow: hidden;
  border-radius: 16px;
  background: #0f172a;
}

.category-card-images img {
  width: 100%;
  height: 118px;
  object-fit: cover;
}

.category-card h2 {
  margin: 10px 0 8px;
  font-size: 24px;
  font-weight: 950;
}

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

.detail-hero {
  position: relative;
  padding: 52px 0;
  color: #fff;
  background:
    radial-gradient(circle at 20% 20%, rgba(245, 158, 11, 0.26), transparent 30%),
    linear-gradient(135deg, #020617, #1e293b);
}

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

.detail-cover {
  overflow: hidden;
  border-radius: 26px;
  box-shadow: 0 22px 55px rgba(2, 6, 23, 0.42);
  background: #0f172a;
}

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

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
  color: #cbd5e1;
  font-size: 14px;
}

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

.detail-copy h1 {
  margin: 0 0 18px;
  font-size: clamp(34px, 6vw, 64px);
  line-height: 1.06;
  font-weight: 950;
  letter-spacing: -0.04em;
}

.detail-one-line {
  max-width: 820px;
  margin: 0 0 20px;
  color: #e2e8f0;
  font-size: 18px;
  line-height: 1.75;
}

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

.detail-meta span {
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
}

.detail-page {
  padding: 42px 0 58px;
}

.player-section {
  margin-bottom: 36px;
}

.player-stage {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  background: #020617;
  box-shadow: 0 24px 70px rgba(2, 6, 23, 0.28);
}

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

.play-cover {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  gap: 12px;
  border: 0;
  color: #fff;
  background: radial-gradient(circle at center, rgba(15, 23, 42, 0.2), rgba(2, 6, 23, 0.72));
  cursor: pointer;
  transition: 0.2s ease;
}

.play-cover.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.play-button-icon {
  display: grid;
  place-items: center;
  width: 78px;
  height: 78px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  box-shadow: 0 18px 45px rgba(234, 88, 12, 0.38);
  font-size: 30px;
}

.play-cover span:last-child {
  font-size: 18px;
  font-weight: 900;
}

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

.detail-article,
.detail-side {
  border: 1px solid rgba(226, 232, 240, 0.95);
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 12px 35px rgba(15, 23, 42, 0.07);
}

.detail-article {
  display: grid;
  gap: 28px;
  padding: 30px;
}

.detail-side {
  padding: 22px;
  position: sticky;
  top: 98px;
}

.detail-article h2,
.detail-side h2 {
  margin: 0 0 14px;
  font-size: 24px;
  font-weight: 950;
  letter-spacing: -0.025em;
}

.detail-article p {
  margin: 0;
  color: #334155;
  line-height: 1.9;
  font-size: 16px;
}

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

.info-list div {
  padding: 14px;
  border-radius: 16px;
  background: #f8fafc;
}

.info-list dt {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.info-list dd {
  margin: 6px 0 0;
  font-weight: 900;
}

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

.tag-cloud a {
  padding: 8px 12px;
  border-radius: 999px;
  color: #92400e;
  background: #fffbeb;
  font-size: 14px;
  font-weight: 800;
}

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

.side-list .rank-item {
  grid-template-columns: 78px 1fr;
}

.side-list .rank-num,
.side-list .rank-action {
  display: none;
}

.side-list .rank-thumb {
  width: 78px;
}

.side-list .rank-body p {
  display: none;
}

.site-footer {
  color: #cbd5e1;
  background: linear-gradient(180deg, #0f172a, #020617);
  border-top: 1px solid rgba(148, 163, 184, 0.18);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr auto;
  gap: 28px;
  align-items: center;
  padding: 38px 0;
}

.footer-logo {
  color: #fff;
  margin-bottom: 12px;
}

.site-footer p,
.footer-copy {
  margin: 0;
  color: #94a3b8;
  line-height: 1.7;
}

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

.footer-links a {
  color: #cbd5e1;
  font-weight: 700;
}

.footer-links a:hover {
  color: #fbbf24;
}

[hidden] {
  display: none !important;
}

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

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

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

  .home-rank,
  .category-cards,
  .detail-content-grid {
    grid-template-columns: 1fr;
  }

  .detail-side {
    position: static;
  }

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

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

  .header-inner {
    min-height: 66px;
  }

  .brand-text small {
    display: none;
  }

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

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

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

  .hero-arrow {
    display: none;
  }

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

  .filter-selects {
    flex-direction: column;
  }

  .strip-inner {
    align-items: flex-start;
    flex-direction: column;
  }

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

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

  .movie-info {
    padding: 12px;
  }

  .movie-info h3 {
    font-size: 15px;
  }

  .movie-info p {
    font-size: 13px;
  }

  .rank-item {
    grid-template-columns: 64px 1fr;
  }

  .rank-num,
  .rank-action {
    display: none;
  }

  .rank-thumb {
    width: 64px;
  }

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

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

  .detail-cover {
    max-width: 240px;
  }

  .detail-article {
    padding: 20px;
  }

  .info-list {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 440px) {
  .four-grid,
  .six-grid,
  .compact-grid {
    grid-template-columns: 1fr;
  }

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