:root {
  --brand: #d97706;
  --brand-dark: #b45309;
  --brand-light: #f59e0b;
  --orange: #ea580c;
  --ink: #111827;
  --muted: #6b7280;
  --paper: #ffffff;
  --soft: #f8fafc;
  --line: #e5e7eb;
  --shadow: 0 20px 55px rgba(17, 24, 39, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: linear-gradient(180deg, #fff7ed 0%, #f8fafc 38%, #ffffff 100%);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  line-height: 1.65;
}

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

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: linear-gradient(90deg, var(--brand) 0%, var(--orange) 100%);
  box-shadow: 0 10px 30px rgba(154, 52, 18, 0.25);
}

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

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #ffffff;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: 0.03em;
  white-space: nowrap;
}

.logo-mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.18);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.32);
}

.nav {
  display: flex;
  align-items: center;
  gap: 24px;
  color: rgba(255, 255, 255, 0.92);
  font-weight: 700;
}

.nav a {
  transition: color 0.2s ease, transform 0.2s ease;
}

.nav a:hover {
  color: #fff7ed;
  transform: translateY(-1px);
}

.mobile-toggle {
  display: none;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.18);
  color: #ffffff;
  font-size: 24px;
  cursor: pointer;
}

.mobile-nav {
  display: none;
  padding: 8px 0 18px;
}

.mobile-nav a {
  display: block;
  padding: 10px 0;
  color: #ffffff;
  font-weight: 700;
}

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

.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-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.08) contrast(1.04);
}

.hero-layer {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.92) 0%, rgba(0, 0, 0, 0.62) 42%, rgba(0, 0, 0, 0.18) 100%);
}

.hero-content {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 90px 0 76px;
  color: #ffffff;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  align-items: end;
  gap: 42px;
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(217, 119, 6, 0.84);
  font-weight: 800;
  letter-spacing: 0.08em;
  margin-bottom: 16px;
}

.hero h1,
.hero h2 {
  max-width: 780px;
  margin: 0 0 18px;
  font-size: clamp(34px, 5vw, 62px);
  line-height: 1.08;
  letter-spacing: -0.04em;
}

.hero p {
  max-width: 720px;
  margin: 0 0 24px;
  color: rgba(255, 255, 255, 0.86);
  font-size: clamp(16px, 2vw, 21px);
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 28px;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.15);
  color: #ffffff;
  font-size: 13px;
  font-weight: 700;
  backdrop-filter: blur(10px);
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 20px;
  border: 0;
  border-radius: 999px;
  background: var(--brand);
  color: #ffffff;
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.btn:hover {
  background: var(--brand-dark);
  transform: translateY(-2px);
  box-shadow: 0 14px 32px rgba(217, 119, 6, 0.28);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.16);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.26);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.26);
}

.hero-panel {
  border-radius: 28px;
  padding: 22px;
  background: rgba(17, 24, 39, 0.62);
  backdrop-filter: blur(18px);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.13), var(--shadow);
}

.hero-panel-title {
  color: #fed7aa;
  font-weight: 900;
  margin: 0 0 14px;
}

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

.mini-rank a {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 10px;
  align-items: center;
  color: #ffffff;
}

.mini-index {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--brand-light), var(--orange));
  font-weight: 900;
}

.mini-title {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 800;
}

.mini-sub {
  color: rgba(255, 255, 255, 0.64);
  font-size: 12px;
}

.hero-arrow {
  position: absolute;
  top: 50%;
  z-index: 4;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.48);
  color: #ffffff;
  font-size: 28px;
  cursor: pointer;
  transform: translateY(-50%);
}

.hero-arrow:hover {
  background: rgba(0, 0, 0, 0.68);
}

.hero-prev {
  left: 18px;
}

.hero-next {
  right: 18px;
}

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

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

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

.main {
  padding: 42px 0 70px;
}

.section {
  margin: 0 0 52px;
}

.section-card {
  padding: 30px;
  border-radius: 30px;
  background: var(--paper);
  box-shadow: var(--shadow);
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin: 0 0 24px;
}

.section-title {
  margin: 0;
  font-size: clamp(24px, 3vw, 34px);
  letter-spacing: -0.03em;
}

.section-desc {
  max-width: 720px;
  margin: 8px 0 0;
  color: var(--muted);
}

.more-link {
  color: var(--brand);
  font-weight: 900;
  white-space: nowrap;
}

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

.category-tile {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 150px;
  padding: 20px;
  border-radius: 22px;
  background: linear-gradient(135deg, #fff7ed 0%, #ffffff 100%);
  box-shadow: inset 0 0 0 1px #fed7aa;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.category-tile:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 34px rgba(217, 119, 6, 0.16);
}

.category-tile strong {
  font-size: 20px;
}

.category-tile span {
  color: var(--muted);
  font-size: 13px;
}

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

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

.movie-card {
  overflow: hidden;
  border-radius: 22px;
  background: #ffffff;
  box-shadow: 0 12px 34px rgba(17, 24, 39, 0.1);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.movie-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 24px 48px rgba(17, 24, 39, 0.16);
}

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

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

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

.badge {
  position: absolute;
  left: 10px;
  top: 10px;
  z-index: 2;
  padding: 5px 9px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.62);
  color: #ffffff;
  font-size: 12px;
  font-weight: 800;
}

.card-body {
  padding: 15px;
}

.card-title {
  margin: 0 0 8px;
  font-size: 16px;
  line-height: 1.38;
}

.card-title a:hover {
  color: var(--brand);
}

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

.card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  color: var(--muted);
  font-size: 12px;
}

.tag {
  display: inline-flex;
  align-items: center;
  padding: 4px 8px;
  border-radius: 999px;
  background: #fff7ed;
  color: #9a3412;
  font-size: 12px;
  font-weight: 700;
}

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

.feature-card {
  display: grid;
  grid-template-columns: 44% 1fr;
  overflow: hidden;
  border-radius: 28px;
  background: #ffffff;
  box-shadow: var(--shadow);
}

.feature-card .poster {
  min-height: 330px;
  aspect-ratio: auto;
}

.feature-copy {
  padding: 28px;
}

.feature-copy h3 {
  margin: 0 0 12px;
  font-size: 28px;
}

.feature-copy p {
  color: var(--muted);
}

.filter-bar {
  display: grid;
  grid-template-columns: 1fr 180px 180px 180px;
  gap: 12px;
  margin: 0 0 26px;
}

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

.filter-bar input:focus,
.filter-bar select:focus {
  border-color: var(--brand-light);
  box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.15);
}

.page-hero {
  padding: 64px 0 42px;
  background: radial-gradient(circle at 18% 20%, rgba(245, 158, 11, 0.22), transparent 30%), linear-gradient(135deg, #111827 0%, #7c2d12 100%);
  color: #ffffff;
}

.page-hero h1 {
  margin: 0 0 12px;
  font-size: clamp(34px, 5vw, 56px);
  letter-spacing: -0.04em;
}

.page-hero p {
  max-width: 780px;
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 18px;
}

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

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

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

.rank-row {
  display: grid;
  grid-template-columns: 54px 92px 1fr 90px;
  gap: 16px;
  align-items: center;
  padding: 14px;
  border-radius: 20px;
  background: #ffffff;
  box-shadow: 0 10px 28px rgba(17, 24, 39, 0.08);
}

.rank-no {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--brand-light), var(--orange));
  color: #ffffff;
  font-weight: 900;
}

.rank-cover {
  width: 92px;
  height: 62px;
  border-radius: 14px;
  object-fit: cover;
}

.rank-title {
  margin: 0 0 4px;
  font-size: 17px;
}

.rank-title a:hover {
  color: var(--brand);
}

.rank-info {
  color: var(--muted);
  font-size: 13px;
}

.rank-score {
  color: var(--brand-dark);
  font-weight: 900;
  text-align: right;
}

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

.player-card {
  overflow: hidden;
  border-radius: 30px;
  background: #0f172a;
  box-shadow: var(--shadow);
}

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

.player-wrap video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  cursor: pointer;
}

.play-layer {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  border: 0;
  background: rgba(0, 0, 0, 0.25);
  color: #ffffff;
  cursor: pointer;
  z-index: 3;
}

.play-layer.is-hidden {
  display: none;
}

.play-button {
  display: grid;
  place-items: center;
  width: 92px;
  height: 92px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--brand-light), var(--orange));
  box-shadow: 0 18px 40px rgba(234, 88, 12, 0.35);
  font-size: 38px;
  padding-left: 6px;
}

.detail-card {
  padding: 28px;
  border-radius: 30px;
  background: #ffffff;
  box-shadow: var(--shadow);
}

.detail-card h2 {
  margin-top: 0;
}

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin: 0 0 20px;
}

.detail-text p {
  margin: 0 0 16px;
  color: #374151;
}

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

.side-card h2 {
  margin: 0 0 16px;
  font-size: 22px;
}

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

.side-item {
  display: grid;
  grid-template-columns: 76px 1fr;
  gap: 12px;
  align-items: center;
}

.side-item img {
  width: 76px;
  height: 54px;
  border-radius: 12px;
  object-fit: cover;
}

.side-item strong {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 14px;
}

.side-item span {
  color: var(--muted);
  font-size: 12px;
}

.footer {
  padding: 34px 0;
  background: #111827;
  color: rgba(255, 255, 255, 0.7);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.footer a {
  color: rgba(255, 255, 255, 0.88);
  margin-left: 16px;
}

.is-hidden-card {
  display: none !important;
}

@media (max-width: 1100px) {
  .grid,
  .grid-wide {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

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

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

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

  .mobile-toggle {
    display: inline-grid;
    place-items: center;
  }

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

  .hero {
    min-height: 680px;
  }

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

  .hero-panel {
    display: none;
  }

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

  .feature-card .poster {
    min-height: auto;
    aspect-ratio: 16 / 10;
  }

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

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

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

  .rank-row {
    grid-template-columns: 42px 78px 1fr;
  }

  .rank-score {
    grid-column: 3;
    text-align: left;
  }
}

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

  .hero-content {
    padding: 70px 0 60px;
  }

  .hero-arrow {
    display: none;
  }

  .section-card,
  .detail-card {
    padding: 18px;
    border-radius: 22px;
  }

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

  .card-body {
    padding: 12px;
  }

  .footer-inner {
    display: block;
  }

  .footer a {
    display: inline-block;
    margin: 8px 12px 0 0;
  }
}
