:root {
  --orange: #ea580c;
  --orange-dark: #c2410c;
  --orange-soft: #fff7ed;
  --red: #dc2626;
  --amber: #f59e0b;
  --blue: #2563eb;
  --green: #16a34a;
  --cyan: #0891b2;
  --text: #111827;
  --muted: #6b7280;
  --line: #e5e7eb;
  --page: #f9fafb;
  --card: #ffffff;
  --dark: #111827;
  --shadow: 0 18px 35px rgba(15, 23, 42, 0.12);
  --shadow-soft: 0 10px 22px rgba(15, 23, 42, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--page);
  color: var(--text);
  font-family: 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,
video {
  display: block;
  width: 100%;
}

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.96);
  border-bottom: 1px solid rgba(229, 231, 235, 0.85);
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.07);
  backdrop-filter: blur(14px);
}

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

.site-logo,
.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 24px;
  font-weight: 800;
  color: var(--orange);
  white-space: nowrap;
}

.logo-mark {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(135deg, var(--orange), var(--red));
  box-shadow: 0 8px 20px rgba(234, 88, 12, 0.28);
  font-size: 14px;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 20px;
  color: #374151;
  font-weight: 650;
}

.nav-link {
  padding: 8px 0;
  transition: color 0.2s ease;
}

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

.header-search {
  display: flex;
  align-items: center;
  min-width: 300px;
}

.header-search input,
.filter-bar input,
.filter-bar select {
  border: 1px solid #d1d5db;
  background: #fff;
  color: var(--text);
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.header-search input {
  width: 100%;
  border-radius: 12px 0 0 12px;
  padding: 10px 14px;
}

.header-search button {
  border: 0;
  color: #fff;
  background: var(--orange);
  padding: 11px 16px;
  border-radius: 0 12px 12px 0;
  cursor: pointer;
  transition: background 0.2s ease;
}

.header-search button:hover {
  background: var(--orange-dark);
}

.header-search input:focus,
.filter-bar input:focus,
.filter-bar select:focus {
  border-color: var(--orange);
  box-shadow: 0 0 0 4px rgba(249, 115, 22, 0.12);
}

.menu-button {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 12px;
  background: var(--orange-soft);
  cursor: pointer;
}

.menu-button span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  background: var(--orange);
  border-radius: 999px;
}

.mobile-nav {
  display: none;
  border-top: 1px solid var(--line);
  background: #fff;
}

.mobile-nav.is-open {
  display: block;
}

.mobile-nav-inner {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  padding: 14px 0 18px;
}

.mobile-nav-link {
  padding: 10px 12px;
  border-radius: 12px;
  background: #f3f4f6;
  color: #374151;
  font-weight: 650;
}

.hero-carousel {
  position: relative;
  min-height: 580px;
  overflow: hidden;
  background: #0f172a;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  background-image: linear-gradient(90deg, rgba(124, 45, 18, 0.95) 0%, rgba(234, 88, 12, 0.78) 42%, rgba(15, 23, 42, 0.58) 100%), var(--hero-image);
  background-size: cover;
  background-position: center;
  transition: opacity 0.65s ease;
}

.hero-slide.is-active {
  opacity: 1;
  pointer-events: auto;
}

.hero-layer {
  position: absolute;
  inset: auto 0 0;
  height: 110px;
  background: linear-gradient(0deg, var(--page), rgba(249, 250, 251, 0));
}

.hero-content {
  position: relative;
  min-height: 580px;
  display: flex;
  align-items: center;
  padding: 92px 0 120px;
}

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

.hero-eyebrow,
.section-kicker {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  margin-bottom: 12px;
  color: #fed7aa;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-copy h1,
.hero-copy h2 {
  margin: 0 0 18px;
  font-size: clamp(38px, 6vw, 68px);
  line-height: 1.08;
  font-weight: 900;
  letter-spacing: -0.04em;
}

.hero-copy h2 + p,
.hero-copy h1 + h2 {
  margin-top: -4px;
}

.hero-copy h1 + h2 {
  font-size: clamp(28px, 4vw, 48px);
  color: #fff7ed;
}

.hero-copy p {
  max-width: 680px;
  margin: 0 0 24px;
  color: #ffedd5;
  font-size: clamp(17px, 2vw, 22px);
}

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

.hero-tags span,
.tag-row span {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 7px 12px;
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
}

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

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

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

.btn.primary {
  background: #fff;
  color: var(--orange);
  box-shadow: 0 14px 28px rgba(15, 23, 42, 0.18);
}

.btn.ghost {
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.44);
  background: rgba(255, 255, 255, 0.08);
}

.btn.soft {
  background: rgba(255, 247, 237, 0.2);
  color: #fff;
}

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

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

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

.feature-strip {
  position: relative;
  z-index: 5;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  margin-top: -72px;
  margin-bottom: 70px;
}

.section-block {
  margin: 64px auto;
}

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

.section-head h2 {
  margin: 0;
  color: var(--text);
  font-size: clamp(28px, 4vw, 40px);
  line-height: 1.1;
  font-weight: 900;
  letter-spacing: -0.03em;
}

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

.section-kicker {
  color: var(--orange);
}

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

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

.movie-card {
  overflow: hidden;
  border: 1px solid rgba(229, 231, 235, 0.86);
  border-radius: 20px;
  background: var(--card);
  box-shadow: var(--shadow-soft);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.movie-card:hover {
  transform: translateY(-7px);
  border-color: rgba(249, 115, 22, 0.26);
  box-shadow: var(--shadow);
}

.movie-card.compact {
  border-radius: 22px;
}

.card-poster {
  position: relative;
  display: block;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  background: #111827;
}

.movie-card.compact .card-poster {
  aspect-ratio: 16 / 10;
}

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

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

.poster-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.72), rgba(0, 0, 0, 0.02) 54%);
}

.year-badge,
.play-badge {
  position: absolute;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
}

.year-badge {
  top: 12px;
  right: 12px;
  border-radius: 999px;
  padding: 5px 10px;
  background: rgba(17, 24, 39, 0.72);
  color: #fff;
  font-size: 12px;
}

.play-badge {
  left: 14px;
  bottom: 14px;
  width: 38px;
  height: 38px;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(135deg, var(--orange), var(--red));
  box-shadow: 0 12px 22px rgba(234, 88, 12, 0.35);
}

.card-body {
  padding: 18px;
}

.card-title {
  display: -webkit-box;
  overflow: hidden;
  margin-bottom: 8px;
  color: var(--text);
  font-size: 18px;
  line-height: 1.35;
  font-weight: 850;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  transition: color 0.2s ease;
}

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

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

.card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: #6b7280;
  font-size: 13px;
}

.card-meta span:last-child {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.category-band {
  margin: 72px 0;
  padding: 64px 0;
  background: linear-gradient(135deg, #fff7ed, #fffbeb);
}

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

.category-tile,
.category-overview-card {
  display: flex;
  flex-direction: column;
  min-height: 138px;
  justify-content: center;
  overflow: hidden;
  border-radius: 22px;
  padding: 24px;
  color: #fff;
  box-shadow: var(--shadow-soft);
  transition: transform 0.24s ease, box-shadow 0.24s ease;
}

.category-tile:hover,
.category-overview-card:hover {
  transform: translateY(-5px) scale(1.01);
  box-shadow: var(--shadow);
}

.category-tile strong,
.category-overview-card strong {
  font-size: 24px;
  line-height: 1.2;
  font-weight: 900;
}

.category-tile span,
.category-overview-card p {
  margin-top: 8px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 14px;
}

.warm { background: linear-gradient(135deg, #ea580c, #dc2626); }
.blue { background: linear-gradient(135deg, #2563eb, #0891b2); }
.green { background: linear-gradient(135deg, #16a34a, #0d9488); }
.gold { background: linear-gradient(135deg, #d97706, #eab308); }
.purple { background: linear-gradient(135deg, #7c3aed, #db2777); }
.rose { background: linear-gradient(135deg, #e11d48, #f97316); }
.teal { background: linear-gradient(135deg, #0f766e, #06b6d4); }
.dark { background: linear-gradient(135deg, #111827, #374151); }
.cyan { background: linear-gradient(135deg, #0284c7, #14b8a6); }
.red { background: linear-gradient(135deg, #b91c1c, #f97316); }

.split-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 28px;
  align-items: start;
}

.rank-panel,
.detail-aside > div,
.detail-panel,
.poster-card,
.ranking-section {
  border: 1px solid rgba(229, 231, 235, 0.86);
  border-radius: 22px;
  background: #fff;
  box-shadow: var(--shadow-soft);
}

.rank-panel {
  position: sticky;
  top: 92px;
  padding: 22px;
}

.rank-panel-head {
  margin-bottom: 16px;
}

.rank-panel-head span {
  display: inline-flex;
  margin-bottom: 6px;
  color: var(--orange);
  font-weight: 900;
  letter-spacing: 0.1em;
}

.rank-panel-head h2 {
  margin: 0;
  font-size: 28px;
}

.rank-item {
  display: grid;
  grid-template-columns: 34px 58px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 12px 0;
  border-top: 1px solid var(--line);
}

.rank-item img {
  height: 76px;
  border-radius: 12px;
  object-fit: cover;
}

.rank-num,
.rank-dot {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(135deg, var(--amber), var(--orange));
  font-weight: 900;
}

.rank-dot {
  background: #f3f4f6;
  color: var(--orange);
}

.rank-copy strong {
  display: block;
  overflow: hidden;
  color: var(--text);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rank-copy small {
  display: block;
  overflow: hidden;
  color: var(--muted);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.more-link {
  display: block;
  margin-top: 18px;
  border-radius: 14px;
  padding: 12px;
  color: #fff;
  background: var(--orange);
  text-align: center;
  font-weight: 850;
}

.page-main {
  padding: 34px 0 70px;
}

.page-hero {
  margin-bottom: 34px;
}

.slim-hero {
  border-radius: 28px;
  padding: 42px;
  color: #fff;
  background: linear-gradient(135deg, var(--orange), var(--red));
  box-shadow: var(--shadow);
}

.slim-hero .section-kicker {
  color: #ffedd5;
}

.slim-hero h1 {
  margin: 0 0 12px;
  font-size: clamp(34px, 5vw, 56px);
  line-height: 1.1;
  font-weight: 900;
  letter-spacing: -0.04em;
}

.slim-hero p {
  max-width: 820px;
  margin: 0;
  color: #ffedd5;
  font-size: 18px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 14px;
}

.detail-breadcrumb-wrap .breadcrumb {
  color: #6b7280;
}

.breadcrumb a:hover {
  color: #fff;
}

.detail-breadcrumb-wrap .breadcrumb a:hover {
  color: var(--orange);
}

.filter-bar {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) 180px 220px 180px;
  gap: 12px;
  margin-top: 24px;
}

.wide-filter {
  grid-template-columns: minmax(280px, 1fr) 200px 180px;
}

.filter-bar input,
.filter-bar select {
  min-height: 46px;
  border-radius: 14px;
  padding: 0 14px;
}

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

.category-overview-card {
  min-height: 210px;
}

.category-overview-card p {
  max-width: 720px;
  font-size: 16px;
}

.category-samples {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.category-samples span {
  border-radius: 999px;
  padding: 6px 10px;
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
  font-size: 13px;
}

.empty-state {
  display: none;
  margin-top: 28px;
  border-radius: 20px;
  padding: 28px;
  background: #fff;
  color: var(--muted);
  text-align: center;
  box-shadow: var(--shadow-soft);
}

.empty-state.is-visible {
  display: block;
}

.ranking-section {
  padding: 18px;
}

.ranking-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.ranking-row {
  display: grid;
  grid-template-columns: 54px 68px minmax(0, 1fr) 70px;
  gap: 16px;
  align-items: center;
  border-radius: 18px;
  padding: 12px;
  transition: background 0.2s ease, transform 0.2s ease;
}

.ranking-row:hover {
  background: var(--orange-soft);
  transform: translateX(4px);
}

.ranking-row img {
  height: 92px;
  border-radius: 12px;
  object-fit: cover;
}

.ranking-index {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  color: var(--orange);
  background: #ffedd5;
  font-weight: 900;
}

.ranking-title strong {
  display: block;
  font-size: 18px;
}

.ranking-title small {
  display: block;
  color: var(--muted);
}

.ranking-play {
  border-radius: 999px;
  padding: 7px 12px;
  color: #fff;
  background: var(--orange);
  text-align: center;
  font-weight: 800;
}

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

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

.movie-player {
  aspect-ratio: 16 / 9;
  width: 100%;
  background: #000;
}

.player-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background-image: linear-gradient(0deg, rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0.2)), var(--poster-image);
  background-size: cover;
  background-position: center;
  cursor: pointer;
}

.player-overlay.hidden {
  display: none;
}

.player-button {
  width: 84px;
  height: 84px;
  border: 0;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(135deg, var(--orange), var(--red));
  font-size: 30px;
  cursor: pointer;
  box-shadow: 0 18px 35px rgba(0, 0, 0, 0.32);
  transition: transform 0.2s ease;
}

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

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

.detail-panel h1 {
  margin: 0 0 14px;
  font-size: clamp(32px, 5vw, 48px);
  line-height: 1.12;
  font-weight: 900;
  letter-spacing: -0.03em;
}

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

.detail-meta span,
.detail-meta a {
  border-radius: 999px;
  padding: 7px 12px;
  color: var(--orange);
  background: var(--orange-soft);
  font-size: 13px;
  font-weight: 800;
}

.detail-lead {
  margin: 0 0 20px;
  color: #374151;
  font-size: 19px;
  font-weight: 650;
}

.detail-panel h2 {
  margin: 28px 0 10px;
  font-size: 24px;
  line-height: 1.25;
}

.detail-panel p {
  color: #374151;
  font-size: 16px;
}

.detail-panel .tag-row span {
  background: #f3f4f6;
  color: #4b5563;
}

.detail-aside {
  position: sticky;
  top: 94px;
  display: grid;
  gap: 20px;
}

.poster-card {
  overflow: hidden;
  padding-bottom: 18px;
}

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

.poster-card strong,
.poster-card span {
  display: block;
  padding: 0 18px;
}

.poster-card strong {
  margin-top: 16px;
  font-size: 20px;
}

.poster-card span {
  color: var(--muted);
}

.aside-list {
  padding: 20px;
}

.aside-list h2 {
  margin: 0 0 10px;
  font-size: 22px;
}

.site-footer {
  margin-top: 80px;
  background: #111827;
  color: #d1d5db;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.2fr;
  gap: 34px;
  padding: 52px 0;
}

.footer-logo {
  margin-bottom: 14px;
  color: #fff;
}

.site-footer h3 {
  margin: 0 0 14px;
  color: #fff;
}

.site-footer p {
  margin: 0;
  color: #9ca3af;
}

.site-footer a {
  display: block;
  margin: 8px 0;
  color: #d1d5db;
  transition: color 0.2s ease;
}

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

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 18px 0;
  color: #9ca3af;
  text-align: center;
}

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

  .menu-button {
    display: block;
  }

  .feature-strip,
  .movie-grid,
  .small-grid,
  .category-grid,
  .split-section,
  .detail-layout,
  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .split-section,
  .detail-layout {
    display: block;
  }

  .rank-panel,
  .detail-aside {
    position: static;
    margin-top: 28px;
  }

  .filter-bar,
  .wide-filter {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

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

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

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

  .hero-content {
    padding: 82px 0 130px;
  }

  .hero-actions {
    display: grid;
  }

  .feature-strip,
  .movie-grid,
  .small-grid,
  .category-grid,
  .category-overview-grid,
  .footer-grid,
  .filter-bar,
  .wide-filter {
    grid-template-columns: 1fr;
  }

  .feature-strip {
    margin-top: -54px;
  }

  .slim-hero {
    padding: 28px;
    border-radius: 22px;
  }

  .ranking-row {
    grid-template-columns: 42px 58px minmax(0, 1fr);
  }

  .ranking-play {
    display: none;
  }

  .detail-panel {
    padding: 22px;
  }
}
