* {
  box-sizing: border-box;
}

:root {
  color-scheme: light;
  --rose: #e11d48;
  --rose-dark: #be123c;
  --amber: #f59e0b;
  --text: #1f2937;
  --muted: #6b7280;
  --line: #e5e7eb;
  --soft: #fff7ed;
  --card: #ffffff;
  --shadow: 0 14px 38px rgba(15, 23, 42, 0.12);
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  color: var(--text);
  background: linear-gradient(180deg, #f9fafb 0%, #ffffff 42%, #fff7ed 100%);
}

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

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

button,
input,
select {
  font: inherit;
}

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

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

.site-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
  color: #111827;
  white-space: nowrap;
}

.logo-mark {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--rose), var(--amber));
  box-shadow: 0 12px 30px rgba(225, 29, 72, 0.25);
}

.logo-text {
  font-size: 20px;
}

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

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

.nav-link:hover,
.nav-link.is-active {
  color: var(--rose);
  background: #fff1f2;
}

.mobile-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 14px;
  background: #fff1f2;
  cursor: pointer;
}

.mobile-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  background: var(--rose);
  border-radius: 99px;
}

.mobile-nav {
  display: none;
  border-top: 1px solid var(--line);
  padding: 10px 18px 18px;
  background: #ffffff;
}

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

.mobile-link {
  padding: 12px 14px;
  border-radius: 14px;
  font-weight: 800;
  background: #f9fafb;
}

.mobile-link.is-active {
  color: var(--rose);
  background: #fff1f2;
}

main {
  min-height: 60vh;
}

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

.hero {
  position: relative;
  height: 70vh;
  min-height: 520px;
  overflow: hidden;
  background: linear-gradient(110deg, #881337, #78350f);
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.7s 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-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.76), rgba(0, 0, 0, 0.48), rgba(0, 0, 0, 0.08));
}

.hero-content {
  position: absolute;
  left: max(32px, calc((100vw - 1180px) / 2));
  bottom: 18%;
  width: min(680px, calc(100% - 72px));
  color: #ffffff;
}

.hero-pill,
.eyebrow {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  border-radius: 999px;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.hero-pill {
  padding: 7px 14px;
  background: var(--rose);
  color: #ffffff;
  box-shadow: 0 10px 28px rgba(225, 29, 72, 0.34);
}

.eyebrow {
  padding: 6px 12px;
  color: var(--rose);
  background: #fff1f2;
  margin-bottom: 12px;
}

.hero h1 {
  margin: 20px 0 16px;
  font-size: clamp(38px, 6vw, 72px);
  line-height: 1.02;
  letter-spacing: -0.04em;
}

.hero p {
  max-width: 620px;
  margin: 0;
  font-size: clamp(17px, 2vw, 22px);
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.86);
}

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

.primary-button,
.ghost-button,
.section-more {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 22px;
  border-radius: 14px;
  font-weight: 900;
  transition: 0.25s ease;
}

.primary-button {
  color: #ffffff;
  background: var(--rose);
  box-shadow: 0 16px 32px rgba(225, 29, 72, 0.34);
}

.primary-button:hover {
  background: var(--rose-dark);
  transform: translateY(-2px);
}

.ghost-button {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.34);
  backdrop-filter: blur(10px);
}

.ghost-button:hover {
  background: rgba(255, 255, 255, 0.26);
  transform: translateY(-2px);
}

.hero-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 50%;
  color: #ffffff;
  font-size: 34px;
  line-height: 1;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(10px);
  cursor: pointer;
  transition: 0.25s ease;
}

.hero-arrow:hover {
  background: rgba(255, 255, 255, 0.3);
}

.hero-prev {
  left: 18px;
}

.hero-next {
  right: 18px;
}

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

.hero-dot {
  width: 9px;
  height: 9px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.56);
  cursor: pointer;
  transition: 0.25s ease;
}

.hero-dot.is-active {
  width: 34px;
  background: #ffffff;
}

.intro-band {
  padding: 42px 0;
  background: #ffffff;
  border-bottom: 1px solid var(--line);
}

.intro-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.9fr;
  gap: 28px;
  align-items: center;
}

.intro-grid h2 {
  margin: 0 0 12px;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.18;
}

.intro-grid p {
  margin: 0;
  color: var(--muted);
  line-height: 1.8;
}

.home-search {
  display: flex;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: #ffffff;
  box-shadow: var(--shadow);
}

.home-search input {
  min-width: 0;
  flex: 1;
  border: 0;
  outline: 0;
  padding: 0 8px;
}

.home-search button,
.filter-panel button {
  border: 0;
  border-radius: 14px;
  padding: 0 20px;
  font-weight: 900;
  color: #ffffff;
  background: linear-gradient(135deg, var(--rose), var(--amber));
  cursor: pointer;
}

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

.section-warm {
  background: linear-gradient(90deg, #fff7ed, #fff1f2);
}

.section-light {
  background: #f9fafb;
}

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

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

.section-heading h2 {
  margin: 0;
  font-size: clamp(28px, 4vw, 38px);
  letter-spacing: -0.03em;
}

.section-heading p {
  margin: 10px 0 0;
  color: var(--muted);
  line-height: 1.7;
}

.section-more {
  color: var(--rose);
  background: #fff1f2;
}

.section-more:hover {
  background: #ffe4e6;
}

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

.movie-card {
  overflow: hidden;
  border-radius: 18px;
  background: var(--card);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
  transition: transform 0.28s ease, box-shadow 0.28s ease;
}

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

.movie-cover-link {
  position: relative;
  display: block;
  height: 230px;
  overflow: hidden;
  background: #e5e7eb;
}

.movie-card-large .movie-cover-link {
  height: 290px;
}

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

.movie-card:hover .movie-cover-link img {
  transform: scale(1.08);
}

.movie-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  padding: 5px 10px;
  border-radius: 999px;
  color: #ffffff;
  background: var(--rose);
  font-size: 12px;
  font-weight: 900;
}

.hover-play {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: #ffffff;
  font-size: 42px;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.55));
  opacity: 0;
  transition: opacity 0.3s ease;
}

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

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

.movie-card-content h3 {
  margin: 0 0 10px;
  font-size: 18px;
  line-height: 1.35;
}

.movie-card-content h3 a:hover {
  color: var(--rose);
}

.movie-card-content p {
  min-height: 48px;
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.movie-meta-line {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: #6b7280;
  font-size: 12px;
}

.movie-meta-line span {
  padding: 4px 8px;
  border-radius: 999px;
  background: #f3f4f6;
}

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

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

.category-tile {
  position: relative;
  min-height: 190px;
  overflow: hidden;
  border-radius: 22px;
  color: #ffffff;
  box-shadow: var(--shadow);
  isolation: isolate;
  transition: transform 0.28s ease;
}

.category-tile:hover {
  transform: translateY(-6px);
}

.category-tile img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
}

.category-tile::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(190, 18, 60, 0.86), rgba(245, 158, 11, 0.6));
  z-index: -1;
}

.category-tile span,
.category-tile strong {
  position: absolute;
  left: 24px;
}

.category-tile span {
  bottom: 62px;
  font-size: 28px;
  font-weight: 900;
}

.category-tile strong {
  bottom: 28px;
  font-size: 14px;
}

.page-hero {
  padding: 78px 0 54px;
  color: #ffffff;
  background: radial-gradient(circle at top left, rgba(251, 191, 36, 0.35), transparent 32%), linear-gradient(135deg, #881337, #78350f);
}

.slim-hero h1,
.detail-info h1 {
  margin: 0 0 16px;
  font-size: clamp(34px, 5vw, 56px);
  line-height: 1.08;
  letter-spacing: -0.04em;
}

.slim-hero p {
  max-width: 820px;
  margin: 0;
  color: rgba(255, 255, 255, 0.84);
  line-height: 1.8;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-bottom: 22px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 14px;
}

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

.filter-panel {
  margin-top: -26px;
  position: relative;
  z-index: 4;
}

.filter-shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 0.8fr);
  gap: 14px;
  padding: 16px;
  border-radius: 22px;
  background: #ffffff;
  box-shadow: var(--shadow);
}

.filter-shell label {
  display: grid;
  gap: 8px;
  color: #374151;
  font-size: 13px;
  font-weight: 900;
}

.filter-shell input,
.filter-shell select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px 13px;
  outline: 0;
  background: #ffffff;
}

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

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

.rank-card {
  display: grid;
  grid-template-columns: 74px 120px 1fr;
  gap: 18px;
  align-items: center;
  padding: 16px;
  border-radius: 22px;
  background: #ffffff;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
}

.rank-number {
  display: grid;
  place-items: center;
  height: 74px;
  border-radius: 18px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--rose), var(--amber));
  font-size: 25px;
  font-weight: 950;
}

.rank-cover {
  height: 150px;
  overflow: hidden;
  border-radius: 16px;
  background: #e5e7eb;
}

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

.rank-info h3 {
  margin: 0 0 10px;
  font-size: 22px;
}

.rank-info p {
  margin: 0 0 14px;
  color: var(--muted);
  line-height: 1.7;
}

.detail-hero {
  padding: 58px 0;
  color: #ffffff;
  background: radial-gradient(circle at 18% 8%, rgba(251, 191, 36, 0.34), transparent 28%), linear-gradient(135deg, #111827, #881337 54%, #78350f);
}

.detail-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 36px;
  align-items: center;
}

.detail-poster {
  overflow: hidden;
  border-radius: 24px;
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.42);
}

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

.detail-info .breadcrumb {
  margin-bottom: 18px;
}

.detail-one-line {
  max-width: 820px;
  margin: 0 0 22px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 19px;
  line-height: 1.8;
}

.detail-meta,
.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.detail-meta span,
.tag-list span {
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  color: #ffffff;
  font-weight: 800;
}

.tag-list {
  margin-top: 14px;
}

.player-section {
  padding-top: 54px;
  padding-bottom: 36px;
  background: #0f172a;
}

.player-card {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  background: #000000;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
  aspect-ratio: 16 / 9;
}

.movie-player {
  width: 100%;
  height: 100%;
  display: block;
  background: #000000;
}

.player-layer {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: radial-gradient(circle, rgba(0, 0, 0, 0.08), rgba(0, 0, 0, 0.58));
  cursor: pointer;
  z-index: 2;
}

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

.player-start {
  display: grid;
  place-items: center;
  gap: 12px;
  width: 148px;
  height: 148px;
  border: 0;
  border-radius: 50%;
  color: #ffffff;
  background: linear-gradient(135deg, var(--rose), var(--amber));
  box-shadow: 0 20px 50px rgba(225, 29, 72, 0.42);
  cursor: pointer;
}

.player-start span {
  font-size: 40px;
  line-height: 1;
  transform: translateX(3px);
}

.player-start strong {
  font-size: 15px;
}

.detail-text-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.text-card {
  padding: 28px;
  border-radius: 22px;
  background: #ffffff;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
}

.text-card h2 {
  margin: 0 0 16px;
  font-size: 26px;
}

.text-card p {
  margin: 0;
  color: #4b5563;
  line-height: 1.9;
}

.site-footer {
  background: #111827;
  color: #d1d5db;
}

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

.footer-brand h2,
.footer-group h3 {
  margin: 0 0 14px;
  color: #ffffff;
}

.footer-brand p {
  margin: 0;
  line-height: 1.8;
}

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

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

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

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.09);
  padding: 18px;
  text-align: center;
  color: #9ca3af;
}

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

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

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

  .mobile-toggle {
    display: block;
  }

  .hero {
    min-height: 560px;
  }

  .hero-content {
    left: 22px;
    bottom: 16%;
    width: calc(100% - 44px);
  }

  .hero-arrow {
    display: none;
  }

  .intro-grid,
  .detail-layout,
  .detail-text-grid,
  .footer-shell {
    grid-template-columns: 1fr;
  }

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

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

  .rank-card {
    grid-template-columns: 54px 88px 1fr;
    gap: 12px;
  }

  .rank-number {
    height: 54px;
    font-size: 18px;
  }

  .rank-cover {
    height: 112px;
  }
}

@media (max-width: 560px) {
  .section-block {
    padding: 48px 0;
  }

  .section-heading,
  .home-search {
    display: grid;
  }

  .movie-grid,
  .category-grid,
  .category-grid-wide,
  .filter-shell {
    grid-template-columns: 1fr;
  }

  .movie-cover-link,
  .movie-card-large .movie-cover-link {
    height: 260px;
  }

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

  .rank-number {
    width: 64px;
  }

  .rank-cover {
    height: 240px;
  }

  .player-start {
    width: 112px;
    height: 112px;
  }
}
