:root {
  --bg: #f8fafc;
  --panel: #ffffff;
  --text: #111827;
  --muted: #6b7280;
  --soft: #f3f4f6;
  --line: #e5e7eb;
  --dark: #0f172a;
  --dark-soft: #1f2937;
  --amber: #d97706;
  --amber-dark: #b45309;
  --amber-soft: #fffbeb;
  --radius: 18px;
  --shadow: 0 18px 45px rgba(15, 23, 42, 0.12);
  --shadow-soft: 0 8px 24px rgba(15, 23, 42, 0.09);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

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

img {
  display: block;
  max-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.94);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(229, 231, 235, 0.9);
  box-shadow: 0 4px 18px rgba(15, 23, 42, 0.05);
}

.header-inner {
  width: min(1180px, calc(100% - 32px));
  min-height: 72px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 24px;
}

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  color: var(--amber-dark);
  white-space: nowrap;
}

.brand-mark {
  width: 38px;
  height: 38px;
  display: inline-grid;
  place-items: center;
  border-radius: 12px;
  background: linear-gradient(135deg, #f59e0b, #b45309);
  color: #fff;
  box-shadow: 0 10px 24px rgba(217, 119, 6, 0.28);
}

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

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}

.nav-link,
.mobile-nav-link {
  padding: 9px 14px;
  border-radius: 999px;
  color: #374151;
  font-weight: 600;
  transition: color 0.2s ease, background 0.2s ease;
}

.nav-link:hover,
.nav-link.is-active,
.mobile-nav-link:hover,
.mobile-nav-link.is-active {
  color: var(--amber-dark);
  background: var(--amber-soft);
}

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

.header-search input,
.mobile-search input,
.filter-card input,
.filter-card select {
  border: 1px solid #d1d5db;
  border-radius: 999px;
  background: #fff;
  padding: 10px 16px;
  outline: none;
  min-width: 0;
  transition: border 0.2s ease, box-shadow 0.2s ease;
}

.header-search input:focus,
.mobile-search input:focus,
.filter-card input:focus,
.filter-card select:focus {
  border-color: var(--amber);
  box-shadow: 0 0 0 4px rgba(217, 119, 6, 0.14);
}

.header-search button,
.mobile-search button {
  border: 0;
  border-radius: 999px;
  padding: 10px 16px;
  background: var(--amber);
  color: #fff;
  cursor: pointer;
}

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

.mobile-panel {
  display: none;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 0 0 18px;
}

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

.mobile-search {
  margin-bottom: 14px;
}

.mobile-search input {
  flex: 1;
}

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

.hero {
  position: relative;
  height: 72vh;
  min-height: 560px;
  overflow: hidden;
  background: var(--dark);
}

.hero-stage,
.hero-slide {
  position: absolute;
  inset: 0;
}

.hero-slide {
  opacity: 0;
  transition: opacity 0.9s ease;
  pointer-events: none;
}

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

.hero-bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.04);
}

.hero-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.86), rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.12));
}

.hero-content {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  color: #fff;
  max-width: 760px;
}

.hero-kicker,
.section-heading span,
.page-hero span {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  border-radius: 999px;
  background: rgba(217, 119, 6, 0.14);
  color: var(--amber);
  padding: 6px 12px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.hero-content h1,
.hero-content h2 {
  margin: 16px 0 0;
  font-size: clamp(34px, 7vw, 68px);
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.hero-content h2 {
  font-size: clamp(30px, 5vw, 58px);
}

.hero-content p {
  max-width: 620px;
  margin: 18px 0 0;
  color: #e5e7eb;
  font-size: 18px;
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.hero-tags span,
.detail-meta span,
.detail-tags span,
.tag-row span {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: inherit;
  padding: 6px 12px;
  font-size: 13px;
  font-style: normal;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 12px 22px;
  font-weight: 800;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
}

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

.btn-primary {
  background: var(--amber);
  color: #fff;
  box-shadow: 0 12px 28px rgba(217, 119, 6, 0.32);
}

.btn-primary:hover {
  background: var(--amber-dark);
}

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

.btn.full {
  width: 100%;
}

.hero-arrow {
  position: absolute;
  top: 50%;
  z-index: 4;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 999px;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.45);
  color: #fff;
  font-size: 34px;
  line-height: 1;
  cursor: pointer;
}

.hero-prev {
  left: 22px;
}

.hero-next {
  right: 22px;
}

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

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

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

.section {
  padding: 72px 0;
}

.section-warm {
  background: linear-gradient(180deg, #fffbeb, #fff);
}

.section-gray {
  background: #f3f4f6;
}

.section-heading {
  margin-bottom: 26px;
}

.section-heading h2,
.page-hero h1,
.detail-card h1,
.detail-card h2,
.side-card h2,
.footer-links h2 {
  margin: 10px 0 0;
  line-height: 1.15;
  color: #111827;
}

.section-heading h2 {
  font-size: clamp(26px, 4vw, 36px);
}

.row-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
}

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

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

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

.movie-card {
  display: block;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: var(--shadow-soft);
  transition: transform 0.24s ease, box-shadow 0.24s ease;
}

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

.poster-wrap {
  position: relative;
  display: block;
  height: 260px;
  overflow: hidden;
  background: #111827;
}

.movie-card-large .poster-wrap {
  height: 340px;
}

.movie-card-compact .poster-wrap {
  height: 190px;
}

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

.movie-card:hover img,
.movie-list-item:hover img {
  transform: scale(1.08);
}

.poster-year,
.poster-type {
  position: absolute;
  z-index: 2;
  border-radius: 999px;
  padding: 5px 9px;
  color: #fff;
  font-size: 12px;
  font-weight: 800;
}

.poster-year {
  top: 12px;
  right: 12px;
  background: rgba(0, 0, 0, 0.66);
}

.poster-type {
  left: 12px;
  bottom: 12px;
  background: var(--amber);
}

.movie-body {
  display: block;
  padding: 16px;
}

.movie-body strong {
  display: -webkit-box;
  min-height: 44px;
  overflow: hidden;
  color: #111827;
  font-size: 17px;
  line-height: 1.3;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.movie-body em {
  display: -webkit-box;
  min-height: 42px;
  margin-top: 8px;
  overflow: hidden;
  color: #6b7280;
  font-size: 14px;
  font-style: normal;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.movie-meta,
.tag-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
  color: #6b7280;
  font-size: 13px;
}

.movie-meta span + span::before {
  content: "·";
  margin-right: 8px;
  color: #c4c4c4;
}

.tag-row span {
  background: var(--soft);
  color: #4b5563;
  padding: 4px 9px;
}

.split-section {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 42px;
}

.ranking-list {
  display: grid;
  gap: 14px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.movie-list-item {
  display: grid;
  grid-template-columns: auto 112px 1fr;
  align-items: center;
  gap: 16px;
  padding: 14px;
  border-radius: 16px;
  background: #fff;
  box-shadow: var(--shadow-soft);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.movie-list-item:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.movie-list-item img {
  width: 112px;
  height: 76px;
  object-fit: cover;
  border-radius: 12px;
  transition: transform 0.5s ease;
}

.rank-no {
  width: 42px;
  height: 42px;
  display: inline-grid;
  place-items: center;
  border-radius: 14px;
  background: var(--amber-soft);
  color: var(--amber-dark);
  font-weight: 900;
}

.list-copy {
  min-width: 0;
}

.list-copy strong,
.list-copy em,
.list-copy span {
  display: block;
}

.list-copy strong {
  color: #111827;
  font-size: 17px;
}

.list-copy em {
  overflow: hidden;
  color: #6b7280;
  font-style: normal;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.list-copy span {
  color: #9ca3af;
  font-size: 13px;
}

.text-link {
  display: inline-flex;
  margin-top: 18px;
  color: var(--amber-dark);
  font-weight: 800;
}

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

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

.category-tile,
.category-panel-main {
  display: block;
  border-radius: var(--radius);
  background: #fff;
  padding: 20px;
  box-shadow: var(--shadow-soft);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.category-tile:hover,
.category-panel-main:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.category-tile span,
.category-index {
  color: var(--amber-dark);
  font-weight: 900;
}

.category-tile h3,
.category-panel h2 {
  margin: 10px 0 8px;
  color: #111827;
}

.category-tile p,
.category-panel p {
  margin: 0;
  color: #6b7280;
}

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

.pill-row button {
  border: 0;
  border-radius: 999px;
  padding: 9px 15px;
  background: #fff;
  color: #4b5563;
  cursor: pointer;
}

.pill-row button.is-active,
.pill-row button:hover {
  background: var(--amber);
  color: #fff;
}

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

.page-hero {
  padding: 82px 0;
  background: radial-gradient(circle at top left, rgba(245, 158, 11, 0.26), transparent 36%), linear-gradient(135deg, #111827, #312e81 58%, #92400e);
  color: #fff;
}

.page-hero h1 {
  color: #fff;
  font-size: clamp(34px, 6vw, 58px);
}

.page-hero p {
  max-width: 720px;
  margin: 16px 0 0;
  color: #e5e7eb;
  font-size: 18px;
}

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

.category-panel {
  display: grid;
  gap: 12px;
}

.category-panel-main strong {
  display: inline-flex;
  margin-top: 16px;
  color: var(--amber-dark);
}

.category-samples {
  display: grid;
  gap: 8px;
  padding: 0 8px;
}

.category-samples a {
  color: #6b7280;
  font-size: 14px;
}

.category-samples a:hover {
  color: var(--amber-dark);
}

.filter-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 180px;
  gap: 12px;
  margin-bottom: 26px;
  border-radius: var(--radius);
  background: #fff;
  padding: 18px;
  box-shadow: var(--shadow-soft);
}

.search-filter-card {
  grid-template-columns: minmax(0, 1fr) 180px 180px;
}

.empty-message {
  display: none;
  padding: 28px;
  border-radius: var(--radius);
  background: #fff;
  color: #6b7280;
  text-align: center;
}

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

.ranking-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 32px;
  align-items: start;
}

.ranking-list-wide .movie-list-item {
  grid-template-columns: auto 132px 1fr;
}

.ranking-list-wide .movie-list-item img {
  width: 132px;
  height: 88px;
}

.ranking-side,
.side-card {
  border-radius: var(--radius);
  background: #fff;
  padding: 20px;
  box-shadow: var(--shadow-soft);
}

.side-grid {
  display: grid;
  gap: 16px;
}

.detail-page {
  padding: 28px 0 72px;
}

.breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 22px;
  color: #6b7280;
  font-size: 14px;
}

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

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

.detail-main {
  display: grid;
  gap: 22px;
}

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

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

.player-start {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  gap: 12px;
  border: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.12), rgba(0, 0, 0, 0.58));
  color: #fff;
  cursor: pointer;
}

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

.play-circle {
  width: 76px;
  height: 76px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: var(--amber);
  font-size: 30px;
  box-shadow: 0 18px 38px rgba(217, 119, 6, 0.36);
}

.player-start strong {
  font-size: 20px;
}

.player-error {
  position: absolute;
  left: 20px;
  right: 20px;
  bottom: 20px;
  display: none;
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.72);
  color: #fff;
  padding: 12px 16px;
  text-align: center;
}

.player-error.is-visible {
  display: block;
}

.detail-card,
.side-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow-soft);
}

.detail-card h1 {
  font-size: clamp(28px, 5vw, 42px);
}

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

.detail-card section p {
  margin: 10px 0 0;
  color: #4b5563;
  white-space: pre-line;
}

.lead-text {
  font-size: 18px;
  color: #374151 !important;
}

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

.detail-meta span {
  background: var(--amber-soft);
  color: var(--amber-dark);
}

.detail-tags span {
  background: #eef2ff;
  color: #3730a3;
}

.detail-side {
  display: grid;
  gap: 18px;
  position: sticky;
  top: 96px;
}

.poster-side-card img {
  width: 100%;
  height: 360px;
  object-fit: cover;
  border-radius: 16px;
  margin-bottom: 16px;
}

.poster-side-card h2 {
  margin-bottom: 16px;
}

.side-rank {
  display: grid;
  gap: 10px;
  list-style: none;
  padding: 0;
  margin: 16px 0 0;
}

.side-rank a {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 8px;
  align-items: center;
  color: #4b5563;
}

.side-rank span {
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 9px;
  background: var(--amber-soft);
  color: var(--amber-dark);
  font-weight: 900;
}

.side-rank a:hover,
.side-cats a:hover {
  color: var(--amber-dark);
}

.side-cats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.side-cats a {
  border-radius: 999px;
  background: var(--soft);
  padding: 7px 11px;
  color: #4b5563;
  font-size: 14px;
}

.compact-heading {
  margin-bottom: 18px;
}

.site-footer {
  background: #111827;
  color: #d1d5db;
  padding-top: 46px;
}

.footer-inner {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(160px, 0.6fr) minmax(180px, 0.8fr);
  gap: 36px;
}

.footer-about p {
  max-width: 520px;
  color: #9ca3af;
}

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

.footer-links h2 {
  color: #fff;
  font-size: 18px;
  margin-bottom: 8px;
}

.footer-links a {
  color: #9ca3af;
}

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

.footer-bottom {
  width: min(1180px, calc(100% - 32px));
  margin: 32px auto 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 20px 0;
  color: #9ca3af;
}

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

  .menu-toggle {
    display: inline-grid;
    place-items: center;
  }

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

  .split-section,
  .ranking-layout,
  .detail-layout {
    grid-template-columns: 1fr;
  }

  .detail-side {
    position: static;
  }
}

@media (max-width: 760px) {
  .container,
  .header-inner,
  .mobile-panel,
  .footer-inner,
  .footer-bottom {
    width: min(100% - 24px, 1180px);
  }

  .hero {
    min-height: 620px;
    height: 78vh;
  }

  .hero-content {
    padding: 0 28px;
  }

  .hero-arrow {
    display: none;
  }

  .section {
    padding: 48px 0;
  }

  .row-heading {
    align-items: start;
    flex-direction: column;
  }

  .movie-grid,
  .movie-grid-3,
  .compact-grid,
  .category-grid,
  .category-grid.small,
  .category-panels,
  .footer-inner {
    grid-template-columns: 1fr 1fr;
  }

  .filter-card,
  .search-filter-card {
    grid-template-columns: 1fr;
  }

  .movie-list-item,
  .ranking-list-wide .movie-list-item {
    grid-template-columns: auto 88px 1fr;
    gap: 12px;
  }

  .movie-list-item img,
  .ranking-list-wide .movie-list-item img {
    width: 88px;
    height: 66px;
  }

  .list-copy em {
    display: none;
  }

  .poster-wrap,
  .movie-card-large .poster-wrap,
  .movie-card-compact .poster-wrap {
    height: 220px;
  }

  .footer-inner {
    gap: 26px;
  }

  .footer-about {
    grid-column: 1 / -1;
  }
}

@media (max-width: 520px) {
  .brand-text {
    font-size: 18px;
  }

  .hero-content h1,
  .hero-content h2 {
    font-size: 34px;
  }

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

  .movie-grid,
  .movie-grid-3,
  .compact-grid,
  .category-grid,
  .category-grid.small,
  .category-panels,
  .footer-inner {
    grid-template-columns: 1fr;
  }

  .poster-wrap,
  .movie-card-large .poster-wrap,
  .movie-card-compact .poster-wrap {
    height: 280px;
  }

  .movie-list-item,
  .ranking-list-wide .movie-list-item {
    grid-template-columns: 72px 1fr;
  }

  .movie-list-item .rank-no {
    display: none;
  }

  .movie-list-item img,
  .ranking-list-wide .movie-list-item img {
    width: 72px;
    height: 88px;
  }
}
