:root {
  --amber-50: #fffbeb;
  --amber-100: #fef3c7;
  --amber-200: #fde68a;
  --amber-600: #d97706;
  --amber-700: #b45309;
  --amber-900: #78350f;
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-800: #1f2937;
  --gray-900: #111827;
  --white: #ffffff;
  --shadow: 0 14px 40px rgba(17, 24, 39, 0.10);
  --soft-shadow: 0 8px 22px rgba(17, 24, 39, 0.08);
  --radius: 18px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  color: var(--gray-900);
  background: linear-gradient(180deg, #ffffff 0%, var(--gray-50) 52%, #ffffff 100%);
}

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

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

button,
input,
select {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: linear-gradient(90deg, var(--amber-50), #ffffff 50%, var(--amber-50));
  border-bottom: 1px solid var(--amber-200);
  box-shadow: 0 4px 18px rgba(120, 53, 15, 0.08);
}

.site-nav {
  max-width: 1280px;
  height: 64px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: white;
  background: linear-gradient(135deg, var(--amber-600), var(--amber-700));
  box-shadow: 0 10px 18px rgba(180, 83, 9, 0.22);
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.brand-title {
  font-size: 20px;
  font-weight: 800;
  color: var(--amber-900);
  white-space: nowrap;
}

.brand-subtitle {
  margin-top: 4px;
  font-size: 12px;
  color: var(--amber-600);
  white-space: nowrap;
}

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

.nav-link,
.mobile-nav-link {
  color: var(--gray-700);
  font-weight: 650;
  transition: color 0.2s ease, background 0.2s ease;
}

.nav-link:hover,
.nav-link.is-active {
  color: var(--amber-700);
}

.mobile-menu-button {
  display: none;
  border: 0;
  border-radius: 12px;
  padding: 8px 12px;
  color: var(--amber-900);
  background: transparent;
}

.mobile-menu-button:hover {
  background: var(--amber-100);
}

.mobile-nav {
  display: none;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px 16px;
}

.mobile-nav.is-open {
  display: grid;
  gap: 8px;
}

.mobile-nav-link {
  padding: 12px 14px;
  border-radius: 12px;
}

.mobile-nav-link:hover,
.mobile-nav-link.is-active {
  color: var(--amber-700);
  background: var(--amber-100);
}

.hero-slider {
  position: relative;
  height: 500px;
  overflow: hidden;
  background: var(--gray-900);
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transform: scale(1.02);
  transition: opacity 0.6s ease, transform 1.2s ease;
}

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

.hero-bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.76) 0%, rgba(0, 0, 0, 0.54) 42%, rgba(0, 0, 0, 0.08) 100%);
}

.hero-content {
  position: absolute;
  left: 50%;
  top: 50%;
  width: min(1180px, calc(100% - 48px));
  transform: translate(-50%, -50%);
  color: white;
}

.hero-content h1 {
  max-width: 720px;
  margin: 12px 0 16px;
  font-size: clamp(38px, 7vw, 62px);
  line-height: 1.08;
  font-weight: 850;
  letter-spacing: -0.04em;
}

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

.hero-kicker,
.section-kicker {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 6px 12px;
  border-radius: 999px;
  color: white;
  background: var(--amber-600);
  font-size: 14px;
  font-weight: 750;
}

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

.hero-meta span {
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(8px);
  color: white;
  font-weight: 700;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 28px;
  flex-wrap: wrap;
}

.primary-button,
.ghost-button,
.home-search button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 22px;
  border-radius: 12px;
  border: 0;
  font-weight: 750;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.primary-button,
.home-search button {
  color: white;
  background: var(--amber-600);
  box-shadow: 0 12px 26px rgba(217, 119, 6, 0.28);
}

.primary-button:hover,
.home-search button:hover {
  background: var(--amber-700);
  transform: translateY(-1px);
}

.ghost-button {
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.36);
  background: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(8px);
}

.ghost-button:hover {
  background: rgba(255, 255, 255, 0.24);
}

.hero-arrow {
  position: absolute;
  top: 50%;
  z-index: 3;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 50%;
  color: white;
  background: rgba(0, 0, 0, 0.36);
  font-size: 34px;
  line-height: 1;
  transform: translateY(-50%);
}

.hero-arrow:hover {
  background: rgba(217, 119, 6, 0.86);
}

.hero-prev {
  left: 24px;
}

.hero-next {
  right: 24px;
}

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

.hero-dot {
  width: 10px;
  height: 10px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.48);
}

.hero-dot.is-active {
  width: 30px;
  border-radius: 999px;
  background: var(--amber-600);
}

.search-strip,
.section-wrap,
.page-hero,
.detail-breadcrumb {
  width: min(1280px, calc(100% - 48px));
  margin-left: auto;
  margin-right: auto;
}

.search-strip {
  margin-top: 34px;
  padding: 26px;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 24px;
  align-items: center;
  border: 1px solid var(--amber-200);
  border-radius: var(--radius);
  background: linear-gradient(135deg, var(--amber-50), white);
  box-shadow: var(--soft-shadow);
}

.search-strip h2 {
  margin: 0 0 8px;
  color: var(--amber-900);
  font-size: 28px;
}

.search-strip p {
  margin: 0;
  color: var(--gray-600);
  line-height: 1.8;
}

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

.home-search input,
.filter-input,
.filter-select {
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--gray-200);
  border-radius: 12px;
  padding: 0 14px;
  outline: 0;
  background: white;
  color: var(--gray-800);
}

.home-search input:focus,
.filter-input:focus,
.filter-select:focus {
  border-color: var(--amber-600);
  box-shadow: 0 0 0 4px rgba(217, 119, 6, 0.12);
}

.section-wrap {
  padding-top: 56px;
}

.no-top-pad {
  padding-top: 24px;
}

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

.section-title-row h2,
.page-hero h1,
.detail-info h1 {
  margin: 10px 0 0;
  color: var(--gray-900);
  font-size: clamp(30px, 4vw, 44px);
  line-height: 1.15;
  font-weight: 850;
  letter-spacing: -0.03em;
}

.compact-title h2 {
  font-size: 30px;
}

.section-kicker {
  color: var(--amber-900);
  background: var(--amber-100);
}

.text-link {
  color: var(--amber-700);
  font-weight: 750;
}

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

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

.category-tile {
  position: relative;
  min-height: 154px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
  border-radius: var(--radius);
  color: white;
  box-shadow: var(--soft-shadow);
  isolation: isolate;
}

.category-tile::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.78));
}

.category-tile img {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.category-tile:hover img {
  transform: scale(1.08);
}

.category-tile span {
  font-size: 24px;
  font-weight: 850;
}

.category-tile strong {
  margin-top: 8px;
  font-size: 14px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.78);
}

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

.movie-card {
  min-width: 0;
}

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

.movie-card-link {
  display: block;
  height: 100%;
  overflow: hidden;
  border-radius: var(--radius);
  background: white;
  box-shadow: var(--soft-shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.movie-card-link:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.poster-wrap {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--gray-100);
}

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

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

.play-chip,
.rank-badge,
.row-rank {
  position: absolute;
  color: white;
  background: var(--amber-600);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.18);
}

.play-chip {
  right: 12px;
  bottom: 12px;
  padding: 6px 12px;
  border-radius: 999px;
  font-weight: 750;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.movie-card-link:hover .play-chip {
  opacity: 1;
  transform: translateY(0);
}

.rank-badge {
  top: 12px;
  left: 12px;
  min-width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-weight: 850;
}

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

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

.movie-card-body p {
  min-height: 46px;
  margin: 0 0 14px;
  color: var(--gray-600);
  line-height: 1.65;
  font-size: 14px;
}

.movie-meta {
  color: var(--gray-500);
  font-size: 13px;
  font-weight: 650;
}

.movie-meta span:first-child {
  color: var(--amber-700);
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.tag-row span {
  padding: 4px 8px;
  border-radius: 999px;
  color: var(--amber-900);
  background: var(--amber-100);
  font-size: 12px;
  font-weight: 700;
}

.split-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}

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

.movie-row {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 16px;
  padding: 14px;
  border-radius: 16px;
  background: white;
  box-shadow: var(--soft-shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.movie-row:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.row-poster {
  position: relative;
  height: 92px;
  overflow: hidden;
  border-radius: 12px;
  background: var(--gray-100);
}

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

.row-rank {
  top: 8px;
  left: 8px;
  width: 30px;
  height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-weight: 850;
}

.row-body h2 {
  margin: 0 0 6px;
  font-size: 18px;
}

.row-body p {
  margin: 0 0 12px;
  color: var(--gray-600);
  font-size: 14px;
  line-height: 1.5;
}

.page-main {
  padding-bottom: 20px;
}

.page-hero {
  margin-top: 30px;
  padding: 42px;
  border-radius: 24px;
  background: linear-gradient(135deg, var(--amber-50), #ffffff 60%, var(--gray-50));
  box-shadow: var(--soft-shadow);
}

.small-hero {
  padding: 34px 42px;
}

.page-hero p {
  max-width: 760px;
  margin: 14px 0 0;
  color: var(--gray-600);
  line-height: 1.8;
  font-size: 17px;
}

.breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
  color: var(--gray-500);
  font-size: 14px;
}

.breadcrumb a {
  color: var(--amber-700);
  font-weight: 700;
}

.filter-panel {
  margin-bottom: 24px;
  padding: 18px;
  display: grid;
  grid-template-columns: 1fr 190px 190px;
  gap: 14px;
  border-radius: 18px;
  background: white;
  box-shadow: var(--soft-shadow);
}

.detail-main {
  padding-top: 24px;
}

.detail-breadcrumb {
  margin-bottom: 18px;
}

.detail-hero {
  width: min(1280px, calc(100% - 48px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 34px;
  align-items: stretch;
}

.detail-poster {
  overflow: hidden;
  border-radius: 24px;
  background: var(--gray-100);
  box-shadow: var(--shadow);
}

.detail-poster img {
  width: 100%;
  height: 100%;
  min-height: 420px;
  object-fit: cover;
}

.detail-info {
  padding: 36px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  border-radius: 24px;
  background: linear-gradient(135deg, white, var(--amber-50));
  box-shadow: var(--soft-shadow);
}

.detail-info p {
  margin: 18px 0 18px;
  color: var(--gray-600);
  font-size: 17px;
  line-height: 1.85;
}

.detail-meta span {
  color: var(--gray-700);
  background: white;
  border: 1px solid var(--amber-200);
}

.large-tags {
  margin: 22px 0 26px;
}

.player-section {
  width: min(1280px, calc(100% - 48px));
  margin: 56px auto 0;
}

.video-shell {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  background: #050505;
  box-shadow: var(--shadow);
}

.movie-player {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: black;
}

.play-layer {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 86px;
  height: 86px;
  border: 0;
  border-radius: 50%;
  color: white;
  background: rgba(217, 119, 6, 0.92);
  transform: translate(-50%, -50%);
  box-shadow: 0 20px 44px rgba(0, 0, 0, 0.34);
}

.play-layer span {
  display: inline-block;
  margin-left: 5px;
  font-size: 38px;
}

.video-shell.is-playing .play-layer {
  display: none;
}

.detail-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.content-card {
  padding: 26px;
  border-radius: 20px;
  background: white;
  box-shadow: var(--soft-shadow);
}

.content-card h2 {
  margin: 0 0 12px;
  color: var(--gray-900);
  font-size: 24px;
}

.content-card p {
  margin: 0;
  color: var(--gray-700);
  line-height: 1.9;
}

.site-footer {
  margin-top: 70px;
  border-top: 1px solid var(--amber-200);
  background: linear-gradient(180deg, var(--amber-50), var(--amber-100));
}

.footer-inner {
  width: min(1280px, calc(100% - 48px));
  margin: 0 auto;
  padding: 44px 0;
  display: grid;
  grid-template-columns: 1.5fr 0.7fr 0.7fr;
  gap: 30px;
}

.footer-brand p {
  max-width: 560px;
  margin: 18px 0 0;
  color: var(--gray-600);
  line-height: 1.8;
}

.footer-column {
  display: grid;
  align-content: start;
  gap: 12px;
}

.footer-column h2 {
  margin: 0 0 4px;
  color: var(--amber-900);
  font-size: 18px;
}

.footer-column a {
  color: var(--gray-600);
  font-weight: 650;
}

.footer-column a:hover {
  color: var(--amber-700);
}

.footer-bottom {
  width: min(1280px, calc(100% - 48px));
  margin: 0 auto;
  padding: 18px 0 26px;
  border-top: 1px solid rgba(180, 83, 9, 0.2);
  color: var(--gray-600);
  text-align: center;
  font-size: 14px;
}

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

  .mobile-menu-button {
    display: inline-flex;
  }

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

  .split-layout,
  .detail-content,
  .detail-hero,
  .search-strip {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .site-nav {
    padding: 0 16px;
  }

  .brand-title {
    font-size: 18px;
  }

  .brand-subtitle {
    display: none;
  }

  .hero-slider {
    height: 560px;
  }

  .hero-content {
    width: calc(100% - 36px);
  }

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

  .hero-arrow {
    display: none;
  }

  .search-strip,
  .section-wrap,
  .page-hero,
  .detail-breadcrumb,
  .detail-hero,
  .player-section {
    width: min(100% - 32px, 1280px);
  }

  .home-search,
  .section-title-row {
    flex-direction: column;
    align-items: stretch;
  }

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

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

  .movie-row {
    grid-template-columns: 122px 1fr;
  }

  .row-poster {
    height: 82px;
  }

  .detail-info,
  .page-hero {
    padding: 26px;
  }

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

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

  .movie-card-compact .movie-card-link {
    display: grid;
    grid-template-columns: 130px 1fr;
  }

  .movie-card-compact .poster-wrap {
    height: 100%;
    aspect-ratio: auto;
  }

  .movie-card-body p {
    min-height: auto;
  }
}
