:root {
  color-scheme: light;
  --bg-start: #eff6ff;
  --bg-mid: #fdf2f8;
  --bg-end: #faf5ff;
  --text: #1f2937;
  --muted: #6b7280;
  --soft: rgba(255, 255, 255, 0.76);
  --line: rgba(255, 255, 255, 0.72);
  --red: #ef4444;
  --orange: #f97316;
  --pink: #ec4899;
  --purple: #8b5cf6;
  --shadow: 0 18px 45px rgba(244, 114, 182, 0.18);
  --shadow-strong: 0 24px 70px rgba(239, 68, 68, 0.24);
  --radius-xl: 28px;
  --radius-lg: 20px;
  --radius-md: 14px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--text);
  background: linear-gradient(180deg, var(--bg-start) 0%, var(--bg-mid) 48%, var(--bg-end) 100%);
  -webkit-font-smoothing: antialiased;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -2;
  content: "";
  background:
    radial-gradient(circle at 12% 14%, rgba(248, 113, 113, 0.24), transparent 26%),
    radial-gradient(circle at 84% 8%, rgba(96, 165, 250, 0.22), transparent 28%),
    radial-gradient(circle at 68% 78%, rgba(216, 180, 254, 0.28), transparent 30%);
}

img {
  display: block;
  width: 100%;
  height: auto;
}

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

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: linear-gradient(90deg, rgba(255, 241, 242, 0.94), rgba(239, 246, 255, 0.94), rgba(250, 245, 255, 0.94));
  border-bottom: 1px solid rgba(255, 255, 255, 0.78);
  box-shadow: 0 8px 28px rgba(148, 163, 184, 0.16);
  backdrop-filter: blur(16px);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1240px;
  height: 68px;
  margin: 0 auto;
  padding: 0 22px;
}

.site-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
  letter-spacing: 0.02em;
}

.site-logo__mark {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  color: #ffffff;
  background: linear-gradient(135deg, var(--red), var(--orange));
  border-radius: 999px;
  box-shadow: 0 12px 24px rgba(239, 68, 68, 0.25);
}

.site-logo__text {
  font-size: 22px;
  line-height: 1;
  background: linear-gradient(90deg, var(--red), var(--orange), var(--pink));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

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

.nav-link,
.nav-dropdown__panel a,
.mobile-nav a {
  transition: color 180ms ease, background 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 16px;
  color: #374151;
  border-radius: 999px;
}

.nav-link:hover,
.nav-link.is-active {
  color: var(--pink);
  background: rgba(255, 255, 255, 0.74);
  box-shadow: 0 10px 22px rgba(236, 72, 153, 0.10);
}

.nav-dropdown {
  position: relative;
}

.nav-dropdown__panel {
  position: absolute;
  top: calc(100% + 10px);
  left: 50%;
  display: grid;
  min-width: 190px;
  padding: 10px;
  visibility: hidden;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.86);
  border-radius: 18px;
  box-shadow: var(--shadow);
  opacity: 0;
  transform: translate(-50%, 8px);
  backdrop-filter: blur(16px);
}

.nav-dropdown:hover .nav-dropdown__panel {
  visibility: visible;
  opacity: 1;
  transform: translate(-50%, 0);
}

.nav-dropdown__panel a {
  padding: 10px 12px;
  color: #4b5563;
  border-radius: 12px;
}

.nav-dropdown__panel a:hover {
  color: var(--red);
  background: #fff1f2;
}

.mobile-menu-button {
  display: none;
  width: 44px;
  height: 44px;
  padding: 10px;
  background: rgba(255, 255, 255, 0.8);
  border: 0;
  border-radius: 999px;
  box-shadow: 0 10px 20px rgba(148, 163, 184, 0.16);
}

.mobile-menu-button span {
  display: block;
  height: 2px;
  margin: 5px 0;
  background: #374151;
  border-radius: 999px;
}

.mobile-nav {
  display: none;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 22px 18px;
}

.mobile-nav a {
  padding: 11px 12px;
  color: #374151;
  background: rgba(255, 255, 255, 0.72);
  border-radius: 14px;
}

.mobile-nav a:hover {
  color: var(--pink);
  background: #ffffff;
}

.mobile-nav.is-open {
  display: grid;
}

main {
  min-height: 70vh;
}

.hero-carousel {
  position: relative;
  max-width: 1240px;
  margin: 28px auto 0;
  padding: 0 22px 22px;
  overflow: hidden;
}

.hero-carousel__viewport {
  position: relative;
  min-height: 580px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 36px;
  box-shadow: var(--shadow-strong);
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 34px;
  align-items: center;
  padding: 70px;
  visibility: hidden;
  opacity: 0;
  transform: scale(1.02);
  transition: opacity 500ms ease, transform 700ms ease, visibility 500ms ease;
}

.hero-slide.is-active {
  visibility: visible;
  opacity: 1;
  transform: scale(1);
}

.hero-slide__background {
  position: absolute;
  inset: 0;
  z-index: -2;
  background-position: center;
  background-size: cover;
  transform: scale(1.06);
  filter: saturate(1.05);
}

.hero-slide::after {
  position: absolute;
  inset: 0;
  z-index: -1;
  content: "";
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.82), rgba(124, 45, 18, 0.30), rgba(147, 51, 234, 0.34));
}

.hero-slide__content {
  max-width: 670px;
  color: #ffffff;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 12px;
  color: var(--pink);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero-slide .eyebrow {
  color: #fecaca;
}

.hero-slide h1 {
  margin: 0 0 20px;
  font-size: clamp(38px, 7vw, 76px);
  font-weight: 950;
  line-height: 1.02;
  letter-spacing: -0.05em;
}

.hero-slide p {
  max-width: 680px;
  margin: 0 0 22px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 18px;
  line-height: 1.85;
}

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

.hero-tags span,
.tag-row span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  color: #be123c;
  font-size: 12px;
  font-weight: 700;
  background: #fff1f2;
  border-radius: 999px;
}

.hero-tags span {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(10px);
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 22px;
  font-weight: 850;
  border-radius: 999px;
  transition: box-shadow 180ms ease, transform 180ms ease, background 180ms ease;
}

.button:hover {
  transform: translateY(-2px) scale(1.02);
}

.button--primary {
  color: #ffffff;
  background: linear-gradient(90deg, var(--red), var(--orange));
  box-shadow: 0 16px 30px rgba(239, 68, 68, 0.26);
}

.button--ghost {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.24);
  backdrop-filter: blur(12px);
}

.button--full {
  width: 100%;
}

.hero-slide__poster {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 2 / 3;
  background: rgba(255, 255, 255, 0.18);
  border: 10px solid rgba(255, 255, 255, 0.18);
  border-radius: 30px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.34);
  transform: rotate(2deg);
}

.hero-slide__poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 500ms ease;
}

.hero-slide__poster:hover img {
  transform: scale(1.08);
}

.hero-controls {
  position: absolute;
  right: 48px;
  bottom: 68px;
  z-index: 8;
  display: flex;
  align-items: center;
  gap: 12px;
}

.hero-arrow,
.hero-dot {
  border: 0;
}

.hero-arrow {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  color: #ffffff;
  font-size: 28px;
  line-height: 1;
  background: rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  backdrop-filter: blur(10px);
}

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

.hero-dot {
  width: 10px;
  height: 10px;
  padding: 0;
  background: rgba(255, 255, 255, 0.42);
  border-radius: 999px;
  transition: width 180ms ease, background 180ms ease;
}

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

.hero-feature-grid {
  position: relative;
  z-index: 4;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  max-width: 720px;
  margin: -42px auto 0;
}

.hero-feature-grid a {
  display: grid;
  min-height: 86px;
  place-items: center;
  color: #374151;
  font-size: 18px;
  font-weight: 900;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.92);
  border-radius: 24px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.hero-feature-grid a:hover {
  color: var(--pink);
  transform: translateY(-4px);
  box-shadow: 0 22px 44px rgba(236, 72, 153, 0.18);
}

.hero-orb {
  position: absolute;
  z-index: -1;
  border-radius: 999px;
  filter: blur(24px);
  opacity: 0.58;
  animation: blob 7s infinite;
}

.hero-orb--one {
  top: 40px;
  left: -40px;
  width: 220px;
  height: 220px;
  background: #fecaca;
}

.hero-orb--two {
  top: 80px;
  right: -30px;
  width: 260px;
  height: 260px;
  background: #bfdbfe;
  animation-delay: 2s;
}

.hero-orb--three {
  bottom: 70px;
  left: 44%;
  width: 260px;
  height: 260px;
  background: #fbcfe8;
  animation-delay: 4s;
}

@keyframes blob {
  0% {
    transform: translate(0, 0) scale(1);
  }

  33% {
    transform: translate(30px, -50px) scale(1.08);
  }

  66% {
    transform: translate(-20px, 20px) scale(0.92);
  }

  100% {
    transform: translate(0, 0) scale(1);
  }
}

.section-shell {
  max-width: 1240px;
  margin: 34px auto 0;
  padding: 0 22px;
}

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

.section-heading h2 {
  margin: 0;
  font-size: clamp(25px, 3vw, 36px);
  font-weight: 950;
  letter-spacing: -0.04em;
}

.section-heading a,
.text-link {
  color: var(--pink);
  font-weight: 850;
}

.section-heading a:hover,
.text-link:hover {
  color: var(--red);
}

.section-heading--tight {
  align-items: center;
  margin-bottom: 16px;
}

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

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

.movie-card {
  overflow: hidden;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.86);
  border-radius: 24px;
  box-shadow: 0 14px 34px rgba(148, 163, 184, 0.16);
  transition: transform 220ms ease, box-shadow 220ms ease;
}

.movie-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 24px 50px rgba(244, 114, 182, 0.20);
}

.movie-card__cover {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: rgba(15, 23, 42, 0.08);
}

.movie-card__cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 500ms ease;
}

.movie-card:hover .movie-card__cover img {
  transform: scale(1.10);
}

.movie-card__cover::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(180deg, transparent 34%, rgba(0, 0, 0, 0.72));
}

.movie-card__play {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 3;
  display: grid;
  width: 54px;
  height: 54px;
  place-items: center;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: 999px;
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.76);
  transition: opacity 200ms ease, transform 200ms ease;
  backdrop-filter: blur(10px);
}

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

.movie-card__meta,
.rank-badge {
  position: absolute;
  z-index: 4;
  color: #ffffff;
  font-size: 12px;
  font-weight: 850;
  background: rgba(0, 0, 0, 0.58);
  border-radius: 999px;
  backdrop-filter: blur(8px);
}

.movie-card__meta {
  right: 12px;
  bottom: 12px;
  padding: 6px 10px;
}

.rank-badge {
  top: 12px;
  left: 12px;
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  background: linear-gradient(135deg, var(--red), var(--orange));
}

.movie-card__body {
  padding: 16px;
}

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

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

.movie-card p {
  display: -webkit-box;
  min-height: 44px;
  margin: 0 0 12px;
  overflow: hidden;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.section-shell--split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 26px;
  align-items: start;
}

.ranking-panel,
.side-panel,
.detail-poster-card,
.detail-card,
.player-card,
.category-overview-card,
.ranking-card,
.sitemap-section {
  background: rgba(255, 255, 255, 0.84);
  border: 1px solid rgba(255, 255, 255, 0.86);
  border-radius: 24px;
  box-shadow: 0 14px 34px rgba(148, 163, 184, 0.14);
  backdrop-filter: blur(14px);
}

.ranking-panel {
  position: sticky;
  top: 92px;
  padding: 22px;
}

.ranking-item,
.side-card {
  display: grid;
  grid-template-columns: 42px 58px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 10px;
  border-radius: 16px;
  transition: background 180ms ease, transform 180ms ease;
}

.ranking-item:hover,
.side-card:hover {
  background: #fff1f2;
  transform: translateX(3px);
}

.ranking-item__num {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  color: #ffffff;
  font-weight: 900;
  background: linear-gradient(135deg, var(--red), var(--orange));
  border-radius: 999px;
}

.ranking-item img,
.side-card img {
  width: 58px;
  height: 72px;
  object-fit: cover;
  border-radius: 12px;
}

.ranking-item__text,
.side-card span {
  min-width: 0;
}

.ranking-item strong,
.side-card strong {
  display: block;
  overflow: hidden;
  font-size: 14px;
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ranking-item em,
.side-card em {
  display: block;
  margin-top: 4px;
  overflow: hidden;
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.side-card {
  grid-template-columns: 58px minmax(0, 1fr);
}

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

.category-tile {
  display: block;
  min-height: 150px;
  padding: 24px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.88), rgba(255, 241, 242, 0.78));
  border: 1px solid rgba(255, 255, 255, 0.88);
  border-radius: 24px;
  box-shadow: 0 14px 32px rgba(148, 163, 184, 0.12);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.category-tile:hover {
  transform: translateY(-4px);
  box-shadow: 0 22px 40px rgba(236, 72, 153, 0.16);
}

.category-tile span {
  display: block;
  margin-bottom: 12px;
  font-size: 22px;
  font-weight: 950;
}

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

.page-hero {
  position: relative;
  max-width: 1240px;
  margin: 28px auto 0;
  padding: 54px 42px;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(255, 228, 230, 0.86), rgba(219, 234, 254, 0.82), rgba(245, 208, 254, 0.78));
  border: 1px solid rgba(255, 255, 255, 0.88);
  border-radius: 32px;
  box-shadow: var(--shadow);
}

.page-hero::after {
  position: absolute;
  right: -90px;
  bottom: -110px;
  width: 280px;
  height: 280px;
  content: "";
  background: rgba(248, 113, 113, 0.22);
  border-radius: 999px;
  filter: blur(12px);
}

.page-hero h1 {
  position: relative;
  z-index: 2;
  margin: 0 0 12px;
  font-size: clamp(34px, 5vw, 58px);
  font-weight: 950;
  letter-spacing: -0.05em;
}

.page-hero p {
  position: relative;
  z-index: 2;
  max-width: 760px;
  margin: 0;
  color: #4b5563;
  font-size: 18px;
  line-height: 1.8;
}

.page-search-inline {
  position: relative;
  z-index: 2;
  max-width: 540px;
  margin-top: 24px;
}

.page-search-inline input,
.search-panel input,
.search-panel select {
  width: 100%;
  min-height: 52px;
  padding: 0 16px;
  color: #374151;
  background: rgba(255, 255, 255, 0.92);
  border: 2px solid transparent;
  border-radius: 18px;
  outline: none;
  box-shadow: 0 12px 28px rgba(148, 163, 184, 0.12);
  transition: border 180ms ease, box-shadow 180ms ease;
}

.page-search-inline input:focus,
.search-panel input:focus,
.search-panel select:focus {
  border-color: #f9a8d4;
  box-shadow: 0 16px 34px rgba(236, 72, 153, 0.14);
}

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

.category-overview-card {
  overflow: hidden;
}

.category-overview-card__media {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 5px;
  padding: 10px;
  background: linear-gradient(135deg, rgba(255, 241, 242, 0.86), rgba(239, 246, 255, 0.86));
}

.category-overview-card__media img {
  height: 130px;
  object-fit: cover;
  border-radius: 14px;
}

.category-overview-card__body {
  padding: 20px;
}

.category-overview-card h2,
.ranking-card h2,
.detail-card h2,
.side-panel h2,
.sitemap-section h2 {
  margin: 0 0 10px;
  font-size: 22px;
  font-weight: 950;
}

.category-overview-card p {
  min-height: 54px;
  margin: 0 0 14px;
  color: var(--muted);
  line-height: 1.7;
}

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

.ranking-card {
  display: grid;
  grid-template-columns: 170px minmax(0, 1fr);
  gap: 20px;
  padding: 16px;
}

.ranking-card__cover {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 11;
  border-radius: 18px;
}

.ranking-card__cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ranking-card__cover span {
  position: absolute;
  top: 12px;
  left: 12px;
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  color: #ffffff;
  font-weight: 950;
  background: linear-gradient(135deg, var(--red), var(--orange));
  border-radius: 999px;
}

.ranking-card p {
  margin: 0 0 14px;
  color: var(--muted);
  line-height: 1.75;
}

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 16px;
}

.detail-meta span {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 11px;
  color: #4b5563;
  font-size: 13px;
  font-weight: 750;
  background: #f3f4f6;
  border-radius: 999px;
}

.search-panel {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) 220px 180px;
  gap: 12px;
  max-width: 900px;
  margin-top: 28px;
}

.search-status {
  margin-bottom: 18px;
  color: var(--muted);
  font-weight: 800;
}

.detail-page {
  max-width: 1240px;
  margin: 28px auto 0;
  padding: 0 22px;
}

.detail-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
  color: var(--muted);
  font-size: 14px;
}

.detail-breadcrumb a:hover {
  color: var(--pink);
}

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

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

.player-card {
  padding: 12px;
  background: rgba(17, 24, 39, 0.88);
}

.watch-player {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: #020617;
  border-radius: 18px;
}

.watch-player__video {
  width: 100%;
  height: 100%;
  background: #020617;
  object-fit: contain;
}

.watch-player__overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: #ffffff;
  background: linear-gradient(180deg, rgba(2, 6, 23, 0.08), rgba(2, 6, 23, 0.46));
  border: 0;
  transition: opacity 220ms ease, visibility 220ms ease;
}

.watch-player__overlay span {
  display: grid;
  width: 84px;
  height: 84px;
  place-items: center;
  padding-left: 5px;
  font-size: 34px;
  background: rgba(255, 255, 255, 0.20);
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: 999px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(14px);
}

.watch-player.is-playing .watch-player__overlay {
  visibility: hidden;
  opacity: 0;
}

.watch-player__message {
  position: absolute;
  right: 18px;
  bottom: 18px;
  max-width: calc(100% - 36px);
  padding: 10px 12px;
  color: #ffffff;
  font-size: 13px;
  background: rgba(15, 23, 42, 0.78);
  border-radius: 12px;
}

.detail-card {
  padding: 26px;
}

.detail-card h1 {
  margin: 0 0 14px;
  font-size: clamp(30px, 4vw, 46px);
  font-weight: 950;
  letter-spacing: -0.05em;
}

.detail-card p {
  margin: 0 0 18px;
  color: #4b5563;
  font-size: 16px;
  line-height: 1.9;
}

.detail-lead {
  color: #374151 !important;
  font-size: 18px !important;
  font-weight: 650;
}

.tag-row--large {
  margin-bottom: 24px;
}

.tag-row--large span {
  min-height: 32px;
  padding: 0 12px;
}

.detail-side {
  position: sticky;
  top: 92px;
  display: grid;
  gap: 20px;
}

.detail-poster-card {
  padding: 14px;
}

.detail-poster-card img {
  aspect-ratio: 2 / 3;
  margin-bottom: 14px;
  object-fit: cover;
  border-radius: 18px;
}

.side-panel {
  padding: 20px;
}

.sitemap-section {
  padding: 28px;
}

.sitemap-category-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 28px;
}

.sitemap-category-links a {
  padding: 10px 14px;
  color: #be123c;
  font-weight: 850;
  background: #fff1f2;
  border-radius: 999px;
}

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

.sitemap-links a {
  display: grid;
  gap: 4px;
  padding: 12px;
  background: #f9fafb;
  border-radius: 14px;
  transition: background 180ms ease, transform 180ms ease;
}

.sitemap-links a:hover {
  background: #fff1f2;
  transform: translateY(-2px);
}

.sitemap-links span {
  color: var(--muted);
  font-size: 12px;
}

.site-footer {
  margin-top: 58px;
  padding: 46px 22px;
  background: rgba(255, 255, 255, 0.60);
  border-top: 1px solid rgba(255, 255, 255, 0.72);
}

.site-footer__inner {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr);
  gap: 28px;
  max-width: 1240px;
  margin: 0 auto;
}

.site-logo--footer {
  margin-bottom: 14px;
}

.site-footer p {
  max-width: 380px;
  margin: 0;
  color: var(--muted);
  line-height: 1.75;
}

.site-footer h2 {
  margin: 0 0 14px;
  font-size: 16px;
  font-weight: 950;
}

.site-footer a:not(.site-logo) {
  display: block;
  margin: 9px 0;
  color: var(--muted);
  font-size: 14px;
}

.site-footer a:not(.site-logo):hover {
  color: var(--pink);
}

@media (max-width: 1080px) {
  .hero-slide {
    grid-template-columns: minmax(0, 1fr) 260px;
    padding: 54px;
  }

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

  .section-shell--split,
  .detail-layout {
    grid-template-columns: 1fr;
  }

  .ranking-panel,
  .detail-side {
    position: static;
  }

  .detail-side {
    grid-template-columns: 300px minmax(0, 1fr);
  }
}

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

  .mobile-menu-button {
    display: block;
  }

  .hero-carousel__viewport {
    min-height: 620px;
  }

  .hero-slide {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 34px 24px 120px;
  }

  .hero-slide__poster {
    width: min(250px, 76vw);
    margin: 0 auto;
  }

  .hero-controls {
    right: auto;
    bottom: 116px;
    left: 50%;
    transform: translateX(-50%);
  }

  .hero-feature-grid {
    grid-template-columns: 1fr;
    margin-top: 16px;
  }

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

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

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

@media (max-width: 620px) {
  .site-header__inner {
    padding: 0 16px;
  }

  .mobile-nav {
    padding: 0 16px 16px;
  }

  .site-logo__text {
    font-size: 19px;
  }

  .hero-carousel,
  .section-shell,
  .detail-page,
  .site-footer {
    padding-right: 16px;
    padding-left: 16px;
  }

  .hero-carousel__viewport {
    min-height: 660px;
    border-radius: 26px;
  }

  .hero-slide h1 {
    font-size: 38px;
  }

  .hero-slide p,
  .page-hero p {
    font-size: 16px;
  }

  .page-hero {
    margin-right: 16px;
    margin-left: 16px;
    padding: 38px 22px;
    border-radius: 24px;
  }

  .movie-grid,
  .movie-grid--compact,
  .category-grid,
  .category-overview-grid,
  .sitemap-links {
    grid-template-columns: 1fr;
  }

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

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