:root {
  --bg: #f8fafc;
  --surface: #ffffff;
  --surface-soft: #fff7ed;
  --ink: #111827;
  --muted: #6b7280;
  --line: #e5e7eb;
  --brand: #b45309;
  --brand-dark: #92400e;
  --brand-soft: #f59e0b;
  --dark: #111827;
  --radius: 18px;
  --shadow: 0 20px 45px rgba(17, 24, 39, 0.12);
  --soft-shadow: 0 14px 30px rgba(17, 24, 39, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background: linear-gradient(180deg, #ffffff 0%, var(--bg) 32%, #fff 100%);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  line-height: 1.6;
}

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

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

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid rgba(229, 231, 235, 0.9);
  backdrop-filter: blur(18px);
}

.nav-shell,
.footer-shell,
.main-shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  color: var(--ink);
  white-space: nowrap;
}

.brand-mark {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  color: #fff;
  background: linear-gradient(135deg, var(--brand-soft), var(--brand-dark));
  border-radius: 13px;
  box-shadow: 0 10px 18px rgba(180, 83, 9, 0.28);
  font-size: 14px;
}

.brand-text {
  font-size: 20px;
  letter-spacing: -0.02em;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 22px;
  color: #374151;
  font-weight: 650;
}

.desktop-nav a {
  position: relative;
  padding: 6px 0;
}

.desktop-nav a::after {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -4px;
  height: 2px;
  content: "";
  background: var(--brand);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.22s ease;
}

.desktop-nav a:hover {
  color: var(--brand-dark);
}

.desktop-nav a:hover::after {
  transform: scaleX(1);
}

.nav-search {
  display: flex;
  align-items: center;
  width: min(310px, 28vw);
  background: #f3f4f6;
  border: 1px solid transparent;
  border-radius: 999px;
  overflow: hidden;
  transition: border-color 0.22s ease, box-shadow 0.22s ease;
}

.nav-search:focus-within {
  border-color: rgba(245, 158, 11, 0.65);
  box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.14);
}

.nav-search input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  padding: 11px 14px;
}

.nav-search button,
.mobile-panel button {
  border: 0;
  color: #fff;
  background: var(--brand);
  padding: 11px 16px;
  font-weight: 700;
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 12px;
}

.mobile-panel {
  display: none;
  border-top: 1px solid var(--line);
  background: #fff;
  padding: 14px 16px 18px;
}

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

.mobile-panel a {
  padding: 10px 4px;
  color: #374151;
  font-weight: 700;
}

.mobile-panel form {
  display: flex;
  gap: 8px;
}

.mobile-panel input {
  min-width: 0;
  flex: 1;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 11px 12px;
}

.mobile-panel button {
  border-radius: 12px;
}

.hero {
  position: relative;
  min-height: 590px;
  color: #fff;
  background: #111827;
  overflow: hidden;
}

.hero-track {
  position: absolute;
  inset: 0;
}

.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-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.04);
  filter: saturate(1.06);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 80% 18%, rgba(245, 158, 11, 0.28), transparent 30%),
    linear-gradient(90deg, rgba(17, 24, 39, 0.96) 0%, rgba(17, 24, 39, 0.78) 42%, rgba(17, 24, 39, 0.28) 100%),
    linear-gradient(0deg, rgba(17, 24, 39, 0.92) 0%, rgba(17, 24, 39, 0.1) 52%);
}

.hero-content {
  position: relative;
  z-index: 2;
  display: flex;
  width: min(1180px, calc(100% - 32px));
  min-height: 590px;
  margin: 0 auto;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  max-width: 1180px;
  padding: 70px 0 155px;
}

.hero-label,
.eyebrow {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  color: #fff;
  background: rgba(180, 83, 9, 0.9);
  border: 1px solid rgba(251, 191, 36, 0.35);
  border-radius: 999px;
  padding: 7px 14px;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.03em;
}

.hero h1 {
  max-width: 760px;
  margin: 20px 0 16px;
  font-size: clamp(42px, 7vw, 76px);
  line-height: 1.02;
  letter-spacing: -0.06em;
}

.hero p {
  max-width: 720px;
  margin: 0;
  color: #e5e7eb;
  font-size: clamp(18px, 2.2vw, 24px);
}

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

.hero-meta span,
.tag-row span,
.filter-chip,
.detail-tag {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 6px 11px;
  font-size: 13px;
  font-weight: 700;
}

.hero-meta span {
  color: #fff7ed;
  background: rgba(255, 255, 255, 0.13);
  border: 1px solid rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(12px);
}

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

.primary-button,
.ghost-button,
.section-more,
.page-link,
.play-button,
.search-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-weight: 800;
  transition: transform 0.22s ease, box-shadow 0.22s ease, background 0.22s ease;
}

.primary-button,
.search-submit {
  color: #fff;
  background: linear-gradient(135deg, var(--brand-soft), var(--brand-dark));
  box-shadow: 0 18px 26px rgba(180, 83, 9, 0.25);
}

.primary-button,
.ghost-button {
  min-height: 48px;
  padding: 0 22px;
}

.ghost-button {
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(12px);
}

.primary-button:hover,
.ghost-button:hover,
.section-more:hover,
.page-link:hover,
.play-button:hover,
.search-submit:hover {
  transform: translateY(-2px);
}

.hero-thumbs {
  position: absolute;
  left: 50%;
  bottom: 28px;
  z-index: 4;
  display: grid;
  width: min(1180px, calc(100% - 32px));
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
  transform: translateX(-50%);
}

.hero-thumb {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 18px;
  padding: 10px;
  text-align: left;
  backdrop-filter: blur(12px);
}

.hero-thumb.is-active {
  border-color: rgba(251, 191, 36, 0.82);
  background: rgba(180, 83, 9, 0.5);
}

.hero-thumb img {
  width: 46px;
  height: 62px;
  flex: 0 0 auto;
  border-radius: 12px;
  object-fit: cover;
}

.hero-thumb span {
  overflow: hidden;
  font-size: 13px;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.main-shell {
  padding: 54px 0 76px;
}

.section-block {
  margin-top: 58px;
}

.section-block:first-child {
  margin-top: 0;
}

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

.section-heading .eyebrow {
  color: var(--brand-dark);
  background: #ffedd5;
  border-color: #fed7aa;
}

.section-heading h2,
.page-title h1 {
  margin: 8px 0 8px;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.12;
  letter-spacing: -0.04em;
}

.section-heading p,
.page-title p {
  margin: 0;
  max-width: 760px;
  color: var(--muted);
}

.section-more,
.page-link {
  min-height: 42px;
  color: var(--brand-dark);
  background: #fff7ed;
  border: 1px solid #fed7aa;
  padding: 0 16px;
}

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

.movie-card {
  min-width: 0;
  background: var(--surface);
  border: 1px solid rgba(229, 231, 235, 0.82);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--soft-shadow);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.movie-card:hover {
  border-color: rgba(245, 158, 11, 0.48);
  transform: translateY(-5px);
  box-shadow: var(--shadow);
}

.poster-frame {
  position: relative;
  aspect-ratio: 2 / 3;
  background: linear-gradient(145deg, #1f2937, #92400e);
  overflow: hidden;
}

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

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

.score-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  display: inline-flex;
  min-width: 42px;
  height: 28px;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: rgba(17, 24, 39, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  font-weight: 900;
  backdrop-filter: blur(10px);
}

.card-body {
  padding: 14px;
}

.card-kicker {
  color: var(--brand-dark);
  font-size: 12px;
  font-weight: 900;
}

.movie-card h3 {
  display: -webkit-box;
  min-height: 52px;
  margin: 5px 0 8px;
  overflow: hidden;
  font-size: 17px;
  line-height: 1.35;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

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

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

.tag-row span,
.filter-chip,
.detail-tag {
  color: #9a3412;
  background: #ffedd5;
}

.category-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-top: -28px;
  position: relative;
  z-index: 8;
}

.category-tile {
  display: block;
  color: #fff;
  background:
    radial-gradient(circle at 85% 10%, rgba(251, 191, 36, 0.5), transparent 32%),
    linear-gradient(135deg, #1f2937, #92400e);
  border-radius: 22px;
  padding: 22px;
  box-shadow: var(--shadow);
  transition: transform 0.22s ease;
}

.category-tile:hover {
  transform: translateY(-4px);
}

.category-tile strong {
  display: block;
  font-size: 24px;
  line-height: 1.15;
}

.category-tile span {
  display: block;
  margin-top: 8px;
  color: rgba(255, 255, 255, 0.78);
}

.page-title {
  display: grid;
  gap: 18px;
  min-height: 285px;
  align-items: end;
  color: #fff;
  background:
    radial-gradient(circle at 82% 14%, rgba(245, 158, 11, 0.5), transparent 30%),
    linear-gradient(135deg, #111827, #78350f);
  border-radius: 0 0 34px 34px;
  padding: 76px max(16px, calc((100vw - 1180px) / 2)) 46px;
}

.page-title p {
  color: rgba(255, 255, 255, 0.82);
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 28px;
}

.filter-chip {
  border: 1px solid #fed7aa;
}

.ranking-list {
  display: grid;
  gap: 14px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.ranking-item {
  display: grid;
  grid-template-columns: 58px 88px minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 12px 16px;
  box-shadow: var(--soft-shadow);
}

.ranking-number {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  color: #fff;
  background: linear-gradient(135deg, var(--brand-soft), var(--brand-dark));
  border-radius: 16px;
  font-size: 18px;
  font-weight: 900;
}

.ranking-item img {
  width: 74px;
  height: 104px;
  border-radius: 14px;
  object-fit: cover;
}

.ranking-title h3 {
  margin: 0 0 6px;
  font-size: 20px;
  line-height: 1.25;
}

.ranking-title p {
  display: -webkit-box;
  margin: 0;
  overflow: hidden;
  color: var(--muted);
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.ranking-score {
  color: var(--brand-dark);
  font-size: 28px;
  font-weight: 950;
}

.pagination {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-top: 36px;
}

.detail-hero {
  color: #fff;
  background:
    linear-gradient(90deg, rgba(17, 24, 39, 0.96), rgba(17, 24, 39, 0.78)),
    var(--dark);
}

.detail-shell {
  display: grid;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  grid-template-columns: 1.35fr 0.65fr;
  gap: 30px;
  padding: 42px 0 52px;
}

.player-card,
.detail-card {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 28px;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.25);
}

.player-wrap {
  position: relative;
  background: #000;
  aspect-ratio: 16 / 9;
}

.player-wrap video {
  width: 100%;
  height: 100%;
  background: #000;
  object-fit: contain;
}

.player-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: rgba(0, 0, 0, 0.32);
  transition: opacity 0.22s ease, visibility 0.22s ease;
}

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

.play-button {
  width: 92px;
  height: 92px;
  border: 0;
  color: #fff;
  background: linear-gradient(135deg, var(--brand-soft), var(--brand-dark));
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.28);
  font-size: 32px;
}

.detail-card {
  padding: 24px;
}

.detail-card img {
  width: 100%;
  border-radius: 22px;
  aspect-ratio: 2 / 3;
  object-fit: cover;
}

.detail-title h1 {
  margin: 22px 0 12px;
  font-size: clamp(30px, 5vw, 52px);
  line-height: 1.08;
  letter-spacing: -0.05em;
}

.detail-title p {
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 18px;
}

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

.detail-tag {
  color: #fff7ed;
  background: rgba(180, 83, 9, 0.82);
}

.detail-content {
  display: grid;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 28px;
  padding: 44px 0 76px;
}

.article-panel,
.side-panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 26px;
  padding: 28px;
  box-shadow: var(--soft-shadow);
}

.article-panel h2,
.side-panel h2 {
  margin: 0 0 14px;
  font-size: 26px;
  letter-spacing: -0.03em;
}

.article-panel p {
  margin: 0 0 22px;
  color: #374151;
  font-size: 17px;
}

.info-table {
  display: grid;
  gap: 10px;
  margin: 24px 0 0;
}

.info-row {
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 12px;
  padding: 12px 0;
  border-top: 1px solid var(--line);
}

.info-row strong {
  color: var(--muted);
}

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

.related-item {
  display: grid;
  grid-template-columns: 62px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
}

.related-item img {
  width: 62px;
  height: 86px;
  border-radius: 12px;
  object-fit: cover;
}

.related-item strong {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.related-item span {
  color: var(--muted);
  font-size: 13px;
}

.search-panel {
  max-width: 860px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 26px;
  padding: 22px;
  box-shadow: var(--shadow);
}

.search-panel form {
  display: flex;
  gap: 12px;
}

.search-panel input {
  min-width: 0;
  flex: 1;
  border: 1px solid var(--line);
  border-radius: 999px;
  outline: 0;
  padding: 15px 18px;
}

.search-submit {
  border: 0;
  min-width: 110px;
  padding: 0 20px;
}

.search-summary {
  margin: 24px 0 18px;
  color: var(--muted);
  font-weight: 700;
}

.site-footer {
  color: #d1d5db;
  background: #111827;
}

.footer-shell {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(240px, 0.8fr);
  gap: 32px;
  padding: 42px 0;
}

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

.footer-logo {
  color: #fff;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  align-content: start;
  justify-content: flex-end;
  gap: 14px;
}

.footer-links a {
  color: #f3f4f6;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  padding: 8px 14px;
}

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

  .menu-toggle {
    display: inline-grid;
    place-items: center;
  }

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

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

  .category-strip,
  .detail-shell,
  .detail-content {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .nav-shell,
  .footer-shell,
  .main-shell,
  .detail-shell,
  .detail-content {
    width: min(100% - 24px, 1180px);
  }

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

  .hero-content {
    padding-bottom: 230px;
  }

  .hero-thumbs {
    grid-template-columns: 1fr 1fr;
    bottom: 18px;
  }

  .hero-thumb:nth-child(n + 5) {
    display: none;
  }

  .section-heading,
  .footer-shell {
    display: block;
  }

  .section-more {
    margin-top: 14px;
  }

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

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

  .ranking-item {
    grid-template-columns: 44px 64px minmax(0, 1fr);
    gap: 12px;
  }

  .ranking-score {
    grid-column: 3;
    font-size: 20px;
  }

  .ranking-item img {
    width: 64px;
    height: 92px;
  }

  .search-panel form {
    display: grid;
  }

  .footer-links {
    justify-content: flex-start;
    margin-top: 22px;
  }
}

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

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

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