:root {
  --rose: #f43f5e;
  --rose-dark: #be123c;
  --pink: #ec4899;
  --orange: #f97316;
  --ink: #111827;
  --muted: #6b7280;
  --line: #e5e7eb;
  --soft: #fff1f2;
  --bg: #fff7fb;
  --card: #ffffff;
  --shadow: 0 18px 60px rgba(17, 24, 39, 0.12);
  --shadow-soft: 0 12px 36px rgba(244, 63, 94, 0.12);
}

body {
  min-height: 100vh;
  background: linear-gradient(180deg, #fff7fb 0%, #ffffff 34%, #f9fafb 100%);
  color: var(--ink);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
}

img {
  background: linear-gradient(135deg, #ffe4e6, #fdf2f8);
}

a {
  transition: color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(229, 231, 235, 0.86);
}

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

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  background: linear-gradient(135deg, var(--rose), var(--pink));
  box-shadow: 0 12px 28px rgba(244, 63, 94, 0.28);
}

.brand-name {
  font-size: 20px;
  background: linear-gradient(90deg, var(--rose), var(--pink));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

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

.nav-link {
  color: #374151;
  font-size: 15px;
  font-weight: 650;
}

.nav-link:hover,
.nav-link.is-active,
.mobile-link.is-active {
  color: var(--rose);
}

.header-search,
.mobile-search {
  display: flex;
  align-items: center;
  gap: 8px;
}

.header-search input,
.mobile-search input,
.filter-panel input,
.filter-panel select {
  border: 1px solid var(--line);
  background: #ffffff;
  border-radius: 999px;
  padding: 10px 14px;
  outline: none;
}

.header-search input:focus,
.mobile-search input:focus,
.filter-panel input:focus,
.filter-panel select:focus {
  border-color: var(--rose);
  box-shadow: 0 0 0 4px rgba(244, 63, 94, 0.12);
}

.header-search button,
.mobile-search button,
.btn {
  border-radius: 999px;
  border: 0;
  background: linear-gradient(90deg, var(--rose), var(--pink));
  color: #ffffff;
  font-weight: 750;
  padding: 10px 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 12px 24px rgba(244, 63, 94, 0.2);
}

.btn:hover,
.header-search button:hover,
.mobile-search button:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 30px rgba(244, 63, 94, 0.28);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.36);
  box-shadow: none;
}

.btn-small {
  padding: 8px 14px;
  font-size: 14px;
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  border: 1px solid var(--line);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}

.menu-toggle span {
  width: 20px;
  height: 2px;
  background: var(--ink);
  border-radius: 999px;
}

.mobile-menu {
  display: none;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto 16px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: #ffffff;
  box-shadow: var(--shadow-soft);
}

.mobile-menu.is-open {
  display: grid;
  gap: 12px;
}

.mobile-link {
  color: #374151;
  font-weight: 650;
}

.hero {
  position: relative;
  overflow: hidden;
  min-height: 690px;
  color: #ffffff;
  background: #111827;
}

.hero-slider,
.hero-slide {
  min-height: 690px;
}

.hero-slide {
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 36px;
  padding: 96px max(32px, calc((100vw - 1180px) / 2)) 88px;
  background-size: cover;
  background-position: center;
}

.hero-slide.is-active {
  display: flex;
  animation: fadeIn 0.55s ease both;
}

.hero-content {
  width: min(680px, 100%);
  position: relative;
  z-index: 2;
}

.section-eyebrow {
  color: var(--rose);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.hero h1,
.hero-title-like {
  font-size: clamp(42px, 7vw, 78px);
  line-height: 0.98;
  font-weight: 900;
  letter-spacing: -0.06em;
  margin-bottom: 16px;
}

.hero h2 {
  font-size: clamp(28px, 5vw, 58px);
  line-height: 1.05;
  font-weight: 850;
  margin-bottom: 18px;
}

.hero-summary {
  color: rgba(255, 255, 255, 0.82);
  font-size: 19px;
  line-height: 1.8;
  max-width: 620px;
}

.hero-meta,
.detail-meta,
.card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.hero-meta {
  margin: 24px 0 12px;
}

.hero-meta span,
.detail-meta span {
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  padding: 6px 12px;
  font-weight: 700;
}

.hero-tags,
.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.hero-tags span,
.tag-row span {
  border-radius: 999px;
  padding: 5px 10px;
  background: rgba(244, 63, 94, 0.12);
  color: var(--rose-dark);
  font-size: 13px;
  font-weight: 700;
}

.hero-tags span {
  color: #ffe4e6;
  background: rgba(244, 63, 94, 0.32);
}

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

.hero-poster {
  width: min(360px, 28vw);
  aspect-ratio: 3 / 4;
  border-radius: 32px;
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
  transform: rotate(2deg);
  flex: 0 0 auto;
}

.hero-poster:hover {
  transform: rotate(0deg) translateY(-6px);
}

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

.hero-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 4;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.28);
  color: #ffffff;
  background: rgba(255, 255, 255, 0.12);
  font-size: 34px;
  line-height: 1;
}

.hero-prev {
  left: 22px;
}

.hero-next {
  right: 22px;
}

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

.hero-dot {
  width: 34px;
  height: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.34);
}

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

.hero-channels {
  position: absolute;
  right: max(32px, calc((100vw - 1180px) / 2));
  bottom: 28px;
  z-index: 5;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-channels a {
  border-radius: 999px;
  padding: 8px 14px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.26);
}

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

.page-section {
  padding: 72px 0;
}

.page-shell {
  padding: 48px 0 80px;
}

.soft-bg {
  width: 100%;
  padding-left: max(16px, calc((100vw - 1180px) / 2));
  padding-right: max(16px, calc((100vw - 1180px) / 2));
  background: linear-gradient(135deg, #fff1f2, #ffffff 58%, #fdf2f8);
  border-radius: 42px;
}

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

.section-head h2,
.archive-hero h1,
.detail-info h1 {
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.12;
  font-weight: 900;
  letter-spacing: -0.04em;
}

.section-head p,
.archive-hero p,
.category-overview-head p {
  color: var(--muted);
  line-height: 1.8;
  margin-top: 8px;
}

.section-link {
  color: var(--rose);
  font-weight: 800;
}

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

.channel-card,
.category-overview-card,
.movie-card,
.detail-content,
.player-card,
.detail-side,
.filter-panel,
.archive-hero {
  background: var(--card);
  border: 1px solid rgba(229, 231, 235, 0.9);
  border-radius: 28px;
  box-shadow: var(--shadow-soft);
}

.channel-card {
  padding: 24px;
  overflow: hidden;
  position: relative;
}

.channel-card::after {
  content: "";
  position: absolute;
  width: 110px;
  height: 110px;
  right: -34px;
  bottom: -34px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(244, 63, 94, 0.18), rgba(236, 72, 153, 0.08));
}

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

.channel-card strong {
  display: block;
  font-size: 21px;
  margin-bottom: 10px;
}

.channel-card p {
  color: var(--muted);
  line-height: 1.7;
}

.channel-card div {
  margin-top: 18px;
  display: grid;
  gap: 6px;
  color: #9f1239;
  font-size: 13px;
  font-weight: 700;
}

.movie-grid,
.rank-grid,
.mini-grid,
.archive-grid {
  display: grid;
  gap: 20px;
}

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

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

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

.movie-card {
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.card-cover {
  position: relative;
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #111827;
}

.card-mini .card-cover {
  aspect-ratio: 3 / 4;
}

.card-rank {
  flex-direction: row;
}

.card-rank .card-cover {
  width: 168px;
  min-width: 168px;
  aspect-ratio: 3 / 4;
}

.card-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}

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

.card-type,
.rank-badge {
  position: absolute;
  border-radius: 999px;
  color: #ffffff;
  font-weight: 850;
  font-size: 12px;
}

.card-type {
  right: 12px;
  top: 12px;
  padding: 5px 10px;
  background: rgba(244, 63, 94, 0.92);
}

.rank-badge {
  left: 12px;
  top: 12px;
  min-width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--orange), var(--rose));
}

.card-body {
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}

.card-title {
  color: var(--ink);
  font-size: 18px;
  line-height: 1.35;
  font-weight: 850;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-title:hover {
  color: var(--rose);
}

.card-desc {
  color: var(--muted);
  line-height: 1.65;
  font-size: 14px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-meta {
  color: #6b7280;
  font-size: 13px;
}

.card-meta span:not(:last-child)::after {
  content: "·";
  margin-left: 10px;
  color: #d1d5db;
}

.archive-hero {
  padding: 46px;
  margin-bottom: 28px;
  background: radial-gradient(circle at 20% 20%, rgba(244, 63, 94, 0.14), transparent 30%), #ffffff;
}

.archive-hero.compact {
  padding: 38px;
}

.filter-panel {
  display: grid;
  grid-template-columns: 1fr 180px 180px;
  gap: 16px;
  padding: 18px;
  margin-bottom: 26px;
}

.filter-panel label {
  display: grid;
  gap: 8px;
  color: #4b5563;
  font-size: 13px;
  font-weight: 750;
}

.category-overview-list {
  display: grid;
  gap: 22px;
}

.category-overview-card {
  padding: 26px;
}

.category-overview-head {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: start;
  margin-bottom: 20px;
}

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

.breadcrumb {
  width: min(1180px, calc(100% - 32px));
  margin: 30px auto 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  color: #6b7280;
  font-size: 14px;
}

.breadcrumb a {
  color: var(--rose);
  font-weight: 750;
}

.detail-page {
  padding-bottom: 80px;
}

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

.detail-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(320px, 0.7fr);
  gap: 28px;
  align-items: stretch;
}

.player-card {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: #030712;
  box-shadow: var(--shadow);
}

.movie-player,
.player-cover,
.player-cover img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.movie-player {
  object-fit: contain;
  background: #030712;
  z-index: 1;
}

.player-cover {
  border: 0;
  cursor: pointer;
  z-index: 2;
  overflow: hidden;
  background: #030712;
}

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

.player-cover img {
  object-fit: cover;
  filter: brightness(0.52);
  transform: scale(1.02);
}

.play-button {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 86px;
  height: 86px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--rose), var(--pink));
  color: #ffffff;
  font-size: 34px;
  box-shadow: 0 22px 56px rgba(244, 63, 94, 0.36);
  padding-left: 5px;
}

.detail-info {
  padding: 34px;
  border-radius: 28px;
  color: #ffffff;
  background: linear-gradient(135deg, #111827, #2b1021 55%, #881337);
  box-shadow: var(--shadow);
}

.detail-one-line {
  margin: 18px 0;
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.85;
  font-size: 17px;
}

.detail-tags {
  margin: 18px 0 26px;
}

.detail-content {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 28px;
  padding: 30px;
  margin-top: 28px;
}

.detail-content article h2,
.detail-side h2 {
  font-size: 24px;
  font-weight: 850;
  margin-bottom: 14px;
}

.detail-content article h2:not(:first-child) {
  margin-top: 26px;
}

.detail-content article p {
  color: #374151;
  line-height: 2;
  font-size: 16px;
}

.detail-side {
  padding: 24px;
  box-shadow: none;
}

.detail-side dl {
  display: grid;
  gap: 12px;
}

.detail-side dt {
  color: #6b7280;
  font-size: 13px;
  font-weight: 800;
}

.detail-side dd {
  color: var(--ink);
  font-weight: 750;
}

.related-section {
  padding-bottom: 0;
}

.site-footer {
  margin-top: 48px;
  color: #d1d5db;
  background: linear-gradient(135deg, #111827, #1f2937 55%, #111827);
}

.footer-inner {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 46px 0;
  display: grid;
  grid-template-columns: minmax(260px, 1fr) 2fr;
  gap: 32px;
}

.footer-brand {
  color: #ffffff;
  font-size: 22px;
  margin-bottom: 12px;
}

.footer-inner p {
  max-width: 520px;
  line-height: 1.8;
}

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

.footer-links a {
  color: #d1d5db;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  padding: 8px 12px;
}

.footer-links a:hover {
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.44);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  text-align: center;
  padding: 20px 16px;
  color: #9ca3af;
}

.is-filtered-out {
  display: none !important;
}

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

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

  .hero-slide {
    padding-top: 78px;
    flex-direction: column;
    align-items: flex-start;
  }

  .hero-poster {
    width: min(320px, 74vw);
  }

  .hero-channels {
    display: none;
  }

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

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

  .filter-panel {
    grid-template-columns: 1fr;
  }

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

  .footer-links {
    justify-content: flex-start;
  }
}

@media (max-width: 640px) {
  .header-inner {
    width: min(100% - 24px, 1180px);
    height: 64px;
  }

  .brand-name {
    font-size: 18px;
  }

  .hero,
  .hero-slider,
  .hero-slide {
    min-height: 760px;
  }

  .hero-slide {
    padding: 64px 18px 96px;
  }

  .hero-actions {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero-arrow {
    display: none;
  }

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

  .channel-grid,
  .movie-grid,
  .archive-grid,
  .mini-grid,
  .rank-grid,
  .rank-list {
    grid-template-columns: 1fr;
  }

  .card-rank {
    flex-direction: column;
  }

  .card-rank .card-cover {
    width: 100%;
    min-width: 0;
    aspect-ratio: 16 / 10;
  }

  .archive-hero,
  .archive-hero.compact,
  .detail-info,
  .detail-content {
    padding: 24px;
    border-radius: 22px;
  }

  .play-button {
    width: 68px;
    height: 68px;
    font-size: 28px;
  }
}
