:root {
  --primary-50: #fff7ed;
  --primary-100: #fde6c5;
  --primary-400: #f4b04a;
  --primary-500: #d89410;
  --primary-600: #b6790d;
  --accent-500: #f95c16;
  --accent-600: #e1460c;
  --secondary-50: #f5f7fa;
  --secondary-500: #5f729c;
  --secondary-700: #3d486a;
  --secondary-800: #28324f;
  --secondary-900: #151d33;
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-300: #d1d5db;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-900: #111827;
  --white: #ffffff;
  --black: #000000;
  --shadow-soft: 0 18px 45px rgba(15, 23, 42, 0.10);
  --shadow-hover: 0 24px 60px rgba(15, 23, 42, 0.18);
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--gray-900);
  background: var(--gray-50);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans SC", "Microsoft YaHei", sans-serif;
  line-height: 1.6;
}

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

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

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(16px);
  box-shadow: 0 1px 0 rgba(15, 23, 42, 0.06);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1280px;
  height: 64px;
  margin: 0 auto;
  padding: 0 24px;
}

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  color: var(--white);
  background: linear-gradient(135deg, var(--primary-500), var(--accent-500));
  box-shadow: 0 12px 30px rgba(216, 148, 16, 0.24);
}

.brand-text {
  font-size: 20px;
  letter-spacing: -0.02em;
  background: linear-gradient(90deg, var(--primary-600), var(--accent-600));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

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

.nav-link {
  color: var(--gray-700);
  font-weight: 600;
  transition: color 0.2s ease;
}

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

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 12px;
  background: var(--gray-100);
}

.menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  border-radius: 999px;
  background: var(--gray-700);
}

.mobile-nav {
  display: none;
  border-top: 1px solid var(--gray-200);
  background: var(--white);
  padding: 12px 20px 18px;
}

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

.mobile-link {
  display: block;
  padding: 12px 14px;
  border-radius: 12px;
  color: var(--gray-700);
  font-weight: 600;
}

.mobile-link:hover,
.mobile-link.is-active {
  color: var(--primary-600);
  background: var(--primary-50);
}

.hero {
  position: relative;
  min-height: 70vh;
  overflow: hidden;
  color: var(--white);
  background: var(--black);
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.65s ease;
}

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

.hero-image,
.detail-backdrop {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.15), rgba(0, 0, 0, 0.62) 48%, rgba(0, 0, 0, 0.95));
}

.hero-content {
  position: relative;
  z-index: 2;
  display: flex;
  min-height: 70vh;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px 72px;
  flex-direction: column;
  justify-content: flex-end;
  align-items: flex-start;
}

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

.tag,
.pill,
.page-kicker {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 5px 11px;
  color: var(--primary-600);
  background: var(--primary-100);
  font-size: 12px;
  font-weight: 700;
}

.hero .tag,
.detail-hero .tag {
  color: var(--white);
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(8px);
}

.hero h1 {
  max-width: 760px;
  margin: 18px 0 16px;
  font-size: clamp(38px, 7vw, 72px);
  line-height: 1.05;
  letter-spacing: -0.05em;
}

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

.hero-meta,
.detail-meta,
.movie-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.hero-meta {
  margin-bottom: 28px;
  color: rgba(255, 255, 255, 0.86);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border-radius: 999px;
  padding: 0 24px;
  font-weight: 800;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  color: var(--white);
  background: var(--primary-500);
}

.btn-primary:hover {
  background: var(--primary-600);
}

.btn-glass {
  color: var(--white);
  background: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(10px);
}

.hero-arrow {
  position: absolute;
  top: 50%;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 999px;
  color: var(--white);
  background: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(10px);
  font-size: 34px;
  line-height: 1;
  transform: translateY(-50%);
  transition: background 0.2s ease;
}

.hero-arrow:hover {
  background: rgba(255, 255, 255, 0.24);
}

.hero-prev {
  left: 20px;
}

.hero-next {
  right: 20px;
}

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

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

.hero-dot.is-active {
  width: 34px;
  background: var(--white);
}

.section {
  padding: 72px 0;
}

.section-inner,
.page-hero-inner,
.detail-hero-inner,
.footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

.section-light {
  background: var(--gray-50);
}

.section-white {
  background: var(--white);
}

.section-soft {
  background: linear-gradient(135deg, var(--primary-50), #fff1e8 50%, var(--secondary-50));
}

.section-dark {
  color: var(--white);
  background: linear-gradient(135deg, var(--secondary-900), var(--secondary-800));
}

.category-section {
  background: linear-gradient(135deg, var(--secondary-50), var(--primary-50));
}

.section-title {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  margin-bottom: 34px;
}

.section-title-row {
  align-items: center;
  justify-content: space-between;
}

.title-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  border-radius: 12px;
  color: var(--white);
  background: linear-gradient(135deg, var(--primary-500), var(--accent-500));
}

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

.section-title p {
  margin: 0;
  color: var(--gray-600);
}

.dark-title p {
  color: rgba(255, 255, 255, 0.72);
}

.section-more {
  flex: 0 0 auto;
  color: var(--primary-600);
  font-weight: 800;
}

.movie-grid {
  display: grid;
  gap: 24px;
}

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

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

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

.movie-card,
.compact-card,
.category-card,
.detail-text-card {
  overflow: hidden;
  border-radius: 20px;
  background: var(--white);
  box-shadow: var(--shadow-soft);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.movie-card:hover,
.compact-card:hover,
.category-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

.poster-link,
.compact-cover,
.horizontal-cover,
.large-card-link {
  position: relative;
  display: block;
  overflow: hidden;
  background: var(--secondary-900);
}

.poster-link {
  aspect-ratio: 2 / 3;
}

.poster-link img,
.compact-cover img,
.horizontal-cover img,
.large-card-link img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}

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

.poster-shade,
.large-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 30%, rgba(0, 0, 0, 0.72));
  opacity: 0;
  transition: opacity 0.25s ease;
}

.movie-card:hover .poster-shade,
.movie-card:hover .large-overlay {
  opacity: 1;
}

.poster-play {
  position: absolute;
  left: 50%;
  top: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 999px;
  color: var(--secondary-900);
  background: rgba(255, 255, 255, 0.92);
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.9);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

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

.card-body,
.horizontal-info {
  padding: 18px;
}

.movie-title {
  display: block;
  margin-bottom: 8px;
  color: var(--gray-900);
  font-size: 17px;
  font-weight: 800;
  line-height: 1.35;
}

.movie-title:hover {
  color: var(--primary-600);
}

.movie-desc {
  display: -webkit-box;
  min-height: 44px;
  margin: 0 0 12px;
  overflow: hidden;
  color: var(--gray-600);
  font-size: 14px;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.movie-meta {
  margin-bottom: 12px;
  color: var(--gray-500);
  font-size: 13px;
}

.rank-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 32px;
  height: 32px;
  border-radius: 999px;
  color: var(--white);
  background: linear-gradient(135deg, var(--primary-500), var(--accent-500));
  font-weight: 900;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.25);
}

.compact-card a {
  display: block;
  padding: 10px;
}

.compact-cover {
  aspect-ratio: 2 / 3;
  margin-bottom: 10px;
  border-radius: 16px;
}

.compact-card strong {
  display: -webkit-box;
  min-height: 42px;
  overflow: hidden;
  font-size: 14px;
  line-height: 1.45;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.compact-card span:last-child {
  display: block;
  margin-top: 4px;
  color: var(--gray-500);
  font-size: 12px;
}

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

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

.category-main {
  display: flex;
  gap: 16px;
  padding: 22px;
  align-items: flex-start;
}

.category-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  flex: 0 0 50px;
  border-radius: 16px;
  color: var(--white);
  background: linear-gradient(135deg, var(--primary-500), var(--accent-500));
  font-size: 22px;
  font-weight: 900;
}

.category-main strong {
  display: block;
  margin-bottom: 4px;
  font-size: 20px;
}

.category-main em {
  display: block;
  color: var(--gray-600);
  font-style: normal;
  font-size: 14px;
}

.category-samples {
  display: grid;
  gap: 8px;
  padding: 0 22px 22px;
}

.category-samples a {
  color: var(--gray-600);
  font-size: 14px;
}

.category-samples a:hover {
  color: var(--primary-600);
}

.filter-bar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 180px 180px;
  gap: 12px;
  margin-bottom: 28px;
}

.filter-bar input,
.filter-bar select {
  width: 100%;
  height: 48px;
  border: 1px solid var(--gray-200);
  border-radius: 14px;
  padding: 0 14px;
  background: var(--white);
  color: var(--gray-900);
  outline: none;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.05);
}

.filter-bar input:focus,
.filter-bar select:focus {
  border-color: var(--primary-500);
}

.filter-empty {
  padding: 18px;
  border-radius: 16px;
  color: var(--gray-600);
  background: var(--white);
  box-shadow: var(--shadow-soft);
}

.editor-layout {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 24px;
  align-items: stretch;
}

.editor-feature {
  grid-column: span 2;
}

.editor-stack {
  display: grid;
  gap: 18px;
}

.movie-card-large,
.large-card-link {
  height: 100%;
  min-height: 360px;
}

.large-content {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  display: grid;
  gap: 8px;
  padding: 24px;
  color: var(--white);
}

.large-content strong {
  font-size: 28px;
  line-height: 1.2;
}

.large-content em {
  color: rgba(255, 255, 255, 0.8);
  font-style: normal;
}

.page-main {
  min-height: 70vh;
}

.page-hero {
  color: var(--white);
  background: radial-gradient(circle at 20% 20%, rgba(249, 92, 22, 0.45), transparent 35%), linear-gradient(135deg, var(--secondary-900), var(--secondary-800));
}

.simple-hero,
.ranking-hero,
.category-hero {
  padding: 72px 0;
}

.page-kicker {
  margin-bottom: 16px;
  color: var(--white);
  background: rgba(255, 255, 255, 0.18);
}

.page-hero h1 {
  max-width: 900px;
  margin: 0 0 14px;
  font-size: clamp(36px, 6vw, 58px);
  line-height: 1.1;
  letter-spacing: -0.04em;
}

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

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

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

.breadcrumb.light {
  color: rgba(255, 255, 255, 0.76);
}

.breadcrumb.light a:hover {
  color: var(--primary-400);
}

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

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

.horizontal-cover {
  min-height: 142px;
  aspect-ratio: 16 / 10;
}

.detail-main {
  background: var(--gray-50);
}

.detail-hero {
  position: relative;
  overflow: hidden;
  color: var(--white);
  background: var(--secondary-900);
}

.detail-hero-inner {
  position: relative;
  z-index: 2;
  padding-top: 54px;
  padding-bottom: 54px;
}

.detail-mask {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.88), rgba(0, 0, 0, 0.64) 52%, rgba(0, 0, 0, 0.40));
  backdrop-filter: blur(2px);
}

.detail-grid {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 36px;
  align-items: center;
}

.detail-poster {
  overflow: hidden;
  border-radius: 24px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
}

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

.detail-info h1 {
  max-width: 900px;
  margin: 18px 0 14px;
  font-size: clamp(34px, 6vw, 64px);
  line-height: 1.08;
  letter-spacing: -0.04em;
}

.detail-one-line {
  max-width: 860px;
  margin: 0 0 22px;
  color: rgba(255, 255, 255, 0.84);
  font-size: 18px;
}

.detail-meta {
  margin-bottom: 28px;
  color: rgba(255, 255, 255, 0.80);
}

.detail-section-inner {
  max-width: 1080px;
}

.video-player {
  position: relative;
  overflow: hidden;
  border-radius: 22px;
  background: var(--black);
  box-shadow: 0 30px 90px rgba(15, 23, 42, 0.26);
}

.video-element {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: var(--black);
}

.video-cover {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  color: var(--secondary-900);
  background: rgba(0, 0, 0, 0.24);
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

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

.video-play-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 80px;
  height: 80px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.35);
  font-size: 34px;
  transition: transform 0.2s ease, background 0.2s ease;
}

.video-cover:hover .video-play-icon {
  transform: scale(1.08);
  background: var(--white);
}

.video-controls-shadow {
  position: absolute;
  inset: auto 0 0;
  height: 88px;
  pointer-events: none;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.55));
}

.video-status {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 4;
  border-radius: 999px;
  padding: 10px 16px;
  color: var(--white);
  background: rgba(0, 0, 0, 0.68);
  transform: translate(-50%, -50%);
}

.detail-text-card {
  padding: 32px;
}

.detail-text-card h2 {
  margin: 0 0 14px;
  color: var(--gray-900);
  font-size: 26px;
}

.detail-text-card p {
  margin: 0 0 28px;
  color: var(--gray-700);
  font-size: 17px;
}

.info-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin: 0;
}

.info-list div {
  padding: 14px;
  border-radius: 14px;
  background: var(--gray-50);
}

.info-list dt {
  margin-bottom: 4px;
  color: var(--gray-500);
  font-size: 13px;
}

.info-list dd {
  margin: 0;
  color: var(--gray-900);
  font-weight: 700;
}

.site-footer {
  color: var(--white);
  background: linear-gradient(135deg, var(--secondary-900), var(--secondary-800));
}

.footer-inner {
  padding-top: 44px;
  padding-bottom: 44px;
}

.footer-logo {
  font-size: 20px;
  font-weight: 900;
}

.footer-desc {
  max-width: 720px;
  margin: 16px 0 22px;
  color: rgba(255, 255, 255, 0.76);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-bottom: 22px;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.72);
}

.footer-links a:hover {
  color: var(--primary-400);
}

.copyright {
  margin: 0;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.56);
  font-size: 14px;
}

[hidden] {
  display: none !important;
}

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

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

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

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

  .menu-toggle {
    display: block;
  }

  .hero-arrow {
    display: none;
  }

  .four-col,
  .five-col,
  .category-grid,
  .category-grid-wide {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .movie-card-horizontal,
  .detail-grid {
    grid-template-columns: 1fr;
  }

  .horizontal-cover {
    aspect-ratio: 16 / 9;
  }

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

@media (max-width: 640px) {
  .header-inner,
  .section-inner,
  .page-hero-inner,
  .detail-hero-inner,
  .footer-inner {
    padding-left: 16px;
    padding-right: 16px;
  }

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

  .hero,
  .hero-content {
    min-height: 66vh;
  }

  .hero-content {
    padding-bottom: 62px;
  }

  .hero p,
  .page-hero p,
  .detail-one-line {
    font-size: 16px;
  }

  .section {
    padding: 48px 0;
  }

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

  .four-col,
  .five-col,
  .category-grid,
  .category-grid-wide,
  .compact-grid,
  .editor-layout,
  .info-list {
    grid-template-columns: 1fr;
  }

  .editor-feature {
    grid-column: span 1;
  }

  .detail-text-card {
    padding: 22px;
  }
}
