:root {
  --amber: #d97706;
  --orange: #f97316;
  --deep: #111827;
  --ink: #1f2937;
  --muted: #6b7280;
  --soft: #fff7ed;
  --line: #e5e7eb;
  --card: #ffffff;
  --shadow: 0 18px 45px rgba(17, 24, 39, 0.12);
  --radius: 22px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: Inter, "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  color: var(--ink);
  background: linear-gradient(180deg, #fff7ed 0%, #ffffff 34%, #f9fafb 100%);
}

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

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

button,
input,
select {
  font: inherit;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  color: #ffffff;
  background: linear-gradient(90deg, var(--amber), var(--orange));
  box-shadow: 0 10px 28px rgba(217, 119, 6, 0.24);
}

.nav-row {
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.site-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.logo-mark {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  color: var(--orange);
  background: #ffffff;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.14);
}

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

.nav-link {
  position: relative;
  font-size: 15px;
  font-weight: 650;
  opacity: 0.9;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.nav-link:hover,
.nav-link.is-active {
  opacity: 1;
  transform: translateY(-1px);
}

.nav-link.is-active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -8px;
  height: 3px;
  border-radius: 999px;
  background: #ffffff;
}

.mobile-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.14);
  cursor: pointer;
}

.mobile-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  border-radius: 999px;
  background: #ffffff;
}

.mobile-nav {
  display: none;
  padding: 0 16px 16px;
}

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

.mobile-link {
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.1);
}

.mobile-link.is-active {
  background: rgba(255, 255, 255, 0.22);
  font-weight: 700;
}

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

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.65s ease, visibility 0.65s ease;
}

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

.hero-backdrop {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(90deg, rgba(17, 24, 39, 0.95) 0%, rgba(17, 24, 39, 0.72) 44%, rgba(17, 24, 39, 0.35) 100%), var(--hero-image);
  background-size: cover;
  background-position: center;
  transform: scale(1.04);
  filter: saturate(1.08);
}

.hero-content {
  position: relative;
  min-height: 650px;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(280px, 0.72fr);
  align-items: center;
  gap: 46px;
  padding: 72px 0 92px;
  color: #ffffff;
}

.hero-copy {
  max-width: 660px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 4px 12px;
  border-radius: 999px;
  color: #fff7ed;
  background: rgba(249, 115, 22, 0.7);
  box-shadow: 0 8px 20px rgba(249, 115, 22, 0.22);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.06em;
}

.hero-copy h1,
.hero-copy h2 {
  margin: 20px 0 18px;
  font-size: clamp(38px, 6vw, 72px);
  line-height: 1.03;
  font-weight: 900;
  letter-spacing: -0.04em;
}

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

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

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

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

.button.primary {
  color: #ffffff;
  background: linear-gradient(90deg, var(--amber), var(--orange));
  box-shadow: 0 14px 28px rgba(249, 115, 22, 0.32);
}

.button.ghost {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.25);
}

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

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

.hero-tags span,
.tag-row span {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 2px 9px;
  border-radius: 999px;
  font-size: 12px;
  color: #92400e;
  background: #ffedd5;
}

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

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

.hero-cover::before {
  content: "";
  display: block;
  padding-top: 138%;
}

.hero-cover img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

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

.hero-dot {
  width: 28px;
  height: 8px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.38);
  cursor: pointer;
}

.hero-dot.is-active {
  background: #ffffff;
}

.hero-search {
  position: absolute;
  left: 50%;
  bottom: 72px;
  z-index: 4;
  display: flex;
  width: min(640px, calc(100% - 32px));
  padding: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.22);
  transform: translateX(-50%);
}

.hero-search input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  padding: 0 18px;
  color: var(--ink);
  background: transparent;
}

.hero-search button {
  border: 0;
  border-radius: 999px;
  padding: 12px 22px;
  color: #ffffff;
  font-weight: 800;
  background: linear-gradient(90deg, var(--amber), var(--orange));
  cursor: pointer;
}

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

.section-heading {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 28px;
}

.section-heading.between {
  justify-content: space-between;
  align-items: flex-end;
}

.heading-inline {
  display: flex;
  align-items: center;
  gap: 16px;
}

.section-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--amber), var(--orange));
  box-shadow: 0 12px 24px rgba(249, 115, 22, 0.25);
}

.section-heading h2,
.ranking-head h2,
.article-panel h2,
.region-section h2 {
  margin: 0;
  color: var(--deep);
  font-size: clamp(24px, 3vw, 34px);
  font-weight: 900;
  letter-spacing: -0.02em;
}

.section-heading p {
  margin: 6px 0 0;
  color: var(--muted);
  line-height: 1.65;
}

.text-link {
  color: var(--amber);
  font-weight: 800;
}

.movie-grid {
  display: grid;
  gap: 22px;
}

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

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

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

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

.movie-card {
  min-width: 0;
}

.movie-card-link {
  display: block;
  height: 100%;
  overflow: hidden;
  border-radius: 20px;
  background: var(--card);
  box-shadow: 0 12px 34px rgba(17, 24, 39, 0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

.movie-poster {
  position: relative;
  margin: 0;
  overflow: hidden;
  background: linear-gradient(135deg, #fed7aa, #f97316);
  aspect-ratio: 16 / 9;
}

.movie-card.featured .movie-poster,
.movie-card.standard .movie-poster {
  aspect-ratio: 3 / 4;
}

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

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

.poster-shine {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 45%, rgba(0, 0, 0, 0.6));
  pointer-events: none;
}

.rank-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 2;
  min-width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  color: #ffffff;
  font-weight: 900;
  background: linear-gradient(135deg, #ef4444, #f97316);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.18);
}

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

.movie-card-body h3 {
  margin: 0 0 8px;
  color: var(--deep);
  font-size: 17px;
  line-height: 1.35;
  font-weight: 850;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}

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

.card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 12px;
  color: #6b7280;
  font-size: 12px;
}

.card-meta span:not(:last-child)::after {
  content: "·";
  margin-left: 7px;
  color: #d1d5db;
}

.warm-panel {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 42px;
  border-radius: 34px;
  background: linear-gradient(135deg, #fff7ed, #ffedd5);
  box-shadow: 0 18px 45px rgba(217, 119, 6, 0.1);
}

.category-grid,
.category-large-grid,
.region-grid {
  display: grid;
  gap: 22px;
}

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

.category-tile,
.category-card-large,
.region-tile {
  display: block;
  border: 1px solid rgba(251, 146, 60, 0.18);
  border-radius: 24px;
  padding: 18px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 14px 30px rgba(17, 24, 39, 0.06);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.category-thumbs,
.large-thumbs,
.region-tile div {
  display: grid;
  gap: 6px;
  overflow: hidden;
  margin-bottom: 14px;
  border-radius: 18px;
}

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

.category-thumbs img,
.large-thumbs img,
.region-tile img {
  width: 100%;
  height: 72px;
  object-fit: cover;
}

.category-tile h3,
.category-card-large h2,
.region-tile strong {
  display: block;
  margin: 0 0 8px;
  color: var(--deep);
  font-size: 18px;
  font-weight: 900;
}

.category-tile p,
.category-card-large p,
.region-tile span {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.65;
}

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

.category-card-large {
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr);
  gap: 20px;
  align-items: center;
}

.large-thumbs {
  grid-template-columns: repeat(3, 1fr);
  margin-bottom: 0;
}

.category-card-large span {
  display: inline-flex;
  margin-top: 16px;
  color: var(--amber);
  font-weight: 800;
}

.split-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 34px;
  align-items: start;
}

.ranking-box {
  position: sticky;
  top: 88px;
  padding: 22px;
  border-radius: 24px;
  background: #111827;
  color: #ffffff;
  box-shadow: var(--shadow);
}

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

.ranking-head h2 {
  color: #ffffff;
  font-size: 24px;
}

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

.rank-line {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) 46px;
  gap: 10px;
  align-items: center;
  padding: 11px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.rank-line:last-child {
  border-bottom: 0;
}

.rank-number {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  color: #ffffff;
  background: rgba(249, 115, 22, 0.88);
  font-weight: 900;
}

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

.rank-score {
  color: #fbbf24;
  font-weight: 900;
  text-align: right;
}

.page-hero {
  color: #ffffff;
  background: radial-gradient(circle at 20% 20%, rgba(251, 191, 36, 0.35), transparent 30%), linear-gradient(120deg, #111827, #7c2d12 58%, #f97316);
}

.small-hero .site-container {
  padding: 74px 0 78px;
}

.page-hero h1 {
  margin: 18px 0 12px;
  font-size: clamp(36px, 5vw, 58px);
  line-height: 1.08;
  font-weight: 950;
  letter-spacing: -0.04em;
}

.page-hero p {
  max-width: 760px;
  margin: 0;
  color: rgba(255, 255, 255, 0.84);
  font-size: 17px;
  line-height: 1.75;
}

.filter-panel {
  position: sticky;
  top: 78px;
  z-index: 10;
  display: grid;
  grid-template-columns: minmax(240px, 1fr) 180px 180px 180px;
  gap: 12px;
  margin-bottom: 28px;
  padding: 14px;
  border: 1px solid rgba(251, 146, 60, 0.2);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 16px 36px rgba(17, 24, 39, 0.08);
  backdrop-filter: blur(16px);
}

.filter-panel input,
.filter-panel select {
  width: 100%;
  min-height: 44px;
  border: 1px solid #fed7aa;
  border-radius: 14px;
  padding: 0 14px;
  outline: none;
  color: var(--ink);
  background: #ffffff;
}

.filter-panel input:focus,
.filter-panel select:focus {
  border-color: var(--orange);
  box-shadow: 0 0 0 4px rgba(249, 115, 22, 0.14);
}

.detail-hero {
  padding: 58px 0;
  color: #ffffff;
  background: radial-gradient(circle at 75% 20%, rgba(249, 115, 22, 0.38), transparent 32%), linear-gradient(120deg, #111827, #3f1d08 62%, #9a3412);
}

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

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

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

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 14px;
}

.breadcrumbs a:hover {
  color: #ffffff;
}

.detail-copy h1 {
  margin: 18px 0 16px;
  font-size: clamp(34px, 5vw, 60px);
  line-height: 1.1;
  font-weight: 950;
  letter-spacing: -0.04em;
}

.detail-copy p {
  max-width: 780px;
  margin: 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: 17px;
  line-height: 1.8;
}

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

.detail-meta span {
  padding: 8px 12px;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.14);
}

.tag-row.wide {
  margin-bottom: 28px;
}

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

.player-shell {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  background: #000000;
  box-shadow: var(--shadow);
  aspect-ratio: 16 / 9;
}

.movie-video {
  width: 100%;
  height: 100%;
  display: block;
  background: #000000;
}

.player-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  gap: 12px;
  border: 0;
  color: #ffffff;
  background: linear-gradient(180deg, rgba(17, 24, 39, 0.16), rgba(17, 24, 39, 0.74));
  cursor: pointer;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

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

.play-circle {
  width: 78px;
  height: 78px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--orange);
  background: #ffffff;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.28);
  font-size: 32px;
  padding-left: 4px;
}

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

.article-panel {
  padding: 34px;
  border-radius: 28px;
  background: #ffffff;
  box-shadow: 0 16px 36px rgba(17, 24, 39, 0.07);
}

.article-panel h2 {
  margin-top: 0;
  margin-bottom: 14px;
  font-size: 28px;
}

.article-panel p {
  margin: 0 0 28px;
  color: #4b5563;
  font-size: 16px;
  line-height: 1.9;
}

.article-panel p:last-child {
  margin-bottom: 0;
}

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

.region-tile div {
  grid-template-columns: repeat(2, 1fr);
}

.stacked-sections {
  display: grid;
  gap: 52px;
}

.year-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.year-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 18px;
  border-radius: 999px;
  color: #92400e;
  background: #ffedd5;
  font-weight: 800;
  transition: transform 0.2s ease, background 0.2s ease;
}

.year-pill:hover {
  transform: translateY(-2px);
  background: #fed7aa;
}

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

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

.site-footer h2,
.site-footer h3 {
  margin: 0 0 14px;
  color: #ffffff;
}

.site-footer p {
  margin: 0;
  line-height: 1.7;
}

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

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

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

@media (max-width: 1100px) {
  .movie-grid.six-col,
  .movie-grid.five-col {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

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

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

  .ranking-box {
    position: static;
  }
}

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

  .mobile-toggle {
    display: block;
  }

  .hero-slider,
  .hero-content {
    min-height: 720px;
  }

  .hero-content {
    grid-template-columns: 1fr;
    gap: 28px;
    padding-top: 46px;
  }

  .hero-cover {
    width: min(320px, 78vw);
    margin: 0 auto;
  }

  .hero-search {
    bottom: 58px;
  }

  .movie-grid.six-col,
  .movie-grid.five-col,
  .movie-grid.four-col,
  .movie-grid.three-col {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .category-grid,
  .category-large-grid,
  .region-grid {
    grid-template-columns: 1fr;
  }

  .category-card-large {
    grid-template-columns: 1fr;
  }

  .filter-panel {
    position: static;
    grid-template-columns: 1fr;
  }

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

  .detail-poster {
    width: min(320px, 86vw);
    margin: 0 auto;
  }

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

@media (max-width: 560px) {
  .site-container {
    width: min(100% - 24px, 1180px);
  }

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

  .hero-search {
    border-radius: 24px;
    flex-direction: column;
  }

  .hero-search input {
    min-height: 42px;
  }

  .movie-grid.six-col,
  .movie-grid.five-col,
  .movie-grid.four-col,
  .movie-grid.three-col {
    grid-template-columns: 1fr;
  }

  .warm-panel {
    padding: 26px;
    border-radius: 24px;
  }

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