:root {
  --yellow: #facc15;
  --yellow-deep: #f59e0b;
  --amber: #fbbf24;
  --ink: #111827;
  --muted: #6b7280;
  --soft: #f9fafb;
  --line: #e5e7eb;
  --white: #ffffff;
  --shadow: 0 20px 45px rgba(15, 23, 42, 0.12);
  --shadow-soft: 0 10px 28px rgba(15, 23, 42, 0.08);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: #f8fafc;
  color: var(--ink);
  line-height: 1.65;
}

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

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

button,
input,
select {
  font: inherit;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: linear-gradient(90deg, #facc15, #fde047, #f59e0b);
  box-shadow: 0 8px 28px rgba(146, 64, 14, 0.22);
}

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

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

.brand-mark {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  color: var(--yellow-deep);
  box-shadow: var(--shadow-soft);
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.brand-text strong {
  font-size: 22px;
}

.brand-text small {
  color: #4b5563;
  font-size: 12px;
}

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

.nav-link {
  font-weight: 700;
  color: #374151;
  padding: 8px 0;
  border-bottom: 2px solid transparent;
  transition: 0.25s ease;
}

.nav-link:hover,
.nav-link.is-active {
  color: #111827;
  border-bottom-color: #111827;
  transform: translateY(-1px);
}

.nav-toggle {
  display: none;
  border: 0;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.55);
  padding: 8px 12px;
  cursor: pointer;
}

.hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #facc15 0%, #fde047 42%, #f59e0b 100%);
  min-height: 640px;
  display: flex;
  align-items: center;
}

.hero-inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  gap: 44px;
  align-items: center;
  padding: 76px 0;
}

.hero-copy h1,
.page-hero h1 {
  margin: 10px 0 18px;
  font-size: clamp(42px, 6vw, 74px);
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.hero-copy p,
.page-hero p,
.section-desc {
  color: #374151;
  font-size: 18px;
  max-width: 660px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #92400e;
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.65);
  border-radius: 999px;
  padding: 6px 13px;
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

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

.hero-links a {
  color: #374151;
  font-weight: 700;
  border-bottom: 1px solid rgba(17, 24, 39, 0.25);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 13px 22px;
  font-weight: 800;
  transition: 0.25s ease;
  border: 0;
  cursor: pointer;
}

.btn-dark {
  background: #111827;
  color: #fff;
  box-shadow: 0 16px 35px rgba(17, 24, 39, 0.22);
}

.btn-dark:hover {
  transform: translateY(-2px) scale(1.02);
  background: #030712;
}

.btn-light {
  background: rgba(255, 255, 255, 0.78);
  color: #111827;
}

.hero-panel {
  position: relative;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.55);
  padding: 18px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}

.hero-slider {
  position: relative;
  min-height: 460px;
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-rows: 1fr auto;
  border-radius: 22px;
  overflow: hidden;
  background: #111827;
  opacity: 0;
  pointer-events: none;
  transform: scale(0.985);
  transition: opacity 0.45s ease, transform 0.45s ease;
}

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

.hero-image-wrap {
  min-height: 280px;
  position: relative;
}

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

.hero-image-wrap::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.04), rgba(0, 0, 0, 0.72));
}

.hero-slide-copy {
  position: absolute;
  left: 24px;
  right: 24px;
  bottom: 24px;
  color: #fff;
}

.hero-slide-copy .eyebrow {
  background: rgba(250, 204, 21, 0.92);
  color: #111827;
  border-color: transparent;
}

.hero-slide-copy h2 {
  margin: 12px 0 8px;
  font-size: clamp(26px, 4vw, 42px);
  line-height: 1.15;
}

.hero-slide-copy p {
  color: #e5e7eb;
  margin: 0 0 16px;
}

.hero-controls {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 14px;
  margin-top: 16px;
}

.hero-controls button {
  border: 0;
  border-radius: 999px;
  background: #111827;
  color: #fff;
  width: 38px;
  height: 38px;
  cursor: pointer;
}

.hero-dots {
  display: flex;
  gap: 8px;
}

.hero-dot {
  width: 10px !important;
  height: 10px !important;
  padding: 0;
  background: rgba(17, 24, 39, 0.25) !important;
}

.hero-dot.is-active {
  background: #111827 !important;
  width: 28px !important;
}

.hero-orb {
  position: absolute;
  border: 4px solid rgba(255, 255, 255, 0.35);
  border-radius: 50%;
  animation: pulse 3.8s infinite ease-in-out;
}

.orb-one {
  width: 110px;
  height: 110px;
  top: 44px;
  left: 6%;
}

.orb-two {
  width: 160px;
  height: 160px;
  right: 8%;
  top: 112px;
  animation-delay: 0.6s;
}

.orb-three {
  width: 88px;
  height: 88px;
  left: 38%;
  bottom: 54px;
  animation-delay: 1.1s;
}

@keyframes pulse {
  0%, 100% {
    transform: scale(1);
    opacity: 0.32;
  }
  50% {
    transform: scale(1.12);
    opacity: 0.68;
  }
}

.section,
.page-main {
  padding: 56px 0;
}

.soft-section {
  background: linear-gradient(135deg, #fffbeb, #fff7ed);
}

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

.section-heading h2,
.ranking-layout h2 {
  margin: 8px 0 0;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.12;
}

.section-link {
  color: #b45309;
  font-weight: 800;
}

.stats-section {
  background: #fff;
}

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

.stat-card,
.category-card,
.category-overview-card,
.detail-card,
.side-card,
.filter-panel {
  background: #fff;
  border-radius: 20px;
  box-shadow: var(--shadow-soft);
}

.stat-card {
  padding: 24px;
  text-align: center;
  transition: 0.25s ease;
}

.stat-card:hover,
.category-card:hover,
.movie-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
}

.stat-card strong {
  display: block;
  font-size: 22px;
  margin-bottom: 6px;
}

.stat-card span,
.category-card p,
.movie-card p,
.detail-meta,
.related-item em,
.footer-bottom,
.site-footer p {
  color: var(--muted);
}

.movie-grid {
  display: grid;
  gap: 22px;
}

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

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

.movie-card {
  position: relative;
  background: #fff;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  transition: 0.25s ease;
}

.card-link {
  display: block;
  height: 100%;
}

.card-poster {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: linear-gradient(135deg, #fef3c7, #e5e7eb);
}

.card-poster img,
.category-cover img,
.related-item img,
.rank-card img,
.poster-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.movie-card:hover .card-poster img,
.related-item:hover img,
.category-overview-card:hover img {
  transform: scale(1.08);
}

.card-poster::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.58));
  transition: 0.25s ease;
}

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

.type-badge,
.rank-badge,
.category-pill {
  position: absolute;
  z-index: 2;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
}

.type-badge {
  right: 12px;
  top: 12px;
  padding: 6px 10px;
  background: rgba(17, 24, 39, 0.82);
  color: #fff;
}

.rank-badge {
  left: 12px;
  top: 12px;
  min-width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #facc15;
  color: #111827;
}

.category-pill {
  right: 12px;
  bottom: 12px;
  background: #fef3c7;
  color: #92400e;
  padding: 5px 10px;
}

.card-body {
  padding: 16px;
}

.card-body h3 {
  margin: 0 0 8px;
  color: #1f2937;
  font-size: 18px;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-body p {
  min-height: 48px;
  margin: 0 0 12px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.movie-meta,
.tag-row,
.detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.movie-meta {
  font-size: 13px;
  color: #6b7280;
  margin-bottom: 12px;
}

.movie-meta span:not(:last-child)::after {
  content: "·";
  margin-left: 8px;
  color: #d1d5db;
}

.tag-row span,
.detail-tags span {
  border-radius: 999px;
  background: #fef3c7;
  color: #a16207;
  padding: 4px 9px;
  font-size: 12px;
  font-weight: 700;
}

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

.category-card {
  padding: 24px;
  transition: 0.25s ease;
  min-height: 190px;
}

.category-card span {
  color: #b45309;
  font-weight: 800;
  font-size: 13px;
}

.category-card h3 {
  font-size: 24px;
  margin: 8px 0;
}

.category-card em {
  color: #111827;
  font-style: normal;
  font-weight: 800;
}

.ranking-layout {
  display: grid;
  grid-template-columns: 0.82fr 1.18fr;
  gap: 36px;
  align-items: start;
}

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

.ranking-row,
.rank-card a {
  display: grid;
  grid-template-columns: 44px 92px 1fr;
  gap: 14px;
  align-items: center;
  background: #fff;
  border-radius: 16px;
  padding: 12px;
  box-shadow: var(--shadow-soft);
  transition: 0.25s ease;
}

.ranking-row:hover,
.rank-card:hover {
  transform: translateX(4px);
}

.ranking-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #111827;
  color: #fff;
  font-weight: 900;
}

.ranking-row img,
.rank-card img {
  aspect-ratio: 16 / 10;
  border-radius: 12px;
  object-fit: cover;
}

.ranking-copy strong,
.related-item strong,
.rank-main strong {
  display: block;
  line-height: 1.35;
}

.ranking-copy em,
.rank-main em {
  display: block;
  color: #6b7280;
  font-style: normal;
  font-size: 13px;
  margin-top: 4px;
}

.page-hero {
  background: linear-gradient(135deg, #facc15, #fde047, #f59e0b);
  padding: 72px 0 52px;
  margin-top: -56px;
}

.compact-hero h1 {
  font-size: clamp(38px, 6vw, 62px);
}

.breadcrumb,
.detail-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  color: #6b7280;
  font-size: 14px;
  margin-top: 24px;
}

.breadcrumb a,
.detail-breadcrumb a {
  color: #92400e;
  font-weight: 700;
}

.filter-panel {
  padding: 20px;
  margin: 28px 0;
}

.search-box input,
.filter-panel select {
  width: 100%;
  border: 2px solid #e5e7eb;
  border-radius: 14px;
  background: #fff;
  outline: 0;
  transition: 0.2s ease;
}

.search-box input {
  padding: 16px 18px;
  font-size: 18px;
}

.filter-panel select {
  padding: 12px 14px;
}

.search-box input:focus,
.filter-panel select:focus {
  border-color: #facc15;
  box-shadow: 0 0 0 4px rgba(250, 204, 21, 0.18);
}

.filter-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-top: 16px;
}

.filter-grid label span {
  display: block;
  font-weight: 800;
  color: #374151;
  margin-bottom: 6px;
}

.empty-state {
  text-align: center;
  padding: 54px;
  margin-top: 28px;
  border-radius: 20px;
  background: #fff;
  color: #6b7280;
  box-shadow: var(--shadow-soft);
}

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

.category-overview-card {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 20px;
  padding: 18px;
}

.category-cover {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  min-height: 160px;
}

.category-cover span {
  position: absolute;
  left: 12px;
  bottom: 12px;
  border-radius: 999px;
  padding: 5px 10px;
  background: #facc15;
  color: #111827;
  font-weight: 900;
}

.category-overview-card h2 {
  margin: 0 0 8px;
}

.sample-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.sample-links a {
  padding: 5px 10px;
  border-radius: 999px;
  background: #fef3c7;
  color: #92400e;
  font-weight: 700;
  font-size: 13px;
}

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

.rank-card {
  border-radius: 18px;
  overflow: hidden;
}

.rank-card a {
  grid-template-columns: 52px 130px 1fr;
  padding: 16px;
}

.rank-main p {
  color: #4b5563;
  margin: 8px 0 0;
}

.detail-main {
  padding-top: 28px;
}

.detail-breadcrumb {
  margin-bottom: 24px;
}

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

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

.player-card {
  background: #050505;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

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

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

.play-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.24), rgba(0, 0, 0, 0.72));
  color: #fff;
  cursor: pointer;
  transition: 0.25s ease;
  text-align: center;
  padding: 24px;
}

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

.play-icon {
  width: 74px;
  height: 74px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #facc15;
  color: #111827;
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.28);
  font-size: 30px;
}

.play-overlay strong {
  font-size: clamp(22px, 3vw, 34px);
  max-width: 760px;
}

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

.movie-content h1 {
  margin: 0 0 14px;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.15;
}

.detail-meta {
  gap: 10px;
  margin-bottom: 18px;
}

.detail-meta span {
  padding: 5px 10px;
  border-radius: 999px;
  background: #f3f4f6;
}

.detail-tags {
  margin-bottom: 18px;
}

.one-line {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 18px 0;
  margin: 20px 0;
  font-size: 18px;
  font-weight: 700;
  color: #374151;
}

.movie-content h2,
.side-card h2 {
  margin: 22px 0 10px;
  font-size: 24px;
}

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

.poster-card {
  display: grid;
  gap: 16px;
}

.poster-card img {
  aspect-ratio: 16 / 10;
  border-radius: 16px;
}

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

.related-item {
  display: grid;
  grid-template-columns: 112px 1fr;
  gap: 12px;
  align-items: center;
}

.related-item img {
  aspect-ratio: 16 / 10;
  border-radius: 12px;
}

.related-item em {
  display: block;
  font-style: normal;
  font-size: 12px;
  margin-top: 5px;
}

.site-footer {
  background: linear-gradient(90deg, #111827, #1f2937, #111827);
  color: #fff;
  margin-top: 52px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 32px;
  padding: 42px 0;
}

.footer-brand {
  color: #facc15;
  font-size: 22px;
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(2, max-content);
  gap: 10px 24px;
}

.footer-links a {
  color: #d1d5db;
}

.footer-links a:hover {
  color: #facc15;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 16px;
  text-align: center;
}

[hidden] {
  display: none !important;
}

@media (max-width: 1060px) {
  .hero-inner,
  .ranking-layout,
  .detail-layout {
    grid-template-columns: 1fr;
  }

  .detail-side {
    position: static;
  }

  .cards-4,
  .category-grid,
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

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

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

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

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

  .nav-link {
    padding: 12px 14px;
    border-radius: 12px;
    border-bottom: 0;
  }

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

  .brand-text strong {
    font-size: 18px;
  }

  .hero {
    min-height: auto;
  }

  .hero-inner {
    padding: 52px 0;
    gap: 28px;
  }

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

  .cards-3,
  .cards-4,
  .stats-grid,
  .category-grid,
  .category-overview-grid,
  .filter-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

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

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

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

  .rank-card a,
  .ranking-row {
    grid-template-columns: 38px 88px 1fr;
  }
}

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

  .hero-panel {
    padding: 12px;
    border-radius: 20px;
  }

  .hero-slider {
    min-height: 390px;
  }

  .hero-slide-copy {
    left: 16px;
    right: 16px;
    bottom: 16px;
  }

  .hero-actions,
  .hero-links {
    flex-direction: column;
    align-items: stretch;
  }

  .related-item {
    grid-template-columns: 96px 1fr;
  }

  .detail-card,
  .side-card,
  .filter-panel {
    padding: 18px;
  }
}
