:root {
  --bg: #fff8ed;
  --surface: #ffffff;
  --surface-soft: #fff3db;
  --text: #282018;
  --muted: #74665a;
  --line: #f5dca9;
  --accent: #d97706;
  --accent-2: #f97316;
  --accent-3: #f59e0b;
  --shadow: 0 22px 60px rgba(146, 64, 14, 0.14);
  --shadow-soft: 0 12px 36px rgba(146, 64, 14, 0.10);
  --radius-lg: 28px;
  --radius-md: 20px;
  --radius-sm: 14px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 0 0, rgba(255, 221, 163, 0.72), transparent 32rem),
    radial-gradient(circle at 100% 0, rgba(251, 146, 60, 0.22), transparent 30rem),
    var(--bg);
}

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

img {
  display: block;
  width: 100%;
  height: auto;
}

button,
input,
select {
  font: inherit;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.86);
  border-bottom: 1px solid rgba(245, 158, 11, 0.18);
  backdrop-filter: blur(18px);
}

.nav-shell {
  display: flex;
  align-items: center;
  gap: 22px;
  min-height: 74px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, #b45309, #f97316);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.brand-icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  color: #fff;
  border-radius: 14px;
  background: linear-gradient(135deg, #f59e0b, #fb923c);
  box-shadow: 0 14px 28px rgba(245, 158, 11, 0.28);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}

.main-nav a {
  padding: 9px 12px;
  border-radius: 999px;
  color: #5f4b37;
  font-weight: 700;
  transition: all 0.2s ease;
}

.main-nav a:hover,
.main-nav a.active {
  color: #9a3412;
  background: #fff0cf;
}

.top-search {
  display: flex;
  align-items: center;
  width: 280px;
  padding: 4px;
  border: 1px solid #f2d49d;
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 10px 26px rgba(180, 83, 9, 0.08);
}

.top-search input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  padding: 8px 11px;
  background: transparent;
  color: #3b2f25;
}

.top-search button,
.primary-btn,
.secondary-btn,
.play-link {
  border: 0;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(135deg, var(--accent-3), var(--accent-2));
  padding: 10px 18px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 12px 24px rgba(249, 115, 22, 0.22);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.top-search button:hover,
.primary-btn:hover,
.play-link:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 30px rgba(249, 115, 22, 0.28);
}

.secondary-btn {
  color: #9a3412;
  background: #fff7e8;
  border: 1px solid #f0d29a;
  box-shadow: none;
}

.nav-toggle {
  display: none;
  margin-left: auto;
  border: 0;
  border-radius: 12px;
  color: #9a3412;
  background: #fff0cf;
  padding: 9px 12px;
}

.hero {
  position: relative;
  overflow: hidden;
  margin: 26px auto 38px;
  border-radius: 36px;
  background:
    linear-gradient(135deg, rgba(255, 247, 237, 0.94), rgba(255, 237, 213, 0.72)),
    radial-gradient(circle at 75% 15%, rgba(251, 146, 60, 0.28), transparent 26rem),
    radial-gradient(circle at 15% 90%, rgba(245, 158, 11, 0.24), transparent 24rem);
  box-shadow: var(--shadow);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(90deg, rgba(255, 255, 255, 0.54) 1px, transparent 1px),
    linear-gradient(rgba(255, 255, 255, 0.36) 1px, transparent 1px);
  background-size: 54px 54px;
  mask-image: linear-gradient(to bottom, #000, transparent);
  pointer-events: none;
}

.hero-slider {
  position: relative;
  min-height: 600px;
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: 34px;
  align-items: center;
  padding: 58px;
  opacity: 0;
  transform: translateX(22px);
  transition: opacity 0.55s ease, transform 0.55s ease;
  pointer-events: none;
}

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

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  width: fit-content;
  padding: 8px 12px;
  color: #92400e;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(245, 158, 11, 0.22);
  border-radius: 999px;
  font-weight: 800;
  box-shadow: 0 10px 24px rgba(180, 83, 9, 0.08);
}

.hero h1,
.page-hero h1,
.movie-title h1 {
  margin: 18px 0 16px;
  font-size: clamp(38px, 6vw, 70px);
  line-height: 1.04;
  letter-spacing: -0.055em;
}

.hero p {
  max-width: 660px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.9;
}

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

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

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

.hero-tags span,
.tag-row span,
.meta-pill {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  color: #8a4b11;
  background: #fff5dc;
  border: 1px solid #f4d89b;
  padding: 6px 10px;
  font-size: 13px;
  font-weight: 700;
}

.hero-visual {
  position: relative;
  min-height: 470px;
}

.hero-poster {
  position: absolute;
  right: 0;
  top: 0;
  width: min(360px, 78%);
  aspect-ratio: 2 / 3;
  overflow: hidden;
  border-radius: 34px;
  box-shadow: 0 32px 70px rgba(124, 45, 18, 0.32);
  transform: rotate(3deg);
}

.hero-poster img {
  height: 100%;
  object-fit: cover;
}

.hero-mini-card {
  position: absolute;
  left: 0;
  bottom: 24px;
  width: min(330px, 74%);
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.68);
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(18px);
  box-shadow: 0 24px 50px rgba(124, 45, 18, 0.16);
}

.hero-mini-card strong {
  display: block;
  margin-bottom: 6px;
  font-size: 20px;
}

.hero-dots {
  position: absolute;
  left: 58px;
  bottom: 34px;
  display: flex;
  gap: 8px;
  z-index: 4;
}

.hero-dots button {
  width: 12px;
  height: 12px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: #f0c977;
  transition: all 0.2s ease;
}

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

.section,
.page-hero,
.detail-layout,
.player-section {
  margin: 44px auto;
}

.page-hero {
  padding: 42px;
  border: 1px solid rgba(245, 158, 11, 0.22);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.72);
  box-shadow: var(--shadow-soft);
}

.page-hero p {
  max-width: 820px;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.9;
}

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

.section-head h2,
.page-hero h1,
.movie-title h1 {
  margin: 0;
}

.section-head h2 {
  font-size: clamp(26px, 3.4vw, 42px);
  letter-spacing: -0.035em;
}

.section-head p {
  color: var(--muted);
  line-height: 1.8;
}

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

.movie-card {
  overflow: hidden;
  border: 1px solid rgba(245, 158, 11, 0.18);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 12px 32px rgba(146, 64, 14, 0.08);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.movie-card:hover {
  transform: translateY(-4px);
  border-color: rgba(245, 158, 11, 0.46);
  box-shadow: 0 22px 48px rgba(146, 64, 14, 0.15);
}

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

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

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

.year-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  padding: 5px 9px;
  border-radius: 999px;
  color: #fff;
  background: rgba(0, 0, 0, 0.55);
  font-size: 12px;
  font-weight: 800;
  backdrop-filter: blur(8px);
}

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

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

.movie-card h3 a:hover {
  color: #c2410c;
}

.movie-meta,
.movie-desc {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.movie-meta {
  font-size: 13px;
  font-weight: 700;
}

.movie-desc {
  display: -webkit-box;
  min-height: 54px;
  margin-top: 8px;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  font-size: 14px;
}

.tag-row {
  margin-top: 12px;
}

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

.category-card {
  display: flex;
  min-height: 170px;
  flex-direction: column;
  justify-content: space-between;
  padding: 20px;
  border: 1px solid rgba(245, 158, 11, 0.2);
  border-radius: 24px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(255, 243, 219, 0.88)),
    radial-gradient(circle at 100% 0, rgba(249, 115, 22, 0.18), transparent 12rem);
  box-shadow: 0 12px 30px rgba(146, 64, 14, 0.08);
}

.category-card h2,
.category-card h3 {
  margin: 0 0 10px;
  font-size: 22px;
}

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

.category-card span {
  color: #c2410c;
  font-weight: 800;
}

.rank-panel {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

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

.rank-item {
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.84);
  border: 1px solid rgba(245, 158, 11, 0.16);
  box-shadow: 0 8px 20px rgba(146, 64, 14, 0.06);
}

.rank-link {
  display: grid;
  grid-template-columns: 44px 56px 1fr;
  gap: 12px;
  align-items: center;
  padding: 9px 12px;
}

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

.rank-link img {
  width: 56px;
  height: 76px;
  object-fit: cover;
  border-radius: 12px;
}

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

.rank-text strong {
  margin-bottom: 4px;
}

.rank-text em {
  color: var(--muted);
  font-size: 13px;
  font-style: normal;
}

.filter-bar {
  display: grid;
  grid-template-columns: 1.5fr 0.8fr 0.8fr;
  gap: 12px;
  margin-bottom: 22px;
  padding: 16px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.76);
  border: 1px solid rgba(245, 158, 11, 0.22);
}

.filter-bar input,
.filter-bar select {
  width: 100%;
  border: 1px solid #f1d59e;
  border-radius: 16px;
  outline: 0;
  color: #3b2f25;
  background: #fffdf8;
  padding: 12px 14px;
}

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

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

.movie-hero {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 34px;
  align-items: center;
  padding: 34px;
  border-radius: 32px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.86), rgba(255, 244, 224, 0.8)),
    radial-gradient(circle at 100% 0, rgba(249, 115, 22, 0.18), transparent 20rem);
  border: 1px solid rgba(245, 158, 11, 0.22);
  box-shadow: var(--shadow-soft);
}

.detail-poster {
  overflow: hidden;
  border-radius: 28px;
  box-shadow: 0 28px 56px rgba(124, 45, 18, 0.24);
}

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

.movie-title p {
  color: var(--muted);
  font-size: 17px;
  line-height: 1.9;
}

.meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 18px 0 22px;
}

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

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

.play-layer {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  border: 0;
  color: #fff;
  background: radial-gradient(circle at center, rgba(0, 0, 0, 0.16), rgba(0, 0, 0, 0.5));
  cursor: pointer;
  z-index: 2;
}

.play-layer span {
  display: grid;
  place-items: center;
  width: 88px;
  height: 88px;
  border-radius: 999px;
  background: linear-gradient(135deg, #f59e0b, #f97316);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.35);
  font-size: 34px;
  transform: translateX(3px);
}

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

.content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 26px;
}

.article-panel,
.side-panel {
  padding: 24px;
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(245, 158, 11, 0.18);
  box-shadow: 0 12px 32px rgba(146, 64, 14, 0.07);
}

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

.article-panel p {
  color: #514338;
  line-height: 2;
  margin: 0 0 18px;
}

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

.related-card {
  display: grid;
  grid-template-columns: 58px 1fr;
  gap: 12px;
  align-items: center;
  padding: 10px;
  border-radius: 16px;
  background: #fff8eb;
  border: 1px solid #f1d59e;
}

.related-card img {
  height: 78px;
  border-radius: 12px;
  object-fit: cover;
}

.related-card strong,
.related-card span {
  display: block;
}

.related-card span {
  color: var(--muted);
  font-size: 13px;
  margin-top: 3px;
}

.site-footer {
  margin-top: 70px;
  padding: 44px 0 24px;
  background: rgba(255, 255, 255, 0.76);
  border-top: 1px solid rgba(245, 158, 11, 0.18);
}

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

.footer-grid h2 {
  margin: 0 0 14px;
  font-size: 17px;
}

.footer-grid p,
.footer-links a,
.footer-bottom {
  color: var(--muted);
}

.footer-links {
  display: grid;
  gap: 8px;
}

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

.footer-bottom {
  width: min(1180px, calc(100% - 32px));
  margin: 28px auto 0;
  padding-top: 18px;
  border-top: 1px solid rgba(245, 158, 11, 0.16);
  font-size: 14px;
}

.no-result {
  display: none;
  padding: 24px;
  text-align: center;
  color: var(--muted);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.72);
}

.no-result.is-visible {
  display: block;
}

@media (max-width: 980px) {
  .top-search {
    display: none;
  }

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

  .main-nav {
    position: absolute;
    top: 74px;
    left: 16px;
    right: 16px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 14px;
    border: 1px solid rgba(245, 158, 11, 0.22);
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: var(--shadow-soft);
  }

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

  .hero-slider {
    min-height: 780px;
  }

  .hero-slide {
    grid-template-columns: 1fr;
    padding: 34px;
  }

  .hero-visual {
    min-height: 360px;
  }

  .hero-dots {
    left: 34px;
  }

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

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

  .rank-panel,
  .content-grid,
  .footer-grid,
  .movie-hero {
    grid-template-columns: 1fr;
  }

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

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

  .brand {
    font-size: 18px;
  }

  .hero {
    border-radius: 24px;
  }

  .hero-slider {
    min-height: 740px;
  }

  .hero-slide,
  .page-hero,
  .movie-hero {
    padding: 22px;
  }

  .hero h1,
  .page-hero h1,
  .movie-title h1 {
    font-size: 34px;
  }

  .hero p,
  .page-hero p,
  .movie-title p {
    font-size: 15px;
  }

  .hero-visual {
    min-height: 330px;
  }

  .hero-poster {
    width: 74%;
  }

  .hero-mini-card {
    width: 78%;
    bottom: 8px;
  }

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

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

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

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

  .rank-link {
    grid-template-columns: 38px 48px 1fr;
  }

  .rank-link img {
    width: 48px;
    height: 66px;
  }

  .play-layer span {
    width: 70px;
    height: 70px;
    font-size: 28px;
  }
}
