/*
  Static movie website styles.
  Visual direction follows the uploaded source bundle: warm yellow gradients,
  rounded cards, sticky navigation, responsive grids, hover elevation and HLS player panels.
*/

:root {
  --color-yellow: #facc15;
  --color-amber: #f59e0b;
  --color-yellow-dark: #ca8a04;
  --color-ink: #111827;
  --color-text: #374151;
  --color-muted: #6b7280;
  --color-soft: #f9fafb;
  --color-line: #e5e7eb;
  --color-white: #ffffff;
  --color-black: #000000;
  --shadow-sm: 0 6px 18px rgba(17, 24, 39, 0.08);
  --shadow-md: 0 14px 34px rgba(17, 24, 39, 0.14);
  --shadow-lg: 0 26px 70px rgba(17, 24, 39, 0.22);
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-pill: 999px;
  --max-width: 1200px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  background: #f4f5f7;
  color: var(--color-text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", Arial, sans-serif;
  line-height: 1.65;
}

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

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

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: linear-gradient(90deg, var(--color-yellow), #fde047, var(--color-amber));
  box-shadow: 0 10px 30px rgba(202, 138, 4, 0.28);
}

.header-inner {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

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

.brand-mark {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: var(--radius-pill);
  background: var(--color-white);
  color: var(--color-amber);
  box-shadow: var(--shadow-sm);
  font-weight: 900;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.brand:hover .brand-mark {
  transform: scale(1.08) rotate(3deg);
  box-shadow: var(--shadow-md);
}

.brand-name {
  display: block;
  font-size: 22px;
  line-height: 1.15;
  font-weight: 900;
  color: var(--color-ink);
  letter-spacing: -0.03em;
}

.brand-subtitle {
  display: block;
  margin-top: 2px;
  font-size: 12px;
  color: rgba(17, 24, 39, 0.68);
  white-space: nowrap;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 6px;
}

.site-nav a {
  padding: 10px 14px;
  border-radius: var(--radius-pill);
  color: rgba(17, 24, 39, 0.78);
  font-weight: 700;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.site-nav a:hover,
.site-nav a.is-active {
  background: rgba(255, 255, 255, 0.78);
  color: var(--color-ink);
  transform: translateY(-1px);
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.76);
  color: var(--color-ink);
}

.menu-toggle span,
.menu-toggle::before,
.menu-toggle::after {
  content: "";
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  border-radius: 4px;
  background: currentColor;
}

.hero {
  position: relative;
  overflow: hidden;
  padding: 76px 0 88px;
  background:
    radial-gradient(circle at 18% 18%, rgba(255, 255, 255, 0.5), transparent 17%),
    radial-gradient(circle at 85% 18%, rgba(255, 255, 255, 0.24), transparent 16%),
    linear-gradient(135deg, var(--color-yellow), #fde047 45%, var(--color-amber));
}

.hero::before,
.hero::after {
  content: "";
  position: absolute;
  border: 4px solid rgba(255, 255, 255, 0.35);
  border-radius: 50%;
  animation: pulse-ring 3.4s ease-in-out infinite;
}

.hero::before {
  width: 120px;
  height: 120px;
  top: 34px;
  left: 42px;
}

.hero::after {
  width: 190px;
  height: 190px;
  right: 7%;
  bottom: 26px;
  animation-delay: 1.2s;
}

@keyframes pulse-ring {
  0%, 100% {
    transform: scale(1);
    opacity: 0.65;
  }

  50% {
    transform: scale(1.08);
    opacity: 0.3;
  }
}

.hero-layout {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(320px, 1.05fr);
  gap: 42px;
  align-items: center;
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.62);
  color: var(--color-ink);
  font-weight: 800;
  box-shadow: var(--shadow-sm);
}

.hero-title {
  margin: 22px 0 18px;
  color: var(--color-ink);
  font-size: clamp(38px, 7vw, 70px);
  line-height: 1.02;
  font-weight: 950;
  letter-spacing: -0.06em;
}

.hero-title span {
  display: block;
  color: var(--color-white);
  text-shadow: 0 6px 20px rgba(17, 24, 39, 0.22);
}

.hero-copy {
  max-width: 680px;
  color: rgba(17, 24, 39, 0.76);
  font-size: 18px;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 0 20px;
  border: 0;
  border-radius: var(--radius-pill);
  font-weight: 850;
  transition: transform 0.22s ease, box-shadow 0.22s ease, background 0.22s ease;
}

.button:hover {
  transform: translateY(-2px) scale(1.01);
}

.button-primary {
  background: var(--color-ink);
  color: var(--color-white);
  box-shadow: var(--shadow-md);
}

.button-primary:hover {
  background: #1f2937;
  box-shadow: var(--shadow-lg);
}

.button-secondary {
  background: rgba(255, 255, 255, 0.76);
  color: var(--color-ink);
  box-shadow: var(--shadow-sm);
}

.button-ghost {
  background: transparent;
  color: var(--color-ink);
  border: 2px solid rgba(17, 24, 39, 0.16);
}

.hero-panel {
  position: relative;
  min-height: 420px;
  border-radius: 34px;
  overflow: hidden;
  background: #111827;
  box-shadow: var(--shadow-lg);
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: scale(1.03);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

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

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

.hero-slide-content {
  position: absolute;
  inset: auto 0 0;
  padding: 96px 28px 28px;
  color: var(--color-white);
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.86));
}

.hero-slide-content h2 {
  margin: 0 0 8px;
  font-size: 28px;
  line-height: 1.15;
}

.hero-slide-content p {
  margin: 0 0 18px;
  color: rgba(255, 255, 255, 0.84);
}

.hero-dots {
  position: absolute;
  left: 28px;
  top: 24px;
  z-index: 3;
  display: flex;
  gap: 8px;
}

.hero-dot {
  width: 9px;
  height: 9px;
  border: 0;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.45);
  padding: 0;
}

.hero-dot.is-active {
  width: 28px;
  background: var(--color-yellow);
}

.section {
  padding: 58px 0;
}

.section-muted {
  background: var(--color-soft);
}

.section-dark {
  background: var(--color-ink);
  color: var(--color-white);
}

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

.section-kicker {
  margin: 0 0 7px;
  color: var(--color-yellow-dark);
  font-weight: 900;
  letter-spacing: 0.08em;
}

.section-title {
  margin: 0;
  color: var(--color-ink);
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.15;
  font-weight: 950;
  letter-spacing: -0.04em;
}

.section-dark .section-title,
.section-dark .section-kicker {
  color: var(--color-white);
}

.section-description {
  margin: 8px 0 0;
  max-width: 720px;
  color: var(--color-muted);
}

.section-dark .section-description {
  color: rgba(255, 255, 255, 0.74);
}

.grid {
  display: grid;
  gap: 20px;
}

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

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

.movie-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 100%;
  overflow: hidden;
  border-radius: var(--radius-md);
  background: var(--color-white);
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

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

.card-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

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

.card-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(transparent 35%, rgba(0, 0, 0, 0.7));
  opacity: 0.86;
}

.play-badge {
  position: absolute;
  right: 14px;
  bottom: 14px;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: var(--radius-pill);
  background: var(--color-yellow);
  color: var(--color-ink);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.24);
  transform: scale(0.9);
  transition: transform 0.2s ease;
}

.movie-card:hover .play-badge {
  transform: scale(1.04);
}

.card-index,
.rank-badge {
  position: absolute;
  left: 12px;
  top: 12px;
  z-index: 2;
  padding: 5px 9px;
  border-radius: var(--radius-pill);
  background: rgba(17, 24, 39, 0.8);
  color: var(--color-white);
  font-size: 12px;
  font-weight: 850;
  backdrop-filter: blur(8px);
}

.rank-badge {
  background: linear-gradient(135deg, var(--color-yellow), var(--color-amber));
  color: var(--color-ink);
}

.card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 10px;
  padding: 16px;
}

.card-title {
  margin: 0;
  color: var(--color-ink);
  font-size: 18px;
  line-height: 1.3;
  font-weight: 850;
}

.card-summary {
  margin: 0;
  color: var(--color-muted);
  font-size: 14px;
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: auto;
}

.meta-pill,
.tag-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 5px 9px;
  border-radius: var(--radius-pill);
  background: #fef9c3;
  color: #854d0e;
  font-size: 12px;
  font-weight: 700;
}

.tag-pill {
  background: #fff7ed;
  color: #9a3412;
}

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

.stat-card,
.category-card,
.info-card {
  border-radius: var(--radius-lg);
  background: var(--color-white);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.stat-card:hover,
.category-card:hover,
.info-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.stat-value {
  display: block;
  color: var(--color-ink);
  font-size: 34px;
  line-height: 1.1;
  font-weight: 950;
}

.stat-label {
  display: block;
  margin-top: 6px;
  color: var(--color-muted);
}

.category-card {
  min-height: 178px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  border: 1px solid rgba(250, 204, 21, 0.2);
}

.category-card strong {
  color: var(--color-ink);
  font-size: 22px;
}

.category-card p {
  margin: 0;
  color: var(--color-muted);
  flex: 1;
}

.category-count {
  color: var(--color-yellow-dark);
  font-weight: 900;
}

.filter-panel {
  position: relative;
  z-index: 2;
  margin: -28px auto 34px;
  border: 1px solid rgba(229, 231, 235, 0.8);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.92);
  padding: 18px;
  box-shadow: var(--shadow-md);
  backdrop-filter: blur(12px);
}

.filter-grid {
  display: grid;
  grid-template-columns: 1.5fr repeat(4, minmax(130px, 1fr));
  gap: 12px;
}

.filter-control {
  width: 100%;
  min-height: 46px;
  border: 2px solid var(--color-line);
  border-radius: 14px;
  background: var(--color-white);
  color: var(--color-ink);
  padding: 0 14px;
  outline: 0;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.filter-control:focus {
  border-color: var(--color-yellow);
  box-shadow: 0 0 0 4px rgba(250, 204, 21, 0.18);
}

.result-line {
  margin: 14px 2px 0;
  color: var(--color-muted);
  font-weight: 700;
}

.page-hero {
  padding: 58px 0 86px;
  background: linear-gradient(135deg, var(--color-yellow), #fde047, var(--color-amber));
}

.page-title {
  margin: 0;
  color: var(--color-ink);
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.1;
  font-weight: 950;
  letter-spacing: -0.05em;
}

.page-copy {
  max-width: 780px;
  margin: 14px 0 0;
  color: rgba(17, 24, 39, 0.76);
  font-size: 18px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
  color: rgba(17, 24, 39, 0.72);
  font-size: 14px;
  font-weight: 700;
}

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

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

.ranking-item {
  display: grid;
  grid-template-columns: 72px 144px minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  border-radius: var(--radius-lg);
  background: var(--color-white);
  padding: 14px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.ranking-item:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.ranking-number {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: var(--radius-pill);
  background: var(--color-ink);
  color: var(--color-yellow);
  font-size: 20px;
  font-weight: 950;
}

.ranking-cover {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-radius: 14px;
  background: #111827;
}

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

.ranking-title {
  margin: 0 0 6px;
  color: var(--color-ink);
  font-size: 20px;
  font-weight: 900;
}

.ranking-summary {
  margin: 0;
  color: var(--color-muted);
}

.detail-shell {
  padding: 38px 0 64px;
}

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

.detail-main,
.detail-side {
  display: grid;
  gap: 22px;
}

.detail-card {
  border-radius: var(--radius-lg);
  background: var(--color-white);
  padding: 24px;
  box-shadow: var(--shadow-sm);
}

.detail-title {
  margin: 0 0 12px;
  color: var(--color-ink);
  font-size: clamp(30px, 5vw, 50px);
  line-height: 1.12;
  font-weight: 950;
  letter-spacing: -0.04em;
}

.detail-one-line {
  margin: 0 0 18px;
  color: var(--color-muted);
  font-size: 18px;
}

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.player-wrap {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: #000000;
  box-shadow: var(--shadow-lg);
}

.player-video {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000000;
}

.player-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  border: 0;
  background:
    radial-gradient(circle at center, rgba(250, 204, 21, 0.28), rgba(0, 0, 0, 0.74) 50%),
    rgba(0, 0, 0, 0.42);
  color: var(--color-white);
  transition: opacity 0.2s ease;
}

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

.player-play {
  display: grid;
  place-items: center;
  width: 86px;
  height: 86px;
  margin: 0 auto 14px;
  border-radius: var(--radius-pill);
  background: var(--color-yellow);
  color: var(--color-ink);
  box-shadow: 0 16px 44px rgba(250, 204, 21, 0.28);
  font-size: 34px;
  font-weight: 900;
}

.player-overlay strong {
  display: block;
  font-size: 20px;
}

.player-overlay small {
  display: block;
  margin-top: 6px;
  color: rgba(255, 255, 255, 0.76);
}

.player-status {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 14px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 13px;
  text-align: center;
  pointer-events: none;
}

.article-content h2 {
  margin: 0 0 12px;
  color: var(--color-ink);
  font-size: 26px;
  font-weight: 950;
}

.article-content p {
  margin: 0 0 16px;
  color: #374151;
  font-size: 17px;
}

.side-poster {
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: #111827;
  box-shadow: var(--shadow-sm);
}

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

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

.related-item {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 10px;
  border-radius: 14px;
  background: #f9fafb;
  transition: background 0.2s ease, transform 0.2s ease;
}

.related-item:hover {
  background: #fef9c3;
  transform: translateX(2px);
}

.related-item img {
  width: 96px;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: 10px;
  background: #111827;
}

.related-item strong {
  display: block;
  color: var(--color-ink);
  line-height: 1.28;
}

.related-item span {
  display: block;
  margin-top: 3px;
  color: var(--color-muted);
  font-size: 13px;
}

.site-footer {
  background: #111827;
  color: rgba(255, 255, 255, 0.74);
  padding: 46px 0 28px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, minmax(0, 1fr));
  gap: 28px;
}

.footer-title {
  color: var(--color-white);
  font-size: 20px;
  font-weight: 900;
}

.footer-heading {
  margin: 0 0 12px;
  color: var(--color-yellow);
  font-size: 17px;
}

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

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

.footer-bottom {
  margin-top: 30px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.46);
  font-size: 13px;
}

.empty-state {
  display: none;
  padding: 44px 20px;
  border-radius: var(--radius-lg);
  background: var(--color-white);
  color: var(--color-muted);
  text-align: center;
  box-shadow: var(--shadow-sm);
}

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

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

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

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

  .detail-side {
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  }
}

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

  .menu-toggle {
    display: block;
  }

  .site-nav {
    position: absolute;
    left: 16px;
    right: 16px;
    top: calc(100% + 10px);
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
    padding: 10px;
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.96);
    box-shadow: var(--shadow-md);
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav a {
    display: block;
    border-radius: 12px;
  }

  .brand-subtitle {
    display: none;
  }

  .hero {
    padding: 44px 0 64px;
  }

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

  .hero-panel {
    min-height: 360px;
  }

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

  .stats-row,
  .grid-cards,
  .grid-categories,
  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ranking-item {
    grid-template-columns: 50px 110px minmax(0, 1fr);
  }

  .ranking-action {
    display: none;
  }

  .detail-side {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .container {
    width: min(100% - 22px, var(--max-width));
  }

  .hero-title {
    font-size: 38px;
  }

  .hero-panel {
    min-height: 310px;
    border-radius: 24px;
  }

  .hero-slide-content {
    padding: 76px 18px 20px;
  }

  .stats-row,
  .grid-cards,
  .grid-categories,
  .filter-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

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

  .ranking-number {
    width: 46px;
    height: 46px;
  }

  .ranking-cover {
    width: 100%;
  }

  .section {
    padding: 42px 0;
  }

  .detail-card {
    padding: 18px;
  }
}
