:root {
  color-scheme: light;
  --site-orange: #ea580c;
  --site-orange-dark: #c2410c;
  --site-red: #dc2626;
  --site-yellow: #fde047;
  --site-text: #111827;
  --site-muted: #6b7280;
  --site-soft: #fff7ed;
  --site-line: #e5e7eb;
  --site-dark: #111827;
  --site-card: #ffffff;
  --site-shadow: 0 18px 45px rgba(15, 23, 42, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--site-text);
  background: #f9fafb;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
}

img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

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

button,
input {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(16px);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
}

.site-header-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  width: min(1200px, calc(100% - 32px));
  min-height: 72px;
  margin: 0 auto;
}

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 24px;
  font-weight: 800;
  color: var(--site-orange);
  white-space: nowrap;
}

.brand-mark {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  flex: 0 0 auto;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--site-orange), var(--site-red));
  box-shadow: 0 10px 24px rgba(234, 88, 12, 0.28);
}

.brand-mark span {
  width: 0;
  height: 0;
  margin-left: 3px;
  border-top: 8px solid transparent;
  border-bottom: 8px solid transparent;
  border-left: 13px solid white;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 22px;
  margin-left: auto;
  color: #374151;
  font-size: 15px;
  font-weight: 600;
}

.desktop-nav a,
.mobile-panel a,
.footer-grid a,
.footer-bottom a {
  transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.desktop-nav a:hover,
.mobile-panel a:hover,
.footer-grid a:hover,
.footer-bottom a:hover {
  color: var(--site-orange);
}

.site-search-form {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 290px;
}

.site-search-form input,
.filter-search input,
.search-hero input {
  width: 100%;
  border: 1px solid #d1d5db;
  border-radius: 999px;
  background: #fff;
  color: #111827;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.site-search-form input {
  height: 40px;
  padding: 0 16px;
}

.site-search-form input:focus,
.filter-search input:focus,
.search-hero input:focus {
  border-color: var(--site-orange);
  box-shadow: 0 0 0 4px rgba(234, 88, 12, 0.12);
}

.site-search-form button,
.search-hero button,
.btn-primary,
.btn-secondary,
.rank-action,
.player-button {
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 800;
}

.site-search-form button {
  height: 40px;
  padding: 0 18px;
  color: #fff;
  background: var(--site-orange);
}

.mobile-toggle {
  display: none;
  width: 44px;
  height: 44px;
  margin-left: auto;
  border: 0;
  border-radius: 12px;
  background: #fff7ed;
}

.mobile-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  margin: 5px auto;
  border-radius: 2px;
  background: var(--site-orange);
}

.mobile-panel {
  display: none;
  width: min(1200px, calc(100% - 32px));
  margin: 0 auto;
  padding: 0 0 18px;
}

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

.mobile-panel nav {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-top: 14px;
}

.mobile-panel nav a {
  padding: 12px 14px;
  border-radius: 14px;
  background: #fff7ed;
  color: #374151;
  font-weight: 700;
}

.main-shell {
  overflow: hidden;
}

.hero-slider {
  position: relative;
  min-height: 640px;
  overflow: hidden;
  background: linear-gradient(135deg, #fb923c, #ef4444 56%, #ec4899);
}

.hero-slider::before,
.hero-slider::after {
  content: "";
  position: absolute;
  width: 360px;
  height: 360px;
  border-radius: 50%;
  filter: blur(50px);
  opacity: 0.32;
  animation: float-light 10s ease-in-out infinite alternate;
}

.hero-slider::before {
  top: 70px;
  left: 5%;
  background: #fde047;
}

.hero-slider::after {
  right: 7%;
  bottom: 40px;
  background: #f472b6;
  animation-delay: 2s;
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.72fr);
  align-items: center;
  gap: 48px;
  width: min(1200px, calc(100% - 32px));
  margin: 0 auto;
  padding: 72px 0 120px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

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

.hero-slide::before {
  content: "";
  position: absolute;
  inset: 54px calc(42% + 28px) 94px -70px;
  z-index: -1;
  border-radius: 36px;
  background: rgba(0, 0, 0, 0.12);
  backdrop-filter: blur(8px);
}

.hero-copy {
  color: #fff;
}

.hero-kicker,
.section-kicker,
.detail-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.03em;
}

.section-kicker,
.detail-kicker {
  background: #fff7ed;
  color: var(--site-orange);
}

.hero-copy h1 {
  margin: 22px 0 18px;
  max-width: 780px;
  font-size: clamp(40px, 6.5vw, 76px);
  line-height: 0.98;
  font-weight: 900;
  letter-spacing: -0.05em;
}

.hero-copy h1 span {
  color: var(--site-yellow);
}

.hero-copy p {
  max-width: 740px;
  margin: 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(18px, 2vw, 24px);
  line-height: 1.75;
}

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

.btn-primary,
.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 26px;
  box-shadow: 0 18px 34px rgba(15, 23, 42, 0.18);
}

.btn-primary {
  color: var(--site-orange);
  background: #fff;
}

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

.btn-secondary {
  color: #fff;
  border: 2px solid rgba(255, 255, 255, 0.78);
  background: rgba(255, 255, 255, 0.08);
}

.btn-secondary:hover {
  color: var(--site-orange);
  background: #fff;
}

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  margin-top: 44px;
  color: #fff;
}

.hero-stats strong {
  display: block;
  font-size: 30px;
  line-height: 1;
}

.hero-stats span {
  display: block;
  margin-top: 8px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 14px;
}

.hero-poster {
  position: relative;
  height: min(72vh, 500px);
  min-height: 400px;
  border-radius: 30px;
  overflow: hidden;
  box-shadow: 0 30px 70px rgba(17, 24, 39, 0.38);
  transform: rotate(2deg);
}

.hero-poster img {
  transition: transform 0.6s ease;
}

.hero-slide.is-active .hero-poster img {
  transform: scale(1.04);
}

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

.hero-poster-info {
  position: absolute;
  right: 22px;
  bottom: 22px;
  left: 22px;
  z-index: 2;
  color: #fff;
}

.hero-poster-info h2 {
  margin: 0 0 8px;
  font-size: 24px;
  font-weight: 900;
}

.hero-poster-info p {
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.7;
}

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

.hero-dot {
  width: 36px;
  height: 8px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.38);
  cursor: pointer;
}

.hero-dot.is-active {
  background: #fff;
}

.section {
  padding: 78px 0;
}

.section.alt {
  background: #fff;
}

.section.dark-gradient {
  color: #fff;
  background: linear-gradient(135deg, #ea580c, #dc2626);
}

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

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

.section-title h2,
.section-title h1 {
  margin: 12px 0 0;
  color: #111827;
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1.08;
  font-weight: 900;
  letter-spacing: -0.03em;
}

.dark-gradient .section-title h2,
.dark-gradient .section-title h1 {
  color: #fff;
}

.section-title p {
  max-width: 760px;
  margin: 14px 0 0;
  color: var(--site-muted);
  font-size: 17px;
  line-height: 1.8;
}

.dark-gradient .section-title p {
  color: rgba(255, 255, 255, 0.82);
}

.view-all {
  color: var(--site-orange);
  font-weight: 900;
  white-space: nowrap;
}

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

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

.movie-card {
  overflow: hidden;
  border: 1px solid rgba(229, 231, 235, 0.72);
  border-radius: 22px;
  background: var(--site-card);
  box-shadow: 0 12px 30px rgba(15, 23, 42, 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: rgba(234, 88, 12, 0.28);
  box-shadow: 0 24px 46px rgba(15, 23, 42, 0.14);
}

.movie-card.is-hidden,
.rank-row.is-hidden {
  display: none;
}

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

.movie-card-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.46));
  opacity: 0.82;
}

.movie-card-cover img {
  transition: transform 0.4s ease;
}

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

.movie-card-play {
  position: absolute;
  right: 14px;
  bottom: 14px;
  z-index: 2;
  padding: 8px 13px;
  border-radius: 999px;
  color: #fff;
  background: rgba(234, 88, 12, 0.92);
  font-size: 13px;
  font-weight: 900;
}

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

.movie-card-meta,
.rank-meta,
.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--site-orange);
  font-size: 13px;
  font-weight: 800;
}

.movie-card-meta span,
.rank-meta span,
.detail-meta span {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 9px;
  border-radius: 999px;
  background: #fff7ed;
}

.movie-card h3 {
  margin: 12px 0 8px;
  font-size: 19px;
  line-height: 1.32;
  font-weight: 900;
}

.movie-card h3 a:hover,
.rank-main h3 a:hover,
.detail-copy h1 a:hover {
  color: var(--site-orange);
}

.movie-card p,
.category-card p,
.rank-main p,
.detail-copy p,
.article-panel p {
  color: #4b5563;
  line-height: 1.75;
}

.movie-card p {
  display: -webkit-box;
  min-height: 56px;
  margin: 0;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

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

.tag-row span {
  padding: 6px 10px;
  border-radius: 999px;
  color: #6b7280;
  background: #f3f4f6;
  font-size: 12px;
  font-weight: 700;
}

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

.category-card {
  position: relative;
  overflow: hidden;
  min-height: 230px;
  padding: 28px;
  border-radius: 24px;
  color: #111827;
  background: #fff;
  box-shadow: var(--site-shadow);
}

.category-card::before {
  content: "";
  position: absolute;
  top: -80px;
  right: -80px;
  width: 190px;
  height: 190px;
  border-radius: 50%;
  background: rgba(234, 88, 12, 0.12);
}

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

.category-card p {
  position: relative;
  margin: 0 0 20px;
}

.category-card a {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 18px;
  border-radius: 999px;
  color: #fff;
  background: var(--site-orange);
  font-weight: 900;
}

.category-hero,
.search-hero,
.simple-hero {
  padding: 76px 0;
  color: #fff;
  background: linear-gradient(135deg, var(--site-orange), var(--site-red));
}

.category-hero h1,
.search-hero h1,
.simple-hero h1 {
  margin: 0;
  font-size: clamp(38px, 5vw, 64px);
  line-height: 1;
  font-weight: 900;
  letter-spacing: -0.04em;
}

.category-hero p,
.search-hero p,
.simple-hero p {
  max-width: 780px;
  margin: 18px 0 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: 18px;
  line-height: 1.8;
}

.filter-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 28px;
  padding: 18px;
  border: 1px solid #fed7aa;
  border-radius: 22px;
  background: #fff7ed;
}

.filter-search {
  width: min(420px, 100%);
}

.filter-search input,
.search-hero input {
  height: 48px;
  padding: 0 18px;
}

.filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.filter-chips a,
.filter-chips span {
  padding: 9px 14px;
  border-radius: 999px;
  background: #fff;
  color: #374151;
  font-weight: 800;
  box-shadow: 0 8px 18px rgba(234, 88, 12, 0.08);
}

.filter-chips .active {
  color: #fff;
  background: var(--site-orange);
}

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

.rank-row {
  display: grid;
  grid-template-columns: 110px 118px minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  padding: 14px;
  border: 1px solid #e5e7eb;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.06);
}

.rank-number {
  color: var(--site-orange);
  font-weight: 900;
}

.rank-cover {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-radius: 14px;
  background: #111827;
}

.rank-main h3 {
  margin: 0 0 8px;
  font-size: 20px;
  font-weight: 900;
}

.rank-main p {
  margin: 0 0 10px;
}

.rank-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 82px;
  min-height: 42px;
  color: #fff;
  background: var(--site-orange);
}

.detail-hero {
  padding: 48px 0 64px;
  color: #fff;
  background: radial-gradient(circle at 20% 0%, rgba(253, 224, 71, 0.32), transparent 26%), linear-gradient(135deg, #111827, #7c2d12 48%, #dc2626);
}

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

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

.detail-layout {
  display: grid;
  grid-template-columns: minmax(250px, 360px) minmax(0, 1fr);
  gap: 42px;
  align-items: center;
}

.detail-cover {
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border-radius: 30px;
  background: #111827;
  box-shadow: 0 28px 60px rgba(0, 0, 0, 0.32);
}

.detail-copy h1 {
  margin: 18px 0;
  font-size: clamp(36px, 5vw, 68px);
  line-height: 1.04;
  font-weight: 900;
  letter-spacing: -0.04em;
}

.detail-copy p {
  max-width: 820px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 18px;
}

.detail-meta span {
  color: #fff;
  background: rgba(255, 255, 255, 0.16);
}

.player-section {
  padding: 64px 0;
  background: #0b1020;
}

.player-panel {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  background: #000;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.32);
}

.player-panel video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
}

.player-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  border: 0;
  background: linear-gradient(180deg, rgba(17, 24, 39, 0.15), rgba(17, 24, 39, 0.72));
  cursor: pointer;
}

.player-overlay.is-hidden {
  display: none;
}

.player-button {
  display: grid;
  place-items: center;
  width: 92px;
  height: 92px;
  color: var(--site-orange);
  background: #fff;
  box-shadow: 0 22px 48px rgba(0, 0, 0, 0.34);
}

.player-button::before {
  content: "";
  width: 0;
  height: 0;
  margin-left: 7px;
  border-top: 18px solid transparent;
  border-bottom: 18px solid transparent;
  border-left: 28px solid var(--site-orange);
}

.article-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(280px, 0.75fr);
  gap: 28px;
}

.article-panel {
  padding: 30px;
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 14px 32px rgba(15, 23, 42, 0.08);
}

.article-panel h2 {
  margin: 0 0 18px;
  font-size: 28px;
  font-weight: 900;
}

.article-panel p {
  margin: 0 0 18px;
  font-size: 17px;
}

.search-hero form {
  display: flex;
  gap: 12px;
  max-width: 780px;
  margin-top: 30px;
}

.search-hero button {
  min-width: 110px;
  color: var(--site-orange);
  background: #fff;
}

.search-results {
  min-height: 260px;
}

.empty-state {
  padding: 46px;
  border-radius: 24px;
  background: #fff;
  color: #6b7280;
  text-align: center;
  box-shadow: 0 14px 32px rgba(15, 23, 42, 0.08);
}

.simple-content {
  max-width: 920px;
  margin: 0 auto;
}

.simple-content .article-panel + .article-panel {
  margin-top: 24px;
}

@keyframes float-light {
  from {
    transform: translate3d(0, 0, 0) scale(1);
  }
  to {
    transform: translate3d(28px, -20px, 0) scale(1.06);
  }
}

@media (max-width: 1120px) {
  .desktop-nav,
  .site-header-inner > .site-search-form {
    display: none;
  }

  .mobile-toggle {
    display: block;
  }

  .mobile-panel .site-search-form {
    display: flex;
  }

  .hero-slide {
    grid-template-columns: 1fr;
    align-content: center;
    gap: 24px;
    min-height: 760px;
    padding: 58px 0 120px;
  }

  .hero-slide::before {
    inset: 40px -40px 110px -40px;
  }

  .hero-poster {
    display: none;
  }

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

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

@media (max-width: 780px) {
  .site-header-inner {
    min-height: 64px;
  }

  .brand,
  .footer-brand {
    font-size: 20px;
  }

  .brand-mark {
    width: 32px;
    height: 32px;
  }

  .hero-slider {
    min-height: 720px;
  }

  .hero-copy h1 {
    font-size: 42px;
  }

  .hero-stats {
    gap: 20px;
  }

  .section {
    padding: 54px 0;
  }

  .section-head,
  .filter-bar,
  .search-hero form {
    align-items: stretch;
    flex-direction: column;
  }

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

  .rank-row {
    grid-template-columns: 72px 1fr;
    align-items: start;
  }

  .rank-cover {
    grid-column: 1 / 2;
  }

  .rank-main {
    grid-column: 2 / 3;
  }

  .rank-action {
    grid-column: 1 / 3;
  }

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

  .detail-cover {
    max-width: 330px;
  }

  .player-button {
    width: 74px;
    height: 74px;
  }

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

.site-footer {
  color: #d1d5db;
  background: #111827;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.35fr 0.8fr 0.8fr 0.8fr;
  gap: 34px;
  width: min(1200px, calc(100% - 32px));
  margin: 0 auto;
  padding: 54px 0 34px;
}

.footer-brand {
  color: #fff;
}

.footer-grid p {
  max-width: 420px;
  margin: 18px 0 0;
  color: #9ca3af;
  line-height: 1.8;
}

.footer-grid h3 {
  margin: 0 0 18px;
  color: #fff;
  font-size: 18px;
  font-weight: 900;
}

.footer-grid ul {
  display: grid;
  gap: 11px;
  margin: 0;
  padding: 0;
  list-style: none;
}

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

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: min(1200px, calc(100% - 32px));
  margin: 0 auto;
  padding: 22px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: #9ca3af;
  font-size: 14px;
}

@media (max-width: 780px) {
  .footer-bottom {
    align-items: flex-start;
    flex-direction: column;
  }
}
