:root {
  --bg-start: #fffbeb;
  --bg-mid: #fff7ed;
  --bg-end: #fffbeb;
  --text-main: #1f2937;
  --text-muted: #6b7280;
  --text-soft: #9ca3af;
  --line: #fde68a;
  --card: #ffffff;
  --amber: #f59e0b;
  --amber-deep: #d97706;
  --orange: #f97316;
  --shadow: 0 18px 45px rgba(146, 64, 14, 0.13);
  --soft-shadow: 0 10px 25px rgba(146, 64, 14, 0.10);
  --radius-xl: 24px;
  --radius-lg: 18px;
  --container: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text-main);
  background: linear-gradient(135deg, var(--bg-start), var(--bg-mid), var(--bg-end));
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  line-height: 1.6;
}

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

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

button,
input,
select {
  font: inherit;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid rgba(251, 191, 36, 0.35);
  backdrop-filter: blur(18px);
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: max-content;
}

.brand-icon {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  color: #ffffff;
  background: linear-gradient(135deg, #fbbf24, #f97316);
  border-radius: 16px;
  box-shadow: 0 10px 25px rgba(249, 115, 22, 0.28);
}

.brand-text {
  font-size: 1.28rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  background: linear-gradient(90deg, #d97706, #f97316);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

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

.nav-link,
.mobile-link {
  font-weight: 650;
  color: #374151;
  transition: color 0.2s ease;
}

.nav-link:hover,
.nav-link.is-active,
.mobile-link:hover,
.mobile-link.is-active {
  color: var(--amber-deep);
}

.nav-search,
.mobile-search,
.filter-bar {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-search input,
.mobile-search input,
.filter-bar input,
.filter-bar select {
  min-width: 0;
  border: 1px solid #fcd34d;
  border-radius: 999px;
  background: #ffffff;
  padding: 10px 14px;
  color: var(--text-main);
  outline: none;
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.nav-search input:focus,
.mobile-search input:focus,
.filter-bar input:focus,
.filter-bar select:focus {
  border-color: var(--amber);
  box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.16);
}

.nav-search button,
.mobile-search button,
.filter-bar button,
.primary-btn,
.secondary-btn {
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 800;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.nav-search button,
.mobile-search button,
.filter-bar button,
.primary-btn {
  color: #ffffff;
  background: linear-gradient(90deg, #f59e0b, #f97316);
  box-shadow: 0 10px 25px rgba(249, 115, 22, 0.25);
}

.nav-search button,
.mobile-search button {
  padding: 10px 16px;
}

.primary-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 26px;
}

.secondary-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 22px;
  color: #92400e;
  background: #fffbeb;
  border: 1px solid #fcd34d;
}

.primary-btn:hover,
.secondary-btn:hover,
.nav-search button:hover,
.mobile-search button:hover,
.filter-bar button:hover {
  transform: translateY(-2px) scale(1.02);
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 12px;
  color: #92400e;
  background: #fef3c7;
}

.mobile-panel {
  display: none;
  border-top: 1px solid #fde68a;
  padding: 16px;
  background: #ffffff;
}

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

.mobile-link {
  display: block;
  padding: 10px 0;
}

.hero {
  position: relative;
  height: 70vh;
  min-height: 520px;
  overflow: hidden;
  background: #111827;
}

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

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

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

.hero-slide::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.82), rgba(0, 0, 0, 0.52), rgba(0, 0, 0, 0.12));
}

.hero-content {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  align-items: center;
}

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

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  color: #fbbf24;
  font-size: 1.08rem;
  font-weight: 800;
}

.hero h1 {
  margin: 0 0 18px;
  font-size: clamp(2.4rem, 5vw, 4.5rem);
  line-height: 1.05;
  letter-spacing: -0.06em;
}

.hero p {
  max-width: 650px;
  margin: 0 0 24px;
  color: #e5e7eb;
  font-size: clamp(1.02rem, 2vw, 1.35rem);
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 28px;
}

.hero-tags span {
  padding: 8px 14px;
  color: #ffffff;
  background: rgba(245, 158, 11, 0.88);
  border-radius: 999px;
  backdrop-filter: blur(8px);
}

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

.hero-control {
  position: absolute;
  top: 50%;
  z-index: 4;
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border: 0;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(0, 0, 0, 0.48);
  cursor: pointer;
  transform: translateY(-50%);
  transition: background 0.2s ease, transform 0.2s ease;
}

.hero-control:hover {
  background: rgba(0, 0, 0, 0.72);
  transform: translateY(-50%) scale(1.05);
}

.hero-control.prev {
  left: 22px;
}

.hero-control.next {
  right: 22px;
}

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

.hero-dot {
  width: 10px;
  height: 10px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.55);
  cursor: pointer;
  transition: width 0.2s ease, background 0.2s ease;
}

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

.main-space {
  padding: 64px 0;
}

.section {
  margin-bottom: 64px;
}

.section-card {
  padding: 32px;
  background: #ffffff;
  border: 1px solid rgba(251, 191, 36, 0.32);
  border-radius: var(--radius-xl);
  box-shadow: var(--soft-shadow);
}

.section-card.purple {
  background: linear-gradient(135deg, #faf5ff, #fdf2f8);
  border-color: #f5d0fe;
}

.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 28px;
}

.title-line {
  display: flex;
  align-items: center;
  gap: 12px;
}

.title-icon {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  color: #ffffff;
  background: linear-gradient(135deg, #fbbf24, #f97316);
  border-radius: 14px;
}

.title-icon.red {
  background: linear-gradient(135deg, #fb7185, #f43f5e);
}

.title-icon.blue {
  background: linear-gradient(135deg, #60a5fa, #6366f1);
}

.title-icon.purple {
  background: linear-gradient(135deg, #a78bfa, #ec4899);
}

.section h2,
.page-title h1 {
  margin: 0;
  color: #1f2937;
  font-size: clamp(1.8rem, 3vw, 2.45rem);
  line-height: 1.15;
  letter-spacing: -0.04em;
}

.section-note,
.page-title p {
  margin: 8px 0 0;
  color: var(--text-muted);
}

.scroller {
  display: flex;
  gap: 22px;
  overflow-x: auto;
  padding: 4px 4px 16px;
  scroll-snap-type: x proximity;
}

.scroller .movie-card {
  width: 310px;
  min-width: 310px;
  scroll-snap-align: start;
}

.grid {
  display: grid;
  gap: 24px;
}

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

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

.movie-card {
  overflow: hidden;
  background: var(--card);
  border: 1px solid rgba(251, 191, 36, 0.18);
  border-radius: var(--radius-lg);
  box-shadow: 0 5px 12px rgba(146, 64, 14, 0.05);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

.card-cover {
  position: relative;
  display: block;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: linear-gradient(135deg, #fef3c7, #ffedd5);
}

.movie-card.compact .card-cover {
  aspect-ratio: 3 / 4;
}

.card-cover::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.58), transparent 55%);
  opacity: 0;
  transition: opacity 0.25s ease;
}

.movie-card:hover .card-cover::after {
  opacity: 1;
}

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

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

.badge {
  position: absolute;
  z-index: 2;
  color: #ffffff;
  border-radius: 10px;
  font-size: 0.78rem;
  font-weight: 800;
  backdrop-filter: blur(8px);
}

.type-badge {
  top: 10px;
  right: 10px;
  padding: 5px 9px;
  background: rgba(245, 158, 11, 0.92);
}

.year-badge {
  bottom: 10px;
  left: 10px;
  padding: 5px 9px;
  background: rgba(0, 0, 0, 0.66);
}

.card-body {
  padding: 16px;
}

.card-body h3 {
  display: -webkit-box;
  min-height: 2.8em;
  margin: 0 0 8px;
  overflow: hidden;
  color: #1f2937;
  font-size: 1.03rem;
  font-weight: 800;
  line-height: 1.4;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.card-body h3 a:hover {
  color: var(--amber-deep);
}

.card-body p {
  display: -webkit-box;
  min-height: 3em;
  margin: 0 0 14px;
  overflow: hidden;
  color: var(--text-muted);
  font-size: 0.92rem;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--text-soft);
  font-size: 0.78rem;
}

.card-meta a,
.card-meta span {
  max-width: 100%;
  padding: 4px 8px;
  overflow: hidden;
  background: #fffbeb;
  border-radius: 999px;
  color: #92400e;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 24px;
}

.pill,
.pill-row a,
.pill-row button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 8px 16px;
  border: 0;
  border-radius: 999px;
  color: #374151;
  background: #fffbeb;
  cursor: pointer;
  font-weight: 750;
  transition: background 0.2s ease, transform 0.2s ease, color 0.2s ease;
}

.pill:hover,
.pill.is-active,
.pill-row a:hover,
.pill-row button:hover,
.pill-row button.is-active {
  color: #ffffff;
  background: linear-gradient(90deg, #f59e0b, #f97316);
  transform: translateY(-2px);
}

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

.rank-row {
  display: grid;
  grid-template-columns: 46px 132px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  padding: 14px;
  background: #ffffff;
  border: 1px solid rgba(251, 191, 36, 0.22);
  border-radius: 18px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.rank-row:hover {
  transform: translateX(4px);
  box-shadow: var(--soft-shadow);
}

.rank-num {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  color: #ffffff;
  background: linear-gradient(135deg, #f59e0b, #f97316);
  border-radius: 999px;
  font-weight: 900;
}

.rank-row img {
  width: 132px;
  height: 82px;
  object-fit: cover;
  border-radius: 12px;
}

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

.rank-info strong,
.rank-info small,
.rank-info em {
  display: block;
}

.rank-info strong {
  overflow: hidden;
  font-size: 1.05rem;
  font-style: normal;
  font-weight: 850;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rank-info small {
  display: -webkit-box;
  margin: 4px 0;
  overflow: hidden;
  color: var(--text-muted);
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.rank-info em {
  color: var(--text-soft);
  font-size: 0.8rem;
  font-style: normal;
}

.page-title {
  padding: 52px 0 28px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
  color: var(--text-muted);
  font-size: 0.92rem;
}

.breadcrumb a {
  color: #92400e;
  font-weight: 750;
}

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

.category-card {
  padding: 24px;
  background: #ffffff;
  border: 1px solid rgba(251, 191, 36, 0.24);
  border-radius: var(--radius-xl);
  box-shadow: var(--soft-shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.category-card strong {
  display: block;
  margin-bottom: 8px;
  font-size: 1.28rem;
}

.category-card span {
  color: var(--text-muted);
}

.category-preview {
  display: flex;
  margin-top: 18px;
}

.category-preview img {
  width: 54px;
  height: 54px;
  margin-right: -10px;
  object-fit: cover;
  border: 3px solid #ffffff;
  border-radius: 16px;
  box-shadow: 0 8px 16px rgba(146, 64, 14, 0.14);
}

.filter-panel {
  margin-bottom: 28px;
  padding: 22px;
  background: #ffffff;
  border: 1px solid rgba(251, 191, 36, 0.28);
  border-radius: var(--radius-xl);
  box-shadow: var(--soft-shadow);
}

.filter-bar {
  flex-wrap: wrap;
}

.filter-bar input {
  flex: 1 1 260px;
}

.filter-bar select {
  flex: 0 1 160px;
}

.filter-bar button {
  padding: 10px 18px;
}

.empty-message {
  display: none;
  padding: 30px;
  color: var(--text-muted);
  text-align: center;
  background: #ffffff;
  border-radius: var(--radius-xl);
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 2fr) 360px;
  gap: 32px;
  align-items: start;
  padding-bottom: 64px;
}

.player-card,
.detail-card,
.side-card {
  overflow: hidden;
  background: #ffffff;
  border: 1px solid rgba(251, 191, 36, 0.25);
  border-radius: var(--radius-xl);
  box-shadow: var(--soft-shadow);
}

.player-frame {
  position: relative;
  overflow: hidden;
  background: #000000;
  aspect-ratio: 16 / 9;
}

.player-frame video {
  width: 100%;
  height: 100%;
  background: #000000;
}

.player-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  color: #ffffff;
  border: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.14), rgba(0, 0, 0, 0.66));
  cursor: pointer;
}

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

.play-circle {
  display: grid;
  width: 82px;
  height: 82px;
  place-items: center;
  background: linear-gradient(135deg, #f59e0b, #f97316);
  border-radius: 999px;
  box-shadow: 0 20px 42px rgba(249, 115, 22, 0.34);
  font-size: 2rem;
}

.player-note {
  padding: 14px 18px;
  color: var(--text-muted);
  background: #fffbeb;
  border-top: 1px solid #fde68a;
  font-size: 0.92rem;
}

.detail-card {
  padding: 28px;
}

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

.detail-poster {
  overflow: hidden;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

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

.detail-title h1 {
  margin: 0 0 12px;
  font-size: clamp(2rem, 3vw, 3rem);
  line-height: 1.12;
  letter-spacing: -0.05em;
}

.detail-title p {
  margin: 0 0 18px;
  color: var(--text-muted);
  font-size: 1.05rem;
}

.info-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 18px 0;
}

.info-list div {
  padding: 12px;
  background: #fffbeb;
  border-radius: 14px;
}

.info-list b {
  display: block;
  color: #92400e;
  font-size: 0.82rem;
}

.info-list span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag-list span {
  padding: 6px 10px;
  color: #92400e;
  background: #fef3c7;
  border-radius: 999px;
  font-size: 0.84rem;
  font-weight: 750;
}

.article-block {
  margin-top: 26px;
}

.article-block h2 {
  margin: 0 0 12px;
  font-size: 1.35rem;
}

.article-block p {
  margin: 0;
  color: #4b5563;
  line-height: 1.86;
}

.side-card {
  padding: 20px;
}

.side-card h2 {
  margin: 0 0 16px;
  font-size: 1.25rem;
}

.side-list {
  display: grid;
  gap: 14px;
}

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

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

.side-item strong {
  display: -webkit-box;
  overflow: hidden;
  color: #1f2937;
  line-height: 1.35;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.side-item small {
  color: var(--text-soft);
}

.site-footer {
  margin-top: 48px;
  background: linear-gradient(135deg, #fffbeb, #fff7ed);
  border-top: 1px solid #fde68a;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.4fr;
  gap: 32px;
  padding: 44px 0;
}

.footer-grid h3 {
  margin: 0 0 14px;
  font-size: 1rem;
}

.footer-grid p,
.footer-grid a {
  display: block;
  margin: 0 0 8px;
  color: var(--text-muted);
  font-size: 0.92rem;
}

.footer-grid a:hover {
  color: var(--amber-deep);
}

.footer-brand {
  margin-bottom: 14px;
}

.footer-bottom {
  padding: 18px;
  color: var(--text-muted);
  border-top: 1px solid rgba(251, 191, 36, 0.45);
  text-align: center;
  font-size: 0.9rem;
}

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

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

  .nav-search {
    margin-left: auto;
  }

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

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

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

@media (max-width: 760px) {
  .container {
    width: min(100% - 24px, var(--container));
  }

  .nav-wrap {
    height: 64px;
  }

  .nav-search {
    display: none;
  }

  .brand-text {
    font-size: 1.08rem;
  }

  .hero {
    min-height: 560px;
  }

  .hero-control {
    display: none;
  }

  .hero-copy {
    padding-right: 22px;
  }

  .hero-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .main-space {
    padding: 42px 0;
  }

  .section,
  .section-card {
    margin-bottom: 42px;
  }

  .section-card {
    padding: 22px;
  }

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

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

  .movie-card.compact .card-cover,
  .card-cover {
    aspect-ratio: 3 / 4;
  }

  .rank-row {
    grid-template-columns: 36px 96px minmax(0, 1fr);
    gap: 12px;
    padding: 12px;
  }

  .rank-row img {
    width: 96px;
    height: 68px;
  }

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

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

  .info-list {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 480px) {
  .grid.cards,
  .grid.cards.six,
  .category-grid {
    grid-template-columns: 1fr;
  }

  .scroller .movie-card {
    width: 270px;
    min-width: 270px;
  }
}
