:root {
  --color-ink: #1f2937;
  --color-muted: #6b7280;
  --color-soft: #f8fafc;
  --color-line: #e5e7eb;
  --color-orange: #f97316;
  --color-orange-dark: #ea580c;
  --color-amber: #f59e0b;
  --color-yellow: #facc15;
  --shadow-card: 0 18px 38px rgba(15, 23, 42, 0.12);
  --shadow-soft: 0 10px 24px rgba(15, 23, 42, 0.10);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

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

img,
video {
  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.85);
  backdrop-filter: blur(16px);
}

.header-inner {
  width: min(1220px, calc(100% - 32px));
  margin: 0 auto;
  min-height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

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

.logo-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  color: #ffffff;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--color-orange), var(--color-amber));
  box-shadow: 0 12px 28px rgba(249, 115, 22, 0.30);
}

.logo-title {
  display: block;
  font-size: 22px;
  line-height: 1.15;
  color: transparent;
  background: linear-gradient(90deg, var(--color-orange-dark), var(--color-amber));
  -webkit-background-clip: text;
  background-clip: text;
}

.logo-subtitle {
  display: block;
  color: #6b7280;
  font-size: 12px;
  font-weight: 500;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
  color: #4b5563;
  font-weight: 700;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--color-orange-dark);
}

.mobile-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 12px;
  background: #f3f4f6;
  color: #374151;
  font-size: 22px;
}

.hero {
  position: relative;
  overflow: hidden;
  color: #ffffff;
  background: linear-gradient(135deg, #f97316 0%, #f59e0b 52%, #facc15 100%);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 12% 18%, rgba(255,255,255,0.32), transparent 24%), radial-gradient(circle at 78% 8%, rgba(255,255,255,0.20), transparent 28%), rgba(0,0,0,0.10);
}

.hero-inner {
  position: relative;
  width: min(1220px, calc(100% - 32px));
  margin: 0 auto;
  padding: 86px 0 68px;
}

.hero-slider {
  position: relative;
  min-height: 520px;
}

.hero-slide {
  display: none;
  grid-template-columns: minmax(0, 1.08fr) minmax(300px, 0.72fr);
  gap: 42px;
  align-items: center;
}

.hero-slide.active {
  display: grid;
}

.hero-kicker,
.tag-pill,
.rank-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  color: #ffffff;
  backdrop-filter: blur(6px);
}

.hero-kicker {
  padding: 10px 16px;
  font-weight: 700;
  margin-bottom: 20px;
}

.hero h1 {
  margin: 0;
  font-size: clamp(42px, 6vw, 74px);
  line-height: 1.02;
  letter-spacing: -0.06em;
  font-weight: 900;
}

.hero-desc {
  margin: 22px 0 24px;
  max-width: 720px;
  color: rgba(255, 255, 255, 0.90);
  font-size: 18px;
}

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

.tag-pill {
  padding: 8px 13px;
  font-size: 14px;
  font-weight: 700;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 800;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  color: var(--color-orange-dark);
  background: #ffffff;
  box-shadow: 0 18px 30px rgba(0,0,0,0.18);
}

.btn-ghost {
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.45);
  background: rgba(255, 255, 255, 0.12);
}

.hero-poster-wrap {
  position: relative;
}

.hero-poster {
  position: relative;
  overflow: hidden;
  border: 8px solid rgba(255,255,255,0.22);
  border-radius: 36px;
  aspect-ratio: 3 / 4;
  background: rgba(255,255,255,0.12);
  box-shadow: 0 30px 90px rgba(0,0,0,0.28);
}

.hero-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-poster::after,
.card-cover::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 45%;
  background: linear-gradient(180deg, transparent, rgba(0,0,0,0.66));
  pointer-events: none;
}

.hero-rank-card {
  position: absolute;
  right: -20px;
  bottom: 34px;
  max-width: 230px;
  padding: 18px;
  border-radius: 24px;
  background: rgba(255,255,255,0.88);
  color: #1f2937;
  box-shadow: var(--shadow-card);
  backdrop-filter: blur(16px);
}

.hero-rank-card strong {
  display: block;
  color: var(--color-orange-dark);
  font-size: 24px;
}

.slider-dots {
  display: flex;
  gap: 10px;
  margin-top: 28px;
}

.slider-dot {
  width: 12px;
  height: 12px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255,255,255,0.45);
}

.slider-dot.active {
  width: 34px;
  background: #ffffff;
}

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

.section {
  padding: 58px 0;
}

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

.section-title {
  margin: 0;
  color: #111827;
  font-size: clamp(26px, 4vw, 38px);
  font-weight: 900;
  letter-spacing: -0.04em;
}

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

.search-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  padding: 18px;
  border: 1px solid rgba(249, 115, 22, 0.18);
  border-radius: 28px;
  background: rgba(255,255,255,0.82);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(12px);
}

.search-input,
.filter-select {
  min-height: 48px;
  padding: 0 18px;
  border: 1px solid var(--color-line);
  border-radius: 999px;
  outline: none;
  background: #ffffff;
  color: #374151;
  font-size: 16px;
}

.search-input:focus,
.filter-select:focus {
  border-color: var(--color-orange);
  box-shadow: 0 0 0 4px rgba(249, 115, 22, 0.12);
}

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

.category-card {
  position: relative;
  overflow: hidden;
  min-height: 170px;
  padding: 22px;
  border-radius: 28px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--color-orange), var(--color-amber));
  box-shadow: var(--shadow-soft);
}

.category-card::after {
  content: "";
  position: absolute;
  width: 140px;
  height: 140px;
  right: -46px;
  bottom: -60px;
  border-radius: 50%;
  background: rgba(255,255,255,0.24);
}

.category-card h2,
.category-card h3 {
  position: relative;
  margin: 0 0 12px;
  font-size: 24px;
  font-weight: 900;
}

.category-card p {
  position: relative;
  margin: 0;
  color: rgba(255,255,255,0.86);
  font-size: 14px;
}

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

.movie-card {
  overflow: hidden;
  border-radius: 24px;
  background: #ffffff;
  box-shadow: var(--shadow-soft);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

.card-cover {
  position: relative;
  overflow: hidden;
  aspect-ratio: 3 / 4;
  background: linear-gradient(135deg, #fff7ed, #fed7aa);
}

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

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

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

.card-body {
  padding: 15px;
}

.card-title {
  margin: 0 0 7px;
  font-size: 17px;
  line-height: 1.35;
  font-weight: 900;
  color: #111827;
}

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

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

.meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
  color: #64748b;
  font-size: 12px;
}

.meta-row span {
  padding: 4px 8px;
  border-radius: 999px;
  background: #f3f4f6;
}

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

.rank-item {
  display: grid;
  grid-template-columns: 64px 92px minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  padding: 14px;
  border: 1px solid var(--color-line);
  border-radius: 24px;
  background: #ffffff;
  box-shadow: 0 8px 20px rgba(15,23,42,0.06);
}

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

.rank-cover {
  overflow: hidden;
  border-radius: 16px;
  aspect-ratio: 3 / 4;
  background: #fed7aa;
}

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

.rank-title {
  margin: 0;
  font-size: 18px;
  font-weight: 900;
}

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

.rank-desc {
  margin: 4px 0 0;
  color: var(--color-muted);
  font-size: 14px;
}

.page-hero {
  position: relative;
  overflow: hidden;
  color: #ffffff;
  background: linear-gradient(135deg, #f97316, #f59e0b 56%, #facc15);
}

.page-hero-inner {
  width: min(1220px, calc(100% - 32px));
  margin: 0 auto;
  padding: 66px 0;
}

.page-hero h1 {
  max-width: 860px;
  margin: 0;
  font-size: clamp(34px, 5vw, 56px);
  line-height: 1.12;
  font-weight: 900;
  letter-spacing: -0.05em;
}

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

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
  color: rgba(255,255,255,0.88);
  font-weight: 700;
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.56fr) minmax(300px, 0.74fr);
  gap: 32px;
  align-items: start;
}

.player-card,
.info-card,
.related-card {
  border-radius: 28px;
  background: #ffffff;
  box-shadow: var(--shadow-soft);
}

.player-card {
  overflow: hidden;
}

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

.movie-video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #0f172a;
}

.play-layer {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  border: 0;
  color: #ffffff;
  background: linear-gradient(180deg, rgba(15,23,42,0.10), rgba(15,23,42,0.72));
  cursor: pointer;
}

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

.play-icon {
  display: grid;
  place-items: center;
  width: 92px;
  height: 92px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--color-orange), var(--color-amber));
  box-shadow: 0 22px 45px rgba(249, 115, 22, 0.34);
  font-size: 38px;
}

.info-card,
.related-card {
  padding: 24px;
}

.info-card h2,
.related-card h2 {
  margin: 0 0 14px;
  font-size: 24px;
  font-weight: 900;
}

.detail-cover {
  overflow: hidden;
  border-radius: 24px;
  aspect-ratio: 3 / 4;
  background: linear-gradient(135deg, #fff7ed, #fed7aa);
  box-shadow: var(--shadow-soft);
}

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

.detail-meta {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.detail-meta div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid #f1f5f9;
  color: #64748b;
}

.detail-meta strong {
  color: #111827;
  text-align: right;
}

.article {
  padding: 24px;
}

.article h2 {
  margin: 26px 0 10px;
  font-size: 25px;
  font-weight: 900;
}

.article h2:first-child {
  margin-top: 0;
}

.article p {
  margin: 0 0 14px;
  color: #4b5563;
  font-size: 16px;
}

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

.footer {
  margin-top: 52px;
  padding: 36px 0;
  color: #6b7280;
  background: #111827;
}

.footer-inner {
  width: min(1220px, calc(100% - 32px));
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.footer strong {
  color: #ffffff;
}

.hide-card {
  display: none !important;
}

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

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

@media (max-width: 820px) {
  .header-inner {
    min-height: 68px;
  }

  .nav-links {
    position: fixed;
    top: 68px;
    left: 16px;
    right: 16px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 12px;
    border-radius: 20px;
    background: #ffffff;
    box-shadow: var(--shadow-card);
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links a {
    padding: 13px 14px;
    border-radius: 12px;
  }

  .nav-links a:hover {
    background: #fff7ed;
  }

  .mobile-toggle {
    display: block;
  }

  .hero-inner {
    padding: 58px 0 44px;
  }

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

  .hero-slider {
    min-height: 0;
  }

  .hero-poster-wrap {
    max-width: 420px;
    margin: 0 auto;
  }

  .hero-rank-card {
    right: 10px;
    bottom: 18px;
  }

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

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

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

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

  .rank-extra {
    display: none;
  }
}

@media (max-width: 520px) {
  .logo-title {
    font-size: 18px;
  }

  .logo-subtitle {
    display: none;
  }

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

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

  .rank-cover {
    display: none;
  }
}
