:root {
  color-scheme: light;
  --brand: #f59e0b;
  --brand-dark: #d97706;
  --accent: #f97316;
  --rose: #f43f5e;
  --ink: #111827;
  --muted: #6b7280;
  --soft: #fff7ed;
  --card: #ffffff;
  --line: rgba(17, 24, 39, 0.08);
  --shadow: 0 22px 45px rgba(15, 23, 42, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--ink);
  background: linear-gradient(135deg, #fffbeb 0%, #fff7ed 42%, #fff1f2 100%);
}

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

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

main {
  min-height: 70vh;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: linear-gradient(90deg, #f59e0b, #f97316, #f43f5e);
  box-shadow: 0 16px 32px rgba(217, 119, 6, 0.25);
}

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

.brand,
.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #ffffff;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.brand-icon,
.footer-logo span {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.22);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.22);
}

.nav-links {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 22px;
  font-size: 15px;
  font-weight: 650;
  color: rgba(255, 255, 255, 0.92);
}

.nav-links a {
  padding: 8px 0;
  border-bottom: 2px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.nav-links a:hover,
.nav-links a.active {
  color: #fff7ed;
  border-bottom-color: rgba(255, 255, 255, 0.9);
}

.menu-toggle {
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.18);
  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
}

.menu-toggle span {
  width: 20px;
  height: 2px;
  background: #ffffff;
  border-radius: 999px;
}

.mobile-panel {
  display: none;
  padding: 8px 20px 20px;
  background: linear-gradient(180deg, #ea580c, #f97316);
  border-top: 1px solid rgba(255, 255, 255, 0.22);
}

.mobile-panel a {
  display: block;
  color: #ffffff;
  padding: 10px 0;
  font-weight: 650;
}

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

.hero {
  position: relative;
  height: min(72vh, 760px);
  min-height: 520px;
  overflow: hidden;
  background: #111827;
}

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

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

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

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.78) 0%, rgba(0, 0, 0, 0.42) 46%, rgba(0, 0, 0, 0.1) 100%),
    radial-gradient(circle at 20% 20%, rgba(245, 158, 11, 0.45), transparent 30%);
}

.hero-content {
  position: absolute;
  z-index: 2;
  left: max(24px, calc((100vw - 1280px) / 2 + 24px));
  top: 50%;
  transform: translateY(-50%);
  width: min(680px, calc(100% - 48px));
  color: #ffffff;
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 9px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(14px);
  font-weight: 750;
  color: #fde68a;
  margin-bottom: 18px;
}

.hero-kicker span {
  color: #fbbf24;
}

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

.hero p {
  margin: 0 0 24px;
  color: rgba(255, 255, 255, 0.86);
  font-size: clamp(17px, 2vw, 22px);
  line-height: 1.75;
}

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

.hero-tags span,
.tag-row span,
.detail-tags span {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 5px 10px;
  background: rgba(245, 158, 11, 0.14);
  color: #b45309;
  font-size: 12px;
  font-weight: 700;
}

.hero-tags span {
  color: #fffbeb;
  background: rgba(255, 255, 255, 0.16);
}

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

.primary-btn,
.ghost-btn,
.section-link,
.filter-chip,
.play-now {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-weight: 800;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.primary-btn,
.play-now {
  padding: 13px 24px;
  color: #ffffff;
  background: linear-gradient(90deg, #f59e0b, #f97316);
  box-shadow: 0 14px 28px rgba(249, 115, 22, 0.32);
}

.ghost-btn {
  padding: 13px 24px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.16);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.22);
}

.primary-btn:hover,
.ghost-btn:hover,
.section-link:hover,
.play-now:hover {
  transform: translateY(-2px) scale(1.02);
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
  color: rgba(255, 255, 255, 0.84);
  font-weight: 650;
}

.hero-meta span {
  padding-right: 12px;
  border-right: 1px solid rgba(255, 255, 255, 0.25);
}

.hero-meta span:last-child {
  border-right: 0;
}

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

.hero-dot {
  width: 36px;
  height: 6px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.35);
  cursor: pointer;
}

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

.page-shell {
  max-width: 1280px;
  margin: 0 auto;
  padding: 40px 20px 72px;
}

.section-block,
.search-panel,
.page-hero,
.detail-layout,
.info-card {
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.78);
  border-radius: 28px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.section-block {
  padding: 28px;
  margin-top: 32px;
}

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

.section-head h2,
.search-panel h2,
.page-hero h1,
.info-card h2,
.detail-copy h2 {
  margin: 0 0 8px;
  color: #111827;
  line-height: 1.18;
}

.section-head h2,
.search-panel h2,
.info-card h2,
.detail-copy h2 {
  font-size: clamp(24px, 3vw, 34px);
}

.section-head p,
.search-panel p,
.page-hero p,
.info-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.75;
}

.section-link {
  padding: 10px 16px;
  color: #b45309;
  background: #fffbeb;
  border: 1px solid #fed7aa;
  white-space: nowrap;
}

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

.movie-card {
  overflow: hidden;
  border-radius: 22px;
  background: var(--card);
  box-shadow: 0 14px 32px rgba(15, 23, 42, 0.09);
  border: 1px solid var(--line);
  transition: transform 0.24s ease, box-shadow 0.24s ease;
}

.movie-card:hover {
  transform: translateY(-7px);
  box-shadow: 0 26px 55px rgba(15, 23, 42, 0.16);
}

.poster-link {
  position: relative;
  display: block;
  aspect-ratio: 16 / 10;
  background: linear-gradient(135deg, #f59e0b, #f97316);
  overflow: hidden;
}

.poster-link img,
.mini-cover img,
.category-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

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

.poster-shade,
.category-mask {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 25%, rgba(0, 0, 0, 0.7));
}

.card-score,
.mini-score {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  padding: 5px 9px;
  border-radius: 999px;
  background: rgba(17, 24, 39, 0.72);
  color: #fbbf24;
  font-weight: 850;
  font-size: 13px;
}

.card-play {
  position: absolute;
  left: 14px;
  bottom: 14px;
  z-index: 2;
  color: #ffffff;
  font-weight: 800;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(245, 158, 11, 0.92);
}

.card-content {
  padding: 16px;
}

.card-content h3,
.mini-info h3 {
  margin: 0 0 8px;
  font-size: 18px;
  line-height: 1.35;
}

.card-content h3 a:hover,
.mini-info h3 a:hover {
  color: var(--brand-dark);
}

.card-desc,
.mini-info p {
  margin: 0 0 12px;
  color: #4b5563;
  line-height: 1.65;
  font-size: 14px;
}

.card-meta,
.mini-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
  color: #6b7280;
  font-size: 13px;
  font-weight: 650;
}

.search-panel {
  margin-top: 34px;
  padding: 26px;
  display: grid;
  grid-template-columns: minmax(240px, 1fr) minmax(260px, 440px);
  gap: 20px;
  align-items: center;
}

.search-box {
  height: 52px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 16px;
  border-radius: 999px;
  background: #ffffff;
  border: 1px solid #fed7aa;
  box-shadow: 0 12px 28px rgba(245, 158, 11, 0.12);
}

.search-box span {
  color: var(--brand-dark);
  font-size: 22px;
}

.search-box input {
  width: 100%;
  border: 0;
  outline: 0;
  font-size: 16px;
  color: var(--ink);
  background: transparent;
}

.filter-row {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.filter-chip {
  border: 1px solid #fed7aa;
  background: #ffffff;
  color: #92400e;
  padding: 9px 14px;
  cursor: pointer;
}

.filter-chip.is-active,
.filter-chip:hover {
  background: linear-gradient(90deg, #f59e0b, #f97316);
  color: #ffffff;
  border-color: transparent;
}

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

.category-tile {
  position: relative;
  min-height: 210px;
  overflow: hidden;
  border-radius: 26px;
  color: #ffffff;
  background: #111827;
  box-shadow: 0 18px 38px rgba(15, 23, 42, 0.14);
}

.category-tile strong,
.category-tile em {
  position: absolute;
  z-index: 2;
  left: 20px;
  right: 20px;
}

.category-tile strong {
  bottom: 72px;
  font-size: 24px;
  font-style: normal;
}

.category-tile em {
  bottom: 22px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 14px;
  line-height: 1.55;
  font-style: normal;
}

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

.mini-card {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 14px;
  padding: 12px;
  border-radius: 20px;
}

.mini-cover {
  position: relative;
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-radius: 16px;
  background: linear-gradient(135deg, #f59e0b, #f97316);
}

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

.page-hero {
  padding: 34px;
  margin-bottom: 30px;
  background:
    linear-gradient(135deg, rgba(245, 158, 11, 0.92), rgba(249, 115, 22, 0.86)),
    radial-gradient(circle at top right, rgba(255, 255, 255, 0.35), transparent 28%);
  color: #ffffff;
}

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

.page-hero p {
  color: rgba(255, 255, 255, 0.88);
  max-width: 820px;
}

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

.breadcrumb a:hover {
  color: #fffbeb;
}

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

.ranking-item {
  display: grid;
  grid-template-columns: 58px 150px 1fr auto;
  gap: 16px;
  align-items: center;
  padding: 14px;
  border-radius: 22px;
  background: #ffffff;
  border: 1px solid var(--line);
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.07);
}

.rank-num {
  width: 44px;
  height: 44px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-weight: 900;
  background: linear-gradient(135deg, #f59e0b, #f43f5e);
}

.rank-cover {
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-radius: 16px;
  background: linear-gradient(135deg, #f59e0b, #f97316);
}

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

.rank-info h2 {
  margin: 0 0 8px;
  font-size: 21px;
}

.rank-info p {
  margin: 0;
  color: #4b5563;
  line-height: 1.6;
}

.rank-score {
  color: #b45309;
  font-size: 24px;
  font-weight: 900;
}

.detail-hero {
  position: relative;
  overflow: hidden;
  background: #111827;
  color: #ffffff;
}

.detail-hero-bg {
  position: absolute;
  inset: 0;
  opacity: 0.35;
}

.detail-hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(4px);
  transform: scale(1.04);
}

.detail-hero-inner {
  position: relative;
  max-width: 1280px;
  margin: 0 auto;
  padding: 54px 20px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 38px;
  align-items: center;
}

.detail-title h1 {
  margin: 0 0 18px;
  font-size: clamp(34px, 5vw, 60px);
  line-height: 1.08;
}

.detail-title p {
  margin: 0 0 20px;
  color: rgba(255, 255, 255, 0.84);
  font-size: 18px;
  line-height: 1.8;
}

.detail-poster {
  border-radius: 30px;
  overflow: hidden;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.35);
  aspect-ratio: 16 / 11;
  background: linear-gradient(135deg, #f59e0b, #f97316);
}

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

.detail-main {
  max-width: 1280px;
  margin: 0 auto;
  padding: 38px 20px 78px;
}

.player-card {
  overflow: hidden;
  border-radius: 30px;
  background: #0f172a;
  box-shadow: 0 28px 60px rgba(15, 23, 42, 0.28);
  margin-bottom: 34px;
}

.movie-player {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #020617;
}

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

.player-cover {
  position: absolute;
  inset: 0;
  z-index: 2;
  border: 0;
  padding: 0;
  background: #020617;
  cursor: pointer;
  color: #ffffff;
}

.player-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.68;
}

.player-cover.is-hidden {
  display: none;
}

.play-button {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 88px;
  height: 88px;
  border-radius: 999px;
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #f59e0b, #f43f5e);
  box-shadow: 0 18px 38px rgba(249, 115, 22, 0.38);
  font-size: 34px;
}

.player-title {
  padding: 18px 22px;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: linear-gradient(90deg, rgba(245, 158, 11, 0.22), rgba(244, 63, 94, 0.14));
}

.player-title h2 {
  margin: 0;
  font-size: 22px;
}

.player-title span {
  color: #fbbf24;
  font-weight: 800;
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 26px;
  padding: 26px;
}

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

.detail-copy section,
.side-card {
  padding: 24px;
  border-radius: 24px;
  background: #ffffff;
  border: 1px solid var(--line);
}

.detail-copy p {
  margin: 0;
  color: #374151;
  line-height: 1.95;
  font-size: 16px;
}

.detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 14px;
}

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

.meta-list div {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding-bottom: 12px;
  border-bottom: 1px solid #f3f4f6;
  color: #4b5563;
}

.meta-list strong {
  color: #111827;
}

.side-card h2 {
  margin: 0 0 16px;
  font-size: 22px;
}

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

.hidden-card {
  display: none !important;
}

.no-results {
  display: none;
  padding: 24px;
  text-align: center;
  border-radius: 20px;
  color: #92400e;
  background: #fffbeb;
  border: 1px solid #fed7aa;
}

.no-results.is-visible {
  display: block;
}

.site-footer {
  background: linear-gradient(135deg, #0f172a, #1e293b 54%, #111827);
  color: #cbd5e1;
  padding: 46px 20px 26px;
}

.footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 36px;
}

.footer-brand p {
  max-width: 430px;
  margin: 14px 0 0;
  color: #94a3b8;
  line-height: 1.8;
}

.site-footer h3 {
  margin: 0 0 14px;
  color: #ffffff;
}

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

.site-footer a:hover {
  color: #fbbf24;
}

.footer-bottom {
  max-width: 1280px;
  margin: 34px auto 0;
  padding-top: 20px;
  color: #94a3b8;
  border-top: 1px solid rgba(148, 163, 184, 0.18);
}

@media (max-width: 1180px) {
  .nav-links {
    gap: 14px;
    font-size: 14px;
  }

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

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

  .menu-toggle {
    display: flex;
  }

  .hero {
    min-height: 560px;
  }

  .search-panel,
  .detail-hero-inner,
  .detail-layout,
  .footer-inner {
    grid-template-columns: 1fr;
  }

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

  .ranking-item {
    grid-template-columns: 44px 120px 1fr;
  }

  .rank-score {
    grid-column: 3;
    font-size: 18px;
  }
}

@media (max-width: 680px) {
  .top-nav {
    height: 62px;
    padding: 0 14px;
  }

  .brand {
    font-size: 19px;
  }

  .hero {
    height: 74vh;
    min-height: 520px;
  }

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

  .hero-actions {
    gap: 10px;
  }

  .primary-btn,
  .ghost-btn,
  .play-now {
    width: 100%;
  }

  .page-shell,
  .detail-main {
    padding-left: 14px;
    padding-right: 14px;
  }

  .section-block,
  .search-panel,
  .detail-layout {
    padding: 18px;
    border-radius: 22px;
  }

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

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

  .mini-card {
    grid-template-columns: 120px 1fr;
  }

  .ranking-item {
    grid-template-columns: 38px 104px 1fr;
    gap: 10px;
    padding: 10px;
  }

  .rank-info h2 {
    font-size: 17px;
  }

  .rank-info p {
    font-size: 13px;
  }

  .player-title {
    align-items: flex-start;
    flex-direction: column;
  }
}
