:root {
  --amber-50: #fffbeb;
  --amber-100: #fef3c7;
  --amber-200: #fde68a;
  --amber-500: #f59e0b;
  --amber-600: #d97706;
  --amber-700: #b45309;
  --orange-500: #f97316;
  --slate-900: #111827;
  --slate-700: #374151;
  --muted: #6b7280;
  --card: rgba(255, 255, 255, 0.86);
  --border: rgba(253, 230, 138, 0.62);
  --shadow: 0 20px 60px rgba(146, 64, 14, 0.15);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--slate-900);
  background:
    radial-gradient(circle at top left, rgba(251, 191, 36, 0.28), transparent 32rem),
    linear-gradient(135deg, #fff7ed 0%, #fffbeb 42%, #fef3c7 100%);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
}

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

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

.container {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

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

.header-inner {
  min-height: 72px;
  display: flex;
  align-items: center;
  gap: 22px;
}

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  color: var(--slate-900);
  white-space: nowrap;
}

.brand-mark {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  color: #fff;
  background: linear-gradient(135deg, #fbbf24, #eab308 48%, #fb923c);
  box-shadow: 0 16px 30px rgba(217, 119, 6, 0.28);
}

.brand-name {
  font-size: 1.25rem;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 18px;
  flex: 1;
  overflow: hidden;
}

.nav-link {
  font-weight: 650;
  color: #4b5563;
  padding: 8px 0;
  transition: color 0.2s ease;
}

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

.header-search {
  width: 260px;
  display: flex;
  align-items: center;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 4px;
  box-shadow: 0 8px 24px rgba(146, 64, 14, 0.08);
}

.header-search input,
.page-filter input,
.inline-filter input {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  padding: 10px 14px;
  font: inherit;
  color: var(--slate-900);
}

.header-search button {
  border: 0;
  color: #fff;
  background: linear-gradient(135deg, #f59e0b, #ea580c);
  padding: 9px 16px;
  border-radius: 999px;
  font-weight: 700;
  cursor: pointer;
}

.menu-toggle {
  display: none;
  border: 0;
  border-radius: 12px;
  background: var(--amber-100);
  color: var(--amber-700);
  font-size: 1.25rem;
  padding: 10px 12px;
  cursor: pointer;
}

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

.mobile-menu a {
  display: block;
  padding: 12px;
  border-radius: 12px;
  color: #4b5563;
  font-weight: 650;
}

.mobile-menu a:hover {
  background: var(--amber-50);
  color: var(--amber-600);
}

.search-layer {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  padding: 88px 18px 18px;
  background: rgba(17, 24, 39, 0.52);
  backdrop-filter: blur(8px);
}

.search-layer.is-open {
  display: block;
}

.search-panel {
  width: min(980px, 100%);
  max-height: calc(100vh - 120px);
  margin: 0 auto;
  overflow: auto;
  position: relative;
  border-radius: 24px;
  background: #fff;
  box-shadow: var(--shadow);
  padding: 28px;
}

.search-panel h2 {
  margin: 0 0 18px;
  font-size: 1.7rem;
}

.search-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 999px;
  color: var(--amber-700);
  background: var(--amber-100);
  font-size: 1.6rem;
  cursor: pointer;
}

.search-result-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 16px;
}

.hero-carousel {
  position: relative;
  min-height: 650px;
  overflow: hidden;
  background: #111827;
}

.hero-track,
.hero-slide {
  min-height: 650px;
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.65s ease, visibility 0.65s ease;
}

.hero-slide.is-active {
  position: relative;
  opacity: 1;
  visibility: visible;
}

.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.1) contrast(1.05);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 70% 35%, rgba(251, 191, 36, 0.32), transparent 22rem),
    linear-gradient(90deg, rgba(17, 24, 39, 0.94) 0%, rgba(17, 24, 39, 0.74) 46%, rgba(17, 24, 39, 0.28) 100%),
    linear-gradient(0deg, rgba(17, 24, 39, 0.85) 0%, rgba(17, 24, 39, 0.08) 55%);
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 56px;
  align-items: center;
  min-height: 650px;
  padding: 86px 0 72px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--amber-600);
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.hero-text .eyebrow {
  color: #fbbf24;
}

.hero-text h1 {
  margin: 18px 0 18px;
  max-width: 760px;
  color: #fff;
  font-size: clamp(2.6rem, 7vw, 5.9rem);
  line-height: 1.02;
  letter-spacing: -0.06em;
}

.hero-lead {
  max-width: 720px;
  color: rgba(255, 255, 255, 0.84);
  font-size: clamp(1.1rem, 2vw, 1.45rem);
  line-height: 1.75;
}

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

.hero-tags span,
.detail-tags span,
.tag-row span {
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(253, 230, 138, 0.7);
  border-radius: 999px;
  color: #92400e;
  background: rgba(255, 251, 235, 0.9);
  padding: 6px 10px;
  font-size: 0.84rem;
  font-weight: 700;
}

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

.btn-primary,
.btn-secondary,
.btn-ghost,
.watch-button,
.rank-more,
.section-more {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border-radius: 999px;
  padding: 0 22px;
  font-weight: 800;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn-primary,
.watch-button {
  color: #fff;
  background: linear-gradient(135deg, #fbbf24, #eab308 45%, #fb923c);
  box-shadow: 0 18px 34px rgba(217, 119, 6, 0.32);
}

.btn-secondary {
  color: #92400e;
  background: #fff;
}

.btn-ghost {
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.32);
  background: rgba(255, 255, 255, 0.12);
}

.btn-primary:hover,
.btn-secondary:hover,
.btn-ghost:hover,
.watch-button:hover,
.rank-more:hover,
.section-more:hover {
  transform: translateY(-2px);
}

.hero-poster {
  position: relative;
  display: block;
  border: 1px solid rgba(255, 255, 255, 0.26);
  border-radius: 32px;
  overflow: hidden;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.46);
  transform: rotate(2deg);
}

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

.hero-poster span {
  position: absolute;
  inset: 50% auto auto 50%;
  width: 76px;
  height: 76px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: #fff;
  background: rgba(245, 158, 11, 0.92);
  transform: translate(-50%, -50%);
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.25);
  font-size: 1.6rem;
}

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

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

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

.section {
  padding: 64px 0;
}

.page-main {
  padding: 38px 0 72px;
}

.section-heading,
.rank-card-head,
.detail-title-row {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 28px;
}

.section-heading h2,
.rank-card-head h2,
.page-hero h1,
.detail-copy h1 {
  margin: 8px 0 0;
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1.08;
  letter-spacing: -0.04em;
}

.section-more,
.rank-more {
  color: var(--amber-700);
  background: #fff;
  border: 1px solid var(--border);
  box-shadow: 0 10px 28px rgba(146, 64, 14, 0.1);
}

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

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

.one-column {
  grid-template-columns: 1fr;
}

.movie-card {
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 24px;
  background: var(--card);
  box-shadow: 0 14px 34px rgba(146, 64, 14, 0.11);
  backdrop-filter: blur(8px);
  transition: transform 0.24s ease, box-shadow 0.24s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 60px rgba(146, 64, 14, 0.2);
}

.poster-link {
  position: relative;
  display: block;
  overflow: hidden;
  background: #fef3c7;
}

.poster-link img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.movie-card-large .poster-link img {
  aspect-ratio: 16 / 9;
}

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

.poster-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(17, 24, 39, 0.64), transparent 55%);
  opacity: 0.82;
}

.play-chip {
  position: absolute;
  left: 14px;
  bottom: 14px;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  color: #fff;
  background: rgba(217, 119, 6, 0.92);
  padding: 8px 12px;
  font-size: 0.86rem;
  font-weight: 800;
}

.card-content {
  padding: 18px;
}

.card-content h2 {
  margin: 8px 0;
  font-size: 1.22rem;
  line-height: 1.28;
}

.card-content h2 a:hover {
  color: var(--amber-600);
}

.card-content p {
  min-height: 52px;
  margin: 0 0 14px;
  color: #4b5563;
  line-height: 1.7;
}

.card-meta {
  color: var(--amber-700);
  font-size: 0.88rem;
  font-weight: 800;
}

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

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

.category-tile,
.category-overview-card,
.honey-panel,
.honey-card-solid,
.side-card,
.rank-card {
  border: 1px solid var(--border);
  border-radius: 26px;
  background: var(--card);
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
}

.category-tile {
  padding: 20px;
}

.category-tile > a {
  display: block;
  margin-bottom: 12px;
}

.category-tile strong,
.category-overview-main span {
  display: block;
  margin-bottom: 6px;
  color: var(--slate-900);
  font-size: 1.18rem;
  font-weight: 850;
}

.category-tile span,
.category-overview-main strong {
  display: block;
  color: #4b5563;
  line-height: 1.7;
  font-weight: 500;
}

.category-tile div {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.category-tile div a,
.side-links a {
  border-radius: 999px;
  color: var(--amber-700);
  background: var(--amber-50);
  padding: 7px 11px;
  font-size: 0.88rem;
  font-weight: 700;
}

.rank-card {
  padding: 24px;
  position: sticky;
  top: 94px;
}

.rank-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 14px;
}

.rank-item a {
  display: grid;
  grid-template-columns: 40px 90px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 10px;
  border-radius: 18px;
  background: rgba(255, 251, 235, 0.68);
  transition: background 0.2s ease, transform 0.2s ease;
}

.rank-item a:hover {
  background: #fff;
  transform: translateX(4px);
}

.rank-number {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  color: #fff;
  background: linear-gradient(135deg, #f59e0b, #ea580c);
  font-weight: 900;
}

.rank-item img {
  width: 90px;
  height: 58px;
  border-radius: 12px;
  object-fit: cover;
}

.rank-copy {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.rank-copy strong,
.rank-copy em,
.rank-copy small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rank-copy strong {
  font-size: 1rem;
}

.rank-copy em {
  color: #4b5563;
  font-size: 0.86rem;
  font-style: normal;
}

.rank-copy small {
  color: var(--amber-700);
  font-size: 0.78rem;
  font-weight: 700;
}

.rank-more {
  width: 100%;
  margin-top: 18px;
}

.page-hero {
  padding: 34px;
  margin-bottom: 34px;
}

.page-hero p {
  max-width: 780px;
  color: #4b5563;
  font-size: 1.08rem;
  line-height: 1.8;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  align-items: center;
  margin-bottom: 18px;
  color: #6b7280;
  font-weight: 700;
}

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

.page-filter,
.inline-filter {
  width: min(420px, 100%);
  border: 1px solid var(--border);
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 10px 26px rgba(146, 64, 14, 0.1);
}

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

.category-overview-card {
  padding: 22px;
}

.category-overview-main {
  display: block;
  margin-bottom: 18px;
}

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

.mini-card {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 8px;
  border-radius: 16px;
  background: rgba(255, 251, 235, 0.72);
  transition: background 0.2s ease, transform 0.2s ease;
}

.mini-card:hover {
  background: #fff;
  transform: translateX(3px);
}

.mini-card img {
  width: 96px;
  height: 62px;
  border-radius: 12px;
  object-fit: cover;
}

.mini-card span {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.mini-card strong,
.mini-card em {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mini-card strong {
  font-size: 0.98rem;
}

.mini-card em {
  color: #6b7280;
  font-size: 0.84rem;
  font-style: normal;
}

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

.rank-list-large .rank-item a {
  grid-template-columns: 54px 132px minmax(0, 1fr);
}

.rank-list-large .rank-number {
  width: 44px;
  height: 44px;
}

.rank-list-large .rank-item img {
  width: 132px;
  height: 82px;
}

.rank-page-layout aside {
  position: sticky;
  top: 94px;
}

.rank-page-layout aside h2 {
  margin: 0 0 18px;
}

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

.detail-content {
  display: grid;
  gap: 24px;
}

.player-card,
.detail-copy,
.side-card {
  overflow: hidden;
}

.player-frame {
  position: relative;
  border-radius: 28px;
  overflow: hidden;
  background: #020617;
  box-shadow: 0 28px 70px rgba(17, 24, 39, 0.3);
}

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

.player-cover {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  display: flex;
  flex-direction: column;
  gap: 18px;
  align-items: center;
  justify-content: center;
  color: #fff;
  background-size: cover;
  background-position: center;
  cursor: pointer;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

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

.player-cover-icon {
  width: 86px;
  height: 86px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: linear-gradient(135deg, #f59e0b, #ea580c);
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.28);
  font-size: 2rem;
}

.player-cover strong {
  max-width: 80%;
  font-size: clamp(1.6rem, 4vw, 3.2rem);
  line-height: 1.15;
  text-align: center;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.42);
}

.detail-copy,
.side-card {
  padding: 28px;
}

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 18px 0;
}

.detail-meta span {
  border-radius: 999px;
  background: var(--amber-50);
  color: var(--amber-700);
  padding: 8px 12px;
  font-weight: 800;
}

.one-line {
  color: #374151;
  font-size: 1.15rem;
  line-height: 1.82;
}

.detail-copy h2,
.side-card h2 {
  margin: 28px 0 12px;
  font-size: 1.45rem;
}

.detail-copy p {
  color: #374151;
  line-height: 1.95;
  font-size: 1.03rem;
}

.detail-sidebar {
  display: grid;
  gap: 20px;
  position: sticky;
  top: 94px;
}

.side-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.site-footer {
  margin-top: 36px;
  color: #fff;
  background: linear-gradient(135deg, #92400e, #b45309 52%, #78350f);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px;
  padding: 48px 0;
}

.footer-brand {
  color: #fff;
}

.site-footer p {
  max-width: 560px;
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.8;
}

.site-footer h2 {
  margin: 0 0 16px;
}

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

.footer-links a {
  border-radius: 999px;
  color: #fff7ed;
  background: rgba(255, 255, 255, 0.13);
  padding: 8px 12px;
  font-weight: 700;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  padding: 18px;
  text-align: center;
  color: rgba(255, 255, 255, 0.72);
}

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

  .header-search {
    margin-left: auto;
  }

  .menu-toggle {
    display: inline-flex;
  }

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

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

  .hero-poster {
    display: none;
  }

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

  .rank-card,
  .rank-page-layout aside,
  .detail-sidebar {
    position: static;
  }
}

@media (max-width: 900px) {
  .movie-grid,
  .featured-grid,
  .catalog-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

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

@media (max-width: 640px) {
  .header-inner {
    min-height: 64px;
  }

  .brand-name {
    font-size: 1.05rem;
  }

  .header-search {
    display: none;
  }

  .hero-carousel,
  .hero-track,
  .hero-slide,
  .hero-content {
    min-height: 560px;
  }

  .hero-text h1 {
    font-size: 2.65rem;
  }

  .movie-grid,
  .featured-grid,
  .catalog-grid {
    grid-template-columns: 1fr;
  }

  .rank-item a,
  .rank-list-large .rank-item a {
    grid-template-columns: 36px 86px minmax(0, 1fr);
  }

  .rank-list-large .rank-item img,
  .rank-item img {
    width: 86px;
    height: 56px;
  }

  .page-hero,
  .detail-copy,
  .side-card,
  .search-panel {
    padding: 22px;
  }

  .detail-meta span,
  .detail-tags span,
  .hero-tags span,
  .tag-row span {
    font-size: 0.78rem;
  }
}
