:root {
  --bg: #fffaf1;
  --surface: #ffffff;
  --surface-soft: #fff7e6;
  --text: #1f2937;
  --muted: #6b7280;
  --line: rgba(245, 158, 11, 0.22);
  --amber: #f59e0b;
  --amber-dark: #d97706;
  --orange: #f97316;
  --red: #ef4444;
  --shadow: 0 24px 70px rgba(146, 64, 14, 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.24), transparent 32rem),
    linear-gradient(180deg, #fffbeb 0%, #ffffff 44%, #fff7ed 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;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

img.cover-missing {
  opacity: 0;
}

.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.88);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

.nav-shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  gap: 22px;
}

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

.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  color: #ffffff;
  border-radius: 16px;
  background: linear-gradient(135deg, #fbbf24, #fb923c);
  box-shadow: 0 12px 28px rgba(249, 115, 22, 0.32);
  transition: transform 0.24s ease;
}

.brand:hover .brand-mark {
  transform: rotate(10deg) scale(1.04);
}

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

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 26px;
  font-weight: 700;
  color: #4b5563;
}

.desktop-nav a,
.mobile-nav a,
.quick-links a,
.footer-grid a {
  transition: color 0.2s ease, transform 0.2s ease, background 0.2s ease;
}

.desktop-nav a:hover,
.mobile-nav a:hover,
.footer-grid a:hover {
  color: var(--amber-dark);
}

.search-form {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
}

.search-form input,
.wide-search input {
  width: 250px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 11px 16px;
  outline: none;
  color: var(--text);
  background: rgba(255, 255, 255, 0.94);
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

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

.search-form button,
.wide-search button,
.primary-button,
.secondary-button {
  border: 0;
  cursor: pointer;
  border-radius: 999px;
  padding: 11px 20px;
  font-weight: 800;
  white-space: nowrap;
}

.search-form button,
.wide-search button,
.primary-button {
  color: #ffffff;
  background: linear-gradient(135deg, #f59e0b, #f97316);
  box-shadow: 0 14px 28px rgba(249, 115, 22, 0.28);
}

.secondary-button {
  color: #92400e;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid var(--line);
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 14px;
  color: #92400e;
  background: #ffedd5;
  font-size: 1.3rem;
}

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

.mobile-nav a {
  display: block;
  padding: 10px 12px;
  border-radius: 12px;
  font-weight: 700;
}

.mobile-nav.is-open {
  display: block;
}

.hero-section {
  position: relative;
  overflow: hidden;
  padding: 56px 0 34px;
}

.hero-glow {
  position: absolute;
  border-radius: 999px;
  filter: blur(28px);
  opacity: 0.48;
  pointer-events: none;
}

.hero-glow.one {
  top: 18px;
  left: -70px;
  width: 260px;
  height: 260px;
  background: #fbbf24;
}

.hero-glow.two {
  right: -90px;
  bottom: 10px;
  width: 330px;
  height: 330px;
  background: #fb7185;
}

.hero-container {
  position: relative;
}

.hero-slider {
  position: relative;
  min-height: 560px;
  border-radius: 38px;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(120, 53, 15, 0.9), rgba(251, 146, 60, 0.68)),
    linear-gradient(45deg, #451a03, #f59e0b);
  box-shadow: var(--shadow);
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.72fr);
  gap: 36px;
  align-items: center;
  padding: 54px;
  opacity: 0;
  transform: translateX(26px) scale(0.985);
  pointer-events: none;
  transition: opacity 0.55s ease, transform 0.55s ease;
}

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

.hero-copy {
  position: relative;
  z-index: 2;
  color: #ffffff;
}

.eyebrow {
  margin: 0 0 12px;
  color: #fef3c7;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-copy h1,
.page-hero h1,
.detail-info h1 {
  margin: 0;
  line-height: 1.08;
  letter-spacing: -0.06em;
}

.hero-copy h1 {
  max-width: 760px;
  font-size: clamp(3rem, 8vw, 6.8rem);
}

.hero-text {
  max-width: 660px;
  margin: 24px 0 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: 1.08rem;
}

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

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

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

.hero-tags span {
  color: #78350f;
  background: rgba(254, 243, 199, 0.94);
}

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

.hero-poster {
  position: relative;
  aspect-ratio: 3 / 4.2;
  border: 10px solid rgba(255, 255, 255, 0.22);
  border-radius: 34px;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(255, 237, 213, 0.34), rgba(251, 146, 60, 0.22));
  box-shadow: 0 36px 80px rgba(69, 26, 3, 0.32);
}

.hero-poster::after,
.poster-link::after,
.detail-poster::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(0, 0, 0, 0.34));
  pointer-events: none;
}

.hero-controls {
  position: absolute;
  left: 54px;
  bottom: 34px;
  z-index: 3;
  display: flex;
  gap: 10px;
}

.hero-dot {
  width: 36px;
  height: 8px;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.36);
}

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

.quick-search-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  margin-top: 20px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 18px 50px rgba(146, 64, 14, 0.08);
}

.wide-search {
  display: flex;
  gap: 10px;
}

.wide-search input {
  width: 100%;
}

.quick-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.quick-links a {
  padding: 10px 14px;
  border-radius: 999px;
  color: #92400e;
  background: #ffedd5;
  font-weight: 800;
}

.quick-links a:hover {
  color: #ffffff;
  background: var(--amber);
  transform: translateY(-1px);
}

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

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

.section-head h2 {
  margin: 0;
  font-size: clamp(1.6rem, 3vw, 2.35rem);
  letter-spacing: -0.04em;
}

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

.section-more {
  color: #b45309;
  font-weight: 900;
}

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

.movie-card {
  overflow: hidden;
  border: 1px solid rgba(245, 158, 11, 0.18);
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 18px 48px 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(-6px);
  border-color: rgba(245, 158, 11, 0.5);
  box-shadow: 0 26px 70px rgba(146, 64, 14, 0.16);
}

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

.poster-link img {
  transition: transform 0.4s ease;
}

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

.poster-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  padding: 4px 10px;
  color: #78350f;
  border-radius: 999px;
  background: rgba(254, 243, 199, 0.92);
  font-size: 0.82rem;
  font-weight: 900;
}

.card-body {
  padding: 16px;
}

.card-body h3,
.rank-item h3 {
  margin: 0;
  line-height: 1.35;
}

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

.card-meta,
.card-summary,
.rank-item p,
.category-tile p,
.category-card-large p,
.footer-grid p {
  color: var(--muted);
}

.card-meta {
  margin: 6px 0;
  font-size: 0.9rem;
}

.card-summary {
  margin: 0 0 14px;
  font-size: 0.95rem;
}

.tag-row span {
  color: #92400e;
  background: #ffedd5;
}

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

.category-tile,
.category-card-large a {
  display: block;
  min-height: 150px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 26px;
  background: linear-gradient(135deg, #ffffff, #fff7ed);
  box-shadow: 0 18px 45px rgba(146, 64, 14, 0.08);
  transition: transform 0.22s ease, border-color 0.22s ease;
}

.category-tile:hover,
.category-card-large a:hover {
  transform: translateY(-4px);
  border-color: rgba(245, 158, 11, 0.54);
}

.category-tile span,
.category-card-large h2 {
  font-weight: 900;
  color: #92400e;
}

.category-tile strong,
.category-count {
  display: inline-flex;
  margin: 10px 0;
  color: var(--orange);
}

.category-tile em,
.category-card-large em {
  display: block;
  color: #b45309;
  font-style: normal;
  font-weight: 800;
}

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

.page-hero {
  padding: 66px 0;
  color: #ffffff;
  background:
    radial-gradient(circle at 20% 20%, rgba(254, 243, 199, 0.28), transparent 24rem),
    linear-gradient(135deg, #78350f, #f97316);
}

.slim-hero {
  padding: 58px 0;
}

.page-hero h1 {
  font-size: clamp(2.5rem, 6vw, 4.8rem);
}

.page-hero p {
  max-width: 760px;
  margin: 16px 0 0;
  color: rgba(255, 255, 255, 0.86);
}

.category-hero {
  background:
    radial-gradient(circle at 80% 10%, rgba(255, 247, 237, 0.38), transparent 22rem),
    linear-gradient(135deg, #92400e, #ea580c);
}

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

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

.rank-item {
  display: grid;
  grid-template-columns: 68px 86px minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 16px 42px rgba(146, 64, 14, 0.08);
}

.rank-number {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  color: #ffffff;
  border-radius: 18px;
  background: linear-gradient(135deg, #f59e0b, #ef4444);
  font-size: 1.1rem;
  font-weight: 900;
}

.rank-cover {
  position: relative;
  overflow: hidden;
  aspect-ratio: 3 / 4;
  border-radius: 18px;
  background: linear-gradient(135deg, #fff7ed, #fed7aa);
}

.rank-item p {
  margin: 4px 0 0;
}

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

.detail-hero {
  padding: 52px 0;
  background:
    radial-gradient(circle at 15% 20%, rgba(251, 191, 36, 0.24), transparent 24rem),
    linear-gradient(135deg, #fff7ed, #ffffff);
}

.detail-layout {
  display: grid;
  grid-template-columns: 330px minmax(0, 1fr);
  gap: 38px;
  align-items: center;
}

.detail-poster {
  position: relative;
  overflow: hidden;
  aspect-ratio: 3 / 4.25;
  border-radius: 32px;
  background: linear-gradient(135deg, #fff7ed, #fed7aa);
  box-shadow: var(--shadow);
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
  color: #b45309;
  font-weight: 800;
}

.detail-info .eyebrow {
  color: #b45309;
}

.detail-info h1 {
  font-size: clamp(2.5rem, 6vw, 5.2rem);
}

.detail-one-line {
  max-width: 760px;
  color: #4b5563;
  font-size: 1.08rem;
}

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

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

.play-cover {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  gap: 12px;
  border: 0;
  cursor: pointer;
  color: #ffffff;
  background: linear-gradient(135deg, rgba(17, 24, 39, 0.5), rgba(146, 64, 14, 0.42));
}

.play-cover span {
  display: grid;
  place-items: center;
  width: 86px;
  height: 86px;
  border-radius: 999px;
  color: #f97316;
  background: rgba(255, 255, 255, 0.92);
  font-size: 2rem;
  box-shadow: 0 24px 55px rgba(0, 0, 0, 0.28);
}

.play-cover strong {
  padding: 7px 14px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.24);
  font-size: 1.1rem;
}

.player-shell.is-playing .play-cover {
  display: none;
}

.detail-columns {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 30px;
  align-items: start;
}

.detail-columns article,
.detail-columns aside {
  border: 1px solid var(--line);
  border-radius: 26px;
  padding: 26px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 18px 48px rgba(146, 64, 14, 0.08);
}

.detail-columns h2 {
  margin: 0 0 10px;
  color: #92400e;
}

.detail-columns p {
  margin: 0 0 22px;
  color: #4b5563;
}

.info-list {
  margin: 0 0 22px;
}

.info-list div {
  display: grid;
  grid-template-columns: 68px minmax(0, 1fr);
  gap: 12px;
  padding: 9px 0;
  border-bottom: 1px solid rgba(245, 158, 11, 0.16);
}

.info-list dt {
  color: var(--muted);
  font-weight: 800;
}

.info-list dd {
  margin: 0;
  font-weight: 700;
}

.large-tags span {
  margin-bottom: 4px;
}

.search-page-form {
  max-width: 680px;
  margin-top: 24px;
}

.empty-state {
  grid-column: 1 / -1;
  padding: 46px;
  text-align: center;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.86);
  color: var(--muted);
}

.site-footer {
  margin-top: 30px;
  border-top: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.78);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 30px;
  padding: 34px 0;
}

.footer-grid strong,
.footer-grid a {
  display: block;
}

.footer-grid strong {
  margin-bottom: 10px;
  color: #92400e;
}

.footer-grid a {
  margin: 7px 0;
  color: #4b5563;
}

.copyright {
  padding: 18px 0 28px;
  color: var(--muted);
  font-size: 0.92rem;
}

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

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

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

@media (max-width: 860px) {
  .desktop-nav,
  .search-form {
    display: none;
  }

  .menu-toggle {
    display: block;
  }

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

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

  .hero-poster {
    width: min(280px, 72vw);
  }

  .quick-search-panel,
  .detail-layout,
  .detail-columns,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .compact-rank {
    grid-template-columns: 1fr;
  }

  .detail-poster {
    width: min(330px, 82vw);
  }
}

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

  .hero-section {
    padding-top: 22px;
  }

  .hero-slider {
    min-height: 720px;
    border-radius: 26px;
  }

  .hero-slide {
    padding: 28px;
    gap: 24px;
  }

  .hero-copy h1 {
    font-size: clamp(2.35rem, 16vw, 4.2rem);
  }

  .hero-controls {
    left: 28px;
    bottom: 24px;
  }

  .wide-search {
    flex-direction: column;
  }

  .section-head {
    align-items: start;
    flex-direction: column;
  }

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

  .rank-item {
    grid-template-columns: 48px 72px minmax(0, 1fr);
    gap: 12px;
  }

  .rank-number {
    width: 44px;
    height: 44px;
    border-radius: 14px;
  }

  .detail-info h1,
  .page-hero h1 {
    font-size: 2.4rem;
  }

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