:root {
  --sand-50: #faf8f3;
  --sand-100: #f6f1e7;
  --sand-200: #eadfc8;
  --sand-300: #dbc8a2;
  --earth-50: #fffaf0;
  --earth-600: #8a7360;
  --earth-700: #735f50;
  --earth-900: #4d4238;
  --desert-400: #f18b38;
  --desert-600: #de520d;
  --desert-700: #b93d0d;
  --red-50: #fef2f2;
  --red-100: #fee2e2;
  --red-600: #dc2626;
  --red-700: #b91c1c;
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-900: #111827;
  --white: #ffffff;
  --shadow-soft: 0 2px 15px -3px rgba(0, 0, 0, 0.07), 0 10px 20px -2px rgba(0, 0, 0, 0.04);
  --shadow-strong: 0 24px 80px rgba(17, 24, 39, 0.18);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--gray-900);
  background: linear-gradient(180deg, var(--sand-50), var(--gray-50));
  font-family: Inter, 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 {
  display: block;
  width: 100%;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  background: rgba(255, 255, 255, 0.88);
  border-bottom: 1px solid rgba(229, 231, 235, 0.88);
  backdrop-filter: blur(16px);
}

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

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

.brand-mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  color: var(--white);
  background: linear-gradient(135deg, var(--red-600), var(--desert-600));
  border-radius: 12px;
  box-shadow: 0 12px 24px rgba(220, 38, 38, 0.24);
  font-size: 13px;
}

.brand-name {
  font-size: 22px;
}

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

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

.nav-link:hover,
.mobile-link:hover {
  color: var(--red-600);
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 14px;
  background: var(--gray-100);
  cursor: pointer;
}

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

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

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

.mobile-link {
  display: block;
  padding: 10px 14px;
  border-radius: 14px;
}

.mobile-link:hover {
  background: var(--red-50);
}

.hero-carousel {
  position: relative;
  min-height: 680px;
  overflow: hidden;
  background: var(--gray-900);
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: scale(1.02);
  transition: opacity 0.9s ease, transform 1.2s ease;
  pointer-events: none;
}

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

.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.48;
  filter: saturate(1.1);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 72% 38%, rgba(241, 139, 56, 0.28), transparent 34%),
    linear-gradient(90deg, rgba(17, 24, 39, 0.96), rgba(17, 24, 39, 0.64) 52%, rgba(17, 24, 39, 0.22)),
    linear-gradient(0deg, rgba(17, 24, 39, 0.9), transparent 36%);
}

.hero-content {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) 360px;
  gap: 48px;
  align-items: center;
  max-width: 1280px;
  min-height: 680px;
  margin: 0 auto;
  padding: 96px 24px 72px;
  color: var(--white);
}

.hero-copy {
  max-width: 760px;
}

.hero-kicker,
.eyebrow {
  display: inline-flex;
  align-items: center;
  color: var(--desert-400);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero-copy h1 {
  margin: 18px 0 18px;
  font-size: clamp(42px, 7vw, 84px);
  line-height: 0.95;
  letter-spacing: -0.07em;
}

.hero-copy p {
  max-width: 680px;
  margin: 0;
  color: #f3f4f6;
  font-size: 18px;
  line-height: 1.9;
}

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

.hero-tags {
  margin: 24px 0 30px;
}

.tag {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 4px 10px;
  color: var(--desert-700);
  background: var(--sand-100);
  border: 1px solid rgba(219, 200, 162, 0.6);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}

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

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

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

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

.btn.primary {
  color: var(--white);
  background: linear-gradient(135deg, var(--red-600), var(--red-700));
  box-shadow: 0 18px 34px rgba(220, 38, 38, 0.32);
}

.btn.glass {
  color: var(--white);
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.24);
  backdrop-filter: blur(10px);
}

.hero-poster {
  display: block;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 30px;
  box-shadow: var(--shadow-strong);
  transform: rotate(2deg);
}

.hero-poster img {
  aspect-ratio: 2 / 3;
  object-fit: cover;
  background: rgba(255, 255, 255, 0.08);
}

.hero-arrow {
  position: absolute;
  top: 50%;
  z-index: 5;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 999px;
  background: rgba(17, 24, 39, 0.42);
  cursor: pointer;
  transform: translateY(-50%);
  backdrop-filter: blur(8px);
  font-size: 30px;
}

.hero-prev {
  left: 22px;
}

.hero-next {
  right: 22px;
}

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

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

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

.search-shell,
.content-section,
.detail-main {
  max-width: 1280px;
  margin: 0 auto;
  padding: 56px 24px 0;
}

.search-card,
.page-hero,
.story-card,
.player-card {
  border: 1px solid rgba(229, 231, 235, 0.8);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: var(--shadow-soft);
}

.search-card {
  padding: 30px;
}

.search-card h2,
.section-heading h2,
.page-hero h1,
.story-card h2 {
  margin: 8px 0 8px;
  color: var(--gray-900);
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.1;
  letter-spacing: -0.05em;
}

.search-card p,
.section-heading p,
.page-hero p,
.story-card p,
.category-card p,
.category-overview-card p {
  color: var(--gray-600);
}

.filter-panel {
  display: grid;
  grid-template-columns: 1.4fr 0.7fr 0.7fr 0.7fr;
  gap: 14px;
  margin-top: 24px;
}

.control-field {
  display: grid;
  gap: 7px;
}

.control-field span {
  color: var(--earth-700);
  font-size: 12px;
  font-weight: 800;
}

.control-field input,
.control-field select {
  width: 100%;
  min-height: 48px;
  padding: 0 14px;
  color: var(--gray-900);
  border: 1px solid var(--gray-200);
  border-radius: 16px;
  background: var(--white);
  outline: none;
  transition: border 0.2s ease, box-shadow 0.2s ease;
}

.control-field input:focus,
.control-field select:focus {
  border-color: var(--red-600);
  box-shadow: 0 0 0 4px rgba(220, 38, 38, 0.1);
}

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

.section-heading h2 {
  font-size: clamp(26px, 3vw, 38px);
}

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

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

.category-card,
.category-overview-card {
  overflow: hidden;
  border: 1px solid rgba(229, 231, 235, 0.85);
  border-radius: 24px;
  background: var(--white);
  box-shadow: var(--shadow-soft);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.category-card:hover,
.category-overview-card:hover,
.movie-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 42px rgba(17, 24, 39, 0.12);
}

.category-thumbs,
.category-cover-wall {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2px;
  background: var(--gray-100);
}

.category-thumbs img,
.category-cover-wall img {
  aspect-ratio: 1;
  object-fit: cover;
  background: var(--sand-200);
}

.category-card > div:last-child,
.category-overview-body {
  padding: 18px;
}

.category-card h3,
.movie-card h3,
.category-overview-card h2 {
  margin: 0 0 8px;
  color: var(--gray-900);
  line-height: 1.2;
}

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

.movie-card {
  overflow: hidden;
  border: 1px solid rgba(229, 231, 235, 0.88);
  border-radius: 24px;
  background: var(--white);
  box-shadow: var(--shadow-soft);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.poster-link {
  position: relative;
  display: block;
  overflow: hidden;
  background: var(--sand-200);
}

.poster-link img {
  aspect-ratio: 2 / 3;
  object-fit: cover;
  transition: transform 0.35s ease;
}

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

.poster-gradient {
  position: absolute;
  inset: 35% 0 0;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.72));
}

.play-chip,
.rank-badge {
  position: absolute;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
}

.play-chip {
  right: 12px;
  bottom: 12px;
  min-width: 52px;
  height: 28px;
  color: var(--white);
  background: rgba(220, 38, 38, 0.92);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.movie-card:hover .play-chip {
  opacity: 1;
  transform: translateY(0);
}

.rank-badge {
  left: 12px;
  top: 12px;
  min-width: 34px;
  height: 34px;
  color: var(--white);
  background: linear-gradient(135deg, var(--desert-600), var(--red-600));
  box-shadow: 0 10px 22px rgba(220, 38, 38, 0.28);
}

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

.movie-meta-line {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 8px;
  color: var(--earth-600);
  font-size: 12px;
  font-weight: 700;
}

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

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

.movie-card p {
  display: -webkit-box;
  min-height: 45px;
  margin: 0 0 12px;
  overflow: hidden;
  color: var(--gray-600);
  font-size: 13px;
  line-height: 1.55;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.compact-card h3 {
  font-size: 15px;
}

.ranking-section {
  padding-bottom: 24px;
}

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

.page-hero {
  max-width: 1280px;
  margin: 32px auto 0;
  padding: 64px 32px;
  background:
    radial-gradient(circle at 88% 18%, rgba(220, 38, 38, 0.16), transparent 30%),
    linear-gradient(135deg, var(--white), var(--sand-50));
}

.compact-hero,
.category-hero,
.ranking-hero {
  min-height: 260px;
  display: flex;
  align-items: center;
}

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

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

.category-cover-wall {
  grid-template-columns: repeat(3, 1fr);
  height: 100%;
}

.category-cover-wall img {
  height: 100%;
}

.mini-title-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.mini-title-row span {
  padding: 5px 9px;
  color: var(--earth-700);
  background: var(--sand-100);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}

.empty-state {
  display: none;
  padding: 36px;
  color: var(--gray-600);
  text-align: center;
  border: 1px dashed var(--gray-200);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.75);
}

.empty-state.show {
  display: block;
}

.is-hidden {
  display: none !important;
}

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

.detail-hero::before {
  position: absolute;
  inset: 0;
  content: "";
  background-image: var(--detail-bg);
  background-size: cover;
  background-position: center;
  opacity: 0.36;
  filter: blur(2px) saturate(1.1);
  transform: scale(1.03);
}

.detail-backdrop {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 78% 28%, rgba(222, 82, 13, 0.28), transparent 28%),
    linear-gradient(90deg, rgba(17, 24, 39, 0.96), rgba(17, 24, 39, 0.72) 58%, rgba(17, 24, 39, 0.32));
}

.detail-wrap {
  position: relative;
  z-index: 2;
  max-width: 1280px;
  margin: 0 auto;
  padding: 34px 24px 64px;
}

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

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

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

.detail-poster {
  overflow: hidden;
  border-radius: 28px;
  box-shadow: var(--shadow-strong);
}

.detail-poster img {
  aspect-ratio: 2 / 3;
  object-fit: cover;
  background: var(--sand-200);
}

.detail-copy h1 {
  margin: 14px 0 14px;
  font-size: clamp(38px, 6vw, 72px);
  line-height: 0.98;
  letter-spacing: -0.06em;
}

.detail-one-line {
  max-width: 820px;
  color: #f3f4f6;
  font-size: 18px;
}

.detail-tags {
  margin: 22px 0;
}

.detail-facts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  max-width: 880px;
}

.detail-facts div {
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(8px);
}

.detail-facts span {
  display: block;
  color: rgba(255, 255, 255, 0.62);
  font-size: 12px;
}

.detail-facts strong {
  display: block;
  margin-top: 3px;
}

.player-card {
  overflow: hidden;
  padding: 0;
  background: var(--gray-900);
}

.video-box {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  background: #050505;
}

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

.video-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  border: 0;
  color: var(--white);
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.18), rgba(0, 0, 0, 0.46));
  cursor: pointer;
  transition: opacity 0.2s ease;
}

.video-box.is-playing .video-overlay {
  opacity: 0;
  pointer-events: none;
}

.video-play-icon {
  display: grid;
  place-items: center;
  width: 86px;
  height: 86px;
  padding-left: 5px;
  color: var(--red-600);
  background: rgba(255, 255, 255, 0.92);
  border-radius: 999px;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.26);
  font-size: 34px;
  transition: transform 0.2s ease, background 0.2s ease;
}

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

.article-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 22px;
}

.story-card {
  padding: 26px;
}

.story-card p {
  margin: 0;
  font-size: 16px;
  line-height: 2;
}

.accent-card {
  background: linear-gradient(135deg, var(--white), var(--sand-50));
}

.related-section {
  padding-bottom: 40px;
}

.site-footer {
  margin-top: 72px;
  color: var(--gray-200);
  background: var(--gray-900);
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 34px;
  max-width: 1280px;
  margin: 0 auto;
  padding: 44px 24px;
}

.footer-brand {
  color: var(--white);
  font-size: 24px;
}

.footer-main p {
  max-width: 580px;
  color: var(--gray-400);
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 18px;
}

.footer-links a {
  color: var(--gray-300);
}

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

.footer-bottom {
  padding: 18px 24px 26px;
  color: var(--gray-500);
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

@media (max-width: 1180px) {
  .desktop-nav {
    gap: 13px;
    font-size: 14px;
  }

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

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

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

  .menu-toggle {
    display: block;
  }

  .hero-content {
    grid-template-columns: 1fr;
    min-height: 680px;
  }

  .hero-poster {
    display: none;
  }

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

  .category-grid,
  .movie-grid,
  .ranking-grid,
  .category-overview-grid,
  .article-grid,
  .footer-inner {
    grid-template-columns: 1fr 1fr;
  }

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

  .detail-layout {
    grid-template-columns: 180px minmax(0, 1fr);
  }

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

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

  .brand-name {
    font-size: 19px;
  }

  .hero-carousel {
    min-height: 640px;
  }

  .hero-content {
    min-height: 640px;
    padding: 88px 18px 64px;
  }

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

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

  .hero-arrow {
    display: none;
  }

  .search-shell,
  .content-section,
  .detail-main {
    padding: 36px 16px 0;
  }

  .search-card,
  .page-hero,
  .story-card {
    padding: 22px;
    border-radius: 22px;
  }

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

  .filter-panel,
  .category-grid,
  .movie-grid,
  .ranking-grid,
  .category-overview-grid,
  .article-grid,
  .footer-inner {
    grid-template-columns: 1fr;
  }

  .detail-wrap {
    padding: 28px 16px 42px;
  }

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

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

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

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