:root {
  --sunset-50: #fff7ed;
  --sunset-100: #ffedd5;
  --sunset-200: #fed7aa;
  --sunset-500: #f97316;
  --sunset-600: #ea580c;
  --golden-50: #fefce8;
  --golden-500: #eab308;
  --golden-600: #ca8a04;
  --twilight-50: #fef2f2;
  --twilight-500: #ef4444;
  --ocean-50: #f0f9ff;
  --ocean-500: #0ea5e9;
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-800: #1f2937;
  --gray-900: #111827;
  --shadow-soft: 0 2px 15px -3px rgba(0, 0, 0, .07), 0 10px 20px -2px rgba(0, 0, 0, .04);
  --shadow-xl: 0 22px 45px rgba(17, 24, 39, .18);
  --radius-lg: 18px;
  --radius-md: 12px;
  --page-max: 1280px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--gray-900);
  background: linear-gradient(180deg, var(--sunset-50), #ffffff 360px);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  line-height: 1.6;
}

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

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

button,
input,
select {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, .95);
  border-bottom: 1px solid var(--gray-200);
  box-shadow: 0 1px 2px rgba(0, 0, 0, .04);
  backdrop-filter: blur(8px);
}

.header-inner {
  width: min(100%, var(--page-max));
  height: 64px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.site-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.logo-mark {
  width: 34px;
  height: 34px;
  border-radius: 11px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  background: linear-gradient(135deg, var(--sunset-500), var(--twilight-500));
  box-shadow: var(--shadow-soft);
}

.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.logo-text strong {
  font-size: 20px;
  color: var(--gray-900);
}

.logo-text small {
  margin-top: 2px;
  color: var(--gray-500);
  font-size: 12px;
}

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

.nav-link {
  color: var(--gray-700);
  font-size: 15px;
  font-weight: 650;
  transition: color .2s ease;
}

.nav-link:hover,
.nav-link.active {
  color: var(--sunset-600);
}

.menu-toggle {
  display: none;
  border: 0;
  color: var(--gray-800);
  background: transparent;
  font-size: 26px;
  cursor: pointer;
}

.mobile-nav {
  display: none;
  padding: 8px 24px 16px;
  border-top: 1px solid var(--gray-200);
}

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

.mobile-link {
  padding: 10px 12px;
  border-radius: 12px;
  color: var(--gray-700);
  background: var(--gray-50);
  font-weight: 650;
}

.mobile-link.active {
  color: var(--sunset-600);
  background: var(--sunset-100);
}

.hero-section {
  position: relative;
  overflow: hidden;
  color: #ffffff;
  background: linear-gradient(135deg, var(--sunset-500), var(--twilight-500) 52%, var(--ocean-500));
}

.hero-pattern {
  position: absolute;
  inset: 0;
  opacity: .16;
  background-image: linear-gradient(rgba(255,255,255,.42) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.42) 1px, transparent 1px);
  background-size: 44px 44px;
}

.hero-slider {
  position: relative;
  width: min(100%, var(--page-max));
  min-height: 560px;
  margin: 0 auto;
  padding: 72px 24px 96px;
}

.hero-slide {
  display: none;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, .65fr);
  gap: 44px;
  align-items: center;
}

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

.hero-copy h1 {
  max-width: 820px;
  margin: 12px 0 16px;
  font-size: clamp(36px, 6vw, 68px);
  line-height: 1.06;
  letter-spacing: -1.5px;
}

.hero-copy h2 {
  margin: 0 0 14px;
  font-size: clamp(24px, 3vw, 38px);
}

.hero-copy p {
  max-width: 760px;
  margin: 0 0 22px;
  color: rgba(255, 255, 255, .92);
  font-size: 18px;
}

.eyebrow {
  margin: 0;
  color: var(--sunset-600);
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.hero-section .eyebrow,
.page-hero .eyebrow,
.detail-hero .eyebrow {
  color: rgba(255, 255, 255, .88);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin: 26px 0 20px;
}

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

.primary-button {
  color: #ffffff;
  background: linear-gradient(135deg, var(--sunset-500), var(--twilight-500));
  box-shadow: var(--shadow-soft);
}

.primary-button:hover,
.ghost-button:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-xl);
}

.ghost-button {
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, .36);
  background: rgba(255, 255, 255, .14);
}

.hero-poster {
  position: relative;
  display: block;
  width: min(100%, 360px);
  margin-left: auto;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .28);
  border-radius: 28px;
  box-shadow: 0 30px 80px rgba(17, 24, 39, .35);
  transform: rotate(2deg);
}

.hero-poster img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
}

.hero-poster span {
  position: absolute;
  right: 18px;
  bottom: 18px;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--sunset-600);
  background: rgba(255, 255, 255, .94);
  box-shadow: var(--shadow-xl);
}

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

.hero-tags span,
.tag-row span,
.detail-meta span,
.detail-tags a {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  border-radius: 999px;
  padding: 4px 10px;
  color: var(--gray-700);
  background: var(--sunset-100);
  font-size: 12px;
  font-weight: 750;
}

.hero-tags span {
  color: #ffffff;
  background: rgba(255, 255, 255, .18);
}

.hero-controls {
  position: absolute;
  left: 24px;
  bottom: 42px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.hero-prev,
.hero-next,
.hero-dot {
  border: 0;
  cursor: pointer;
}

.hero-prev,
.hero-next {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  color: #ffffff;
  background: rgba(255, 255, 255, .18);
  font-size: 28px;
}

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

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

.hero-dot.active {
  width: 28px;
  background: #ffffff;
}

.featured-wrap,
.content-section,
.breadcrumb,
.detail-hero,
.detail-layout,
.page-hero {
  width: min(100%, var(--page-max));
  margin-left: auto;
  margin-right: auto;
  padding-left: 24px;
  padding-right: 24px;
}

.featured-wrap {
  margin-top: -48px;
  margin-bottom: 64px;
  position: relative;
  z-index: 2;
}

.content-section {
  margin-bottom: 64px;
}

.warm-section {
  border-radius: 28px;
  padding-top: 32px;
  padding-bottom: 32px;
  background: linear-gradient(90deg, var(--golden-50), var(--sunset-50));
}

.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 22px;
}

.section-heading > div {
  display: flex;
  align-items: center;
  gap: 10px;
}

.section-icon {
  width: 34px;
  height: 34px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  color: #ffffff;
  background: var(--sunset-500);
  font-weight: 900;
}

.section-heading h2 {
  margin: 0;
  font-size: 26px;
}

.section-more {
  color: var(--sunset-600);
  font-weight: 800;
}

.featured-card {
  display: grid;
  grid-template-columns: minmax(240px, 380px) minmax(0, 1fr);
  gap: 30px;
  align-items: stretch;
  overflow: hidden;
  border-radius: 28px;
  background: #ffffff;
  box-shadow: var(--shadow-xl);
}

.featured-image img {
  width: 100%;
  height: 100%;
  min-height: 420px;
  object-fit: cover;
}

.featured-content {
  padding: 34px 34px 34px 4px;
}

.featured-content h2 {
  margin: 8px 0 16px;
  font-size: clamp(28px, 4vw, 46px);
  line-height: 1.1;
}

.featured-content p {
  color: var(--gray-600);
}

.featured-content .primary-button {
  margin-top: 22px;
}

.filter-area {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) 160px 160px;
  gap: 14px;
  margin-bottom: 24px;
  padding: 16px;
  border: 1px solid var(--gray-200);
  border-radius: 18px;
  background: #ffffff;
  box-shadow: var(--shadow-soft);
}

.search-box,
.select-box {
  display: grid;
  gap: 6px;
  color: var(--gray-600);
  font-size: 13px;
  font-weight: 750;
}

.search-box input,
.select-box select {
  width: 100%;
  height: 44px;
  border: 1px solid var(--gray-200);
  border-radius: 12px;
  padding: 0 14px;
  color: var(--gray-900);
  background: var(--gray-50);
  outline: none;
}

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

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

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

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

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

.movie-card[hidden] {
  display: none;
}

.movie-poster {
  position: relative;
  display: block;
  overflow: hidden;
  background: var(--gray-100);
}

.movie-poster img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  transition: transform .28s ease;
}

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

.poster-play {
  position: absolute;
  right: 12px;
  bottom: 12px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--sunset-600);
  background: rgba(255, 255, 255, .94);
  box-shadow: var(--shadow-soft);
}

.rank-badge {
  position: absolute;
  left: 12px;
  top: 12px;
  min-width: 32px;
  height: 32px;
  padding: 0 9px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  background: linear-gradient(135deg, var(--sunset-500), var(--twilight-500));
  font-weight: 900;
}

.movie-info {
  padding: 16px;
}

.movie-info h2 {
  margin: 0 0 6px;
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  font-size: 18px;
  line-height: 1.35;
}

.movie-info h2 a:hover {
  color: var(--sunset-600);
}

.movie-meta,
.movie-desc {
  margin: 0;
  color: var(--gray-600);
  font-size: 13px;
}

.movie-desc {
  display: -webkit-box;
  min-height: 42px;
  margin-top: 8px;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.movie-info .tag-row {
  margin-top: 12px;
}

.movie-card-compact .movie-info {
  padding: 12px;
}

.movie-card-compact .movie-info h2 {
  font-size: 15px;
}

.movie-card-compact .movie-desc,
.movie-card-compact .tag-row {
  display: none;
}

.category-preview-list {
  display: grid;
  gap: 34px;
}

.category-preview {
  padding: 24px;
  border-radius: 24px;
  background: #ffffff;
  box-shadow: var(--shadow-soft);
}

.category-preview-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}

.category-preview-head h2 {
  margin: 0 0 6px;
}

.category-preview-head p {
  margin: 0;
  color: var(--gray-600);
}

.category-preview-head a,
.category-enter {
  color: var(--sunset-600);
  font-weight: 800;
  white-space: nowrap;
}

.page-hero {
  margin-top: 34px;
  margin-bottom: 34px;
}

.page-hero > div {
  overflow: hidden;
  border-radius: 28px;
  padding: 56px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--sunset-500), var(--twilight-500) 55%, var(--ocean-500));
  box-shadow: var(--shadow-xl);
}

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

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

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

.category-card-large {
  padding: 26px;
  border-radius: 24px;
  background: #ffffff;
  box-shadow: var(--shadow-soft);
}

.category-card-title {
  display: inline-block;
  margin-bottom: 8px;
  font-size: 24px;
  font-weight: 900;
}

.category-card-title:hover {
  color: var(--sunset-600);
}

.category-card-large p {
  color: var(--gray-600);
}

.category-samples {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 18px 0;
}

.category-samples a {
  border-radius: 999px;
  padding: 6px 10px;
  color: var(--gray-700);
  background: var(--gray-100);
  font-size: 13px;
  font-weight: 700;
}

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

.ranking-aside,
.detail-side {
  position: sticky;
  top: 88px;
  padding: 22px;
  border-radius: 22px;
  background: #ffffff;
  box-shadow: var(--shadow-soft);
}

.ranking-aside h2,
.detail-side h2 {
  margin: 0 0 16px;
}

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

.rank-row {
  display: grid;
  grid-template-columns: auto 62px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 10px;
  border-radius: 16px;
  background: var(--gray-50);
  transition: background .2s ease;
}

.rank-row:hover {
  background: var(--sunset-100);
}

.list-rank {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #ffffff;
  background: var(--sunset-500);
  font-size: 12px;
  font-weight: 900;
}

.rank-row img {
  width: 62px;
  height: 86px;
  border-radius: 10px;
  object-fit: cover;
}

.rank-copy {
  min-width: 0;
}

.rank-copy strong,
.rank-copy small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rank-copy small {
  color: var(--gray-600);
  font-size: 12px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 28px;
  margin-bottom: 18px;
  color: var(--gray-600);
  font-size: 14px;
}

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

.detail-hero {
  display: grid;
  grid-template-columns: minmax(220px, 330px) minmax(0, 1fr);
  gap: 34px;
  align-items: center;
  margin-bottom: 34px;
  padding-top: 34px;
  padding-bottom: 34px;
  border-radius: 28px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--gray-900), #7c2d12 55%, #0c4a6e);
  box-shadow: var(--shadow-xl);
}

.detail-poster img {
  width: 100%;
  border-radius: 24px;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  box-shadow: var(--shadow-xl);
}

.detail-intro h1 {
  margin: 10px 0 14px;
  font-size: clamp(34px, 5vw, 60px);
  line-height: 1.08;
}

.detail-one-line {
  max-width: 840px;
  color: rgba(255, 255, 255, .9);
  font-size: 18px;
}

.detail-meta,
.detail-tags {
  margin-top: 18px;
}

.detail-tags a,
.detail-meta span {
  color: #ffffff;
  background: rgba(255, 255, 255, .16);
}

.detail-intro .primary-button {
  margin-top: 24px;
}

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

.detail-main {
  display: grid;
  gap: 24px;
}

.player-section,
.detail-panel {
  padding: 24px;
  border-radius: 24px;
  background: #ffffff;
  box-shadow: var(--shadow-soft);
}

.player-section h2,
.detail-panel h2 {
  margin: 0 0 16px;
}

.detail-panel p {
  margin: 0;
  color: var(--gray-700);
  white-space: pre-line;
}

.player-block {
  position: relative;
  overflow: hidden;
  border-radius: 20px;
  background: #000000;
  box-shadow: var(--shadow-xl);
}

.movie-video {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000000;
}

.player-overlay {
  position: absolute;
  inset: 0;
  z-index: 3;
  border: 0;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 12px;
  color: #ffffff;
  background: rgba(0, 0, 0, .52);
  cursor: pointer;
  transition: opacity .2s ease;
}

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

.player-icon {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--sunset-600);
  background: rgba(255, 255, 255, .94);
  box-shadow: var(--shadow-xl);
  font-size: 30px;
}

.player-overlay strong {
  font-size: 18px;
}

.player-message {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 4;
  display: none;
  border-radius: 12px;
  padding: 10px 12px;
  color: #ffffff;
  background: rgba(17, 24, 39, .76);
  font-size: 13px;
}

.player-message.show {
  display: block;
}

.site-footer {
  color: #d1d5db;
  background: var(--gray-900);
}

.footer-inner {
  width: min(100%, var(--page-max));
  margin: 0 auto;
  padding: 48px 24px;
  display: grid;
  grid-template-columns: 1.3fr .7fr .7fr;
  gap: 34px;
}

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

.footer-brand p {
  max-width: 520px;
  margin: 0;
}

.footer-links {
  display: grid;
  align-content: start;
  gap: 9px;
}

.footer-links h2 {
  margin: 0 0 8px;
  color: #ffffff;
  font-size: 16px;
}

.footer-links a:hover {
  color: var(--sunset-500);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, .1);
  padding: 18px 24px;
  text-align: center;
  color: #9ca3af;
  font-size: 14px;
}

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

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

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

  .ranking-aside,
  .detail-side {
    position: static;
  }
}

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

  .menu-toggle {
    display: inline-flex;
  }

  .hero-slider {
    min-height: auto;
    padding: 48px 18px 82px;
  }

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

  .hero-poster {
    width: min(100%, 280px);
    margin: 0;
  }

  .featured-content {
    padding: 24px;
  }

  .featured-image img {
    min-height: 0;
    aspect-ratio: 16 / 10;
  }

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

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

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

  .page-hero > div {
    padding: 36px 24px;
  }
}

@media (max-width: 520px) {
  .header-inner {
    padding: 0 16px;
  }

  .logo-text strong {
    font-size: 17px;
  }

  .featured-wrap,
  .content-section,
  .breadcrumb,
  .detail-hero,
  .detail-layout,
  .page-hero {
    padding-left: 16px;
    padding-right: 16px;
  }

  .movie-grid,
  .compact-grid {
    gap: 14px;
  }

  .movie-info {
    padding: 12px;
  }

  .movie-desc,
  .tag-row {
    display: none;
  }

  .category-preview-head,
  .section-heading {
    align-items: flex-start;
    flex-direction: column;
  }

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

  .rank-row .list-rank {
    position: absolute;
    margin-left: 4px;
    margin-top: -58px;
  }
}
