:root {
  --bg: #f9fafb;
  --text: #111827;
  --muted: #6b7280;
  --line: #e5e7eb;
  --card: #ffffff;
  --amber: #d97706;
  --amber-dark: #b45309;
  --orange: #ea580c;
  --soft-amber: #fffbeb;
  --soft-orange: #fff7ed;
  --shadow: 0 18px 45px rgba(17, 24, 39, 0.10);
  --shadow-soft: 0 10px 25px rgba(17, 24, 39, 0.08);
  --radius: 22px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--text);
  background: var(--bg);
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid rgba(229, 231, 235, 0.8);
  backdrop-filter: blur(18px);
}

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

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

.brand-mark {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 13px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--amber), var(--orange));
  box-shadow: 0 10px 24px rgba(217, 119, 6, 0.32);
}

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

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

.nav-link {
  position: relative;
  color: #374151;
  font-weight: 650;
  padding: 10px 0;
  transition: color 0.2s ease;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 2px;
  height: 2px;
  background: var(--amber);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.2s ease;
}

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

.nav-link:hover::after,
.nav-link.active::after {
  transform: scaleX(1);
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  background: var(--soft-amber);
  border-radius: 12px;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  background: var(--amber-dark);
}

.mobile-nav {
  display: none;
  padding: 6px 20px 18px;
  border-top: 1px solid var(--line);
}

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

.mobile-link {
  display: block;
  padding: 12px 14px;
  border-radius: 12px;
  color: #374151;
  font-weight: 700;
}

.mobile-link.active,
.mobile-link:hover {
  color: var(--amber-dark);
  background: var(--soft-amber);
}

.hero-section {
  position: relative;
  min-height: 70vh;
  overflow: hidden;
  background: linear-gradient(135deg, #fef3c7 0%, #fff7ed 46%, #fef9c3 100%);
}

.hero-glow {
  position: absolute;
  width: 360px;
  height: 360px;
  border-radius: 999px;
  filter: blur(28px);
  opacity: 0.45;
}

.hero-glow-one {
  right: 8%;
  top: 12%;
  background: #f59e0b;
}

.hero-glow-two {
  left: 8%;
  bottom: -80px;
  background: #fb923c;
}

.hero-track {
  position: relative;
  z-index: 2;
  max-width: 1280px;
  min-height: 70vh;
  margin: 0 auto;
  padding: 58px 20px 72px;
}

.hero-slide {
  display: none;
  min-height: calc(70vh - 130px);
  align-items: center;
  grid-template-columns: minmax(0, 1.1fr) minmax(300px, 0.72fr);
  gap: 56px;
}

.hero-slide.active {
  display: grid;
  animation: fadeIn 0.55s ease both;
}

.hero-copy {
  max-width: 720px;
}

.eyebrow,
.detail-eyebrow,
.page-hero span,
.cta-section span {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 7px 12px;
  border-radius: 999px;
  color: #92400e;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(217, 119, 6, 0.18);
  font-size: 13px;
  font-weight: 800;
}

.hero-copy h1 {
  margin: 20px 0 18px;
  font-size: clamp(42px, 6vw, 76px);
  line-height: 0.95;
  letter-spacing: -0.07em;
}

.hero-copy h1 span {
  display: block;
  color: var(--amber-dark);
  margin-top: 8px;
}

.hero-copy p {
  max-width: 650px;
  margin: 0 0 26px;
  color: #374151;
  font-size: 20px;
  line-height: 1.7;
}

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

.hero-tags span,
.detail-tags a,
.tag-row em {
  padding: 7px 10px;
  border-radius: 999px;
  color: #78350f;
  background: rgba(255, 255, 255, 0.68);
  border: 1px solid rgba(217, 119, 6, 0.18);
  font-size: 13px;
  font-style: normal;
  font-weight: 650;
}

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

.primary-button,
.ghost-button,
.light-button,
.outline-button,
.section-more {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 0 22px;
  border-radius: 14px;
  font-weight: 850;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.primary-button {
  color: #ffffff;
  background: linear-gradient(135deg, var(--amber), var(--orange));
  box-shadow: 0 14px 26px rgba(217, 119, 6, 0.28);
}

.ghost-button,
.outline-button {
  color: var(--amber-dark);
  background: #ffffff;
  border: 1px solid rgba(217, 119, 6, 0.18);
  box-shadow: var(--shadow-soft);
}

.light-button {
  color: var(--amber-dark);
  background: #ffffff;
}

.primary-button:hover,
.ghost-button:hover,
.light-button:hover,
.outline-button:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.hero-poster {
  position: relative;
  overflow: hidden;
  min-height: 520px;
  border-radius: 34px;
  box-shadow: 0 35px 90px rgba(146, 64, 14, 0.32);
  transform: rotate(2deg);
}

.hero-poster::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.36), transparent 55%);
}

.hero-poster img {
  width: 100%;
  height: 100%;
  min-height: 520px;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.hero-poster:hover img {
  transform: scale(1.06);
}

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

.hero-dot {
  width: 12px;
  height: 12px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(180, 83, 9, 0.28);
  cursor: pointer;
}

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

.content-section {
  max-width: 1280px;
  margin: 0 auto;
  padding: 72px 20px;
}

.warm-section,
.soft-section {
  max-width: none;
  background: linear-gradient(135deg, var(--soft-orange), var(--soft-amber));
}

.warm-section > *,
.soft-section > * {
  max-width: 1280px;
  margin-left: auto;
  margin-right: auto;
}

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

.section-heading h2,
.page-hero h1,
.cta-section h2,
.detail-main h1 {
  margin: 0;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.08;
  letter-spacing: -0.04em;
}

.section-heading p,
.page-hero p,
.cta-section p {
  margin: 12px 0 0;
  color: var(--muted);
  line-height: 1.7;
}

.section-more {
  color: var(--amber-dark);
  background: #ffffff;
  border: 1px solid var(--line);
  white-space: nowrap;
}

.featured-grid,
.movie-grid,
.rank-grid,
.compact-grid,
.mini-grid,
.category-grid {
  display: grid;
  gap: 24px;
}

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

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

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

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

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

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

.movie-card {
  display: grid;
  overflow: hidden;
  background: var(--card);
  border: 1px solid rgba(229, 231, 235, 0.8);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

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

.poster-wrap {
  position: relative;
  overflow: hidden;
  aspect-ratio: 2 / 3;
  background: linear-gradient(135deg, #fef3c7, #fed7aa);
}

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

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

.poster-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: #ffffff;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.68), rgba(0, 0, 0, 0.08));
  opacity: 0;
  transition: opacity 0.22s ease;
  font-weight: 850;
}

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

.play-dot,
.big-play {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 54px;
  border-radius: 999px;
  color: var(--amber-dark);
  background: #ffffff;
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.22);
}

.card-body {
  display: grid;
  gap: 9px;
  padding: 16px;
}

.card-body strong {
  font-size: 17px;
  line-height: 1.35;
}

.card-meta,
.card-desc {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.tag-row {
  gap: 6px;
}

.tag-row em {
  font-size: 12px;
  padding: 5px 8px;
}

.movie-card.featured .poster-wrap {
  aspect-ratio: 16 / 11;
}

.movie-card.compact .card-desc,
.movie-card.mini .card-desc,
.movie-card.compact .tag-row {
  display: none;
}

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

.movie-card.compact .card-body strong,
.movie-card.mini .card-body strong {
  font-size: 14px;
}

.rank-badge {
  position: absolute;
  left: 12px;
  top: 12px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  color: #ffffff;
  background: linear-gradient(135deg, #f59e0b, #ea580c);
  font-weight: 900;
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.24);
}

.category-card {
  position: relative;
  min-height: 230px;
  overflow: hidden;
  border-radius: 24px;
  box-shadow: var(--shadow-soft);
  background: #111827;
}

.category-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.58;
  transition: transform 0.5s ease;
}

.category-card:hover .category-bg {
  transform: scale(1.08);
}

.category-content {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: end;
  padding: 20px;
  color: #ffffff;
  background: linear-gradient(to top, rgba(17, 24, 39, 0.84), transparent);
}

.category-content strong {
  font-size: 24px;
}

.category-content small,
.category-content em {
  margin-top: 7px;
  line-height: 1.5;
  opacity: 0.92;
  font-style: normal;
}

.cta-section,
.page-hero {
  background: linear-gradient(135deg, var(--amber), var(--orange));
  color: #ffffff;
}

.cta-section > div,
.page-hero > div {
  max-width: 1060px;
  margin: 0 auto;
  padding: 72px 20px;
}

.cta-section {
  text-align: center;
}

.cta-section p,
.page-hero p {
  color: rgba(255, 255, 255, 0.88);
  font-size: 18px;
}

.page-hero span,
.cta-section span {
  color: #78350f;
}

.filter-panel {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) 190px 190px auto;
  gap: 14px;
  align-items: center;
  padding: 18px;
  margin-bottom: 28px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow-soft);
}

.sticky-filter {
  position: sticky;
  top: 76px;
  z-index: 20;
}

.filter-panel input,
.filter-panel select {
  width: 100%;
  height: 46px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 13px;
  color: var(--text);
  background: #ffffff;
  outline: none;
}

.filter-panel input:focus,
.filter-panel select:focus {
  border-color: var(--amber);
  box-shadow: 0 0 0 4px rgba(217, 119, 6, 0.12);
}

.result-count {
  color: var(--amber-dark);
  font-weight: 850;
  white-space: nowrap;
}

.overview-stack {
  display: grid;
  gap: 28px;
}

.category-overview-card {
  padding: 26px;
  border-radius: 26px;
  background: #ffffff;
  box-shadow: var(--shadow-soft);
}

.category-overview-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 22px;
}

.category-overview-head h2 {
  margin: 0 0 8px;
  font-size: 30px;
}

.category-overview-head p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

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

.ranking-row {
  display: grid;
  grid-template-columns: 56px 90px minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #ffffff;
  box-shadow: var(--shadow-soft);
}

.ranking-number {
  color: var(--amber-dark);
  font-size: 28px;
  font-weight: 950;
  text-align: center;
}

.ranking-row img {
  width: 90px;
  height: 126px;
  border-radius: 12px;
  object-fit: cover;
}

.ranking-info {
  display: grid;
  gap: 7px;
}

.ranking-info strong {
  font-size: 19px;
}

.ranking-info em,
.ranking-info small {
  color: var(--muted);
  line-height: 1.55;
  font-style: normal;
}

.score-pill {
  justify-self: end;
  padding: 9px 12px;
  border-radius: 999px;
  color: #92400e;
  background: var(--soft-amber);
  font-weight: 850;
}

.detail-top,
.player-section {
  max-width: 1280px;
  margin: 0 auto;
  padding: 42px 20px 0;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  align-items: center;
  margin-bottom: 20px;
  color: var(--muted);
}

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

.detail-card {
  display: grid;
  grid-template-columns: 340px minmax(0, 1fr);
  gap: 34px;
  padding: 28px;
  border-radius: 30px;
  background: #ffffff;
  box-shadow: var(--shadow);
}

.detail-poster {
  overflow: hidden;
  border-radius: 24px;
  background: linear-gradient(135deg, #fef3c7, #fed7aa);
}

.detail-poster img {
  width: 100%;
  height: 100%;
  min-height: 500px;
  object-fit: cover;
}

.detail-main {
  display: flex;
  flex-direction: column;
  align-items: start;
  justify-content: center;
}

.detail-main h1 {
  margin-top: 18px;
}

.one-line {
  color: #374151;
  font-size: 20px;
  line-height: 1.8;
}

.detail-meta {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  padding: 0;
  margin: 18px 0;
  list-style: none;
}

.detail-meta li {
  padding: 14px;
  border-radius: 16px;
  background: #f9fafb;
}

.detail-meta span {
  display: block;
  margin-bottom: 5px;
  color: var(--muted);
  font-size: 13px;
}

.detail-meta strong {
  font-size: 15px;
}

.player-box {
  position: relative;
  overflow: hidden;
  border-radius: 30px;
  background: #111827;
  box-shadow: var(--shadow);
  aspect-ratio: 16 / 9;
}

.player-box video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000000;
}

.player-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 24px;
  border: 0;
  color: #ffffff;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.76), rgba(0, 0, 0, 0.18));
  cursor: pointer;
  text-align: center;
}

.player-overlay strong {
  font-size: clamp(22px, 3vw, 36px);
}

.player-overlay em {
  max-width: 520px;
  color: rgba(255, 255, 255, 0.76);
  font-style: normal;
  line-height: 1.6;
}

.player-box.playing .player-overlay {
  display: none;
}

.narrow-section {
  max-width: 980px;
}

.detail-content h2 {
  margin: 0 0 14px;
  font-size: 28px;
}

.detail-content p {
  margin: 0 0 28px;
  color: #374151;
  font-size: 18px;
  line-height: 1.95;
}

.site-footer {
  background: #111827;
  color: #d1d5db;
}

.footer-grid {
  max-width: 1280px;
  margin: 0 auto;
  padding: 54px 20px;
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) 1fr 1fr;
  gap: 36px;
}

.footer-grid p {
  max-width: 560px;
  line-height: 1.8;
}

.footer-grid h3 {
  margin: 0 0 16px;
  color: #ffffff;
}

.footer-grid a:not(.footer-brand) {
  display: block;
  margin: 10px 0;
  color: #d1d5db;
}

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

.footer-bottom {
  padding: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  text-align: center;
  color: #9ca3af;
}

[data-hidden-by-filter="true"] {
  display: none !important;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 1100px) {
  .featured-grid,
  .rank-grid,
  .large-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

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

  .hero-slide {
    grid-template-columns: 1fr;
    gap: 34px;
  }

  .hero-poster {
    min-height: 380px;
    transform: none;
  }

  .hero-poster img {
    min-height: 380px;
  }
}

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

  .menu-toggle {
    display: block;
  }

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

  .hero-section,
  .hero-track,
  .hero-slide {
    min-height: auto;
  }

  .hero-track {
    padding-top: 34px;
  }

  .hero-copy h1 {
    font-size: 42px;
  }

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

  .hero-poster,
  .hero-poster img {
    min-height: 320px;
  }

  .section-heading,
  .category-overview-head {
    display: grid;
    align-items: start;
  }

  .featured-grid,
  .rank-grid,
  .compact-grid,
  .large-grid,
  .mini-grid,
  .category-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
  }

  .content-section {
    padding: 46px 16px;
  }

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

  .sticky-filter {
    position: static;
  }

  .ranking-row {
    grid-template-columns: 42px 74px minmax(0, 1fr);
  }

  .ranking-row img {
    width: 74px;
    height: 104px;
  }

  .score-pill {
    grid-column: 2 / -1;
    justify-self: start;
  }

  .detail-card {
    grid-template-columns: 1fr;
    padding: 18px;
  }

  .detail-poster img {
    min-height: 380px;
  }

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

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

@media (max-width: 480px) {
  .featured-grid,
  .rank-grid,
  .compact-grid,
  .large-grid,
  .mini-grid,
  .category-grid {
    grid-template-columns: 1fr;
  }

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