
:root {
  --rose: #f43f5e;
  --rose-dark: #be123c;
  --pink: #ec4899;
  --amber: #f59e0b;
  --ink: #111827;
  --muted: #6b7280;
  --line: #e5e7eb;
  --soft: #fff1f2;
  --paper: #ffffff;
  --dark: #0f172a;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

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: 60;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(244, 63, 94, 0.12);
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.08);
}

.header-inner {
  width: min(1180px, calc(100% - 32px));
  min-height: 76px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 24px;
}

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

.brand-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  color: #fff;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--pink), var(--rose));
  box-shadow: 0 12px 24px rgba(244, 63, 94, 0.3);
}

.brand-text {
  font-size: clamp(20px, 2vw, 28px);
  background: linear-gradient(90deg, var(--rose), var(--pink), var(--amber));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-left: auto;
}

.nav-link,
.mobile-link {
  position: relative;
  padding: 8px 4px;
  color: #374151;
  font-weight: 700;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background: var(--rose);
  transition: width 0.25s ease;
}

.nav-link:hover,
.nav-link.is-active,
.mobile-link:hover,
.mobile-link.is-active {
  color: var(--rose-dark);
}

.nav-link:hover::after,
.nav-link.is-active::after {
  width: 100%;
}

.header-search {
  display: flex;
  align-items: center;
  gap: 8px;
}

.header-search input,
.mobile-search input,
.filter-input,
.filter-select {
  height: 42px;
  border: 2px solid #f3d1d9;
  border-radius: 999px;
  outline: none;
  padding: 0 18px;
  color: #374151;
  background: #fff;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.header-search input:focus,
.mobile-search input:focus,
.filter-input:focus,
.filter-select:focus {
  border-color: var(--rose);
  box-shadow: 0 0 0 4px rgba(244, 63, 94, 0.12);
}

.header-search button,
.mobile-search button,
.primary-button,
.secondary-button,
.player-button,
.filter-button {
  border: 0;
  cursor: pointer;
  border-radius: 999px;
  font-weight: 800;
}

.header-search button,
.mobile-search button,
.primary-button,
.filter-button {
  color: #fff;
  background: linear-gradient(90deg, var(--pink), var(--rose));
  box-shadow: 0 12px 24px rgba(244, 63, 94, 0.22);
}

.header-search button,
.mobile-search button {
  height: 42px;
  padding: 0 18px;
}

.menu-toggle {
  display: none;
  margin-left: auto;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 12px;
  background: var(--soft);
  color: var(--rose-dark);
  font-size: 22px;
  cursor: pointer;
}

.mobile-panel {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto 16px;
  padding: 14px;
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 16px 38px rgba(15, 23, 42, 0.1);
}

.mobile-search {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
}

.mobile-search input {
  flex: 1;
  min-width: 0;
}

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

.mobile-link {
  padding: 12px 14px;
  border-radius: 14px;
  background: #fff7fb;
}

.page-section,
.hero-inner,
.footer-grid {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.hero {
  position: relative;
  overflow: hidden;
  min-height: 680px;
  background:
    radial-gradient(circle at 18% 18%, rgba(244, 114, 182, 0.35), transparent 28%),
    radial-gradient(circle at 80% 10%, rgba(245, 158, 11, 0.3), transparent 26%),
    linear-gradient(135deg, #fff1f2 0%, #fdf2f8 45%, #fffbeb 100%);
}

.hero::before,
.hero::after {
  content: "";
  position: absolute;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  filter: blur(20px);
  opacity: 0.36;
  animation: floatBlob 12s ease-in-out infinite alternate;
}

.hero::before {
  top: 90px;
  left: -80px;
  background: #f472b6;
}

.hero::after {
  right: -70px;
  bottom: 70px;
  background: #fbbf24;
  animation-delay: 2s;
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 0.85fr);
  align-items: center;
  gap: 52px;
  padding: 92px 0 76px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 999px;
  color: var(--rose-dark);
  background: rgba(255, 255, 255, 0.76);
  box-shadow: 0 14px 40px rgba(244, 63, 94, 0.14);
  font-weight: 800;
}

.hero h1,
.page-hero h1,
.detail-title h1 {
  margin: 20px 0 18px;
  font-weight: 950;
  line-height: 1.05;
  letter-spacing: -0.06em;
}

.hero h1 {
  font-size: clamp(44px, 7vw, 84px);
}

.gradient-text {
  background: linear-gradient(90deg, var(--rose-dark), var(--pink), var(--amber));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-lead,
.page-hero p,
.detail-lead {
  color: #5b6472;
  font-size: clamp(17px, 2vw, 21px);
  line-height: 1.85;
}

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

.primary-button,
.secondary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 24px;
}

.secondary-button {
  color: var(--rose-dark);
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(244, 63, 94, 0.2);
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.08);
}

.hero-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-links a,
.badge,
.tag-row span,
.detail-tag {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
}

.hero-links a {
  padding: 8px 13px;
  color: #7f1d1d;
  background: rgba(255, 255, 255, 0.62);
  border: 1px solid rgba(244, 63, 94, 0.15);
}

.hero-carousel {
  position: relative;
  min-height: 520px;
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-rows: 1fr auto;
  overflow: hidden;
  border-radius: 34px;
  background: #111827;
  box-shadow: 0 32px 80px rgba(190, 18, 60, 0.24);
  opacity: 0;
  transform: translateY(18px) scale(0.98);
  pointer-events: none;
  transition: opacity 0.6s ease, transform 0.6s ease;
}

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

.hero-slide img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.72;
}

.hero-slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.1), rgba(15, 23, 42, 0.85));
}

.hero-slide-content {
  position: relative;
  z-index: 1;
  align-self: end;
  color: #fff;
  padding: 34px;
}

.hero-slide-content h2 {
  margin: 12px 0 10px;
  font-size: clamp(26px, 4vw, 44px);
  line-height: 1.12;
}

.hero-slide-content p {
  color: rgba(255, 255, 255, 0.86);
  line-height: 1.75;
}

.slide-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.slide-meta span,
.rank-meta span,
.card-meta span,
.detail-meta span {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  padding: 5px 10px;
  font-size: 12px;
  font-weight: 800;
}

.slide-link {
  display: inline-flex;
  margin-top: 18px;
  padding: 12px 18px;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(90deg, var(--pink), var(--rose));
  font-weight: 900;
}

.carousel-dots {
  position: absolute;
  left: 34px;
  bottom: 22px;
  z-index: 2;
  display: flex;
  gap: 8px;
}

.carousel-dots button {
  width: 10px;
  height: 10px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.45);
  cursor: pointer;
}

.carousel-dots button.is-active {
  width: 28px;
  background: #fff;
}

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

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

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

.page-section {
  padding: 62px 0;
}

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

.category-tile {
  position: relative;
  min-height: 170px;
  overflow: hidden;
  padding: 22px;
  border-radius: 26px;
  background: #fff;
  box-shadow: 0 18px 42px rgba(15, 23, 42, 0.08);
  border: 1px solid rgba(244, 63, 94, 0.1);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.category-tile::after {
  content: "";
  position: absolute;
  right: -40px;
  top: -40px;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(236, 72, 153, 0.22), rgba(245, 158, 11, 0.18));
}

.category-tile:hover,
.movie-card:hover,
.rank-row:hover {
  transform: translateY(-6px);
  box-shadow: 0 28px 60px rgba(190, 18, 60, 0.16);
}

.category-tile strong {
  display: block;
  margin-bottom: 12px;
  font-size: 21px;
}

.category-tile p {
  position: relative;
  z-index: 1;
  color: var(--muted);
  line-height: 1.7;
  margin: 0;
}

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

.movie-card {
  overflow: hidden;
  border-radius: 26px;
  background: var(--paper);
  border: 1px solid rgba(244, 63, 94, 0.1);
  box-shadow: 0 16px 38px rgba(15, 23, 42, 0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.poster-link {
  position: relative;
  display: block;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: linear-gradient(135deg, #fff1f2, #fdf2f8);
}

.compact-card .poster-link {
  aspect-ratio: 16 / 10;
}

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

.poster-cover {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 30%, rgba(15, 23, 42, 0.65));
}

.play-chip {
  position: absolute;
  right: 14px;
  bottom: 14px;
  padding: 8px 12px;
  border-radius: 999px;
  color: #fff;
  background: rgba(244, 63, 94, 0.9);
  font-weight: 900;
}

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

.card-body {
  padding: 18px;
}

.card-meta,
.detail-meta,
.rank-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 10px;
}

.card-meta span,
.rank-meta span,
.detail-meta span {
  color: #6b2131;
  background: #fff1f2;
}

.movie-card h2,
.rank-row h2 {
  margin: 0 0 10px;
  font-size: 20px;
  line-height: 1.28;
}

.movie-card h2 a:hover,
.rank-row h2 a:hover {
  color: var(--rose-dark);
}

.movie-card p,
.rank-row p {
  margin: 0 0 14px;
  color: var(--muted);
  line-height: 1.7;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

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

.tag-row span,
.detail-tag {
  padding: 6px 10px;
  color: var(--rose-dark);
  background: #fff1f2;
}

.page-hero {
  padding: 64px 0 34px;
  background: linear-gradient(135deg, #fff1f2, #fdf2f8 45%, #fffbeb);
  border-bottom: 1px solid rgba(244, 63, 94, 0.1);
}

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

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

.filter-bar {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 12px;
  margin: 28px 0 0;
}

.filter-button {
  height: 42px;
  padding: 0 20px;
}

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

.rank-row {
  display: grid;
  grid-template-columns: 70px 110px 1fr;
  gap: 18px;
  align-items: center;
  padding: 16px;
  border-radius: 24px;
  background: #fff;
  border: 1px solid rgba(244, 63, 94, 0.1);
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.07);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.rank-num {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: 18px;
  color: #fff;
  background: linear-gradient(135deg, var(--rose), var(--amber));
  font-size: 22px;
  font-weight: 950;
}

.rank-thumb {
  display: block;
  overflow: hidden;
  border-radius: 18px;
  aspect-ratio: 4 / 5;
}

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

.badge {
  padding: 5px 10px;
  color: #fff;
  background: linear-gradient(90deg, var(--pink), var(--rose));
}

.detail-shell {
  background: linear-gradient(180deg, #fff7fb, #fff);
}

.detail-hero {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 56px 0;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 42px;
  align-items: center;
}

.detail-cover {
  overflow: hidden;
  border-radius: 34px;
  box-shadow: 0 32px 80px rgba(190, 18, 60, 0.18);
}

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

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--muted);
  font-weight: 700;
}

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

.detail-title h1 {
  font-size: clamp(36px, 6vw, 70px);
}

.detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 26px 0 0;
}

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

.player-box {
  position: relative;
  overflow: hidden;
  border-radius: 32px;
  background: #050816;
  box-shadow: 0 24px 70px rgba(15, 23, 42, 0.35);
}

.player-box video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #050816;
}

.player-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: radial-gradient(circle at center, rgba(244, 63, 94, 0.15), rgba(15, 23, 42, 0.78));
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

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

.player-button {
  width: 92px;
  height: 92px;
  color: #fff;
  font-size: 38px;
  background: linear-gradient(135deg, var(--pink), var(--rose));
  box-shadow: 0 24px 60px rgba(244, 63, 94, 0.38);
}

.content-grid {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 32px;
  padding: 0 0 64px;
}

.article-panel,
.side-panel {
  border-radius: 30px;
  background: #fff;
  border: 1px solid rgba(244, 63, 94, 0.1);
  box-shadow: 0 18px 44px rgba(15, 23, 42, 0.07);
}

.article-panel {
  padding: 34px;
}

.article-panel h2,
.side-panel h2 {
  margin: 0 0 18px;
  font-size: 28px;
  letter-spacing: -0.03em;
}

.article-panel p {
  color: #4b5563;
  line-height: 2;
  font-size: 17px;
}

.detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.side-panel {
  padding: 24px;
  align-self: start;
  position: sticky;
  top: 104px;
}

.side-list {
  display: grid;
  gap: 12px;
}

.side-item {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 12px;
  align-items: center;
  padding: 10px;
  border-radius: 18px;
  background: #fff7fb;
}

.side-item img {
  width: 72px;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 14px;
}

.side-item strong {
  display: block;
  margin-bottom: 5px;
  line-height: 1.3;
}

.side-item span {
  color: var(--muted);
  font-size: 13px;
}

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

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1fr;
  gap: 32px;
  padding: 52px 0 32px;
}

.footer-brand {
  color: #fff;
  font-size: 24px;
}

.site-footer p,
.site-footer a {
  color: #cbd5e1;
  line-height: 1.8;
}

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

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

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

.footer-bottom {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 20px 0 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  color: #94a3b8;
  text-align: center;
}

.empty-state {
  display: none;
  padding: 34px;
  border-radius: 24px;
  background: #fff;
  text-align: center;
  color: var(--muted);
}

@keyframes floatBlob {
  from {
    transform: translate3d(0, 0, 0) scale(1);
  }
  to {
    transform: translate3d(24px, -18px, 0) scale(1.08);
  }
}

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

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

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

  .hero-carousel {
    min-height: 480px;
  }

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

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

  .side-panel {
    position: static;
  }

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

@media (max-width: 720px) {
  .hero {
    min-height: auto;
  }

  .hero-inner {
    padding: 54px 0;
  }

  .hero-carousel {
    min-height: 420px;
  }

  .hero-slide-content {
    padding: 24px;
  }

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

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

  .rank-row {
    grid-template-columns: 48px 82px 1fr;
    gap: 12px;
    padding: 12px;
  }

  .rank-num {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    font-size: 16px;
  }

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