:root {
  --orange: #f97316;
  --orange-dark: #ea580c;
  --amber: #f59e0b;
  --cream: #fff7ed;
  --ink: #111827;
  --muted: #6b7280;
  --line: #fed7aa;
  --card: #ffffff;
  --shadow: 0 20px 45px rgba(124, 45, 18, 0.13);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  background: linear-gradient(180deg, #fff7ed 0%, #ffffff 34%, #fffbeb 100%);
}

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.86);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(251, 146, 60, 0.22);
}

.header-inner,
.footer-inner,
.section-inner,
.hero-inner {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

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

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
  color: #7c2d12;
}

.brand-mark {
  width: 42px;
  height: 42px;
  display: inline-grid;
  place-items: center;
  color: white;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--orange), var(--amber));
  box-shadow: 0 10px 25px rgba(249, 115, 22, 0.35);
}

.brand-text {
  font-size: 20px;
  letter-spacing: 0.03em;
}

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

.main-nav a {
  padding: 10px 16px;
  color: #7c2d12;
  border-radius: 999px;
  font-weight: 700;
  transition: 0.25s ease;
}

.main-nav a:hover {
  color: white;
  background: var(--orange);
  box-shadow: 0 12px 24px rgba(249, 115, 22, 0.25);
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  background: #ffedd5;
  border-radius: 12px;
  padding: 10px;
}

.menu-toggle span {
  display: block;
  height: 2px;
  margin: 5px 0;
  background: #7c2d12;
}

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

.hero::before,
.hero::after {
  content: "";
  position: absolute;
  width: 360px;
  height: 360px;
  border-radius: 999px;
  filter: blur(18px);
  opacity: 0.35;
}

.hero::before {
  top: 80px;
  left: 8%;
  background: #fb923c;
  animation: floatGlow 8s ease-in-out infinite;
}

.hero::after {
  right: 6%;
  bottom: 60px;
  background: #f59e0b;
  animation: floatGlow 10s ease-in-out infinite reverse;
}

@keyframes floatGlow {
  0%, 100% {
    transform: translate3d(0, 0, 0) scale(1);
  }
  50% {
    transform: translate3d(18px, -22px, 0) scale(1.06);
  }
}

.hero-inner {
  position: relative;
  z-index: 2;
  min-height: 650px;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  gap: 42px;
  align-items: center;
  padding: 56px 0;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  color: var(--orange-dark);
  background: rgba(255, 255, 255, 0.62);
  border: 1px solid rgba(249, 115, 22, 0.24);
  border-radius: 999px;
  font-weight: 800;
}

.hero h1 {
  margin: 22px 0 18px;
  font-size: clamp(42px, 6vw, 72px);
  line-height: 1.04;
  letter-spacing: -0.05em;
}

.hero h1 span {
  color: var(--orange-dark);
}

.hero p {
  max-width: 660px;
  color: #374151;
  font-size: 19px;
  line-height: 1.9;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 24px;
  border-radius: 999px;
  font-weight: 900;
  transition: 0.25s ease;
}

.btn-primary {
  color: white;
  background: linear-gradient(135deg, var(--orange), var(--amber));
  box-shadow: 0 16px 32px rgba(249, 115, 22, 0.28);
}

.btn-primary:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 22px 40px rgba(249, 115, 22, 0.34);
}

.btn-ghost {
  color: #9a3412;
  background: rgba(255, 255, 255, 0.72);
  border: 2px solid rgba(249, 115, 22, 0.35);
}

.btn-ghost:hover {
  background: #fff7ed;
  transform: translateY(-2px);
}

.hero-panel {
  position: relative;
  min-height: 430px;
  border-radius: 32px;
  overflow: hidden;
  box-shadow: var(--shadow);
  background: #7c2d12;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: scale(1.03);
  transition: opacity 0.65s ease, transform 0.65s ease;
}

.hero-slide.is-active {
  opacity: 1;
  transform: scale(1);
}

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

.hero-slide-content {
  position: absolute;
  inset: auto 24px 24px 24px;
  padding: 24px;
  color: white;
  background: linear-gradient(180deg, rgba(17, 24, 39, 0.14), rgba(17, 24, 39, 0.82));
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 24px;
  backdrop-filter: blur(10px);
}

.hero-slide-content strong {
  display: block;
  margin-bottom: 10px;
  font-size: 26px;
}

.hero-dots {
  position: absolute;
  top: 22px;
  right: 22px;
  z-index: 4;
  display: flex;
  gap: 8px;
}

.hero-dot {
  width: 10px;
  height: 10px;
  border: 0;
  padding: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.55);
}

.hero-dot.is-active {
  width: 28px;
  background: white;
}

.section {
  padding: 72px 0;
}

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

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

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

.section-title {
  margin: 0 0 8px;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.12;
  letter-spacing: -0.03em;
}

.section-desc {
  margin: 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.8;
}

.feature-grid,
.movie-grid,
.category-grid,
.stat-grid,
.related-grid {
  display: grid;
  gap: 24px;
}

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

.stat-card {
  padding: 30px;
  border-radius: 26px;
  background: linear-gradient(135deg, #fff7ed, #ffffff);
  border: 1px solid rgba(251, 146, 60, 0.22);
  box-shadow: 0 16px 36px rgba(124, 45, 18, 0.08);
  text-align: center;
}

.stat-icon {
  width: 62px;
  height: 62px;
  margin: 0 auto 16px;
  display: grid;
  place-items: center;
  color: white;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--orange), var(--amber));
  font-size: 25px;
}

.stat-card h2,
.stat-card h3 {
  margin: 0 0 8px;
  font-size: 24px;
}

.stat-card p {
  margin: 0;
  color: var(--muted);
}

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

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

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

.movie-card {
  overflow: hidden;
  border-radius: 26px;
  background: var(--card);
  border: 1px solid rgba(251, 146, 60, 0.16);
  box-shadow: 0 14px 34px rgba(124, 45, 18, 0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.movie-card:hover {
  transform: translateY(-7px);
  box-shadow: 0 24px 48px rgba(124, 45, 18, 0.14);
}

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

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

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

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

.poster-badge,
.poster-score {
  position: absolute;
  top: 12px;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
  backdrop-filter: blur(10px);
}

.poster-badge {
  left: 12px;
  color: #9a3412;
  background: rgba(255, 255, 255, 0.9);
}

.poster-score {
  right: 12px;
  color: white;
  background: rgba(249, 115, 22, 0.92);
}

.card-body {
  padding: 20px;
}

.card-title {
  display: block;
  min-height: 54px;
  color: #111827;
  font-size: 18px;
  font-weight: 900;
  line-height: 1.45;
  transition: color 0.2s ease;
}

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

.card-desc {
  display: -webkit-box;
  min-height: 48px;
  margin: 8px 0 14px;
  overflow: hidden;
  color: var(--muted);
  line-height: 1.65;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.card-meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: #9a3412;
  font-size: 13px;
  font-weight: 800;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.tag-row span {
  padding: 5px 9px;
  color: #9a3412;
  background: #ffedd5;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}

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

.category-chip,
.category-panel {
  display: block;
  padding: 26px;
  border-radius: 26px;
  color: #7c2d12;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(255, 237, 213, 0.88));
  border: 1px solid rgba(251, 146, 60, 0.24);
  box-shadow: 0 14px 32px rgba(124, 45, 18, 0.08);
  transition: 0.25s ease;
}

.category-chip:hover,
.category-panel:hover {
  transform: translateY(-5px);
  box-shadow: 0 22px 42px rgba(124, 45, 18, 0.13);
}

.category-chip span,
.category-panel h2 {
  display: block;
  margin: 0 0 10px;
  font-size: 22px;
  font-weight: 900;
}

.category-chip small,
.category-panel p {
  color: #6b4b3a;
  line-height: 1.7;
}

.search-panel {
  display: flex;
  gap: 12px;
  padding: 14px;
  border-radius: 24px;
  background: white;
  border: 1px solid rgba(251, 146, 60, 0.2);
  box-shadow: 0 12px 28px rgba(124, 45, 18, 0.08);
}

.search-panel input {
  width: 100%;
  min-height: 48px;
  border: 0;
  outline: 0;
  padding: 0 12px;
  color: var(--ink);
  font-size: 16px;
}

.search-panel button {
  border: 0;
}

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

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

.rank-item {
  display: grid;
  grid-template-columns: 54px 74px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  min-height: 96px;
  padding: 14px;
  border-radius: 20px;
  background: white;
  border: 1px solid rgba(251, 146, 60, 0.16);
  box-shadow: 0 12px 26px rgba(124, 45, 18, 0.07);
  transition: 0.2s ease;
}

.rank-item:hover {
  transform: translateX(5px);
  box-shadow: 0 18px 36px rgba(124, 45, 18, 0.12);
}

.rank-num {
  color: var(--orange-dark);
  font-size: 24px;
  font-weight: 950;
}

.rank-item img {
  width: 74px;
  height: 74px;
  object-fit: cover;
  border-radius: 16px;
  background: #fed7aa;
}

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

.rank-text strong {
  margin-bottom: 6px;
  font-size: 17px;
}

.rank-text em {
  color: var(--muted);
  font-style: normal;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 28px 0;
  color: #9a3412;
  font-weight: 700;
}

.detail-hero {
  display: grid;
  grid-template-columns: 360px minmax(0, 1fr);
  gap: 34px;
  align-items: start;
  padding: 34px;
  border-radius: 32px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(251, 146, 60, 0.2);
  box-shadow: var(--shadow);
}

.detail-poster {
  border-radius: 28px;
  overflow: hidden;
  aspect-ratio: 3 / 4;
  background: #fed7aa;
}

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

.detail-title {
  margin: 0 0 16px;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.1;
}

.meta-pills,
.detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.meta-pills span,
.detail-tags span {
  padding: 8px 12px;
  color: #9a3412;
  background: #ffedd5;
  border-radius: 999px;
  font-weight: 800;
}

.detail-intro {
  margin: 24px 0;
  color: #374151;
  font-size: 18px;
  line-height: 1.9;
}

.content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 28px;
  margin-top: 34px;
}

.content-card,
.info-card,
.player-card {
  border-radius: 28px;
  background: white;
  border: 1px solid rgba(251, 146, 60, 0.18);
  box-shadow: 0 14px 34px rgba(124, 45, 18, 0.08);
}

.content-card,
.info-card {
  padding: 28px;
}

.content-card h2,
.info-card h2,
.player-card h2 {
  margin: 0 0 16px;
  font-size: 26px;
}

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

.info-list {
  display: grid;
  gap: 16px;
}

.info-list div {
  padding-bottom: 14px;
  border-bottom: 1px solid #ffedd5;
}

.info-list small,
.info-list strong {
  display: block;
}

.info-list small {
  color: var(--muted);
  margin-bottom: 4px;
}

.player-card {
  overflow: hidden;
  margin-top: 34px;
}

.player-head {
  padding: 24px 28px 0;
}

.player-shell {
  position: relative;
  margin: 24px 28px 28px;
  overflow: hidden;
  border-radius: 24px;
  background: #111827;
  aspect-ratio: 16 / 9;
}

.player-shell video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background: #111827;
}

.player-cover {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, rgba(17, 24, 39, 0.3), rgba(17, 24, 39, 0.86));
}

.player-shell.is-playing .player-cover {
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.25s ease;
}

.play-button {
  width: 92px;
  height: 92px;
  border: 0;
  display: grid;
  place-items: center;
  color: white;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--orange), var(--amber));
  box-shadow: 0 18px 40px rgba(249, 115, 22, 0.35);
  font-size: 30px;
}

.site-footer {
  margin-top: 72px;
  padding: 46px 0;
  color: #7c2d12;
  background: #fff7ed;
  border-top: 1px solid rgba(251, 146, 60, 0.22);
}

.footer-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.8fr);
  gap: 30px;
}

.footer-inner p {
  color: #8a5a44;
  line-height: 1.8;
}

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

.footer-links a {
  padding: 8px 12px;
  border-radius: 999px;
  background: #ffedd5;
  font-weight: 700;
}

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

@media (max-width: 980px) {
  .hero-inner,
  .detail-hero,
  .content-grid,
  .rank-layout,
  .footer-inner {
    grid-template-columns: 1fr;
  }

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

  .detail-poster {
    max-width: 360px;
  }
}

@media (max-width: 680px) {
  .header-inner,
  .footer-inner,
  .section-inner,
  .hero-inner {
    width: min(100% - 22px, 1180px);
  }

  .menu-toggle {
    display: block;
  }

  .main-nav {
    position: absolute;
    top: 72px;
    left: 12px;
    right: 12px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 14px;
    background: white;
    border: 1px solid rgba(251, 146, 60, 0.22);
    border-radius: 22px;
    box-shadow: var(--shadow);
  }

  .main-nav.is-open {
    display: flex;
  }

  .hero,
  .hero-inner {
    min-height: auto;
  }

  .hero-inner {
    padding: 42px 0;
  }

  .hero-panel {
    min-height: 390px;
  }

  .section {
    padding: 52px 0;
  }

  .section-head {
    display: block;
  }

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

  .detail-hero,
  .content-card,
  .info-card {
    padding: 22px;
  }

  .player-shell {
    margin: 18px;
  }

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