/*
  Generated static movie site styles.
  The code is intentionally formatted with clear sections and indentation.
*/

:root {
  --bg: #fffaf0;
  --bg-soft: #fff7ed;
  --text: #2d231d;
  --muted: #75685d;
  --line: #eadccd;
  --brand: #d97706;
  --brand-dark: #92400e;
  --card: #ffffff;
  --shadow: 0 18px 45px rgba(90, 57, 18, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

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

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

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

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

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

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

.brand-mark {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  color: #ffffff;
  font-weight: 800;
  border-radius: 16px;
  background: linear-gradient(135deg, #f59e0b, #7c2d12);
  box-shadow: 0 10px 25px rgba(217, 119, 6, 0.25);
}

.brand strong {
  display: block;
  font-size: 18px;
  line-height: 1.2;
}

.brand small {
  display: block;
  color: var(--muted);
  font-size: 12px;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 18px;
  color: #5c5046;
  font-weight: 600;
}

.main-nav a {
  padding: 8px 10px;
  border-radius: 999px;
}

.main-nav a:hover {
  color: var(--brand-dark);
  background: #ffedd5;
}

.nav-toggle {
  display: none;
  padding: 8px 12px;
  color: var(--brand-dark);
  background: #ffedd5;
  border: 0;
  border-radius: 999px;
  font-weight: 700;
}

.page-main {
  min-height: 60vh;
}

.hero {
  padding: 70px 0 42px;
}

.hero-grid,
.detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.55fr);
  gap: 44px;
  align-items: center;
}

.hero-copy h1,
.list-hero h1,
.detail-copy h1,
.prose-page h1 {
  margin: 0;
  font-size: clamp(34px, 6vw, 68px);
  line-height: 1.08;
  letter-spacing: -0.04em;
}

.hero-copy p,
.list-hero p,
.detail-one-line {
  max-width: 720px;
  margin: 20px 0 0;
  color: var(--muted);
  font-size: 18px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  color: var(--brand-dark);
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 20px;
  border-radius: 999px;
  font-weight: 800;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

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

.button-primary {
  color: #ffffff;
  background: linear-gradient(135deg, #f59e0b, #b45309);
  box-shadow: 0 12px 28px rgba(180, 83, 9, 0.25);
}

.button-light {
  color: var(--brand-dark);
  background: #ffffff;
  border: 1px solid var(--line);
}

.stats-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 30px;
}

.stats-row span {
  padding: 10px 14px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.76);
  border: 1px solid var(--line);
  border-radius: 14px;
}

.stats-row strong {
  color: var(--brand-dark);
}

.poster {
  position: relative;
  min-height: 430px;
  overflow: hidden;
  color: #ffffff;
  background:
    radial-gradient(circle at 30% 20%, hsla(var(--poster-hue), 84%, 72%, 0.9), transparent 38%),
    linear-gradient(145deg, hsl(var(--poster-hue), 70%, 38%), #1f1611 72%);
  border-radius: 28px;
  box-shadow: var(--shadow);
}

.poster-small {
  min-height: 235px;
  border-radius: 22px 22px 0 0;
}

.poster-shine {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(120deg, rgba(255, 255, 255, 0.28), transparent 36%),
    radial-gradient(circle at 72% 82%, rgba(255, 255, 255, 0.18), transparent 28%);
}

.poster-content {
  position: absolute;
  inset: auto 24px 26px 24px;
}

.poster-kicker {
  display: inline-block;
  margin-bottom: 10px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 13px;
  font-weight: 700;
}

.poster strong {
  display: block;
  font-size: clamp(24px, 4vw, 42px);
  line-height: 1.12;
  text-shadow: 0 3px 18px rgba(0, 0, 0, 0.28);
}

.poster-small strong {
  font-size: 23px;
}

.section {
  padding: 34px 0;
}

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

.section-title h2 {
  margin: 0;
  font-size: clamp(24px, 3vw, 36px);
}

.section-title p {
  max-width: 620px;
  margin: 0;
  color: var(--muted);
}

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

.category-card {
  min-height: 132px;
  padding: 22px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: 0 10px 30px rgba(90, 57, 18, 0.08);
}

.category-card:hover,
.movie-card:hover,
.ranking-row:hover {
  transform: translateY(-3px);
  border-color: #f59e0b;
  box-shadow: var(--shadow);
}

.category-card span {
  display: block;
  margin-bottom: 10px;
  color: var(--brand-dark);
  font-size: 20px;
  font-weight: 800;
}

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

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

.movie-card {
  overflow: hidden;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: 0 10px 30px rgba(90, 57, 18, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.movie-card-link {
  display: block;
  height: 100%;
}

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

.movie-meta-line {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
  color: var(--brand-dark);
  font-size: 13px;
  font-weight: 800;
}

.movie-card h3 {
  margin: 0;
  font-size: 20px;
  line-height: 1.35;
}

.movie-card p {
  display: -webkit-box;
  min-height: 54px;
  margin: 10px 0 14px;
  overflow: hidden;
  color: var(--muted);
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

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

.tag-row span {
  padding: 3px 9px;
  color: #8a4b0f;
  background: #ffedd5;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}

.tag-row-large span {
  padding: 6px 12px;
  font-size: 13px;
}

.list-hero {
  padding: 58px 0 28px;
  background: linear-gradient(135deg, rgba(255, 237, 213, 0.72), rgba(255, 255, 255, 0));
}

.list-count {
  display: inline-flex;
  margin-top: 18px;
  padding: 8px 14px;
  color: var(--brand-dark);
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-weight: 800;
}

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

.ranking-row {
  display: grid;
  grid-template-columns: 68px minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  padding: 16px 18px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 18px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.ranking-num {
  color: var(--brand);
  font-size: 22px;
  font-weight: 900;
}

.ranking-title {
  overflow: hidden;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ranking-meta {
  color: var(--muted);
  font-size: 14px;
}

.search-box {
  margin-top: 26px;
}

.search-box input {
  width: min(720px, 100%);
  height: 54px;
  padding: 0 20px;
  color: var(--text);
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 999px;
  box-shadow: 0 10px 30px rgba(90, 57, 18, 0.08);
  font-size: 16px;
  outline: none;
}

.search-box input:focus {
  border-color: #f59e0b;
  box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.16);
}

.search-status {
  margin-bottom: 18px;
  color: var(--muted);
  font-weight: 700;
}

.detail-hero {
  padding: 54px 0 34px;
}

.detail-grid {
  grid-template-columns: minmax(280px, 0.46fr) minmax(0, 1fr);
}

.detail-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 24px 0;
}

.detail-meta div {
  padding: 14px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 16px;
}

.detail-meta dt {
  color: var(--muted);
  font-size: 13px;
}

.detail-meta dd {
  margin: 4px 0 0;
  font-weight: 800;
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 28px;
  padding-bottom: 54px;
}

.detail-panel,
.side-box,
.prose-page {
  margin-bottom: 20px;
  padding: 24px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: 0 10px 30px rgba(90, 57, 18, 0.08);
}

.detail-panel h2,
.side-box h2 {
  margin: 0 0 14px;
  font-size: 24px;
}

.detail-panel p {
  margin: 0;
  color: #51463d;
  font-size: 16px;
}

.movie-player {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #17120e;
  border-radius: 18px;
}

.player-note {
  margin: 12px 0 16px !important;
  color: var(--muted) !important;
  font-size: 14px !important;
}

.empty-player {
  display: grid;
  min-height: 220px;
  place-items: center;
  padding: 24px;
  color: #8a4b0f;
  background: #ffedd5;
  border-radius: 18px;
  text-align: center;
  font-weight: 800;
}

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

.side-list .movie-card {
  border-radius: 18px;
}

.side-list .poster-small {
  display: none;
}

.side-list .movie-card p,
.side-list .tag-row {
  display: none;
}

.prose-page {
  margin-top: 48px;
  margin-bottom: 56px;
  max-width: 860px;
}

.prose-page h1 {
  margin-bottom: 18px;
  font-size: clamp(32px, 4vw, 48px);
}

.prose-page p {
  margin: 12px 0;
  color: #51463d;
  font-size: 17px;
}

.site-footer {
  padding-top: 34px;
  color: #f5efe8;
  background: linear-gradient(135deg, #1c1917, #7c2d12);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 24px;
  padding-bottom: 28px;
}

.site-footer strong {
  display: block;
  margin-bottom: 8px;
  color: #ffffff;
}

.site-footer p {
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
}

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

.footer-bottom {
  padding: 18px 24px;
  color: rgba(255, 255, 255, 0.62);
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  text-align: center;
}

@media (max-width: 980px) {
  .hero-grid,
  .detail-grid,
  .detail-layout {
    grid-template-columns: 1fr;
  }

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

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

@media (max-width: 760px) {
  .nav-toggle {
    display: inline-flex;
  }

  .main-nav {
    position: absolute;
    top: 72px;
    right: 16px;
    left: 16px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 16px;
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: 22px;
    box-shadow: var(--shadow);
  }

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

  .section-title {
    display: block;
  }

  .section-title p {
    margin-top: 8px;
  }

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

  .ranking-row {
    grid-template-columns: 50px minmax(0, 1fr);
  }

  .ranking-meta {
    grid-column: 2;
  }

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

  .poster {
    min-height: 340px;
  }
}
