:root {
  --bg: #f9fafb;
  --paper: #ffffff;
  --ink: #111827;
  --muted: #6b7280;
  --line: #e5e7eb;
  --soft: #f3f4f6;
  --orange: #ea580c;
  --orange-dark: #c2410c;
  --red: #dc2626;
  --shadow: 0 18px 40px rgba(15, 23, 42, 0.10);
  --radius: 22px;
}

* {
  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(--ink);
  background: var(--bg);
  line-height: 1.6;
}

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

img,
video {
  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.92);
  border-bottom: 1px solid rgba(229, 231, 235, 0.86);
  backdrop-filter: blur(18px);
}

.header-inner {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
}

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

.brand-mark {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--orange), var(--red));
  box-shadow: 0 10px 22px rgba(234, 88, 12, 0.28);
}

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

.brand-text strong {
  font-size: 24px;
  line-height: 1.1;
  background: linear-gradient(135deg, var(--orange), var(--red));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.brand-text small {
  color: var(--muted);
  font-size: 12px;
}

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

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

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

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  padding: 8px;
  border: 0;
  border-radius: 14px;
  background: var(--soft);
}

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

.mobile-nav {
  display: none;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto 14px;
  padding: 12px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow);
}

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

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

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

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

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 900ms ease;
}

.hero-slide.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.84), rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0.12));
}

.hero-content {
  position: absolute;
  left: max(24px, calc((100vw - 1180px) / 2));
  top: 50%;
  width: min(660px, calc(100% - 48px));
  transform: translateY(-50%);
  color: #ffffff;
}

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

.hero-content h1 {
  margin: 18px 0 16px;
  font-size: clamp(42px, 7vw, 72px);
  line-height: 1.05;
  font-weight: 900;
  letter-spacing: -0.04em;
}

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

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-bottom: 28px;
  color: #f9fafb;
  font-weight: 700;
}

.hero-actions,
.band-links,
.hero-cats {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.primary-btn,
.ghost-btn,
.rank-action,
.category-copy a,
.quick-search button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 999px;
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.primary-btn,
.quick-search button {
  padding: 14px 26px;
  color: #ffffff;
  background: var(--orange);
}

.primary-btn:hover,
.quick-search button:hover {
  background: var(--orange-dark);
  transform: translateY(-1px);
}

.ghost-btn {
  padding: 14px 24px;
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.54);
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(12px);
}

.ghost-btn:hover {
  background: rgba(255, 255, 255, 0.2);
}

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

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

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

.hero-search-panel {
  position: absolute;
  right: max(24px, calc((100vw - 1180px) / 2));
  bottom: 84px;
  width: min(410px, calc(100% - 48px));
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 24px;
  background: rgba(17, 24, 39, 0.48);
  backdrop-filter: blur(18px);
}

.quick-search {
  display: flex;
  gap: 10px;
  margin-bottom: 14px;
}

.quick-search input,
.tool-row input,
.tool-row select {
  width: 100%;
  min-height: 46px;
  padding: 0 14px;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #ffffff;
  outline: none;
}

.quick-search button {
  min-width: 86px;
  padding: 0 18px;
}

.hero-cats a,
.band-links a {
  padding: 9px 15px;
  color: #ffffff;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  font-weight: 700;
}

.hero-cats a:hover,
.band-links a:hover {
  background: rgba(255, 255, 255, 0.28);
}

.section {
  padding: 72px 0;
}

.muted-section {
  background: #f3f4f6;
}

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

.section-head h2,
.page-hero h1,
.detail-main h1 {
  margin: 0;
  color: #111827;
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1.16;
  font-weight: 900;
  letter-spacing: -0.03em;
}

.section-head p,
.page-hero p,
.category-copy p {
  margin: 8px 0 0;
  color: var(--muted);
}

.section-head a {
  color: var(--orange);
  font-weight: 800;
}

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

.movie-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

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

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

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

.year-badge,
.rank-badge {
  position: absolute;
  top: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 54px;
  padding: 6px 10px;
  color: #ffffff;
  border-radius: 999px;
  background: rgba(234, 88, 12, 0.92);
  font-size: 13px;
  font-weight: 900;
}

.year-badge {
  left: 12px;
}

.rank-badge {
  right: 12px;
  min-width: 34px;
  background: rgba(220, 38, 38, 0.94);
}

.movie-info {
  padding: 18px;
}

.movie-title {
  display: block;
  color: #111827;
  font-size: 19px;
  line-height: 1.25;
  font-weight: 900;
}

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

.movie-meta {
  margin: 8px 0;
  color: var(--orange);
  font-size: 13px;
  font-weight: 800;
}

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

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

.tag-row span {
  padding: 5px 9px;
  color: #374151;
  border-radius: 999px;
  background: #f3f4f6;
  font-size: 12px;
  font-weight: 700;
}

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

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

.rank-item {
  display: grid;
  grid-template-columns: auto 86px 1fr auto;
  align-items: center;
  gap: 16px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: #ffffff;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.05);
}

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

.rank-thumb {
  aspect-ratio: 2 / 3;
  overflow: hidden;
  border-radius: 14px;
  background: #111827;
}

.rank-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.rank-copy p,
.rank-copy span {
  display: block;
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.rank-title {
  color: #111827;
  font-size: 18px;
  font-weight: 900;
}

.rank-action {
  padding: 9px 16px;
  color: #ffffff;
  background: var(--orange);
}

.category-band {
  padding: 76px 0;
  color: #ffffff;
  background: linear-gradient(135deg, var(--orange), var(--red));
}

.band-inner {
  text-align: center;
}

.band-inner h2 {
  margin: 0 0 12px;
  font-size: clamp(30px, 5vw, 46px);
  font-weight: 900;
}

.band-inner p {
  margin: 0 auto 26px;
  max-width: 680px;
  color: #ffedd5;
  font-size: 18px;
}

.band-links {
  justify-content: center;
}

.page-hero {
  padding: 78px 0 64px;
  background: linear-gradient(135deg, #fff7ed, #fef2f2);
}

.channel-hero,
.rank-hero,
.search-hero {
  background: radial-gradient(circle at top right, rgba(234, 88, 12, 0.18), transparent 36%), linear-gradient(135deg, #fff7ed, #ffffff);
}

.page-hero .eyebrow {
  margin-bottom: 16px;
}

.tool-row {
  display: flex;
  gap: 12px;
  max-width: 680px;
  margin-top: 28px;
}

.tool-row.multi {
  max-width: 760px;
}

.tool-row select {
  max-width: 210px;
}

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

.category-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 26px;
  background: #ffffff;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
}

.category-preview {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 4px;
  height: 210px;
  background: #111827;
}

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

.category-copy {
  padding: 24px;
}

.category-copy h2 {
  margin: 0;
  font-size: 26px;
  font-weight: 900;
}

.category-copy a {
  margin-top: 18px;
  padding: 11px 20px;
  color: #ffffff;
  background: var(--orange);
}

.player-section {
  padding: 28px 0;
  background: #000000;
}

.player-shell {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border-radius: 0 0 24px 24px;
  background: #000000;
}

.player-video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000000;
  cursor: pointer;
}

.player-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  color: #ffffff;
  background: rgba(0, 0, 0, 0.35);
  cursor: pointer;
}

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

.player-overlay span {
  width: 92px;
  height: 92px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding-left: 6px;
  border-radius: 999px;
  background: var(--orange);
  box-shadow: 0 14px 32px rgba(234, 88, 12, 0.36);
  font-size: 42px;
}

.player-controls {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  gap: 10px;
  padding: 18px;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.75), transparent);
}

.player-controls button {
  padding: 9px 14px;
  color: #ffffff;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  cursor: pointer;
}

.player-controls button:hover {
  background: rgba(255, 255, 255, 0.28);
}

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

.detail-main,
.side-card {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: #ffffff;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
}

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

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

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

.detail-meta span {
  padding: 8px 12px;
  border-radius: 999px;
  color: #9a3412;
  background: #ffedd5;
  font-weight: 800;
}

.detail-main h2,
.side-card h2 {
  margin: 24px 0 10px;
  font-size: 22px;
  font-weight: 900;
}

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

.detail-side > img {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  margin-bottom: 18px;
  border-radius: 24px;
  box-shadow: var(--shadow);
}

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

.mini-list {
  display: grid;
  gap: 12px;
}

.movie-card.mini {
  display: grid;
  grid-template-columns: 84px 1fr;
  border-radius: 16px;
}

.movie-card.mini .poster-link {
  aspect-ratio: 2 / 3;
}

.movie-card.mini .movie-info {
  padding: 12px;
}

.movie-card.mini .movie-title {
  font-size: 15px;
}

.movie-card.mini .movie-desc,
.movie-card.mini .tag-row,
.movie-card.mini .year-badge {
  display: none;
}

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

.footer-inner {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 32px;
  padding: 46px 0;
}

.footer-inner h3 {
  margin: 0 0 14px;
  color: #ffffff;
}

.footer-inner p {
  max-width: 420px;
  color: #9ca3af;
}

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

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

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

.hidden-card {
  display: none !important;
}

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

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

  .detail-side {
    max-width: 420px;
  }
}

@media (max-width: 760px) {
  .desktop-nav {
    display: none;
  }

  .menu-toggle {
    display: block;
  }

  .hero-carousel {
    min-height: 720px;
  }

  .hero-content {
    top: 42%;
  }

  .hero-search-panel {
    left: 16px;
    right: 16px;
    bottom: 82px;
    width: auto;
  }

  .quick-search,
  .tool-row {
    flex-direction: column;
  }

  .tool-row select {
    max-width: none;
  }

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

  .movie-info {
    padding: 14px;
  }

  .movie-title {
    font-size: 16px;
  }

  .rank-item {
    grid-template-columns: 52px 1fr;
  }

  .rank-item .list-rank {
    grid-row: span 2;
  }

  .rank-thumb {
    width: 52px;
  }

  .rank-action {
    display: none;
  }

  .category-preview {
    height: 150px;
  }

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

  .detail-main,
  .side-card {
    padding: 20px;
  }
}

@media (max-width: 460px) {
  .movie-grid {
    grid-template-columns: 1fr;
  }

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

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