html {
  scroll-behavior: smooth;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  background: #fafaf9;
  color: #292524;
  line-height: 1.6;
}

body.no-scroll {
  overflow: hidden;
}

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

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

button,
input,
select,
textarea {
  font: inherit;
}

.site-shell {
  min-height: 100vh;
  background: #fafaf9;
}

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

.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 250, 249, 0.92);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(214, 211, 209, 0.75);
}

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

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
  font-size: 22px;
  letter-spacing: -0.03em;
  color: #1c1917;
  white-space: nowrap;
}

.logo-mark {
  width: 36px;
  height: 36px;
  border-radius: 14px;
  background: linear-gradient(135deg, #ef4444, #7f1d1d);
  box-shadow: 0 16px 30px rgba(239, 68, 68, 0.28);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 18px;
}

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

.nav a {
  padding: 9px 14px;
  border-radius: 999px;
  color: #57534e;
  font-weight: 700;
  font-size: 14px;
  transition: color 0.2s ease, background 0.2s ease;
}

.nav a:hover,
.nav a.active {
  color: #dc2626;
  background: #fee2e2;
}

.header-search {
  width: 260px;
  position: relative;
}

.header-search input {
  width: 100%;
  border: 1px solid #e7e5e4;
  background: #fff;
  border-radius: 999px;
  padding: 10px 42px 10px 16px;
  outline: none;
  color: #292524;
  box-shadow: 0 10px 26px rgba(41, 37, 36, 0.05);
}

.header-search button {
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 0;
  background: #ef4444;
  color: #fff;
  cursor: pointer;
}

.mobile-toggle {
  display: none;
  border: 0;
  background: #1c1917;
  color: #fff;
  border-radius: 12px;
  width: 42px;
  height: 42px;
  cursor: pointer;
}

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

.mobile-panel a {
  display: block;
  padding: 12px 0;
  color: #44403c;
  font-weight: 800;
}

.mobile-panel .header-search {
  width: 100%;
  margin-top: 10px;
}

.hero {
  position: relative;
  height: 78vh;
  min-height: 560px;
  background: #1c1917;
  overflow: hidden;
}

.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.02);
}

.hero-mask {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.94), rgba(0, 0, 0, 0.5) 46%, rgba(0, 0, 0, 0.12));
}

.hero-content {
  position: absolute;
  left: max(32px, calc((100vw - 1180px) / 2));
  right: max(32px, calc((100vw - 1180px) / 2));
  bottom: 62px;
  color: #fff;
  max-width: 760px;
}

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

.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 28px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  backdrop-filter: blur(10px);
}

.pill.dark {
  background: #292524;
  color: #fff;
}

.pill.red {
  background: #ef4444;
  color: #fff;
}

.hero h1 {
  margin: 0;
  font-size: clamp(42px, 6vw, 76px);
  line-height: 0.95;
  letter-spacing: -0.07em;
  font-weight: 950;
  text-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

.hero p {
  margin: 20px 0 0;
  max-width: 720px;
  font-size: clamp(16px, 2vw, 20px);
  color: rgba(255, 255, 255, 0.82);
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 999px;
  padding: 11px 18px;
  min-height: 44px;
  font-weight: 900;
  border: 1px solid transparent;
  cursor: pointer;
  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 {
  background: #ef4444;
  color: #fff;
  box-shadow: 0 18px 35px rgba(239, 68, 68, 0.34);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.28);
  backdrop-filter: blur(10px);
}

.btn-light {
  background: #fff;
  color: #1c1917;
  border-color: #e7e5e4;
}

.hero-controls {
  position: absolute;
  right: max(32px, calc((100vw - 1180px) / 2));
  bottom: 72px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.hero-control {
  width: 48px;
  height: 48px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.26);
  color: #fff;
  cursor: pointer;
  backdrop-filter: blur(12px);
}

.hero-dots {
  position: absolute;
  left: max(32px, calc((100vw - 1180px) / 2));
  bottom: 28px;
  display: flex;
  gap: 9px;
}

.hero-dot {
  width: 34px;
  height: 4px;
  border-radius: 999px;
  border: 0;
  background: rgba(255, 255, 255, 0.28);
  cursor: pointer;
  transition: width 0.2s ease, background 0.2s ease;
}

.hero-dot.is-active {
  width: 56px;
  background: #ef4444;
}

.section {
  padding: 64px 0;
}

.section.tight {
  padding-top: 36px;
}

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

.eyebrow {
  margin: 0 0 8px;
  color: #dc2626;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 12px;
}

.section-title,
.page-title {
  margin: 0;
  color: #1c1917;
  font-size: clamp(28px, 4vw, 46px);
  line-height: 1.08;
  letter-spacing: -0.05em;
  font-weight: 950;
}

.section-desc,
.page-desc {
  margin: 10px 0 0;
  color: #78716c;
  max-width: 760px;
}

.page-hero {
  background: radial-gradient(circle at 20% 20%, rgba(239, 68, 68, 0.16), transparent 34%), linear-gradient(135deg, #1c1917, #44403c);
  color: #fff;
  padding: 78px 0 58px;
}

.page-hero .page-title,
.page-hero .page-desc {
  color: #fff;
}

.page-hero .page-desc {
  color: rgba(255, 255, 255, 0.78);
}

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

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

.movie-card {
  background: #fff;
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid #e7e5e4;
  box-shadow: 0 16px 40px rgba(41, 37, 36, 0.07);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  border-color: #fecaca;
  box-shadow: 0 26px 60px rgba(41, 37, 36, 0.13);
}

.movie-card.is-filtered {
  display: none;
}

.poster-link {
  display: block;
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: #292524;
}

.poster-link.wide {
  aspect-ratio: 16 / 9;
}

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

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

.poster-badge {
  position: absolute;
  left: 12px;
  top: 12px;
  z-index: 2;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(239, 68, 68, 0.92);
  color: #fff;
  font-size: 12px;
  font-weight: 900;
}

.poster-score {
  position: absolute;
  right: 12px;
  top: 12px;
  z-index: 2;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.62);
  color: #fff;
  font-size: 12px;
  font-weight: 900;
}

.card-body {
  padding: 16px 16px 18px;
}

.card-title {
  margin: 0;
  font-size: 17px;
  line-height: 1.28;
  color: #1c1917;
  font-weight: 950;
}

.card-title a:hover {
  color: #dc2626;
}

.card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 10px 0;
  color: #78716c;
  font-size: 13px;
  font-weight: 700;
}

.card-text {
  margin: 0;
  color: #78716c;
  font-size: 14px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.card-tags span {
  padding: 3px 8px;
  border-radius: 999px;
  background: #f5f5f4;
  color: #78716c;
  font-size: 12px;
  font-weight: 800;
}

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

.category-card {
  display: block;
  background: #fff;
  border-radius: 28px;
  padding: 24px;
  border: 1px solid #e7e5e4;
  box-shadow: 0 18px 44px rgba(41, 37, 36, 0.08);
  min-height: 170px;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.category-card:hover {
  transform: translateY(-5px);
  border-color: #fecaca;
}

.category-card strong {
  display: block;
  color: #1c1917;
  font-size: 22px;
  font-weight: 950;
}

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

.filter-bar {
  display: grid;
  grid-template-columns: 1.8fr repeat(3, 1fr);
  gap: 14px;
  background: #fff;
  border: 1px solid #e7e5e4;
  border-radius: 24px;
  padding: 16px;
  box-shadow: 0 18px 44px rgba(41, 37, 36, 0.06);
  margin-bottom: 28px;
}

.filter-bar input,
.filter-bar select {
  min-height: 44px;
  border-radius: 14px;
  border: 1px solid #e7e5e4;
  background: #fafaf9;
  color: #292524;
  outline: none;
  padding: 0 12px;
}

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

.rank-item {
  display: grid;
  grid-template-columns: 62px 96px 1fr;
  gap: 16px;
  align-items: center;
  background: #fff;
  border: 1px solid #e7e5e4;
  border-radius: 24px;
  padding: 12px;
  box-shadow: 0 16px 36px rgba(41, 37, 36, 0.07);
}

.rank-number {
  width: 52px;
  height: 52px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  background: #1c1917;
  color: #fff;
  font-weight: 950;
  font-size: 18px;
}

.rank-item:nth-child(1) .rank-number,
.rank-item:nth-child(2) .rank-number,
.rank-item:nth-child(3) .rank-number {
  background: #ef4444;
}

.rank-poster {
  aspect-ratio: 3 / 4;
  border-radius: 18px;
  overflow: hidden;
  background: #292524;
}

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

.rank-title {
  margin: 0;
  font-size: 18px;
  font-weight: 950;
}

.rank-title a:hover {
  color: #dc2626;
}

.rank-meta {
  margin: 6px 0 0;
  color: #78716c;
  font-size: 14px;
}

.detail-wrap {
  padding: 46px 0 72px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  color: #78716c;
  font-size: 14px;
  margin-bottom: 22px;
}

.breadcrumb a:hover {
  color: #dc2626;
}

.player-panel {
  background: #050505;
  border-radius: 28px;
  overflow: hidden;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.24);
  margin-bottom: 32px;
}

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

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

.player-cover {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: radial-gradient(circle at center, rgba(0, 0, 0, 0.12), rgba(0, 0, 0, 0.72));
  cursor: pointer;
  transition: opacity 0.24s ease, visibility 0.24s ease;
}

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

.play-button {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  border: 0;
  color: #fff;
  background: #ef4444;
  font-size: 30px;
  padding-left: 6px;
  cursor: pointer;
  box-shadow: 0 20px 50px rgba(239, 68, 68, 0.45);
}

.detail-grid {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 34px;
  align-items: start;
}

.detail-poster {
  border-radius: 28px;
  overflow: hidden;
  background: #292524;
  box-shadow: 0 22px 60px rgba(41, 37, 36, 0.16);
}

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

.detail-content {
  background: #fff;
  border-radius: 28px;
  border: 1px solid #e7e5e4;
  padding: 30px;
  box-shadow: 0 18px 44px rgba(41, 37, 36, 0.08);
}

.detail-title {
  margin: 0;
  font-size: clamp(32px, 4vw, 52px);
  line-height: 1.06;
  letter-spacing: -0.06em;
  font-weight: 950;
  color: #1c1917;
}

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

.article h2 {
  font-size: 24px;
  margin: 28px 0 10px;
  font-weight: 950;
  color: #1c1917;
}

.article p {
  margin: 0 0 14px;
  color: #57534e;
  font-size: 16px;
}

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

.related-card {
  background: #fff;
  border: 1px solid #e7e5e4;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 14px 34px rgba(41, 37, 36, 0.07);
}

.related-card img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  background: #292524;
}

.related-card strong {
  display: block;
  padding: 12px;
  line-height: 1.35;
  font-size: 14px;
}

.empty-state {
  display: none;
  border: 1px dashed #d6d3d1;
  color: #78716c;
  border-radius: 22px;
  padding: 30px;
  text-align: center;
  background: #fff;
}

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

.footer {
  background: #1c1917;
  color: #d6d3d1;
  padding: 48px 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 32px;
  align-items: start;
}

.footer h2,
.footer h3 {
  margin: 0 0 14px;
  color: #fff;
}

.footer p {
  margin: 0;
  color: #a8a29e;
}

.footer a {
  display: inline-block;
  margin: 0 12px 10px 0;
  color: #d6d3d1;
}

.footer a:hover {
  color: #f87171;
}

.copyright {
  margin-top: 34px;
  padding-top: 22px;
  border-top: 1px solid #44403c;
  color: #a8a29e;
  font-size: 14px;
}

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

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

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

@media (max-width: 860px) {
  .header-search,
  .nav {
    display: none;
  }

  .mobile-toggle {
    display: inline-grid;
    place-items: center;
  }

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

  .hero {
    height: 74vh;
    min-height: 560px;
  }

  .hero-content {
    left: 22px;
    right: 22px;
    bottom: 78px;
  }

  .hero-controls {
    right: 22px;
    bottom: 22px;
  }

  .hero-dots {
    left: 22px;
    bottom: 34px;
  }

  .section-head {
    display: block;
  }

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

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

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

  .detail-poster {
    max-width: 340px;
  }

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

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

  .logo {
    font-size: 19px;
  }

  .hero {
    min-height: 620px;
  }

  .hero h1 {
    font-size: 44px;
  }

  .hero-control {
    width: 42px;
    height: 42px;
  }

  .grid,
  .grid.compact,
  .category-grid,
  .rank-list,
  .related-grid {
    grid-template-columns: 1fr;
  }

  .rank-item {
    grid-template-columns: 48px 76px 1fr;
    gap: 12px;
  }

  .rank-number {
    width: 42px;
    height: 42px;
    border-radius: 15px;
  }

  .detail-content {
    padding: 22px;
  }
}
