/* PirateMedia homepage — scoped under .page-home */
.page-home {
  --hp-bg: #060608;
  --hp-bg-elevated: #101014;
  --hp-surface: rgba(255, 255, 255, 0.04);
  --hp-border: rgba(255, 255, 255, 0.08);
  --hp-text: #f4f4f5;
  --hp-muted: rgba(255, 255, 255, 0.55);
  --hp-accent: #ff00ff;
  --hp-accent-2: #00ffff;
  --hp-accent-glow: rgba(255, 0, 255, 0.35);
  --hp-accent-cyan-glow: rgba(0, 255, 255, 0.25);
  --hp-live: #ff3366;
  --hp-radius: 14px;
  --hp-radius-lg: 20px;
  --hp-max: 1520px;
  background: var(--hp-bg);
}

/* ── Hero ── */
.page-home .hero-section {
  --hero-bg: var(--hp-bg);
  min-height: clamp(520px, 92vh, 880px);
  background: var(--hp-bg);
  overflow: visible;
  contain: layout style;
  isolation: isolate;
}

.page-home .hero-section .hero-background {
  overflow: hidden;
}

.page-home .hero-gradient-overlay {
  background:
    linear-gradient(105deg, rgba(6, 6, 8, 0.97) 0%, rgba(6, 6, 8, 0.7) 38%, rgba(6, 6, 8, 0.2) 62%, rgba(6, 6, 8, 0.9) 100%),
    linear-gradient(to top, var(--hp-bg) 0%, transparent 42%);
}

.page-home .hero-blur-edge {
  height: 45%;
  background: linear-gradient(to top, var(--hp-bg) 0%, transparent 100%);
}

/* Featured carousel arrows */
.page-home .hero-carousel-nav {
  position: absolute;
  inset: 0;
  z-index: 50;
  pointer-events: none;
}

.page-home .hero-carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 51;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(8, 8, 12, 0.55);
  color: #fff;
  cursor: pointer;
  pointer-events: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
}

.page-home .hero-carousel-arrow svg {
  width: 22px;
  height: 22px;
  pointer-events: none;
}

.page-home .hero-carousel-arrow:hover {
  background: rgba(255, 0, 255, 0.35);
  border-color: rgba(255, 0, 255, 0.5);
}

.page-home .hero-carousel-arrow--prev {
  left: clamp(0.5rem, 2vw, 1.25rem);
}

.page-home .hero-carousel-arrow--next {
  right: clamp(0.5rem, 2vw, 1.25rem);
}

.page-home .hero-carousel-arrow[hidden] {
  display: none;
}

.page-home .hero-background .hero-blur-edge,
.page-home .hero-background .hero-gradient-overlay {
  z-index: 3;
}

.page-home .hero-content-wrapper {
  position: relative;
  z-index: 4;
  pointer-events: none;
}

.page-home .hero-content-wrapper a,
.page-home .hero-content-wrapper button,
.page-home .hero-content-wrapper .hero-pick,
.page-home .hero-content-wrapper .hero-pick-link {
  pointer-events: auto;
}

/* Hero background trailer (muted, no YouTube chrome) */
.page-home .hero-background .hero-gradient-overlay {
  pointer-events: none;
}

.page-home .hero-trailer-layer {
  position: absolute;
  inset: 0;
  z-index: 3;
  opacity: 0;
  visibility: hidden;
  transition: opacity 1s ease, visibility 1s ease;
  pointer-events: none;
}

.page-home .hero-background.hero-background--has-trailer .hero-trailer-layer {
  z-index: 4;
}

.page-home .hero-background.hero-background--has-trailer .hero-gradient-overlay,
.page-home .hero-background.hero-background--has-trailer .hero-blur-edge {
  z-index: 2;
}

.page-home .hero-background.hero-background--has-trailer .hero-gradient-overlay {
  background:
    linear-gradient(105deg, rgba(6, 6, 8, 0.82) 0%, rgba(6, 6, 8, 0.42) 34%, rgba(6, 6, 8, 0.12) 58%, rgba(6, 6, 8, 0.72) 100%),
    linear-gradient(to top, var(--hp-bg) 0%, transparent 40%);
}

.page-home .hero-trailer-layer.is-visible {
  opacity: 1;
  visibility: visible;
}

.page-home .hero-background.hero-background--has-trailer .hero-carousel-slide {
  opacity: 0 !important;
}

.page-home .hero-trailer-slot {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background: #060608;
}

.page-home .hero-trailer-iframe {
  position: absolute;
  top: 50%;
  left: 50%;
  width: max(130vw, 200vh);
  height: max(130vh, 56.25vw);
  min-width: max(130vw, 200vh);
  min-height: max(130vh, 56.25vw);
  transform: translate(-50%, -50%);
  transform-origin: center center;
  border: 0;
  pointer-events: none;
  background: #000;
}

.page-home .hero-youtube-chrome-masks,
.page-home .hero-pick-youtube-masks {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
}

.page-home .hero-trailer-shield {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
}

.page-home .hero-youtube-chrome-mask {
  position: absolute;
  left: 0;
  right: 0;
  pointer-events: none;
}

.page-home .hero-youtube-chrome-mask--top {
  top: 0;
  height: 12%;
  background: linear-gradient(180deg, #060608 70%, transparent);
}

.page-home .hero-youtube-chrome-mask--bottom {
  bottom: 0;
  height: 22%;
  background: linear-gradient(0deg, #060608 75%, transparent);
}

.page-home .hero-youtube-chrome-mask--side {
  top: 0;
  bottom: 0;
  width: 2.5%;
  background: transparent;
}

.page-home .hero-youtube-chrome-mask--center {
  display: none;
}

.page-home .hero-background.hero-background--has-trailer .hero-youtube-chrome-mask--top {
  height: 8%;
}

.page-home .hero-background.hero-background--has-trailer .hero-youtube-chrome-mask--bottom {
  height: 18%;
}

.page-home .hero-youtube-chrome-mask--left {
  left: 0;
}

.page-home .hero-youtube-chrome-mask--right {
  right: 0;
}

.page-home .hero-section > .hero-content-wrapper {
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
  gap: clamp(1.5rem, 3vw, 3rem);
  padding-top: clamp(5.5rem, 11vh, 7.5rem);
  padding-bottom: 4.5rem;
}

.page-home .hero-badge {
  margin-bottom: 1rem;
}

.page-home .featured-tag {
  background: linear-gradient(135deg, rgba(255, 0, 255, 0.2), rgba(0, 255, 255, 0.08));
  border-color: rgba(255, 0, 255, 0.35);
  color: #f0abfc;
}

.page-home .hero-rating {
  background: rgba(255, 255, 255, 0.06);
  border-color: var(--hp-border);
}

.page-home .hero-title {
  font-size: clamp(2.1rem, 5vw, 3.75rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.08;
}

.page-home .hero-genre {
  background: var(--hp-surface);
  border: 1px solid var(--hp-border);
  border-radius: 999px;
  padding: 0.3rem 0.75rem;
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.88);
  display: inline-block;
}

a.hero-genre {
  text-decoration: none;
  cursor: pointer;
  transition:
    background 0.2s ease,
    border-color 0.2s ease,
    color 0.2s ease,
    transform 0.2s ease;
}

a.hero-genre:hover {
  color: #fff;
  border-color: rgba(255, 0, 255, 0.45);
  background: rgba(255, 0, 255, 0.12);
  transform: translateY(-1px);
}

.page-home .hero-description {
  color: var(--hp-muted);
  -webkit-line-clamp: 3;
  margin-bottom: 1.75rem;
}

.page-home .hero-actions {
  display: flex;
  justify-content: flex-start;
  align-items: center;
}

/* Featured hero — primary Watch Now CTA */
.page-home .hero-actions .btn-primary {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  min-height: 3rem;
  padding: 0.875rem 1.875rem;
  font-size: clamp(0.9375rem, 2.5vw, 1.0625rem);
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.2;
  color: #fff;
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.16) 0%, rgba(255, 255, 255, 0) 45%),
    linear-gradient(135deg, var(--hp-accent) 0%, #c400d4 52%, #8f00a8 100%);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.14) inset,
    0 4px 14px rgba(0, 0, 0, 0.35),
    0 8px 28px var(--hp-accent-glow);
  transition:
    transform 0.22s cubic-bezier(0.34, 1.4, 0.64, 1),
    box-shadow 0.22s ease,
    border-color 0.22s ease,
    background 0.22s ease;
  -webkit-tap-highlight-color: transparent;
}

.page-home .hero-actions .btn-primary::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.14) 0%, transparent 55%);
  pointer-events: none;
}

.page-home .hero-actions .btn-primary > * {
  position: relative;
  z-index: 1;
}

.page-home .hero-actions .btn-primary .btn-icon {
  width: 1.125rem;
  height: 1.125rem;
  flex-shrink: 0;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.25));
}

.page-home .hero-actions .btn-primary:hover {
  transform: translateY(-2px);
  border-color: rgba(240, 171, 252, 0.5);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.22) 0%, rgba(255, 255, 255, 0) 45%),
    linear-gradient(135deg, #ff40ff 0%, #d818e8 52%, #a818c0 100%);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.2) inset,
    0 6px 20px rgba(0, 0, 0, 0.4),
    0 14px 36px rgba(255, 0, 255, 0.5);
}

.page-home .hero-actions .btn-primary:focus-visible {
  outline: 2px solid #f0abfc;
  outline-offset: 3px;
}

.page-home .hero-actions .btn-primary:active {
  transform: translateY(0);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.1) inset,
    0 2px 8px rgba(0, 0, 0, 0.35),
    0 4px 16px rgba(255, 0, 255, 0.35);
}

@media (prefers-reduced-motion: reduce) {
  .page-home .hero-actions .btn-primary {
    transition: background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  }

  .page-home .hero-actions .btn-primary:hover,
  .page-home .hero-actions .btn-primary:active {
    transform: none;
  }
}

.page-home .hero-bottom-bar {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 4;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: end;
  gap: 1rem;
  padding: 0 clamp(1rem, 4vw, 2.5rem) clamp(1.25rem, 3vw, 2rem);
  pointer-events: none;
}

.page-home .hero-carousel-dots {
  position: static;
  transform: none;
  pointer-events: auto;
  display: flex;
  gap: 0.45rem;
  align-items: center;
  justify-self: start;
  grid-column: 1;
}

.page-home .hero-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  border: none;
  padding: 0;
  background: rgba(255, 255, 255, 0.25);
  cursor: pointer;
  transition: width 0.25s ease, background 0.25s ease;
}

.page-home .hero-dot.active {
  width: 28px;
  background: linear-gradient(90deg, var(--hp-accent), var(--hp-accent-2));
}

.page-home .scroll-hint {
  position: relative;
  transform: none;
  left: auto;
  right: auto;
  bottom: auto;
  margin: 0;
  grid-column: 2;
  justify-self: center;
  pointer-events: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
  font: inherit;
  color: inherit;
  transition: opacity 0.4s ease, visibility 0.4s ease;
}

.page-home .scroll-hint.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.page-home .scroll-hint-inner {
  position: relative;
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  gap: 0.35rem;
  padding: 0.32rem 0.65rem 0.32rem 0.75rem;
  border-radius: 999px;
  background: rgba(8, 8, 12, 0.42);
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.25);
  transition:
    border-color 0.2s ease,
    background 0.2s ease,
    transform 0.2s ease,
    color 0.2s ease;
}

.page-home .scroll-hint-inner::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  background: linear-gradient(
    135deg,
    rgba(255, 0, 255, 0.22),
    rgba(0, 255, 255, 0.12)
  );
  opacity: 0;
  z-index: -1;
  transition: opacity 0.2s ease;
  pointer-events: none;
}

.page-home .scroll-hint-text {
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.72);
  white-space: nowrap;
  line-height: 1;
}

.page-home .scroll-hint-chevron {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 14px;
  height: 14px;
  color: rgba(0, 255, 255, 0.85);
  animation: hpScrollBounce 2s ease-in-out infinite;
}

.page-home .scroll-hint-chevron svg {
  width: 100%;
  height: 100%;
  display: block;
}

.page-home .scroll-hint:hover .scroll-hint-inner,
.page-home .scroll-hint:focus-visible .scroll-hint-inner {
  border-color: rgba(255, 0, 255, 0.28);
  background: rgba(12, 12, 18, 0.55);
  transform: translateY(1px);
}

.page-home .scroll-hint:hover .scroll-hint-inner::before,
.page-home .scroll-hint:focus-visible .scroll-hint-inner::before {
  opacity: 1;
}

.page-home .scroll-hint:hover .scroll-hint-text,
.page-home .scroll-hint:focus-visible .scroll-hint-text {
  color: rgba(255, 255, 255, 0.92);
}

.page-home .scroll-hint:focus-visible {
  outline: none;
}

.page-home .scroll-hint:focus-visible .scroll-hint-inner {
  outline: 1px solid rgba(0, 255, 255, 0.45);
  outline-offset: 2px;
}

.page-home .scroll-hint:hover .scroll-hint-chevron,
.page-home .scroll-hint:focus-visible .scroll-hint-chevron {
  color: var(--hp-accent);
}

@keyframes hpScrollBounce {
  0%, 100% { transform: translateY(0); opacity: 0.8; }
  50% { transform: translateY(3px); opacity: 1; }
}

/* Hero picks panel */
.page-home .hero-picks {
  background: rgba(10, 10, 14, 0.78);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255, 0, 255, 0.12);
  border-radius: var(--hp-radius-lg);
  box-shadow: 0 32px 64px rgba(0, 0, 0, 0.5), 0 0 40px rgba(255, 0, 255, 0.06);
  max-width: 100%;
}

.page-home .hero-picks-label {
  color: var(--hp-accent-2);
  letter-spacing: 0.12em;
}

.page-home .hero-picks-title {
  font-size: 1.2rem;
  font-weight: 700;
}

.page-home .hero-pick-poster {
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
}

.page-home .hero-pick-trailer-slot {
  position: absolute;
  inset: 0;
  z-index: 1;
  overflow: hidden;
  opacity: 0;
  transition: opacity 0.35s ease;
  pointer-events: none;
  background: #0a0a0c;
}

.page-home .hero-pick-poster.has-trailer .hero-pick-trailer-slot {
  opacity: 1;
}

.page-home .hero-pick-poster.has-trailer > img {
  opacity: 0;
}

.page-home .hero-pick-poster.has-trailer:hover > img {
  transform: none;
  filter: none;
}

.page-home .hero-pick-trailer-iframe {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 420%;
  height: 420%;
  max-width: none;
  max-height: none;
  transform: translate(-50%, -48%);
  border: 0;
  pointer-events: none;
  background: #000;
}

.page-home .hero-pick-youtube-masks {
  z-index: 2;
  opacity: 0;
  transition: opacity 0.35s ease;
}

.page-home .hero-pick-poster.has-trailer .hero-pick-youtube-masks {
  opacity: 1;
}

.page-home .hero-pick-trailer-shield {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
}

.page-home .hero-pick-overlay {
  z-index: 4;
}

/* Pick posters: no hover trailers (featured hero only) */
.page-home .hero-pick-trailer-slot,
.page-home .hero-pick-youtube-masks,
.page-home .hero-pick-trailer-shield {
  display: none !important;
}

.page-home .hero-pick-poster.has-trailer .hero-pick-overlay {
  opacity: 1;
  justify-content: center;
  align-items: center;
  padding: 0;
  background: rgba(0, 0, 0, 0.15);
}

.page-home .hero-pick-poster.has-trailer .hero-pick-title {
  opacity: 0;
  visibility: hidden;
  height: 0;
  margin: 0;
  overflow: hidden;
  pointer-events: none;
}

.page-home .hero-pick-poster.has-trailer .hero-pick-play {
  margin-bottom: 0;
  width: 52px;
  height: 52px;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.55);
}

.page-home .hero-pick:hover .hero-pick-overlay {
  opacity: 1;
}

.page-home .hero-pick-poster.has-trailer:hover > img {
  transform: none;
  filter: none;
}

@media (prefers-reduced-motion: reduce) {
  .page-home .hero-trailer-layer,
  .page-home .hero-pick-trailer-slot {
    display: none !important;
  }
}

.page-home .hero-pick.active .hero-pick-poster {
  outline: 2px solid var(--hp-accent);
  outline-offset: 2px;
  box-shadow: 0 0 0 4px var(--hp-accent-glow), 0 0 20px var(--hp-accent-cyan-glow);
}

.page-home .hero-pick-play {
  background: linear-gradient(135deg, #ff00ff, #cc00cc);
  box-shadow: 0 4px 16px rgba(255, 0, 255, 0.45);
}

.page-home .hero-picks-cta {
  color: var(--hp-accent-2);
  border-color: rgba(0, 255, 255, 0.35);
  background: rgba(0, 255, 255, 0.06);
  border-radius: 999px;
}

.page-home .hero-picks-cta:hover {
  background: rgba(0, 255, 255, 0.12);
  border-color: rgba(0, 255, 255, 0.55);
}

/* Quick nav */
.page-home .hp-quick-nav {
  max-width: var(--hp-max);
  margin: -2rem auto 0;
  padding: 0 clamp(1rem, 4vw, 2rem) 1.25rem;
  position: sticky;
  top: 56px;
  z-index: 90;
}

.page-home .hp-quick-nav.is-stuck .hp-quick-nav-bar {
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.55), 0 0 24px rgba(255, 0, 255, 0.08);
  border-color: rgba(255, 0, 255, 0.28);
}

.page-home .hp-quick-nav-bar {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  padding: 0.85rem 1rem;
  background: rgba(8, 8, 12, 0.88);
  border: 1px solid rgba(255, 0, 255, 0.18);
  border-radius: 16px;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
  transition: box-shadow 0.25s ease, border-color 0.25s ease;
}

.page-home .hp-quick-nav-label {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--hp-accent-2);
  padding-left: 0.15rem;
}

.page-home .hp-quick-nav-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  overflow-x: auto;
  scrollbar-width: none;
}

.page-home .hp-quick-nav-inner::-webkit-scrollbar {
  display: none;
}

.page-home .hp-quick-link {
  flex: 1 1 auto;
  min-width: max(8.5rem, calc(50% - 0.5rem));
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.6rem 0.85rem;
  border-radius: 12px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--hp-muted);
  text-decoration: none;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  transition: color 0.2s, background 0.2s, border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}

@media (min-width: 768px) {
  .page-home .hp-quick-link {
    min-width: 0;
    flex: 1 1 0;
  }
}

.page-home .hp-quick-link:hover {
  color: var(--hp-text);
  background: rgba(255, 0, 255, 0.1);
  border-color: rgba(255, 0, 255, 0.25);
  transform: translateY(-1px);
}

.page-home .hp-quick-link.is-active {
  color: #fff;
  background: linear-gradient(135deg, rgba(255, 0, 255, 0.22), rgba(0, 255, 255, 0.1));
  border-color: rgba(255, 0, 255, 0.45);
  box-shadow: 0 0 20px rgba(255, 0, 255, 0.15);
}

.page-home .hp-quick-icon {
  font-size: 1.05rem;
  line-height: 1;
  flex-shrink: 0;
}

.page-home .hp-quick-text {
  flex: 1;
  white-space: nowrap;
}

.page-home .hp-quick-badge {
  flex-shrink: 0;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.15rem 0.45rem;
  border-radius: 999px;
  background: rgba(0, 255, 255, 0.12);
  color: var(--hp-accent-2);
  border: 1px solid rgba(0, 255, 255, 0.25);
}

.page-home .hp-quick-badge-live {
  background: rgba(255, 51, 102, 0.2);
  color: #ffb4c8;
  border-color: rgba(255, 51, 102, 0.45);
  animation: hpBadgePulse 2s ease-in-out infinite;
}

@keyframes hpBadgePulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.75; }
}

/* ── Main content ── */
.page-home .main-content {
  background: var(--hp-bg);
  padding: clamp(2rem, 4vw, 3rem) 0 clamp(3rem, 6vw, 5rem);
}

.page-home .content-section {
  max-width: var(--hp-max);
  margin-bottom: clamp(2.5rem, 5vw, 3.75rem);
  padding: 0 clamp(1rem, 4vw, 2rem);
}

.page-home .section-header {
  border-bottom: none;
  margin-bottom: 1.25rem;
  padding-bottom: 0;
  align-items: center;
}

.page-home .section-title-group .section-title,
.page-home .section-title-group h2 {
  font-size: clamp(1.25rem, 2.2vw, 1.65rem);
  font-weight: 800;
  letter-spacing: -0.025em;
}

.page-home .hp-eyebrow {
  display: block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  background: linear-gradient(90deg, var(--hp-accent), var(--hp-accent-2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 0.2rem;
}

.page-home .section-subtitle {
  font-size: 0.85rem;
  color: var(--hp-muted);
}

.page-home .view-all-link {
  gap: 0.3rem;
  padding: 0.32rem 0.7rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: transparent;
  font-size: 0.75rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.65);
  white-space: nowrap;
  box-shadow: none;
}

.page-home .view-all-link .link-icon {
  width: 13px;
  height: 13px;
  opacity: 0.75;
}

.page-home .view-all-link:hover {
  border-color: rgba(255, 0, 255, 0.28);
  color: var(--hp-accent-2);
  background: rgba(255, 0, 255, 0.06);
  transform: none;
}

.page-home .view-all-link:hover .link-icon {
  opacity: 1;
}

.page-home .live-pulse {
  background: var(--hp-live);
  box-shadow: 0 0 10px rgba(255, 51, 102, 0.55);
}

/* Section genre / category filters */
.page-home .hp-filters {
  display: flex;
  flex-wrap: nowrap;
  gap: 0.45rem;
  margin-bottom: 1rem;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 0.15rem 0.1rem 0.35rem;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.page-home .hp-filters::-webkit-scrollbar {
  display: none;
}

@media (min-width: 768px) {
  .page-home .hp-filters {
    flex-wrap: wrap;
    overflow-x: visible;
    max-height: 7.5rem;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 0, 255, 0.35) transparent;
  }
}

.page-home .hp-filter-chip {
  flex-shrink: 0;
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
  color: var(--hp-muted);
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  transition: color 0.2s, background 0.2s, border-color 0.2s, box-shadow 0.2s;
}

.page-home .hp-filter-chip:hover {
  color: var(--hp-text);
  border-color: rgba(255, 0, 255, 0.3);
  background: rgba(255, 0, 255, 0.08);
}

.page-home .hp-filter-chip.is-active {
  color: #fff;
  border-color: rgba(255, 0, 255, 0.5);
  background: linear-gradient(135deg, rgba(255, 0, 255, 0.28), rgba(0, 255, 255, 0.12));
  box-shadow: 0 0 16px rgba(255, 0, 255, 0.2);
}

.page-home .hp-filter-empty {
  margin: 0.75rem 0 0;
  padding: 1rem 1.25rem;
  text-align: center;
  font-size: 0.88rem;
  color: var(--hp-muted);
  background: var(--hp-surface);
  border: 1px dashed rgba(255, 0, 255, 0.2);
  border-radius: var(--hp-radius);
}

.page-home .hp-filter-empty-sports {
  width: 100%;
}

.page-home .content-card[hidden],
.page-home .sports-event-card[hidden] {
  display: none !important;
}

/* Horizontal media rows */
.page-home .hp-row-wrap {
  position: relative;
}

.page-home .hp-row-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(255, 0, 255, 0.25);
  background: rgba(8, 8, 12, 0.92);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.2s, background 0.2s, border-color 0.2s;
  backdrop-filter: blur(8px);
}

.page-home .hp-row-wrap:hover .hp-row-nav {
  opacity: 1;
}

.page-home .hp-row-nav:hover {
  background: rgba(255, 0, 255, 0.2);
  border-color: rgba(0, 255, 255, 0.45);
}

.page-home .hp-row-nav.prev {
  left: -12px;
}

.page-home .hp-row-nav.next {
  right: -12px;
}

.page-home .hp-row-nav svg {
  width: 18px;
  height: 18px;
}

.page-home .hp-row {
  display: flex;
  gap: 0.85rem;
  overflow-x: auto;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  padding: 0.35rem 0.15rem 0.75rem;
  margin: 0 -0.15rem;
}

.page-home .hp-row::-webkit-scrollbar {
  display: none;
}

.page-home .hp-row .content-card {
  flex: 0 0 clamp(130px, 14vw, 168px);
  scroll-snap-align: start;
  border-radius: var(--hp-radius);
  background: var(--hp-bg-elevated);
  border: 1px solid transparent;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.page-home .hp-row .content-card:hover {
  transform: translateY(-6px) scale(1.02);
  border-color: rgba(255, 0, 255, 0.3);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45), 0 0 24px rgba(255, 0, 255, 0.12);
  z-index: 12;
}

.page-home .hp-row .card-image-container {
  border-radius: var(--hp-radius) var(--hp-radius) 0 0;
  overflow: hidden;
}

.page-home .hp-row .card-image {
  aspect-ratio: 2 / 3;
  width: 100%;
  object-fit: cover;
}

.page-home .hp-row .card-content {
  padding: 0.65rem 0.7rem 0.85rem;
}

.page-home .hp-row .card-title {
  font-size: 0.82rem;
  font-weight: 600;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.page-home .hp-row .card-year-badge {
  font-size: 0.68rem;
  padding: 0.2rem 0.45rem;
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(4px);
}

.page-home .hp-row .card-play-btn {
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, #ff00ff, #cc00cc);
  box-shadow: 0 4px 16px rgba(255, 0, 255, 0.45);
}

.page-home .hp-row .genre-badge {
  font-size: 0.68rem;
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  background: rgba(255, 0, 255, 0.12);
  color: #f0abfc;
  border: 1px solid rgba(255, 0, 255, 0.2);
  text-decoration: none;
  pointer-events: auto;
}

.page-home .hp-row .card-genres-below-title {
  pointer-events: auto;
  display: flex;
  justify-content: flex-start;
  gap: 0.25rem;
  overflow: hidden;
}

/* Homepage card meta — fixed title + genre slots so pills align across the row */
.page-home .hp-row .hp-card-meta {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 0.3rem;
  width: 100%;
  min-height: 4.65rem;
  box-sizing: border-box;
}

.page-home .hp-row .card-title {
  flex: 0 0 2.65em;
  min-height: 2.65em;
  max-height: 2.65em;
  margin: 0;
}

.page-home .hp-row .card-genres-below-title {
  flex: 0 0 2.85rem;
  min-height: 2.85rem;
  max-height: 2.85rem;
  margin-top: auto;
  flex-direction: column;
  flex-wrap: nowrap;
  align-items: stretch;
  justify-content: flex-end;
  gap: 0.32rem;
}

.page-home .hp-row .card-genres-below-title .hp-genre-pill,
.page-home .hp-row .card-genres-below-title .genre-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 100%;
  flex: 0 0 auto;
  padding: 0.2rem 0.5rem;
  font-size: 0.58rem;
  line-height: 1.15;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  box-sizing: border-box;
  min-height: 1.22rem;
}

.page-home .hp-row .card-genres-below-title.is-empty {
  visibility: hidden;
  pointer-events: none;
}

.page-home .hp-row .hp-genre-pill {
  text-transform: capitalize;
  letter-spacing: 0.02em;
  font-weight: 600;
  background: rgba(255, 0, 255, 0.12);
  border: 1px solid rgba(255, 0, 255, 0.22);
  color: #f0abfc;
  text-shadow: none;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.page-home .hp-row .hp-genre-pill::before {
  display: none;
}

@media (max-width: 768px) {
  .page-home .hp-row {
    align-items: flex-start;
  }

  .page-home .hp-row .content-card,
  .page-home .hp-row .card-link {
    height: auto;
  }

  .page-home .hp-row .card-content {
    flex: 0 0 auto;
    min-height: 0;
    padding: 0.55rem 0.6rem 0.65rem;
  }

  .page-home .hp-row .hp-card-meta {
    min-height: 4.65rem;
    gap: 0.3rem;
  }

  .page-home .hp-row .card-title {
    flex: 0 0 2.5em;
    min-height: 2.5em;
    max-height: 2.5em;
  }

  .page-home .hp-row .card-genres-below-title {
    gap: 0.34rem !important;
  }

  .page-home .hp-row .card-genres-below-title .hp-genre-pill,
  .page-home .hp-row .card-genres-below-title .genre-badge {
    font-size: 0.56rem !important;
    padding: 0.22rem 0.52rem !important;
  }
}

.page-home .hp-row .card-overlay {
  background: linear-gradient(to top, rgba(6, 6, 8, 0.85), transparent 60%);
}

/* Live sports */
.page-home .live-sports-section {
  max-width: var(--hp-max);
  padding: 0 clamp(1rem, 4vw, 2rem);
}

.page-home .live-sports-section .sports-event-card {
  flex: 0 0 clamp(200px, 22vw, 260px);
  background: var(--hp-bg-elevated);
  border: 1px solid var(--hp-border);
  border-radius: var(--hp-radius);
}

.page-home .live-sports-section .sports-event-card:hover {
  border-color: rgba(255, 0, 255, 0.35);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4), 0 0 20px rgba(255, 0, 255, 0.1);
}

.page-home .live-sports-section .event-image-container {
  height: clamp(110px, 14vw, 150px);
}

.page-home .sports-carousel-btn {
  background: rgba(8, 8, 12, 0.92);
  border-color: rgba(255, 0, 255, 0.2);
}

.page-home .sports-carousel-btn:hover {
  background: rgba(255, 0, 255, 0.25);
  border-color: rgba(0, 255, 255, 0.4);
}

.page-home .event-live-badge {
  background: linear-gradient(135deg, #ff3366, #ff00ff);
  border-radius: 999px;
  font-weight: 700;
}

.page-home .event-scheduled-badge {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 2;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.2rem 0.5rem;
  border-radius: 999px;
  background: rgba(0, 255, 255, 0.2);
  color: var(--hp-accent-2);
  border: 1px solid rgba(0, 255, 255, 0.35);
}

.page-home .event-category-badge {
  background: rgba(0, 255, 255, 0.15);
  color: var(--hp-accent-2);
  border: 1px solid rgba(0, 255, 255, 0.25);
}

/* Collections */
.page-home .collections-section {
  margin-top: 0;
}

.page-home .collections-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: 1.25rem;
  margin-top: 0.5rem;
}

.page-home .collection-card {
  position: relative;
  border-radius: var(--hp-radius-lg);
  border: 1px solid var(--hp-border);
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--hp-bg-elevated);
  text-decoration: none;
  display: block;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.page-home .collection-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.5), 0 0 32px rgba(255, 0, 255, 0.15);
  border-color: rgba(255, 0, 255, 0.35);
}

.page-home .collection-image-container {
  position: relative;
  width: 100%;
  height: 100%;
}

.page-home .collection-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.page-home .collection-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(6, 6, 8, 0.95) 0%, rgba(6, 6, 8, 0.2) 55%, transparent 100%);
  display: flex;
  align-items: flex-end;
  padding: 1.5rem;
}

.page-home .collection-info {
  width: 100%;
}

.page-home .collection-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 0.35rem;
}

.page-home .collection-count {
  color: var(--hp-muted);
  font-size: 0.9rem;
  margin-bottom: 0.75rem;
}

.page-home .collection-view-btn {
  padding: 0.65rem 1.25rem;
  background: linear-gradient(135deg, #ff00ff, #00ffff);
  color: #000;
  border: none;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.85rem;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.page-home .collection-card:hover .collection-view-btn {
  transform: scale(1.04);
  box-shadow: 0 4px 20px rgba(255, 0, 255, 0.35);
}

.page-home .no-content-message {
  padding: 2rem;
  text-align: center;
  color: var(--hp-muted);
  background: var(--hp-surface);
  border-radius: var(--hp-radius);
  border: 1px dashed rgba(255, 0, 255, 0.2);
  flex: 1 0 100%;
}

/* Responsive */
@media (max-width: 1024px) {
  .page-home .hero-content-wrapper {
    grid-template-columns: 1fr;
    padding-top: 5.5rem;
  }

  .page-home .hero-picks {
    max-width: 480px;
  }

  .page-home .hp-row-nav {
    display: none;
  }
}

@media (max-width: 768px) {
  .page-home .hero-section {
    display: flex;
    flex-direction: column;
    min-height: auto;
    padding-bottom: 0;
  }

  .page-home .hero-content-wrapper {
    flex: 1 1 auto;
    order: 1;
  }

  /* In document flow on mobile — avoids covering picks CTA / scroll hint */
  .page-home .hero-bottom-bar {
    position: relative;
    order: 2;
    left: auto;
    right: auto;
    bottom: auto;
    margin-top: 0.25rem;
    padding: 0.75rem clamp(1rem, 4vw, 1.5rem) 1.25rem;
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 0.75rem;
    background: linear-gradient(to top, var(--hp-bg) 0%, rgba(6, 6, 8, 0.92) 40%, transparent 100%);
  }

  .page-home .hero-carousel-nav {
    order: 0;
  }

  .page-home .hero-main-content {
    text-align: center;
  }

  .page-home .hero-actions {
    justify-content: center;
    align-items: center;
    width: 100%;
  }

  .page-home .hero-actions .btn-primary {
    margin-left: auto;
    margin-right: auto;
    width: 100%;
    max-width: 300px;
    min-height: 3.25rem;
    padding: 1rem 1.75rem;
  }

  .page-home .hero-content-wrapper {
    padding-bottom: 1rem;
  }

  .page-home .hero-picks {
    max-width: 100%;
    width: 100%;
    min-width: 0;
    padding-bottom: 0.25rem;
  }

  .page-home .hero-picks-cta {
    margin-top: 0.85rem;
    margin-bottom: 0.5rem;
    position: relative;
    z-index: 2;
  }

  .page-home .hero-carousel-dots {
    grid-column: 1;
    justify-self: center;
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: center;
    max-width: min(100%, 280px);
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: none;
    padding: 0.15rem 0;
    -webkit-overflow-scrolling: touch;
  }

  .page-home .hero-carousel-dots::-webkit-scrollbar {
    display: none;
  }

  .page-home .hero-dot {
    flex-shrink: 0;
  }

  .page-home .scroll-hint {
    grid-column: 1;
    position: relative !important;
    left: auto !important;
    right: auto !important;
    bottom: auto !important;
    transform: none !important;
    display: inline-flex !important;
    flex-direction: row !important;
    width: auto;
    max-width: 100%;
  }

  .page-home .scroll-hint:hover,
  .page-home .scroll-hint:focus-visible {
    transform: none !important;
  }

  .page-home .scroll-hint-inner {
    padding: 0.28rem 0.55rem 0.28rem 0.65rem;
    gap: 0.28rem;
  }

  .page-home .scroll-hint-text {
    font-size: 0.6rem;
    letter-spacing: 0.08em;
  }

  .page-home .scroll-hint-chevron {
    width: 12px;
    height: 12px;
  }

  .page-home .hero-picks-row {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.45rem;
  }

  .page-home .hero-pick-small .hero-pick-title {
    font-size: 0.65rem;
    -webkit-line-clamp: 2;
  }

  .page-home .hp-quick-nav {
    margin-top: 0.5rem;
    padding-top: 1rem;
    top: 52px;
  }

  .page-home .hp-quick-link {
    min-width: calc(50% - 0.35rem);
  }

  .page-home .live-sports-section .sports-event-card {
    flex: 0 0 180px;
  }

  .page-home .collections-grid {
    grid-template-columns: 1fr;
  }

  /* Legacy grid rows: 2 columns max (responsive.css min 130px allows 3 on ~390px) */
  .page-home .content-section .content-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 0.75rem !important;
  }

  .page-home .content-grid .card-genres-below-title {
    flex-wrap: wrap !important;
    overflow: visible !important;
  }

  .page-home .content-grid .card-genres-below-title .genre-badge {
    flex-shrink: 0 !important;
    overflow: visible !important;
    text-overflow: unset !important;
    white-space: normal !important;
    max-width: 100%;
    word-break: break-word;
  }

  /* ~2.25 cards visible on tablet — not full-width posters */
  .page-home .hp-row .content-card {
    flex: 0 0 clamp(128px, 36vw, 168px);
  }

  .page-home .hp-row .card-content {
    padding: 0.6rem 0.65rem 0.75rem;
  }
}

@media (max-width: 480px) {
  .page-home .hero-picks-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.5rem;
  }

  .page-home .hero-pick-featured .hero-pick-poster {
    aspect-ratio: 16 / 9;
  }

  .page-home .hero-carousel-dots {
    max-width: 100%;
  }

  /* ~2 cards + peek of the next (not ~90% viewport width) */
  .page-home .hp-row .content-card {
    flex: 0 0 clamp(118px, 40vw, 148px);
  }

  .page-home .hp-row .card-title {
    font-size: 0.75rem;
    -webkit-line-clamp: 2;
  }

  .page-home .hp-row .card-content {
    padding: 0.5rem 0.55rem 0.65rem;
  }

  /* Legacy content-grid sections (if present on homepage) */
  .page-home .content-section .content-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 0.65rem !important;
  }

  .page-home .hp-filters {
    gap: 0.4rem;
  }

  .page-home .hp-filter-chip {
    font-size: 0.72rem;
    padding: 0.35rem 0.65rem;
  }
}
