:root {
  --sakura-50: #fef6f9;
  --sakura-100: #fdedf3;
  --sakura-200: #fcd9e7;
  --sakura-300: #f9b6d0;
  --sakura-400: #f78bb8;
  --sakura-500: #f06292;
  --sakura-600: #e91e63;
  --cream-50: #fffcf5;
  --cream-100: #fff4d8;
  --cream-400: #f9d36b;
  --spring-500: #22c55e;
  --text-900: #1f2937;
  --text-700: #374151;
  --text-600: #4b5563;
  --text-500: #6b7280;
  --border: rgba(233, 30, 99, 0.18);
  --white-glass: rgba(255, 255, 255, 0.78);
  --shadow: 0 18px 45px rgba(148, 50, 91, 0.15);
  --radius-xl: 22px;
  --radius-2xl: 30px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text-900);
  background:
    radial-gradient(
      circle at 12% 8%,
      rgba(247, 139, 184, 0.22),
      transparent 28%
    ),
    radial-gradient(
      circle at 86% 12%,
      rgba(249, 211, 107, 0.22),
      transparent 26%
    ),
    linear-gradient(135deg, var(--sakura-50), var(--cream-50));
  font-family:
    Inter,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    "PingFang SC",
    "Microsoft YaHei",
    sans-serif;
  line-height: 1.6;
}

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

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

button,
input,
select {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--white-glass);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.58);
  box-shadow: 0 10px 34px rgba(148, 50, 91, 0.12);
}

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

.site-logo,
.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.logo-mark {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: #ffffff;
  font-weight: 800;
  font-size: 21px;
  background: linear-gradient(135deg, var(--sakura-400), var(--sakura-600));
  box-shadow: 0 12px 28px rgba(233, 30, 99, 0.32);
}

.logo-text {
  display: grid;
  line-height: 1.1;
}

.logo-text strong,
.footer-logo strong {
  font-size: 20px;
  font-weight: 800;
  background: linear-gradient(90deg, var(--sakura-600), var(--sakura-400));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.logo-text small {
  color: var(--text-500);
  font-size: 12px;
  margin-top: 4px;
}

.header-search {
  flex: 1;
  max-width: 430px;
  display: flex;
  align-items: center;
  position: relative;
}

.header-search input,
.mobile-search input,
.filter-bar input {
  width: 100%;
  border: 2px solid var(--sakura-200);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.86);
  padding: 11px 112px 11px 18px;
  outline: none;
  color: var(--text-700);
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

.header-search input:focus,
.mobile-search input:focus,
.filter-bar input:focus {
  border-color: var(--sakura-400);
  box-shadow: 0 0 0 4px rgba(240, 98, 146, 0.12);
}

.header-search button,
.mobile-search button,
.filter-bar button,
.hero-action,
.player-overlay,
.primary-button {
  border: 0;
  color: #ffffff;
  background: linear-gradient(135deg, var(--sakura-500), var(--sakura-600));
  cursor: pointer;
  box-shadow: 0 12px 26px rgba(233, 30, 99, 0.25);
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    opacity 0.2s ease;
}

.header-search button,
.mobile-search button,
.filter-bar button {
  position: absolute;
  right: 5px;
  padding: 8px 19px;
  border-radius: 999px;
}

.header-search button:hover,
.mobile-search button:hover,
.filter-bar button:hover,
.hero-action:hover,
.primary-button:hover {
  transform: translateY(-1px) scale(1.02);
  box-shadow: 0 16px 32px rgba(233, 30, 99, 0.32);
}

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

.nav-link,
.mobile-link {
  color: var(--text-700);
  border-radius: 999px;
  font-weight: 700;
  transition:
    color 0.2s ease,
    background 0.2s ease;
}

.nav-link {
  padding: 9px 16px;
}

.nav-link:hover,
.mobile-link:hover,
.nav-link.is-active,
.mobile-link.is-active {
  color: #ffffff;
  background: var(--sakura-500);
}

.menu-toggle {
  width: 44px;
  height: 44px;
  display: none;
  border: 0;
  border-radius: 14px;
  background: var(--sakura-100);
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 21px;
  height: 2px;
  margin: 5px auto;
  background: var(--sakura-600);
  border-radius: 999px;
}

.mobile-panel {
  display: none;
  padding: 0 18px 18px;
  border-top: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.92);
}

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

.mobile-search {
  position: relative;
  max-width: 640px;
  margin: 16px auto;
}

.mobile-panel nav {
  display: grid;
  max-width: 640px;
  margin: 0 auto;
  gap: 8px;
}

.mobile-link {
  padding: 12px 16px;
}

.page-main {
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto;
  padding: 34px 0 56px;
}

.hero-carousel {
  position: relative;
  overflow: hidden;
  min-height: 520px;
  border-radius: var(--radius-2xl);
  box-shadow: var(--shadow);
  background: #111827;
  isolation: isolate;
}

.hero-carousel::before {
  content: "";
  position: absolute;
  inset: -15% 45% auto -10%;
  height: 260px;
  border-radius: 999px;
  background: linear-gradient(
    135deg,
    rgba(247, 139, 184, 0.28),
    rgba(255, 244, 216, 0.24)
  );
  filter: blur(16px);
  animation: floatSoft 6s ease-in-out infinite;
  z-index: 1;
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  align-items: end;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.7s ease;
}

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

.hero-slide img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.02);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      0deg,
      rgba(0, 0, 0, 0.82),
      rgba(0, 0, 0, 0.2) 58%,
      rgba(0, 0, 0, 0.12)
    ),
    linear-gradient(90deg, rgba(0, 0, 0, 0.72), transparent 68%);
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(720px, 100%);
  padding: 0 54px 58px;
  color: #ffffff;
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--sakura-300);
  font-weight: 800;
  margin-bottom: 14px;
}

.hero-title {
  margin: 0 0 16px;
  font-size: clamp(34px, 5vw, 62px);
  line-height: 1.06;
  letter-spacing: -0.04em;
  text-shadow: 0 3px 14px rgba(0, 0, 0, 0.18);
}

.hero-desc {
  margin: 0 0 22px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 18px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.hero-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 26px;
}

.hero-meta span,
.hero-meta a {
  color: #ffffff;
  padding: 7px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(6px);
}

.hero-meta .solid {
  background: var(--sakura-500);
}

.hero-action,
.primary-button {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 13px 24px;
  border-radius: 999px;
  font-weight: 800;
}

.hero-dots {
  position: absolute;
  right: 34px;
  bottom: 34px;
  z-index: 3;
  display: flex;
  gap: 9px;
}

.hero-dot {
  width: 12px;
  height: 12px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.54);
  cursor: pointer;
  transition:
    width 0.2s ease,
    background 0.2s ease;
}

.hero-dot.is-active {
  width: 32px;
  background: #ffffff;
}

.section-block {
  margin-top: 48px;
}

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

.section-heading h1,
.section-heading h2 {
  margin: 0;
  color: var(--text-900);
  font-size: clamp(25px, 3vw, 34px);
  line-height: 1.2;
}

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

.section-more {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--sakura-600);
  font-weight: 800;
  white-space: nowrap;
}

.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.five {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

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

.movie-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-xl);
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(255, 255, 255, 0.72);
  box-shadow: 0 12px 30px rgba(148, 50, 91, 0.1);
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease;
}

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

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

.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);
}

.year-badge,
.rank-mark {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  border-radius: 999px;
  color: #ffffff;
  font-weight: 800;
  font-size: 13px;
  padding: 5px 10px;
  background: rgba(17, 24, 39, 0.72);
  backdrop-filter: blur(8px);
}

.rank-mark {
  background: linear-gradient(135deg, #facc15, #f97316);
  min-width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  box-shadow: 0 10px 18px rgba(249, 115, 22, 0.3);
}

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

.movie-meta-line {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  color: var(--text-500);
  font-size: 13px;
  margin-bottom: 8px;
}

.movie-meta-line span:not(:last-child)::after {
  content: "·";
  margin-left: 8px;
  color: var(--sakura-300);
}

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

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

.movie-card p {
  margin: 0 0 13px;
  color: var(--text-600);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-tags,
.detail-tags {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.card-tags a,
.card-tags span,
.detail-tags a,
.detail-tags span {
  padding: 5px 10px;
  border-radius: 999px;
  color: var(--text-700);
  background: var(--sakura-100);
  font-size: 13px;
  font-weight: 700;
}

.card-tags a,
.detail-tags a {
  color: var(--sakura-600);
}

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

.movie-card-horizontal .poster-link {
  aspect-ratio: 16 / 11;
  min-height: 100%;
}

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

.category-tile,
.category-card {
  display: block;
  padding: 24px;
  border-radius: var(--radius-xl);
  background: rgba(255, 255, 255, 0.84);
  border: 1px solid rgba(255, 255, 255, 0.72);
  box-shadow: 0 12px 30px rgba(148, 50, 91, 0.1);
  transition:
    transform 0.22s ease,
    box-shadow 0.22s ease;
}

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

.category-tile span,
.category-card span {
  display: inline-flex;
  width: 48px;
  height: 48px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--sakura-100), var(--cream-100));
  margin-bottom: 14px;
  font-size: 24px;
}

.category-tile h3,
.category-card h2 {
  margin: 0 0 8px;
  color: var(--text-900);
}

.category-tile p,
.category-card p {
  margin: 0;
  color: var(--text-500);
}

.sakura-panel {
  padding: 30px;
  border-radius: var(--radius-2xl);
  background: linear-gradient(
    135deg,
    rgba(252, 217, 231, 0.86),
    rgba(255, 244, 216, 0.92)
  );
  box-shadow: var(--shadow);
}

.filter-bar {
  position: relative;
  display: flex;
  gap: 12px;
  margin: 28px 0;
}

.filter-bar input {
  padding-right: 130px;
}

.page-hero {
  padding: 36px;
  border-radius: var(--radius-2xl);
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.88),
    rgba(255, 244, 216, 0.7)
  );
  box-shadow: var(--shadow);
}

.page-hero h1 {
  margin: 0 0 12px;
  font-size: clamp(32px, 4vw, 50px);
  letter-spacing: -0.03em;
}

.page-hero p {
  max-width: 780px;
  margin: 0;
  color: var(--text-600);
  font-size: 18px;
}

.category-overview {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  margin-top: 30px;
}

.category-card ul {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.category-card li a {
  color: var(--text-700);
  font-weight: 700;
}

.category-card li a:hover {
  color: var(--sakura-600);
}

.breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
  color: var(--text-500);
  font-size: 14px;
}

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

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

.detail-main,
.detail-side {
  min-width: 0;
}

.player-section {
  overflow: hidden;
  border-radius: var(--radius-2xl);
  background: #111827;
  box-shadow: var(--shadow);
}

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

.player-box video {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  background: #111827;
}

.player-layer {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.58), rgba(0, 0, 0, 0.08));
  transition:
    opacity 0.2s ease,
    visibility 0.2s ease;
}

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

.player-overlay {
  width: 82px;
  height: 82px;
  border-radius: 50%;
  font-size: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding-left: 5px;
}

.player-message {
  position: absolute;
  left: 20px;
  right: 20px;
  bottom: 18px;
  color: rgba(255, 255, 255, 0.88);
  text-align: center;
  font-size: 14px;
}

.detail-panel,
.side-panel {
  margin-top: 24px;
  padding: 26px;
  border-radius: var(--radius-xl);
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.72);
  box-shadow: 0 12px 30px rgba(148, 50, 91, 0.1);
}

.detail-panel h1 {
  margin: 0 0 12px;
  font-size: clamp(30px, 4vw, 46px);
  letter-spacing: -0.03em;
}

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

.info-pill {
  padding: 14px;
  border-radius: 18px;
  background: linear-gradient(135deg, var(--sakura-50), var(--cream-50));
}

.info-pill b {
  display: block;
  color: var(--text-500);
  font-size: 13px;
  margin-bottom: 3px;
}

.info-pill span {
  color: var(--text-900);
  font-weight: 800;
}

.article-text h2,
.side-panel h2 {
  margin: 26px 0 10px;
  font-size: 24px;
}

.article-text p {
  margin: 0 0 16px;
  color: var(--text-700);
}

.side-panel {
  margin-top: 0;
}

.side-list {
  display: grid;
  gap: 12px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.side-list a {
  display: grid;
  grid-template-columns: 82px 1fr;
  gap: 12px;
  align-items: center;
}

.side-list img {
  width: 82px;
  aspect-ratio: 16 / 11;
  object-fit: cover;
  border-radius: 14px;
}

.side-list strong {
  display: block;
  line-height: 1.3;
}

.side-list small {
  color: var(--text-500);
}

.next-links {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  margin-top: 24px;
}

.next-links a {
  flex: 1;
  padding: 15px 18px;
  border-radius: 18px;
  background: var(--sakura-100);
  color: var(--sakura-600);
  font-weight: 800;
}

.empty-state {
  display: none;
  padding: 22px;
  border-radius: var(--radius-xl);
  background: rgba(255, 255, 255, 0.78);
  color: var(--text-600);
  text-align: center;
}

.empty-state.is-visible {
  display: block;
}

.site-footer {
  border-top: 1px solid var(--border);
  background: linear-gradient(
    135deg,
    rgba(254, 246, 249, 0.94),
    rgba(255, 252, 245, 0.94)
  );
}

.footer-grid {
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 28px;
  padding: 42px 0;
}

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

.site-footer p {
  color: var(--text-600);
  margin: 12px 0 0;
}

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

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

.footer-bottom {
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto;
  padding: 18px 0 28px;
  color: var(--text-500);
  border-top: 1px solid var(--border);
}

@keyframes floatSoft {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-18px);
  }
}

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

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

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

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

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

  .menu-toggle {
    display: block;
    margin-left: auto;
  }

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

  .hero-content {
    padding: 0 24px 38px;
  }

  .hero-dots {
    right: 24px;
    bottom: 20px;
  }

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

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

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

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

@media (max-width: 560px) {
  .page-main {
    width: min(100% - 22px, 1240px);
    padding-top: 20px;
  }

  .site-logo .logo-text small {
    display: none;
  }

  .logo-text strong {
    font-size: 17px;
  }

  .movie-grid,
  .movie-grid.three,
  .movie-grid.five,
  .category-overview,
  .category-strip {
    grid-template-columns: 1fr;
  }

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

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

  .filter-bar {
    display: block;
  }

  .filter-bar button {
    top: 5px;
  }

  .detail-info-grid,
  .category-card ul,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .page-hero,
  .sakura-panel,
  .detail-panel,
  .side-panel {
    padding: 22px;
  }
}
