
:root {
  --sakura-50: #fef6f9;
  --sakura-100: #fdedf3;
  --sakura-200: #fcd9e7;
  --sakura-400: #f78bb8;
  --sakura-500: #f06292;
  --sakura-600: #e91e63;
  --sakura-700: #c2185b;
  --cream-50: #fffcf5;
  --cream-400: #f8d77a;
  --spring-500: #22c55e;
  --ink: #1f2937;
  --muted: #6b7280;
  --card: rgba(255, 255, 255, 0.88);
  --shadow: 0 18px 45px rgba(194, 24, 91, 0.13);
}

body {
  min-height: 100vh;
  overflow-x: hidden;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(252, 217, 231, 0.9);
  box-shadow: 0 8px 28px rgba(233, 30, 99, 0.08);
}

.header-inner,
.footer-inner,
.site-main {
  max-width: 1280px;
  margin: 0 auto;
}

.header-inner {
  height: 72px;
  padding: 0 24px;
  display: flex;
  align-items: center;
  gap: 22px;
}

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
}

.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 800;
  font-size: 20px;
  background: linear-gradient(135deg, var(--sakura-400), var(--sakura-600));
  box-shadow: 0 10px 24px rgba(233, 30, 99, 0.28);
  transition: transform 0.25s ease;
}

.brand:hover .brand-mark {
  transform: scale(1.1) rotate(-5deg);
}

.brand-copy {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

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

.brand-copy small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
}

.header-search,
.mobile-search,
.hero-search {
  position: relative;
  display: flex;
  align-items: center;
}

.header-search {
  flex: 1;
  max-width: 520px;
}

.header-search input,
.mobile-search input,
.hero-search input,
.filter-row input {
  width: 100%;
  border: 2px solid var(--sakura-200);
  background: rgba(255, 255, 255, 0.9);
  border-radius: 999px;
  padding: 12px 52px 12px 18px;
  outline: none;
  color: var(--ink);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.header-search input:focus,
.mobile-search input:focus,
.hero-search input:focus,
.filter-row input:focus {
  border-color: var(--sakura-400);
  box-shadow: 0 0 0 4px rgba(247, 139, 184, 0.16);
}

.header-search button,
.mobile-search button,
.hero-search button {
  position: absolute;
  right: 7px;
  top: 50%;
  transform: translateY(-50%);
  min-width: 38px;
  height: 38px;
  padding: 0 14px;
  border-radius: 999px;
  background: var(--sakura-500);
  color: #fff;
  font-weight: 700;
  transition: background 0.2s ease, transform 0.2s ease;
}

.header-search button:hover,
.mobile-search button:hover,
.hero-search button:hover {
  background: var(--sakura-600);
}

.desktop-nav,
.mobile-nav,
.footer-links {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 16px;
  border-radius: 999px;
  color: #374151;
  font-weight: 700;
  transition: all 0.2s ease;
}

.nav-link:hover {
  background: var(--sakura-100);
  color: var(--sakura-700);
}

.nav-link.active {
  color: #fff;
  background: var(--sakura-500);
  box-shadow: 0 10px 24px rgba(233, 30, 99, 0.22);
}

.mobile-toggle {
  display: none;
  font-size: 24px;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  color: var(--sakura-700);
}

.mobile-toggle:hover {
  background: var(--sakura-100);
}

.mobile-panel {
  display: none;
  padding: 14px 20px 18px;
  border-top: 1px solid var(--sakura-200);
  background: rgba(255, 255, 255, 0.96);
}

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

.mobile-search {
  margin-bottom: 14px;
}

.mobile-nav {
  align-items: stretch;
  flex-direction: column;
}

.site-main {
  padding: 32px 24px 56px;
}

.hero-slider {
  position: relative;
  min-height: 430px;
  margin-bottom: 48px;
  overflow: hidden;
  border-radius: 32px;
  box-shadow: var(--shadow);
  background: var(--sakura-200);
}

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

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

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.04);
  transition: transform 8s ease;
}

.hero-slide.active img {
  transform: scale(1.11);
}

.hero-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.86), rgba(0, 0, 0, 0.34) 50%, rgba(233, 30, 99, 0.12));
}

.hero-content {
  position: absolute;
  left: clamp(22px, 5vw, 70px);
  right: 24px;
  bottom: 72px;
  max-width: 700px;
  color: #fff;
}

.hero-kicker,
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  color: var(--sakura-400);
  font-weight: 800;
  letter-spacing: 0.05em;
}

.hero-content h1,
.page-hero h1,
.detail-title h1 {
  font-size: clamp(32px, 5vw, 58px);
  line-height: 1.04;
  font-weight: 900;
  margin: 0 0 18px;
}

.hero-content p,
.page-hero p,
.detail-title p {
  font-size: 18px;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.86);
  max-width: 760px;
}

.hero-tags,
.hero-inline-tags,
.movie-tags,
.tag-cloud,
.filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-tags {
  margin: 22px 0 12px;
}

.hero-tags span,
.hero-inline-tags span,
.movie-tags span,
.tag-cloud a,
.filter-chip {
  border-radius: 999px;
  padding: 8px 13px;
  font-weight: 700;
  font-size: 13px;
}

.hero-tags span:first-child,
.hero-inline-tags span,
.movie-tags span,
.tag-cloud a,
.filter-chip.active {
  background: var(--sakura-500);
  color: #fff;
}

.hero-tags span:not(:first-child) {
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
  backdrop-filter: blur(10px);
}

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

.primary-btn,
.ghost-btn,
.section-more {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 999px;
  font-weight: 800;
  transition: all 0.22s ease;
}

.primary-btn {
  padding: 13px 26px;
  color: #fff;
  background: var(--sakura-500);
  box-shadow: 0 16px 30px rgba(233, 30, 99, 0.35);
}

.primary-btn:hover {
  background: var(--sakura-600);
  transform: translateY(-2px) scale(1.02);
}

.ghost-btn {
  padding: 13px 24px;
  color: #fff;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.28);
  backdrop-filter: blur(12px);
}

.ghost-btn:hover {
  background: rgba(255, 255, 255, 0.24);
}

.hero-controls {
  position: absolute;
  left: clamp(22px, 5vw, 70px);
  right: clamp(22px, 5vw, 70px);
  bottom: 24px;
  display: flex;
  align-items: center;
  gap: 14px;
  color: #fff;
}

.hero-controls button {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(10px);
  color: #fff;
  font-size: 24px;
  transition: all 0.2s ease;
}

.hero-controls button:hover,
.hero-dot.active {
  background: var(--sakura-500);
}

.hero-dots {
  display: inline-flex;
  gap: 8px;
}

.hero-dot {
  width: 26px !important;
  height: 8px !important;
  border-radius: 999px !important;
  font-size: 0 !important;
}

.content-section {
  margin-bottom: 54px;
}

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

.section-title {
  display: flex;
  align-items: center;
  gap: 12px;
}

.section-title span {
  font-size: 28px;
}

.section-title h2 {
  font-size: 28px;
  line-height: 1.2;
  font-weight: 900;
  color: var(--ink);
}

.section-more {
  color: var(--sakura-700);
}

.section-more:hover {
  color: var(--sakura-500);
}

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

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

.movie-card {
  position: relative;
  min-width: 0;
}

.movie-link {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  border-radius: 22px;
  background: var(--card);
  box-shadow: 0 12px 28px rgba(31, 41, 55, 0.09);
  border: 1px solid rgba(252, 217, 231, 0.72);
  transition: transform 0.24s ease, box-shadow 0.24s ease;
}

.movie-link:hover {
  transform: translateY(-5px);
  box-shadow: 0 24px 42px rgba(194, 24, 91, 0.17);
}

.movie-cover {
  position: relative;
  display: block;
  height: 230px;
  overflow: hidden;
  background: var(--sakura-100);
}

.movie-cover img,
.poster-card img,
.player-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

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

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

.movie-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0;
  background: rgba(0, 0, 0, 0.3);
  transition: opacity 0.22s ease;
}

.movie-link:hover .movie-cover::after {
  opacity: 1;
}

.movie-duration {
  position: absolute;
  right: 12px;
  bottom: 12px;
  z-index: 2;
  padding: 4px 9px;
  border-radius: 8px;
  color: #fff;
  background: rgba(0, 0, 0, 0.72);
  font-size: 12px;
  font-weight: 800;
}

.movie-play {
  position: absolute;
  z-index: 3;
  inset: 50% auto auto 50%;
  transform: translate(-50%, -50%) scale(0.7);
  width: 54px;
  height: 54px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: #fff;
  background: var(--sakura-500);
  opacity: 0;
  transition: all 0.24s ease;
}

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

.movie-info {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 12px;
  padding: 18px;
}

.movie-info strong {
  font-size: 18px;
  line-height: 1.35;
  color: var(--ink);
  transition: color 0.2s ease;
}

.movie-link:hover .movie-info strong {
  color: var(--sakura-700);
}

.movie-info em {
  min-height: 48px;
  color: var(--muted);
  font-style: normal;
  line-height: 1.65;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.movie-tags span,
.tag-cloud a {
  background: var(--sakura-100);
  color: var(--sakura-700);
}

.movie-meta {
  margin-top: auto;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  color: #6b7280;
  font-size: 13px;
}

.movie-card-horizontal .movie-link {
  flex-direction: row;
}

.movie-card-horizontal .movie-cover {
  width: 240px;
  height: 150px;
  flex: 0 0 240px;
}

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

.sakura-panel,
.filter-panel,
.article-card,
.info-card,
.page-hero,
.detail-title {
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid rgba(252, 217, 231, 0.8);
  box-shadow: var(--shadow);
}

.sakura-panel {
  padding: 28px;
  background: linear-gradient(135deg, #fcd9e7, #fff0cf);
}

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

.category-card {
  min-height: 100%;
  border-radius: 24px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(252, 217, 231, 0.72);
  box-shadow: 0 10px 26px rgba(31, 41, 55, 0.08);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.category-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 36px rgba(194, 24, 91, 0.14);
}

.category-card-main {
  display: block;
  padding: 24px;
  text-align: center;
}

.category-icon {
  display: block;
  font-size: 34px;
  margin-bottom: 10px;
}

.category-card strong {
  display: block;
  color: var(--ink);
  font-size: 20px;
  font-weight: 900;
  margin-bottom: 8px;
}

.category-card em {
  color: var(--muted);
  font-style: normal;
  line-height: 1.7;
}

.category-samples {
  display: grid;
  gap: 8px;
  padding: 0 20px 22px;
}

.category-samples a {
  color: #6b7280;
  font-size: 14px;
  line-height: 1.5;
}

.category-samples a:hover {
  color: var(--sakura-700);
}

.page-hero,
.detail-title {
  margin-bottom: 30px;
  padding: clamp(26px, 4vw, 48px);
  background: linear-gradient(135deg, rgba(233, 30, 99, 0.92), rgba(247, 139, 184, 0.82)), linear-gradient(135deg, var(--sakura-100), var(--cream-50));
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.page-hero .eyebrow,
.detail-title .eyebrow {
  color: #fff0f6;
}

.page-hero h1,
.detail-title h1 {
  color: #fff;
}

.hero-search {
  flex: 0 1 420px;
  width: min(100%, 420px);
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 22px;
  color: var(--muted);
  font-size: 14px;
}

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

.breadcrumb strong {
  color: var(--ink);
}

.filter-panel {
  padding: 24px;
}

.filter-row {
  margin-bottom: 16px;
}

.filter-chips {
  margin-bottom: 24px;
}

.filter-chip {
  background: #fff;
  color: #374151;
  box-shadow: 0 6px 16px rgba(31, 41, 55, 0.06);
}

.empty-state {
  display: none;
  text-align: center;
  padding: 54px 20px;
  color: var(--muted);
  font-weight: 800;
}

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

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

.detail-main,
.detail-side {
  display: grid;
  gap: 22px;
}

.player-shell {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  background: #111827;
  box-shadow: 0 25px 50px rgba(17, 24, 39, 0.25);
  aspect-ratio: 16 / 9;
}

.player-shell video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000;
}

.player-cover {
  position: absolute;
  inset: 0;
  z-index: 2;
  width: 100%;
  height: 100%;
  cursor: pointer;
  opacity: 1;
  transition: opacity 0.24s ease, visibility 0.24s ease;
}

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

.player-cover-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.74), rgba(0, 0, 0, 0.28));
}

.player-play-button {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 78px;
  height: 78px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: var(--sakura-500);
  box-shadow: 0 18px 34px rgba(233, 30, 99, 0.36);
  font-size: 34px;
  padding-left: 5px;
}

.article-card,
.info-card {
  padding: 24px;
}

.article-card h2,
.info-card h2 {
  font-size: 24px;
  font-weight: 900;
  margin-bottom: 14px;
  color: var(--ink);
}

.article-card p {
  color: #374151;
  line-height: 1.95;
  font-size: 16px;
}

.poster-card {
  overflow: hidden;
  border-radius: 24px;
  box-shadow: var(--shadow);
  aspect-ratio: 2 / 3;
  background: var(--sakura-100);
}

.info-card dl {
  display: grid;
  grid-template-columns: 70px 1fr;
  gap: 12px 14px;
  margin-bottom: 18px;
}

.info-card dt {
  color: var(--muted);
  font-weight: 800;
}

.info-card dd {
  color: var(--ink);
  margin: 0;
  line-height: 1.6;
}

.tag-cloud a:hover {
  background: var(--sakura-500);
  color: #fff;
}

.site-footer {
  border-top: 1px solid rgba(252, 217, 231, 0.88);
  background: linear-gradient(135deg, var(--sakura-50), var(--cream-50));
}

.footer-inner {
  padding: 34px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  color: var(--muted);
}

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

@media (min-width: 640px) {
  .movie-grid,
  .rank-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

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

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

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

@media (min-width: 1180px) {
  .full-rank,
  .rank-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

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

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

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

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

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

  .poster-card {
    min-height: 270px;
  }
}

@media (max-width: 720px) {
  .header-inner {
    padding: 0 16px;
  }

  .brand-copy small {
    display: none;
  }

  .site-main {
    padding: 22px 16px 42px;
  }

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

  .hero-content {
    left: 22px;
    bottom: 86px;
  }

  .hero-content p,
  .page-hero p,
  .detail-title p {
    font-size: 16px;
  }

  .page-hero,
  .detail-title,
  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .movie-card-horizontal .movie-link {
    flex-direction: column;
  }

  .movie-card-horizontal .movie-cover {
    width: 100%;
    height: 220px;
    flex-basis: auto;
  }

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

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