:root {
  --primary-50: #fef9ee;
  --primary-100: #fdf2d7;
  --primary-300: #f7ca7a;
  --primary-400: #f3a844;
  --primary-600: #e17015;
  --primary-700: #bb5413;
  --primary-800: #954217;
  --text: #111827;
  --muted: #6b7280;
  --line: #e5e7eb;
  --bg: #f9fafb;
  --white: #ffffff;
  --shadow: 0 18px 45px rgba(17, 24, 39, 0.12);
  --soft-shadow: 0 10px 24px rgba(17, 24, 39, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  color: var(--text);
  background: linear-gradient(180deg, #f9fafb 0%, #ffffff 48%, #f9fafb 100%);
  line-height: 1.6;
}

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

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

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: linear-gradient(90deg, var(--primary-800), var(--primary-700), var(--primary-600));
  box-shadow: 0 12px 24px rgba(149, 66, 23, 0.22);
}

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

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

.logo-mark {
  width: 38px;
  height: 38px;
  display: inline-grid;
  place-items: center;
  border-radius: 12px;
  color: #fff7ed;
  background: rgba(255, 255, 255, 0.16);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.22);
}

.logo-mark svg {
  width: 24px;
  height: 24px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.8;
}

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

.brand-text strong {
  color: #ffffff;
  font-size: 20px;
  letter-spacing: 0.04em;
}

.brand-text em {
  color: var(--primary-100);
  font-size: 12px;
  font-style: normal;
  margin-top: 5px;
}

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

.nav-link {
  color: rgba(255, 255, 255, 0.88);
  font-weight: 650;
  transition: color 0.2s ease, transform 0.2s ease;
}

.nav-link:hover,
.nav-link.is-active {
  color: var(--primary-100);
  transform: translateY(-1px);
}

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

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

.mobile-panel {
  display: none;
  width: min(1280px, calc(100% - 32px));
  margin: 0 auto;
  padding: 0 0 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
}

.mobile-panel.is-open {
  display: grid;
  gap: 12px;
}

.mobile-link {
  color: #ffffff;
  padding: 8px 0;
  font-weight: 650;
}

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

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.7s ease;
}

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

.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.04);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.92), rgba(0, 0, 0, 0.48) 48%, rgba(0, 0, 0, 0.16));
}

.hero-content {
  position: absolute;
  left: max(24px, calc((100vw - 1280px) / 2 + 16px));
  bottom: 82px;
  width: min(720px, calc(100% - 48px));
  color: #ffffff;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  color: #e5e7eb;
  margin-bottom: 16px;
}

.hero-meta strong {
  font-size: 26px;
  color: #ffffff;
}

.star {
  color: #facc15;
}

.hero-title {
  margin: 0 0 16px;
  font-size: clamp(42px, 7vw, 76px);
  line-height: 0.98;
  letter-spacing: -0.04em;
  font-weight: 900;
}

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

.hero-tags,
.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-tags span,
.tag-cloud span {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  color: #ffffff;
  backdrop-filter: blur(6px);
  font-size: 14px;
}

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

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

.btn-primary {
  color: #ffffff;
  background: var(--primary-600);
  box-shadow: 0 14px 28px rgba(225, 112, 21, 0.28);
}

.btn-primary:hover,
.panel-link:hover {
  background: var(--primary-700);
  transform: translateY(-2px);
}

.btn-ghost {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.16);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.2);
}

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

.hero-control {
  position: absolute;
  top: 50%;
  z-index: 4;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(0, 0, 0, 0.46);
  font-size: 38px;
  line-height: 1;
  transform: translateY(-50%);
  transition: background 0.2s ease;
}

.hero-control:hover {
  background: rgba(0, 0, 0, 0.68);
}

.hero-prev {
  left: 24px;
}

.hero-next {
  right: 24px;
}

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

.hero-dot {
  width: 9px;
  height: 9px;
  border: 0;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.52);
  transition: width 0.25s ease, background 0.25s ease;
}

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

.page-main,
.detail-main {
  min-height: 70vh;
}

.content-section,
.strip-section {
  padding: 72px 0;
}

.strip-section {
  background: linear-gradient(90deg, var(--primary-50), #ffffff);
}

.warm-section {
  background: linear-gradient(90deg, var(--primary-50), #faf9f6);
}

.soft-section {
  background: linear-gradient(180deg, #f3f4f6, #f9fafb);
}

.section-heading {
  margin-bottom: 30px;
}

.section-heading span,
.eyebrow {
  display: inline-flex;
  color: var(--primary-700);
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.section-heading h2,
.page-hero h1,
.detail-info h1,
.article-card h2,
.article-side h2 {
  margin: 0;
  color: var(--text);
  font-weight: 900;
  letter-spacing: -0.03em;
}

.section-heading h2 {
  font-size: clamp(26px, 3vw, 38px);
}

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

.compact-heading {
  max-width: 760px;
}

.inline-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
}

.inline-heading a {
  color: var(--primary-700);
  font-weight: 800;
}

.small-heading h2 {
  font-size: 24px;
}

.grid {
  display: grid;
}

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

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

.quick-grid {
  margin-top: 26px;
}

.movie-card {
  display: block;
  overflow: hidden;
  border-radius: 18px;
  background: #ffffff;
  box-shadow: var(--soft-shadow);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

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

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

.movie-card:hover .poster-wrap img {
  transform: scale(1.1);
}

.poster-shade {
  position: absolute;
  inset: 0;
  opacity: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.78), rgba(0, 0, 0, 0.12), transparent);
  transition: opacity 0.25s ease;
}

.movie-card:hover .poster-shade {
  opacity: 1;
}

.play-bubble {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: #ffffff;
  background: var(--primary-600);
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.32);
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.78);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.movie-card:hover .play-bubble {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.score-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  min-width: 44px;
  padding: 4px 8px;
  border-radius: 9px;
  color: #ffffff;
  background: rgba(0, 0, 0, 0.68);
  backdrop-filter: blur(6px);
  font-size: 13px;
  font-weight: 900;
  text-align: center;
}

.movie-card-body {
  display: block;
  padding: 13px 13px 15px;
}

.movie-card-body strong {
  display: block;
  min-height: 24px;
  overflow: hidden;
  color: var(--text);
  font-size: 16px;
  white-space: nowrap;
  text-overflow: ellipsis;
  transition: color 0.2s ease;
}

.movie-card:hover .movie-card-body strong {
  color: var(--primary-600);
}

.movie-card-body small,
.movie-card-body em {
  display: block;
  color: var(--muted);
  font-style: normal;
  font-size: 12px;
}

.movie-card-body small {
  margin-top: 5px;
}

.movie-card-body em {
  min-height: 38px;
  margin-top: 8px;
  overflow: hidden;
}

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

.rank-panel {
  border-radius: 22px;
  padding: 24px;
  background: #ffffff;
  box-shadow: var(--soft-shadow);
}

.sticky-panel {
  position: sticky;
  top: 96px;
  max-height: calc(100vh - 120px);
  overflow: auto;
}

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

.rank-item {
  display: grid;
  grid-template-columns: 36px 54px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 10px;
  border-radius: 14px;
  background: #f9fafb;
  transition: background 0.2s ease, transform 0.2s ease;
}

.rank-item:hover {
  background: var(--primary-50);
  transform: translateX(3px);
}

.rank-num {
  color: var(--primary-700);
  font-size: 18px;
  font-weight: 900;
}

.rank-item img {
  width: 54px;
  height: 74px;
  border-radius: 10px;
  object-fit: cover;
  background: #e5e7eb;
}

.rank-info {
  min-width: 0;
}

.rank-info strong,
.rank-info small {
  display: block;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

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

.rank-item em {
  color: var(--primary-700);
  font-style: normal;
  font-weight: 900;
}

.panel-link {
  width: 100%;
  margin-top: 18px;
  color: #ffffff;
  background: var(--primary-600);
}

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

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

.category-tile,
.category-card {
  position: relative;
  overflow: hidden;
  min-height: 190px;
  border-radius: 22px;
  color: #ffffff;
  background: #111827;
  box-shadow: var(--soft-shadow);
}

.category-tile img,
.category-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.66;
  transition: transform 0.4s ease, opacity 0.4s ease;
}

.category-tile:hover img,
.category-card:hover img {
  transform: scale(1.08);
  opacity: 0.78;
}

.category-tile span,
.category-card-body {
  position: absolute;
  inset: auto 0 0 0;
  z-index: 2;
  padding: 22px;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.86), transparent);
}

.category-tile strong,
.category-card-body strong {
  display: block;
  font-size: 22px;
  font-weight: 900;
}

.category-tile em,
.category-card-body em {
  display: block;
  margin-top: 8px;
  color: #e5e7eb;
  font-style: normal;
  font-size: 14px;
}

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

.category-card {
  min-height: 250px;
}

.category-cover {
  display: grid;
  grid-template-columns: 1fr 1fr;
  height: 100%;
}

.filter-panel {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) 190px 190px 220px;
  gap: 14px;
  align-items: end;
  padding: 18px;
  border-radius: 22px;
  background: #ffffff;
  box-shadow: var(--soft-shadow);
  margin-bottom: 30px;
}

.filter-panel label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

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

.filter-panel input:focus,
.filter-panel select:focus {
  border-color: var(--primary-400);
  box-shadow: 0 0 0 4px rgba(243, 168, 68, 0.18);
}

.empty-state {
  display: none;
  margin: 32px 0 0;
  padding: 28px;
  border-radius: 18px;
  color: var(--muted);
  background: #ffffff;
  text-align: center;
  box-shadow: var(--soft-shadow);
}

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

.page-hero {
  position: relative;
  padding: 92px 0;
  color: #ffffff;
  background: radial-gradient(circle at top left, rgba(247, 202, 122, 0.34), transparent 34%), linear-gradient(135deg, var(--primary-800), #111827 72%);
}

.page-hero h1 {
  max-width: 780px;
  color: #ffffff;
  font-size: clamp(40px, 6vw, 66px);
  line-height: 1.02;
}

.page-hero p {
  max-width: 760px;
  margin: 18px 0 0;
  color: #f3f4f6;
  font-size: 18px;
}

.small-page-hero {
  padding: 80px 0;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 24px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 14px;
}

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

.breadcrumb strong {
  color: #ffffff;
}

.detail-hero {
  padding: 34px 0 48px;
  color: #ffffff;
  background: linear-gradient(180deg, #050505, #111827);
}

.detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 410px;
  gap: 30px;
  align-items: stretch;
}

.player-shell {
  position: relative;
  overflow: hidden;
  min-height: 360px;
  border-radius: 22px;
  background: #000000;
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.42);
  aspect-ratio: 16 / 9;
}

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

.play-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 12px;
  border: 0;
  color: #ffffff;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.62), rgba(0, 0, 0, 0.24));
  transition: opacity 0.24s ease, visibility 0.24s ease;
}

.play-overlay span {
  width: 78px;
  height: 78px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: var(--primary-600);
  box-shadow: 0 18px 32px rgba(225, 112, 21, 0.32);
  font-size: 28px;
}

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

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

.detail-info {
  display: grid;
  grid-template-columns: 138px minmax(0, 1fr);
  gap: 20px;
  padding: 24px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(8px);
}

.detail-poster {
  width: 138px;
  height: 206px;
  border-radius: 16px;
  object-fit: cover;
  background: #1f2937;
}

.detail-info h1 {
  color: #ffffff;
  font-size: clamp(28px, 3vw, 42px);
  line-height: 1.1;
}

.detail-one-line {
  margin: 14px 0;
  color: #e5e7eb;
}

.detail-meta {
  display: grid;
  gap: 8px;
  color: #d1d5db;
  font-weight: 750;
  margin-bottom: 16px;
}

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

.article-card,
.article-side {
  border-radius: 22px;
  background: #ffffff;
  box-shadow: var(--soft-shadow);
}

.article-card {
  padding: 34px;
}

.article-card h2 {
  font-size: 30px;
  margin: 0 0 14px;
}

.article-card h2:not(:first-child) {
  margin-top: 34px;
}

.article-card p {
  margin: 0;
  color: #374151;
  font-size: 17px;
  line-height: 1.9;
}

.article-side {
  padding: 24px;
}

.article-side h2 {
  font-size: 24px;
  margin-bottom: 18px;
}

.article-side dl {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
  gap: 12px 14px;
  margin: 0;
}

.article-side dt {
  color: var(--muted);
  font-weight: 800;
}

.article-side dd {
  margin: 0;
  color: var(--text);
}

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

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

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

  .rank-panel,
  .sticky-panel {
    position: static;
    max-height: none;
  }

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

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

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

  .menu-toggle {
    display: inline-block;
  }

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

  .hero-slider {
    height: 72vh;
    min-height: 520px;
  }

  .hero-content {
    bottom: 70px;
  }

  .hero-control {
    width: 40px;
    height: 40px;
    font-size: 30px;
  }

  .hero-prev {
    left: 10px;
  }

  .hero-next {
    right: 10px;
  }

  .content-section,
  .strip-section {
    padding: 48px 0;
  }

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

  .category-grid,
  .category-card-grid,
  .filter-panel {
    grid-template-columns: 1fr;
  }

  .inline-heading {
    display: block;
  }

  .inline-heading a {
    display: inline-block;
    margin-top: 10px;
  }

  .detail-info {
    grid-template-columns: 96px minmax(0, 1fr);
    padding: 18px;
  }

  .detail-poster {
    width: 96px;
    height: 144px;
  }

  .player-shell {
    min-height: auto;
    border-radius: 16px;
  }

  .article-card,
  .article-side {
    padding: 22px;
  }
}

@media (max-width: 430px) {
  .container,
  .nav-wrap,
  .footer-wrap {
    width: min(100% - 22px, 1280px);
  }

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

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

  .movie-card-body em {
    display: none;
  }

  .hero-tags span,
  .tag-cloud span {
    font-size: 12px;
  }

  .rank-item {
    grid-template-columns: 30px 48px minmax(0, 1fr);
  }

  .rank-item em {
    display: none;
  }
}

.site-footer {
  color: #d1d5db;
  background: linear-gradient(180deg, #111827, #030712);
}

.footer-wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 520px);
  gap: 34px;
  padding: 54px 0;
}

.footer-logo {
  color: #ffffff;
  font-size: 20px;
  font-weight: 900;
}

.footer-brand p {
  max-width: 560px;
  margin: 16px 0 0;
  color: #9ca3af;
}

.footer-nav h2 {
  margin: 0 0 18px;
  color: #ffffff;
  font-size: 18px;
}

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

.footer-links a {
  padding: 8px 12px;
  border-radius: 999px;
  color: #d1d5db;
  background: rgba(255, 255, 255, 0.08);
}

.footer-links a:hover {
  color: #ffffff;
  background: rgba(225, 112, 21, 0.8);
}

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

@media (max-width: 760px) {
  .footer-wrap {
    grid-template-columns: 1fr;
  }
}
