* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  color: #111827;
  background: #ffffff;
}

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

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(229, 231, 235, 0.9);
}

.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;
  font-weight: 800;
  font-size: 22px;
  background: linear-gradient(90deg, #f43f5e, #ec4899);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.brand-icon {
  width: 34px;
  height: 34px;
  display: inline-grid;
  place-items: center;
  border-radius: 10px;
  background: linear-gradient(135deg, #fb7185, #ec4899);
  color: #fff;
  box-shadow: 0 12px 30px rgba(244, 63, 94, 0.28);
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  color: #4b5563;
  font-weight: 600;
}

.desktop-nav a,
.mobile-nav a {
  transition: color 0.25s ease;
}

.desktop-nav a:hover,
.mobile-nav a:hover {
  color: #e11d48;
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 12px;
  background: #f3f4f6;
  color: #374151;
  font-size: 22px;
  cursor: pointer;
}

.mobile-nav {
  display: none;
  border-top: 1px solid #e5e7eb;
  padding: 12px 24px 18px;
  background: #fff;
}

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

.hero {
  position: relative;
  min-height: 680px;
  overflow: hidden;
  background: #111827;
}

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

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

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

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.78), rgba(0, 0, 0, 0.44), rgba(0, 0, 0, 0.08));
}

.hero-content {
  position: relative;
  min-height: 560px;
  display: flex;
  align-items: center;
}

.hero-copy {
  max-width: 720px;
  color: #fff;
  padding-top: 30px;
}

.eyebrow,
.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #fb7185;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.hero-copy h1,
.sub-hero h1,
.detail-info h1 {
  margin: 14px 0 18px;
  font-size: clamp(38px, 6vw, 72px);
  line-height: 1.03;
  font-weight: 900;
}

.hero-copy p,
.sub-hero p,
.lead-text {
  margin: 0;
  font-size: clamp(17px, 2vw, 22px);
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.86);
}

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

.btn-primary,
.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 22px;
  border-radius: 999px;
  font-weight: 800;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.btn-primary {
  background: linear-gradient(90deg, #f43f5e, #ec4899);
  color: #fff;
  box-shadow: 0 18px 36px rgba(244, 63, 94, 0.34);
}

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

.btn-primary:hover,
.btn-secondary:hover {
  transform: translateY(-2px);
  box-shadow: 0 22px 40px rgba(17, 24, 39, 0.18);
}

.hero-controls {
  position: absolute;
  left: 50%;
  bottom: 130px;
  z-index: 5;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
}

.hero-dot {
  width: 36px;
  height: 4px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.45);
  cursor: pointer;
}

.hero-dot.is-active {
  background: #fff;
}

.hero-search-wrap {
  position: absolute;
  left: 50%;
  bottom: 24px;
  z-index: 8;
  transform: translateX(-50%);
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 20px;
  align-items: stretch;
}

.hero-search,
.hero-rank,
.side-panel,
.article-card,
.category-panel {
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 20px 45px rgba(17, 24, 39, 0.13);
  border: 1px solid rgba(255, 255, 255, 0.75);
}

.hero-search,
.hero-rank {
  padding: 22px;
  backdrop-filter: blur(16px);
}

.hero-search h2,
.hero-rank h2,
.side-panel h2,
.article-card h2 {
  margin: 0 0 14px;
  font-size: 22px;
  font-weight: 900;
}

.filter-panel {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 24px;
}

.filter-input,
.filter-select {
  min-height: 46px;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  padding: 0 16px;
  font: inherit;
  background: #fff;
  outline: none;
}

.filter-input {
  flex: 1 1 260px;
}

.filter-input:focus,
.filter-select:focus {
  border-color: #fb7185;
  box-shadow: 0 0 0 4px rgba(251, 113, 133, 0.16);
}

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

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

.section-head h2 {
  margin: 8px 0 0;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.15;
  font-weight: 900;
  background: linear-gradient(90deg, #111827, #e11d48);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.section-head a {
  color: #e11d48;
  font-weight: 800;
}

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

.category-tile {
  min-height: 162px;
  border-radius: 22px;
  padding: 22px;
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  box-shadow: 0 18px 40px rgba(17, 24, 39, 0.12);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.category-tile:hover,
.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 25px 50px rgba(17, 24, 39, 0.16);
}

.category-tile span {
  font-size: 34px;
}

.category-tile strong {
  font-size: 22px;
}

.category-tile em {
  color: rgba(255, 255, 255, 0.82);
  font-style: normal;
  line-height: 1.5;
}

.rose { background: linear-gradient(135deg, #fb7185, #e11d48); }
.pink { background: linear-gradient(135deg, #f472b6, #db2777); }
.red { background: linear-gradient(135deg, #f87171, #dc2626); }
.violet { background: linear-gradient(135deg, #a78bfa, #7c3aed); }
.fuchsia { background: linear-gradient(135deg, #e879f9, #c026d3); }
.orange { background: linear-gradient(135deg, #fb923c, #ea580c); }
.amber { background: linear-gradient(135deg, #fbbf24, #d97706); }
.cyan { background: linear-gradient(135deg, #22d3ee, #0891b2); }
.teal { background: linear-gradient(135deg, #2dd4bf, #0f766e); }
.emerald { background: linear-gradient(135deg, #34d399, #059669); }

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

.card {
  overflow: hidden;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 8px 22px rgba(17, 24, 39, 0.10);
  border: 1px solid #f3f4f6;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.poster {
  position: relative;
  display: block;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: #111827;
}

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

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

.play-mark,
.rank-badge {
  position: absolute;
  z-index: 3;
}

.play-mark {
  left: 50%;
  top: 50%;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  transform: translate(-50%, -50%);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  color: #e11d48;
  opacity: 0;
  transition: opacity 0.25s ease;
}

.card:hover .play-mark {
  opacity: 1;
}

.rank-badge {
  top: 10px;
  left: 10px;
  min-width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: linear-gradient(135deg, #f43f5e, #ec4899);
  color: #fff;
  font-weight: 900;
}

.card-body {
  padding: 16px;
}

.movie-title {
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-weight: 900;
  font-size: 17px;
  line-height: 1.4;
}

.movie-title:hover {
  color: #e11d48;
}

.meta-line {
  margin-top: 6px;
  color: #6b7280;
  font-size: 13px;
}

.card-body p {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 42px;
  margin: 10px 0 12px;
  color: #4b5563;
  line-height: 1.55;
  font-size: 14px;
}

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

.tag {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 10px;
  border-radius: 999px;
  background: #fff1f2;
  color: #be123c;
  font-size: 12px;
  font-weight: 700;
}

.hero-tags .tag {
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
}

.soft-panel {
  background: linear-gradient(180deg, #fff, #fff1f2);
}

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

.compact-card {
  display: grid;
  grid-template-columns: 36px 58px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 12px;
  border-radius: 16px;
  background: #fff;
  border: 1px solid #f3f4f6;
  transition: background 0.25s ease, transform 0.25s ease;
}

.compact-card:hover,
.rank-row:hover {
  background: #fff1f2;
  transform: translateY(-2px);
}

.compact-card img,
.rank-row img {
  width: 58px;
  height: 72px;
  object-fit: cover;
  border-radius: 12px;
}

.compact-card strong,
.rank-row strong {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.compact-card em,
.rank-row em {
  display: block;
  margin-top: 4px;
  color: #6b7280;
  font-size: 13px;
  font-style: normal;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rank-number {
  width: 32px;
  height: 32px;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  background: linear-gradient(135deg, #f43f5e, #ec4899);
  color: #fff;
  font-weight: 900;
}

.small-dot {
  background: #f3f4f6;
  color: #e11d48;
}

.sub-hero {
  padding: 92px 0 76px;
  color: #fff;
  background: linear-gradient(135deg, #111827, #be123c 55%, #ec4899);
}

.sub-hero p {
  max-width: 760px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-top: 20px;
  color: rgba(255, 255, 255, 0.78);
}

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

.category-list {
  display: grid;
  gap: 24px;
  padding: 56px 0;
}

.category-panel {
  padding: 24px;
  background: #fff;
}

.category-panel-head {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  margin-bottom: 20px;
}

.category-icon {
  width: 64px;
  height: 64px;
  display: grid;
  place-items: center;
  border-radius: 20px;
  color: #fff;
  font-size: 30px;
}

.category-panel h2 {
  margin: 0 0 6px;
  font-size: 26px;
}

.category-panel p {
  margin: 0;
  color: #6b7280;
}

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

.side-panel {
  position: sticky;
  top: 96px;
  padding: 20px;
  background: #fff;
}

.detail-hero {
  padding: 48px 0;
  background: radial-gradient(circle at top left, #ffe4e6 0, #fff 42%, #f9fafb 100%);
}

.detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.28fr) minmax(360px, 0.72fr);
  gap: 34px;
  align-items: center;
}

.player-card {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  background: #111827;
  aspect-ratio: 16 / 9;
  box-shadow: 0 26px 60px rgba(17, 24, 39, 0.25);
}

.player-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #000;
}

.player-cover {
  position: absolute;
  inset: 0;
  z-index: 5;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 16px;
  border: 0;
  color: #fff;
  font-size: 18px;
  font-weight: 900;
  cursor: pointer;
  background: linear-gradient(135deg, rgba(17, 24, 39, 0.25), rgba(17, 24, 39, 0.72));
}

.player-cover.is-hidden {
  display: none;
}

.play-circle {
  width: 78px;
  height: 78px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: linear-gradient(135deg, #f43f5e, #ec4899);
  box-shadow: 0 20px 45px rgba(244, 63, 94, 0.38);
}

.detail-info .breadcrumb {
  color: #6b7280;
}

.detail-info .breadcrumb a:hover {
  color: #e11d48;
}

.detail-info h1 {
  font-size: clamp(34px, 4.2vw, 58px);
  color: #111827;
}

.detail-info .lead-text {
  color: #4b5563;
}

.detail-content {
  padding-top: 36px;
}

.article-card {
  padding: 30px;
  background: #fff;
}

.article-card p {
  color: #374151;
  line-height: 1.95;
  font-size: 17px;
}

.info-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin: 26px 0 0;
}

.info-list div {
  padding: 16px;
  border-radius: 16px;
  background: #f9fafb;
}

.info-list dt {
  color: #6b7280;
  font-size: 13px;
}

.info-list dd {
  margin: 6px 0 0;
  font-weight: 900;
}

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

.rank-row {
  display: grid;
  grid-template-columns: 40px 58px minmax(140px, 1fr) minmax(240px, 1.4fr) 90px;
  gap: 14px;
  align-items: center;
  padding: 12px 16px;
  border: 1px solid #f3f4f6;
  border-radius: 18px;
  background: #fff;
  transition: background 0.25s ease, transform 0.25s ease;
}

.rank-row b {
  color: #e11d48;
  text-align: right;
}

.site-footer {
  margin-top: 24px;
  background: linear-gradient(180deg, #f9fafb, #f3f4f6);
  border-top: 1px solid #e5e7eb;
}

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

.site-footer h3 {
  margin: 0 0 14px;
}

.site-footer p {
  color: #6b7280;
  line-height: 1.8;
}

.site-footer a {
  display: block;
  margin: 8px 0;
  color: #4b5563;
}

.site-footer a:hover {
  color: #e11d48;
}

.footer-bottom {
  padding: 18px;
  text-align: center;
  color: #6b7280;
  border-top: 1px solid #e5e7eb;
}

.back-top {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 45;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 999px;
  color: #fff;
  background: #e11d48;
  font-size: 20px;
  cursor: pointer;
  box-shadow: 0 16px 30px rgba(225, 29, 72, 0.3);
}

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

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

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

  .hero-search-wrap,
  .two-column,
  .detail-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: 850px;
  }

  .side-panel {
    position: static;
  }
}

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

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

  .hero {
    min-height: 920px;
  }

  .hero-content {
    min-height: 500px;
  }

  .hero-search-wrap {
    width: min(100% - 24px, 1280px);
    bottom: 16px;
  }

  .hero-controls {
    bottom: 370px;
  }

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

  .section-head,
  .category-panel-head {
    grid-template-columns: 1fr;
    display: grid;
    align-items: start;
  }

  .rank-row {
    grid-template-columns: 36px 52px minmax(0, 1fr);
  }

  .rank-row em,
  .rank-row b {
    grid-column: 3;
    text-align: left;
  }
}

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

  .movie-grid,
  .category-grid,
  .compact-grid,
  .footer-grid,
  .info-list {
    grid-template-columns: 1fr;
  }

  .hero-copy h1,
  .sub-hero h1,
  .detail-info h1 {
    font-size: 34px;
  }

  .hero-copy p,
  .sub-hero p,
  .lead-text {
    font-size: 16px;
  }
}
