* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: #292524;
  background: linear-gradient(180deg, #fffbeb 0%, #fafaf9 42%, #ffffff 100%);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  line-height: 1.6;
}

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

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

button,
input {
  font: inherit;
}

.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.92);
  border-bottom: 1px solid rgba(231, 229, 228, 0.86);
  backdrop-filter: blur(16px);
  box-shadow: 0 8px 28px rgba(41, 37, 36, 0.05);
}

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

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #292524;
}

.brand-mark {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  background: linear-gradient(135deg, #f59e0b, #57534e);
  border-radius: 999px;
  box-shadow: 0 12px 24px rgba(245, 158, 11, 0.28);
}

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

.brand-copy strong {
  font-size: 20px;
  font-weight: 800;
}

.brand-copy em {
  color: #78716c;
  font-size: 12px;
  font-style: normal;
}

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

.nav-link {
  color: #57534e;
  font-weight: 650;
  transition: color 0.2s ease, transform 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
  color: #d97706;
}

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

.menu-button {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  color: #57534e;
  background: #fffbeb;
  border-radius: 12px;
  cursor: pointer;
}

.mobile-nav {
  display: none;
  padding: 0 16px 16px;
  border-top: 1px solid #e7e5e4;
}

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

.mobile-nav .nav-link {
  padding: 10px 12px;
  background: #ffffff;
  border: 1px solid #e7e5e4;
  border-radius: 12px;
}

main {
  min-height: 64vh;
}

.hero {
  position: relative;
  min-height: 500px;
  overflow: hidden;
  color: #ffffff;
  background: #1c1917;
}

.hero-media {
  position: absolute;
  inset: 0;
}

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

.hero-media::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.88) 0%, rgba(0, 0, 0, 0.48) 48%, rgba(0, 0, 0, 0.12) 100%);
}

.hero-inner {
  position: relative;
  min-height: 500px;
  display: flex;
  align-items: flex-end;
  padding-top: 96px;
  padding-bottom: 54px;
}

.hero-copy {
  max-width: 720px;
}

.eyebrow {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 18px;
}

.eyebrow span,
.meta-pill {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 4px 12px;
  color: #ffffff;
  background: rgba(41, 37, 36, 0.78);
  border-radius: 999px;
  font-size: 14px;
  font-weight: 650;
}

.eyebrow span:first-child,
.meta-pill.primary {
  background: #f59e0b;
}

.hero h1 {
  max-width: 760px;
  margin: 0 0 14px;
  font-size: clamp(32px, 5vw, 58px);
  line-height: 1.08;
  font-weight: 900;
  letter-spacing: -0.04em;
}

.hero p {
  max-width: 680px;
  margin: 0 0 24px;
  color: #e7e5e4;
  font-size: 18px;
}

.hero-actions,
.section-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 18px;
  border: 1px solid transparent;
  border-radius: 14px;
  font-weight: 750;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  color: #ffffff;
  background: #f59e0b;
  box-shadow: 0 14px 28px rgba(245, 158, 11, 0.28);
}

.btn-primary:hover {
  background: #d97706;
}

.btn-light {
  color: #292524;
  background: #ffffff;
}

.btn-ghost {
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
}

.section {
  padding: 54px 0;
}

.section.compact-section {
  padding: 34px 0;
}

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

.section-heading h2,
.section-heading h1 {
  margin: 0;
  color: #292524;
  font-size: clamp(26px, 4vw, 36px);
  line-height: 1.18;
  font-weight: 900;
}

.section-heading p {
  max-width: 650px;
  margin: 8px 0 0;
  color: #78716c;
}

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

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

.movie-card {
  min-width: 0;
}

.poster-frame {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 2 / 3;
  background: #e7e5e4;
  border-radius: 16px;
  box-shadow: 0 12px 28px rgba(41, 37, 36, 0.12);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

.movie-card:hover .poster-frame {
  transform: translateY(-4px);
  box-shadow: 0 18px 38px rgba(41, 37, 36, 0.22);
}

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

.poster-shade {
  position: absolute;
  inset: 0;
  opacity: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.72), rgba(0, 0, 0, 0.05));
  transition: opacity 0.25s ease;
}

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

.region-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  padding: 4px 8px;
  color: #ffffff;
  background: #f59e0b;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 750;
}

.poster-copy {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 12px;
  display: -webkit-box;
  overflow: hidden;
  color: #ffffff;
  opacity: 0;
  font-size: 12px;
  line-height: 1.45;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  transform: translateY(6px);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.movie-card:hover .poster-copy {
  opacity: 1;
  transform: translateY(0);
}

.movie-card strong {
  display: block;
  overflow: hidden;
  margin-top: 10px;
  color: #292524;
  font-size: 15px;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
  transition: color 0.2s ease;
}

.movie-card:hover strong {
  color: #d97706;
}

.movie-card small {
  display: block;
  overflow: hidden;
  color: #78716c;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

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

.category-card {
  min-height: 174px;
  padding: 22px;
  background: #ffffff;
  border: 1px solid #e7e5e4;
  border-radius: 22px;
  box-shadow: 0 16px 34px rgba(41, 37, 36, 0.06);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.category-card:hover {
  transform: translateY(-4px);
  border-color: #f59e0b;
  box-shadow: 0 22px 42px rgba(245, 158, 11, 0.13);
}

.category-card span {
  display: inline-flex;
  width: 46px;
  height: 46px;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  color: #ffffff;
  background: linear-gradient(135deg, #f59e0b, #57534e);
  border-radius: 16px;
  font-weight: 900;
}

.category-card strong {
  display: block;
  margin-bottom: 8px;
  color: #292524;
  font-size: 20px;
  font-weight: 850;
}

.category-card p {
  margin: 0;
  color: #78716c;
  font-size: 14px;
}

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

.rank-panel,
.info-card,
.filter-panel,
.article-card,
.player-card {
  background: #ffffff;
  border: 1px solid #e7e5e4;
  border-radius: 22px;
  box-shadow: 0 18px 40px rgba(41, 37, 36, 0.08);
}

.rank-panel {
  position: sticky;
  top: 92px;
  padding: 20px;
}

.rank-panel h2,
.info-card h2,
.article-card h2 {
  margin: 0 0 18px;
  font-size: 22px;
  font-weight: 900;
}

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

.rank-item {
  display: grid;
  grid-template-columns: 42px 54px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 10px;
  border-radius: 16px;
  transition: background 0.2s ease, transform 0.2s ease;
}

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

.rank-num {
  color: #d97706;
  font-size: 22px;
  font-weight: 900;
}

.rank-item img {
  width: 54px;
  height: 72px;
  object-fit: cover;
  border-radius: 10px;
}

.rank-copy {
  min-width: 0;
}

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

.rank-copy strong {
  color: #292524;
  font-weight: 800;
}

.rank-copy em {
  color: #78716c;
  font-size: 12px;
  font-style: normal;
}

.filter-panel {
  display: grid;
  gap: 16px;
  margin-bottom: 24px;
  padding: 18px;
}

.search-box {
  display: grid;
  gap: 8px;
}

.search-box span,
.filter-row > span {
  color: #57534e;
  font-size: 14px;
  font-weight: 800;
}

.search-box input {
  width: 100%;
  min-height: 48px;
  padding: 0 16px;
  border: 1px solid #e7e5e4;
  outline: none;
  background: #fafaf9;
  border-radius: 14px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.search-box input:focus {
  border-color: #f59e0b;
  box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.12);
}

.filter-row {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chip {
  min-height: 34px;
  padding: 5px 13px;
  color: #57534e;
  background: #ffffff;
  border: 1px solid #e7e5e4;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.chip:hover,
.chip.active {
  color: #ffffff;
  background: #f59e0b;
  border-color: #f59e0b;
  box-shadow: 0 8px 20px rgba(245, 158, 11, 0.2);
}

.no-results {
  display: none;
  padding: 24px;
  color: #78716c;
  text-align: center;
  background: #ffffff;
  border: 1px solid #e7e5e4;
  border-radius: 18px;
}

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

.breadcrumbs {
  margin: 24px auto 0;
  color: #78716c;
  font-size: 14px;
}

.breadcrumbs a {
  color: #d97706;
  font-weight: 750;
}

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

.movie-player {
  position: relative;
  overflow: hidden;
  background: #000000;
  border-radius: 22px;
  box-shadow: 0 24px 55px rgba(0, 0, 0, 0.32);
}

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

.player-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  color: #ffffff;
  background: radial-gradient(circle, rgba(0, 0, 0, 0.16), rgba(0, 0, 0, 0.7));
  cursor: pointer;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

.player-overlay span {
  width: 76px;
  height: 76px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding-left: 5px;
  background: #f59e0b;
  border-radius: 999px;
  box-shadow: 0 18px 34px rgba(245, 158, 11, 0.32);
  font-size: 34px;
}

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

.player-loader {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 34px;
  height: 34px;
  border: 4px solid rgba(255, 255, 255, 0.35);
  border-top-color: #f59e0b;
  border-radius: 999px;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.player-controls {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 18px;
  opacity: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.86), rgba(0, 0, 0, 0));
  transition: opacity 0.2s ease;
}

.movie-player:hover .player-controls,
.movie-player.is-active .player-controls {
  opacity: 1;
}

.player-button {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  color: #ffffff;
  background: #f59e0b;
  border-radius: 999px;
  cursor: pointer;
}

.player-button.alt {
  background: rgba(68, 64, 60, 0.86);
}

.article-card,
.info-card {
  padding: 24px;
}

.article-card h1 {
  margin: 0 0 12px;
  color: #292524;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.16;
  font-weight: 900;
}

.lead {
  margin: 0 0 20px;
  color: #d97706;
  font-size: 18px;
  font-weight: 750;
}

.meta-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 20px 0;
  padding: 18px;
  background: #fafaf9;
  border-radius: 18px;
}

.meta-grid div {
  min-width: 0;
}

.meta-grid span {
  display: block;
  color: #78716c;
  font-size: 12px;
}

.meta-grid strong {
  display: block;
  overflow: hidden;
  color: #292524;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.text-block {
  margin-top: 24px;
}

.text-block h2 {
  margin: 0 0 10px;
  font-size: 22px;
  font-weight: 900;
}

.text-block p {
  margin: 0;
  color: #57534e;
  font-size: 16px;
  line-height: 1.85;
}

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

.tag-list span {
  padding: 6px 11px;
  color: #57534e;
  background: #f5f5f4;
  border-radius: 10px;
  font-size: 13px;
}

.info-card {
  position: sticky;
  top: 92px;
}

.info-card img {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  border-radius: 18px;
  box-shadow: 0 18px 34px rgba(41, 37, 36, 0.16);
}

.info-list {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.info-list div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid #f5f5f4;
}

.info-list span {
  color: #78716c;
}

.info-list strong {
  color: #292524;
  text-align: right;
}

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

.simple-hero {
  padding: 58px 0 34px;
  background: radial-gradient(circle at top left, rgba(245, 158, 11, 0.18), transparent 36%), linear-gradient(180deg, #fffbeb, #ffffff);
}

.simple-hero h1 {
  margin: 0 0 12px;
  color: #292524;
  font-size: clamp(32px, 5vw, 48px);
  line-height: 1.12;
  font-weight: 900;
}

.simple-hero p {
  max-width: 760px;
  margin: 0;
  color: #78716c;
  font-size: 17px;
}

.text-page {
  max-width: 860px;
  padding: 42px 0 66px;
}

.text-page article {
  padding: 30px;
  background: #ffffff;
  border: 1px solid #e7e5e4;
  border-radius: 22px;
  box-shadow: 0 18px 40px rgba(41, 37, 36, 0.08);
}

.text-page h1 {
  margin: 0 0 18px;
  font-size: 36px;
  font-weight: 900;
}

.text-page h2 {
  margin-top: 28px;
  font-size: 22px;
}

.text-page p,
.text-page li {
  color: #57534e;
}

.site-footer {
  color: #e7e5e4;
  background: linear-gradient(135deg, #1c1917, #292524 52%, #78350f);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 28px;
  padding: 46px 0;
}

.footer-grid p {
  max-width: 420px;
  color: #a8a29e;
}

.footer-grid h2 {
  margin: 0 0 14px;
  color: #ffffff;
  font-size: 17px;
}

.footer-grid a:not(.footer-brand) {
  display: block;
  margin: 8px 0;
  color: #a8a29e;
  transition: color 0.2s ease;
}

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

.footer-brand {
  color: #ffffff;
  font-weight: 850;
}

.footer-bottom {
  padding: 18px 0;
  border-top: 1px solid rgba(231, 229, 228, 0.16);
  text-align: center;
}

.footer-bottom p {
  margin: 0;
  color: #a8a29e;
  font-size: 14px;
}

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

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

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

  .content-split,
  .detail-layout {
    grid-template-columns: 1fr;
  }

  .rank-panel,
  .info-card {
    position: static;
  }

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

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

  .menu-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .brand-copy strong {
    font-size: 17px;
  }

  .brand-mark {
    width: 38px;
    height: 38px;
  }

  .hero,
  .hero-inner {
    min-height: 440px;
  }

  .hero-inner {
    padding-bottom: 38px;
  }

  .hero p {
    font-size: 16px;
  }

  .section {
    padding: 38px 0;
  }

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

  .movie-grid,
  .movie-grid.wide,
  .related-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }

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

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

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

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