:root {
  --bg: #f8fafc;
  --card: #ffffff;
  --text: #111827;
  --muted: #6b7280;
  --line: #e5e7eb;
  --orange: #f97316;
  --orange-dark: #ea580c;
  --red: #dc2626;
  --gold: #f59e0b;
  --dark: #111827;
  --radius: 18px;
  --shadow: 0 18px 45px rgba(15, 23, 42, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Inter", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
}

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

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

button,
input {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: linear-gradient(90deg, #ea580c, #ef4444, #f97316);
  box-shadow: 0 12px 28px rgba(194, 65, 12, 0.25);
}

.nav-shell {
  max-width: 1280px;
  margin: 0 auto;
  min-height: 72px;
  display: flex;
  align-items: center;
  gap: 22px;
  padding: 0 22px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  font-weight: 800;
  white-space: nowrap;
  letter-spacing: 0.02em;
}

.brand-mark {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  color: #ea580c;
  background: #fff;
  box-shadow: inset 0 0 0 2px rgba(255, 237, 213, 0.95);
}

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

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

.desktop-nav a {
  color: rgba(255, 255, 255, 0.86);
  padding: 8px 13px;
  border-radius: 999px;
  transition: 0.2s ease;
}

.desktop-nav a:hover,
.desktop-nav a.active {
  color: #fff;
  background: rgba(255, 255, 255, 0.16);
}

.header-search {
  width: 310px;
  display: flex;
  align-items: center;
  padding: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
}

.header-search input,
.mobile-panel input,
.page-search input,
.inline-filter input {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  padding: 10px 14px;
  color: #111827;
}

.header-search button,
.mobile-panel button,
.page-search button,
.inline-filter button {
  border: 0;
  color: #fff;
  cursor: pointer;
  border-radius: 999px;
  padding: 9px 16px;
  background: linear-gradient(90deg, var(--orange), var(--red));
  box-shadow: 0 8px 16px rgba(249, 115, 22, 0.28);
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  background: rgba(255, 255, 255, 0.14);
  border-radius: 12px;
  padding: 10px;
}

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

.mobile-panel {
  display: none;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 22px 18px;
}

.mobile-panel nav {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 12px;
}

.mobile-panel a {
  color: #fff;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.12);
}

.mobile-panel form {
  display: flex;
  gap: 8px;
  padding: 5px;
  border-radius: 18px;
  background: #fff;
}

.hero-section {
  position: relative;
  overflow: hidden;
  min-height: 610px;
  background: #111827;
}

.hero-track {
  position: relative;
  min-height: 610px;
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.72fr);
  gap: 54px;
  align-items: center;
  padding: 92px max(24px, calc((100vw - 1280px) / 2 + 22px)) 82px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.55s ease;
  background-image: linear-gradient(90deg, rgba(17, 24, 39, 0.94), rgba(17, 24, 39, 0.72), rgba(194, 65, 12, 0.34)), var(--hero-image);
  background-size: cover;
  background-position: center;
}

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

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

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  color: #fed7aa;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-copy h1 {
  margin: 0;
  font-size: clamp(42px, 6vw, 78px);
  line-height: 1.02;
  font-weight: 900;
  letter-spacing: -0.055em;
}

.hero-copy p {
  margin: 22px 0 0;
  max-width: 650px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 20px;
  line-height: 1.8;
}

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

.hero-tags span,
.detail-meta span,
.rank-meta span {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 6px 11px;
  border-radius: 999px;
  color: #fff;
  background: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(10px);
}

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

.primary-btn,
.ghost-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 13px 25px;
  font-weight: 800;
  transition: 0.22s ease;
}

.primary-btn {
  color: #fff;
  background: linear-gradient(90deg, var(--orange), var(--red));
  box-shadow: 0 16px 30px rgba(239, 68, 68, 0.28);
}

.primary-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 40px rgba(239, 68, 68, 0.36);
}

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

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

.hero-poster {
  position: relative;
  display: block;
  border-radius: 28px;
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
  transform: rotate(2deg);
}

.hero-poster::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.02), rgba(0, 0, 0, 0.34));
}

.hero-poster img {
  aspect-ratio: 3 / 4.1;
  object-fit: cover;
  min-height: 430px;
}

.hero-controls {
  position: absolute;
  left: 50%;
  bottom: 28px;
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 14px;
  transform: translateX(-50%);
}

.hero-prev,
.hero-next,
.hero-dot {
  border: 0;
  color: #fff;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(10px);
}

.hero-prev,
.hero-next {
  width: 42px;
  height: 42px;
  border-radius: 999px;
  font-size: 28px;
  line-height: 1;
}

.hero-dots {
  display: flex;
  gap: 8px;
}

.hero-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  padding: 0;
  opacity: 0.62;
}

.hero-dot.active {
  width: 28px;
  opacity: 1;
  background: #fff;
}

.home-search-band {
  max-width: 1180px;
  margin: -44px auto 0;
  position: relative;
  z-index: 8;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 0.8fr);
  gap: 24px;
  align-items: center;
  padding: 28px;
  border-radius: 26px;
  background: #fff;
  box-shadow: var(--shadow);
}

.home-search-band h2,
.section-heading h2,
.page-hero h1,
.detail-copy h1,
.player-shell h2,
.content-card h2 {
  margin: 0;
  color: var(--text);
}

.home-search-band p,
.page-hero p,
.card-desc,
.content-card p,
.detail-one-line,
.rank-main p {
  color: var(--muted);
  line-height: 1.75;
}

.home-search-band form,
.page-search,
.inline-filter {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px;
  border-radius: 999px;
  background: #f3f4f6;
}

.section-block {
  max-width: 1280px;
  margin: 0 auto;
  padding: 54px 22px;
}

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

.section-heading.compact {
  align-items: center;
}

.section-heading span {
  color: var(--orange);
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.section-heading h2 {
  margin-top: 6px;
  font-size: clamp(26px, 3vw, 38px);
  letter-spacing: -0.035em;
}

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

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

.category-tile {
  min-height: 132px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 22px;
  border-radius: 22px;
  color: #fff;
  background: linear-gradient(135deg, #111827, #7c2d12 55%, #f97316);
  box-shadow: var(--shadow);
  overflow: hidden;
  position: relative;
}

.category-tile::after {
  content: "";
  position: absolute;
  right: -30px;
  top: -30px;
  width: 100px;
  height: 100px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.13);
}

.category-tile span {
  font-size: 24px;
  font-weight: 900;
}

.category-tile em {
  color: rgba(255, 255, 255, 0.74);
  font-style: normal;
  line-height: 1.6;
}

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

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

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

.movie-card {
  border-radius: 18px;
  overflow: hidden;
  background: var(--card);
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.08);
  transition: 0.25s ease;
}

.movie-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 22px 45px rgba(15, 23, 42, 0.15);
}

.poster-link {
  position: relative;
  display: block;
  overflow: hidden;
  background: #111827;
}

.poster-link img {
  aspect-ratio: 3 / 4;
  object-fit: cover;
  transition: transform 0.45s ease;
}

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

.card-badge,
.card-score {
  position: absolute;
  z-index: 2;
  border-radius: 999px;
  padding: 6px 10px;
  color: #fff;
  font-size: 12px;
  font-weight: 800;
}

.card-badge {
  left: 10px;
  top: 10px;
  background: rgba(249, 115, 22, 0.95);
}

.card-score {
  right: 10px;
  top: 10px;
  background: rgba(17, 24, 39, 0.74);
  backdrop-filter: blur(8px);
}

.card-body {
  padding: 16px;
}

.card-body h3 {
  margin: 0;
  font-size: 17px;
  line-height: 1.35;
}

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

.card-meta {
  margin: 8px 0 0;
  color: #9ca3af;
  font-size: 13px;
  line-height: 1.5;
}

.card-desc {
  margin: 10px 0 0;
  font-size: 14px;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 12px;
}

.tag-row span {
  display: inline-flex;
  border-radius: 999px;
  padding: 5px 9px;
  color: #c2410c;
  background: #ffedd5;
  font-size: 12px;
  font-weight: 700;
}

.tag-row.large span {
  padding: 7px 12px;
  font-size: 13px;
}

.rank-panel {
  position: sticky;
  top: 92px;
  align-self: start;
  border-radius: 24px;
  padding: 22px;
  background: #fff;
  box-shadow: var(--shadow);
}

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

.home-rank-row {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 12px;
  border-radius: 14px;
  background: #f9fafb;
}

.home-rank-row span {
  color: var(--orange);
  font-weight: 900;
}

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

.home-rank-row em {
  display: none;
}

.home-rank-row b {
  color: #fff;
  padding: 5px 8px;
  border-radius: 10px;
  background: #111827;
}

.page-wrap {
  min-height: 65vh;
}

.page-hero {
  padding: 82px max(22px, calc((100vw - 1280px) / 2 + 22px));
  color: #fff;
  background: linear-gradient(135deg, #111827, #7c2d12 54%, #ea580c);
}

.page-hero h1 {
  color: #fff;
  font-size: clamp(38px, 5vw, 64px);
  line-height: 1.05;
  letter-spacing: -0.05em;
}

.page-hero p {
  max-width: 760px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 18px;
}

.soft-hero {
  background: radial-gradient(circle at 78% 10%, rgba(251, 146, 60, 0.36), transparent 34%), linear-gradient(135deg, #111827, #1f2937 62%, #7c2d12);
}

.rank-hero {
  background: radial-gradient(circle at 12% 18%, rgba(250, 204, 21, 0.32), transparent 30%), linear-gradient(135deg, #111827, #991b1b 58%, #ea580c);
}

.category-hero {
  background: radial-gradient(circle at 86% 12%, rgba(255, 255, 255, 0.16), transparent 28%), linear-gradient(135deg, #111827, #9a3412 58%, #f97316);
}

.page-search {
  max-width: 720px;
  margin-top: 28px;
  background: #fff;
}

.category-chip-row {
  max-width: 1280px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 28px auto -16px;
  padding: 0 22px;
}

.category-chip-row a,
.hero-inline-links a {
  display: inline-flex;
  color: #c2410c;
  font-weight: 800;
  border-radius: 999px;
  padding: 9px 13px;
  background: #ffedd5;
}

.hero-inline-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.inline-filter {
  min-width: 300px;
}

.empty-state {
  display: none;
  padding: 34px;
  margin: 24px 0 0;
  text-align: center;
  border-radius: 18px;
  color: var(--muted);
  background: #fff;
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.08);
}

.filter-grid.is-empty + .empty-state {
  display: block;
}

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

.rank-row {
  display: grid;
  grid-template-columns: 86px 54px minmax(0, 1fr) 80px;
  gap: 18px;
  align-items: center;
  padding: 16px;
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
}

.rank-cover {
  overflow: hidden;
  border-radius: 16px;
}

.rank-cover img {
  aspect-ratio: 3 / 4;
  object-fit: cover;
}

.rank-num {
  color: var(--orange);
  font-size: 24px;
  font-weight: 900;
}

.rank-main h2 {
  margin: 0 0 8px;
  font-size: 22px;
}

.rank-main p {
  margin: 0;
}

.rank-meta span {
  color: #6b7280;
  background: #f3f4f6;
}

.rank-score {
  justify-self: end;
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  color: #fff;
  font-size: 22px;
  font-weight: 900;
  background: linear-gradient(135deg, var(--orange), var(--red));
}

.detail-hero {
  position: relative;
  color: #fff;
  background-image: linear-gradient(90deg, rgba(17, 24, 39, 0.97), rgba(17, 24, 39, 0.84), rgba(124, 45, 18, 0.55)), var(--detail-bg);
  background-size: cover;
  background-position: center;
}

.detail-shell {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 42px;
  align-items: center;
  padding: 72px 22px;
}

.detail-poster {
  overflow: hidden;
  border-radius: 26px;
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.45);
}

.detail-poster img {
  aspect-ratio: 3 / 4;
  object-fit: cover;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-bottom: 18px;
  color: rgba(255, 255, 255, 0.72);
}

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

.detail-copy h1 {
  color: #fff;
  font-size: clamp(36px, 5vw, 64px);
  line-height: 1.08;
  letter-spacing: -0.05em;
}

.detail-one-line {
  max-width: 820px;
  color: rgba(255, 255, 255, 0.84);
  font-size: 19px;
}

.player-section {
  background: #0b1120;
  padding: 54px 22px;
}

.player-shell {
  max-width: 1120px;
  margin: 0 auto;
}

.player-shell h2 {
  color: #fff;
  margin-bottom: 18px;
}

.player-box {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  background: #000;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.34);
}

.movie-player {
  display: block;
  width: 100%;
  min-height: 360px;
  max-height: 72vh;
  aspect-ratio: 16 / 9;
  background: #000;
}

.player-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  gap: 12px;
  background: radial-gradient(circle, rgba(249, 115, 22, 0.2), rgba(0, 0, 0, 0.68));
  transition: opacity 0.24s ease, visibility 0.24s ease;
}

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

.play-trigger {
  border: 0;
  border-radius: 999px;
  padding: 16px 30px;
  color: #fff;
  cursor: pointer;
  font-size: 18px;
  font-weight: 900;
  background: linear-gradient(90deg, var(--orange), var(--red));
  box-shadow: 0 16px 36px rgba(249, 115, 22, 0.36);
}

.player-status {
  align-self: start;
  margin-top: -48px;
  color: rgba(255, 255, 255, 0.86);
}

.detail-content {
  padding-top: 48px;
}

.content-card {
  padding: 32px;
  border-radius: 24px;
  background: #fff;
  box-shadow: var(--shadow);
}

.content-card h2 {
  margin-top: 28px;
  font-size: 26px;
}

.content-card h2:first-child {
  margin-top: 0;
}

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

.info-table {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 28px;
}

.info-table dl {
  margin: 0;
  padding: 16px;
  border-radius: 16px;
  background: #f9fafb;
}

.info-table dt {
  color: #9ca3af;
  font-size: 13px;
}

.info-table dd {
  margin: 6px 0 0;
  color: #111827;
  font-weight: 800;
}

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

.footer-shell {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 0.8fr;
  gap: 42px;
  padding: 48px 22px;
}

.footer-brand {
  display: inline-flex;
  margin-bottom: 12px;
  color: #fff;
  font-size: 22px;
  font-weight: 900;
}

.footer-shell p {
  max-width: 520px;
  color: #9ca3af;
  line-height: 1.8;
}

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

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

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

.footer-bottom {
  max-width: 1280px;
  margin: 0 auto;
  padding: 18px 22px 28px;
  color: #9ca3af;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

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

  .nav-shell {
    justify-content: space-between;
  }

  .nav-toggle {
    display: block;
  }

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

  .hero-slide {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .hero-poster {
    max-width: 300px;
    transform: none;
  }

  .home-search-band,
  .split-layout,
  .detail-shell {
    grid-template-columns: 1fr;
  }

  .rank-panel {
    position: static;
  }

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

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

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

  .hero-section,
  .hero-track {
    min-height: 690px;
  }

  .hero-slide {
    padding-top: 58px;
    padding-bottom: 92px;
  }

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

  .home-search-band {
    margin: 0;
    border-radius: 0;
  }

  .home-search-band form,
  .page-search,
  .inline-filter {
    border-radius: 18px;
    align-items: stretch;
    flex-direction: column;
  }

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

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

  .category-grid,
  .footer-shell,
  .info-table {
    grid-template-columns: 1fr;
  }

  .rank-row {
    grid-template-columns: 70px minmax(0, 1fr);
  }

  .rank-num,
  .rank-score {
    display: none;
  }

  .detail-shell {
    padding-top: 46px;
  }

  .detail-poster {
    max-width: 240px;
  }

  .movie-player {
    min-height: 220px;
  }
}

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

  .mobile-panel nav {
    grid-template-columns: 1fr;
  }
}
