:root {
  --orange: #f97316;
  --orange-dark: #ea580c;
  --amber: #f59e0b;
  --yellow-soft: #fef3c7;
  --paper: #ffffff;
  --soft: #fff7ed;
  --bg: #f9fafb;
  --ink: #1f2937;
  --muted: #6b7280;
  --line: #fed7aa;
  --shadow: 0 18px 45px rgba(17, 24, 39, 0.12);
  --soft-shadow: 0 10px 28px rgba(17, 24, 39, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
}

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

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

button,
input,
select {
  font: inherit;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: linear-gradient(90deg, rgba(255, 251, 235, 0.96), rgba(255, 237, 213, 0.96));
  border-bottom: 1px solid rgba(251, 146, 60, 0.28);
  backdrop-filter: blur(14px);
  box-shadow: 0 8px 24px rgba(17, 24, 39, 0.08);
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  color: #111827;
}

.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #ffffff;
  background: linear-gradient(135deg, #fb923c, #f59e0b);
  box-shadow: 0 10px 24px rgba(249, 115, 22, 0.32);
  transition: transform 0.24s ease;
}

.brand:hover .brand-mark {
  transform: scale(1.08) rotate(8deg);
}

.brand-text {
  font-size: 21px;
  letter-spacing: 0.01em;
}

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

.nav-link {
  padding: 9px 14px;
  border-radius: 12px;
  color: #374151;
  font-weight: 650;
  transition: all 0.22s ease;
}

.nav-link:hover,
.nav-link.active {
  color: #ffffff;
  background: var(--orange);
  box-shadow: 0 8px 18px rgba(249, 115, 22, 0.22);
}

.menu-button {
  display: none;
  border: 0;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  color: var(--ink);
  background: rgba(255, 237, 213, 0.8);
}

.mobile-nav {
  display: none;
  padding: 0 16px 14px;
  border-top: 1px solid rgba(251, 146, 60, 0.24);
}

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

.hero-section {
  position: relative;
  min-height: 520px;
  overflow: hidden;
  background: linear-gradient(135deg, #ffedd5 0%, #fffbeb 48%, #fef3c7 100%);
}

.glow {
  position: absolute;
  border-radius: 999px;
  filter: blur(42px);
  opacity: 0.28;
}

.glow-a {
  width: 180px;
  height: 180px;
  top: 42px;
  left: 7%;
  background: #fb923c;
}

.glow-b {
  width: 240px;
  height: 240px;
  right: 4%;
  bottom: 36px;
  background: #f59e0b;
}

.glow-c {
  width: 170px;
  height: 170px;
  left: 52%;
  top: 46%;
  background: #fde047;
}

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

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(280px, 0.62fr);
  align-items: center;
  gap: 44px;
  opacity: 0;
  transform: translateY(18px);
  pointer-events: none;
  transition: opacity 0.45s ease, transform 0.45s ease;
}

.hero-slide.active {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.hero-copy {
  max-width: 720px;
  padding: 44px 0 84px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  color: var(--orange-dark);
  font-weight: 800;
  letter-spacing: 0.04em;
}

.hero-copy h1 {
  margin: 0 0 20px;
  font-size: clamp(38px, 5vw, 62px);
  line-height: 1.06;
  letter-spacing: -0.04em;
}

.hero-copy p {
  max-width: 680px;
  margin: 0 0 24px;
  color: #4b5563;
  font-size: 19px;
}

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

.hero-tags span,
.tag-row span,
.detail-tags span {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 5px 11px;
  color: #9a3412;
  background: #ffedd5;
  font-size: 13px;
  font-weight: 700;
}

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

.primary-button,
.ghost-button,
.text-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  border-radius: 999px;
  padding: 12px 22px;
  font-weight: 800;
  transition: all 0.22s ease;
}

.primary-button {
  color: #ffffff;
  background: linear-gradient(90deg, #f97316, #f59e0b);
  box-shadow: 0 14px 26px rgba(249, 115, 22, 0.28);
}

.primary-button:hover,
.ghost-button:hover,
.text-button:hover {
  transform: translateY(-3px);
}

.ghost-button {
  color: #374151;
  background: #ffffff;
  border: 2px solid #fed7aa;
}

.text-button {
  color: var(--orange-dark);
  padding-inline: 8px;
}

.hero-poster {
  position: relative;
  border-radius: 28px;
  overflow: hidden;
  background: #111827;
  box-shadow: var(--shadow);
  aspect-ratio: 3 / 4;
  transform: rotate(2deg);
}

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

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

.hero-poster::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 35%, rgba(0, 0, 0, 0.78));
}

.hero-poster-caption {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 18px;
  z-index: 1;
  color: #ffffff;
  font-size: 22px;
  font-weight: 900;
  text-shadow: 0 3px 12px rgba(0, 0, 0, 0.42);
}

.hero-controls {
  position: absolute;
  left: 0;
  bottom: 34px;
  display: flex;
  align-items: center;
  gap: 14px;
}

.hero-controls button {
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 50%;
  color: #ffffff;
  background: var(--orange);
  font-size: 26px;
  line-height: 1;
  box-shadow: 0 10px 22px rgba(249, 115, 22, 0.28);
}

.hero-dots {
  display: flex;
  align-items: center;
  gap: 8px;
}

.hero-dot {
  width: 10px !important;
  height: 10px !important;
  background: #fdba74 !important;
  box-shadow: none !important;
}

.hero-dot.active {
  width: 24px !important;
  border-radius: 999px !important;
  background: var(--orange) !important;
}

.section {
  padding: 76px 0;
}

.white-section {
  background: #ffffff;
}

.soft-section {
  background: linear-gradient(180deg, #fff7ed, #ffffff);
}

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

.section-head h2 {
  margin: 0 0 6px;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.15;
}

.section-head p {
  margin: 0;
  color: var(--muted);
}

.section-more {
  color: var(--orange-dark);
  font-weight: 800;
  white-space: nowrap;
}

.section-more span {
  transition: transform 0.2s ease;
}

.section-more:hover span {
  display: inline-block;
  transform: translateX(4px);
}

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

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

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

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

.movie-card {
  overflow: hidden;
  border-radius: 22px;
  background: #ffffff;
  box-shadow: var(--soft-shadow);
  border: 1px solid rgba(254, 215, 170, 0.65);
  transition: transform 0.24s ease, box-shadow 0.24s ease, border-color 0.24s ease;
}

.movie-card:hover {
  transform: translateY(-7px);
  border-color: rgba(251, 146, 60, 0.78);
  box-shadow: 0 24px 48px rgba(17, 24, 39, 0.14);
}

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

.all-grid .poster-wrap,
.related-grid .poster-wrap,
.small-card .poster-wrap {
  aspect-ratio: 3 / 4;
}

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

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

.poster-wrap::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0);
  transition: background 0.25s ease;
}

.movie-card:hover .poster-wrap::after {
  background: rgba(0, 0, 0, 0.28);
}

.poster-play {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 2;
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #ffffff;
  background: rgba(249, 115, 22, 0.9);
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.82);
  transition: all 0.24s ease;
}

.movie-card:hover .poster-play {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.rank-badge {
  position: absolute;
  left: 12px;
  top: 12px;
  z-index: 3;
  min-width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  color: #ffffff;
  background: linear-gradient(135deg, #f97316, #f59e0b);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.2);
}

.movie-card-body {
  padding: 16px;
}

.movie-meta {
  color: var(--orange-dark);
  font-size: 12px;
  font-weight: 800;
  margin-bottom: 7px;
}

.movie-card h3 {
  margin: 0 0 8px;
  color: #111827;
  font-size: 18px;
  line-height: 1.35;
}

.movie-card h3 a:hover {
  color: var(--orange);
}

.movie-card p {
  margin: 0 0 12px;
  color: #6b7280;
  font-size: 14px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

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

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

.category-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.46;
  transition: transform 0.32s ease, opacity 0.32s ease;
}

.category-card:hover img {
  opacity: 0.58;
  transform: scale(1.06);
}

.category-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(17, 24, 39, 0.1), rgba(17, 24, 39, 0.84));
}

.category-card > span,
.category-card small {
  position: relative;
  z-index: 2;
}

.category-icon {
  display: inline-flex;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(8px);
  font-size: 20px;
}

.category-name {
  display: block;
  margin-top: 90px;
  font-size: 22px;
  font-weight: 900;
}

.category-card small {
  display: block;
  margin-top: 8px;
  color: rgba(255, 255, 255, 0.82);
}

.ranking-section {
  color: #ffffff;
  background: linear-gradient(110deg, #f97316, #f59e0b);
}

.ranking-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 30px;
  align-items: start;
}

.light-head h2,
.light-head p,
.section-more.light {
  color: #ffffff;
}

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

.card-horizontal {
  display: grid;
  grid-template-columns: 168px minmax(0, 1fr);
  align-items: stretch;
}

.card-horizontal .poster-wrap {
  aspect-ratio: auto;
  min-height: 132px;
}

.ranking-panel,
.side-panel {
  border-radius: 24px;
  padding: 26px;
  background: rgba(255, 255, 255, 0.94);
  color: var(--ink);
  box-shadow: var(--soft-shadow);
}

.ranking-panel h3,
.side-panel h2 {
  margin: 0 0 10px;
  font-size: 24px;
}

.ranking-panel p {
  color: var(--muted);
  margin-bottom: 22px;
}

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

.page-hero {
  padding: 72px 0;
  color: #ffffff;
  background: linear-gradient(120deg, #f97316, #f59e0b);
  position: relative;
  overflow: hidden;
}

.page-hero::after {
  content: "";
  position: absolute;
  right: -80px;
  top: -120px;
  width: 300px;
  height: 300px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  filter: blur(8px);
}

.page-hero h1 {
  position: relative;
  margin: 0 0 12px;
  font-size: clamp(36px, 5vw, 58px);
  line-height: 1.08;
}

.page-hero p {
  position: relative;
  max-width: 760px;
  margin: 0;
  font-size: 18px;
  color: rgba(255, 255, 255, 0.92);
}

.page-hero .eyebrow {
  color: #fff7ed;
}

.slim-actions {
  margin-top: 26px;
}

.filter-bar {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) repeat(3, minmax(160px, 210px));
  gap: 12px;
  margin-bottom: 26px;
}

.search-box {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 52px;
  border: 2px solid #fed7aa;
  border-radius: 16px;
  padding: 0 16px;
  background: #ffffff;
}

.search-box span {
  color: var(--orange);
  font-weight: 900;
}

.search-box input,
.filter-select {
  width: 100%;
  height: 100%;
  border: 0;
  outline: 0;
  color: var(--ink);
  background: transparent;
}

.filter-select {
  height: 52px;
  border: 2px solid #fed7aa;
  border-radius: 16px;
  padding: 0 14px;
  background: #ffffff;
}

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

.category-overview-card {
  display: grid;
  grid-template-columns: 148px minmax(0, 1fr);
  gap: 18px;
  min-height: 180px;
  padding: 14px;
  border-radius: 24px;
  background: #ffffff;
  border: 1px solid rgba(254, 215, 170, 0.72);
  box-shadow: var(--soft-shadow);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

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

.category-overview-card img {
  width: 100%;
  height: 100%;
  border-radius: 18px;
  object-fit: cover;
}

.category-overview-card h2 {
  margin: 6px 0 8px;
}

.category-overview-card p {
  margin: 0 0 8px;
  color: var(--muted);
}

.category-overview-card small {
  color: var(--orange-dark);
  font-weight: 700;
}

.category-icon.big {
  background: #ffedd5;
  color: var(--orange-dark);
}

.page-ranking-list .card-horizontal {
  background: #ffffff;
}

.detail-hero {
  padding: 22px 0;
  background: #fff7ed;
  border-bottom: 1px solid #fed7aa;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-weight: 650;
}

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

.detail-section {
  padding-top: 32px;
}

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

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

.video-shell {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #000000;
}

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

.play-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  gap: 12px;
  border: 0;
  color: #ffffff;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.18), rgba(0, 0, 0, 0.56));
  cursor: pointer;
}

.play-overlay span {
  width: 78px;
  height: 78px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(135deg, #f97316, #f59e0b);
  box-shadow: 0 18px 32px rgba(0, 0, 0, 0.32);
  font-size: 30px;
}

.play-overlay b {
  font-size: 18px;
}

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

.player-message {
  min-height: 0;
  margin: 0;
  padding: 0 16px 12px;
  color: #fed7aa;
  font-size: 14px;
}

.detail-content,
.related-section {
  margin-top: 24px;
  border-radius: 24px;
  padding: 28px;
  background: #ffffff;
  box-shadow: var(--soft-shadow);
}

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

.detail-title-row h1 {
  margin: 0 0 12px;
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1.12;
}

.lead-text {
  margin: 0;
  color: #4b5563;
  font-size: 18px;
}

.detail-cover {
  width: 160px;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 20px;
  box-shadow: var(--soft-shadow);
}

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

.detail-meta-list li {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  border-radius: 16px;
  padding: 12px 14px;
  background: #fff7ed;
}

.detail-meta-list strong {
  color: var(--orange-dark);
}

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

.detail-content p {
  color: #374151;
  font-size: 17px;
}

.detail-sidebar {
  position: sticky;
  top: 92px;
  display: grid;
  gap: 18px;
}

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

.side-list .small-card {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr);
  border-radius: 16px;
}

.side-list .poster-wrap {
  min-height: 118px;
}

.side-list .movie-card-body {
  padding: 10px;
}

.side-list .movie-card h3 {
  font-size: 14px;
}

.side-list .movie-card p,
.side-list .tag-row {
  display: none;
}

.soft-panel {
  background: #fff7ed;
}

.side-link {
  display: flex;
  justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px solid #fed7aa;
  color: #9a3412;
  font-weight: 800;
}

.side-link:last-child {
  border-bottom: 0;
}

.site-footer {
  color: #d1d5db;
  background: linear-gradient(180deg, #1f2937, #111827);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 1fr;
  gap: 32px;
  padding: 44px 0;
}

.footer-brand {
  color: #ffffff;
  font-size: 22px;
  font-weight: 900;
  margin-bottom: 10px;
}

.site-footer h3 {
  margin: 0 0 14px;
  color: #ffffff;
}

.site-footer p {
  margin: 0;
  color: #cbd5e1;
}

.footer-links {
  display: grid;
  gap: 8px;
}

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

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

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

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

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

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

  .menu-button {
    display: grid;
    place-items: center;
  }

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

  .hero-poster {
    display: none;
  }

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

  .detail-sidebar {
    position: static;
  }
}

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

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

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

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

  .hero-controls {
    left: 0;
    right: 0;
    justify-content: center;
  }

  .section {
    padding: 52px 0;
  }

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

  .movie-grid,
  .featured-grid,
  .compact-grid,
  .related-grid,
  .all-grid,
  .category-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }

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

  .movie-card h3 {
    font-size: 16px;
  }

  .card-horizontal {
    grid-template-columns: 116px minmax(0, 1fr);
  }

  .category-card {
    min-height: 180px;
  }

  .category-name {
    margin-top: 62px;
    font-size: 19px;
  }

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

  .detail-content,
  .related-section {
    padding: 18px;
  }

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

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

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

  .category-overview-card {
    grid-template-columns: 112px minmax(0, 1fr);
  }

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

@media (max-width: 430px) {
  .movie-grid,
  .featured-grid,
  .compact-grid,
  .related-grid,
  .all-grid,
  .category-grid {
    grid-template-columns: 1fr;
  }

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

  .card-horizontal .poster-wrap {
    aspect-ratio: 16 / 10;
  }
}
