:root {
  --bg: #fffaf0;
  --bg-soft: #fffbeb;
  --text: #111827;
  --muted: #6b7280;
  --line: #e5e7eb;
  --amber: #b45309;
  --amber-dark: #92400e;
  --amber-soft: #fef3c7;
  --orange-soft: #ffedd5;
  --white: #ffffff;
  --dark: #111827;
  --shadow: 0 18px 48px rgba(17, 24, 39, 0.12);
  --radius: 18px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

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

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

button,
input {
  font: inherit;
}

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

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

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
  color: var(--dark);
  letter-spacing: -0.02em;
}

.brand-mark {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  color: #ffffff;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--amber), #f59e0b);
  box-shadow: 0 10px 30px rgba(180, 83, 9, 0.28);
}

.brand-text {
  font-size: 22px;
}

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

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

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

.nav-search-toggle,
.mobile-toggle {
  border: 0;
  color: #374151;
  background: transparent;
  cursor: pointer;
  font-size: 24px;
  line-height: 1;
}

.mobile-toggle {
  display: none;
}

.search-panel,
.mobile-panel {
  display: none;
  border-top: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.98);
}

.search-panel.active,
.mobile-panel.active {
  display: block;
}

.search-form,
.mobile-search,
.big-search {
  display: flex;
  width: min(760px, calc(100% - 32px));
  margin: 16px auto;
  gap: 12px;
}

.search-form input,
.mobile-search input,
.big-search input {
  flex: 1;
  min-width: 0;
  padding: 13px 16px;
  border: 1px solid #d1d5db;
  border-radius: 14px;
  outline: none;
  background: #ffffff;
}

.search-form input:focus,
.mobile-search input:focus,
.big-search input:focus {
  border-color: var(--amber);
  box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.18);
}

.search-form button,
.mobile-search button,
.big-search button {
  border: 0;
  border-radius: 14px;
  padding: 0 22px;
  color: #ffffff;
  background: var(--amber);
  cursor: pointer;
  font-weight: 800;
}

.mobile-panel nav {
  display: grid;
  gap: 6px;
  width: min(760px, calc(100% - 32px));
  margin: 12px auto 0;
}

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

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

.hero-slides,
.hero-slide {
  position: absolute;
  inset: 0;
}

.hero-slide {
  opacity: 0;
  transform: scale(1.02);
  transition: opacity 0.8s ease, transform 1.2s ease;
  pointer-events: none;
}

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

.hero-slide img,
.category-hero > img,
.detail-hero > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.84) 0%, rgba(0, 0, 0, 0.58) 42%, rgba(0, 0, 0, 0.1) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  align-items: center;
}

.hero-copy {
  width: min(680px, 100%);
  color: #ffffff;
}

.hero-kicker,
.eyebrow {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 8px 14px;
  color: #ffffff;
  background: rgba(180, 83, 9, 0.92);
  border-radius: 999px;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.eyebrow {
  color: var(--amber);
  background: var(--amber-soft);
}

.hero-copy h1,
.page-hero h1,
.category-hero-copy h1,
.detail-hero-copy h1 {
  margin: 18px 0 18px;
  font-size: clamp(38px, 7vw, 68px);
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.hero-copy p,
.page-hero p,
.category-hero-copy p,
.detail-hero-copy p {
  margin: 0;
  max-width: 760px;
  color: rgba(255, 255, 255, 0.86);
  font-size: clamp(17px, 2vw, 22px);
}

.hero-meta,
.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}

.hero-meta span,
.detail-meta span {
  padding: 7px 12px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  font-size: 14px;
  backdrop-filter: blur(8px);
}

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

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

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

.btn-primary {
  color: #ffffff;
  background: var(--amber);
  box-shadow: 0 18px 36px rgba(180, 83, 9, 0.28);
}

.btn-primary:hover {
  background: var(--amber-dark);
}

.btn-soft {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.28);
  backdrop-filter: blur(10px);
}

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

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

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

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

.warm-band {
  background: linear-gradient(90deg, #fff7ed, #fffbeb);
}

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

.section-head h2 {
  margin: 12px 0 4px;
  color: var(--text);
  font-size: clamp(28px, 4vw, 38px);
  line-height: 1.16;
  letter-spacing: -0.03em;
}

.section-head p {
  margin: 0;
  color: var(--muted);
}

.section-more {
  color: var(--amber);
  font-weight: 900;
  white-space: nowrap;
}

.section-more span {
  font-size: 24px;
  vertical-align: -2px;
}

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

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

.movie-card {
  overflow: hidden;
  background: #ffffff;
  border: 1px solid rgba(229, 231, 235, 0.85);
  border-radius: var(--radius);
  box-shadow: 0 10px 32px rgba(17, 24, 39, 0.08);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

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

.poster-link {
  display: block;
}

.poster-frame {
  position: relative;
  display: block;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  background: linear-gradient(135deg, #fef3c7, #fed7aa);
}

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

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

.poster-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 5px 10px;
  color: #ffffff;
  background: rgba(17, 24, 39, 0.76);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 900;
  backdrop-filter: blur(8px);
}

.poster-play {
  position: absolute;
  right: 12px;
  bottom: 12px;
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  color: #ffffff;
  background: rgba(180, 83, 9, 0.92);
  border-radius: 50%;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.25);
}

.card-body {
  padding: 16px;
}

.movie-card.small .card-body {
  padding: 13px;
}

.card-body h3 {
  margin: 0 0 8px;
  font-size: 18px;
  line-height: 1.32;
}

.movie-card.small .card-body h3 {
  font-size: 16px;
}

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

.card-meta,
.card-desc {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.card-desc {
  display: -webkit-box;
  min-height: 44px;
  margin-top: 8px;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

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

.tag-list span {
  padding: 4px 9px;
  color: var(--amber-dark);
  background: var(--amber-soft);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
}

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

.category-tile {
  position: relative;
  min-height: 210px;
  overflow: hidden;
  color: #ffffff;
  border-radius: 22px;
  box-shadow: var(--shadow);
}

.category-tile img {
  width: 100%;
  height: 100%;
  min-height: 210px;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.category-tile:hover img {
  transform: scale(1.06);
}

.tile-layer {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(17, 24, 39, 0.08), rgba(17, 24, 39, 0.86));
}

.category-tile strong,
.category-tile em {
  position: absolute;
  left: 20px;
  right: 20px;
}

.category-tile strong {
  bottom: 56px;
  font-size: 24px;
}

.category-tile em {
  bottom: 20px;
  color: rgba(255, 255, 255, 0.86);
  font-style: normal;
  font-size: 14px;
}

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

.rank-panel {
  align-self: start;
  overflow: hidden;
  background: #111827;
  border-radius: 24px;
  box-shadow: var(--shadow);
}

.sticky-rank {
  position: sticky;
  top: 92px;
}

.rank-panel-head {
  padding: 24px 24px 14px;
  color: #ffffff;
}

.rank-panel-head span {
  color: #fbbf24;
  font-weight: 900;
  letter-spacing: 0.12em;
}

.rank-panel-head h2 {
  margin: 6px 0 0;
  font-size: 28px;
}

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

.rank-list.long {
  max-height: 980px;
  overflow: auto;
}

.rank-item a {
  display: grid;
  grid-template-columns: 34px 54px minmax(0, 1fr) 44px;
  align-items: center;
  gap: 12px;
  padding: 12px 8px;
  color: #ffffff;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.rank-item img {
  width: 54px;
  height: 72px;
  object-fit: cover;
  border-radius: 10px;
}

.rank-number {
  color: #fbbf24;
  font-weight: 900;
}

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

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

.rank-text em {
  color: rgba(255, 255, 255, 0.62);
  font-size: 13px;
  font-style: normal;
}

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

.page-hero,
.category-hero,
.detail-hero {
  position: relative;
  overflow: hidden;
  color: #ffffff;
  background: #111827;
}

.compact-hero {
  padding: 96px 0;
  background: radial-gradient(circle at top left, rgba(245, 158, 11, 0.42), transparent 36%), linear-gradient(135deg, #111827, #451a03);
}

.category-hero {
  height: 420px;
}

.category-hero-copy,
.detail-hero-copy {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

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

.filter-panel h2 {
  margin: 10px 0 0;
  font-size: clamp(28px, 4vw, 38px);
}

.filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.filter-btn {
  padding: 9px 14px;
  color: #374151;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 999px;
  cursor: pointer;
  font-weight: 800;
}

.filter-btn.active,
.filter-btn:hover {
  color: #ffffff;
  border-color: var(--amber);
  background: var(--amber);
}

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

.category-card-large {
  overflow: hidden;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: 0 12px 34px rgba(17, 24, 39, 0.08);
}

.category-thumbs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2px;
  background: #ffffff;
}

.category-thumbs img {
  width: 100%;
  height: 130px;
  object-fit: cover;
}

.category-large-body {
  padding: 22px;
}

.category-large-body span {
  color: var(--amber);
  font-weight: 900;
}

.category-large-body h2 {
  margin: 8px 0;
  font-size: 26px;
}

.category-large-body p {
  margin: 0;
  color: var(--muted);
}

.detail-hero {
  min-height: 660px;
}

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

.detail-cover {
  overflow: hidden;
  border: 4px solid rgba(255, 255, 255, 0.32);
  border-radius: 24px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.38);
}

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

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 28px;
  color: rgba(255, 255, 255, 0.78);
  font-weight: 700;
}

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

.large-tags span {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.24);
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 30px;
  padding: 70px 0 20px;
}

.watch-player {
  position: relative;
  overflow: hidden;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000000;
  border-radius: 24px;
  box-shadow: var(--shadow);
}

.video-player {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background: #000000;
  object-fit: contain;
  z-index: 1;
}

.play-layer {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: grid;
  place-items: center;
  border: 0;
  background: radial-gradient(circle, rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.42));
  cursor: pointer;
}

.play-layer.is-hidden {
  display: none;
}

.play-ring {
  display: grid;
  width: 94px;
  height: 94px;
  place-items: center;
  border-radius: 50%;
  background: rgba(180, 83, 9, 0.95);
  box-shadow: 0 20px 54px rgba(0, 0, 0, 0.38);
  transition: transform 0.2s ease;
}

.play-layer:hover .play-ring {
  transform: scale(1.08);
}

.play-triangle {
  width: 0;
  height: 0;
  margin-left: 8px;
  border-top: 17px solid transparent;
  border-bottom: 17px solid transparent;
  border-left: 26px solid #ffffff;
}

.detail-block,
.side-card {
  margin-top: 28px;
  padding: 28px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: 0 10px 28px rgba(17, 24, 39, 0.08);
}

.detail-block h2,
.side-card h2 {
  margin: 0 0 16px;
  font-size: 25px;
}

.detail-block p {
  margin: 0;
  color: #374151;
  font-size: 17px;
}

.detail-side {
  align-self: start;
}

.side-card:first-child {
  margin-top: 0;
}

.side-card dl {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 10px 14px;
  margin: 0;
}

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

.side-card dd {
  margin: 0;
}

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

.mini-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
  font-weight: 800;
}

.mini-list span {
  color: var(--amber);
}

.big-search {
  width: min(720px, 100%);
  margin: 30px 0 0;
}

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

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.2fr;
  gap: 34px;
  padding: 52px 0;
}

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

.footer-grid p {
  margin: 0;
}

.footer-grid ul {
  display: grid;
  gap: 9px;
  margin: 0;
  padding: 0;
  list-style: none;
}

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

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

[hidden] {
  display: none !important;
}

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

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

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

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

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

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

  .mobile-toggle {
    display: inline-flex;
  }

  .hero {
    min-height: 620px;
  }

  .hero-shade {
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.42), rgba(0, 0, 0, 0.86));
  }

  .hero-content {
    align-items: end;
    padding-bottom: 90px;
  }

  .hero-actions,
  .search-form,
  .mobile-search,
  .big-search,
  .filter-panel,
  .section-head {
    flex-direction: column;
    align-items: stretch;
  }

  .search-form button,
  .mobile-search button,
  .big-search button {
    min-height: 46px;
  }

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

  .card-body {
    padding: 12px;
  }

  .card-desc {
    display: none;
  }

  .category-tile {
    min-height: 180px;
  }

  .split-section,
  .content-section,
  .detail-layout {
    padding: 46px 0;
  }

  .detail-hero {
    min-height: 760px;
  }

  .detail-heading {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .detail-cover {
    width: min(210px, 72vw);
  }

  .detail-hero-copy {
    justify-content: end;
    padding-bottom: 42px;
  }

  .category-hero-copy {
    justify-content: end;
    padding-bottom: 42px;
  }

  .category-hero {
    height: 460px;
  }

  .side-card dl {
    grid-template-columns: 1fr;
  }

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

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

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

  .brand-text {
    font-size: 20px;
  }

  .hero-copy h1,
  .page-hero h1,
  .category-hero-copy h1,
  .detail-hero-copy h1 {
    font-size: 38px;
  }

  .rank-item a {
    grid-template-columns: 28px 48px minmax(0, 1fr) 38px;
    gap: 9px;
  }
}
