
:root {
  --page-bg: #fff7fb;
  --panel: #ffffff;
  --ink: #1f2937;
  --muted: #6b7280;
  --soft: #fdf2f8;
  --brand: #ec4899;
  --brand-2: #f97316;
  --brand-3: #eab308;
  --ring: rgba(236, 72, 153, 0.24);
  --shadow: 0 22px 60px rgba(31, 41, 55, 0.12);
  --radius: 24px;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  background:
    radial-gradient(circle at top left, rgba(236, 72, 153, 0.12), transparent 32rem),
    radial-gradient(circle at top right, rgba(249, 115, 22, 0.12), transparent 30rem),
    var(--page-bg);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
}

img {
  object-fit: cover;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(236, 72, 153, 0.12);
}

.site-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  gap: 18px;
}

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

.brand-mark {
  width: 38px;
  height: 38px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--brand), var(--brand-2), var(--brand-3));
  box-shadow: 0 14px 28px rgba(236, 72, 153, 0.24);
}

.brand-text {
  font-size: 24px;
  background: linear-gradient(90deg, var(--brand), var(--brand-2), var(--brand-3));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

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

.nav-link {
  color: #374151;
  font-weight: 600;
  transition: color 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
  color: var(--brand);
}

.nav-dropdown {
  position: relative;
}

.dropdown-trigger {
  padding: 0;
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  width: 190px;
  padding: 10px;
  background: #ffffff;
  border: 1px solid rgba(236, 72, 153, 0.12);
  border-radius: 18px;
  box-shadow: var(--shadow);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: all 0.2s ease;
}

.nav-dropdown:hover .dropdown-menu,
.nav-dropdown:focus-within .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-menu a,
.mobile-panel a,
.site-footer a {
  display: block;
  color: #4b5563;
  padding: 9px 12px;
  border-radius: 12px;
  transition: all 0.2s ease;
}

.dropdown-menu a:hover,
.mobile-panel a:hover,
.site-footer a:hover {
  background: var(--soft);
  color: var(--brand);
}

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

.header-search input,
.filter-panel input,
.filter-panel select {
  width: 100%;
  border: 1px solid rgba(236, 72, 153, 0.16);
  background: #ffffff;
  border-radius: 999px;
  padding: 11px 16px;
  outline: none;
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.header-search input:focus,
.filter-panel input:focus,
.filter-panel select:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 4px var(--ring);
}

.header-search button,
.primary-button,
.secondary-button,
.ghost-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 18px;
  border-radius: 999px;
  font-weight: 700;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.header-search button,
.primary-button {
  background: linear-gradient(90deg, var(--brand), var(--brand-2));
  color: #ffffff;
  box-shadow: 0 16px 34px rgba(236, 72, 153, 0.28);
}

.secondary-button {
  background: #ffffff;
  color: var(--brand);
  border: 1px solid rgba(236, 72, 153, 0.22);
}

.ghost-button {
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.42);
  background: rgba(255, 255, 255, 0.12);
}

.header-search button:hover,
.primary-button:hover,
.secondary-button:hover,
.ghost-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 40px rgba(236, 72, 153, 0.24);
}

.mobile-menu-button {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: var(--soft);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}

.mobile-menu-button span {
  width: 20px;
  height: 2px;
  background: var(--brand);
  border-radius: 99px;
}

.mobile-panel {
  display: none;
  border-top: 1px solid rgba(236, 72, 153, 0.12);
}

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

.mobile-panel-inner {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 12px 0 18px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 6px;
}

.hero-slider {
  position: relative;
  min-height: 650px;
  overflow: hidden;
  background: #111827;
}

.hero-track,
.hero-slide,
.hero-bg {
  position: absolute;
  inset: 0;
}

.hero-slide {
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.7s ease, visibility 0.7s ease;
}

.hero-slide.active {
  opacity: 1;
  visibility: visible;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(2px) saturate(1.1);
  transform: scale(1.04);
  opacity: 0.55;
}

.hero-bg::after,
.detail-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(17, 24, 39, 0.96), rgba(17, 24, 39, 0.68), rgba(236, 72, 153, 0.48)),
    radial-gradient(circle at 20% 20%, rgba(236, 72, 153, 0.42), transparent 28rem);
}

.hero-content {
  position: relative;
  z-index: 2;
  min-height: 650px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  align-items: center;
  gap: 64px;
  color: #ffffff;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  color: var(--brand);
  background: rgba(236, 72, 153, 0.12);
  border: 1px solid rgba(236, 72, 153, 0.18);
  border-radius: 999px;
  padding: 7px 13px;
  font-weight: 800;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-copy .eyebrow,
.detail-copy .eyebrow {
  color: #fbcfe8;
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.22);
}

.hero-copy h1,
.hero-copy h2 {
  margin-top: 18px;
  font-size: clamp(42px, 6vw, 76px);
  line-height: 0.98;
  font-weight: 900;
  letter-spacing: -0.07em;
}

.hero-copy h2 + h2 {
  margin-top: 16px;
  font-size: clamp(28px, 4vw, 48px);
  color: #fce7f3;
}

.hero-copy p,
.page-hero p,
.detail-copy p {
  margin-top: 18px;
  max-width: 720px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 18px;
  line-height: 1.8;
}

.hero-tags,
.tag-list,
.detail-tags,
.movie-meta,
.rank-meta,
.detail-meta,
.hero-actions,
.detail-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.hero-tags {
  margin-top: 24px;
}

.hero-tags span,
.tag-list span,
.detail-tags a,
.movie-meta span,
.rank-meta span,
.detail-meta span {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 6px 11px;
  font-size: 13px;
  font-weight: 700;
}

.hero-tags span,
.detail-meta span {
  background: rgba(255, 255, 255, 0.15);
  color: #ffffff;
}

.hero-actions,
.detail-actions {
  margin-top: 30px;
}

.hero-poster {
  position: relative;
  display: block;
  height: 500px;
  border-radius: 34px;
  overflow: hidden;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.35);
  transform: rotate(2deg);
}

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

.hero-poster span {
  position: absolute;
  right: 18px;
  top: 18px;
  min-width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  color: #ffffff;
  font-size: 22px;
  font-weight: 900;
  border-radius: 18px;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
}

.hero-arrow {
  position: absolute;
  z-index: 4;
  top: 50%;
  width: 48px;
  height: 48px;
  border-radius: 999px;
  color: #ffffff;
  font-size: 34px;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(12px);
  transform: translateY(-50%);
}

.hero-prev {
  left: 24px;
}

.hero-next {
  right: 24px;
}

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

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

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

.hero-channel-row {
  position: absolute;
  left: 50%;
  bottom: 86px;
  z-index: 4;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  transform: translateX(-50%);
}

.hero-channel-row a {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 999px;
  padding: 9px 14px;
  font-weight: 700;
}

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

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

.section-heading h2,
.page-hero h1,
.detail-copy h1,
.content-card h2 {
  font-weight: 900;
  letter-spacing: -0.04em;
}

.section-heading h2 {
  margin-top: 10px;
  font-size: clamp(28px, 4vw, 44px);
}

.section-heading p,
.channel-body p,
.movie-line,
.rank-info p,
.content-card p,
.site-footer p {
  color: var(--muted);
  line-height: 1.75;
}

.section-heading > a,
.small-heading > a {
  color: var(--brand);
  font-weight: 800;
}

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

.movie-card,
.channel-card,
.content-card,
.player-card,
.filter-panel,
.category-strip {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(236, 72, 153, 0.12);
  border-radius: var(--radius);
  box-shadow: 0 12px 40px rgba(31, 41, 55, 0.07);
}

.movie-card {
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

.movie-cover {
  position: relative;
  display: block;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(236, 72, 153, 0.18), rgba(249, 115, 22, 0.16));
}

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

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

.movie-duration,
.movie-score {
  position: absolute;
  top: 12px;
  padding: 6px 10px;
  color: #ffffff;
  font-size: 12px;
  font-weight: 800;
  border-radius: 999px;
  background: rgba(17, 24, 39, 0.72);
  backdrop-filter: blur(10px);
}

.movie-duration {
  left: 12px;
}

.movie-score {
  right: 12px;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
}

.movie-info {
  padding: 18px;
}

.movie-title,
.rank-title {
  display: block;
  color: var(--ink);
  font-weight: 900;
  line-height: 1.35;
}

.movie-title {
  font-size: 18px;
}

.movie-title:hover,
.rank-title:hover {
  color: var(--brand);
}

.movie-line {
  margin-top: 9px;
  display: -webkit-box;
  overflow: hidden;
  min-height: 48px;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.movie-meta {
  margin-top: 13px;
}

.movie-meta span,
.rank-meta span {
  background: #f3f4f6;
  color: #4b5563;
}

.tag-list {
  margin-top: 12px;
}

.tag-list span,
.detail-tags a {
  background: var(--soft);
  color: var(--brand);
}

.pink-panel {
  padding-left: 28px;
  padding-right: 28px;
  border-radius: 36px;
  background: linear-gradient(135deg, rgba(253, 242, 248, 0.9), rgba(255, 247, 237, 0.9));
}

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

.ranking-row {
  display: grid;
  grid-template-columns: 68px 92px minmax(0, 1fr) 120px;
  gap: 18px;
  align-items: center;
  padding: 16px;
  background: #ffffff;
  border: 1px solid rgba(236, 72, 153, 0.12);
  border-radius: 22px;
  box-shadow: 0 10px 30px rgba(31, 41, 55, 0.06);
}

.rank-number {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  color: #ffffff;
  font-weight: 900;
  border-radius: 18px;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
}

.rank-cover {
  display: block;
  width: 92px;
  height: 122px;
  overflow: hidden;
  border-radius: 16px;
}

.rank-cover img {
  width: 100%;
  height: 100%;
}

.rank-title {
  font-size: 20px;
}

.rank-info p {
  margin-top: 7px;
}

.rank-meta {
  margin-top: 10px;
}

.rank-heat {
  text-align: right;
}

.rank-heat strong {
  display: block;
  color: var(--brand);
  font-size: 28px;
  font-weight: 900;
}

.rank-heat span {
  color: var(--muted);
  font-size: 13px;
}

.category-strip-list {
  display: grid;
  gap: 28px;
}

.category-strip {
  padding: 24px;
}

.small-heading {
  align-items: center;
  margin-bottom: 18px;
}

.small-heading h2 {
  font-size: 28px;
}

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

.compact-card {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 10px;
  border-radius: 18px;
  background: #fff7fb;
  transition: transform 0.2s ease, background 0.2s ease;
}

.compact-card:hover {
  background: #fce7f3;
  transform: translateY(-3px);
}

.compact-card img {
  width: 58px;
  height: 78px;
  border-radius: 14px;
}

.compact-card span {
  font-weight: 800;
  line-height: 1.35;
}

.page-hero {
  position: relative;
  color: #ffffff;
  padding: 98px 0 82px;
  background:
    linear-gradient(135deg, rgba(17, 24, 39, 0.94), rgba(236, 72, 153, 0.76)),
    radial-gradient(circle at 78% 20%, rgba(249, 115, 22, 0.58), transparent 30rem);
}

.page-hero h1 {
  margin-top: 18px;
  font-size: clamp(38px, 6vw, 64px);
}

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

.channel-card {
  overflow: hidden;
}

.channel-cover {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  height: 180px;
  overflow: hidden;
}

.channel-cover img {
  width: 100%;
  height: 100%;
}

.channel-body {
  padding: 22px;
}

.channel-body h2 {
  font-size: 26px;
  font-weight: 900;
}

.channel-body span {
  display: block;
  margin-top: 10px;
  color: var(--brand);
  font-weight: 700;
}

.filter-panel {
  display: grid;
  grid-template-columns: minmax(240px, 2fr) repeat(4, minmax(150px, 1fr));
  gap: 14px;
  padding: 18px;
  margin-bottom: 28px;
}

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

.empty-message {
  padding: 24px;
  color: var(--muted);
  text-align: center;
  background: #ffffff;
  border-radius: 18px;
}

.detail-hero {
  position: relative;
  min-height: 560px;
  overflow: hidden;
  color: #ffffff;
}

.detail-bg,
.detail-bg img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.detail-bg img {
  filter: blur(2px) saturate(1.1);
  transform: scale(1.04);
  opacity: 0.56;
}

.detail-layout {
  position: relative;
  z-index: 2;
  padding: 58px 0 72px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 9px;
  color: rgba(255, 255, 255, 0.75);
  margin-bottom: 28px;
}

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

.detail-main {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 42px;
  align-items: center;
}

.detail-poster {
  height: 410px;
  border-radius: 30px;
  overflow: hidden;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.38);
}

.detail-poster img {
  width: 100%;
  height: 100%;
}

.detail-copy h1 {
  margin-top: 18px;
  font-size: clamp(36px, 5vw, 62px);
}

.detail-meta {
  margin-top: 22px;
}

.player-card {
  padding: 18px;
}

.player-box {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 26px;
  background: #0f172a;
  box-shadow: var(--shadow);
}

.video-core {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000000;
}

.play-overlay {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: grid;
  place-items: center;
  overflow: hidden;
  color: #ffffff;
  background: rgba(15, 23, 42, 0.18);
}

.play-overlay img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  filter: brightness(0.58) saturate(1.08);
}

.play-circle {
  position: relative;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 94px;
  height: 94px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  box-shadow: 0 22px 45px rgba(236, 72, 153, 0.34);
  font-size: 34px;
  transform: translateX(3px);
}

.play-overlay strong {
  position: absolute;
  z-index: 2;
  left: 28px;
  bottom: 26px;
  font-size: 28px;
  font-weight: 900;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.32);
}

.player-box.is-playing .play-overlay {
  display: none;
}

.detail-content {
  display: grid;
  grid-template-columns: 2fr 2fr 1.4fr;
  gap: 24px;
}

.content-card {
  padding: 24px;
}

.content-card h2 {
  font-size: 26px;
  margin-bottom: 14px;
}

.meta-card dl {
  display: grid;
  gap: 12px;
}

.meta-card dl div {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  border-bottom: 1px dashed rgba(236, 72, 153, 0.2);
  padding-bottom: 10px;
}

.meta-card dt {
  color: var(--muted);
}

.meta-card dd {
  font-weight: 800;
  text-align: right;
}

.detail-tags {
  margin-top: 18px;
}

.site-footer {
  margin-top: 64px;
  background: linear-gradient(135deg, #111827, #831843);
  color: #ffffff;
  padding: 56px 0;
}

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

.site-footer p,
.site-footer a {
  color: rgba(255, 255, 255, 0.76);
}

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

.site-footer h2 {
  font-size: 18px;
  font-weight: 900;
  margin-bottom: 12px;
}

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

  .hero-content {
    grid-template-columns: 1fr 300px;
    gap: 34px;
  }

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

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

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

  .mobile-menu-button {
    display: inline-flex;
  }

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

  .hero-content {
    grid-template-columns: 1fr;
    padding-top: 64px;
    align-content: center;
  }

  .hero-poster {
    display: none;
  }

  .hero-arrow {
    display: none;
  }

  .hero-channel-row {
    display: none;
  }

  .section-heading,
  .detail-main,
  .footer-grid {
    grid-template-columns: 1fr;
    display: grid;
  }

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

  .ranking-row {
    grid-template-columns: 48px 76px minmax(0, 1fr);
  }

  .rank-heat {
    grid-column: 3;
    text-align: left;
  }

  .detail-poster {
    width: min(300px, 100%);
  }
}

@media (max-width: 560px) {
  .container {
    width: min(100% - 22px, 1180px);
  }

  .brand-text {
    font-size: 20px;
  }

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

  .movie-grid,
  .channel-grid,
  .compact-grid,
  .filter-panel {
    grid-template-columns: 1fr;
  }

  .ranking-row {
    grid-template-columns: 44px 68px minmax(0, 1fr);
    gap: 12px;
    padding: 12px;
  }

  .rank-cover {
    width: 68px;
    height: 92px;
  }

  .rank-number {
    width: 40px;
    height: 40px;
    border-radius: 14px;
  }

  .play-circle {
    width: 72px;
    height: 72px;
    font-size: 26px;
  }

  .play-overlay strong {
    left: 18px;
    bottom: 18px;
    font-size: 20px;
  }
}
