:root {
  --orange: #f97316;
  --orange-deep: #ea580c;
  --rose: #f43f5e;
  --cyan: #06b6d4;
  --blue: #3b82f6;
  --purple: #8b5cf6;
  --red: #ef4444;
  --text: #111827;
  --muted: #6b7280;
  --soft: #f8fafc;
  --line: #e5e7eb;
  --dark: #0f172a;
  --shadow: 0 22px 65px rgba(15, 23, 42, .12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  background: linear-gradient(180deg, #fff7ed 0, #ffffff 28rem, #f8fafc 100%);
  min-height: 100vh;
}

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

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

button,
input,
select {
  font: inherit;
}

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

.header-inner {
  max-width: 1180px;
  min-height: 74px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  gap: 22px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: max-content;
}

.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: linear-gradient(135deg, #fb923c, #fb7185);
  box-shadow: 0 12px 28px rgba(249, 115, 22, .28);
  transition: transform .25s ease;
}

.brand:hover .brand-mark {
  transform: scale(1.08) rotate(-4deg);
}

.brand-text strong {
  display: block;
  font-size: 22px;
  line-height: 1.05;
  font-weight: 800;
  letter-spacing: -.03em;
  background: linear-gradient(90deg, var(--orange-deep), var(--rose));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.brand-text small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
}

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

.nav-link {
  padding: 10px 14px;
  border-radius: 12px;
  color: #374151;
  font-weight: 650;
  transition: background .2s ease, color .2s ease, transform .2s ease;
}

.nav-link:hover,
.nav-link.active {
  background: #ffedd5;
  color: var(--orange-deep);
  transform: translateY(-1px);
}

.header-search {
  display: flex;
  align-items: center;
  background: #fff;
  border: 1px solid #fed7aa;
  border-radius: 999px;
  padding: 4px;
  box-shadow: 0 10px 30px rgba(249, 115, 22, .08);
}

.header-search input {
  width: 230px;
  border: 0;
  outline: 0;
  padding: 9px 12px 9px 16px;
  background: transparent;
}

.header-search button,
.mobile-search button,
.big-search button {
  border: 0;
  cursor: pointer;
  color: #fff;
  font-weight: 700;
  border-radius: 999px;
  padding: 9px 16px;
  background: linear-gradient(90deg, var(--orange), var(--rose));
  box-shadow: 0 10px 22px rgba(244, 63, 94, .22);
}

.menu-toggle {
  display: none;
  margin-left: auto;
  border: 0;
  background: #fff7ed;
  color: var(--orange-deep);
  border-radius: 12px;
  padding: 10px 13px;
  cursor: pointer;
}

.mobile-panel {
  border-top: 1px solid var(--line);
  padding: 14px 20px 20px;
}

.mobile-search {
  display: flex;
  gap: 8px;
}

.mobile-search input {
  flex: 1;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 11px 14px;
}

.mobile-links {
  display: grid;
  gap: 8px;
  margin-top: 14px;
}

.mobile-nav-link {
  padding: 12px 14px;
  border-radius: 12px;
  background: #fff7ed;
  color: #7c2d12;
  font-weight: 700;
}

.hero-wrap {
  max-width: 1180px;
  margin: 26px auto 0;
  padding: 0 20px;
}

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

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

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

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(15, 23, 42, .92) 0%, rgba(15, 23, 42, .58) 48%, rgba(15, 23, 42, .18) 100%), linear-gradient(0deg, rgba(0, 0, 0, .55), transparent 55%);
}

.hero-content {
  position: absolute;
  left: clamp(24px, 5vw, 64px);
  right: clamp(24px, 42vw, 520px);
  top: 50%;
  transform: translateY(-50%);
  color: #fff;
}

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

.hero-tags span,
.tag-list span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .16);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  backdrop-filter: blur(10px);
}

.hero-content h1 {
  margin: 18px 0 14px;
  max-width: 820px;
  font-size: clamp(32px, 5.4vw, 66px);
  line-height: 1.05;
  font-weight: 900;
  letter-spacing: -.05em;
}

.hero-content p {
  max-width: 680px;
  margin: 0 0 26px;
  color: rgba(255, 255, 255, .88);
  font-size: clamp(16px, 2vw, 20px);
  line-height: 1.72;
}

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

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

.primary-button {
  color: #fff;
  background: linear-gradient(90deg, var(--orange), var(--rose));
  box-shadow: 0 18px 35px rgba(244, 63, 94, .32);
}

.primary-button:hover,
.ghost-button:hover {
  transform: translateY(-2px) scale(1.02);
}

.ghost-button {
  color: #fff;
  background: rgba(255, 255, 255, .14);
  border: 1px solid rgba(255, 255, 255, .25);
  backdrop-filter: blur(12px);
}

.primary-button.light {
  color: var(--orange-deep);
  background: #fff;
}

.hero-dots {
  position: absolute;
  left: clamp(24px, 5vw, 64px);
  bottom: 28px;
  display: flex;
  gap: 10px;
  z-index: 4;
}

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

.hero-dot.active {
  width: 34px;
  background: #fff;
}

.hero-category-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.hero-category-bar a {
  padding: 11px 16px;
  border-radius: 999px;
  color: #7c2d12;
  background: #fff;
  border: 1px solid #fed7aa;
  font-weight: 800;
  box-shadow: 0 10px 22px rgba(249, 115, 22, .08);
  transition: transform .2s ease, background .2s ease;
}

.hero-category-bar a:hover {
  transform: translateY(-2px);
  background: #fff7ed;
}

.page-shell {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 20px 70px;
}

.page-top {
  padding-top: 34px;
}

.content-section {
  margin-top: 58px;
}

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

.section-head > div {
  min-width: 0;
}

.section-head h2 {
  display: inline-block;
  margin: 0 0 0 10px;
  font-size: clamp(24px, 3vw, 34px);
  font-weight: 900;
  letter-spacing: -.04em;
}

.section-head p {
  margin: 8px 0 0 48px;
  color: var(--muted);
}

.section-icon {
  display: inline-flex;
  width: 38px;
  height: 38px;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  color: #fff;
  background: linear-gradient(135deg, var(--orange), var(--rose));
  box-shadow: 0 14px 25px rgba(249, 115, 22, .22);
}

.section-icon.purple {
  background: linear-gradient(135deg, var(--purple), #ec4899);
}

.section-icon.blue {
  background: linear-gradient(135deg, var(--blue), var(--cyan));
}

.section-icon.red {
  background: linear-gradient(135deg, var(--red), var(--orange));
}

.section-more {
  color: var(--orange-deep);
  font-weight: 800;
}

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

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

.movie-card {
  overflow: hidden;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 10px 25px rgba(15, 23, 42, .08);
  transition: transform .25s ease, box-shadow .25s ease;
}

.movie-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 24px 48px rgba(15, 23, 42, .16);
}

.card-cover {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 2 / 3;
  background: linear-gradient(135deg, #fed7aa, #fecdd3);
}

.card-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .55s ease;
}

.movie-card:hover .card-cover img {
  transform: scale(1.09);
}

.card-play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 42px;
  background: linear-gradient(0deg, rgba(0, 0, 0, .48), transparent 70%);
  opacity: 0;
  transition: opacity .25s ease;
}

.movie-card:hover .card-play {
  opacity: 1;
}

.card-badge,
.rank-badge {
  position: absolute;
  right: 12px;
  top: 12px;
  padding: 5px 9px;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(90deg, var(--orange), var(--rose));
  font-size: 12px;
  font-weight: 800;
  box-shadow: 0 10px 18px rgba(249, 115, 22, .2);
}

.rank-badge {
  left: 12px;
  right: auto;
  min-width: 34px;
  text-align: center;
}

.card-body {
  padding: 14px;
}

.card-body h3 {
  margin: 0 0 8px;
  min-height: 44px;
  font-size: 16px;
  line-height: 1.35;
  font-weight: 850;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color .2s ease;
}

.movie-card:hover h3 {
  color: var(--orange-deep);
}

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

.card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: #6b7280;
  font-size: 12px;
}

.card-meta span {
  padding: 4px 8px;
  border-radius: 999px;
  background: #f3f4f6;
}

.movie-card-horizontal {
  display: grid;
  grid-template-columns: 145px 1fr;
  min-height: 190px;
}

.movie-card-horizontal .card-cover {
  aspect-ratio: auto;
  height: 100%;
}

.movie-card-horizontal .card-body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 18px;
}

.movie-card-horizontal .card-body h3 {
  min-height: 0;
  -webkit-line-clamp: 1;
}

.split-section {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
}

.split-panel {
  padding: 26px;
  border-radius: 26px;
  background: rgba(255, 255, 255, .72);
  box-shadow: 0 14px 35px rgba(15, 23, 42, .08);
}

.section-head.compact {
  margin-bottom: 18px;
}

.section-head.compact h2 {
  font-size: 26px;
}

.stack-list,
.ranking-list {
  display: grid;
  gap: 16px;
}

.ranking-section {
  padding: 34px;
  border-radius: 30px;
  background: linear-gradient(135deg, #fff7ed, #fff1f2);
}

.cta-section {
  margin-top: 58px;
  padding: 54px 24px;
  border-radius: 30px;
  color: #fff;
  text-align: center;
  background: linear-gradient(100deg, var(--orange), var(--rose));
  box-shadow: 0 20px 60px rgba(244, 63, 94, .22);
}

.cta-section h2 {
  margin: 0 0 10px;
  font-size: clamp(28px, 4vw, 42px);
}

.cta-section p {
  margin: 0 0 24px;
  color: rgba(255, 255, 255, .88);
  font-size: 18px;
}

.page-title-block {
  padding: 30px;
  border-radius: 28px;
  background: rgba(255, 255, 255, .75);
  box-shadow: 0 14px 35px rgba(15, 23, 42, .08);
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--orange-deep);
  text-transform: uppercase;
  letter-spacing: .14em;
  font-size: 13px;
  font-weight: 900;
}

.page-title-block h1,
.category-hero h1 {
  margin: 0 0 10px;
  font-size: clamp(34px, 5vw, 54px);
  line-height: 1.08;
  letter-spacing: -.05em;
}

.page-title-block p,
.category-hero p {
  margin: 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.7;
}

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

.category-card-large a {
  display: grid;
  grid-template-columns: 170px 1fr;
  overflow: hidden;
  min-height: 210px;
  border-radius: 26px;
  background: #fff;
  box-shadow: 0 14px 35px rgba(15, 23, 42, .08);
  transition: transform .25s ease, box-shadow .25s ease;
}

.category-card-large a:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 55px rgba(15, 23, 42, .14);
}

.category-thumbs {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 4px;
  padding: 10px;
  background: linear-gradient(135deg, #fed7aa, #fecdd3);
}

.category-thumbs img {
  width: 100%;
  height: 92px;
  object-fit: cover;
  border-radius: 12px;
}

.category-info {
  padding: 26px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.category-info h2 {
  margin: 0 0 10px;
  font-size: 26px;
}

.category-info p {
  margin: 0 0 18px;
  color: var(--muted);
  line-height: 1.7;
}

.category-info span {
  color: var(--orange-deep);
  font-weight: 850;
}

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

.breadcrumb a {
  color: var(--orange-deep);
  font-weight: 750;
}

.category-hero {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: end;
  margin-bottom: 26px;
  padding: 30px;
  border-radius: 28px;
  background: linear-gradient(135deg, rgba(255, 247, 237, .95), rgba(255, 255, 255, .95));
  box-shadow: 0 14px 35px rgba(15, 23, 42, .08);
}

.filter-box {
  display: grid;
  min-width: 340px;
  gap: 10px;
}

.filter-box input,
.filter-box select,
.big-search input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px 14px;
  outline: none;
  background: #fff;
}

.filter-box input:focus,
.filter-box select:focus,
.big-search input:focus {
  border-color: #fb923c;
  box-shadow: 0 0 0 4px rgba(249, 115, 22, .12);
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 28px;
}

.player-shell {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  background: #020617;
  box-shadow: var(--shadow);
}

.movie-video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #020617;
}

.player-cover {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  background-size: cover;
  background-position: center;
  cursor: pointer;
  transition: opacity .25s ease, visibility .25s ease;
}

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

.large-play {
  display: inline-flex;
  width: 86px;
  height: 86px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: #fff;
  font-size: 38px;
  padding-left: 5px;
  background: linear-gradient(135deg, var(--orange), var(--rose));
  box-shadow: 0 18px 45px rgba(244, 63, 94, .35);
}

.detail-card,
.poster-card,
.side-box,
.search-panel {
  background: #fff;
  border-radius: 24px;
  box-shadow: 0 14px 35px rgba(15, 23, 42, .08);
}

.detail-card {
  margin-top: 24px;
  padding: 28px;
}

.detail-card h1 {
  margin: 0 0 14px;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.15;
  letter-spacing: -.04em;
}

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

.detail-meta span,
.detail-meta a {
  padding: 6px 11px;
  border-radius: 999px;
  color: #7c2d12;
  background: #ffedd5;
  font-size: 13px;
  font-weight: 750;
}

.lead-text {
  color: #374151;
  font-size: 18px;
  line-height: 1.75;
  font-weight: 700;
}

.detail-card section {
  border-top: 1px solid var(--line);
  margin-top: 24px;
  padding-top: 22px;
}

.detail-card h2,
.side-box h2,
.poster-card h2 {
  margin: 0 0 12px;
  font-size: 22px;
}

.detail-card p {
  color: #4b5563;
  line-height: 1.9;
}

.detail-card .tag-list {
  margin-top: 22px;
}

.detail-card .tag-list span {
  color: #374151;
  background: #f3f4f6;
}

.detail-side {
  display: grid;
  gap: 18px;
  align-content: start;
}

.poster-card {
  overflow: hidden;
}

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

.poster-card div {
  padding: 18px;
}

.poster-card p {
  margin: 0;
  color: var(--muted);
}

.side-box {
  padding: 20px;
}

.side-box a {
  display: block;
  margin-top: 10px;
  padding: 12px 14px;
  border-radius: 14px;
  background: #fff7ed;
  color: #7c2d12;
  font-weight: 800;
}

.related-section {
  margin-top: 36px;
}

.search-panel {
  margin-top: 26px;
  padding: 26px;
}

.big-search {
  display: flex;
  gap: 12px;
}

.search-summary {
  margin: 18px 0;
  color: var(--muted);
  font-weight: 750;
}

.site-footer {
  color: #cbd5e1;
  background: linear-gradient(135deg, #111827, #0f172a);
  margin-top: 30px;
}

.footer-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 46px 20px 34px;
  display: grid;
  grid-template-columns: 1.4fr .8fr .8fr;
  gap: 28px;
}

.footer-logo .brand-text strong {
  color: #fff;
  background: none;
  -webkit-text-fill-color: #fff;
}

.footer-brand p {
  max-width: 430px;
  color: #94a3b8;
  line-height: 1.75;
}

.site-footer h2 {
  margin: 0 0 14px;
  color: #fff;
  font-size: 18px;
}

.site-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.site-footer a:hover {
  color: #fb923c;
}

.footer-bottom {
  border-top: 1px solid rgba(148, 163, 184, .18);
  padding: 18px 20px;
  text-align: center;
  color: #94a3b8;
}

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

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

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

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

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

@media (max-width: 820px) {
  .hero-slider {
    min-height: 540px;
  }

  .hero-content {
    right: 24px;
    top: auto;
    bottom: 72px;
    transform: none;
  }

  .hero-overlay {
    background: linear-gradient(0deg, rgba(15, 23, 42, .94) 0%, rgba(15, 23, 42, .38) 100%);
  }

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

  .split-section,
  .category-overview-grid,
  .category-hero,
  .footer-inner {
    grid-template-columns: 1fr;
    display: grid;
  }

  .filter-box {
    min-width: 0;
  }

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

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

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

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

@media (max-width: 560px) {
  .header-inner,
  .hero-wrap,
  .page-shell {
    padding-left: 14px;
    padding-right: 14px;
  }

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

  .brand-text small {
    display: none;
  }

  .hero-slider {
    min-height: 500px;
    border-radius: 22px;
  }

  .hero-content h1 {
    font-size: 32px;
  }

  .hero-actions a {
    width: 100%;
  }

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

  .movie-card-horizontal {
    grid-template-columns: 112px 1fr;
    min-height: 150px;
  }

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

  .card-body h3 {
    font-size: 14px;
  }

  .card-body p {
    font-size: 12px;
  }

  .split-panel,
  .ranking-section,
  .detail-card,
  .search-panel,
  .page-title-block,
  .category-hero {
    padding: 18px;
    border-radius: 20px;
  }

  .big-search {
    flex-direction: column;
  }
}
