:root {
  --bg: #fffaf0;
  --bg-soft: #f8fafc;
  --ink: #111827;
  --muted: #64748b;
  --line: rgba(15, 23, 42, 0.1);
  --amber: #d97706;
  --amber-light: #f59e0b;
  --blue: #2563eb;
  --blue-soft: #eff6ff;
  --card: rgba(255, 255, 255, 0.88);
  --shadow: 0 18px 45px rgba(15, 23, 42, 0.12);
  --radius: 22px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(245, 158, 11, 0.16), transparent 34rem),
    radial-gradient(circle at top right, rgba(37, 99, 235, 0.12), transparent 34rem),
    linear-gradient(180deg, #fff7ed 0%, #f8fafc 42%, #ffffff 100%);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  line-height: 1.6;
}

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

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

button,
input {
  font: inherit;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: linear-gradient(90deg, rgba(255, 251, 235, 0.95), rgba(239, 246, 255, 0.95), rgba(255, 251, 235, 0.95));
  border-bottom: 1px solid rgba(217, 119, 6, 0.14);
  backdrop-filter: blur(18px);
  box-shadow: 0 10px 35px rgba(15, 23, 42, 0.08);
}

.navbar {
  max-width: 1220px;
  height: 68px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
  letter-spacing: 0.02em;
}

.brand-mark {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  color: #ffffff;
  background: linear-gradient(135deg, var(--amber), var(--blue));
  border-radius: 14px;
  box-shadow: 0 12px 28px rgba(217, 119, 6, 0.28);
}

.brand-name {
  font-size: 1.24rem;
  color: #111827;
}

.nav-panel {
  display: flex;
  align-items: center;
  gap: 24px;
}

.nav-link {
  color: #374151;
  font-weight: 700;
  transition: color 0.2s ease, transform 0.2s ease;
}

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

.site-search-form {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px;
  border: 1px solid rgba(217, 119, 6, 0.18);
  background: rgba(255, 255, 255, 0.74);
  border-radius: 999px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.65);
}

.site-search-form input {
  width: 190px;
  border: 0;
  outline: 0;
  background: transparent;
  padding: 8px 10px 8px 14px;
  color: #111827;
}

.site-search-form button {
  border: 0;
  color: #ffffff;
  background: linear-gradient(135deg, var(--amber), var(--blue));
  padding: 8px 16px;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 800;
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 14px;
  background: rgba(245, 158, 11, 0.12);
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  background: #92400e;
  border-radius: 4px;
}

.hero-carousel {
  position: relative;
  max-width: 1220px;
  min-height: 620px;
  margin: 28px auto 0;
  padding: 0 20px 32px;
}

.hero-viewport {
  position: relative;
  min-height: 560px;
  overflow: hidden;
  border-radius: 34px;
  box-shadow: var(--shadow);
  background: #111827;
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) 380px;
  gap: 44px;
  align-items: center;
  padding: 72px;
  opacity: 0;
  visibility: hidden;
  transform: scale(1.02);
  transition: opacity 0.65s ease, transform 0.65s ease, visibility 0.65s ease;
}

.hero-slide.active {
  opacity: 1;
  visibility: visible;
  transform: scale(1);
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  filter: saturate(1.1);
}

.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 20%, rgba(245, 158, 11, 0.32), transparent 28rem),
    linear-gradient(180deg, rgba(15, 23, 42, 0.1), rgba(15, 23, 42, 0.84));
}

.hero-content,
.hero-poster {
  position: relative;
  z-index: 2;
}

.eyebrow,
.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #b45309;
  background: rgba(255, 251, 235, 0.82);
  border: 1px solid rgba(245, 158, 11, 0.24);
  border-radius: 999px;
  padding: 7px 13px;
  font-size: 0.84rem;
  font-weight: 900;
}

.hero-content h1 {
  max-width: 760px;
  margin: 18px 0 6px;
  color: #ffffff;
  font-size: clamp(2.35rem, 4.8vw, 5.2rem);
  line-height: 1.03;
  letter-spacing: -0.06em;
}

.hero-content h2 {
  margin: 0 0 12px;
  color: #fde68a;
  font-size: clamp(1.45rem, 3vw, 2.55rem);
  line-height: 1.16;
}

.hero-content p {
  max-width: 720px;
  color: rgba(255, 255, 255, 0.84);
  font-size: 1.05rem;
}

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

.tag-row span {
  color: #92400e;
  background: #fffbeb;
  border: 1px solid rgba(245, 158, 11, 0.22);
  border-radius: 999px;
  padding: 5px 10px;
  font-size: 0.78rem;
  font-weight: 800;
}

.hero-tags span {
  color: #fef3c7;
  background: rgba(245, 158, 11, 0.18);
  border-color: rgba(253, 230, 138, 0.28);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 28px;
}

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

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

.btn.primary {
  color: #ffffff;
  background: linear-gradient(135deg, var(--amber-light), var(--blue));
  box-shadow: 0 14px 26px rgba(37, 99, 235, 0.24);
}

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

.btn.text {
  color: #fde68a;
}

.hero-poster {
  display: block;
  border-radius: 26px;
  overflow: hidden;
  transform: rotate(2deg);
  box-shadow: 0 26px 70px rgba(0, 0, 0, 0.36);
}

.hero-poster img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  background: linear-gradient(135deg, #fef3c7, #dbeafe);
}

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

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

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

.hero-category-strip {
  position: relative;
  z-index: 4;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  width: calc(100% - 84px);
  margin: -22px auto 0;
  padding: 14px;
  border: 1px solid rgba(217, 119, 6, 0.14);
  background: rgba(255, 255, 255, 0.88);
  border-radius: 999px;
  box-shadow: 0 18px 44px rgba(15, 23, 42, 0.1);
  backdrop-filter: blur(14px);
}

.hero-category-strip span {
  color: #92400e;
  font-weight: 900;
  padding-left: 8px;
}

.hero-category-strip a {
  color: #1f2937;
  background: #f8fafc;
  border-radius: 999px;
  padding: 8px 12px;
  font-weight: 800;
}

.content-section {
  max-width: 1220px;
  margin: 0 auto;
  padding: 56px 20px;
}

.soft-panel {
  max-width: none;
  margin: 0;
  padding-left: max(20px, calc((100vw - 1220px) / 2 + 20px));
  padding-right: max(20px, calc((100vw - 1220px) / 2 + 20px));
  background: linear-gradient(135deg, rgba(255, 251, 235, 0.9), rgba(239, 246, 255, 0.9));
}

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

.section-heading h2 {
  margin: 12px 0 8px;
  font-size: clamp(1.65rem, 3vw, 2.5rem);
  line-height: 1.18;
  letter-spacing: -0.04em;
}

.section-heading p {
  max-width: 700px;
  margin: 0;
  color: var(--muted);
}

.section-more {
  white-space: nowrap;
  color: var(--amber);
  font-weight: 900;
}

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

.featured-grid,
.catalog-grid,
.ranking-page-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.movie-card {
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.08);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  border-color: rgba(245, 158, 11, 0.38);
  box-shadow: var(--shadow);
}

.poster-link {
  position: relative;
  display: block;
  overflow: hidden;
  background: linear-gradient(135deg, #fffbeb, #dbeafe);
}

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

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

.play-chip,
.rank-badge {
  position: absolute;
  z-index: 2;
  border-radius: 999px;
  font-weight: 900;
}

.play-chip {
  right: 12px;
  bottom: 12px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--amber-light), var(--blue));
  padding: 7px 12px;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

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

.rank-badge {
  top: 10px;
  left: 10px;
  min-width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  color: #ffffff;
  background: rgba(17, 24, 39, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.32);
}

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

.movie-meta-line,
.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  color: #64748b;
  font-size: 0.78rem;
  font-weight: 800;
}

.movie-meta-line span,
.detail-meta span {
  border-radius: 999px;
  background: #f8fafc;
  padding: 3px 8px;
}

.movie-card h3 {
  margin: 11px 0 8px;
  font-size: 1rem;
  line-height: 1.35;
}

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

.movie-card p {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 0.9rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.compact-card .movie-card-body {
  padding: 13px;
}

.compact-card h3 {
  font-size: 0.95rem;
}

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

.category-card {
  overflow: hidden;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.9);
  border-radius: 24px;
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.08);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

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

.category-thumbs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  min-height: 126px;
  background: linear-gradient(135deg, #fff7ed, #eff6ff);
}

.category-thumbs img {
  width: 100%;
  height: 132px;
  object-fit: cover;
}

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

.category-card-body h2 {
  margin: 0 0 8px;
  font-size: 1.16rem;
}

.category-card-body p {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 0.92rem;
}

.category-card-body span {
  color: var(--amber);
  font-weight: 900;
}

.page-hero,
.detail-hero,
.breadcrumb {
  max-width: 1220px;
  margin-left: auto;
  margin-right: auto;
}

.compact-hero {
  margin-top: 28px;
  padding: 68px 42px;
  border-radius: 34px;
  color: #ffffff;
  background:
    radial-gradient(circle at 20% 20%, rgba(245, 158, 11, 0.34), transparent 24rem),
    radial-gradient(circle at 80% 10%, rgba(37, 99, 235, 0.32), transparent 24rem),
    linear-gradient(135deg, #111827, #1e293b 54%, #0f172a);
  box-shadow: var(--shadow);
}

.compact-hero h1 {
  margin: 16px 0 12px;
  font-size: clamp(2rem, 4vw, 4.2rem);
  line-height: 1.05;
  letter-spacing: -0.05em;
}

.compact-hero p {
  max-width: 780px;
  margin: 0;
  color: rgba(255, 255, 255, 0.8);
  font-size: 1.05rem;
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: -4px 0 24px;
}

.filter-chip {
  border: 1px solid rgba(217, 119, 6, 0.2);
  color: #92400e;
  background: #ffffff;
  border-radius: 999px;
  padding: 8px 13px;
  cursor: pointer;
  font-weight: 900;
}

.filter-chip.active,
.filter-chip:hover {
  color: #ffffff;
  background: linear-gradient(135deg, var(--amber-light), var(--blue));
}

.big-search-form {
  max-width: 620px;
  margin-top: 28px;
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.26);
}

.big-search-form input {
  flex: 1;
  width: auto;
  color: #ffffff;
}

.big-search-form input::placeholder {
  color: rgba(255, 255, 255, 0.72);
}

.breadcrumb {
  padding: 26px 20px 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: #64748b;
  font-size: 0.92rem;
}

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

.detail-hero {
  display: grid;
  grid-template-columns: 290px minmax(0, 1fr);
  gap: 42px;
  align-items: center;
  margin-top: 22px;
  padding: 42px;
  border-radius: 34px;
  color: #ffffff;
  background:
    radial-gradient(circle at 18% 20%, rgba(245, 158, 11, 0.34), transparent 26rem),
    radial-gradient(circle at 82% 10%, rgba(37, 99, 235, 0.34), transparent 26rem),
    linear-gradient(135deg, #111827, #1e293b 55%, #0f172a);
  box-shadow: var(--shadow);
}

.detail-poster {
  overflow: hidden;
  border-radius: 26px;
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.32);
}

.detail-poster img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  background: linear-gradient(135deg, #fef3c7, #dbeafe);
}

.detail-info h1 {
  margin: 18px 0 12px;
  font-size: clamp(2rem, 4.4vw, 4.5rem);
  line-height: 1.06;
  letter-spacing: -0.05em;
}

.lead-text {
  max-width: 780px;
  color: rgba(255, 255, 255, 0.84);
  font-size: 1.1rem;
}

.detail-meta {
  margin: 20px 0;
}

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

.detail-tags span {
  color: #ffffff;
  background: rgba(245, 158, 11, 0.18);
  border-color: rgba(255, 255, 255, 0.2);
}

.player-section {
  max-width: 1220px;
  margin: 32px auto 0;
  padding: 0 20px;
}

.movie-player {
  position: relative;
  overflow: hidden;
  border-radius: 30px;
  background: #030712;
  box-shadow: var(--shadow);
  aspect-ratio: 16 / 9;
}

.movie-player video {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  background: #000000;
  cursor: pointer;
}

.player-start {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  border: 0;
  background: radial-gradient(circle at center, rgba(15, 23, 42, 0.08), rgba(15, 23, 42, 0.55));
  cursor: pointer;
}

.player-start span {
  width: 86px;
  height: 86px;
  display: block;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--amber-light), var(--blue));
  box-shadow: 0 24px 60px rgba(37, 99, 235, 0.34);
  position: relative;
}

.player-start span::after {
  content: "";
  position: absolute;
  left: 35px;
  top: 26px;
  border-left: 24px solid #ffffff;
  border-top: 16px solid transparent;
  border-bottom: 16px solid transparent;
}

.movie-player.is-playing .player-start {
  opacity: 0;
  pointer-events: none;
}

.detail-content-section {
  padding-top: 44px;
  padding-bottom: 24px;
}

.detail-article {
  padding: 32px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.08);
}

.detail-article h2 {
  margin: 0 0 12px;
  font-size: 1.45rem;
}

.detail-article p {
  color: #374151;
  margin: 0 0 24px;
}

.site-footer {
  margin-top: 40px;
  color: #cbd5e1;
  background: #0f172a;
}

.footer-inner {
  max-width: 1220px;
  margin: 0 auto;
  padding: 44px 20px;
  display: flex;
  justify-content: space-between;
  gap: 32px;
}

.footer-brand p {
  max-width: 520px;
  color: #94a3b8;
}

.footer-logo .brand-name {
  color: #ffffff;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-content: flex-start;
}

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

.footer-copy {
  max-width: 1220px;
  margin: 0 auto;
  padding: 16px 20px 26px;
  border-top: 1px solid rgba(148, 163, 184, 0.16);
  color: #64748b;
}

.empty-result {
  grid-column: 1 / -1;
  padding: 40px;
  border: 1px dashed rgba(217, 119, 6, 0.28);
  border-radius: 24px;
  color: var(--muted);
  background: #ffffff;
}

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

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

  .hero-slide {
    grid-template-columns: 1fr 280px;
    padding: 52px;
  }
}

@media (max-width: 860px) {
  .menu-toggle {
    display: block;
  }

  .nav-panel {
    position: absolute;
    left: 14px;
    right: 14px;
    top: 76px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
    padding: 18px;
    border: 1px solid rgba(217, 119, 6, 0.18);
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: var(--shadow);
  }

  .nav-panel.open {
    display: flex;
  }

  .site-search-form input {
    width: 100%;
  }

  .hero-carousel {
    min-height: auto;
  }

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

  .hero-slide {
    grid-template-columns: 1fr;
    gap: 28px;
    padding: 34px;
  }

  .hero-poster {
    max-width: 250px;
    transform: none;
  }

  .hero-category-strip {
    width: calc(100% - 24px);
    border-radius: 24px;
  }

  .detail-hero {
    grid-template-columns: 1fr;
    margin-left: 20px;
    margin-right: 20px;
    padding: 28px;
  }

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

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

@media (max-width: 640px) {
  .navbar {
    height: 64px;
  }

  .hero-carousel {
    padding-left: 12px;
    padding-right: 12px;
  }

  .hero-viewport {
    min-height: 760px;
    border-radius: 26px;
  }

  .hero-slide {
    padding: 26px;
  }

  .content-section {
    padding: 42px 14px;
  }

  .movie-grid,
  .featured-grid,
  .catalog-grid,
  .ranking-grid,
  .ranking-page-grid,
  .related-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }

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

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

  .movie-card p {
    display: none;
  }

  .tag-row span {
    font-size: 0.72rem;
  }

  .compact-hero {
    margin: 18px 12px 0;
    padding: 42px 24px;
    border-radius: 26px;
  }

  .player-section {
    padding-left: 12px;
    padding-right: 12px;
  }

  .movie-player {
    border-radius: 20px;
  }

  .player-start span {
    width: 68px;
    height: 68px;
  }

  .player-start span::after {
    left: 28px;
    top: 21px;
    border-left-width: 20px;
    border-top-width: 13px;
    border-bottom-width: 13px;
  }
}
