@charset "UTF-8";

:root {
  --bg: #fffaf0;
  --bg-soft: #fff7ed;
  --text: #1f2937;
  --muted: #6b7280;
  --muted-strong: #4b5563;
  --primary: #d97706;
  --primary-dark: #b45309;
  --accent: #f59e0b;
  --line: rgba(146, 64, 14, 0.16);
  --card: rgba(255, 255, 255, 0.86);
  --shadow: 0 18px 50px rgba(120, 53, 15, 0.16);
  --radius: 24px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(251, 191, 36, 0.25), transparent 32rem),
    linear-gradient(180deg, #fffaf0 0%, #ffffff 42%, #fff7ed 100%);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
}

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

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

button,
input {
  font: inherit;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 250, 240, 0.88);
  backdrop-filter: blur(18px);
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
  letter-spacing: -0.04em;
}

.brand-mark {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  color: #fff;
  background: linear-gradient(135deg, #f59e0b, #dc2626);
  box-shadow: 0 12px 32px rgba(217, 119, 6, 0.32);
}

.brand-text {
  font-size: clamp(16px, 2vw, 22px);
}

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

.nav-link {
  padding: 10px 14px;
  border-radius: 999px;
  color: var(--muted-strong);
  font-weight: 700;
  transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.nav-link:hover,
.nav-link.is-active {
  color: var(--primary-dark);
  background: rgba(251, 191, 36, 0.18);
  transform: translateY(-1px);
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 14px;
  background: rgba(251, 191, 36, 0.18);
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 4px auto;
  border-radius: 999px;
  background: var(--primary-dark);
}

.hero {
  padding: 28px 0 34px;
}

.hero-stage {
  position: relative;
  width: min(1280px, calc(100% - 32px));
  min-height: 620px;
  margin: 0 auto;
  overflow: hidden;
  border-radius: 36px;
  background: linear-gradient(135deg, #78350f, #f59e0b);
  box-shadow: var(--shadow);
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(320px, 0.75fr);
  gap: 28px;
  align-items: center;
  padding: clamp(24px, 5vw, 68px);
  opacity: 0;
  pointer-events: none;
  transform: scale(1.04);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

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

.hero-slide::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(30, 17, 4, 0.88), rgba(30, 17, 4, 0.56), rgba(30, 17, 4, 0.18)),
    radial-gradient(circle at 78% 22%, rgba(254, 243, 199, 0.36), transparent 26rem);
  z-index: -1;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: linear-gradient(135deg, #fbbf24, #92400e);
  filter: saturate(1.1) contrast(1.02);
}

.hero-copy {
  max-width: 690px;
  color: #fff;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--primary);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero-copy .eyebrow {
  color: #fde68a;
}

.hero-copy h1,
.page-hero h1,
.detail-info h1 {
  margin: 0;
  font-size: clamp(34px, 7vw, 76px);
  line-height: 0.98;
  font-weight: 950;
  letter-spacing: -0.08em;
}

.hero-summary {
  max-width: 620px;
  margin: 22px 0 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(16px, 2vw, 20px);
  line-height: 1.8;
}

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

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

.hero-tags span,
.detail-tags span,
.tag-row span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
}

.hero-tags span {
  color: #fff7ed;
  border: 1px solid rgba(255, 255, 255, 0.24);
  background: rgba(255, 255, 255, 0.14);
}

.hero-actions,
.detail-actions,
.small-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 20px;
  border-radius: 999px;
  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: #fff;
  background: linear-gradient(135deg, #f59e0b, #dc2626);
  box-shadow: 0 16px 34px rgba(220, 38, 38, 0.24);
}

.btn-soft {
  color: #92400e;
  background: rgba(255, 255, 255, 0.84);
}

.hero-dots {
  position: absolute;
  left: clamp(24px, 5vw, 68px);
  bottom: 26px;
  display: flex;
  gap: 10px;
  z-index: 4;
}

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

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

.intro-strip,
.page-hero,
.detail-hero,
.filter-panel,
.story-card,
.spotlight-panel,
.category-card-large {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  box-shadow: 0 14px 44px rgba(120, 53, 15, 0.08);
  backdrop-filter: blur(14px);
}

.intro-strip {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 420px);
  gap: 28px;
  align-items: center;
  padding: 28px;
}

.intro-strip h2,
.section-heading h2,
.spotlight-panel h2,
.story-card h2,
.site-footer h2 {
  margin: 0;
  font-size: clamp(24px, 3vw, 38px);
  font-weight: 950;
  letter-spacing: -0.06em;
}

.intro-strip p,
.page-hero p,
.story-card p,
.spotlight-panel p,
.site-footer p {
  margin: 12px 0 0;
  color: var(--muted-strong);
  line-height: 1.8;
}

.quick-search {
  display: flex;
  gap: 10px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
}

.quick-search input,
.search-box input {
  width: 100%;
  border: 0;
  outline: none;
  color: var(--text);
  background: transparent;
}

.quick-search button {
  flex: 0 0 auto;
  border: 0;
  border-radius: 999px;
  color: #fff;
  background: var(--primary);
  padding: 0 18px;
  font-weight: 900;
  cursor: pointer;
}

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

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

.compact-heading {
  align-items: center;
}

.more-link {
  color: var(--primary-dark);
  font-weight: 900;
}

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

.movie-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 12px 34px rgba(120, 53, 15, 0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.movie-card:hover {
  transform: translateY(-8px);
  border-color: rgba(245, 158, 11, 0.45);
  box-shadow: 0 20px 52px rgba(120, 53, 15, 0.18);
}

.poster-link,
.poster-frame {
  display: block;
}

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

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

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

.poster-badge {
  position: absolute;
  right: 10px;
  top: 10px;
  padding: 5px 9px;
  border-radius: 999px;
  color: #fff;
  background: rgba(31, 41, 55, 0.78);
  font-size: 12px;
  font-weight: 900;
}

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

.card-meta,
.ranking-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.card-meta a {
  color: var(--primary-dark);
}

.movie-card h2 {
  margin: 10px 0 8px;
  font-size: 18px;
  line-height: 1.35;
  font-weight: 950;
}

.movie-card p {
  min-height: 48px;
  margin: 0 0 12px;
  color: var(--muted-strong);
  line-height: 1.65;
  font-size: 14px;
}

.tag-row span,
.detail-tags span {
  color: #92400e;
  background: #fffbeb;
}

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

.category-tile {
  min-height: 130px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.92), rgba(254, 243, 199, 0.74));
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

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

.category-tile span {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  color: #fff;
  background: var(--primary);
  font-weight: 900;
}

.category-tile strong {
  margin-top: 18px;
  font-size: 19px;
}

.category-tile em {
  color: var(--muted);
  font-style: normal;
  font-weight: 800;
}

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

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

.compact-ranking {
  max-height: 740px;
  overflow: auto;
  padding-right: 4px;
}

.ranking-item {
  display: grid;
  grid-template-columns: 54px 78px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.9);
}

.ranking-index {
  width: 46px;
  height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  color: #fff;
  background: linear-gradient(135deg, #f59e0b, #dc2626);
  font-weight: 950;
}

.ranking-thumb {
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border-radius: 16px;
  background: #fef3c7;
}

.ranking-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ranking-item h2 {
  margin: 0 0 6px;
  font-size: 18px;
  font-weight: 950;
}

.ranking-item p {
  margin: 0 0 8px;
  color: var(--muted-strong);
  line-height: 1.65;
}

.spotlight-panel {
  align-self: start;
  padding: 24px;
  position: sticky;
  top: 96px;
}

.mini-list {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.mini-list a {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 12px;
  border-radius: 14px;
  background: #fffbeb;
  font-weight: 850;
}

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

.page-main {
  padding: 28px 0 70px;
}

.page-hero {
  padding: clamp(28px, 5vw, 54px);
}

.slim-hero {
  max-width: 980px;
  text-align: center;
}

.category-hero {
  background:
    radial-gradient(circle at top right, rgba(251, 191, 36, 0.24), transparent 28rem),
    rgba(255, 255, 255, 0.86);
}

.filter-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 22px;
  padding: 16px;
}

.search-box {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 48px;
  padding: 0 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
}

.search-box span {
  color: var(--primary-dark);
  font-weight: 900;
}

.filter-hints {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.filter-hints button {
  min-height: 40px;
  border: 0;
  border-radius: 999px;
  padding: 0 14px;
  color: #92400e;
  background: #fffbeb;
  font-weight: 900;
  cursor: pointer;
}

.category-overview-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin-top: 24px;
}

.category-card-large {
  padding: 24px;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.category-main-link span {
  display: inline-flex;
  width: 46px;
  height: 46px;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  color: #fff;
  background: var(--primary);
  font-weight: 950;
}

.category-main-link h2 {
  margin: 16px 0 8px;
  font-size: 26px;
  font-weight: 950;
}

.category-main-link p {
  min-height: 74px;
  margin: 0 0 14px;
  color: var(--muted-strong);
  line-height: 1.75;
}

.category-main-link strong {
  color: var(--primary-dark);
}

.category-samples {
  display: grid;
  gap: 8px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.category-samples a {
  color: var(--muted-strong);
  font-weight: 800;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
  margin-bottom: 16px;
}

.breadcrumb a {
  color: var(--primary-dark);
}

.detail-hero {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 34px;
  padding: clamp(22px, 4vw, 40px);
}

.detail-poster {
  overflow: hidden;
  border-radius: 28px;
  box-shadow: var(--shadow);
  background: #fef3c7;
}

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

.detail-info {
  align-self: center;
}

.detail-info h1 {
  color: #111827;
}

.detail-one-line {
  max-width: 760px;
  margin: 18px 0 0;
  color: var(--muted-strong);
  font-size: 18px;
  line-height: 1.8;
}

.detail-tags {
  margin-top: 20px;
}

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

.player-wrap {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  background: #111827;
  box-shadow: 0 24px 70px rgba(17, 24, 39, 0.24);
}

.player-wrap video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
}

.play-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  background: rgba(17, 24, 39, 0.18);
  cursor: pointer;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

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

.play-icon {
  width: 86px;
  height: 86px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: linear-gradient(135deg, #f59e0b, #dc2626);
  box-shadow: 0 18px 50px rgba(220, 38, 38, 0.36);
}

.play-icon::before {
  content: "";
  margin-left: 6px;
  border-top: 18px solid transparent;
  border-bottom: 18px solid transparent;
  border-left: 28px solid #fff;
}

.detail-content {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin-top: 28px;
}

.story-card {
  padding: 24px;
}

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

.site-footer {
  margin-top: 70px;
  padding: 46px 0;
  color: #fff7ed;
  background: linear-gradient(135deg, #451a03, #78350f);
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(180px, 0.7fr) minmax(180px, 0.7fr);
  gap: 36px;
}

.footer-brand {
  color: #fff;
}

.site-footer p {
  color: rgba(255, 247, 237, 0.8);
}

.footer-links {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.footer-links a {
  color: rgba(255, 247, 237, 0.84);
  font-weight: 800;
}

.is-hidden {
  display: none !important;
}

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

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

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

  .spotlight-panel {
    position: static;
  }

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

@media (max-width: 820px) {
  .menu-toggle {
    display: block;
  }

  .nav {
    position: absolute;
    left: 16px;
    right: 16px;
    top: 72px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 22px;
    background: rgba(255, 250, 240, 0.98);
    box-shadow: var(--shadow);
  }

  .nav.is-open {
    display: flex;
  }

  .hero-stage {
    min-height: 720px;
    border-radius: 24px;
  }

  .hero-slide {
    grid-template-columns: 1fr;
    align-content: end;
  }

  .intro-strip,
  .detail-hero,
  .filter-panel {
    grid-template-columns: 1fr;
    flex-direction: column;
    align-items: stretch;
  }

  .detail-hero {
    display: grid;
  }

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

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

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

@media (max-width: 560px) {
  .container,
  .hero-stage {
    width: min(100% - 20px, 1200px);
  }

  .brand-text {
    max-width: 210px;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
  }

  .movie-grid,
  .related-grid,
  .category-grid,
  .category-overview-grid {
    grid-template-columns: 1fr;
  }

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

  .ranking-item p {
    display: none;
  }

  .quick-search {
    border-radius: 22px;
    flex-direction: column;
  }

  .quick-search button {
    min-height: 42px;
  }
}
