:root {
  --cherry-pink: #ffb7c5;
  --rose-pink: #ff8fb3;
  --soft-pink: #ffe4e9;
  --light-yellow: #fff4e6;
  --tender-green: #a8d5ba;
  --text-main: #2f2530;
  --text-muted: #76616e;
  --glass-bg: rgba(255, 255, 255, 0.72);
  --glass-border: rgba(255, 255, 255, 0.58);
  --shadow-pink: 0 20px 45px rgba(255, 183, 197, 0.35);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text-main);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  background:
    radial-gradient(circle at 10% 0%, rgba(255, 255, 255, 0.98), transparent 26rem),
    radial-gradient(circle at 90% 14%, rgba(255, 183, 197, 0.65), transparent 24rem),
    linear-gradient(135deg, #fff4e6 0%, #ffe4e9 48%, #ffd4e0 100%);
  min-height: 100vh;
}

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

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

button,
input,
select {
  font: inherit;
}

::selection {
  background: rgba(255, 143, 179, 0.35);
}

::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: #ffe4e9;
}

::-webkit-scrollbar-thumb {
  background: #ffb7c5;
  border-radius: 999px;
}

.site-shell {
  position: relative;
  z-index: 2;
  min-height: 100vh;
}

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

.glass-effect {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  box-shadow: 0 18px 50px rgba(255, 183, 197, 0.18);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}

.card-hover {
  transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
}

.card-hover:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-pink);
  border-color: rgba(255, 143, 179, 0.58);
}

.cherry-blossom {
  position: fixed;
  top: -24px;
  z-index: 1;
  width: 10px;
  height: 10px;
  pointer-events: none;
  border-radius: 50% 0;
  opacity: 0.62;
  background: radial-gradient(circle, #ffb7c5 0%, #ff8fb3 100%);
  animation-name: fall;
  animation-timing-function: linear;
  animation-iteration-count: infinite;
}

.cherry-blossom::before {
  content: "";
  position: absolute;
  top: -5px;
  left: 5px;
  width: 10px;
  height: 10px;
  border-radius: 0 50%;
  background: radial-gradient(circle, #ffb7c5 0%, #ff8fb3 100%);
}

@keyframes fall {
  0% {
    transform: translate3d(0, -40px, 0) rotate(0deg);
  }

  100% {
    transform: translate3d(48px, 110vh, 0) rotate(360deg);
  }
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  border-bottom: 1px solid rgba(255, 183, 197, 0.45);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 74px;
  gap: 22px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: max-content;
  font-size: 22px;
  font-weight: 800;
  color: #ef4f90;
}

.logo-mark {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  color: #ffffff;
  border-radius: 14px;
  background: linear-gradient(135deg, #ff8fb3, #fb7185);
  box-shadow: 0 12px 28px rgba(244, 114, 182, 0.32);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 18px;
  color: #6f5362;
  font-weight: 600;
  white-space: nowrap;
}

.site-nav a {
  padding: 9px 4px;
  transition: color 0.2s ease;
}

.site-nav a:hover,
.site-nav a.active {
  color: #ec4899;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.search-form {
  position: relative;
  min-width: 250px;
}

.search-form input,
.inline-search input,
.filter-select {
  width: 100%;
  border: 2px solid rgba(255, 183, 197, 0.72);
  outline: none;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
  color: #4a3540;
  padding: 12px 18px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.search-form input {
  padding-left: 42px;
}

.search-form input:focus,
.inline-search input:focus,
.filter-select:focus {
  border-color: #f472b6;
  box-shadow: 0 0 0 4px rgba(244, 114, 182, 0.14);
}

.search-icon {
  position: absolute;
  left: 15px;
  top: 50%;
  color: #f472b6;
  transform: translateY(-50%);
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 14px;
  color: #ef4f90;
  background: rgba(255, 255, 255, 0.72);
  cursor: pointer;
}

.hero {
  position: relative;
  overflow: hidden;
  margin-top: 34px;
  border-radius: 34px;
}

.hero-slide {
  display: none;
  grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.75fr);
  align-items: center;
  min-height: 560px;
  gap: 44px;
  padding: 54px;
}

.hero-slide.active {
  display: grid;
}

.hero-copy {
  position: relative;
  z-index: 2;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  padding: 8px 14px;
  color: #db2777;
  font-size: 14px;
  font-weight: 700;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(255, 183, 197, 0.62);
}

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

.gradient-text {
  background: linear-gradient(100deg, #ec4899, #fb7185 45%, #f59e0b);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-description {
  max-width: 720px;
  margin: 22px 0 0;
  color: #6f5362;
  font-size: 19px;
  line-height: 1.9;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 26px 0;
}

.pill,
.tag {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  color: #be185d;
  background: rgba(255, 255, 255, 0.76);
  border: 1px solid rgba(255, 183, 197, 0.72);
  font-size: 13px;
  font-weight: 700;
}

.pill {
  padding: 8px 12px;
}

.tag {
  padding: 6px 10px;
}

.hero-actions,
.section-actions,
.detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  gap: 8px;
  padding: 12px 20px;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 800;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn-primary {
  color: #ffffff;
  background: linear-gradient(135deg, #ec4899, #fb7185);
  box-shadow: 0 16px 30px rgba(236, 72, 153, 0.28);
}

.btn-secondary {
  color: #db2777;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(255, 183, 197, 0.68);
}

.btn:hover {
  transform: translateY(-2px) scale(1.01);
}

.hero-poster {
  position: relative;
  z-index: 2;
}

.poster-frame {
  position: relative;
  overflow: hidden;
  aspect-ratio: 3 / 4;
  border-radius: 30px;
  background: linear-gradient(135deg, #fff, #ffe4e9);
  box-shadow: 0 30px 70px rgba(217, 70, 123, 0.25);
}

.poster-frame img,
.movie-cover img,
.related-cover img,
.detail-cover img,
.ranking-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: linear-gradient(135deg, #fff4e6, #ffe4e9);
}

.poster-glow {
  position: absolute;
  inset: 10% -18% -10% 18%;
  z-index: -1;
  background: radial-gradient(circle, rgba(236, 72, 153, 0.26), transparent 62%);
  filter: blur(20px);
}

.hero-controls {
  position: absolute;
  right: 28px;
  bottom: 28px;
  z-index: 5;
  display: flex;
  gap: 10px;
}

.hero-dot {
  width: 11px;
  height: 11px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.72);
  cursor: pointer;
}

.hero-dot.active {
  width: 30px;
  border-radius: 999px;
  background: #ec4899;
}

.section {
  margin-top: 58px;
}

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

.section-title {
  margin: 0;
  font-size: clamp(26px, 4vw, 40px);
  line-height: 1.15;
}

.section-subtitle {
  max-width: 720px;
  margin: 10px 0 0;
  color: var(--text-muted);
  line-height: 1.8;
}

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

.movie-card {
  overflow: hidden;
  border-radius: 24px;
}

.movie-cover {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: rgba(255, 255, 255, 0.54);
}

.movie-cover img {
  transition: transform 0.32s ease;
}

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

.play-badge {
  position: absolute;
  left: 50%;
  top: 50%;
  display: grid;
  width: 58px;
  height: 58px;
  place-items: center;
  color: #ec4899;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  transform: translate(-50%, -50%) scale(0.72);
  opacity: 0;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

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

.cover-label,
.duration-badge,
.rank-badge {
  position: absolute;
  z-index: 2;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

.cover-label {
  top: 12px;
  left: 12px;
  padding: 6px 10px;
  color: #ffffff;
  background: rgba(236, 72, 153, 0.88);
}

.duration-badge {
  right: 12px;
  bottom: 12px;
  padding: 5px 9px;
  color: #ffffff;
  background: rgba(0, 0, 0, 0.56);
}

.movie-body {
  padding: 18px;
}

.movie-title {
  display: -webkit-box;
  min-height: 54px;
  margin: 0;
  overflow: hidden;
  font-size: 18px;
  line-height: 1.5;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.movie-title a:hover {
  color: #ec4899;
}

.movie-desc {
  display: -webkit-box;
  min-height: 72px;
  margin: 10px 0 14px;
  overflow: hidden;
  color: var(--text-muted);
  line-height: 1.7;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}

.card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: #8b6375;
  font-size: 13px;
}

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

.category-card {
  position: relative;
  overflow: hidden;
  min-height: 190px;
  padding: 22px;
  border-radius: 26px;
}

.category-card::after {
  content: "";
  position: absolute;
  right: -40px;
  bottom: -48px;
  width: 130px;
  height: 130px;
  border-radius: 50%;
  background: rgba(255, 183, 197, 0.34);
}

.category-card h3 {
  position: relative;
  margin: 0 0 12px;
  font-size: 22px;
}

.category-card p,
.page-lead {
  position: relative;
  color: var(--text-muted);
  line-height: 1.8;
}

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

.ranking-item {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  padding: 14px;
  border-radius: 24px;
}

.ranking-cover {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  border-radius: 18px;
}

.rank-badge {
  top: 8px;
  left: 8px;
  padding: 5px 9px;
  color: #fff;
  background: rgba(236, 72, 153, 0.92);
}

.ranking-content h3 {
  margin: 0 0 8px;
  font-size: 20px;
}

.ranking-content p {
  margin: 0;
  color: var(--text-muted);
  line-height: 1.7;
}

.page-hero {
  margin-top: 34px;
  padding: 48px;
  border-radius: 32px;
}

.toolbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 220px;
  gap: 14px;
  margin: 24px 0;
}

.filter-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 22px;
}

.filter-tab {
  border: 1px solid rgba(255, 183, 197, 0.66);
  border-radius: 999px;
  padding: 9px 14px;
  color: #be185d;
  background: rgba(255, 255, 255, 0.7);
  cursor: pointer;
  font-weight: 700;
}

.filter-tab.active {
  color: #ffffff;
  background: linear-gradient(135deg, #ec4899, #fb7185);
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) 340px;
  gap: 30px;
  margin-top: 34px;
}

.player-card {
  overflow: hidden;
  border-radius: 32px;
}

.player-area {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: #1f1720;
}

.player-area video {
  width: 100%;
  height: 100%;
  display: block;
  background: #120b12;
  object-fit: contain;
}

.player-overlay {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: grid;
  place-items: center;
  cursor: pointer;
  background-position: center;
  background-size: cover;
}

.player-overlay::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(31, 23, 32, 0.14), rgba(31, 23, 32, 0.74));
}

.player-overlay.hidden {
  display: none;
}

.player-button {
  position: relative;
  z-index: 4;
  display: grid;
  width: 86px;
  height: 86px;
  place-items: center;
  border: 0;
  border-radius: 50%;
  color: #ec4899;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 22px 50px rgba(0, 0, 0, 0.24);
  cursor: pointer;
}

.player-info {
  padding: 24px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
  color: #8b6375;
  font-size: 14px;
}

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

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 20px 0;
}

.content-card {
  padding: 26px;
  border-radius: 28px;
}

.content-card h2 {
  margin: 0 0 14px;
  font-size: 26px;
}

.content-card p {
  margin: 0 0 18px;
  color: #5f4b57;
  font-size: 16px;
  line-height: 1.95;
}

.detail-cover {
  overflow: hidden;
  border-radius: 28px;
  aspect-ratio: 3 / 4;
}

.side-card {
  padding: 20px;
  border-radius: 28px;
}

.side-card h2 {
  margin: 0 0 16px;
  font-size: 24px;
}

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

.related-item {
  display: grid;
  grid-template-columns: 86px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
}

.related-cover {
  overflow: hidden;
  border-radius: 16px;
  aspect-ratio: 16 / 11;
}

.related-title {
  display: -webkit-box;
  margin: 0 0 6px;
  overflow: hidden;
  font-weight: 800;
  line-height: 1.45;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.related-meta {
  color: #8b6375;
  font-size: 13px;
}

.site-footer {
  margin-top: 70px;
  border-top: 1px solid rgba(255, 183, 197, 0.45);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 26px;
  padding: 42px 0;
}

.footer-grid h3 {
  margin: 0 0 14px;
}

.footer-grid p,
.footer-grid a {
  color: var(--text-muted);
  line-height: 1.8;
}

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

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

.empty-state.show {
  display: block;
}

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

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

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

  .detail-cover {
    max-width: 360px;
  }
}

@media (max-width: 860px) {
  .header-inner {
    flex-wrap: wrap;
    padding: 12px 0;
  }

  .site-nav {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    order: 3;
  }

  .site-nav.open {
    display: flex;
  }

  .site-nav a {
    padding: 12px 14px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.62);
  }

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

  .search-form {
    display: none;
  }

  .hero-slide {
    grid-template-columns: 1fr;
    min-height: auto;
    padding: 32px;
  }

  .hero-poster {
    max-width: 320px;
    margin: 0 auto;
  }

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

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

  .ranking-item .btn {
    grid-column: 1 / -1;
  }
}

@media (max-width: 620px) {
  .container {
    width: min(100% - 22px, 1180px);
  }

  .logo {
    font-size: 18px;
  }

  .hero,
  .page-hero,
  .player-card,
  .content-card,
  .side-card {
    border-radius: 22px;
  }

  .hero-slide,
  .page-hero {
    padding: 24px;
  }

  .hero-description {
    font-size: 16px;
  }

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

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

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