
:root {
  --bg: #fff8ef;
  --bg-soft: #fff2df;
  --card: #ffffff;
  --text: #2a2118;
  --muted: #7b6b5e;
  --line: rgba(123, 88, 40, 0.16);
  --primary: #f59e0b;
  --primary-dark: #d97706;
  --accent: #ef4444;
  --shadow: 0 18px 55px rgba(101, 65, 20, 0.14);
  --radius: 24px;
  --container: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background:
    radial-gradient(circle at 12% 10%, rgba(245, 158, 11, 0.22), transparent 26rem),
    radial-gradient(circle at 86% 4%, rgba(239, 68, 68, 0.16), transparent 30rem),
    linear-gradient(135deg, #fffaf2 0%, #fff4e5 45%, #fff7ed 100%);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}

img {
  display: block;
  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: 40;
  background: rgba(255, 248, 239, 0.84);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(20px);
}

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

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

.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  color: #ffffff;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  border-radius: 14px;
  box-shadow: 0 14px 28px rgba(245, 129, 11, 0.28);
}

.brand-text {
  font-size: 1.18rem;
  background: linear-gradient(90deg, #b45309, #ea580c, #ef4444);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

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

.nav-link {
  padding: 10px 14px;
  color: #5c4a3a;
  border-radius: 999px;
  transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
  color: #9a3412;
  background: rgba(245, 158, 11, 0.16);
  transform: translateY(-1px);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 10px;
  border: 0;
  background: #ffffff;
  border-radius: 14px;
  box-shadow: 0 8px 22px rgba(87, 55, 12, 0.12);
}

.nav-toggle span {
  display: block;
  height: 2px;
  margin: 5px 0;
  background: #9a3412;
  border-radius: 999px;
}

.mobile-nav {
  display: none;
  width: min(var(--container), calc(100% - 32px));
  margin: 0 auto 16px;
  padding: 10px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: var(--shadow);
}

.mobile-nav.open {
  display: grid;
  gap: 6px;
}

.hero {
  padding: 30px 0 46px;
}

.hero-shell {
  position: relative;
  width: min(1320px, calc(100% - 32px));
  min-height: 620px;
  margin: 0 auto;
  overflow: hidden;
  border-radius: 34px;
  background: #21160e;
  box-shadow: 0 30px 90px rgba(72, 38, 9, 0.28);
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 32px;
  align-items: center;
  padding: 76px clamp(28px, 6vw, 88px);
  color: #ffffff;
  opacity: 0;
  pointer-events: none;
  transform: scale(1.02);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

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

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

.hero-backdrop img {
  height: 100%;
  object-fit: cover;
  filter: blur(2px) saturate(1.08);
  transform: scale(1.04);
  opacity: 0.56;
}

.hero-backdrop::after {
  position: absolute;
  inset: 0;
  content: "";
  background:
    linear-gradient(90deg, rgba(25, 18, 12, 0.94) 0%, rgba(42, 25, 13, 0.74) 48%, rgba(30, 18, 11, 0.4) 100%),
    radial-gradient(circle at 22% 20%, rgba(245, 158, 11, 0.38), transparent 24rem);
}

.hero-content,
.hero-poster-card {
  position: relative;
  z-index: 1;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #c2410c;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: #fde68a;
}

.hero-content h1 {
  max-width: 760px;
  margin: 18px 0 18px;
  font-size: clamp(2.7rem, 7vw, 6.5rem);
  line-height: 0.96;
  letter-spacing: -0.065em;
}

.hero-one-line {
  max-width: 650px;
  margin: 0 0 24px;
  color: rgba(255, 255, 255, 0.82);
  font-size: clamp(1rem, 2vw, 1.25rem);
  line-height: 1.8;
}

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

.hero-tags span,
.tag-row span {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 6px 12px;
  font-size: 0.82rem;
  font-weight: 700;
  color: #9a3412;
  background: rgba(245, 158, 11, 0.14);
  border: 1px solid rgba(245, 158, 11, 0.18);
  border-radius: 999px;
}

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

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

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

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

.btn-primary {
  color: #ffffff;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  box-shadow: 0 16px 28px rgba(234, 88, 12, 0.28);
}

.btn-ghost {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.22);
}

.hero-poster-card {
  align-self: center;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 28px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(14px);
}

.hero-poster-card img {
  aspect-ratio: 2 / 3;
  object-fit: cover;
}

.hero-poster-card div {
  display: flex;
  align-items: end;
  justify-content: space-between;
  padding: 18px;
}

.hero-poster-card strong {
  font-size: 2.5rem;
  line-height: 1;
}

.hero-poster-card span {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.9rem;
}

.hero-dots {
  position: absolute;
  right: 48px;
  bottom: 34px;
  z-index: 5;
  display: flex;
  gap: 10px;
}

.hero-dots button {
  width: 12px;
  height: 12px;
  padding: 0;
  border: 0;
  background: rgba(255, 255, 255, 0.42);
  border-radius: 999px;
  cursor: pointer;
}

.hero-dots button.active {
  width: 34px;
  background: #ffffff;
}

.search-strip,
.soft-panel,
.filter-panel,
.content-card,
.page-hero {
  background: rgba(255, 255, 255, 0.74);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}

.search-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 42px;
  padding: 26px;
  border-radius: var(--radius);
}

.search-strip h2,
.section-heading h2,
.page-hero h1,
.content-card h2 {
  margin: 6px 0 0;
  letter-spacing: -0.04em;
}

.section-block {
  margin: 54px auto;
}

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

.section-heading h2 {
  font-size: clamp(1.7rem, 3.4vw, 2.7rem);
}

.text-link {
  color: #c2410c;
  font-weight: 800;
}

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

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

.movie-card {
  overflow: hidden;
  background: var(--card);
  border: 1px solid rgba(245, 158, 11, 0.16);
  border-radius: 24px;
  box-shadow: 0 14px 34px rgba(92, 58, 21, 0.10);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.movie-card:hover {
  transform: translateY(-7px);
  box-shadow: 0 24px 52px rgba(92, 58, 21, 0.18);
}

.poster-link {
  position: relative;
  display: block;
  overflow: hidden;
  background: linear-gradient(135deg, #fde68a, #fed7aa);
}

.poster-link img {
  aspect-ratio: 2 / 3;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.movie-card:hover .poster-link img {
  transform: scale(1.05);
}

.poster-shade {
  position: absolute;
  inset: auto 0 0;
  height: 42%;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.58), transparent);
}

.play-chip,
.rank-badge {
  position: absolute;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  border-radius: 999px;
}

.play-chip {
  right: 12px;
  bottom: 12px;
  min-height: 34px;
  padding: 8px 12px;
  color: #ffffff;
  background: rgba(245, 158, 11, 0.92);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.22);
}

.rank-badge {
  top: 12px;
  left: 12px;
  width: 40px;
  height: 40px;
  color: #ffffff;
  background: linear-gradient(135deg, #ef4444, #f59e0b);
}

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

.movie-meta-line {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  color: var(--muted);
  font-size: 0.82rem;
}

.movie-meta-line span:not(:last-child)::after {
  content: "·";
  margin-left: 7px;
  color: rgba(123, 107, 94, 0.55);
}

.movie-card h2 {
  margin: 9px 0 8px;
  font-size: 1.08rem;
  line-height: 1.35;
}

.movie-card p {
  min-height: 3.8em;
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.7;
}

.movie-card-compact .movie-card-body {
  padding: 14px;
}

.movie-card-compact p {
  min-height: 0;
}

.horizontal-scroller {
  display: grid;
  grid-auto-columns: 240px;
  grid-auto-flow: column;
  gap: 20px;
  overflow-x: auto;
  padding: 4px 2px 18px;
  scroll-snap-type: x proximity;
}

.horizontal-scroller .movie-card {
  scroll-snap-align: start;
}

.soft-panel {
  padding: 30px;
  border-radius: 30px;
}

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

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

.category-card-link {
  display: block;
  height: 100%;
  overflow: hidden;
  background: #ffffff;
  border: 1px solid rgba(245, 158, 11, 0.16);
  border-radius: 24px;
  box-shadow: 0 14px 32px rgba(92, 58, 21, 0.10);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.category-card-link:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 48px rgba(92, 58, 21, 0.16);
}

.category-posters {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  padding: 12px;
}

.category-posters img {
  aspect-ratio: 2 / 3;
  object-fit: cover;
  border-radius: 16px;
}

.category-card-body {
  padding: 4px 18px 20px;
}

.category-card-body h2 {
  margin: 8px 0;
  font-size: 1.35rem;
}

.category-card-body p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.page-main {
  padding-bottom: 40px;
}

.page-hero {
  margin-top: 34px;
  padding: clamp(28px, 5vw, 56px);
  border-radius: 30px;
}

.page-hero h1 {
  font-size: clamp(2.2rem, 6vw, 5rem);
  line-height: 1;
}

.page-hero p {
  max-width: 760px;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.8;
}

.filter-panel {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) auto;
  gap: 18px;
  margin-top: 28px;
  padding: 20px;
  border-radius: 24px;
}

.filter-search,
.filter-controls label {
  display: grid;
  gap: 8px;
}

.filter-search label,
.filter-controls span {
  color: #92400e;
  font-size: 0.82rem;
  font-weight: 800;
}

.filter-search input,
.filter-controls select {
  width: 100%;
  min-height: 46px;
  padding: 0 14px;
  color: var(--text);
  background: #fffaf2;
  border: 1px solid rgba(245, 158, 11, 0.24);
  border-radius: 16px;
  outline: none;
}

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

.filter-controls {
  display: grid;
  grid-template-columns: repeat(3, minmax(130px, 1fr));
  gap: 12px;
}

.empty-state {
  margin: 34px 0;
  padding: 22px;
  color: var(--muted);
  text-align: center;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 20px;
}

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

.ranking-item {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr) 92px;
  gap: 18px;
  align-items: center;
  padding: 14px;
  background: #ffffff;
  border: 1px solid rgba(245, 158, 11, 0.16);
  border-radius: 24px;
  box-shadow: 0 12px 28px rgba(92, 58, 21, 0.10);
}

.ranking-cover {
  position: relative;
  overflow: hidden;
  border-radius: 18px;
}

.ranking-cover img {
  aspect-ratio: 2 / 3;
  object-fit: cover;
}

.ranking-cover span {
  position: absolute;
  top: 8px;
  left: 8px;
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  color: #ffffff;
  font-weight: 900;
  background: linear-gradient(135deg, #ef4444, #f59e0b);
  border-radius: 50%;
}

.ranking-info h2 {
  margin: 8px 0;
  font-size: 1.35rem;
}

.ranking-info p {
  margin: 0 0 12px;
  color: var(--muted);
  line-height: 1.7;
}

.ranking-score {
  display: grid;
  place-items: center;
  color: #9a3412;
}

.ranking-score strong {
  font-size: 2.2rem;
  line-height: 1;
}

.detail-hero {
  position: relative;
  overflow: hidden;
  min-height: 620px;
  color: #ffffff;
  background: #20140c;
}

.detail-backdrop {
  position: absolute;
  inset: 0;
}

.detail-backdrop img {
  height: 100%;
  object-fit: cover;
  filter: blur(3px) saturate(1.08);
  opacity: 0.42;
  transform: scale(1.04);
}

.detail-backdrop::after {
  position: absolute;
  inset: 0;
  content: "";
  background:
    linear-gradient(90deg, rgba(22, 14, 9, 0.92), rgba(32, 20, 12, 0.72), rgba(32, 20, 12, 0.5)),
    radial-gradient(circle at 26% 22%, rgba(245, 158, 11, 0.34), transparent 30rem);
}

.detail-hero-content {
  position: relative;
  z-index: 1;
  padding: 34px 0 54px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 36px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.92rem;
}

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

.detail-grid {
  display: grid;
  grid-template-columns: 290px minmax(0, 1fr);
  gap: clamp(28px, 5vw, 70px);
  align-items: center;
}

.detail-poster {
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 28px;
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.32);
}

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

.detail-intro h1 {
  max-width: 860px;
  margin: 12px 0 18px;
  font-size: clamp(2.4rem, 6vw, 5.8rem);
  line-height: 0.98;
  letter-spacing: -0.06em;
}

.detail-one-line {
  max-width: 780px;
  color: rgba(255, 255, 255, 0.84);
  font-size: 1.16rem;
  line-height: 1.8;
}

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 22px 0;
}

.detail-meta span {
  padding: 8px 12px;
  color: #fff7ed;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
}

.player-section {
  margin-top: 54px;
}

.player-box {
  position: relative;
  overflow: hidden;
  background: #0f0b08;
  border-radius: 30px;
  box-shadow: 0 26px 70px rgba(34, 20, 10, 0.25);
}

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

.player-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  gap: 14px;
  width: 100%;
  color: #ffffff;
  cursor: pointer;
  background:
    radial-gradient(circle, rgba(245, 158, 11, 0.20), rgba(15, 11, 8, 0.72)),
    rgba(15, 11, 8, 0.44);
  border: 0;
}

.player-overlay[hidden] {
  display: none;
}

.player-play-icon {
  display: grid;
  width: 82px;
  height: 82px;
  place-items: center;
  padding-left: 5px;
  color: #9a3412;
  font-size: 2rem;
  background: #ffffff;
  border-radius: 50%;
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.28);
}

.player-overlay strong {
  font-size: 1.15rem;
}

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

.content-card {
  padding: clamp(22px, 4vw, 34px);
  border-radius: 28px;
}

.content-card p {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 1.03rem;
  line-height: 1.9;
}

.site-footer {
  margin-top: 70px;
  padding: 46px 0;
  background: rgba(255, 255, 255, 0.68);
  border-top: 1px solid var(--line);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 32px;
}

.footer-brand p {
  max-width: 420px;
  color: var(--muted);
  line-height: 1.8;
}

.footer-logo .brand-mark {
  width: 38px;
  height: 38px;
}

.footer-links h2 {
  margin: 0 0 14px;
  font-size: 1rem;
}

.footer-link-grid {
  display: grid;
  gap: 10px;
}

.footer-link-grid a {
  color: var(--muted);
}

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

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

  .hero-slide {
    grid-template-columns: minmax(0, 1fr) 250px;
  }

  .hero-shell {
    min-height: 560px;
  }
}

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

  .nav-toggle {
    display: block;
  }

  .hero-shell {
    min-height: 760px;
    border-radius: 26px;
  }

  .hero-slide {
    grid-template-columns: 1fr;
    align-content: end;
    padding: 34px 22px 72px;
  }

  .hero-poster-card {
    display: none;
  }

  .hero-dots {
    right: 24px;
    bottom: 26px;
  }

  .search-strip,
  .section-heading,
  .filter-panel,
  .footer-grid,
  .detail-content {
    grid-template-columns: 1fr;
  }

  .search-strip,
  .section-heading {
    display: grid;
    align-items: start;
  }

  .filter-controls {
    grid-template-columns: 1fr;
  }

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

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

  .ranking-score {
    grid-column: 1 / -1;
    display: flex;
    justify-content: flex-end;
    gap: 8px;
  }

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

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

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

  .header-inner {
    min-height: 64px;
  }

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

  .hero {
    padding-top: 16px;
  }

  .hero-shell {
    width: min(100% - 20px, 1320px);
    min-height: 680px;
  }

  .hero-content h1,
  .detail-intro h1,
  .page-hero h1 {
    letter-spacing: -0.045em;
  }

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

  .horizontal-scroller {
    grid-auto-columns: 78%;
  }

  .soft-panel,
  .page-hero,
  .filter-panel,
  .content-card {
    padding: 20px;
    border-radius: 22px;
  }

  .movie-card p {
    min-height: 0;
  }
}
