:root {
  --primary-50: #fef3e2;
  --primary-100: #fde6c5;
  --primary-300: #f9c052;
  --primary-400: #f7ad18;
  --primary-500: #d89410;
  --primary-600: #b6790d;
  --accent-500: #e85d04;
  --secondary-50: #f5f7fa;
  --secondary-100: #e8ecf4;
  --secondary-600: #4a5a82;
  --secondary-900: #2f344c;
  --text: #111827;
  --muted: #667085;
  --line: #e5e7eb;
  --white: #ffffff;
  --shadow-soft: 0 16px 40px rgba(47, 52, 76, 0.10);
  --shadow-hover: 0 24px 60px rgba(216, 148, 16, 0.22);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", "PingFang SC", sans-serif;
  color: var(--text);
  background: var(--secondary-50);
}

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.95);
  backdrop-filter: blur(16px);
  box-shadow: 0 1px 0 rgba(229, 231, 235, 0.9);
}

.nav-wrap {
  max-width: 1180px;
  margin: 0 auto;
  height: 68px;
  padding: 0 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

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

.brand-mark {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  background: linear-gradient(135deg, var(--primary-500), var(--accent-500));
  box-shadow: 0 10px 24px rgba(216, 148, 16, 0.32);
  transition: transform 0.2s ease;
}

.brand:hover .brand-mark,
.footer-brand:hover .brand-mark {
  transform: scale(1.08) rotate(-3deg);
}

.brand-text {
  font-size: 22px;
  background: linear-gradient(90deg, var(--primary-600), var(--accent-500));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

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

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

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

.menu-button {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 12px;
  background: var(--secondary-50);
  cursor: pointer;
}

.menu-button span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  background: var(--secondary-900);
  border-radius: 4px;
}

.mobile-nav {
  display: none;
  padding: 12px 22px 20px;
  border-top: 1px solid var(--line);
  background: var(--white);
}

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

.mobile-nav-link {
  padding: 12px 14px;
  border-radius: 12px;
  color: #374151;
  font-weight: 700;
}

.mobile-nav-link:hover,
.mobile-nav-link.is-active {
  color: var(--primary-600);
  background: var(--primary-50);
}

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

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

.hero-slide {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.8s ease;
}

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

.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.03);
}

.hero-overlay {
  background:
    radial-gradient(circle at 20% 35%, rgba(247, 173, 24, 0.34), transparent 32%),
    linear-gradient(0deg, rgba(0, 0, 0, 0.90), rgba(0, 0, 0, 0.15) 52%, rgba(0, 0, 0, 0.45));
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 1180px;
  height: 100%;
  margin: 0 auto;
  padding: 0 22px 76px;
  display: flex;
  align-items: flex-end;
}

.hero-copy {
  max-width: 760px;
  color: var(--white);
}

.hero-badge,
.kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  border-radius: 999px;
  color: #7a4d05;
  background: var(--primary-100);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.03em;
}

.hero .hero-badge,
.detail-copy .hero-badge {
  color: var(--white);
  background: rgba(216, 148, 16, 0.88);
  box-shadow: 0 10px 26px rgba(216, 148, 16, 0.22);
}

.hero h1,
.hero h2,
.page-hero h1,
.detail-copy h1 {
  margin: 18px 0 14px;
  line-height: 1.08;
  font-size: clamp(36px, 6vw, 72px);
  letter-spacing: -0.04em;
}

.hero .hero-movie-title {
  margin-top: 10px;
  font-size: clamp(28px, 4vw, 50px);
}

.hero p,
.page-hero p,
.detail-copy p {
  max-width: 720px;
  margin: 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: 18px;
  line-height: 1.8;
}

.hero-meta,
.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 22px 0 28px;
}

.hero-meta span,
.detail-meta span {
  padding: 8px 12px;
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.92);
  background: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(10px);
  font-size: 14px;
  font-weight: 700;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 22px;
  border-radius: 14px;
  font-weight: 800;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  color: var(--white);
  background: var(--primary-500);
  box-shadow: 0 16px 32px rgba(216, 148, 16, 0.34);
}

.btn-primary:hover {
  background: var(--primary-600);
}

.btn-ghost {
  color: var(--white);
  background: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(10px);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.26);
}

.btn-ghost.light {
  color: var(--secondary-900);
  background: rgba(255, 255, 255, 0.86);
}

.btn-soft {
  color: #7a4d05;
  background: var(--primary-50);
}

.hero-control {
  position: absolute;
  top: 50%;
  z-index: 5;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 999px;
  color: var(--white);
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(10px);
  font-size: 34px;
  line-height: 1;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

.hero-control:hover {
  background: rgba(216, 148, 16, 0.82);
  transform: translateY(-50%) scale(1.04);
}

.hero-prev {
  left: 28px;
  transform: translateY(-50%);
}

.hero-next {
  right: 28px;
  transform: translateY(-50%);
}

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

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

.hero-dot.is-active {
  width: 30px;
  background: var(--primary-400);
}

.quick-search-section {
  max-width: 1180px;
  margin: -36px auto 0;
  padding: 0 22px;
  position: relative;
  z-index: 6;
}

.quick-search {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 14px;
  align-items: center;
  padding: 18px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(18px);
}

.quick-search label {
  color: var(--primary-600);
  font-weight: 900;
}

.quick-search input,
.filter-search input,
.filter-selects select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 14px;
  color: var(--text);
  background: var(--white);
  outline: 0;
}

.quick-search input {
  height: 48px;
  padding: 0 16px;
}

.quick-search button {
  height: 48px;
  border: 0;
  border-radius: 14px;
  padding: 0 20px;
  color: var(--white);
  background: var(--primary-500);
  font-weight: 800;
  cursor: pointer;
}

.content-section {
  max-width: 1180px;
  margin: 0 auto;
  padding: 70px 22px 0;
}

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

.section-heading h2,
.recommend-panel h2,
.article-block h2,
.player-section h2,
.info-card h2 {
  margin: 12px 0 8px;
  color: var(--secondary-900);
  font-size: clamp(26px, 4vw, 38px);
  line-height: 1.18;
}

.section-heading p,
.recommend-panel p {
  margin: 0;
  color: var(--muted);
  line-height: 1.75;
}

.section-link {
  flex: 0 0 auto;
  padding: 10px 16px;
  border-radius: 999px;
  color: var(--primary-600);
  background: var(--primary-50);
  font-weight: 800;
}

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

.category-tile a,
.category-overview-card a {
  min-height: 230px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 22px;
  border-radius: 24px;
  background: linear-gradient(145deg, var(--white), var(--primary-50));
  box-shadow: var(--shadow-soft);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.category-tile a:hover,
.category-overview-card a:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
}

.category-tile span,
.category-tile h3,
.category-overview-card h2 {
  color: var(--secondary-900);
}

.category-tile span {
  font-size: 14px;
  font-weight: 900;
  color: var(--primary-600);
}

.category-tile h3,
.category-overview-card h2 {
  margin: 12px 0 10px;
  font-size: 22px;
}

.category-tile p,
.category-overview-card p {
  color: var(--muted);
  line-height: 1.7;
}

.category-mini-links,
.overview-links {
  display: grid;
  gap: 7px;
  margin-top: 12px;
}

.category-mini-links a,
.overview-links a {
  color: var(--primary-600);
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

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

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

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

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

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

.card-poster {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #101828;
}

.card-poster img,
.horizontal-poster img,
.detail-poster img,
.player-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

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

.card-poster img {
  transition: transform 0.45s ease;
}

.poster-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.70), transparent 58%);
}

.card-type,
.rank-badge {
  position: absolute;
  top: 14px;
  border-radius: 999px;
  color: var(--white);
  font-size: 12px;
  font-weight: 900;
}

.card-type {
  right: 14px;
  padding: 6px 10px;
  background: rgba(216, 148, 16, 0.88);
}

.rank-badge {
  left: 14px;
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(232, 93, 4, 0.92);
}

.card-body {
  padding: 18px;
}

.card-meta-line,
.card-foot,
.horizontal-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.card-meta-line {
  justify-content: space-between;
  color: var(--primary-600);
}

.card-body h3,
.horizontal-body h3 {
  margin: 10px 0 8px;
  color: var(--secondary-900);
  line-height: 1.3;
  transition: color 0.2s ease;
}

.card-link:hover h3,
.horizontal-card a:hover h3 {
  color: var(--primary-600);
}

.card-body p,
.horizontal-body p {
  margin: 0 0 14px;
  color: var(--muted);
  line-height: 1.7;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

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

.tag-row span,
.tag-row a {
  padding: 6px 9px;
  border-radius: 999px;
  color: var(--primary-600);
  background: var(--primary-50);
  font-size: 12px;
  font-weight: 800;
}

.split-section {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.65fr);
  gap: 28px;
  align-items: start;
}

.recommend-panel,
.info-card,
.article-block,
.player-section {
  border-radius: 28px;
  background: var(--white);
  box-shadow: var(--shadow-soft);
}

.recommend-panel {
  padding: 26px;
  position: sticky;
  top: 92px;
}

.ranking-list,
.side-card-list {
  display: grid;
  gap: 16px;
}

.horizontal-card a {
  display: grid;
  grid-template-columns: 154px minmax(0, 1fr);
  gap: 16px;
  align-items: stretch;
  padding: 14px;
  border-radius: 20px;
  background: var(--white);
  box-shadow: var(--shadow-soft);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.horizontal-card a:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

.horizontal-poster {
  overflow: hidden;
  border-radius: 16px;
  background: #101828;
  aspect-ratio: 16 / 10;
}

.horizontal-head {
  display: flex;
  gap: 10px;
  align-items: center;
}

.horizontal-head h3 {
  margin: 0 0 6px;
  font-size: 18px;
}

.list-rank {
  width: 30px;
  height: 30px;
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  color: var(--white);
  background: linear-gradient(135deg, var(--primary-500), var(--accent-500));
  font-weight: 900;
}

.page-hero,
.detail-hero {
  position: relative;
  overflow: hidden;
  color: var(--white);
  background:
    radial-gradient(circle at 18% 20%, rgba(247, 173, 24, 0.36), transparent 30%),
    linear-gradient(135deg, #24293f, #101828 72%);
}

.page-hero {
  min-height: 330px;
  display: flex;
  align-items: center;
  padding: 72px 22px;
}

.page-hero > div {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
}

.page-hero h1 {
  font-size: clamp(34px, 5vw, 58px);
}

.filter-panel {
  display: grid;
  gap: 16px;
  padding: 18px;
  margin-bottom: 28px;
  border-radius: 24px;
  background: var(--white);
  box-shadow: var(--shadow-soft);
}

.filter-search input {
  height: 52px;
  padding: 0 16px;
}

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

.filter-selects label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.filter-selects select {
  height: 46px;
  padding: 0 12px;
}

.empty-state {
  display: none;
  padding: 34px;
  border-radius: 24px;
  text-align: center;
  color: var(--muted);
  background: var(--white);
  box-shadow: var(--shadow-soft);
}

.empty-state.is-visible {
  display: block;
}

.large-ranking .horizontal-card a {
  grid-template-columns: 190px minmax(0, 1fr);
}

.detail-hero {
  min-height: 650px;
}

.detail-bg,
.detail-veil {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.detail-bg {
  object-fit: cover;
  filter: blur(2px) saturate(0.95);
  transform: scale(1.04);
}

.detail-veil {
  background:
    radial-gradient(circle at 24% 28%, rgba(216, 148, 16, 0.42), transparent 30%),
    linear-gradient(90deg, rgba(0, 0, 0, 0.86), rgba(0, 0, 0, 0.50) 48%, rgba(0, 0, 0, 0.82));
}

.detail-wrap {
  position: relative;
  z-index: 2;
  max-width: 1180px;
  min-height: 650px;
  margin: 0 auto;
  padding: 62px 22px;
  display: grid;
  grid-template-columns: 330px minmax(0, 1fr);
  gap: 44px;
  align-items: center;
}

.detail-poster {
  overflow: hidden;
  border-radius: 28px;
  aspect-ratio: 2 / 3;
  background: #101828;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.38);
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
  color: rgba(255, 255, 255, 0.74);
  font-weight: 700;
}

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

.detail-tags a {
  color: var(--white);
  background: rgba(255, 255, 255, 0.16);
}

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

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

.player-section,
.article-block,
.info-card {
  padding: 26px;
}

.video-shell {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  aspect-ratio: 16 / 9;
  background: #000;
}

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

.player-cover {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  background: #000;
  transition: opacity 0.24s ease, visibility 0.24s ease;
}

.player-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.36);
}

.player-cover img {
  position: absolute;
  inset: 0;
  filter: brightness(0.76);
}

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

.player-button {
  position: relative;
  z-index: 2;
  width: 132px;
  height: 132px;
  border: 0;
  border-radius: 999px;
  color: var(--white);
  background: linear-gradient(135deg, var(--primary-500), var(--accent-500));
  box-shadow: 0 24px 60px rgba(216, 148, 16, 0.42);
  font-size: 18px;
  font-weight: 900;
  cursor: pointer;
}

.article-block p {
  margin: 0;
  color: #475467;
  font-size: 17px;
  line-height: 1.92;
}

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

.info-card ul {
  padding: 0;
  margin: 0;
  list-style: none;
  display: grid;
  gap: 12px;
}

.info-card li {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.info-card li:last-child {
  border-bottom: 0;
}

.info-card span {
  color: var(--muted);
}

.info-card strong {
  text-align: right;
  color: var(--secondary-900);
}

.side-links {
  display: grid;
}

.site-footer {
  margin-top: 86px;
  color: rgba(255, 255, 255, 0.78);
  background: var(--secondary-900);
}

.footer-grid {
  max-width: 1180px;
  margin: 0 auto;
  padding: 54px 22px 34px;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 0.8fr;
  gap: 36px;
}

.footer-brand {
  color: var(--white);
  font-size: 22px;
}

.site-footer p {
  max-width: 420px;
  line-height: 1.8;
}

.site-footer h3 {
  margin: 0 0 16px;
  color: var(--primary-300);
}

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

.footer-links a {
  color: rgba(255, 255, 255, 0.78);
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: var(--primary-300);
}

.footer-bottom {
  max-width: 1180px;
  margin: 0 auto;
  padding: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  justify-content: space-between;
  gap: 18px;
  color: rgba(255, 255, 255, 0.58);
  font-size: 14px;
}

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

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

  .split-section,
  .detail-layout {
    grid-template-columns: 1fr;
  }

  .recommend-panel,
  .detail-side {
    position: static;
  }

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

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

  .menu-button {
    display: block;
  }

  .hero {
    min-height: 620px;
  }

  .hero-content {
    padding-bottom: 92px;
  }

  .hero-control {
    display: none;
  }

  .quick-search {
    grid-template-columns: 1fr;
  }

  .section-heading {
    display: grid;
    align-items: start;
  }

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

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

  .detail-wrap {
    grid-template-columns: 1fr;
    padding-top: 42px;
  }

  .detail-poster {
    max-width: 260px;
  }

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

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

  .hero h1,
  .hero h2,
  .page-hero h1,
  .detail-copy h1 {
    font-size: 34px;
  }

  .hero .hero-movie-title {
    font-size: 28px;
  }

  .hero p,
  .page-hero p,
  .detail-copy p {
    font-size: 16px;
  }

  .content-section {
    padding-top: 48px;
  }

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

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

  .horizontal-card a,
  .large-ranking .horizontal-card a {
    grid-template-columns: 112px minmax(0, 1fr);
    gap: 12px;
  }

  .horizontal-body p {
    -webkit-line-clamp: 1;
  }

  .player-button {
    width: 104px;
    height: 104px;
    font-size: 16px;
  }

  .footer-bottom {
    display: grid;
  }
}
