:root {
  --bg: #fff7ed;
  --bg-soft: #fffbeb;
  --card: #ffffff;
  --text: #1f2937;
  --muted: #6b7280;
  --line: rgba(245, 158, 11, 0.22);
  --amber: #f59e0b;
  --orange: #f97316;
  --deep: #92400e;
  --shadow: 0 18px 45px rgba(146, 64, 14, 0.12);
  --radius: 22px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  color: var(--text);
  background: linear-gradient(135deg, #fffbeb 0%, #fff7ed 48%, #fef3c7 100%);
}

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

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

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

.nav-wrap {
  width: min(1240px, calc(100% - 32px));
  min-height: 72px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 26px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  white-space: nowrap;
}

.brand-icon {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  color: #fff;
  background: linear-gradient(135deg, #fbbf24, #fb923c);
  box-shadow: 0 12px 24px rgba(251, 146, 60, 0.28);
}

.brand-text {
  font-size: 21px;
  letter-spacing: -0.03em;
  background: linear-gradient(90deg, #d97706, #f97316);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

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

.nav-link {
  color: #4b5563;
  font-weight: 700;
  transition: color 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
  color: var(--orange);
}

.top-search {
  width: 260px;
}

.top-search input,
.mobile-search input,
.hero-search input,
.catalog-filter input,
.catalog-filter select {
  width: 100%;
  border: 1px solid rgba(245, 158, 11, 0.35);
  border-radius: 999px;
  padding: 12px 18px;
  outline: none;
  background: rgba(255, 255, 255, 0.9);
  color: var(--text);
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.top-search input:focus,
.mobile-search input:focus,
.hero-search input:focus,
.catalog-filter input:focus,
.catalog-filter select:focus {
  border-color: var(--amber);
  box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.16);
}

.menu-toggle {
  display: none;
  border: 0;
  background: #fff7ed;
  color: var(--deep);
  border-radius: 12px;
  padding: 10px 12px;
  font-size: 22px;
}

.mobile-panel {
  display: none;
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto;
  padding: 0 0 18px;
}

.mobile-panel.open {
  display: block;
}

.mobile-links {
  display: grid;
  gap: 12px;
  padding-top: 14px;
}

.mobile-sub-link {
  color: #6b7280;
  font-weight: 600;
}

.hero-slider {
  position: relative;
  height: 72vh;
  min-height: 560px;
  overflow: hidden;
  background: #111827;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.9s ease;
}

.hero-slide.active {
  opacity: 1;
  pointer-events: auto;
}

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

.hero-shade {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 78% 18%, rgba(245, 158, 11, 0.2), transparent 28%),
    linear-gradient(90deg, rgba(17, 24, 39, 0.88) 0%, rgba(17, 24, 39, 0.58) 46%, rgba(17, 24, 39, 0.08) 100%);
}

.hero-content {
  position: absolute;
  inset: 0;
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  color: #fff;
  max-width: 1240px;
}

.hero-kicker,
.eyebrow {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  border-radius: 999px;
  padding: 7px 13px;
  color: #92400e;
  background: rgba(254, 243, 199, 0.92);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.hero-content h1 {
  max-width: 760px;
  margin: 18px 0 16px;
  font-size: clamp(44px, 7vw, 86px);
  line-height: 0.95;
  letter-spacing: -0.06em;
}

.hero-content p {
  max-width: 690px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 18px;
  line-height: 1.8;
  margin: 0;
}

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

.hero-tags {
  margin: 22px 0 28px;
}

.hero-tags span,
.detail-meta span,
.detail-meta a,
.card-meta span,
.card-meta a,
.rank-info div span,
.rank-info div a {
  border-radius: 999px;
  padding: 7px 11px;
  background: rgba(255, 247, 237, 0.9);
  color: #92400e;
  font-size: 13px;
  font-weight: 700;
}

.hero-actions,
.section-more {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}

.primary-btn,
.ghost-btn,
.hero-search button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 999px;
  padding: 13px 22px;
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.primary-btn,
.hero-search button {
  color: #fff;
  background: linear-gradient(90deg, #f59e0b, #f97316);
  box-shadow: 0 16px 32px rgba(249, 115, 22, 0.28);
}

.ghost-btn {
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.55);
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(12px);
}

.ghost-btn.light {
  color: var(--deep);
  border-color: rgba(245, 158, 11, 0.35);
  background: #fff7ed;
}

.primary-btn:hover,
.ghost-btn:hover,
.hero-search button:hover {
  transform: translateY(-2px);
}

.primary-btn.full {
  width: 100%;
}

.hero-control {
  position: absolute;
  top: 50%;
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: 50%;
  color: #fff;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(10px);
  font-size: 36px;
  line-height: 1;
  cursor: pointer;
  transform: translateY(-50%);
}

.hero-prev {
  left: 26px;
}

.hero-next {
  right: 26px;
}

.hero-dots {
  position: absolute;
  left: 50%;
  bottom: 28px;
  display: flex;
  gap: 10px;
  transform: translateX(-50%);
}

.hero-dot {
  width: 11px;
  height: 11px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.45);
  cursor: pointer;
}

.hero-dot.active {
  width: 32px;
  border-radius: 999px;
  background: #fbbf24;
}

.quick-panel,
.content-section,
.page-shell,
.detail-shell {
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto;
}

.quick-panel {
  display: grid;
  grid-template-columns: 1.35fr 0.65fr;
  gap: 24px;
  margin-top: -58px;
  position: relative;
  z-index: 2;
}

.quick-card,
.detail-card,
.side-box,
.overview-card,
.movie-card,
.rank-row,
.page-hero {
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.quick-card {
  padding: 28px;
}

.quick-card h2 {
  margin: 12px 0 18px;
  font-size: 30px;
}

.hero-search {
  display: flex;
  gap: 12px;
}

.link-card {
  display: grid;
  align-content: center;
  gap: 14px;
}

.link-card a {
  border-radius: 16px;
  padding: 18px 20px;
  color: #92400e;
  background: linear-gradient(135deg, #fff7ed, #fef3c7);
  font-weight: 800;
}

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

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

.section-heading h2 {
  margin: 12px 0 0;
  font-size: clamp(28px, 4vw, 42px);
  letter-spacing: -0.04em;
}

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

.movie-card {
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

.poster-link {
  position: relative;
  display: block;
  height: 260px;
  overflow: hidden;
  background: linear-gradient(135deg, #fef3c7, #ffedd5);
}

.movie-card.small .poster-link {
  height: 190px;
}

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

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

.type-badge,
.year-badge {
  position: absolute;
  border-radius: 10px;
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  padding: 7px 9px;
  backdrop-filter: blur(10px);
}

.type-badge {
  top: 12px;
  right: 12px;
  background: rgba(245, 158, 11, 0.92);
}

.year-badge {
  left: 12px;
  bottom: 12px;
  background: rgba(17, 24, 39, 0.72);
}

.card-body {
  padding: 18px;
}

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

.card-body h3 a:hover,
.rank-info h3 a:hover,
.overview-title:hover {
  color: var(--orange);
}

.card-body p {
  min-height: 48px;
  margin: 0 0 16px;
  color: var(--muted);
  line-height: 1.65;
  font-size: 14px;
}

.card-meta span,
.card-meta a {
  padding: 5px 9px;
  font-size: 12px;
  background: #fff7ed;
}

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

.category-tile {
  min-height: 126px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border-radius: 20px;
  padding: 20px;
  background: linear-gradient(135deg, #ffffff, #fef3c7);
  border: 1px solid var(--line);
  box-shadow: 0 12px 28px rgba(146, 64, 14, 0.08);
  transition: transform 0.2s ease;
}

.category-tile:hover,
.overview-card:hover {
  transform: translateY(-4px);
}

.category-tile span {
  color: #92400e;
  font-size: 20px;
  font-weight: 900;
}

.category-tile small,
.overview-card p,
.site-footer p {
  color: var(--muted);
  line-height: 1.65;
}

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

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

.rank-row {
  display: grid;
  grid-template-columns: auto 92px 1fr;
  gap: 16px;
  align-items: center;
  padding: 14px;
}

.rank-num,
.rank-dot {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  color: #fff;
  font-weight: 900;
  background: linear-gradient(135deg, #f59e0b, #f97316);
}

.rank-poster {
  height: 68px;
  border-radius: 12px;
  overflow: hidden;
}

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

.rank-info h3 {
  margin: 0 0 7px;
  font-size: 17px;
}

.rank-info p {
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

.page-shell {
  padding: 40px 0 70px;
}

.page-hero {
  padding: 34px;
  margin-bottom: 28px;
  background:
    radial-gradient(circle at 88% 12%, rgba(251, 146, 60, 0.22), transparent 25%),
    rgba(255, 255, 255, 0.94);
}

.page-hero h1 {
  margin: 14px 0;
  font-size: clamp(36px, 6vw, 58px);
  letter-spacing: -0.05em;
}

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

.catalog-filter {
  display: grid;
  grid-template-columns: 1fr 220px;
  gap: 14px;
  margin-top: 24px;
}

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

.overview-card {
  padding: 26px;
  transition: transform 0.2s ease;
}

.overview-title {
  color: #92400e;
  font-size: 26px;
  font-weight: 900;
}

.overview-links {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 18px;
}

.overview-links a {
  border-radius: 999px;
  padding: 7px 11px;
  color: #92400e;
  background: #fff7ed;
  font-weight: 700;
  font-size: 13px;
}

.full-rank,
.search-results {
  gap: 16px;
}

.detail-shell {
  padding: 28px 0 70px;
}

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

.breadcrumb a {
  color: #92400e;
  font-weight: 700;
}

.detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(320px, 0.86fr);
  gap: 28px;
  align-items: start;
}

.detail-main {
  display: grid;
  gap: 22px;
}

.player-wrap {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 24px;
  background: #111827;
  box-shadow: 0 26px 60px rgba(17, 24, 39, 0.25);
}

.movie-video {
  width: 100%;
  height: 100%;
  display: block;
  background: #000;
  cursor: pointer;
}

.play-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  background:
    radial-gradient(circle, rgba(245, 158, 11, 0.26), transparent 24%),
    rgba(17, 24, 39, 0.24);
  cursor: pointer;
  z-index: 3;
}

.play-overlay span {
  width: 86px;
  height: 86px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: #fff;
  background: linear-gradient(135deg, #f59e0b, #f97316);
  font-size: 34px;
  box-shadow: 0 22px 40px rgba(249, 115, 22, 0.34);
}

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

.detail-card {
  padding: 28px;
}

.detail-card h1 {
  margin: 0 0 16px;
  font-size: clamp(30px, 5vw, 48px);
  letter-spacing: -0.04em;
}

.detail-card section {
  margin-top: 28px;
}

.detail-card h2,
.side-box h2,
.site-footer h2 {
  margin: 0 0 12px;
  color: #1f2937;
}

.detail-card p {
  margin: 0;
  color: #4b5563;
  line-height: 1.9;
  white-space: pre-line;
}

.detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.detail-tags a {
  border-radius: 999px;
  padding: 9px 13px;
  color: #92400e;
  background: #fff7ed;
  font-weight: 800;
}

.detail-side {
  position: sticky;
  top: 92px;
  display: grid;
  gap: 22px;
}

.side-box {
  padding: 22px;
}

.side-rec {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 13px;
  align-items: center;
  padding: 12px 0;
  border-top: 1px solid rgba(245, 158, 11, 0.18);
}

.side-rec img {
  width: 96px;
  height: 66px;
  object-fit: cover;
  border-radius: 12px;
}

.side-rec strong {
  display: block;
  margin-bottom: 7px;
}

.side-rec small {
  color: var(--muted);
}

.side-cover img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 18px;
  margin-bottom: 16px;
}

.site-footer {
  margin-top: 70px;
  background: linear-gradient(135deg, #fffbeb, #fff7ed);
  border-top: 1px solid var(--line);
}

.footer-grid {
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr 1fr;
  gap: 34px;
  padding: 48px 0;
}

.footer-brand {
  margin-bottom: 16px;
}

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

.site-footer a {
  color: #6b7280;
}

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

.tag-line {
  font-weight: 700;
}

.footer-bottom {
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto;
  padding: 20px 0 34px;
  color: #6b7280;
  border-top: 1px solid var(--line);
  text-align: center;
}

[data-card].hidden {
  display: none;
}

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

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

  .detail-side {
    position: static;
  }
}

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

  .nav-wrap {
    min-height: 64px;
  }

  .menu-toggle {
    display: inline-flex;
    margin-left: auto;
  }

  .hero-slider {
    height: 76vh;
    min-height: 560px;
  }

  .hero-content h1 {
    font-size: 48px;
  }

  .hero-control {
    display: none;
  }

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

  .catalog-filter,
  .hero-search {
    grid-template-columns: 1fr;
    display: grid;
  }

  .rank-row {
    grid-template-columns: auto 78px 1fr;
  }
}

@media (max-width: 560px) {
  .brand-text {
    font-size: 18px;
  }

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

  .hero-content p {
    font-size: 16px;
  }

  .quick-panel {
    margin-top: 18px;
  }

  .quick-card,
  .page-hero,
  .detail-card,
  .side-box {
    padding: 20px;
  }

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

  .poster-link {
    height: 300px;
  }

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

  .rank-poster {
    height: 180px;
  }

  .rank-num,
  .rank-dot {
    position: absolute;
    margin: 12px;
    z-index: 2;
  }
}
