:root {
  color-scheme: light;
  --amber-50: #fffbeb;
  --amber-100: #fef3c7;
  --amber-200: #fde68a;
  --amber-500: #f59e0b;
  --amber-600: #d97706;
  --amber-700: #b45309;
  --rose-500: #f43f5e;
  --rose-600: #e11d48;
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-300: #d1d5db;
  --gray-500: #6b7280;
  --gray-700: #374151;
  --gray-800: #1f2937;
  --gray-900: #111827;
  --shadow-soft: 0 20px 60px rgba(120, 53, 15, 0.16);
  --shadow-card: 0 16px 36px rgba(17, 24, 39, 0.12);
  --radius-xl: 24px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  color: var(--gray-800);
  background:
    radial-gradient(circle at 12% 8%, rgba(251, 191, 36, 0.22), transparent 28%),
    radial-gradient(circle at 88% 12%, rgba(244, 63, 94, 0.16), transparent 26%),
    linear-gradient(135deg, #fffbeb 0%, #ffffff 48%, #fff1f2 100%);
}

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

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

button,
input,
select {
  font: inherit;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.88);
  border-bottom: 1px solid rgba(245, 158, 11, 0.2);
  backdrop-filter: blur(20px);
}

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

.site-logo,
.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
  color: var(--amber-700);
  letter-spacing: 0.02em;
}

.logo-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  color: #ffffff;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--amber-500), var(--rose-500));
  box-shadow: 0 14px 30px rgba(245, 158, 11, 0.34);
}

.logo-text {
  font-size: 20px;
}

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

.nav-link,
.mobile-link {
  position: relative;
  font-weight: 700;
  color: var(--gray-700);
  transition: color 0.24s ease;
}

.nav-link::after {
  position: absolute;
  left: 0;
  bottom: -8px;
  width: 0;
  height: 3px;
  content: "";
  border-radius: 99px;
  background: linear-gradient(90deg, var(--amber-500), var(--rose-500));
  transition: width 0.24s ease;
}

.nav-link:hover,
.nav-link.active,
.mobile-link:hover,
.mobile-link.active {
  color: var(--amber-700);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

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

.menu-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  margin: 5px 0;
  border-radius: 2px;
  background: var(--amber-700);
}

.mobile-nav {
  display: none;
  padding: 12px 16px 20px;
  border-top: 1px solid rgba(245, 158, 11, 0.16);
  background: rgba(255, 255, 255, 0.94);
}

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

.hero {
  position: relative;
  overflow: hidden;
  min-height: 640px;
  color: #ffffff;
  background: #14100b;
}

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

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: 42px;
  padding: 80px max(32px, calc((100vw - 1180px) / 2)) 90px;
  opacity: 0;
  pointer-events: none;
  transform: scale(1.02);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

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

.hero-slide::before {
  position: absolute;
  inset: 0;
  z-index: 0;
  content: "";
  background:
    linear-gradient(90deg, rgba(15, 10, 4, 0.92) 0%, rgba(15, 10, 4, 0.75) 42%, rgba(15, 10, 4, 0.34) 100%),
    linear-gradient(135deg, rgba(251, 191, 36, 0.28), rgba(244, 63, 94, 0.18));
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.08) contrast(1.06);
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 720px;
}

.hero-kicker,
.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  color: var(--amber-200);
  border: 1px solid rgba(253, 230, 138, 0.36);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.11);
  backdrop-filter: blur(12px);
  font-size: 14px;
  font-weight: 800;
}

.hero h1 {
  margin: 24px 0 18px;
  font-size: clamp(42px, 7vw, 86px);
  line-height: 0.98;
  letter-spacing: -0.06em;
}

.hero p {
  margin: 0 0 24px;
  max-width: 680px;
  color: rgba(255, 255, 255, 0.88);
  font-size: clamp(16px, 2.1vw, 21px);
  line-height: 1.75;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 32px;
}

.hero-meta span,
.tag {
  display: inline-flex;
  padding: 7px 12px;
  border-radius: 999px;
  color: #fff7ed;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 12px 20px;
  border-radius: 14px;
  font-weight: 900;
  transition: transform 0.24s ease, box-shadow 0.24s ease, background 0.24s ease;
}

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

.btn-primary {
  color: #ffffff;
  background: linear-gradient(135deg, var(--amber-500), var(--rose-500));
  box-shadow: 0 16px 32px rgba(244, 63, 94, 0.24);
}

.btn-primary:hover {
  box-shadow: 0 20px 40px rgba(244, 63, 94, 0.34);
}

.btn-secondary {
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(12px);
}

.btn-light {
  color: var(--amber-700);
  background: #ffffff;
  box-shadow: var(--shadow-card);
}

.hero-poster-wrap {
  position: relative;
  z-index: 1;
  justify-self: end;
  width: min(420px, 100%);
}

.hero-poster {
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 34px;
  box-shadow: 0 34px 90px rgba(0, 0, 0, 0.48);
  transform: rotate(2deg);
}

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

.hero-card-note {
  position: absolute;
  left: -48px;
  bottom: 38px;
  max-width: 220px;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(18px);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.28);
}

.hero-card-note strong {
  display: block;
  margin-bottom: 6px;
  color: #ffffff;
}

.hero-card-note span {
  color: rgba(255, 255, 255, 0.75);
  font-size: 14px;
}

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

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

.hero-dot.active {
  width: 58px;
  background: linear-gradient(90deg, var(--amber-500), var(--rose-500));
}

.main-section {
  padding: 70px 0;
}

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

.section-title h1,
.section-title h2 {
  margin: 14px 0 10px;
  color: var(--gray-900);
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.15;
  letter-spacing: -0.04em;
}

.section-title p {
  margin: 0;
  max-width: 720px;
  color: var(--gray-500);
  line-height: 1.8;
}

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

.movie-card {
  overflow: hidden;
  border: 1px solid rgba(245, 158, 11, 0.15);
  border-radius: var(--radius-xl);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 10px 28px rgba(17, 24, 39, 0.07);
  transition: transform 0.24s ease, box-shadow 0.24s ease, border-color 0.24s ease;
}

.movie-card:hover {
  border-color: rgba(244, 63, 94, 0.35);
  box-shadow: var(--shadow-card);
  transform: translateY(-6px);
}

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

.poster-link {
  position: relative;
  display: block;
  overflow: hidden;
  background: linear-gradient(135deg, var(--amber-100), #fff1f2);
}

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

.card-large .poster-link img {
  aspect-ratio: 16 / 9;
}

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

.poster-glow {
  position: absolute;
  inset: 0;
  opacity: 0;
  background: linear-gradient(135deg, rgba(251, 191, 36, 0.28), rgba(244, 63, 94, 0.24));
  transition: opacity 0.24s ease;
}

.movie-card:hover .poster-glow {
  opacity: 1;
}

.rank-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  display: inline-flex;
  padding: 7px 10px;
  color: #ffffff;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--amber-500), var(--rose-500));
  font-size: 13px;
  font-weight: 900;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.24);
}

.card-body {
  padding: 18px;
}

.card-meta,
.card-foot {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--amber-700);
  font-size: 13px;
  font-weight: 800;
}

.card-meta span,
.card-foot span {
  display: inline-flex;
  padding: 4px 8px;
  border-radius: 999px;
  background: var(--amber-100);
}

.card-body h2 {
  margin: 12px 0 8px;
  color: var(--gray-900);
  font-size: 20px;
  line-height: 1.25;
}

.card-body h2 a:hover {
  color: var(--amber-700);
}

.card-body p {
  display: -webkit-box;
  min-height: 54px;
  margin: 0 0 16px;
  overflow: hidden;
  color: var(--gray-500);
  line-height: 1.7;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.category-strip {
  display: flex;
  gap: 12px;
  padding-bottom: 6px;
  overflow-x: auto;
}

.category-chip,
.filter-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 10px 16px;
  white-space: nowrap;
  border: 1px solid rgba(245, 158, 11, 0.22);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  color: var(--amber-700);
  font-weight: 900;
  cursor: pointer;
  transition: background 0.24s ease, color 0.24s ease, transform 0.24s ease;
}

.category-chip:hover,
.filter-chip:hover,
.filter-chip.active {
  color: #ffffff;
  background: linear-gradient(135deg, var(--amber-500), var(--rose-500));
  transform: translateY(-2px);
}

.split-grid {
  display: grid;
  grid-template-columns: 1.35fr 0.65fr;
  gap: 24px;
}

.panel {
  border: 1px solid rgba(245, 158, 11, 0.14);
  border-radius: var(--radius-xl);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow-soft);
}

.panel-pad {
  padding: 24px;
}

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

.compact-card {
  display: grid;
  grid-template-columns: auto 76px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  padding: 12px;
  border-radius: 18px;
  background: rgba(255, 251, 235, 0.72);
  transition: transform 0.24s ease, background 0.24s ease;
}

.compact-card:hover {
  background: #ffffff;
  transform: translateX(5px);
}

.compact-card img {
  width: 76px;
  height: 96px;
  border-radius: 14px;
  object-fit: cover;
}

.compact-card strong {
  display: block;
  margin-bottom: 6px;
  color: var(--gray-900);
}

.compact-card em {
  display: block;
  color: var(--gray-500);
  font-size: 13px;
  font-style: normal;
  line-height: 1.45;
}

.list-rank {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  color: #ffffff;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--amber-500), var(--rose-500));
  font-weight: 900;
}

.page-hero {
  padding: 72px 0 44px;
}

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

.breadcrumb a {
  color: var(--amber-700);
  font-weight: 800;
}

.search-panel {
  display: grid;
  gap: 16px;
  margin: 28px 0 34px;
  padding: 22px;
  border: 1px solid rgba(245, 158, 11, 0.16);
  border-radius: var(--radius-xl);
  background: rgba(255, 255, 255, 0.82);
  box-shadow: var(--shadow-soft);
}

.search-input {
  width: 100%;
  height: 52px;
  padding: 0 18px;
  outline: none;
  border: 1px solid rgba(245, 158, 11, 0.24);
  border-radius: 16px;
  background: #ffffff;
  color: var(--gray-900);
  transition: border-color 0.24s ease, box-shadow 0.24s ease;
}

.search-input:focus {
  border-color: var(--amber-500);
  box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.14);
}

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

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

.detail-poster {
  overflow: hidden;
  border-radius: 30px;
  box-shadow: var(--shadow-card);
  background: linear-gradient(135deg, var(--amber-100), #fff1f2);
}

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

.detail-copy h1 {
  margin: 0 0 16px;
  color: var(--gray-900);
  font-size: clamp(34px, 5vw, 60px);
  line-height: 1.08;
  letter-spacing: -0.05em;
}

.detail-copy p {
  margin: 0 0 22px;
  color: var(--gray-500);
  font-size: 18px;
  line-height: 1.8;
}

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

.detail-tags .tag {
  color: var(--amber-700);
  background: #ffffff;
  border-color: rgba(245, 158, 11, 0.18);
}

.player-section {
  padding: 22px;
}

.video-player {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  background: #0b0a08;
  box-shadow: var(--shadow-card);
}

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

.player-cover {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: grid;
  place-items: center;
  cursor: pointer;
  background: linear-gradient(135deg, rgba(15, 10, 4, 0.7), rgba(15, 10, 4, 0.42));
  transition: opacity 0.28s ease, visibility 0.28s ease;
}

.player-cover img {
  position: absolute;
  inset: 0;
  z-index: -1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.6;
}

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

.player-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-width: 160px;
  height: 58px;
  border: 0;
  border-radius: 999px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--amber-500), var(--rose-500));
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.34);
  font-weight: 900;
  cursor: pointer;
  transition: transform 0.24s ease;
}

.player-button:hover {
  transform: scale(1.04);
}

.play-icon {
  width: 0;
  height: 0;
  border-top: 9px solid transparent;
  border-bottom: 9px solid transparent;
  border-left: 14px solid #ffffff;
}

.article-panel {
  padding: 32px;
}

.article-panel h2 {
  margin: 0 0 16px;
  color: var(--gray-900);
  font-size: 28px;
}

.article-panel p {
  margin: 0 0 18px;
  color: var(--gray-700);
  font-size: 17px;
  line-height: 1.9;
}

.site-footer {
  margin-top: 60px;
  color: #fff7ed;
  background: linear-gradient(135deg, #78350f, #9f1239);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 1fr;
  gap: 32px;
  padding: 48px 0;
}

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

.site-footer p {
  max-width: 460px;
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.75;
}

.site-footer h2 {
  margin: 0 0 14px;
  color: var(--amber-200);
  font-size: 18px;
}

.footer-links {
  display: grid;
  gap: 8px;
}

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

.footer-links a:hover {
  color: #ffffff;
}

.footer-bottom {
  padding: 18px 16px;
  text-align: center;
  color: var(--amber-100);
  border-top: 1px solid rgba(253, 230, 138, 0.18);
}

@keyframes silkGradientFlow {
  0% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }

  100% {
    background-position: 0% 50%;
  }
}

.silk-overlay {
  background: linear-gradient(135deg, rgba(251, 191, 36, 0.3), rgba(244, 63, 94, 0.28), rgba(251, 191, 36, 0.3));
  background-size: 400% 400%;
  animation: silkGradientFlow 8s ease infinite;
}

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

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

  .hero-slide {
    grid-template-columns: 1fr;
    gap: 26px;
  }

  .hero-poster-wrap {
    display: none;
  }
}

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

  .menu-toggle {
    display: block;
  }

  .hero,
  .hero-carousel {
    min-height: 650px;
  }

  .hero-slide {
    padding: 58px 20px 88px;
  }

  .hero h1 {
    font-size: 46px;
  }

  .main-section {
    padding: 48px 0;
  }

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

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

  .card-body {
    padding: 14px;
  }

  .card-body h2 {
    font-size: 17px;
  }

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

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

@media (max-width: 460px) {
  .container {
    width: min(100% - 22px, 1180px);
  }

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

  .compact-card {
    grid-template-columns: auto 64px minmax(0, 1fr);
  }

  .compact-card img {
    width: 64px;
    height: 86px;
  }
}
