:root {
  color-scheme: light;
  --red: #ef4444;
  --red-deep: #dc2626;
  --pink: #ec4899;
  --pink-soft: #fff1f2;
  --mint: #10b981;
  --ink: #111827;
  --muted: #6b7280;
  --line: #e5e7eb;
  --surface: #ffffff;
  --soft: #f9fafb;
  --shadow: 0 18px 55px rgba(17, 24, 39, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--ink);
  background: linear-gradient(180deg, #fff7f7 0%, #ffffff 36%, #fffafa 100%);
  line-height: 1.6;
}

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

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

button,
input,
select {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid rgba(229, 231, 235, 0.75);
  backdrop-filter: blur(18px);
  box-shadow: 0 10px 35px rgba(17, 24, 39, 0.06);
}

.nav-shell {
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto;
  min-height: 72px;
  display: flex;
  align-items: center;
  gap: 24px;
}

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.brand {
  font-size: 22px;
  white-space: nowrap;
}

.brand-icon {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  color: #ffffff;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--red), var(--pink));
  box-shadow: 0 12px 28px rgba(239, 68, 68, 0.28);
  font-size: 15px;
}

.nav-panel {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

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

.nav-link {
  padding: 10px 14px;
  border-radius: 999px;
  color: #374151;
  font-weight: 700;
  transition: 0.25s ease;
}

.nav-link:hover,
.nav-link.is-active {
  color: var(--red-deep);
  background: var(--pink-soft);
}

.nav-search {
  display: flex;
  align-items: center;
  gap: 8px;
  width: min(370px, 100%);
}

.nav-search input,
.filter-input,
.filter-select {
  width: 100%;
  border: 1px solid var(--line);
  background: #ffffff;
  border-radius: 999px;
  padding: 12px 16px;
  color: var(--ink);
  outline: none;
  transition: 0.25s ease;
}

.nav-search input:focus,
.filter-input:focus,
.filter-select:focus {
  border-color: rgba(239, 68, 68, 0.55);
  box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.1);
}

.nav-search button,
.primary-btn,
.secondary-btn,
.hero-search button {
  border: 0;
  cursor: pointer;
  color: #ffffff;
  padding: 12px 18px;
  border-radius: 999px;
  font-weight: 800;
  background: linear-gradient(135deg, var(--red), var(--pink));
  box-shadow: 0 14px 30px rgba(239, 68, 68, 0.28);
  transition: 0.25s ease;
  white-space: nowrap;
}

.nav-search button:hover,
.primary-btn:hover,
.hero-search button:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 38px rgba(239, 68, 68, 0.35);
}

.secondary-btn {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.4);
  box-shadow: none;
}

.quick-links {
  display: none;
}

.nav-toggle {
  display: none;
  margin-left: auto;
  border: 0;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: var(--pink-soft);
  color: var(--red-deep);
  cursor: pointer;
  font-size: 22px;
}

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

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.75s ease;
}

.hero-slide.is-active {
  opacity: 1;
  pointer-events: auto;
}

.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.03);
  transition: transform 6s ease;
}

.hero-slide.is-active .hero-bg {
  transform: scale(1.08);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 78% 30%, rgba(236, 72, 153, 0.3), transparent 28%), linear-gradient(90deg, rgba(17, 24, 39, 0.9) 0%, rgba(17, 24, 39, 0.72) 42%, rgba(17, 24, 39, 0.2) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  min-height: 650px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto;
  color: #ffffff;
  max-width: 760px;
}

.hero-content h1,
.hero-content h2 {
  margin: 0;
  font-size: clamp(42px, 7vw, 82px);
  line-height: 1;
  letter-spacing: -0.06em;
}

.hero-content h1 span,
.hero-content h2 span {
  color: #fca5a5;
}

.hero-title-sub {
  margin-top: 12px;
  font-size: clamp(28px, 5vw, 54px);
  line-height: 1.12;
  font-weight: 900;
}

.hero-content p {
  max-width: 680px;
  margin: 20px 0 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: clamp(17px, 2vw, 23px);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  gap: 8px;
  color: #ffe4e6;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(14px);
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 14px;
  font-weight: 800;
  margin: 0 0 18px;
}

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

.hero-search {
  margin-top: 30px;
  width: min(560px, 100%);
  display: flex;
  gap: 10px;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.22);
  padding: 8px;
  border-radius: 999px;
  backdrop-filter: blur(18px);
}

.hero-search input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: none;
  background: transparent;
  color: #ffffff;
  padding: 10px 14px;
}

.hero-search input::placeholder {
  color: rgba(255, 255, 255, 0.72);
}

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

.hero-dot {
  width: 44px;
  height: 5px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.35);
}

.hero-dot.is-active {
  background: linear-gradient(135deg, var(--red), var(--pink));
}

.section,
.page-section {
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto;
  padding: 72px 0;
}

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

.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--red-deep);
  font-weight: 900;
  margin: 0 0 8px;
}

.section-title h2,
.section-title h1 {
  margin: 0;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.1;
  letter-spacing: -0.04em;
}

.section-title p {
  margin: 10px 0 0;
  color: var(--muted);
}

.more-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--red-deep);
  font-weight: 900;
}

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

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

.movie-card {
  overflow: hidden;
  border-radius: 22px;
  background: var(--surface);
  box-shadow: 0 8px 30px rgba(17, 24, 39, 0.08);
  border: 1px solid rgba(229, 231, 235, 0.8);
  transition: 0.28s ease;
}

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

.poster-link {
  position: relative;
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: linear-gradient(135deg, #111827, #ef4444);
}

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

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

.poster-shade {
  position: absolute;
  inset: 0;
  opacity: 0;
  background: rgba(17, 24, 39, 0.45);
  transition: 0.28s ease;
}

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

.poster-play {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  transform: translate(-50%, -50%) scale(0.82);
  opacity: 0;
  color: var(--red-deep);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 16px 35px rgba(0, 0, 0, 0.22);
  transition: 0.28s ease;
}

.movie-card:hover .poster-play {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.poster-year {
  position: absolute;
  right: 12px;
  top: 12px;
  color: #ffffff;
  background: rgba(17, 24, 39, 0.72);
  border-radius: 999px;
  padding: 5px 10px;
  font-size: 12px;
  font-weight: 800;
}

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

.movie-channel {
  display: inline-flex;
  margin-bottom: 10px;
  color: var(--red-deep);
  background: var(--pink-soft);
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 900;
}

.movie-card h2,
.rank-item h2 {
  margin: 0;
  font-size: 19px;
  line-height: 1.35;
}

.movie-card h2 a:hover,
.rank-item h2 a:hover {
  color: var(--red-deep);
}

.movie-card p,
.rank-item p {
  color: var(--muted);
  margin: 10px 0 0;
  font-size: 14px;
}

.movie-meta,
.rank-meta,
.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
  color: #4b5563;
  font-size: 13px;
}

.movie-meta span,
.rank-meta span,
.detail-meta span {
  padding: 5px 9px;
  border-radius: 999px;
  background: #f3f4f6;
}

.movie-tags,
.detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.movie-tags span,
.detail-tags a,
.detail-tags span {
  color: #be123c;
  background: #fff1f2;
  border-radius: 999px;
  padding: 5px 9px;
  font-size: 12px;
  font-weight: 800;
}

.category-band {
  padding: 72px 0;
  background: linear-gradient(135deg, #ffe4e6 0%, #fff7ed 52%, #ffffff 100%);
}

.category-grid {
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.category-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 170px;
  padding: 22px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 16px 45px rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.72);
  transition: 0.28s ease;
}

.category-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 24px 60px rgba(239, 68, 68, 0.18);
}

.category-icon {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  color: #ffffff;
  border-radius: 18px;
  background: linear-gradient(135deg, var(--red), var(--pink));
}

.category-card h2 {
  margin: 0;
  font-size: 22px;
}

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

.rank-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
  gap: 26px;
}

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

.rank-item {
  display: grid;
  grid-template-columns: auto 130px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  padding: 14px;
  border-radius: 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: 0 8px 28px rgba(17, 24, 39, 0.06);
}

.rank-num {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  color: #ffffff;
  border-radius: 15px;
  background: linear-gradient(135deg, var(--red), var(--pink));
  font-weight: 900;
}

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

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

.page-hero {
  min-height: 360px;
  display: flex;
  align-items: center;
  color: #ffffff;
  background: radial-gradient(circle at 78% 20%, rgba(236, 72, 153, 0.48), transparent 30%), linear-gradient(135deg, #111827 0%, #7f1d1d 55%, #be123c 100%);
}

.page-hero > div {
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto;
}

.page-hero h1 {
  margin: 0;
  font-size: clamp(38px, 6vw, 70px);
  line-height: 1.05;
  letter-spacing: -0.05em;
}

.page-hero p {
  max-width: 760px;
  margin: 18px 0 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: 20px;
}

.small-hero {
  min-height: 310px;
}

.filter-panel {
  width: min(1240px, calc(100% - 32px));
  margin: -38px auto 0;
  position: relative;
  z-index: 4;
  display: grid;
  grid-template-columns: 2fr repeat(3, minmax(150px, 1fr));
  gap: 12px;
  padding: 18px;
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.detail-wrap {
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto;
  padding: 34px 0 72px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--muted);
  font-size: 14px;
  margin-bottom: 22px;
}

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

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

.player-card {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  background: #000000;
  box-shadow: 0 30px 75px rgba(17, 24, 39, 0.28);
}

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

.player-cover {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  border: 0;
  cursor: pointer;
  color: #ffffff;
  background: linear-gradient(180deg, rgba(17, 24, 39, 0.24), rgba(17, 24, 39, 0.72));
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

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

.player-cover-inner {
  display: grid;
  justify-items: center;
  gap: 12px;
  text-align: center;
}

.big-play {
  width: 86px;
  height: 86px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--red-deep);
  background: rgba(255, 255, 255, 0.93);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.24);
  font-size: 28px;
}

.player-cover strong {
  font-size: clamp(24px, 4vw, 42px);
  line-height: 1.1;
}

.player-cover span:last-child {
  color: rgba(255, 255, 255, 0.76);
}

.detail-info,
.detail-box,
.related-box {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 24px;
  box-shadow: 0 12px 35px rgba(17, 24, 39, 0.08);
}

.detail-info h1 {
  margin: 0;
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1.1;
  letter-spacing: -0.04em;
}

.detail-info .lead {
  color: #374151;
  margin: 18px 0 0;
  font-size: 18px;
}

.detail-box {
  margin-top: 24px;
}

.detail-box h2,
.related-box h2 {
  margin: 0 0 14px;
  font-size: 24px;
}

.detail-box p {
  color: #374151;
  margin: 0;
  white-space: pre-line;
}

.related-box {
  margin-top: 28px;
}

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

.site-footer {
  margin-top: 40px;
  color: #d1d5db;
  background: linear-gradient(135deg, #111827, #1f2937 55%, #7f1d1d);
}

.footer-grid {
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto;
  padding: 48px 0;
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 30px;
}

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

.site-footer p {
  max-width: 420px;
  color: #9ca3af;
}

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

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

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

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

.footer-bottom {
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto;
  padding: 18px 0 26px;
  color: #9ca3af;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.empty-state {
  display: none;
  margin: 26px auto 0;
  width: min(1240px, calc(100% - 32px));
  padding: 30px;
  border-radius: 22px;
  text-align: center;
  color: var(--muted);
  background: #ffffff;
  border: 1px solid var(--line);
}

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

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

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

@media (max-width: 860px) {
  .nav-toggle {
    display: inline-grid;
    place-items: center;
  }

  .nav-shell {
    min-height: 66px;
    flex-wrap: wrap;
  }

  .nav-panel {
    display: none;
    width: 100%;
    padding: 0 0 18px;
  }

  .nav-panel.is-open {
    display: grid;
    gap: 14px;
  }

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

  .nav-link {
    text-align: center;
  }

  .nav-search {
    width: 100%;
  }

  .quick-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
  }

  .quick-links a {
    color: var(--red-deep);
    background: var(--pink-soft);
    border-radius: 999px;
    padding: 7px 10px;
    font-size: 13px;
    font-weight: 800;
  }

  .hero-slider,
  .hero-content {
    min-height: 590px;
  }

  .hero-search,
  .filter-panel {
    grid-template-columns: 1fr;
  }

  .hero-search {
    border-radius: 24px;
    flex-direction: column;
  }

  .movie-grid,
  .movie-grid.three-cols,
  .category-grid,
  .related-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

@media (max-width: 580px) {
  .brand {
    font-size: 18px;
  }

  .hero-slider,
  .hero-content {
    min-height: 560px;
  }

  .hero-actions {
    flex-direction: column;
  }

  .primary-btn,
  .secondary-btn {
    text-align: center;
  }

  .movie-grid,
  .movie-grid.three-cols,
  .category-grid,
  .related-grid {
    grid-template-columns: 1fr;
  }

  .rank-item {
    grid-template-columns: auto 95px minmax(0, 1fr);
    gap: 10px;
  }

  .rank-cover {
    border-radius: 12px;
  }

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