:root {
  --rose-50: #fff1f2;
  --rose-100: #ffe4e6;
  --rose-200: #fecdd3;
  --rose-400: #fb7185;
  --rose-500: #f43f5e;
  --rose-600: #e11d48;
  --pink-400: #f472b6;
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-800: #1f2937;
  --gray-900: #111827;
  --shadow-soft: 0 16px 40px rgba(244, 63, 94, 0.16);
  --shadow-card: 0 14px 32px rgba(17, 24, 39, 0.10);
  --radius-xl: 28px;
  --radius-lg: 20px;
  --radius-md: 14px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--gray-800);
  background: linear-gradient(180deg, #fff7f8 0%, #ffffff 38%, #fff7f8 100%);
}

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: 50;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--rose-100);
  box-shadow: 0 6px 24px rgba(244, 63, 94, 0.08);
}

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

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  letter-spacing: -0.03em;
}

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

.brand-text,
.footer-brand {
  font-size: 22px;
  background: linear-gradient(90deg, var(--rose-500), var(--pink-400));
  color: transparent;
  -webkit-background-clip: text;
  background-clip: text;
}

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

.nav-link {
  color: var(--gray-700);
  font-weight: 650;
  font-size: 15px;
  transition: color 0.2s ease, transform 0.2s ease;
}

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

.nav-link:hover {
  transform: translateY(-1px);
}

.header-search,
.mobile-search,
.large-search,
.search-page-form {
  display: flex;
  align-items: center;
  gap: 8px;
}

.header-search input,
.mobile-search input,
.large-search input,
.search-page-form input,
.filter-bar input,
.filter-bar select {
  border: 1px solid var(--rose-200);
  border-radius: 999px;
  outline: none;
  background: #ffffff;
  color: var(--gray-800);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.header-search input {
  width: 230px;
  padding: 10px 16px;
}

.header-search input:focus,
.mobile-search input:focus,
.large-search input:focus,
.search-page-form input:focus,
.filter-bar input:focus,
.filter-bar select:focus {
  border-color: var(--rose-400);
  box-shadow: 0 0 0 4px rgba(251, 113, 133, 0.16);
}

.header-search button,
.mobile-search button,
.large-search button,
.search-page-form button,
.filter-bar button {
  border: 0;
  border-radius: 999px;
  padding: 10px 16px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--rose-500), var(--pink-400));
  cursor: pointer;
  font-weight: 700;
  box-shadow: 0 12px 22px rgba(244, 63, 94, 0.22);
}

.menu-button {
  display: none;
  border: 0;
  color: var(--gray-700);
  background: var(--rose-50);
  border-radius: 12px;
  width: 42px;
  height: 42px;
  cursor: pointer;
}

.mobile-nav {
  display: none;
  width: min(1280px, calc(100% - 32px));
  margin: 0 auto 16px;
  padding: 14px;
  border: 1px solid var(--rose-100);
  border-radius: 18px;
  background: #ffffff;
}

.mobile-nav.open {
  display: block;
}

.mobile-search input {
  width: 100%;
  padding: 12px 16px;
}

.mobile-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 14px;
}

.mobile-links .nav-link {
  padding: 10px 12px;
  background: var(--rose-50);
  border-radius: 12px;
}

.hero {
  position: relative;
  min-height: 640px;
  overflow: hidden;
  background: radial-gradient(circle at 20% 20%, rgba(251, 113, 133, 0.28), transparent 36%), #fff7f8;
}

.hero-track {
  position: relative;
  min-height: 640px;
}

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

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

.hero-backdrop {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(90deg, rgba(255, 247, 248, 0.96) 0%, rgba(255, 247, 248, 0.84) 46%, rgba(17, 24, 39, 0.38) 100%), var(--hero-image);
  background-size: cover;
  background-position: center;
  filter: saturate(1.08);
}

.hero-content {
  position: relative;
  width: min(1280px, calc(100% - 32px));
  min-height: 640px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) 420px;
  align-items: center;
  gap: 48px;
  padding: 58px 0 78px;
}

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

.eyebrow {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  border-radius: 999px;
  padding: 7px 13px;
  color: var(--rose-600);
  background: rgba(255, 228, 230, 0.88);
  font-weight: 800;
  letter-spacing: 0.04em;
  font-size: 13px;
}

.hero h1,
.page-hero h1,
.detail-copy h1 {
  margin: 18px 0 16px;
  color: var(--gray-900);
  font-size: clamp(42px, 7vw, 76px);
  line-height: 0.96;
  letter-spacing: -0.06em;
}

.hero p,
.page-hero p,
.detail-one-line {
  margin: 0;
  color: var(--gray-600);
  font-size: 18px;
  line-height: 1.85;
}

.hero-tags,
.detail-tags,
.tag-row,
.detail-facts {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.hero-tags {
  margin-top: 24px;
}

.hero-tags span,
.detail-tags span,
.tag-row span {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 7px 12px;
  color: var(--rose-600);
  background: #ffffff;
  border: 1px solid var(--rose-100);
  font-size: 13px;
  font-weight: 750;
}

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

.primary-button,
.ghost-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 999px;
  font-weight: 850;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.primary-button {
  color: #ffffff;
  background: linear-gradient(135deg, var(--rose-500), var(--pink-400));
  box-shadow: 0 18px 34px rgba(244, 63, 94, 0.26);
}

.ghost-button {
  color: var(--rose-600);
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid var(--rose-200);
}

.primary-button:hover,
.ghost-button:hover {
  transform: translateY(-2px);
}

.hero-poster {
  position: relative;
  display: block;
  border-radius: 32px;
  overflow: hidden;
  aspect-ratio: 3 / 4;
  box-shadow: 0 30px 70px rgba(17, 24, 39, 0.28);
  transform: rotate(2deg);
}

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

.hero-controls {
  position: absolute;
  left: 50%;
  bottom: 28px;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 16px;
  z-index: 4;
}

.hero-controls button {
  border: 0;
  cursor: pointer;
}

.hero-controls > button {
  width: 42px;
  height: 42px;
  color: var(--rose-600);
  background: rgba(255, 255, 255, 0.92);
  border-radius: 999px;
  font-size: 28px;
  box-shadow: var(--shadow-card);
}

.hero-dots {
  display: flex;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.84);
  box-shadow: var(--shadow-card);
}

.hero-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--rose-200);
}

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

.quick-search-panel,
.content-section,
.page-hero,
.detail-inner {
  width: min(1280px, calc(100% - 32px));
  margin-left: auto;
  margin-right: auto;
}

.quick-search-panel {
  margin-top: -34px;
  position: relative;
  z-index: 5;
  padding: 18px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--rose-100);
  box-shadow: var(--shadow-soft);
}

.large-search input {
  flex: 1;
  padding: 16px 20px;
  font-size: 16px;
}

.large-search button,
.search-page-form button {
  padding: 16px 24px;
}

.quick-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.quick-tags a {
  border-radius: 999px;
  padding: 8px 12px;
  color: var(--gray-700);
  background: var(--rose-50);
  border: 1px solid var(--rose-100);
}

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

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

.section-heading h2,
.panel-title h2,
.story-card h2,
.side-card h2 {
  margin: 0;
  color: var(--gray-900);
  font-size: 30px;
  line-height: 1.1;
  letter-spacing: -0.04em;
}

.section-heading p {
  margin: 8px 0 0;
  color: var(--gray-500);
}

.section-more,
.panel-title a {
  color: var(--rose-600);
  font-weight: 800;
}

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

.category-tile,
.category-overview-card a {
  position: relative;
  min-height: 180px;
  display: flex;
  flex-direction: column;
  justify-content: end;
  gap: 8px;
  overflow: hidden;
  border-radius: 24px;
  padding: 22px;
  color: #ffffff;
  background-image: linear-gradient(180deg, rgba(17, 24, 39, 0.04), rgba(17, 24, 39, 0.78)), var(--tile-image);
  background-size: cover;
  background-position: center;
  box-shadow: var(--shadow-card);
}

.category-tile span,
.category-overview-card span {
  font-size: 22px;
  font-weight: 900;
}

.category-tile strong,
.category-overview-card strong {
  font-size: 15px;
}

.category-tile em,
.category-overview-card p {
  margin: 0;
  color: rgba(255, 255, 255, 0.84);
  font-style: normal;
  line-height: 1.5;
}

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

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

.movie-card {
  overflow: hidden;
  border-radius: 22px;
  background: #ffffff;
  border: 1px solid var(--rose-100);
  box-shadow: 0 10px 26px rgba(17, 24, 39, 0.06);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.movie-card:hover {
  transform: translateY(-5px);
  border-color: var(--rose-300, #fda4af);
  box-shadow: var(--shadow-card);
}

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

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

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

.duration,
.rank-badge {
  position: absolute;
  color: #ffffff;
  background: rgba(17, 24, 39, 0.74);
  backdrop-filter: blur(8px);
}

.duration {
  right: 10px;
  bottom: 10px;
  border-radius: 999px;
  padding: 4px 8px;
  font-size: 12px;
  font-weight: 700;
}

.rank-badge {
  top: 10px;
  left: 10px;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  font-weight: 900;
}

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

.meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  color: var(--gray-500);
  font-size: 12px;
  font-weight: 700;
}

.meta-row span:not(:last-child)::after {
  content: "·";
  margin-left: 6px;
  color: var(--rose-300, #fda4af);
}

.movie-card h3 {
  margin: 8px 0 6px;
  min-height: 44px;
  color: var(--gray-900);
  font-size: 16px;
  line-height: 1.35;
}

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

.movie-card p {
  display: -webkit-box;
  min-height: 48px;
  margin: 0 0 12px;
  overflow: hidden;
  color: var(--gray-600);
  font-size: 13px;
  line-height: 1.55;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.tag-row {
  justify-content: space-between;
}

.tag-row strong {
  color: #f59e0b;
  font-size: 13px;
}

.split-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 28px;
}

.ranking-panel,
.story-card,
.side-card,
.player-card {
  border: 1px solid var(--rose-100);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 10px 28px rgba(17, 24, 39, 0.06);
}

.ranking-panel {
  position: sticky;
  top: 90px;
  align-self: start;
  padding: 20px;
}

.panel-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.rank-row {
  display: grid;
  grid-template-columns: 34px 64px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--rose-100);
}

.rank-row:last-child {
  border-bottom: 0;
}

.rank-number {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 10px;
  color: var(--rose-600);
  background: var(--rose-50);
  font-weight: 900;
}

.rank-row img {
  width: 64px;
  height: 48px;
  border-radius: 10px;
  object-fit: cover;
}

.rank-info {
  min-width: 0;
}

.rank-info strong,
.rank-info em {
  display: block;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.rank-info em {
  color: var(--gray-500);
  font-size: 12px;
  font-style: normal;
}

.rank-score {
  color: #f59e0b;
  font-weight: 850;
}

.page-hero {
  margin-top: 34px;
  padding: 58px;
  border-radius: 32px;
  color: var(--gray-900);
  background: radial-gradient(circle at 0 0, rgba(251, 113, 133, 0.28), transparent 30%), linear-gradient(135deg, #ffffff, var(--rose-50));
  border: 1px solid var(--rose-100);
  box-shadow: var(--shadow-soft);
}

.compact-hero,
.category-hero,
.ranking-hero,
.search-hero {
  min-height: 260px;
  display: flex;
  align-items: center;
}

.filter-bar {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) 180px 180px auto;
  gap: 12px;
  margin-bottom: 24px;
  padding: 14px;
  border: 1px solid var(--rose-100);
  border-radius: 22px;
  background: #ffffff;
}

.filter-bar input,
.filter-bar select {
  min-height: 46px;
  padding: 0 14px;
}

.empty-state,
.search-summary {
  color: var(--gray-500);
  font-weight: 700;
}

.search-page-form {
  margin-bottom: 18px;
}

.search-page-form input {
  flex: 1;
  padding: 16px 20px;
}

.detail-hero {
  position: relative;
  min-height: 560px;
  overflow: hidden;
  background-image: var(--detail-image);
  background-size: cover;
  background-position: center;
}

.detail-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(255, 247, 248, 0.96), rgba(255, 247, 248, 0.82), rgba(17, 24, 39, 0.52));
  backdrop-filter: blur(2px);
}

.detail-inner {
  position: relative;
  padding: 34px 0 64px;
}

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

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

.detail-main {
  display: grid;
  grid-template-columns: 310px minmax(0, 1fr);
  gap: 42px;
  align-items: center;
  margin-top: 38px;
}

.detail-poster {
  border-radius: 30px;
  overflow: hidden;
  aspect-ratio: 3 / 4;
  box-shadow: 0 30px 72px rgba(17, 24, 39, 0.28);
}

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

.detail-copy h1 {
  max-width: 780px;
}

.detail-facts {
  margin: 22px 0;
}

.detail-facts span {
  padding: 8px 12px;
  border-radius: 999px;
  color: var(--gray-700);
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid var(--rose-100);
  font-weight: 800;
}

.detail-tags {
  margin-bottom: 28px;
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 28px;
}

.detail-content {
  display: grid;
  gap: 22px;
}

.player-card {
  padding: 18px;
}

.video-shell {
  position: relative;
  overflow: hidden;
  border-radius: 20px;
  background: var(--gray-900);
  aspect-ratio: 16 / 9;
}

.video-shell video {
  width: 100%;
  height: 100%;
  display: block;
  background: #000000;
}

.play-cover {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 14px;
  border: 0;
  color: #ffffff;
  background: radial-gradient(circle at center, rgba(244, 63, 94, 0.46), rgba(17, 24, 39, 0.70));
  cursor: pointer;
}

.play-cover.hidden {
  display: none;
}

.play-cover span {
  width: 76px;
  height: 76px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: var(--rose-600);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 20px 46px rgba(0, 0, 0, 0.28);
  font-size: 30px;
}

.play-cover strong {
  font-size: 20px;
}

.player-status {
  padding: 14px 4px 0;
  color: var(--gray-500);
  font-size: 14px;
  font-weight: 700;
}

.story-card,
.side-card {
  padding: 24px;
}

.story-card p {
  margin: 14px 0 0;
  color: var(--gray-700);
  font-size: 16px;
  line-height: 1.9;
}

.side-card {
  align-self: start;
  position: sticky;
  top: 90px;
}

.side-card dl {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 12px 14px;
  margin: 18px 0 0;
}

.side-card dt {
  color: var(--gray-500);
  font-weight: 800;
}

.side-card dd {
  margin: 0;
  min-width: 0;
  color: var(--gray-800);
}

.side-card a {
  color: var(--rose-600);
  font-weight: 800;
}

.site-footer {
  margin-top: 72px;
  border-top: 1px solid var(--rose-100);
  background: linear-gradient(135deg, #ffffff, var(--rose-50));
}

.footer-inner {
  width: min(1280px, calc(100% - 32px));
  margin: 0 auto;
  padding: 42px 0;
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) 220px 260px;
  gap: 42px;
}

.footer-inner p {
  max-width: 520px;
  color: var(--gray-600);
  line-height: 1.8;
}

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

.footer-links h2 {
  margin: 0 0 6px;
  font-size: 18px;
  color: var(--gray-900);
}

.footer-links a {
  color: var(--gray-600);
}

.footer-links a:hover {
  color: var(--rose-500);
}

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

  .menu-button {
    display: block;
  }

  .header-search {
    margin-left: auto;
  }

  .hero-content {
    grid-template-columns: minmax(0, 1fr) 320px;
  }

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

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

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

  .ranking-panel,
  .side-card {
    position: static;
  }
}

@media (max-width: 760px) {
  .header-inner {
    width: min(100% - 24px, 1280px);
    gap: 12px;
  }

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

  .header-search {
    display: none;
  }

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

  .hero-content {
    grid-template-columns: 1fr;
    gap: 28px;
    padding-top: 40px;
  }

  .hero-poster {
    width: min(78vw, 280px);
    margin: 0 auto;
  }

  .hero h1,
  .page-hero h1,
  .detail-copy h1 {
    font-size: clamp(34px, 12vw, 50px);
  }

  .large-search,
  .search-page-form {
    flex-direction: column;
    align-items: stretch;
  }

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

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

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

  .page-hero {
    padding: 34px 24px;
    border-radius: 24px;
  }

  .detail-main {
    grid-template-columns: 1fr;
  }

  .detail-poster {
    width: min(76vw, 290px);
  }

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

@media (max-width: 520px) {
  .category-grid,
  .category-overview-grid,
  .movie-grid,
  .ranking-grid,
  .slim-grid {
    grid-template-columns: 1fr;
  }

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

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

  .rank-score {
    display: none;
  }
}
