:root {
  --bg: #ffffff;
  --soft: #fff7ed;
  --soft-2: #fffbeb;
  --text: #111827;
  --muted: #6b7280;
  --line: #fde68a;
  --brand: #d97706;
  --brand-2: #ea580c;
  --brand-3: #f59e0b;
  --card: #ffffff;
  --shadow: 0 20px 45px rgba(146, 64, 14, 0.12);
  --radius: 24px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img,
video {
  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.94);
  backdrop-filter: blur(16px);
  box-shadow: 0 10px 30px rgba(146, 64, 14, 0.08);
}

.nav-shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 68px;
  gap: 22px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
}

.brand-icon {
  width: 42px;
  height: 42px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: linear-gradient(135deg, var(--brand-3), var(--brand-2));
  box-shadow: 0 12px 28px rgba(234, 88, 12, 0.28);
  transition: transform 0.25s ease;
}

.brand:hover .brand-icon {
  transform: scale(1.08);
}

.brand-text {
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.03em;
  background: linear-gradient(90deg, var(--brand), var(--brand-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  white-space: nowrap;
}

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

.nav-link {
  position: relative;
  color: #374151;
  font-weight: 700;
  transition: color 0.25s ease;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -7px;
  width: 0;
  height: 2px;
  border-radius: 999px;
  background: var(--brand);
  transition: width 0.25s ease;
}

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

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

.header-search,
.mobile-search {
  display: flex;
  align-items: center;
  gap: 8px;
}

.header-search input,
.mobile-search input,
.filter-panel input,
.filter-panel select {
  border: 1px solid #fed7aa;
  border-radius: 999px;
  padding: 11px 16px;
  outline: none;
  background: #fff;
  color: var(--text);
  transition: border 0.25s ease, box-shadow 0.25s ease;
}

.header-search input:focus,
.mobile-search input:focus,
.filter-panel input:focus,
.filter-panel select:focus {
  border-color: var(--brand-3);
  box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.16);
}

.header-search button,
.mobile-search button {
  border: 0;
  border-radius: 999px;
  padding: 11px 18px;
  font-weight: 800;
  color: #fff;
  background: linear-gradient(90deg, var(--brand), var(--brand-2));
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(234, 88, 12, 0.22);
}

.mobile-toggle {
  display: none;
  border: 0;
  background: transparent;
  color: #374151;
  font-size: 28px;
  cursor: pointer;
}

.mobile-nav {
  display: none;
  border-top: 1px solid #ffedd5;
  padding: 14px 16px 18px;
  background: #fff;
}

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

.mobile-link {
  padding: 11px 14px;
  border-radius: 14px;
  color: #374151;
  font-weight: 700;
}

.mobile-link:hover {
  background: #fff7ed;
  color: var(--brand);
}

.hero-section {
  position: relative;
  min-height: 620px;
  overflow: hidden;
  background: linear-gradient(135deg, #fef3c7 0%, #fff7ed 48%, #ffedd5 100%);
}

.hero-inner {
  position: relative;
  min-height: 620px;
  display: flex;
  align-items: center;
}

.ambient-blob {
  position: absolute;
  width: 320px;
  height: 320px;
  border-radius: 999px;
  filter: blur(42px);
  opacity: 0.34;
  animation: floatBlob 9s ease-in-out infinite;
}

.blob-a {
  top: 72px;
  left: 5vw;
  background: #fbbf24;
}

.blob-b {
  top: 160px;
  right: 8vw;
  background: #fb923c;
  animation-delay: 1.5s;
}

.blob-c {
  bottom: -80px;
  left: 42vw;
  background: #fde68a;
  animation-delay: 3s;
}

@keyframes floatBlob {
  0%, 100% {
    transform: translate3d(0, 0, 0) scale(1);
  }
  50% {
    transform: translate3d(24px, -22px, 0) scale(1.08);
  }
}

.hero-slide {
  display: none;
  width: 100%;
  grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.72fr);
  gap: 56px;
  align-items: center;
  animation: fadeUp 0.55s ease both;
}

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

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  margin-bottom: 14px;
  padding: 7px 13px;
  border: 1px solid #fed7aa;
  border-radius: 999px;
  color: #b45309;
  background: rgba(255, 255, 255, 0.64);
  font-size: 14px;
  font-weight: 800;
}

.hero-copy h1 {
  margin: 0 0 8px;
  font-size: clamp(36px, 6vw, 72px);
  line-height: 1.04;
  letter-spacing: -0.06em;
  background: linear-gradient(90deg, var(--brand), var(--brand-2), #92400e);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-copy h2 {
  margin: 0 0 18px;
  font-size: clamp(26px, 4vw, 48px);
  line-height: 1.1;
  color: #1f2937;
}

.hero-copy p {
  max-width: 660px;
  margin: 0 0 24px;
  color: #4b5563;
  font-size: 19px;
}

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

.hero-tags span,
.tag-row span {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 5px 10px;
  color: #b45309;
  background: #fffbeb;
  border: 1px solid #fde68a;
  font-size: 13px;
  font-weight: 700;
}

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

.primary-btn,
.ghost-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 14px 24px;
  font-weight: 900;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.primary-btn {
  color: #fff;
  background: linear-gradient(90deg, var(--brand), var(--brand-2));
  box-shadow: 0 14px 34px rgba(234, 88, 12, 0.26);
}

.ghost-btn {
  color: #92400e;
  background: rgba(255, 255, 255, 0.74);
  border: 1px solid #fed7aa;
}

.primary-btn:hover,
.ghost-btn:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 18px 40px rgba(146, 64, 14, 0.18);
}

.hero-poster {
  position: relative;
  display: block;
  border-radius: 32px;
  overflow: hidden;
  background: #111827;
  box-shadow: var(--shadow);
  transform: rotate(1.5deg);
}

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

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

.hero-poster span {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 76px;
  height: 76px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: rgba(217, 119, 6, 0.88);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.24);
  font-size: 30px;
}

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

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

.hero-arrow {
  width: 42px;
  height: 42px;
  border-radius: 999px;
  color: #92400e;
  background: #fff;
  box-shadow: 0 10px 24px rgba(146, 64, 14, 0.12);
  font-size: 26px;
}

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

.hero-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  padding: 0;
  background: #fcd34d;
  opacity: 0.6;
  transition: width 0.25s ease, opacity 0.25s ease;
}

.hero-dot.active {
  width: 28px;
  opacity: 1;
  background: var(--brand);
}

.section {
  padding: 72px 0;
}

.section-soft {
  background: linear-gradient(180deg, #fff7ed 0%, #ffffff 100%);
}

.section-heading {
  text-align: center;
  margin-bottom: 34px;
}

.section-heading h2,
.split-heading h2,
.page-hero h1,
.detail-main h1 {
  margin: 0;
  color: #1f2937;
  font-weight: 900;
  letter-spacing: -0.04em;
}

.section-heading h2,
.split-heading h2 {
  font-size: clamp(28px, 4vw, 44px);
}

.section-heading p,
.page-hero p {
  max-width: 760px;
  margin: 12px auto 0;
  color: var(--muted);
  font-size: 17px;
}

.left-heading {
  text-align: left;
}

.left-heading p,
.left-heading .eyebrow {
  margin-left: 0;
}

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

.text-link {
  color: var(--brand);
  font-weight: 900;
}

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

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

.movie-card {
  min-width: 0;
}

.movie-card a {
  display: block;
  height: 100%;
  border-radius: 18px;
  overflow: hidden;
  background: var(--card);
  box-shadow: 0 8px 24px rgba(17, 24, 39, 0.08);
  transition: transform 0.28s ease, box-shadow 0.28s ease;
}

.movie-card a:hover {
  transform: translateY(-7px);
  box-shadow: 0 22px 36px rgba(146, 64, 14, 0.16);
}

.poster-wrap {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: linear-gradient(135deg, #fef3c7, #fed7aa);
}

.poster-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

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

.year-badge,
.play-badge {
  position: absolute;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
}

.year-badge {
  top: 10px;
  right: 10px;
  border-radius: 999px;
  padding: 4px 9px;
  background: rgba(217, 119, 6, 0.92);
  font-size: 12px;
  font-weight: 800;
}

.play-badge {
  left: 50%;
  top: 50%;
  width: 48px;
  height: 48px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.48);
  transform: translate(-50%, -50%) scale(0.92);
  opacity: 0;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

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

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

.movie-card-body h2 {
  margin: 0 0 8px;
  color: #1f2937;
  font-size: 16px;
  line-height: 1.35;
  font-weight: 900;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.movie-card a:hover h2 {
  color: var(--brand);
}

.movie-card-body p {
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.movie-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
  color: #9a3412;
  font-size: 12px;
  font-weight: 800;
}

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

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

.category-tile {
  position: relative;
  min-height: 210px;
  border-radius: 24px;
  overflow: hidden;
  background: #111827;
  box-shadow: var(--shadow);
}

.category-tile img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.72;
  transition: transform 0.35s ease, opacity 0.35s ease;
}

.category-tile:hover img {
  transform: scale(1.08);
  opacity: 0.86;
}

.category-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.08), rgba(0, 0, 0, 0.78));
}

.category-content {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 18px;
  color: #fff;
}

.category-content strong {
  display: block;
  margin-bottom: 8px;
  font-size: 22px;
  font-weight: 900;
}

.category-content em {
  display: block;
  color: rgba(255, 255, 255, 0.84);
  font-size: 13px;
  font-style: normal;
}

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

.rank-card {
  display: grid;
  grid-template-columns: auto 76px 1fr;
  align-items: center;
  gap: 12px;
  border-radius: 18px;
  padding: 12px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(17, 24, 39, 0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

.rank-num {
  color: var(--brand);
  font-size: 18px;
  font-weight: 900;
}

.rank-card img {
  width: 76px;
  aspect-ratio: 3 / 4;
  border-radius: 12px;
  object-fit: cover;
}

.rank-info strong,
.rank-info em {
  display: block;
}

.rank-info strong {
  margin-bottom: 6px;
  font-weight: 900;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.rank-info em {
  color: var(--muted);
  font-size: 13px;
  font-style: normal;
}

.page-hero {
  padding: 78px 0;
  background: linear-gradient(135deg, #fff7ed, #fef3c7);
  border-bottom: 1px solid #ffedd5;
}

.page-hero h1 {
  font-size: clamp(34px, 5vw, 58px);
}

.category-hero {
  background: radial-gradient(circle at top right, rgba(251, 146, 60, 0.28), transparent 34%), linear-gradient(135deg, #fff7ed, #ffffff);
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  color: #92400e;
  font-size: 14px;
  font-weight: 800;
}

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

.filter-panel {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) 180px 180px;
  gap: 14px;
  margin-bottom: 28px;
  border: 1px solid #fed7aa;
  border-radius: 24px;
  padding: 18px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(146, 64, 14, 0.08);
}

.filter-panel label {
  display: grid;
  gap: 8px;
  color: #92400e;
  font-size: 13px;
  font-weight: 900;
}

.filter-panel input,
.filter-panel select {
  width: 100%;
  border-radius: 16px;
}

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

.rank-row-link {
  display: grid;
  grid-template-columns: 52px 92px 1fr auto;
  align-items: center;
  gap: 18px;
  border-radius: 22px;
  padding: 14px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(17, 24, 39, 0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.rank-row-link:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.rank-row-link > strong {
  color: var(--brand);
  font-size: 22px;
  font-weight: 900;
}

.rank-row img {
  width: 92px;
  aspect-ratio: 3 / 4;
  border-radius: 14px;
  object-fit: cover;
}

.rank-row-main h2 {
  margin: 0 0 8px;
  font-size: 21px;
  line-height: 1.3;
}

.rank-row-main p {
  margin: 0 0 8px;
  color: var(--muted);
}

.rank-row-main em {
  color: #9a3412;
  font-style: normal;
  font-weight: 800;
  font-size: 13px;
}

.detail-section {
  padding: 36px 0 0;
  background: #f9fafb;
}

.detail-card {
  overflow: hidden;
  border-radius: 28px;
  background: #fff;
  box-shadow: var(--shadow);
}

.player-shell {
  position: relative;
  background: #000;
  aspect-ratio: 16 / 9;
}

.movie-player {
  width: 100%;
  height: 100%;
  background: #000;
  object-fit: contain;
}

.play-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.18), rgba(0, 0, 0, 0.54));
  cursor: pointer;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.play-overlay span {
  width: 86px;
  height: 86px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: linear-gradient(135deg, var(--brand-3), var(--brand-2));
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.34);
  font-size: 34px;
}

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

.detail-content {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 30px;
  padding: 30px;
}

.detail-poster img {
  width: 100%;
  border-radius: 22px;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  box-shadow: 0 14px 34px rgba(17, 24, 39, 0.16);
}

.detail-main h1 {
  font-size: clamp(30px, 4vw, 48px);
  margin-bottom: 12px;
}

.lead {
  margin: 0 0 18px;
  color: #4b5563;
  font-size: 19px;
}

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 16px;
}

.detail-meta span {
  border-radius: 999px;
  padding: 7px 12px;
  color: #92400e;
  background: #fff7ed;
  border: 1px solid #fed7aa;
  font-weight: 800;
  font-size: 13px;
}

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

.detail-main section {
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid #f3f4f6;
}

.detail-main h2 {
  margin: 0 0 10px;
  color: #1f2937;
  font-size: 22px;
}

.detail-main section p {
  margin: 0;
  color: #374151;
  font-size: 16px;
}

.site-footer {
  border-top: 1px solid #fed7aa;
  background: linear-gradient(135deg, #fff7ed, #fffbeb);
  padding: 46px 0 20px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 36px;
}

.footer-brand {
  margin-bottom: 14px;
}

.site-footer p {
  max-width: 420px;
  margin: 0;
  color: var(--muted);
}

.site-footer h2 {
  margin: 0 0 12px;
  font-size: 17px;
}

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

.footer-links a {
  color: #6b7280;
  font-size: 14px;
}

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

.footer-bottom {
  margin-top: 32px;
  border-top: 1px solid #fed7aa;
  padding-top: 18px;
  color: #92400e;
  text-align: center;
  font-size: 14px;
}

.movie-card.is-hidden,
.rank-row.is-hidden {
  display: none;
}

@media (max-width: 1100px) {
  .desktop-nav,
  .header-search {
    display: none;
  }

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

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

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

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

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

@media (max-width: 820px) {
  .hero-section,
  .hero-inner {
    min-height: auto;
  }

  .hero-inner {
    padding: 48px 0 96px;
  }

  .hero-slide,
  .hero-slide.active {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .hero-poster {
    max-width: 340px;
    margin: 0 auto;
    transform: none;
  }

  .hero-controls {
    left: 16px;
    bottom: 28px;
  }

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

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

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

  .rank-row-link {
    grid-template-columns: 42px 78px 1fr;
  }

  .rank-row-link .tag-row {
    grid-column: 2 / -1;
  }

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

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

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

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

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

  .hero-copy p {
    font-size: 16px;
  }

  .section {
    padding: 48px 0;
  }

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

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

  .category-grid,
  .large-category-grid,
  .ranking-strip {
    grid-template-columns: 1fr;
  }

  .rank-card {
    grid-template-columns: auto 64px 1fr;
  }

  .rank-card img,
  .rank-row img {
    width: 64px;
  }

  .rank-row-link {
    gap: 12px;
    padding: 12px;
  }

  .detail-content {
    padding: 18px;
  }

  .play-overlay span {
    width: 68px;
    height: 68px;
    font-size: 28px;
  }
}
