:root {
  --site-pink: #ec4899;
  --site-red: #ef4444;
  --site-orange: #f97316;
  --site-blue: #3b82f6;
  --site-bg: #fff7fb;
  --site-text: #1f2937;
  --site-muted: #6b7280;
  --site-card: #ffffff;
  --site-shadow: 0 18px 45px rgba(31, 41, 55, 0.12);
}

body {
  background: linear-gradient(135deg, #fff1f7 0%, #ffffff 44%, #eff6ff 100%);
  color: var(--site-text);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(244, 114, 182, 0.18);
}

.site-header-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.site-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 22px;
  background: linear-gradient(90deg, var(--site-pink), var(--site-red));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  white-space: nowrap;
}

.logo-mark {
  width: 36px;
  height: 36px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--site-pink), var(--site-red), var(--site-orange));
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 24px rgba(239, 68, 68, 0.28);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 22px;
  font-weight: 700;
  color: #374151;
}

.site-nav a {
  transition: color 0.25s ease;
}

.site-nav a:hover {
  color: var(--site-red);
}

.site-search-form {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 8px 6px 14px;
  border: 1px solid rgba(236, 72, 153, 0.24);
  border-radius: 999px;
  background: #ffffff;
  box-shadow: 0 8px 24px rgba(236, 72, 153, 0.08);
}

.site-search-form input {
  width: 180px;
  outline: none;
  color: #374151;
  font-size: 14px;
}

.site-search-form button,
.hero-search button,
.filter-button {
  border-radius: 999px;
  padding: 8px 16px;
  color: #ffffff;
  font-weight: 800;
  background: linear-gradient(90deg, var(--site-pink), var(--site-red));
  box-shadow: 0 10px 20px rgba(239, 68, 68, 0.22);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.site-search-form button:hover,
.hero-search button:hover,
.filter-button:hover {
  transform: translateY(-1px) scale(1.03);
  box-shadow: 0 14px 30px rgba(239, 68, 68, 0.3);
}

.mobile-toggle {
  display: none;
  color: #374151;
  font-size: 28px;
  line-height: 1;
}

.mobile-panel {
  display: none;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 16px 16px;
}

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

.mobile-panel a {
  display: block;
  padding: 12px 14px;
  margin-top: 6px;
  border-radius: 12px;
  color: #374151;
  font-weight: 700;
}

.mobile-panel a:hover {
  background: #fff1f7;
  color: var(--site-red);
}

.hero-shell {
  position: relative;
  min-height: 600px;
  overflow: hidden;
  margin-bottom: 48px;
}

.hero-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, #ec4899, #ef4444, #f59e0b, #ec4899);
  background-size: 220% 220%;
  animation: gradient 4.5s ease infinite;
}

.hero-shade {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 78% 24%, rgba(255, 255, 255, 0.35), transparent 28%), rgba(0, 0, 0, 0.24);
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 1180px;
  min-height: 600px;
  margin: 0 auto;
  padding: 72px 16px 90px;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
  gap: 48px;
  align-items: center;
}

.hero-copy {
  color: #ffffff;
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  margin-bottom: 22px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(8px);
  font-weight: 800;
}

.hero-title {
  font-size: clamp(42px, 7vw, 76px);
  line-height: 1.02;
  font-weight: 900;
  letter-spacing: -0.04em;
  text-shadow: 0 16px 34px rgba(0, 0, 0, 0.24);
}

.hero-desc {
  margin-top: 22px;
  max-width: 690px;
  font-size: clamp(18px, 2vw, 24px);
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.92);
}

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

.hero-primary,
.hero-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 52px;
  padding: 0 26px;
  border-radius: 999px;
  font-weight: 900;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.hero-primary {
  background: #ffffff;
  color: var(--site-red);
  box-shadow: 0 22px 42px rgba(0, 0, 0, 0.2);
}

.hero-secondary {
  color: #ffffff;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.38);
  background: rgba(255, 255, 255, 0.16);
}

.hero-primary:hover,
.hero-secondary:hover {
  transform: translateY(-2px) scale(1.04);
}

.hero-search {
  display: flex;
  width: min(560px, 100%);
  gap: 10px;
  margin-top: 28px;
  padding: 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(12px);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.22);
}

.hero-search input {
  flex: 1;
  min-width: 0;
  padding: 0 12px;
  outline: none;
  color: #ffffff;
}

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

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.hero-tags a {
  padding: 8px 12px;
  border-radius: 999px;
  color: #ffffff;
  font-size: 14px;
  font-weight: 800;
  background: rgba(255, 255, 255, 0.16);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18);
}

.hero-poster-card {
  position: relative;
  border-radius: 28px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.14);
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.25);
  backdrop-filter: blur(12px);
}

.hero-poster-card img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  transform: scale(1.01);
  transition: transform 0.4s ease;
}

.hero-poster-card:hover img {
  transform: scale(1.07);
}

.hero-poster-info {
  position: absolute;
  inset: auto 0 0 0;
  padding: 70px 22px 22px;
  color: #ffffff;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.82), transparent);
}

.hero-wave {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 84px;
  background: linear-gradient(0deg, #fff7fb, transparent);
}

.page-shell {
  min-height: 100vh;
}

.site-main {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 16px 64px;
}

.section-block {
  margin-bottom: 64px;
}

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

.section-title {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: clamp(26px, 4vw, 36px);
  line-height: 1.15;
  font-weight: 900;
  background: linear-gradient(90deg, var(--site-orange), var(--site-red));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.section-more {
  color: var(--site-red);
  font-weight: 900;
}

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

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

.movie-card {
  min-width: 0;
  border-radius: 22px;
  overflow: hidden;
  background: #ffffff;
  box-shadow: 0 14px 35px rgba(31, 41, 55, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.movie-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 26px 60px rgba(31, 41, 55, 0.18);
}

.movie-card-link {
  display: block;
  height: 100%;
}

.movie-poster {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #fdf2f8, #fee2e2);
}

.movie-poster img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  transition: transform 0.35s ease;
}

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

.movie-poster-wide img {
  aspect-ratio: 16 / 9;
}

.movie-shade {
  position: absolute;
  inset: 0;
  opacity: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.82), transparent 65%);
  transition: opacity 0.3s ease;
}

.movie-card:hover .movie-shade {
  opacity: 1;
}

.movie-badge,
.rank-badge,
.score-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  border-radius: 999px;
  padding: 5px 11px;
  color: #ffffff;
  font-size: 12px;
  font-weight: 900;
  background: linear-gradient(90deg, var(--site-red), var(--site-orange));
  box-shadow: 0 10px 22px rgba(239, 68, 68, 0.32);
}

.rank-badge {
  left: 12px;
  right: auto;
  min-width: 36px;
  text-align: center;
  background: linear-gradient(90deg, #f59e0b, #f97316);
}

.movie-hover {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 56px 14px 14px;
  color: #ffffff;
  transform: translateY(100%);
  transition: transform 0.3s ease;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.82), transparent);
}

.movie-card:hover .movie-hover {
  transform: translateY(0);
}

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

.movie-title {
  display: -webkit-box;
  min-height: 48px;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  font-size: 16px;
  line-height: 1.5;
  font-weight: 900;
  color: #111827;
}

.movie-meta,
.movie-tags-line {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
  color: var(--site-muted);
  font-size: 13px;
}

.meta-pill,
.tag-pill {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 5px 9px;
  background: #fff1f7;
  color: #be123c;
  font-weight: 800;
}

.tag-pill {
  background: #f3f4f6;
  color: #4b5563;
}

.movie-one-line {
  display: -webkit-box;
  min-height: 42px;
  overflow: hidden;
  margin-top: 10px;
  color: #6b7280;
  font-size: 14px;
  line-height: 1.55;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

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

.category-card {
  display: block;
  min-height: 150px;
  padding: 22px;
  border-radius: 24px;
  color: #ffffff;
  background: linear-gradient(135deg, #ec4899, #ef4444, #f97316);
  box-shadow: 0 18px 42px rgba(239, 68, 68, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.category-card:nth-child(2n) {
  background: linear-gradient(135deg, #3b82f6, #06b6d4, #8b5cf6);
}

.category-card:nth-child(3n) {
  background: linear-gradient(135deg, #f97316, #ef4444, #ec4899);
}

.category-card:hover {
  transform: translateY(-6px) scale(1.02);
  box-shadow: 0 26px 60px rgba(239, 68, 68, 0.26);
}

.category-card h3 {
  font-size: 20px;
  font-weight: 900;
  margin-bottom: 10px;
}

.category-card p {
  color: rgba(255, 255, 255, 0.88);
  line-height: 1.65;
  font-size: 14px;
}

.page-hero {
  margin: 0 auto 42px;
  padding: 52px 16px;
  color: #ffffff;
  background: linear-gradient(120deg, #ec4899, #ef4444, #f97316);
  box-shadow: 0 22px 50px rgba(239, 68, 68, 0.18);
}

.page-hero-inner {
  max-width: 1180px;
  margin: 0 auto;
}

.page-hero h1 {
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.1;
  font-weight: 900;
  margin-bottom: 18px;
}

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

.filter-panel {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) 180px 180px 180px auto;
  gap: 12px;
  padding: 18px;
  margin-bottom: 28px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: var(--site-shadow);
}

.filter-panel input,
.filter-panel select {
  width: 100%;
  min-height: 46px;
  padding: 0 14px;
  border-radius: 14px;
  outline: none;
  background: #ffffff;
  border: 1px solid rgba(236, 72, 153, 0.22);
}

.filter-note {
  margin: -10px 0 24px;
  color: #6b7280;
  font-weight: 700;
}

.ranking-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.ranking-item {
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 16px;
  padding: 14px;
  border-radius: 22px;
  background: #ffffff;
  box-shadow: 0 12px 30px rgba(31, 41, 55, 0.1);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.ranking-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 46px rgba(31, 41, 55, 0.16);
}

.ranking-thumb {
  position: relative;
  overflow: hidden;
  border-radius: 16px;
}

.ranking-thumb img {
  width: 100%;
  height: 120px;
  object-fit: cover;
}

.ranking-info h3 {
  font-size: 18px;
  font-weight: 900;
  line-height: 1.45;
  margin-bottom: 8px;
}

.ranking-info p {
  color: #6b7280;
  line-height: 1.6;
  display: -webkit-box;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.detail-hero {
  position: relative;
  overflow: hidden;
  color: #ffffff;
  background: linear-gradient(120deg, #111827, #7f1d1d 48%, #ec4899);
}

.detail-hero-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 54px 16px;
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 34px;
  align-items: center;
}

.detail-cover {
  border-radius: 28px;
  overflow: hidden;
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.28);
}

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

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
  color: rgba(255, 255, 255, 0.78);
  font-weight: 700;
}

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

.detail-title {
  font-size: clamp(34px, 6vw, 62px);
  line-height: 1.1;
  font-weight: 900;
  margin-bottom: 18px;
}

.detail-one-line {
  max-width: 820px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 18px;
  line-height: 1.8;
}

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.detail-meta span {
  border-radius: 999px;
  padding: 8px 12px;
  color: #ffffff;
  font-weight: 900;
  background: rgba(255, 255, 255, 0.16);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.2);
}

.detail-main {
  max-width: 1180px;
  margin: 0 auto;
  padding: 46px 16px 70px;
}

.player-shell {
  margin-bottom: 42px;
  border-radius: 30px;
  overflow: hidden;
  background: #0f172a;
  box-shadow: 0 30px 80px rgba(15, 23, 42, 0.28);
}

.video-stage {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #000000;
}

.video-stage video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000000;
}

.player-cover {
  position: absolute;
  inset: 0;
  z-index: 5;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  color: #ffffff;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.72), rgba(0, 0, 0, 0.18));
  cursor: pointer;
}

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

.player-icon {
  width: 82px;
  height: 82px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding-left: 6px;
  font-size: 34px;
  color: var(--site-red);
  background: #ffffff;
  box-shadow: 0 18px 45px rgba(255, 255, 255, 0.24);
  transition: transform 0.25s ease;
}

.player-cover:hover .player-icon {
  transform: scale(1.1);
}

.player-text {
  font-size: 18px;
  font-weight: 900;
  text-shadow: 0 8px 22px rgba(0, 0, 0, 0.4);
}

.content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.8fr) minmax(280px, 0.8fr);
  gap: 26px;
  align-items: start;
}

.content-card {
  border-radius: 26px;
  padding: 28px;
  background: #ffffff;
  box-shadow: var(--site-shadow);
}

.content-card h2,
.content-card h3 {
  font-size: 26px;
  font-weight: 900;
  margin-bottom: 16px;
  color: #111827;
}

.content-card p {
  color: #4b5563;
  line-height: 1.9;
  margin-bottom: 18px;
}

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

.related-item {
  display: grid;
  grid-template-columns: 78px 1fr;
  gap: 12px;
  align-items: center;
  padding: 10px;
  border-radius: 18px;
  background: #fff7fb;
  transition: transform 0.25s ease, background 0.25s ease;
}

.related-item:hover {
  transform: translateX(4px);
  background: #fff1f2;
}

.related-item img {
  width: 78px;
  height: 98px;
  object-fit: cover;
  border-radius: 14px;
}

.related-item h3 {
  font-size: 15px;
  line-height: 1.45;
  margin: 0 0 6px;
}

.related-item p {
  margin: 0;
  color: #6b7280;
  font-size: 13px;
  line-height: 1.45;
}

.site-footer {
  background: linear-gradient(90deg, #111827, #1f2937);
  color: #ffffff;
}

.site-footer-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 44px 16px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 28px;
  margin-bottom: 28px;
}

.site-footer h2,
.site-footer h3 {
  font-weight: 900;
  margin-bottom: 14px;
}

.site-footer p,
.site-footer a,
.footer-copy {
  color: #d1d5db;
  line-height: 1.8;
  font-size: 14px;
}

.site-footer a:hover {
  color: #ffffff;
}

.footer-copy {
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  text-align: center;
}

@media (max-width: 1040px) {
  .site-search-form {
    display: none;
  }

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

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

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

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

  .mobile-toggle {
    display: inline-flex;
  }

  .hero-content,
  .detail-hero-inner,
  .content-grid {
    grid-template-columns: 1fr;
  }

  .hero-shell,
  .hero-content {
    min-height: auto;
  }

  .hero-poster-card {
    max-width: 320px;
  }

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

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

  .detail-hero-inner {
    padding-top: 34px;
  }

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

@media (max-width: 560px) {
  .site-header-inner {
    gap: 10px;
  }

  .site-logo {
    font-size: 18px;
  }

  .hero-content {
    padding-top: 48px;
  }

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

  .hero-search input {
    min-height: 44px;
  }

  .movie-grid,
  .movie-grid-wide,
  .category-grid,
  .ranking-list,
  .filter-panel,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .ranking-item {
    grid-template-columns: 82px 1fr;
  }

  .ranking-thumb img {
    height: 108px;
  }

  .content-card {
    padding: 22px;
  }
}
