:root {
  --bg: #f9fafb;
  --text: #111827;
  --muted: #6b7280;
  --line: #e5e7eb;
  --soft: #fff7ed;
  --orange: #ea580c;
  --orange-strong: #c2410c;
  --red: #dc2626;
  --dark: #111827;
  --card: #ffffff;
  --shadow: 0 18px 45px rgba(17, 24, 39, 0.10);
  --radius: 22px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

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

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

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

.container {
  width: min(1280px, calc(100% - 32px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(18px);
  box-shadow: 0 1px 18px rgba(17, 24, 39, 0.08);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--orange), var(--red));
  color: #ffffff;
  box-shadow: 0 12px 25px rgba(234, 88, 12, 0.32);
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.brand-text strong {
  font-size: 24px;
  font-weight: 900;
  letter-spacing: -0.03em;
  background: linear-gradient(90deg, var(--orange), var(--red));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.brand-text span {
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 30px;
}

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

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

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  padding: 10px;
  border: 0;
  border-radius: 12px;
  background: #f3f4f6;
}

.menu-toggle span {
  display: block;
  height: 2px;
  margin: 5px 0;
  border-radius: 2px;
  background: #374151;
}

.mobile-menu {
  display: none;
  padding: 0 16px 16px;
  border-top: 1px solid var(--line);
  background: #ffffff;
}

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

.mobile-link {
  padding: 12px 4px;
  color: #374151;
  font-weight: 700;
}

.mobile-link.is-active {
  color: var(--orange);
}

.hero {
  position: relative;
  height: 70vh;
  min-height: 560px;
  overflow: hidden;
  background: #111827;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.8s ease;
}

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

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

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

.hero-content {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  max-width: 760px;
  color: #ffffff;
}

.hero-kicker,
.eyebrow {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  margin-bottom: 16px;
  padding: 8px 16px;
  border-radius: 999px;
  background: var(--orange);
  color: #ffffff;
  font-size: 14px;
  font-weight: 800;
}

.hero-content h1,
.hero-content h2 {
  margin: 0 0 18px;
  color: #ffffff;
  font-size: clamp(40px, 6vw, 72px);
  line-height: 1.04;
  font-weight: 950;
  letter-spacing: -0.06em;
}

.hero-content p {
  max-width: 720px;
  margin: 0 0 24px;
  color: #e5e7eb;
  font-size: 20px;
}

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

.hero-tags span,
.tag-row span {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 5px 12px;
  border-radius: 999px;
  background: #fff7ed;
  color: #9a3412;
  font-size: 13px;
  font-weight: 800;
}

.hero-tags span {
  background: rgba(255, 255, 255, 0.14);
  color: #ffffff;
}

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

.primary-btn,
.ghost-btn,
.home-search button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 24px;
  border: 0;
  border-radius: 999px;
  font-weight: 900;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.primary-btn,
.home-search button {
  background: var(--orange);
  color: #ffffff;
  box-shadow: 0 14px 28px rgba(234, 88, 12, 0.28);
}

.primary-btn:hover,
.home-search button:hover {
  background: var(--orange-strong);
  transform: translateY(-1px) scale(1.02);
}

.ghost-btn {
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
}

.ghost-btn:hover {
  background: rgba(255, 255, 255, 0.22);
  transform: translateY(-1px);
}

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

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

.hero-dot.is-active {
  width: 34px;
  background: var(--orange);
}

.quick-search-wrap {
  margin-top: -52px;
  position: relative;
  z-index: 3;
}

.quick-search {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 20px;
  align-items: center;
  padding: 26px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--shadow);
}

.quick-search strong {
  display: block;
  margin-bottom: 6px;
  font-size: 22px;
}

.quick-search p {
  margin: 0;
  color: var(--muted);
}

.home-search {
  display: flex;
  gap: 10px;
}

.home-search input,
.filter-controls input,
.filter-controls select {
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #ffffff;
  color: var(--text);
  padding: 0 14px;
  outline: none;
  transition: border 0.2s ease, box-shadow 0.2s ease;
}

.home-search input:focus,
.filter-controls input:focus,
.filter-controls select:focus {
  border-color: var(--orange);
  box-shadow: 0 0 0 4px rgba(234, 88, 12, 0.12);
}

.quick-cats {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.quick-cats a,
.text-link {
  color: var(--orange);
  font-weight: 900;
}

.quick-cats a {
  padding: 7px 12px;
  border-radius: 999px;
  background: #fff7ed;
}

.section-block {
  padding: 72px 0;
}

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

.section-head h2 {
  margin: 0 0 8px;
  font-size: clamp(28px, 4vw, 38px);
  line-height: 1.15;
  font-weight: 950;
  letter-spacing: -0.04em;
}

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

.section-head a {
  color: var(--orange);
  font-weight: 900;
  white-space: nowrap;
}

.section-head.dark h2,
.section-head.dark p,
.section-head.dark a {
  color: #ffffff;
}

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

.movie-card {
  overflow: hidden;
  border-radius: 18px;
  background: var(--card);
  box-shadow: 0 10px 28px rgba(17, 24, 39, 0.08);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 22px 45px rgba(17, 24, 39, 0.16);
}

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

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

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

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

.play-chip,
.rank-badge {
  position: absolute;
  border-radius: 999px;
  color: #ffffff;
  font-weight: 900;
}

.play-chip {
  right: 12px;
  bottom: 12px;
  padding: 5px 11px;
  background: rgba(234, 88, 12, 0.92);
  font-size: 12px;
}

.rank-badge {
  top: 12px;
  left: 12px;
  display: grid;
  min-width: 34px;
  height: 34px;
  place-items: center;
  background: linear-gradient(135deg, var(--orange), var(--red));
  box-shadow: 0 10px 22px rgba(220, 38, 38, 0.32);
}

.card-body {
  padding: 18px;
}

.card-meta {
  margin-bottom: 8px;
  color: var(--orange);
  font-size: 12px;
  font-weight: 900;
}

.card-body h3 {
  margin: 0 0 10px;
  font-size: 18px;
  line-height: 1.28;
}

.card-body h3 a:hover {
  color: var(--orange);
}

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

.category-band {
  background: #ffffff;
}

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

.category-tile,
.category-card-large {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: linear-gradient(135deg, #ffffff, #fff7ed);
  box-shadow: 0 12px 28px rgba(17, 24, 39, 0.07);
}

.category-tile {
  min-height: 150px;
  padding: 22px;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

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

.category-tile span {
  display: block;
  margin-bottom: 10px;
  color: var(--orange);
  font-size: 20px;
  font-weight: 950;
}

.category-tile strong {
  display: block;
  color: #374151;
  font-size: 14px;
}

.ranking-strip,
.dark-hero {
  background: linear-gradient(135deg, #111827, #1f2937, #111827);
  color: #ffffff;
}

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

.ranking-grid .movie-card {
  background: #ffffff;
  color: var(--text);
}

.page-hero,
.detail-hero {
  position: relative;
  overflow: hidden;
  padding: 72px 0;
  background: linear-gradient(135deg, #111827, #1f2937);
  color: #ffffff;
}

.page-hero.soft {
  background: linear-gradient(135deg, #fff7ed, #ffffff);
  color: var(--text);
}

.page-hero h1,
.detail-head h1 {
  max-width: 920px;
  margin: 0 0 16px;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.08;
  font-weight: 950;
  letter-spacing: -0.05em;
}

.page-hero p {
  max-width: 760px;
  margin: 0;
  color: inherit;
  opacity: 0.82;
  font-size: 18px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
  color: currentColor;
  opacity: 0.82;
  font-size: 14px;
  font-weight: 700;
}

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

.filter-panel {
  display: grid;
  grid-template-columns: 0.8fr 1.5fr;
  gap: 24px;
  margin-bottom: 28px;
  padding: 24px;
  border-radius: var(--radius);
  background: #ffffff;
  box-shadow: 0 12px 32px rgba(17, 24, 39, 0.08);
}

.filter-panel h2 {
  margin: 0 0 8px;
  font-size: 24px;
  font-weight: 950;
}

.filter-panel p {
  margin: 0;
  color: var(--muted);
}

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

.filter-controls label span {
  display: block;
  margin-bottom: 6px;
  color: #4b5563;
  font-size: 13px;
  font-weight: 900;
}

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

.category-card-large {
  display: grid;
  grid-template-columns: 190px 1fr;
  gap: 20px;
  padding: 18px;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.category-cover-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 5px;
  min-height: 150px;
  overflow: hidden;
  border-radius: 14px;
}

.category-cover-row img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.category-card-large h2 {
  margin: 8px 0 10px;
  font-size: 26px;
}

.category-card-large p {
  margin: 0 0 14px;
  color: var(--muted);
}

.rank-layout {
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 28px;
  align-items: start;
}

.rank-list {
  position: sticky;
  top: 96px;
  display: grid;
  gap: 10px;
}

.rank-row {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 8px 12px;
  padding: 14px;
  border-radius: 16px;
  background: #ffffff;
  box-shadow: 0 8px 20px rgba(17, 24, 39, 0.06);
}

.rank-row span {
  grid-row: span 2;
  color: var(--orange);
  font-weight: 950;
}

.rank-row strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

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

.detail-hero {
  min-height: 520px;
  padding: 0;
  background: #111827;
}

.detail-bg,
.detail-mask {
  position: absolute;
  inset: 0;
}

.detail-bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.38;
  filter: blur(2px);
  transform: scale(1.02);
}

.detail-mask {
  background: linear-gradient(90deg, rgba(17, 24, 39, 0.94), rgba(17, 24, 39, 0.70), rgba(17, 24, 39, 0.38));
}

.detail-head {
  position: relative;
  z-index: 2;
  padding: 72px 0;
  color: #ffffff;
}

.detail-title-row {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 34px;
  align-items: center;
}

.detail-poster {
  width: 240px;
  aspect-ratio: 2 / 3;
  border-radius: 22px;
  object-fit: cover;
  box-shadow: 0 28px 60px rgba(0, 0, 0, 0.35);
}

.detail-head p {
  max-width: 820px;
  margin: 0 0 22px;
  color: #e5e7eb;
  font-size: 19px;
}

.tag-row.large span {
  background: rgba(255, 255, 255, 0.13);
  color: #ffffff;
}

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

.player-box {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  background: #000000;
  box-shadow: 0 28px 60px rgba(17, 24, 39, 0.18);
}

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

.player-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border: 0;
  background: rgba(0, 0, 0, 0.42);
  color: #ffffff;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

.player-overlay span {
  display: grid;
  width: 82px;
  height: 82px;
  place-items: center;
  border-radius: 999px;
  background: var(--orange);
  color: #ffffff;
  font-size: 30px;
  box-shadow: 0 18px 35px rgba(234, 88, 12, 0.34);
}

.player-overlay strong {
  font-size: 18px;
}

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

.content-card,
.info-panel {
  margin-top: 24px;
  padding: 26px;
  border-radius: 22px;
  background: #ffffff;
  box-shadow: 0 12px 32px rgba(17, 24, 39, 0.08);
}

.content-card h2,
.info-panel h2 {
  margin: 0 0 16px;
  font-size: 24px;
  font-weight: 950;
}

.content-card p {
  margin: 0;
  color: #374151;
  font-size: 17px;
}

.info-panel {
  position: sticky;
  top: 96px;
  margin-top: 0;
}

.info-panel dl {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 12px;
  margin: 0;
}

.info-panel dt {
  color: var(--muted);
  font-weight: 900;
}

.info-panel dd {
  margin: 0;
}

.info-panel a {
  color: var(--orange);
  font-weight: 900;
}

.site-footer {
  margin-top: 40px;
  background: linear-gradient(135deg, #111827, #1f2937, #111827);
  color: #d1d5db;
}

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

.footer-brand {
  margin-bottom: 12px;
  color: #ffffff;
  font-size: 24px;
  font-weight: 950;
}

.site-footer p {
  max-width: 500px;
  margin: 0;
  color: #9ca3af;
}

.site-footer h3 {
  margin: 0 0 12px;
  color: #ffffff;
  font-size: 17px;
}

.site-footer a,
.site-footer span {
  display: block;
  margin: 8px 0;
  color: #d1d5db;
}

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

.footer-bottom {
  padding: 18px 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.09);
  color: #9ca3af;
  text-align: center;
  font-size: 14px;
}

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

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

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

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

  .rank-list,
  .info-panel {
    position: static;
  }
}

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

  .nav-links {
    display: none;
  }

  .menu-toggle {
    display: block;
  }

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

  .hero {
    height: 680px;
    min-height: 680px;
  }

  .hero-content {
    justify-content: flex-end;
    padding-bottom: 96px;
  }

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

  .quick-search {
    grid-template-columns: 1fr;
  }

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

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

  .movie-grid,
  .ranking-grid,
  .category-grid,
  .category-list-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
  }

  .filter-panel,
  .filter-controls,
  .category-card-large,
  .detail-title-row,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .detail-poster {
    width: min(220px, 70vw);
  }

  .detail-head {
    padding: 46px 0;
  }
}

@media (max-width: 520px) {
  .movie-grid,
  .ranking-grid,
  .category-grid,
  .category-list-grid {
    grid-template-columns: 1fr;
  }

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

  .hero-content h1,
  .hero-content h2,
  .page-hero h1,
  .detail-head h1 {
    font-size: 36px;
  }

  .card-body p {
    min-height: auto;
  }
}
