* {
  box-sizing: border-box;
}

:root {
  --amber: #f59e0b;
  --amber-dark: #d97706;
  --orange: #f97316;
  --rose: #fff1f2;
  --slate: #0f172a;
  --slate-soft: #1e293b;
  --gray: #4b5563;
  --muted: #6b7280;
  --line: rgba(15, 23, 42, 0.1);
  --shadow: 0 20px 45px rgba(15, 23, 42, 0.12);
  --radius: 22px;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: #111827;
  background: linear-gradient(135deg, #fffbeb 0%, #fff7ed 48%, #fff1f2 100%);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  line-height: 1.6;
}

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

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

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: linear-gradient(90deg, rgba(217, 119, 6, 0.96), rgba(249, 115, 22, 0.96));
  color: #fff;
  box-shadow: 0 14px 30px rgba(146, 64, 14, 0.24);
  backdrop-filter: blur(16px);
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--amber);
  background: #fff;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.16);
  animation: softPulse 2.4s ease-in-out infinite;
}

.brand-text {
  font-size: clamp(18px, 2vw, 25px);
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 26px;
}

.nav-link,
.mobile-link {
  font-weight: 650;
  color: rgba(255, 255, 255, 0.9);
  transition: color 0.2s ease, transform 0.2s ease;
}

.nav-link:hover,
.nav-link.is-active,
.mobile-link:hover,
.mobile-link.is-active {
  color: #fef3c7;
}

.nav-link:hover {
  transform: translateY(-1px);
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
}

.menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  margin: 5px auto;
  border-radius: 2px;
  background: currentColor;
}

.mobile-nav {
  display: none;
  padding: 0 16px 16px;
  background: linear-gradient(180deg, rgba(217, 119, 6, 0.98), rgba(234, 88, 12, 0.98));
}

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

.mobile-link {
  padding: 9px 4px;
}

.hero {
  position: relative;
  min-height: 68vh;
  overflow: hidden;
  background: var(--slate);
}

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

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

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

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.78) 0%, rgba(0, 0, 0, 0.46) 48%, rgba(0, 0, 0, 0.06) 100%);
}

.hero-pattern {
  position: absolute;
  inset: 0;
  z-index: 2;
  opacity: 0.28;
  background-image: radial-gradient(rgba(255, 255, 255, 0.18) 1px, transparent 1px);
  background-size: 30px 30px;
}

.hero-content {
  position: relative;
  z-index: 3;
  width: min(1240px, calc(100% - 32px));
  min-height: 68vh;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: 760px;
  margin-left: max(16px, calc((100% - 1240px) / 2));
  padding: 90px 0 80px;
  color: #fff;
}

.eyebrow,
.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
  color: #fcd34d;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.eyebrow span {
  padding: 5px 10px;
  border: 1px solid rgba(252, 211, 77, 0.38);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.24);
}

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

.hero p {
  max-width: 660px;
  margin: 0 0 28px;
  color: #e5e7eb;
  font-size: clamp(16px, 2vw, 22px);
}

.hero-actions,
.detail-meta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
}

.primary-button,
.ghost-button,
.text-link {
  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-button {
  padding: 13px 24px;
  color: #fff;
  background: linear-gradient(90deg, var(--amber), var(--orange));
  box-shadow: 0 14px 24px rgba(249, 115, 22, 0.28);
}

.primary-button:hover,
.ghost-button:hover,
.movie-card:hover,
.category-card:hover,
.category-overview-card:hover {
  transform: translateY(-4px);
}

.ghost-button {
  padding: 12px 22px;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.48);
  background: rgba(255, 255, 255, 0.12);
}

.hero-score {
  color: #fef3c7;
  font-weight: 700;
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.hero-tags span,
.tag-pill,
.detail-meta-row span {
  border-radius: 999px;
  padding: 6px 12px;
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
}

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

.hero-dot {
  width: 12px;
  height: 12px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.6);
  transition: width 0.25s ease, background 0.25s ease;
}

.hero-dot.is-active {
  width: 36px;
  background: var(--amber);
}

.quick-search {
  margin-top: -42px;
  position: relative;
  z-index: 8;
}

.quick-search-card,
.content-card,
.side-card,
.filter-panel,
.category-overview-card,
.ranking-table {
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.82);
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
}

.quick-search-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 28px;
}

.quick-search-card h2,
.section-heading h2,
.panel-title h2,
.content-card h2,
.side-card h2,
.category-overview-card h2,
.page-hero h1 {
  margin: 0;
  color: #111827;
  line-height: 1.2;
}

.quick-search-card p,
.page-hero p,
.content-card p,
.category-overview-card p {
  margin: 8px 0 0;
  color: var(--gray);
}

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

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

.section-heading h2,
.panel-title h2 {
  font-size: clamp(24px, 4vw, 34px);
}

.section-heading > a,
.panel-title > a,
.text-link {
  color: var(--amber-dark);
  font-weight: 800;
}

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

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

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

.movie-card {
  display: flex;
  min-width: 0;
  flex-direction: column;
  overflow: hidden;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.movie-card:hover {
  box-shadow: 0 24px 50px rgba(15, 23, 42, 0.18);
}

.poster-wrap {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: #111827;
}

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

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

.card-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  padding: 4px 8px;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(90deg, var(--amber), var(--orange));
  font-size: 12px;
  font-weight: 800;
}

.poster-mask {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.02), rgba(0, 0, 0, 0.72));
  opacity: 0;
  transition: opacity 0.25s ease;
}

.movie-card:hover .poster-mask {
  opacity: 1;
}

.play-dot,
.player-button {
  width: 58px;
  height: 58px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: linear-gradient(90deg, var(--amber), var(--orange));
  box-shadow: 0 14px 32px rgba(249, 115, 22, 0.36);
}

.card-body {
  display: grid;
  gap: 8px;
  padding: 16px;
}

.card-body strong {
  overflow: hidden;
  color: #111827;
  font-size: 16px;
  line-height: 1.35;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.card-desc {
  overflow: hidden;
  min-height: 44px;
  color: var(--gray);
  font-size: 14px;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--muted);
  font-size: 12px;
}

.card-meta span {
  padding: 3px 8px;
  border-radius: 999px;
  background: #f3f4f6;
}

.split-block {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 28px;
}

.featured-panel {
  padding: 28px;
  border-radius: 26px;
  color: #fff;
  background: linear-gradient(115deg, #2563eb, #06b6d4, #14b8a6);
  box-shadow: var(--shadow);
}

.light-heading h2,
.light-heading a,
.light-heading .section-kicker {
  color: #fff;
}

.ranking-panel {
  padding: 24px;
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: var(--shadow);
}

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

.rank-item {
  display: grid;
  grid-template-columns: auto 74px 1fr;
  gap: 12px;
  align-items: center;
}

.rank-number,
.ranking-index {
  color: var(--amber-dark);
  font-weight: 900;
  font-size: 20px;
}

.rank-item img {
  width: 74px;
  aspect-ratio: 16 / 10;
  border-radius: 12px;
  object-fit: cover;
}

.rank-item strong,
.rank-item em {
  display: block;
}

.rank-item strong {
  color: #111827;
  line-height: 1.35;
}

.rank-item em {
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
  font-style: normal;
}

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

.category-card {
  position: relative;
  overflow: hidden;
  min-height: 210px;
  padding: 22px;
  border-radius: 22px;
  color: #fff;
  background: linear-gradient(145deg, var(--slate), var(--slate-soft));
  box-shadow: var(--shadow);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.category-card strong,
.category-card em,
.category-card a {
  position: relative;
  z-index: 2;
  display: block;
}

.category-card strong {
  margin-bottom: 12px;
  font-size: 22px;
}

.category-card em {
  color: #d1d5db;
  font-style: normal;
  font-size: 14px;
}

.category-samples {
  display: grid;
  gap: 6px;
  margin-top: 16px;
  color: #fcd34d;
  font-size: 13px;
}

.category-glow {
  position: absolute;
  right: -40px;
  top: -40px;
  width: 120px;
  height: 120px;
  border-radius: 999px;
  background: rgba(245, 158, 11, 0.32);
  filter: blur(8px);
}

.page-hero {
  padding: 86px 0 54px;
}

.plain-hero,
.category-hero {
  background: linear-gradient(135deg, #fff7ed, #fffbeb, #fff1f2);
  border-bottom: 1px solid rgba(245, 158, 11, 0.16);
}

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

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  color: #fef3c7;
  font-size: 14px;
  font-weight: 750;
}

.plain-hero .breadcrumb,
.category-hero .breadcrumb {
  color: var(--amber-dark);
}

.category-overview-grid {
  display: grid;
  gap: 24px;
}

.category-overview-card {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 24px;
  padding: 22px;
  transition: transform 0.25s ease;
}

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

.category-poster-stack img {
  width: 100%;
  aspect-ratio: 16 / 10;
  border-radius: 14px;
  object-fit: cover;
}

.category-title-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 16px 0;
}

.category-title-links a {
  padding: 6px 10px;
  border-radius: 999px;
  background: #fff7ed;
  color: var(--amber-dark);
  font-size: 13px;
  font-weight: 700;
}

.two-column-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 26px;
}

.sticky-panel {
  position: sticky;
  top: 96px;
  align-self: start;
}

.filter-panel {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 24px;
  padding: 20px;
}

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

.search-label {
  flex: 1;
}

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

.filter-panel input:focus,
.filter-panel select:focus {
  border-color: rgba(245, 158, 11, 0.8);
  box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.12);
}

.filter-controls {
  display: flex;
  gap: 12px;
}

.empty-state {
  display: none;
  margin-top: 28px;
  padding: 28px;
  border-radius: 18px;
  color: var(--muted);
  text-align: center;
  background: rgba(255, 255, 255, 0.72);
}

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

.ranking-table {
  overflow: hidden;
}

.ranking-row {
  display: grid;
  grid-template-columns: 70px 120px minmax(0, 1fr) 120px 80px;
  gap: 18px;
  align-items: center;
  padding: 16px 18px;
  border-bottom: 1px solid var(--line);
  transition: background 0.2s ease;
}

.ranking-row:last-child {
  border-bottom: 0;
}

.ranking-row:hover {
  background: #fff7ed;
}

.ranking-row img {
  width: 120px;
  aspect-ratio: 16 / 9;
  border-radius: 14px;
  object-fit: cover;
}

.ranking-main strong,
.ranking-main em {
  display: block;
}

.ranking-main strong {
  font-size: 18px;
}

.ranking-main em,
.ranking-meta {
  color: var(--muted);
  font-style: normal;
  font-size: 14px;
}

.ranking-score {
  color: var(--amber-dark);
  font-size: 24px;
  font-weight: 900;
  text-align: right;
}

.detail-hero {
  position: relative;
  min-height: 460px;
  display: flex;
  align-items: end;
  overflow: hidden;
  background: var(--slate);
}

.detail-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(2px);
  transform: scale(1.04);
}

.detail-bg-mask {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.28), rgba(15, 23, 42, 0.96));
}

.detail-hero-content {
  position: relative;
  z-index: 2;
  padding: 120px 0 56px;
  color: #fff;
}

.detail-hero h1 {
  max-width: 900px;
  margin: 0 0 14px;
  font-size: clamp(34px, 6vw, 62px);
  line-height: 1.1;
}

.detail-hero p {
  max-width: 860px;
  margin: 0 0 20px;
  color: #e5e7eb;
  font-size: 18px;
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 28px;
  padding-top: 42px;
  padding-bottom: 70px;
}

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

.player-shell {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border-radius: 26px;
  background: #000;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.24);
}

.movie-video,
.player-cover {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.movie-video {
  z-index: 1;
  background: #000;
}

.player-cover {
  z-index: 2;
  border: 0;
  padding: 0;
  overflow: hidden;
  background: #000;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

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

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

.player-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.06), rgba(0, 0, 0, 0.72));
}

.player-button {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 84px;
  height: 84px;
  font-size: 28px;
  transform: translate(-50%, -50%);
}

.content-card {
  padding: 26px;
}

.content-card h2,
.side-card h2 {
  margin-bottom: 14px;
  font-size: 24px;
}

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

.detail-side {
  display: grid;
  gap: 20px;
  align-self: start;
  position: sticky;
  top: 96px;
}

.detail-poster {
  width: 100%;
  aspect-ratio: 16 / 10;
  border-radius: 24px;
  object-fit: cover;
  box-shadow: var(--shadow);
}

.side-card {
  padding: 22px;
}

.side-card dl {
  display: grid;
  gap: 12px;
  margin: 0;
}

.side-card dl div {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.side-card dt {
  color: var(--muted);
  font-weight: 800;
}

.side-card dd {
  margin: 0;
  color: #111827;
}

.side-card dd a {
  color: var(--amber-dark);
  font-weight: 800;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.tag-pill {
  background: #fff7ed;
  color: var(--amber-dark);
}

@keyframes softPulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.08);
  }
}

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

  .compact-grid,
  .category-grid,
  .split-block,
  .two-column-layout,
  .detail-layout {
    grid-template-columns: 1fr;
  }

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

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

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

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

  .hero,
  .hero-content {
    min-height: 72vh;
  }

  .hero-content {
    padding-top: 90px;
  }

  .quick-search-card,
  .filter-panel,
  .section-heading,
  .panel-title {
    align-items: stretch;
    flex-direction: column;
  }

  .movie-grid,
  .small-grid,
  .compact-grid,
  .category-grid,
  .category-movie-grid,
  .search-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }

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

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

  .filter-controls {
    flex-direction: column;
  }

  .ranking-row {
    grid-template-columns: 42px 82px minmax(0, 1fr);
    gap: 12px;
  }

  .ranking-row img {
    width: 82px;
  }

  .ranking-meta,
  .ranking-score {
    display: none;
  }

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

@media (max-width: 480px) {
  .container,
  .header-inner,
  .hero-content {
    width: min(100% - 22px, 1240px);
  }

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

  .category-poster-stack {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .rank-item {
    grid-template-columns: auto 68px 1fr;
  }
}
