:root {
  --orange: #f97316;
  --orange-dark: #ea580c;
  --amber: #f59e0b;
  --ink: #111827;
  --text: #374151;
  --muted: #6b7280;
  --line: #e5e7eb;
  --soft: #fff7ed;
  --white: #ffffff;
  --shadow: 0 18px 45px rgba(15, 23, 42, 0.12);
  --radius: 22px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: linear-gradient(180deg, #fff7ed 0%, #ffffff 34%, #f9fafb 100%);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  line-height: 1.65;
}

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

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

.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);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(229, 231, 235, 0.85);
}

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

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 22px;
  font-weight: 800;
  color: var(--ink);
}

.logo-mark {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 14px;
  color: var(--white);
  background: linear-gradient(135deg, var(--orange), var(--amber));
  box-shadow: 0 12px 25px rgba(249, 115, 22, 0.28);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-link {
  padding: 10px 14px;
  border-radius: 999px;
  font-size: 15px;
  color: #4b5563;
  transition: color 0.2s ease, background 0.2s ease;
}

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

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

.menu-toggle span {
  display: block;
  height: 2px;
  margin: 5px 0;
  background: var(--orange-dark);
  border-radius: 999px;
}

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

.hero-stage {
  position: relative;
  min-height: 640px;
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  align-items: center;
  gap: 56px;
  padding: 70px max(32px, calc((100vw - 1180px) / 2)) 92px;
  color: var(--white);
  opacity: 0;
  transform: scale(1.02);
  pointer-events: none;
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.hero-slide::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(90deg, rgba(15, 23, 42, 0.96), rgba(15, 23, 42, 0.74), rgba(15, 23, 42, 0.42)), var(--hero-image);
  background-size: cover;
  background-position: center;
  filter: saturate(1.08);
  transform: scale(1.04);
}

.hero-slide::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 160px;
  background: linear-gradient(180deg, transparent, #fff7ed);
}

.hero-slide.is-active {
  position: relative;
  opacity: 1;
  transform: scale(1);
  pointer-events: auto;
}

.hero-content,
.hero-media {
  position: relative;
  z-index: 2;
}

.hero-content h1 {
  margin: 0;
  max-width: 760px;
  font-size: clamp(40px, 6vw, 72px);
  line-height: 1.04;
  letter-spacing: -0.06em;
}

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

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

.hero-media {
  justify-self: end;
  width: min(410px, 100%);
  aspect-ratio: 3 / 4.1;
  border-radius: 32px;
  overflow: hidden;
  box-shadow: 0 35px 85px rgba(0, 0, 0, 0.42);
  transform: rotate(2deg);
}

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

.hero-tags,
.detail-tags,
.card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

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

.hero-tags span,
.detail-tags span,
.card-tags span {
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  color: #fff7ed;
  padding: 6px 11px;
  font-size: 12px;
  font-weight: 700;
}

.card-tags span,
.detail-tags span {
  background: #ffedd5;
  color: #c2410c;
}

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

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

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

.btn.primary {
  color: var(--white);
  background: linear-gradient(135deg, var(--orange), var(--amber));
  box-shadow: 0 16px 35px rgba(249, 115, 22, 0.35);
}

.btn.ghost {
  color: var(--white);
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.22);
}

.btn.text {
  color: #fed7aa;
  padding-left: 8px;
  padding-right: 8px;
}

.btn.small {
  min-height: 38px;
  padding: 0 16px;
  color: var(--white);
  background: var(--orange);
}

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

.hero-arrow,
.hero-dot {
  border: 0;
  color: var(--white);
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(6px);
  cursor: pointer;
}

.hero-arrow {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  font-size: 30px;
  line-height: 1;
}

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

.hero-dot {
  width: 10px;
  height: 10px;
  padding: 0;
  border-radius: 999px;
  transition: width 0.2s ease, background 0.2s ease;
}

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

.quick-search {
  margin-top: -32px;
  position: relative;
  z-index: 6;
}

.quick-search-form {
  display: flex;
  gap: 12px;
  padding: 16px;
  border-radius: 24px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.quick-search-form input,
.filter-controls input,
.filter-controls select {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 0 16px;
  color: var(--ink);
  outline: none;
  background: var(--white);
}

.quick-search-form button {
  min-width: 118px;
  border: 0;
  border-radius: 16px;
  color: var(--white);
  background: var(--orange);
  font-weight: 800;
  cursor: pointer;
}

.content-section {
  padding: 58px 0 0;
}

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

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

.section-heading h2,
.filter-panel h2,
.ranking-head h2,
.player-section h2,
.detail-article h2 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(24px, 3vw, 36px);
  line-height: 1.2;
}

.section-heading p,
.filter-panel p {
  margin: 8px 0 0;
  color: var(--muted);
}

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

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

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

.movie-card {
  overflow: hidden;
  border: 1px solid rgba(229, 231, 235, 0.88);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.06);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

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

.poster-link {
  position: relative;
  display: block;
  aspect-ratio: 3 / 4;
  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.06);
}

.score-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  height: 30px;
  padding: 0 8px;
  border-radius: 999px;
  color: var(--white);
  background: rgba(17, 24, 39, 0.75);
  font-size: 13px;
  font-weight: 900;
}

.movie-card-body {
  padding: 16px;
}

.card-meta,
.meta-line,
.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  color: var(--muted);
  font-size: 13px;
}

.movie-card h3 {
  margin: 8px 0 8px;
  color: var(--ink);
  font-size: 18px;
  line-height: 1.28;
}

.movie-card p {
  min-height: 50px;
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 14px;
}

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

.category-tile,
.category-summary {
  position: relative;
  min-height: 148px;
  overflow: hidden;
  border-radius: 24px;
  padding: 22px;
  color: var(--white);
  background-image: linear-gradient(135deg, rgba(17, 24, 39, 0.82), rgba(249, 115, 22, 0.62)), var(--tile-image);
  background-size: cover;
  background-position: center;
  box-shadow: var(--shadow);
}

.category-tile span,
.category-summary h2 {
  display: block;
  font-size: 22px;
  font-weight: 900;
}

.category-tile strong,
.category-summary p {
  display: block;
  margin-top: 12px;
  color: #fed7aa;
  font-size: 14px;
}

.category-summary {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  min-height: 190px;
  background-image: linear-gradient(135deg, rgba(17, 24, 39, 0.82), rgba(249, 115, 22, 0.62)), var(--summary-image);
}

.split-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 30px;
  padding-top: 58px;
}

.ranking-card {
  position: sticky;
  top: 98px;
  align-self: start;
  border-radius: 26px;
  padding: 22px;
  background: #111827;
  color: var(--white);
  box-shadow: var(--shadow);
}

.ranking-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.ranking-head h2 {
  color: var(--white);
  font-size: 24px;
}

.ranking-head a {
  color: #fed7aa;
  font-weight: 800;
}

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

.rank-row {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) 46px;
  align-items: center;
  gap: 10px;
  padding: 12px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.08);
}

.rank-index {
  color: #fed7aa;
  font-weight: 900;
}

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

.rank-score {
  color: var(--amber);
  font-weight: 900;
  text-align: right;
}

.sub-hero {
  padding: 82px 0 64px;
  color: var(--white);
  background: radial-gradient(circle at 20% 20%, rgba(249, 115, 22, 0.36), transparent 38%), linear-gradient(135deg, #111827, #1f2937);
}

.sub-hero h1 {
  margin: 0;
  max-width: 780px;
  font-size: clamp(38px, 5vw, 64px);
  line-height: 1.08;
  letter-spacing: -0.05em;
}

.sub-hero p {
  max-width: 760px;
  margin: 18px 0 0;
  color: #e5e7eb;
  font-size: 17px;
}

.filter-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 480px);
  gap: 22px;
  align-items: end;
  margin-bottom: 24px;
  padding: 22px;
  border: 1px solid rgba(229, 231, 235, 0.9);
  border-radius: 26px;
  background: var(--white);
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.06);
}

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

.empty-state {
  display: none;
  margin-top: 22px;
  padding: 30px;
  border-radius: 20px;
  color: var(--muted);
  background: var(--white);
  text-align: center;
}

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

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

.ranking-item {
  display: grid;
  grid-template-columns: 92px 60px minmax(0, 1fr) 80px;
  gap: 18px;
  align-items: center;
  padding: 16px;
  border: 1px solid rgba(229, 231, 235, 0.9);
  border-radius: 24px;
  background: var(--white);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.05);
}

.ranking-cover {
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border-radius: 16px;
  background: #111827;
}

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

.ranking-number {
  color: var(--orange);
  font-size: 30px;
  font-weight: 900;
}

.ranking-info h2 {
  margin: 0 0 8px;
  color: var(--ink);
  font-size: 22px;
}

.ranking-info p {
  margin: 0 0 10px;
  color: var(--muted);
}

.ranking-score {
  color: var(--orange-dark);
  font-size: 28px;
  font-weight: 900;
  text-align: right;
}

.detail-hero {
  position: relative;
  overflow: hidden;
  padding: 72px 0;
  color: var(--white);
  background-image: linear-gradient(90deg, rgba(17, 24, 39, 0.97), rgba(17, 24, 39, 0.76), rgba(17, 24, 39, 0.55)), var(--detail-image);
  background-size: cover;
  background-position: center;
}

.detail-hero-inner {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 38px;
  align-items: center;
}

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

.detail-poster img {
  width: 100%;
  aspect-ratio: 3 / 4.1;
  object-fit: cover;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
  color: #fed7aa;
  font-weight: 700;
}

.detail-copy h1 {
  margin: 0;
  max-width: 860px;
  font-size: clamp(38px, 5vw, 66px);
  line-height: 1.05;
  letter-spacing: -0.05em;
}

.detail-one-line {
  max-width: 840px;
  margin: 20px 0;
  color: #f3f4f6;
  font-size: 18px;
}

.detail-meta {
  color: #d1d5db;
  margin-bottom: 16px;
}

.detail-tags {
  margin-bottom: 24px;
}

.player-section {
  padding-top: 58px;
}

.movie-player {
  position: relative;
  overflow: hidden;
  margin-top: 18px;
  border-radius: 28px;
  background: #000000;
  box-shadow: var(--shadow);
}

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

.player-cover {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 18px;
  border: 0;
  color: var(--white);
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.74));
  cursor: pointer;
}

.player-cover.is-hidden {
  display: none;
}

.play-icon {
  display: grid;
  place-items: center;
  width: 76px;
  height: 76px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--orange), var(--amber));
  box-shadow: 0 16px 35px rgba(249, 115, 22, 0.35);
  font-size: 28px;
  padding-left: 5px;
}

.player-cover strong {
  font-size: 22px;
}

.detail-section {
  padding-top: 44px;
}

.detail-article {
  padding: 30px;
  border-radius: 28px;
  background: var(--white);
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.06);
}

.detail-article h2 + p {
  margin-top: 10px;
}

.detail-article p {
  margin: 0 0 24px;
  color: var(--text);
}

.site-footer {
  margin-top: 70px;
  padding: 34px 0;
  color: #d1d5db;
  background: #111827;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.footer-inner p {
  margin: 6px 0 0;
  color: #9ca3af;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.footer-links a {
  color: #fed7aa;
}

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

  .split-section {
    grid-template-columns: 1fr;
  }

  .ranking-card {
    position: static;
  }
}

@media (max-width: 820px) {
  .header-inner {
    min-height: 66px;
  }

  .menu-toggle {
    display: block;
  }

  .main-nav {
    position: absolute;
    left: 16px;
    right: 16px;
    top: 72px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 14px;
    border-radius: 22px;
    background: var(--white);
    box-shadow: var(--shadow);
  }

  .main-nav.is-open {
    display: flex;
  }

  .hero,
  .hero-stage {
    min-height: 760px;
  }

  .hero-slide {
    grid-template-columns: 1fr;
    gap: 28px;
    padding: 42px 16px 94px;
  }

  .hero-media {
    justify-self: start;
    width: min(250px, 68vw);
    order: -1;
    transform: none;
  }

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

  .quick-search-form,
  .filter-panel,
  .detail-hero-inner,
  .footer-inner {
    grid-template-columns: 1fr;
    flex-direction: column;
    align-items: stretch;
  }

  .filter-controls {
    grid-template-columns: 1fr;
  }

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

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

  .ranking-item {
    grid-template-columns: 78px minmax(0, 1fr) 56px;
  }

  .ranking-number {
    display: none;
  }

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

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

  .logo {
    font-size: 18px;
  }

  .logo-mark {
    width: 36px;
    height: 36px;
  }

  .hero-content h1,
  .sub-hero h1,
  .detail-copy h1 {
    font-size: 34px;
  }

  .movie-grid,
  .compact-grid,
  .category-grid,
  .category-summary-grid {
    grid-template-columns: 1fr;
  }

  .ranking-item {
    grid-template-columns: 72px minmax(0, 1fr);
  }

  .ranking-score {
    grid-column: 2;
    text-align: left;
    font-size: 22px;
  }
}
