:root {
  --page-bg: #fffaf0;
  --panel: #ffffff;
  --panel-soft: rgba(255, 255, 255, 0.84);
  --text: #1f2937;
  --muted: #6b7280;
  --light: #fef3c7;
  --line: rgba(245, 158, 11, 0.2);
  --amber: #f59e0b;
  --orange: #f97316;
  --dark: #7c2d12;
  --shadow: 0 20px 45px rgba(180, 83, 9, 0.16);
  --radius: 24px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at 15% 10%, rgba(251, 191, 36, 0.22), transparent 30%),
    radial-gradient(circle at 85% 5%, rgba(249, 115, 22, 0.18), transparent 24%),
    linear-gradient(135deg, #ffffff 0%, #fff7ed 45%, #fffbeb 100%);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  line-height: 1.6;
}

body.menu-open {
  overflow: hidden;
}

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

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(90deg, rgba(255, 251, 235, 0.94), rgba(255, 237, 213, 0.94));
  backdrop-filter: blur(18px);
}

.navbar {
  height: 66px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

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

.brand-mark {
  width: 38px;
  height: 38px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  color: #ffffff;
  background: linear-gradient(135deg, var(--amber), var(--orange));
  box-shadow: 0 10px 24px rgba(249, 115, 22, 0.32);
}

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

.nav-links a {
  padding: 10px 14px;
  border-radius: 999px;
  color: #78350f;
  font-weight: 700;
  transition: all 0.24s ease;
}

.nav-links a:hover,
.nav-links a.active {
  color: #ffffff;
  background: linear-gradient(135deg, var(--amber), var(--orange));
  box-shadow: 0 12px 24px rgba(245, 158, 11, 0.24);
}

.mobile-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 14px;
  background: #ffffff;
  color: #92400e;
  box-shadow: 0 10px 20px rgba(146, 64, 14, 0.12);
}

.hero {
  position: relative;
  overflow: hidden;
  padding: 72px 0 64px;
}

.hero::before,
.hero::after {
  content: "";
  position: absolute;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background: rgba(245, 158, 11, 0.22);
  filter: blur(12px);
  animation: floatGlow 9s ease-in-out infinite;
}

.hero::before {
  left: -90px;
  top: 40px;
}

.hero::after {
  right: -120px;
  bottom: 20px;
  background: rgba(249, 115, 22, 0.2);
  animation-delay: -3s;
}

.hero-shell {
  position: relative;
  z-index: 2;
  min-height: 560px;
  border-radius: 34px;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(120, 53, 15, 0.88), rgba(249, 115, 22, 0.76));
  box-shadow: var(--shadow);
}

.hero-slide {
  display: none;
  min-height: 560px;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  align-items: stretch;
}

.hero-slide.is-active {
  display: grid;
  animation: fadeIn 0.6s ease;
}

.hero-content {
  position: relative;
  z-index: 3;
  padding: 64px;
  color: #ffffff;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero-kicker {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  margin-bottom: 18px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  color: #fef3c7;
  font-weight: 700;
}

.hero-title {
  margin: 0;
  font-size: clamp(38px, 6vw, 72px);
  line-height: 1.02;
  letter-spacing: -0.06em;
}

.hero-desc {
  max-width: 620px;
  margin: 22px 0 26px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 19px;
}

.hero-meta,
.detail-meta,
.card-meta,
.rank-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.hero-meta span,
.detail-meta span,
.card-meta span,
.rank-meta span,
.tag {
  display: inline-flex;
  align-items: center;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  color: inherit;
  font-size: 13px;
  font-weight: 700;
}

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

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

.button {
  color: #ffffff;
  background: linear-gradient(135deg, var(--amber), var(--orange));
  box-shadow: 0 16px 28px rgba(249, 115, 22, 0.28);
}

.button-light {
  color: #92400e;
  background: #ffffff;
  box-shadow: 0 16px 28px rgba(120, 53, 15, 0.2);
}

.button-ghost {
  color: #92400e;
  background: #fff7ed;
}

.button:hover,
.button-light:hover,
.button-ghost:hover {
  transform: translateY(-2px) scale(1.01);
}

.hero-poster {
  position: relative;
  min-height: 560px;
  overflow: hidden;
}

.hero-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.02);
}

.hero-poster::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(120, 53, 15, 0.66), rgba(120, 53, 15, 0.08));
}

.hero-dots {
  position: absolute;
  z-index: 4;
  left: 64px;
  bottom: 36px;
  display: flex;
  gap: 10px;
}

.hero-dot {
  width: 36px;
  height: 9px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.35);
  cursor: pointer;
  transition: all 0.2s ease;
}

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

.section {
  padding: 60px 0;
}

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

.section-title {
  margin: 0;
  font-size: clamp(26px, 3vw, 38px);
  letter-spacing: -0.04em;
}

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

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

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

.movie-card {
  overflow: hidden;
  border: 1px solid rgba(245, 158, 11, 0.16);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 14px 34px rgba(146, 64, 14, 0.09);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.movie-card:hover {
  transform: translateY(-7px);
  box-shadow: 0 24px 48px rgba(146, 64, 14, 0.18);
}

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

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

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

.poster-badge {
  position: absolute;
  left: 12px;
  top: 12px;
  z-index: 2;
  padding: 5px 10px;
  border-radius: 999px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--amber), var(--orange));
  font-size: 12px;
  font-weight: 800;
}

.card-body {
  padding: 16px;
}

.card-title {
  margin: 0 0 8px;
  font-size: 17px;
  line-height: 1.35;
}

.card-title a:hover {
  color: var(--orange);
}

.card-desc {
  margin: 10px 0 0;
  min-height: 44px;
  color: var(--muted);
  font-size: 14px;
}

.card-meta span {
  background: #fff7ed;
  color: #92400e;
}

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

.category-card {
  min-height: 166px;
  padding: 24px;
  border-radius: var(--radius);
  border: 1px solid rgba(245, 158, 11, 0.18);
  background: linear-gradient(135deg, #ffffff, #fff7ed);
  box-shadow: 0 14px 32px rgba(146, 64, 14, 0.08);
  transition: all 0.24s ease;
}

.category-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 24px 44px rgba(146, 64, 14, 0.14);
}

.category-card h3 {
  margin: 0 0 10px;
  color: #7c2d12;
  font-size: 22px;
}

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

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

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

.rank-item {
  display: grid;
  grid-template-columns: 58px 92px 1fr;
  gap: 16px;
  align-items: center;
  padding: 14px;
  border: 1px solid rgba(245, 158, 11, 0.16);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 14px 32px rgba(146, 64, 14, 0.08);
}

.rank-num {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--amber), var(--orange));
  font-weight: 900;
}

.rank-thumb {
  width: 92px;
  height: 122px;
  object-fit: cover;
  border-radius: 18px;
  background: #fef3c7;
}

.rank-title {
  margin: 0 0 6px;
  font-size: 18px;
}

.rank-title a:hover {
  color: var(--orange);
}

.rank-desc {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.page-hero {
  padding: 58px 0 28px;
}

.page-card {
  padding: 32px;
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.84);
  border: 1px solid rgba(245, 158, 11, 0.16);
  box-shadow: var(--shadow);
}

.page-card h1 {
  margin: 0 0 12px;
  font-size: clamp(32px, 5vw, 58px);
  line-height: 1.08;
  letter-spacing: -0.06em;
  background: linear-gradient(135deg, #d97706, #f97316);
  -webkit-background-clip: text;
  color: transparent;
}

.page-card p {
  margin: 0;
  max-width: 820px;
  color: var(--muted);
  font-size: 18px;
}

.filters {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) repeat(3, minmax(140px, 190px));
  gap: 14px;
  padding: 18px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(245, 158, 11, 0.16);
  box-shadow: 0 14px 32px rgba(146, 64, 14, 0.08);
}

.input,
.select {
  width: 100%;
  min-height: 48px;
  padding: 0 14px;
  border: 1px solid rgba(245, 158, 11, 0.24);
  border-radius: 16px;
  outline: 0;
  color: var(--text);
  background: #ffffff;
  font: inherit;
}

.input:focus,
.select:focus {
  border-color: var(--orange);
  box-shadow: 0 0 0 4px rgba(249, 115, 22, 0.12);
}

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

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 26px 0;
  color: #92400e;
  font-size: 14px;
  font-weight: 700;
}

.breadcrumb a:hover {
  color: var(--orange);
}

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

.detail-main,
.detail-side,
.content-panel {
  border: 1px solid rgba(245, 158, 11, 0.16);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.detail-main-body,
.detail-side,
.content-panel {
  padding: 24px;
}

.player-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #111827;
  overflow: hidden;
  cursor: pointer;
}

.player-frame video {
  width: 100%;
  height: 100%;
  display: block;
  background: #111827;
}

.player-cover {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: grid;
  place-items: center;
  background: rgba(17, 24, 39, 0.34);
  transition: opacity 0.22s ease;
}

.player-cover.is-hidden {
  opacity: 0;
  pointer-events: none;
}

.player-button {
  width: 86px;
  height: 86px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  color: #ffffff;
  background: linear-gradient(135deg, var(--amber), var(--orange));
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.35);
  font-size: 30px;
  cursor: pointer;
}

.detail-title {
  margin: 0 0 14px;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.12;
  letter-spacing: -0.05em;
}

.detail-meta span {
  background: #fff7ed;
  color: #92400e;
}

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

.detail-text p {
  margin: 0 0 18px;
  color: #374151;
  font-size: 17px;
}

.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.tag-cloud .tag {
  background: #fff7ed;
  color: #92400e;
}

.side-poster {
  width: 100%;
  border-radius: 22px;
  margin-bottom: 18px;
  background: #fef3c7;
}

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

.side-list a {
  display: grid;
  grid-template-columns: 58px 1fr;
  gap: 12px;
  align-items: center;
}

.side-list img {
  width: 58px;
  height: 76px;
  object-fit: cover;
  border-radius: 12px;
  background: #fef3c7;
}

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

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

.footer-title {
  margin: 0 0 12px;
  font-size: 22px;
  font-weight: 900;
}

.footer-text,
.footer-links a {
  color: #fde68a;
}

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

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

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes floatGlow {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
  50% { transform: translate3d(24px, 18px, 0) scale(1.08); }
}

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

  .hero-slide,
  .detail-layout,
  .rank-panel {
    grid-template-columns: 1fr;
  }

  .hero-poster {
    min-height: 420px;
  }

  .detail-side {
    order: 2;
  }
}

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

  .mobile-toggle {
    display: grid;
    place-items: center;
  }

  .nav-links {
    position: fixed;
    left: 12px;
    right: 12px;
    top: 76px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 24px;
    background: #ffffff;
    box-shadow: var(--shadow);
  }

  body.menu-open .nav-links {
    display: flex;
  }

  .hero {
    padding: 32px 0 36px;
  }

  .hero-shell,
  .hero-slide {
    min-height: auto;
  }

  .hero-content {
    padding: 36px 22px 72px;
  }

  .hero-poster {
    min-height: 320px;
  }

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

  .section {
    padding: 38px 0;
  }

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

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

  .card-body {
    padding: 13px;
  }

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

  .rank-item {
    grid-template-columns: 42px 72px 1fr;
    gap: 12px;
  }

  .rank-thumb {
    width: 72px;
    height: 96px;
  }

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

@media (max-width: 460px) {
  .movie-grid,
  .movie-grid.large,
  .category-grid {
    grid-template-columns: 1fr;
  }

  .hero-title {
    font-size: 34px;
  }

  .button,
  .button-light,
  .button-ghost {
    width: 100%;
  }
}
