:root {
  --sakura-50: #fef6f9;
  --sakura-100: #fdedf3;
  --sakura-200: #fcd9e7;
  --sakura-400: #f78bb8;
  --sakura-500: #f06292;
  --sakura-600: #e91e63;
  --cream-50: #fffcf5;
  --cream-400: #ffd47f;
  --cream-500: #ffc857;
  --spring-50: #f0fdf4;
  --spring-500: #22c55e;
  --gray-900: #111827;
  --gray-800: #1f2937;
  --gray-700: #374151;
  --gray-600: #4b5563;
  --gray-500: #6b7280;
  --gray-200: #e5e7eb;
  --white: #ffffff;
  --shadow-soft: 0 16px 42px rgba(233, 30, 99, 0.13);
  --shadow-card: 0 18px 45px rgba(17, 24, 39, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--gray-800);
  font-family: Inter, "PingFang SC", "Microsoft YaHei", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  background: linear-gradient(135deg, var(--sakura-50) 0%, var(--cream-50) 52%, var(--spring-50) 100%);
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid rgba(255, 255, 255, 0.36);
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(16px);
  box-shadow: 0 12px 34px rgba(233, 30, 99, 0.10);
}

.header-inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 14px 22px;
  display: flex;
  align-items: center;
  gap: 24px;
}

.site-logo,
.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--gray-800);
  white-space: nowrap;
}

.site-logo span,
.footer-logo span {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 20px;
  font-weight: 800;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--sakura-500), var(--sakura-600));
  box-shadow: 0 10px 22px rgba(240, 98, 146, 0.32);
}

.site-logo strong,
.footer-logo strong {
  font-size: 19px;
  letter-spacing: 0.02em;
}

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

.desktop-nav a {
  padding: 9px 14px;
  border-radius: 999px;
  color: var(--gray-600);
  font-weight: 700;
  transition: all 0.2s ease;
}

.desktop-nav a:hover,
.desktop-nav a.active {
  color: var(--sakura-600);
  background: var(--sakura-100);
}

.header-search {
  width: min(300px, 28vw);
  display: flex;
  align-items: center;
  overflow: hidden;
  border: 2px solid var(--sakura-200);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.86);
}

.header-search input,
.mobile-nav input,
.filter-input {
  width: 100%;
  border: 0;
  outline: 0;
  color: var(--gray-800);
  background: transparent;
  font: inherit;
}

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

.header-search button,
.mobile-nav button,
.hero-search button,
.filter-panel button,
.primary-btn,
.watch-link,
.player-control {
  border: 0;
  cursor: pointer;
  font: inherit;
}

.header-search button {
  padding: 10px 16px;
  color: var(--white);
  font-weight: 800;
  background: var(--sakura-500);
}

.mobile-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 999px;
  color: var(--sakura-600);
  background: var(--sakura-100);
  font-size: 22px;
}

.mobile-nav {
  display: none;
  padding: 0 22px 18px;
  border-top: 1px solid rgba(233, 30, 99, 0.09);
}

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

.mobile-nav a {
  display: block;
  padding: 12px 0;
  color: var(--gray-700);
  font-weight: 800;
}

.mobile-nav form {
  display: flex;
  overflow: hidden;
  border: 2px solid var(--sakura-200);
  border-radius: 999px;
  background: var(--white);
}

.mobile-nav input {
  padding: 10px 14px;
}

.mobile-nav button {
  padding: 10px 16px;
  color: var(--white);
  font-weight: 800;
  background: var(--sakura-500);
}

.page {
  max-width: 1240px;
  margin: 0 auto;
  padding: 34px 22px 70px;
}

.hero {
  position: relative;
  margin-bottom: 48px;
  overflow: hidden;
  min-height: 520px;
  border-radius: 32px;
  background: var(--gray-900);
  box-shadow: var(--shadow-card);
}

.hero::before {
  content: "";
  position: absolute;
  inset: -22%;
  background: radial-gradient(circle at 18% 20%, rgba(247, 139, 184, 0.38), transparent 32%), radial-gradient(circle at 76% 16%, rgba(255, 212, 127, 0.32), transparent 30%);
  animation: floatGlow 7s ease-in-out infinite alternate;
  pointer-events: none;
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  align-items: stretch;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s ease;
}

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

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

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

.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(17, 24, 39, 0.12), rgba(17, 24, 39, 0.96));
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 64px 54px 56px 16px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  color: var(--white);
}

.hero-kicker,
.section-kicker {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  padding: 8px 14px;
  color: var(--sakura-200);
  font-weight: 900;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.10);
  backdrop-filter: blur(8px);
}

.hero h1,
.hero h2 {
  margin: 0 0 18px;
  font-size: clamp(34px, 5vw, 62px);
  line-height: 1.06;
  letter-spacing: -0.05em;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.22);
}

.hero p {
  max-width: 620px;
  margin: 0 0 24px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 18px;
  line-height: 1.8;
}

.hero-meta,
.detail-meta-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 26px;
}

.hero-meta span,
.detail-meta-grid span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 14px;
  border-radius: 999px;
  color: var(--white);
  font-weight: 800;
  background: rgba(255, 255, 255, 0.13);
}

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

.primary-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 22px;
  border-radius: 999px;
  color: var(--white);
  font-weight: 900;
  background: linear-gradient(135deg, var(--sakura-500), var(--sakura-600));
  box-shadow: 0 14px 30px rgba(240, 98, 146, 0.34);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.primary-btn:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 18px 36px rgba(240, 98, 146, 0.42);
}

.secondary-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 18px;
  border-radius: 999px;
  color: var(--white);
  font-weight: 900;
  background: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(8px);
}

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

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

.hero-dots button.active {
  width: 34px;
  background: var(--sakura-400);
}

.hero-search {
  position: absolute;
  z-index: 4;
  left: 34px;
  right: 34px;
  bottom: 34px;
  max-width: 580px;
  display: flex;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(16px);
}

.hero-search input {
  flex: 1;
  min-width: 0;
  padding: 15px 18px;
  border: 0;
  outline: 0;
  color: var(--white);
  background: transparent;
  font: inherit;
}

.hero-search input::placeholder {
  color: rgba(255, 255, 255, 0.76);
}

.hero-search button {
  padding: 15px 24px;
  color: var(--white);
  font-weight: 900;
  background: var(--sakura-500);
}

.section {
  margin-bottom: 48px;
}

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

.section-header h2,
.page-title h1,
.detail-panel h1 {
  margin: 0;
  color: var(--gray-800);
  font-size: clamp(26px, 3vw, 38px);
  line-height: 1.2;
  letter-spacing: -0.03em;
}

.section-header p,
.page-title p {
  margin: 8px 0 0;
  color: var(--gray-600);
  line-height: 1.8;
}

.more-link {
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  color: var(--sakura-600);
  font-weight: 900;
}

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

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

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

.movie-card {
  position: relative;
  overflow: hidden;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: var(--shadow-soft);
  transition: transform 0.24s ease, box-shadow 0.24s ease;
}

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

.movie-poster {
  position: relative;
  display: block;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: linear-gradient(135deg, var(--sakura-100), var(--cream-50));
}

.movie-card-horizontal .movie-poster {
  aspect-ratio: 16 / 10;
}

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

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

.movie-poster strong {
  position: absolute;
  top: 12px;
  right: 12px;
  padding: 6px 9px;
  border-radius: 999px;
  color: var(--white);
  font-size: 13px;
  background: linear-gradient(135deg, #facc15, #f97316);
  box-shadow: 0 6px 16px rgba(249, 115, 22, 0.28);
}

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

.movie-meta {
  margin-bottom: 8px;
  color: var(--sakura-600);
  font-size: 13px;
  font-weight: 900;
}

.movie-card h3 {
  margin: 0 0 10px;
  font-size: 19px;
  line-height: 1.32;
}

.movie-card h3 a:hover {
  color: var(--sakura-600);
}

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

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

.tag-row span,
.tag-cloud a,
.filter-chip {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: 999px;
  color: var(--sakura-600);
  font-size: 12px;
  font-weight: 800;
  background: var(--sakura-100);
}

.watch-link {
  display: inline-flex;
  justify-content: center;
  width: 100%;
  padding: 10px 14px;
  border-radius: 999px;
  color: var(--white);
  font-weight: 900;
  background: var(--sakura-500);
}

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

.movie-card-horizontal {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
}

.rank-badge {
  position: absolute;
  z-index: 4;
  top: 12px;
  left: 12px;
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: var(--white);
  font-style: normal;
  font-weight: 900;
  background: linear-gradient(135deg, #facc15, #f97316);
  box-shadow: 0 10px 22px rgba(249, 115, 22, 0.28);
}

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

.category-card {
  position: relative;
  overflow: hidden;
  min-height: 210px;
  padding: 24px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: var(--shadow-soft);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

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

.category-card img {
  position: absolute;
  right: -24px;
  bottom: -28px;
  width: 150px;
  height: 200px;
  object-fit: cover;
  border-radius: 24px;
  opacity: 0.58;
  transform: rotate(8deg);
}

.category-card h2,
.category-card h3 {
  position: relative;
  z-index: 2;
  margin: 0 0 12px;
  font-size: 24px;
}

.category-card p {
  position: relative;
  z-index: 2;
  max-width: 260px;
  margin: 0;
  color: var(--gray-600);
  line-height: 1.7;
}

.sakura-panel {
  padding: 28px;
  border-radius: 28px;
  background: linear-gradient(135deg, var(--sakura-200), #fff0cf);
  box-shadow: var(--shadow-soft);
}

.filter-panel {
  margin-bottom: 26px;
  padding: 20px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: var(--shadow-soft);
}

.filter-input {
  padding: 14px 16px;
  border: 2px solid var(--sakura-200);
  border-radius: 16px;
  background: var(--white);
}

.filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.filter-chip {
  border: 0;
  color: var(--gray-700);
  background: var(--white);
  box-shadow: inset 0 0 0 1px var(--sakura-200);
}

.filter-chip.active,
.filter-chip:hover {
  color: var(--white);
  background: var(--sakura-500);
}

.empty-state {
  display: none;
  padding: 28px;
  text-align: center;
  color: var(--gray-600);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.8);
}

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

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 22px;
  color: var(--gray-500);
  font-size: 14px;
}

.breadcrumb a {
  color: var(--sakura-600);
  font-weight: 800;
}

.detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 350px;
  gap: 28px;
  align-items: start;
}

.player-box {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  background: var(--gray-900);
  box-shadow: var(--shadow-card);
}

.player-box video {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: var(--gray-900);
  object-fit: cover;
}

.player-cover {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  color: var(--white);
  cursor: pointer;
  background: linear-gradient(180deg, rgba(17, 24, 39, 0.18), rgba(17, 24, 39, 0.72));
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

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

.player-cover span {
  width: 82px;
  height: 82px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-size: 34px;
  background: linear-gradient(135deg, var(--sakura-500), var(--sakura-600));
  box-shadow: 0 20px 45px rgba(240, 98, 146, 0.45);
}

.player-controls {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 18px;
  opacity: 0;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.74));
  transition: opacity 0.2s ease;
}

.player-box:hover .player-controls,
.player-box.is-playing .player-controls {
  opacity: 1;
}

.player-control {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: var(--white);
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(8px);
}

.player-status {
  color: var(--white);
  font-weight: 800;
}

.player-message {
  position: absolute;
  left: 18px;
  right: 18px;
  top: 18px;
  z-index: 5;
  display: none;
  padding: 12px 14px;
  border-radius: 14px;
  color: var(--white);
  background: rgba(17, 24, 39, 0.72);
}

.player-message.show {
  display: block;
}

.detail-panel,
.side-panel {
  padding: 24px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: var(--shadow-soft);
}

.detail-panel {
  margin-top: 24px;
}

.detail-panel h1 {
  margin-bottom: 12px;
}

.detail-panel .lead {
  margin: 0 0 18px;
  color: var(--gray-600);
  font-size: 18px;
  line-height: 1.8;
}

.detail-panel h2,
.side-panel h2 {
  margin: 24px 0 12px;
  color: var(--gray-800);
  font-size: 22px;
}

.detail-panel p {
  color: var(--gray-700);
  line-height: 1.95;
}

.side-poster {
  overflow: hidden;
  border-radius: 22px;
  box-shadow: var(--shadow-soft);
}

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

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

.mini-card {
  display: grid;
  grid-template-columns: 86px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 10px;
  border-radius: 16px;
  background: rgba(254, 246, 249, 0.78);
  transition: transform 0.2s ease, background 0.2s ease;
}

.mini-card:hover {
  transform: translateX(4px);
  background: var(--sakura-100);
}

.mini-card img {
  width: 86px;
  height: 58px;
  border-radius: 12px;
  object-fit: cover;
}

.mini-card em {
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-style: normal;
  font-size: 13px;
  font-weight: 900;
  border-radius: 999px;
  background: linear-gradient(135deg, #facc15, #f97316);
}

.mini-card:has(em) {
  grid-template-columns: 28px 86px minmax(0, 1fr);
}

.mini-card strong,
.mini-card small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mini-card small {
  margin-top: 5px;
  color: var(--gray-500);
}

.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.site-footer {
  margin-top: 34px;
  padding: 44px 22px 30px;
  background: rgba(255, 255, 255, 0.64);
  border-top: 1px solid rgba(233, 30, 99, 0.10);
}

.footer-inner {
  max-width: 1240px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 40px;
}

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

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-content: start;
}

.footer-links a {
  padding: 8px 12px;
  border-radius: 999px;
  color: var(--gray-600);
  font-weight: 800;
  background: rgba(255, 255, 255, 0.76);
}

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

.copyright {
  max-width: 1240px;
  margin: 30px auto 0;
  color: var(--gray-500);
  font-size: 14px;
}

@keyframes floatGlow {
  from {
    transform: translate3d(-2%, 0, 0) scale(1);
  }
  to {
    transform: translate3d(2%, -1%, 0) scale(1.04);
  }
}

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

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

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

  .side-panel {
    display: grid;
    grid-template-columns: 240px minmax(0, 1fr);
    gap: 20px;
  }
}

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

  .mobile-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-left: auto;
  }

  .hero {
    min-height: 760px;
  }

  .hero-slide {
    grid-template-columns: 1fr;
    grid-template-rows: 310px minmax(0, 1fr);
  }

  .hero-media {
    min-height: 310px;
  }

  .hero-media::after {
    background: linear-gradient(180deg, rgba(17, 24, 39, 0.06), rgba(17, 24, 39, 0.92));
  }

  .hero-content {
    padding: 28px 24px 120px;
  }

  .hero-search {
    left: 20px;
    right: 20px;
    bottom: 58px;
  }

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

  .movie-card-horizontal {
    grid-template-columns: 180px minmax(0, 1fr);
  }

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

@media (max-width: 620px) {
  .header-inner,
  .page {
    padding-left: 16px;
    padding-right: 16px;
  }

  .site-logo strong {
    font-size: 16px;
  }

  .hero {
    min-height: 790px;
    border-radius: 24px;
  }

  .hero h1,
  .hero h2 {
    font-size: 34px;
  }

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

  .hero-actions,
  .hero-search {
    flex-direction: column;
    border-radius: 22px;
  }

  .hero-search button,
  .hero-search input,
  .primary-btn,
  .secondary-btn {
    width: 100%;
  }

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

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

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

  .side-panel {
    display: block;
  }

  .player-cover span {
    width: 66px;
    height: 66px;
    font-size: 28px;
  }
}
