
:root {
  --bg: #fafaf9;
  --surface: #ffffff;
  --surface-soft: #fff7ed;
  --ink: #292524;
  --muted: #78716c;
  --line: #e7e5e4;
  --amber: #d97706;
  --amber-dark: #92400e;
  --orange: #ea580c;
  --stone: #1c1917;
  --radius: 1.25rem;
  --shadow: 0 18px 45px rgba(41, 37, 36, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
}

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

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

button,
input,
select {
  font: inherit;
}

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

.nav-shell {
  width: min(1180px, calc(100% - 32px));
  height: 72px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.site-logo,
.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 1.2rem;
  font-weight: 900;
  color: var(--stone);
  letter-spacing: 0.02em;
}

.logo-mark {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  color: #fff;
  background: linear-gradient(135deg, var(--amber), var(--orange));
  border-radius: 14px;
  box-shadow: 0 10px 25px rgba(217, 119, 6, 0.32);
}

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

.nav-link,
.mobile-link {
  padding: 10px 14px;
  border-radius: 999px;
  color: #57534e;
  font-weight: 700;
  transition: color 0.2s ease, background 0.2s ease;
}

.nav-link:hover,
.nav-link.is-active,
.mobile-link:hover,
.mobile-link.is-active {
  color: var(--amber-dark);
  background: #ffedd5;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  background: #ffedd5;
  border-radius: 14px;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  background: var(--amber-dark);
  border-radius: 999px;
}

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

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

.hero-slider {
  position: relative;
  min-height: 560px;
  height: 72vh;
  overflow: hidden;
  color: #fff;
  background: radial-gradient(circle at top left, rgba(251, 191, 36, 0.28), transparent 34%), linear-gradient(135deg, #1c1917, #451a03 48%, #1c1917);
}

.hero-stage,
.hero-slide,
.hero-backdrop {
  position: absolute;
  inset: 0;
}

.hero-slide {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  align-items: center;
  gap: 56px;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  left: 50%;
  transform: translateX(-50%);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.7s ease;
}

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

.hero-backdrop {
  width: 100vw;
  left: 50%;
  transform: translateX(-50%) scale(1.08);
  background-image: linear-gradient(to top, rgba(0, 0, 0, 0.92), rgba(0, 0, 0, 0.52), rgba(0, 0, 0, 0.3)), var(--hero-bg);
  background-size: cover;
  background-position: center;
  filter: blur(22px) brightness(0.72);
}

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

.hero-badge,
.section-kicker {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 7px 14px;
  color: #fed7aa;
  background: rgba(217, 119, 6, 0.22);
  border: 1px solid rgba(251, 191, 36, 0.32);
  border-radius: 999px;
  font-size: 0.86rem;
  font-weight: 800;
}

.hero-content h1 {
  max-width: 760px;
  margin: 20px 0 18px;
  font-size: clamp(2.6rem, 6vw, 5.6rem);
  line-height: 1.03;
  letter-spacing: -0.06em;
}

.hero-content p {
  max-width: 720px;
  margin: 0 0 24px;
  color: #e7e5e4;
  font-size: 1.08rem;
}

.hero-meta,
.detail-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  color: #d6d3d1;
  font-weight: 700;
}

.hero-meta strong,
.detail-meta strong {
  color: #fbbf24;
  font-size: 1.15rem;
}

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

.hero-tags span,
.tag-row span {
  display: inline-flex;
  align-items: center;
  padding: 5px 10px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  color: #fff;
  font-size: 0.82rem;
  font-weight: 700;
}

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

.primary-button,
.secondary-button,
.section-more,
.text-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 20px;
  border-radius: 14px;
  font-weight: 900;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.primary-button {
  color: #fff;
  background: linear-gradient(135deg, var(--amber), var(--orange));
  box-shadow: 0 16px 30px rgba(217, 119, 6, 0.35);
}

.secondary-button {
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.22);
}

.primary-button:hover,
.secondary-button:hover,
.section-more:hover,
.text-link:hover {
  transform: translateY(-2px);
}

.hero-poster {
  display: block;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 28px;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.38);
}

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

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

.hero-dot {
  width: 38px;
  height: 5px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.34);
  cursor: pointer;
}

.hero-dot.is-active {
  background: #fbbf24;
}

.home-search,
.content-section,
.page-main,
.detail-main {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.home-search {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-top: -42px;
  padding: 28px;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(231, 229, 228, 0.9);
  border-radius: 26px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
  position: relative;
  z-index: 5;
}

.home-search h2 {
  margin: 0 0 8px;
  font-size: clamp(1.35rem, 3vw, 2rem);
}

.home-search p {
  margin: 0;
  color: var(--muted);
}

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

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

.section-heading h2 {
  margin: 10px 0 6px;
  font-size: clamp(1.6rem, 4vw, 2.35rem);
  line-height: 1.12;
}

.section-heading p {
  margin: 0;
  max-width: 720px;
  color: var(--muted);
}

.section-kicker {
  color: var(--amber-dark);
  background: #ffedd5;
  border-color: #fed7aa;
}

.section-more,
.text-link {
  color: var(--amber-dark);
  background: #ffedd5;
}

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

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

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

.movie-card {
  overflow: hidden;
  background: var(--surface);
  border: 1px solid rgba(231, 229, 228, 0.9);
  border-radius: var(--radius);
  box-shadow: 0 12px 32px rgba(41, 37, 36, 0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  border-color: #fed7aa;
  box-shadow: 0 22px 50px rgba(146, 64, 14, 0.16);
}

.movie-card.is-hidden {
  display: none;
}

.movie-cover-link {
  position: relative;
  display: block;
  overflow: hidden;
  background: #1c1917;
}

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

.movie-card:hover .movie-cover-link img {
  transform: scale(1.06);
}

.score-badge,
.type-badge {
  position: absolute;
  top: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  color: #fff;
  font-weight: 900;
  font-size: 0.82rem;
  backdrop-filter: blur(12px);
}

.score-badge {
  left: 12px;
  background: rgba(217, 119, 6, 0.92);
}

.type-badge {
  right: 12px;
  background: rgba(28, 25, 23, 0.72);
}

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

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

.movie-card h3 a:hover {
  color: var(--amber-dark);
}

.movie-meta,
.movie-desc {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.movie-desc {
  display: -webkit-box;
  min-height: 48px;
  margin-top: 10px;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

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

.tag-row span {
  color: var(--amber-dark);
  background: #ffedd5;
  border-color: #fed7aa;
}

.category-showcase,
.highlight-panel {
  padding: 34px;
  margin-top: 58px;
  background: linear-gradient(135deg, #fff7ed, #ffffff 55%, #fffbeb);
  border: 1px solid #fed7aa;
  border-radius: 30px;
  box-shadow: var(--shadow);
}

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

.category-tile,
.category-overview-card {
  display: grid;
  gap: 12px;
  min-height: 185px;
  padding: 18px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid #fed7aa;
  border-radius: 24px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.category-tile:hover,
.category-overview-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 36px rgba(146, 64, 14, 0.14);
}

.category-tile span,
.category-title {
  color: var(--amber-dark);
  font-size: 1.1rem;
  font-weight: 900;
}

.category-tile strong,
.category-overview-card p {
  color: #57534e;
  font-size: 0.92rem;
  font-weight: 600;
}

.category-thumbs {
  display: flex;
  margin-top: auto;
}

.category-thumbs img {
  width: 48px;
  height: 68px;
  object-fit: cover;
  margin-right: -14px;
  border: 3px solid #fff;
  border-radius: 12px;
  box-shadow: 0 8px 18px rgba(41, 37, 36, 0.14);
}

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

.page-main,
.detail-main {
  padding-top: 34px;
}

.page-hero {
  position: relative;
  overflow: hidden;
  padding: 54px;
  color: #fff;
  background: radial-gradient(circle at top right, rgba(251, 191, 36, 0.24), transparent 30%), linear-gradient(135deg, #1c1917, #78350f);
  border-radius: 32px;
  box-shadow: var(--shadow);
}

.small-hero h1 {
  margin: 18px 0 12px;
  font-size: clamp(2rem, 5vw, 4rem);
  line-height: 1.08;
}

.small-hero p {
  max-width: 760px;
  margin: 0;
  color: #e7e5e4;
}

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

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

.filter-panel {
  margin-top: 26px;
  padding: 18px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: 0 12px 32px rgba(41, 37, 36, 0.08);
}

.filter-grid {
  display: grid;
  grid-template-columns: 1fr 170px 170px auto;
  gap: 14px;
  align-items: end;
}

.filter-grid label {
  display: grid;
  gap: 6px;
  color: #57534e;
  font-size: 0.9rem;
  font-weight: 800;
}

.filter-grid input,
.filter-grid select {
  width: 100%;
  min-height: 46px;
  padding: 0 14px;
  color: var(--ink);
  background: #fafaf9;
  border: 1px solid var(--line);
  border-radius: 14px;
  outline: none;
}

.filter-grid input:focus,
.filter-grid select:focus {
  border-color: #f59e0b;
  box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.14);
}

.filter-reset {
  min-height: 46px;
  padding: 0 18px;
  color: #fff;
  background: var(--stone);
  border: 0;
  border-radius: 14px;
  cursor: pointer;
  font-weight: 900;
}

.ranking-podium {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 26px;
}

.podium-card {
  position: relative;
  min-height: 320px;
  overflow: hidden;
  color: #fff;
  border-radius: 26px;
  box-shadow: var(--shadow);
}

.podium-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.podium-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.86), rgba(0, 0, 0, 0.18));
}

.podium-card span,
.podium-card strong,
.podium-card em {
  position: relative;
  z-index: 1;
  display: block;
  margin-left: 24px;
  margin-right: 24px;
}

.podium-card span {
  width: fit-content;
  margin-top: 24px;
  padding: 6px 12px;
  background: rgba(217, 119, 6, 0.88);
  border-radius: 999px;
  font-weight: 900;
}

.podium-card strong {
  margin-top: 160px;
  font-size: 1.35rem;
}

.podium-card em {
  color: #fbbf24;
  font-size: 1.6rem;
  font-style: normal;
  font-weight: 900;
}

.detail-hero {
  position: relative;
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 36px;
  overflow: hidden;
  padding: 36px;
  color: #fff;
  background: linear-gradient(90deg, rgba(28, 25, 23, 0.96), rgba(28, 25, 23, 0.74)), var(--detail-bg);
  background-size: cover;
  background-position: center;
  border-radius: 32px;
  box-shadow: var(--shadow);
}

.detail-poster img {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  border-radius: 24px;
  box-shadow: 0 28px 55px rgba(0, 0, 0, 0.34);
}

.detail-info {
  align-self: center;
}

.detail-info h1 {
  margin: 18px 0 14px;
  font-size: clamp(2rem, 6vw, 4.6rem);
  line-height: 1.05;
  letter-spacing: -0.05em;
}

.detail-info p {
  max-width: 800px;
  color: #e7e5e4;
  font-size: 1.05rem;
}

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

.player-box {
  position: relative;
  overflow: hidden;
  background: #000;
  border-radius: 28px;
  box-shadow: 0 24px 58px rgba(0, 0, 0, 0.24);
}

.movie-video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
}

.player-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 14px;
  color: #fff;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.62), rgba(0, 0, 0, 0.18));
  border: 0;
  cursor: pointer;
  font-size: 1.05rem;
  font-weight: 900;
}

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

.play-circle {
  display: grid;
  width: 76px;
  height: 76px;
  place-items: center;
  padding-left: 5px;
  color: #fff;
  background: linear-gradient(135deg, var(--amber), var(--orange));
  border-radius: 999px;
  box-shadow: 0 20px 35px rgba(217, 119, 6, 0.35);
}

.player-mini-button {
  position: absolute;
  right: 18px;
  bottom: 18px;
  min-height: 42px;
  padding: 0 18px;
  color: #fff;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  cursor: pointer;
  backdrop-filter: blur(12px);
}

.player-error {
  position: absolute;
  left: 50%;
  top: 50%;
  padding: 12px 18px;
  color: #fff;
  background: rgba(127, 29, 29, 0.88);
  border-radius: 14px;
  transform: translate(-50%, -50%);
}

.detail-content {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 22px;
  margin-top: 28px;
}

.story-card {
  padding: 24px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: 0 12px 32px rgba(41, 37, 36, 0.08);
}

.story-card:first-child {
  grid-row: span 2;
}

.story-card h2 {
  margin: 0 0 12px;
  font-size: 1.35rem;
}

.story-card p {
  margin: 0;
  color: #57534e;
}

.large-tags span {
  font-size: 0.9rem;
}

.related-section {
  padding-bottom: 70px;
}

.mini-link-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.mini-link-row a {
  padding: 4px 9px;
  color: var(--amber-dark);
  background: #ffedd5;
  border-radius: 999px;
  font-size: 0.84rem;
  font-weight: 800;
}

.site-footer {
  margin-top: 72px;
  color: #e7e5e4;
  background: #1c1917;
}

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

.footer-logo {
  color: #fff;
}

.footer-inner p {
  max-width: 640px;
  margin: 12px 0 0;
  color: #a8a29e;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-content: start;
  justify-content: end;
}

.footer-links a {
  padding: 8px 12px;
  color: #fed7aa;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 999px;
}

.footer-bottom {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 18px 0 24px;
  color: #a8a29e;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.92rem;
}

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

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

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

  .nav-toggle {
    display: block;
  }

  .hero-slider {
    min-height: 720px;
    height: auto;
  }

  .hero-slide {
    grid-template-columns: 1fr;
    align-content: center;
    gap: 28px;
    padding: 80px 0;
  }

  .hero-poster {
    width: min(240px, 64vw);
  }

  .home-search,
  .section-heading,
  .footer-inner {
    display: grid;
  }

  .movie-grid,
  .catalog-grid,
  .compact-grid,
  .category-grid,
  .overview-grid,
  .dual-columns,
  .ranking-podium,
  .detail-content {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .detail-hero {
    grid-template-columns: 180px minmax(0, 1fr);
    padding: 24px;
  }

  .footer-links {
    justify-content: start;
  }
}

@media (max-width: 620px) {
  .nav-shell,
  .mobile-panel,
  .home-search,
  .content-section,
  .page-main,
  .detail-main,
  .footer-inner,
  .footer-bottom {
    width: min(100% - 24px, 1180px);
  }

  .hero-content h1 {
    font-size: 2.7rem;
  }

  .home-search,
  .category-showcase,
  .highlight-panel,
  .page-hero {
    padding: 22px;
    border-radius: 24px;
  }

  .movie-grid,
  .catalog-grid,
  .compact-grid,
  .category-grid,
  .overview-grid,
  .dual-columns,
  .ranking-podium,
  .detail-content {
    grid-template-columns: 1fr;
  }

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

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

  .detail-poster {
    width: min(220px, 72vw);
  }
}
