:root {
  --rose: #e11d48;
  --rose-dark: #be123c;
  --orange: #f97316;
  --amber: #f59e0b;
  --ink: #111827;
  --muted: #6b7280;
  --line: #e5e7eb;
  --panel: #ffffff;
  --soft: #fff7ed;
  --shadow: 0 18px 50px rgba(17, 24, 39, 0.10);
  --shadow-hover: 0 24px 60px rgba(225, 29, 72, 0.18);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(16px);
  box-shadow: 0 10px 30px rgba(17, 24, 39, 0.08);
}

.header-inner {
  max-width: 1280px;
  height: 76px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: max-content;
}

.brand-mark {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: #ffffff;
  font-size: 17px;
  background: linear-gradient(135deg, #fb7185, #fb923c);
  box-shadow: 0 12px 24px rgba(251, 113, 133, 0.35);
  transform: translateZ(0);
}

.brand-name {
  font-size: clamp(18px, 2vw, 25px);
  font-weight: 900;
  letter-spacing: -0.03em;
  background: linear-gradient(90deg, #e11d48, #f97316);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.desktop-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 20px;
  font-size: 15px;
  font-weight: 700;
}

.nav-link {
  color: #374151;
  transition: color 0.2s ease, transform 0.2s ease;
}

.nav-link:hover,
.nav-link.is-active {
  color: var(--rose);
  transform: translateY(-1px);
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 12px;
  background: #fff1f2;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}

.nav-toggle span {
  width: 20px;
  height: 2px;
  border-radius: 999px;
  background: var(--rose-dark);
}

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

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

.mobile-link {
  padding: 12px 10px;
  border-radius: 12px;
  font-weight: 700;
  color: #374151;
}

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

.hero {
  position: relative;
  min-height: 600px;
  overflow: hidden;
  background: linear-gradient(100deg, #ffe4e6, #fffbeb 55%, #fff7ed);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 20%, rgba(244, 63, 94, 0.18), transparent 30%),
    radial-gradient(circle at 80% 10%, rgba(249, 115, 22, 0.18), transparent 28%),
    linear-gradient(90deg, rgba(255, 255, 255, 0.38), transparent);
  pointer-events: none;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: scale(1.02);
  transition: opacity 0.7s ease, transform 0.7s ease;
  pointer-events: none;
}

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

.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  filter: saturate(1.05);
}

.hero-content {
  position: relative;
  max-width: 1280px;
  min-height: 600px;
  margin: 0 auto;
  padding: 74px 24px 82px;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(260px, 420px);
  gap: 56px;
  align-items: center;
}

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

.eyebrow {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  color: var(--rose-dark);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.08em;
  box-shadow: 0 10px 26px rgba(225, 29, 72, 0.12);
}

.hero h1,
.page-hero h1 {
  margin: 24px 0 22px;
  color: #111827;
  font-weight: 950;
  letter-spacing: -0.055em;
  line-height: 1.08;
}

.hero h1 {
  font-size: clamp(42px, 6vw, 76px);
}

.hero h1 span,
.page-hero h1 span {
  background: linear-gradient(90deg, var(--rose), var(--orange));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero p {
  max-width: 680px;
  margin: 0 0 24px;
  color: #4b5563;
  font-size: clamp(17px, 2vw, 22px);
}

.hero-tags,
.tag-row,
.filter-chips,
.category-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-tag,
.tag,
.category-chips a,
.filter-chip {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  border: 1px solid rgba(251, 113, 133, 0.22);
  background: rgba(255, 255, 255, 0.78);
  color: #9f1239;
  font-size: 13px;
  font-weight: 800;
  padding: 7px 12px;
}

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

.primary-btn,
.secondary-btn,
.home-search button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 48px;
  padding: 0 24px;
  border-radius: 999px;
  border: 0;
  font-weight: 900;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.primary-btn,
.home-search button {
  color: #ffffff;
  background: linear-gradient(90deg, #f43f5e, #f97316);
  box-shadow: 0 16px 34px rgba(244, 63, 94, 0.28);
}

.secondary-btn {
  color: #1f2937;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(209, 213, 219, 0.88);
}

.primary-btn:hover,
.secondary-btn:hover,
.home-search button:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
}

.hero-cover {
  position: relative;
  display: block;
  min-height: 460px;
  border-radius: 30px;
  overflow: hidden;
  background: linear-gradient(135deg, #ffe4e6, #fed7aa);
  box-shadow: 0 26px 70px rgba(127, 29, 29, 0.28);
}

.hero-cover img {
  width: 100%;
  height: 100%;
  min-height: 460px;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.hero-cover:hover img {
  transform: scale(1.06);
}

.hero-play {
  position: absolute;
  left: 24px;
  bottom: 24px;
  width: 62px;
  height: 62px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  background: rgba(225, 29, 72, 0.92);
  box-shadow: 0 18px 34px rgba(190, 18, 60, 0.34);
}

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

.hero-dot {
  width: 10px;
  height: 10px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(225, 29, 72, 0.26);
  cursor: pointer;
  transition: width 0.25s ease, background 0.25s ease;
}

.hero-dot.is-active {
  width: 32px;
  background: var(--rose);
}

.search-entrance {
  max-width: 1120px;
  margin: -44px auto 0;
  position: relative;
  z-index: 8;
  padding: 0 24px;
}

.home-search {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  padding: 14px;
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: var(--shadow);
}

.home-search input,
.card-search {
  width: 100%;
  min-height: 52px;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 0 18px;
  color: var(--ink);
  background: #ffffff;
  outline: none;
  font-size: 15px;
}

.home-search input:focus,
.card-search:focus {
  border-color: #fb7185;
  box-shadow: 0 0 0 4px rgba(251, 113, 133, 0.15);
}

.category-chips {
  justify-content: center;
  margin-top: 18px;
}

.category-chips a:hover,
.filter-chip:hover,
.filter-chip.is-active {
  color: #ffffff;
  background: linear-gradient(90deg, #f43f5e, #f97316);
  border-color: transparent;
}

.content-section {
  max-width: 1280px;
  margin: 0 auto;
  padding: 72px 24px;
}

.content-section.no-padding {
  padding-top: 0;
  padding-bottom: 0;
}

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

.section-heading.centered {
  justify-content: center;
  text-align: center;
}

.section-heading h2,
.article-section h2 {
  margin: 0 0 8px;
  font-size: clamp(26px, 3vw, 36px);
  font-weight: 950;
  letter-spacing: -0.035em;
  color: #111827;
}

.section-heading p,
.article-section p,
.page-hero p {
  margin: 0;
  color: var(--muted);
}

.text-link {
  min-width: max-content;
  color: var(--rose-dark);
  font-weight: 900;
}

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

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

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

.movie-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 24px;
  background: #ffffff;
  box-shadow: 0 12px 36px rgba(17, 24, 39, 0.09);
  border: 1px solid rgba(229, 231, 235, 0.78);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
  border-color: rgba(251, 113, 133, 0.32);
}

.movie-poster {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: linear-gradient(135deg, #ffe4e6, #fed7aa);
}

.movie-card-compact .movie-poster {
  aspect-ratio: 1 / 1;
}

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

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

.year-badge,
.rank-badge {
  position: absolute;
  top: 12px;
  z-index: 2;
  padding: 5px 10px;
  border-radius: 999px;
  color: #ffffff;
  font-size: 12px;
  font-weight: 900;
  box-shadow: 0 10px 20px rgba(17, 24, 39, 0.16);
}

.year-badge {
  right: 12px;
  background: rgba(17, 24, 39, 0.72);
}

.rank-badge {
  left: 12px;
  background: linear-gradient(90deg, #f43f5e, #f97316);
}

.movie-card-body {
  display: grid;
  gap: 10px;
  padding: 18px;
}

.movie-card h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 900;
  letter-spacing: -0.02em;
  color: #111827;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

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

.movie-card p {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 46px;
  margin: 0;
  color: #6b7280;
  font-size: 14px;
}

.movie-meta,
.ranking-meta,
.detail-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.movie-meta span,
.ranking-meta span,
.detail-meta span {
  display: inline-flex;
  align-items: center;
  min-height: 25px;
  padding: 3px 9px;
  border-radius: 999px;
  color: #4b5563;
  background: #f3f4f6;
  font-size: 12px;
  font-weight: 800;
}

.trend-band {
  padding: 72px 0;
  background: linear-gradient(90deg, #fffbeb, #fff7ed, #fff1f2);
}

.new-band {
  padding: 72px 0;
  background: linear-gradient(90deg, #eff6ff, #ecfeff, #f0fdfa);
}

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

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

.ranking-item {
  display: grid;
  grid-template-columns: 54px 86px minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  border: 1px solid rgba(229, 231, 235, 0.82);
  border-radius: 20px;
  padding: 14px;
  background: #ffffff;
  box-shadow: 0 10px 30px rgba(17, 24, 39, 0.06);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.ranking-item:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
}

.ranking-number {
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  background: linear-gradient(135deg, #f43f5e, #f97316);
  color: #ffffff;
  font-weight: 950;
}

.ranking-thumb {
  width: 86px;
  height: 86px;
  overflow: hidden;
  border-radius: 16px;
  background: linear-gradient(135deg, #ffe4e6, #fed7aa);
}

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

.ranking-content h3 {
  margin: 0 0 6px;
  font-size: 18px;
  font-weight: 900;
}

.ranking-content p {
  margin: 0 0 8px;
  color: #6b7280;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.ranking-score {
  color: var(--rose-dark);
  font-size: 20px;
}

.page-main {
  min-height: 60vh;
}

.page-hero {
  position: relative;
  max-width: 1280px;
  margin: 0 auto;
  padding: 76px 24px 42px;
}

.page-hero::after {
  content: "";
  position: absolute;
  top: 36px;
  right: 24px;
  width: 240px;
  height: 240px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(251, 113, 133, 0.22), transparent 70%);
  z-index: -1;
}

.page-hero h1 {
  font-size: clamp(36px, 5vw, 64px);
}

.slim-hero,
.channel-hero,
.rank-hero,
.search-hero {
  min-height: 290px;
}

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

.category-card {
  min-height: 220px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border-radius: 26px;
  padding: 24px;
  color: #111827;
  background: linear-gradient(145deg, #ffffff, #fff7ed);
  border: 1px solid rgba(251, 113, 133, 0.18);
  box-shadow: 0 14px 42px rgba(17, 24, 39, 0.08);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

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

.category-kicker {
  color: var(--rose-dark);
  font-size: 13px;
  font-weight: 900;
}

.category-card h2 {
  margin: 12px 0 8px;
  font-size: 24px;
  font-weight: 950;
}

.category-card p {
  color: #6b7280;
  font-size: 14px;
}

.category-card strong {
  color: var(--rose-dark);
}

.filter-panel {
  margin-bottom: 28px;
  display: grid;
  gap: 14px;
  padding: 18px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow);
}

.filter-chip {
  cursor: pointer;
}

.movie-card.is-hidden,
.ranking-item.is-hidden {
  display: none;
}

.breadcrumb {
  max-width: 1280px;
  margin: 0 auto;
  padding: 28px 24px 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: #6b7280;
  font-weight: 700;
}

.breadcrumb a {
  color: var(--rose-dark);
}

.detail-layout {
  max-width: 1280px;
  margin: 0 auto;
  padding: 28px 24px 38px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 28px;
  align-items: start;
}

.detail-player-card,
.side-card,
.article-section {
  border-radius: 26px;
  background: #ffffff;
  box-shadow: var(--shadow);
  overflow: hidden;
}

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

.movie-video {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  background: #000000;
}

.player-start {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 88px;
  height: 88px;
  border: 0;
  border-radius: 999px;
  color: #ffffff;
  background: linear-gradient(135deg, rgba(244, 63, 94, 0.96), rgba(249, 115, 22, 0.96));
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.32);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.player-start span {
  transform: translateX(3px);
  font-size: 30px;
}

.player-start:hover {
  transform: scale(1.06);
}

.player-shell.is-playing .player-start {
  opacity: 0;
  pointer-events: none;
}

.detail-content {
  padding: 26px;
}

.detail-content h1 {
  margin: 0 0 14px;
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 950;
  letter-spacing: -0.035em;
}

.one-line {
  margin: 18px 0;
  color: #4b5563;
  font-size: 17px;
}

.side-poster {
  display: block;
  overflow: hidden;
  border-radius: 26px;
  background: linear-gradient(135deg, #ffe4e6, #fed7aa);
  box-shadow: var(--shadow);
  margin-bottom: 20px;
}

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

.side-card {
  padding: 22px;
}

.side-card h2 {
  margin: 0 0 16px;
  font-size: 22px;
  font-weight: 950;
}

.side-card dl {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 10px 12px;
  margin: 0;
}

.side-card dt {
  color: #6b7280;
  font-weight: 800;
}

.side-card dd {
  margin: 0;
  color: #111827;
  font-weight: 800;
}

.side-card a {
  color: var(--rose-dark);
}

.article-section {
  padding: 34px;
}

.article-section p {
  margin-bottom: 26px;
  font-size: 17px;
  line-height: 1.9;
  color: #374151;
}

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

.footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 56px 24px;
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr);
  gap: 34px;
}

.footer-block h2,
.footer-block h3 {
  margin: 0 0 16px;
  color: #ffffff;
  font-weight: 950;
}

.footer-block p {
  margin: 0;
  color: #9ca3af;
}

.footer-block ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

.footer-block a {
  color: #9ca3af;
}

.footer-block a:hover {
  color: #fb7185;
}

.footer-chip {
  display: inline-flex;
  width: fit-content;
  margin-top: 18px;
  padding: 8px 12px;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.12);
}

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

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

  .nav-toggle {
    display: inline-flex;
  }

  .hero-content,
  .detail-layout,
  .footer-inner {
    grid-template-columns: 1fr;
  }

  .hero-cover {
    max-width: 420px;
  }

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

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

@media (max-width: 760px) {
  .header-inner {
    height: 66px;
    padding: 0 16px;
  }

  .brand-name {
    font-size: 18px;
  }

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

  .hero-content {
    padding: 44px 18px 86px;
    gap: 28px;
  }

  .hero-cover,
  .hero-cover img {
    min-height: 320px;
  }

  .home-search {
    grid-template-columns: 1fr;
  }

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

  .movie-grid,
  .featured-grid,
  .small-grid,
  .listing-grid,
  .category-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
  }

  .content-section {
    padding: 48px 16px;
  }

  .page-hero {
    padding: 54px 16px 30px;
  }

  .ranking-item {
    grid-template-columns: 40px 64px minmax(0, 1fr);
  }

  .ranking-score {
    display: none;
  }

  .ranking-thumb {
    width: 64px;
    height: 64px;
  }

  .detail-layout,
  .breadcrumb {
    padding-left: 16px;
    padding-right: 16px;
  }

  .article-section {
    padding: 24px;
  }
}

@media (max-width: 480px) {
  .movie-grid,
  .featured-grid,
  .small-grid,
  .listing-grid,
  .category-grid {
    grid-template-columns: 1fr;
  }

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

  .movie-card-compact .movie-poster {
    aspect-ratio: 3 / 4;
  }
}
