
:root {
  color-scheme: light;
  --bg: #fff7ed;
  --bg-soft: #fff1f2;
  --text: #111827;
  --muted: #6b7280;
  --line: #fed7aa;
  --brand: #f97316;
  --brand-2: #ef4444;
  --brand-3: #db2777;
  --card: #ffffff;
  --shadow: 0 18px 45px rgba(127, 29, 29, 0.13);
  --radius: 24px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", Arial, sans-serif;
  color: var(--text);
  background: linear-gradient(180deg, #fff7ed 0%, #fff 28%, #fff7ed 100%);
}

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

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

button,
input,
select {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: linear-gradient(90deg, var(--brand), var(--brand-2), var(--brand-3));
  color: #fff;
  box-shadow: 0 12px 30px rgba(239, 68, 68, 0.25);
}

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

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

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

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

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

.nav-link,
.mobile-link {
  padding: 10px 16px;
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.9);
  transition: background 0.2s ease, transform 0.2s ease;
}

.nav-link:hover,
.nav-link.active,
.mobile-link:hover,
.mobile-link.active {
  background: rgba(255, 255, 255, 0.18);
  transform: translateY(-1px);
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  cursor: pointer;
}

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

.mobile-nav {
  display: none;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 0 0 14px;
}

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

.hero-slider {
  position: relative;
  min-height: 670px;
  overflow: hidden;
  color: #fff;
  background: #1f2937;
}

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

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

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

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

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 75% 35%, rgba(249, 115, 22, 0.35), transparent 34%),
    linear-gradient(90deg, rgba(17, 24, 39, 0.9) 0%, rgba(17, 24, 39, 0.66) 45%, rgba(17, 24, 39, 0.18) 100%),
    linear-gradient(0deg, rgba(17, 24, 39, 0.82), rgba(17, 24, 39, 0.05));
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(1180px, calc(100% - 32px));
  min-height: 670px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 110px 0 90px;
}

.eyebrow {
  margin: 0 0 14px;
  color: #fed7aa;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.eyebrow.dark {
  color: var(--brand);
}

.hero-content h1,
.hero-content h2 {
  max-width: 780px;
  margin: 0;
  font-size: clamp(38px, 7vw, 76px);
  line-height: 0.98;
  font-weight: 950;
  text-shadow: 0 16px 30px rgba(0, 0, 0, 0.25);
}

.hero-movie-title {
  margin-top: 18px !important;
  font-size: clamp(26px, 4vw, 44px) !important;
  color: #ffedd5;
}

.hero-desc {
  max-width: 680px;
  margin: 24px 0 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: 18px;
  line-height: 1.8;
}

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

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

.hero-tags span,
.tag-row span,
.tag-cloud a {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 5px 11px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
  font-size: 13px;
}

.tag-row span,
.tag-cloud a {
  background: #fff7ed;
  color: #c2410c;
}

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

.hero-actions.centered {
  justify-content: center;
}

.primary-btn,
.ghost-btn,
.more-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 22px;
  border-radius: 999px;
  font-weight: 800;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.primary-btn {
  background: #fff;
  color: #ea580c;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.18);
}

.primary-btn.small {
  min-height: 40px;
  padding: 0 18px;
}

.ghost-btn {
  border: 1px solid rgba(255, 255, 255, 0.34);
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(14px);
}

.more-link {
  color: #ea580c;
  background: #fff7ed;
}

.primary-btn:hover,
.ghost-btn:hover,
.more-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 35px rgba(239, 68, 68, 0.18);
}

.hero-arrow {
  position: absolute;
  z-index: 4;
  top: 50%;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
  font-size: 38px;
  line-height: 1;
  cursor: pointer;
  transform: translateY(-50%);
}

.hero-prev {
  left: 24px;
}

.hero-next {
  right: 24px;
}

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

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

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

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

.section-light {
  width: 100%;
  padding-left: max(16px, calc((100% - 1180px) / 2));
  padding-right: max(16px, calc((100% - 1180px) / 2));
  background: rgba(255, 255, 255, 0.72);
}

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

.section-head h2,
.rank-layout h2,
.detail-content h1,
.page-hero h1 {
  margin: 0;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.15;
}

.section-text,
.page-hero p,
.category-copy em,
.category-tile em,
.footer-grid p {
  color: var(--muted);
  line-height: 1.8;
}

.filter-panel {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) minmax(160px, 220px) minmax(160px, 220px);
  gap: 14px;
  margin-bottom: 26px;
  padding: 16px;
  border: 1px solid #ffedd5;
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 12px 30px rgba(249, 115, 22, 0.08);
}

.search-box,
.select-box {
  display: grid;
  gap: 7px;
  color: #9a3412;
  font-size: 13px;
  font-weight: 800;
}

.search-box input,
.select-box select {
  width: 100%;
  min-height: 44px;
  padding: 0 14px;
  border: 1px solid #fed7aa;
  border-radius: 14px;
  outline: none;
  background: #fff7ed;
  color: var(--text);
}

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

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

.movie-card {
  display: block;
  overflow: hidden;
  border: 1px solid #ffedd5;
  border-radius: 22px;
  background: var(--card);
  box-shadow: 0 12px 30px rgba(127, 29, 29, 0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

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

.poster-frame {
  position: relative;
  display: block;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: linear-gradient(135deg, #ffedd5, #fecdd3);
}

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

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

.poster-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 38%, rgba(0, 0, 0, 0.58));
}

.poster-type,
.rank-badge {
  position: absolute;
  z-index: 2;
  top: 10px;
  display: inline-flex;
  min-height: 24px;
  align-items: center;
  border-radius: 999px;
  padding: 0 9px;
  color: #fff;
  font-size: 12px;
  font-weight: 800;
}

.poster-type {
  right: 10px;
  background: rgba(17, 24, 39, 0.72);
}

.rank-badge {
  left: 10px;
  background: linear-gradient(90deg, var(--brand), var(--brand-2));
}

.movie-info {
  display: grid;
  gap: 8px;
  padding: 14px;
}

.movie-info strong {
  min-height: 42px;
  color: #111827;
  font-size: 16px;
  line-height: 1.35;
}

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

.movie-meta {
  color: #9a3412;
}

.movie-card.compact .movie-info strong {
  min-height: auto;
}

.empty-state {
  display: none;
  padding: 46px 20px;
  text-align: center;
  color: var(--muted);
}

.empty-state.show {
  display: block;
}

.category-section {
  padding-top: 66px;
}

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

.category-tile,
.category-card {
  position: relative;
  overflow: hidden;
  min-height: 220px;
  border-radius: 26px;
  background: #111827;
  color: #fff;
  box-shadow: var(--shadow);
}

.category-tile img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.58;
  transition: transform 0.35s ease;
}

.category-tile:hover img {
  transform: scale(1.08);
}

.category-tile span {
  position: absolute;
  inset: auto 18px 18px;
  display: grid;
  gap: 8px;
}

.category-tile strong,
.category-card strong {
  font-size: 22px;
  line-height: 1.2;
}

.category-tile em,
.category-card em {
  display: block;
  color: rgba(255, 255, 255, 0.82);
  font-style: normal;
}

.rank-section {
  padding-bottom: 84px;
}

.rank-layout {
  display: grid;
  grid-template-columns: minmax(240px, 0.72fr) minmax(0, 1.28fr);
  gap: 28px;
  align-items: start;
}

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

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

.rank-row {
  display: grid;
  grid-template-columns: 34px 72px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 10px;
  border: 1px solid #ffedd5;
  border-radius: 18px;
  background: #fff;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.rank-row:hover {
  transform: translateX(3px);
  box-shadow: 0 12px 28px rgba(239, 68, 68, 0.12);
}

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

.rank-row img {
  width: 72px;
  height: 96px;
  border-radius: 12px;
  object-fit: cover;
}

.rank-row strong,
.rank-row em {
  display: block;
}

.rank-row strong {
  color: #111827;
  line-height: 1.45;
}

.rank-row em {
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
  font-style: normal;
  line-height: 1.5;
}

.page-hero {
  padding: 82px 16px;
  text-align: center;
  color: #fff;
  background:
    radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.18), transparent 28%),
    linear-gradient(90deg, var(--brand), var(--brand-2), var(--brand-3));
}

.page-hero.compact-hero {
  padding-bottom: 66px;
}

.page-hero h1,
.page-hero p {
  max-width: 820px;
  margin-left: auto;
  margin-right: auto;
}

.page-hero p {
  color: rgba(255, 255, 255, 0.86);
}

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

.category-card {
  display: grid;
  min-height: 270px;
  padding: 18px;
  background: linear-gradient(135deg, #7c2d12, #be123c, #831843);
}

.category-covers {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.category-covers img {
  width: 100%;
  aspect-ratio: 3 / 4;
  border-radius: 16px;
  object-fit: cover;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.category-copy {
  align-self: end;
  display: grid;
  gap: 8px;
  margin-top: 18px;
}

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

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

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

.detail-main,
.aside-card,
.player-card,
.detail-content {
  border-radius: 26px;
  background: #fff;
  box-shadow: 0 12px 36px rgba(127, 29, 29, 0.09);
}

.player-card {
  overflow: hidden;
  margin-bottom: 20px;
}

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

.video-player video {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  background: #020617;
}

.player-cover {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 12px;
  border: 0;
  background-position: center;
  background-size: cover;
  color: #fff;
  cursor: pointer;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.player-cover::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(2, 6, 23, 0.72), rgba(2, 6, 23, 0.22));
}

.player-cover > span {
  position: relative;
  z-index: 2;
}

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

.play-circle {
  width: 78px;
  height: 78px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  box-shadow: 0 18px 40px rgba(239, 68, 68, 0.36);
  font-size: 32px;
}

.play-label {
  font-weight: 900;
  font-size: 20px;
  letter-spacing: 0.04em;
}

.detail-content {
  padding: 30px;
}

.detail-content h1 {
  margin-bottom: 14px;
}

.detail-content h2,
.aside-card h2 {
  margin: 26px 0 12px;
  font-size: 22px;
}

.detail-content p {
  color: #374151;
  line-height: 1.9;
}

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

.detail-meta span {
  padding: 7px 12px;
  border-radius: 999px;
  background: #fff7ed;
  color: #c2410c;
  font-size: 14px;
  font-weight: 800;
}

.one-line {
  padding: 16px 18px;
  border-left: 4px solid var(--brand);
  border-radius: 16px;
  background: linear-gradient(90deg, #fff7ed, #fff1f2);
  color: #7c2d12 !important;
  font-weight: 700;
}

.detail-aside {
  position: sticky;
  top: 92px;
}

.aside-card {
  padding: 20px;
}

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

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

.related-section {
  width: 100%;
  padding-bottom: 0;
}

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

.site-footer {
  background: #111827;
  color: #d1d5db;
  padding: 54px 0 28px;
}

.footer-grid {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 1fr;
  gap: 32px;
}

.footer-brand {
  margin-bottom: 12px;
  color: #fff;
  font-size: 24px;
}

.footer-grid h2 {
  margin: 0 0 12px;
  color: #fff;
  font-size: 18px;
}

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

.footer-links a {
  color: #d1d5db;
}

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

.footer-bottom {
  width: min(1180px, calc(100% - 32px));
  margin: 30px auto 0;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: #9ca3af;
  text-align: center;
}

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

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

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

  .detail-aside {
    position: static;
  }

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

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

  .menu-toggle {
    display: block;
  }

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

  .hero-content {
    padding-top: 88px;
  }

  .hero-arrow {
    display: none;
  }

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

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

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

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

  .rank-row {
    grid-template-columns: 30px 58px minmax(0, 1fr);
  }

  .rank-row img {
    width: 58px;
    height: 78px;
  }

  .detail-content {
    padding: 22px;
  }
}

@media (max-width: 460px) {
  .brand-text {
    font-size: 18px;
  }

  .movie-grid,
  .related-grid {
    gap: 12px;
  }

  .movie-info {
    padding: 11px;
  }

  .movie-info strong {
    font-size: 14px;
  }

  .tag-row {
    display: none;
  }

  .page-hero {
    padding: 62px 16px;
  }
}
