/** Showreel embedded on index.html */
/* ========== Single viewport + horizontal categories + row (videos page) ========== */
body.page-index .st-showreel-panel {
  position: relative;
  z-index: 2;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  overflow: visible;
  background: #050505;
  --nv-hero-overlap: clamp(96px, 15vh, 200px);
}

/* index.html header + full-height videos column */
body.page-index .st-showreel-panel .nv-main {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: visible;
  padding-top: 0;
}

body.page-index .st-showreel-panel .nv-hero {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: visible;
  padding-top: 0;
  width: 100%;
  position: relative;
}

/* Full-viewport hero layer; tiles overlap the bottom (Netflix-style) */
body.page-index .st-showreel-panel .nv-hero__pane {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 0;
}

/* YouTube hero: sharp streaming frame, cover crop (no bitmap stretch) */
body.page-index .st-showreel-panel .nv-hero__video-wrap {
  position: absolute;
  inset: 0;
  overflow: hidden;
  z-index: 0;
  pointer-events: none;
}

body.page-index .st-showreel-panel .nv-hero__iframe {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 177.78vh;
  min-width: 100%;
  height: 56.25vw;
  min-height: 100%;
  max-width: none;
  border: 0;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

/* Lighter scrim — keeps photo sharp, only shapes contrast for text */
body.page-index .st-showreel-panel .nv-hero__pane .nv-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
      90deg,
      rgba(0, 0, 0, 0.82) 0%,
      rgba(0, 0, 0, 0.38) 42%,
      rgba(0, 0, 0, 0.12) 62%,
      transparent 85%
    ),
    linear-gradient(180deg, rgba(0, 0, 0, 0.55) 0%, transparent 28%, transparent 58%, rgba(15, 15, 15, 0.65) 100%);
  pointer-events: none;
}

/* Netflix-style: copy sits center-left, above overlapping row */
body.page-index .st-showreel-panel .nv-hero__content--single {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  height: 100%;
  min-height: 0;
  max-width: 100%;
  padding: clamp(88px, 11vh, 130px) clamp(16px, 3vw, 48px)
    calc(var(--nv-hero-overlap) + clamp(20px, 3vh, 36px));
  box-sizing: border-box;
  pointer-events: none;
}

body.page-index .st-showreel-panel .nv-hero__content--single .nv-hero__left {
  pointer-events: auto;
}

body.page-index .st-showreel-panel .nv-hero__left {
  max-width: min(640px, 100%);
}

body.page-index .st-showreel-panel .nv-hero__title {
  font-size: clamp(1.75rem, 4.2vw, 3.1rem);
  margin-bottom: 8px;
}

body.page-index .st-showreel-panel .nv-hero__meta {
  margin-bottom: 8px;
  font-size: 14px;
}

body.page-index .st-showreel-panel .nv-hero__desc {
  margin-bottom: 10px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.45;
  font-size: clamp(13px, 1.4vw, 15px);
  color: #fff;
  text-shadow:
    0 0 2px #000,
    0 1px 3px rgba(0, 0, 0, 0.95),
    0 2px 14px rgba(0, 0, 0, 0.75),
    0 4px 28px rgba(0, 0, 0, 0.55);
}

body.page-index .st-showreel-panel .nv-hero__eyebrow {
  margin-bottom: 8px;
}

body.page-index .st-showreel-panel .nv-browse {
  position: relative;
  z-index: 4;
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  overflow: visible;
  margin-top: calc(-1 * var(--nv-hero-overlap));
  padding: 0 0 6px;
  background: transparent;
  border: none;
}

/* Category strip + scroll hints (arrows + edge fades when overflow) */
body.page-index .st-showreel-panel .nv-category-wrap {
  position: relative;
  flex-shrink: 0;
  margin-left: auto;
  margin-right: auto;
  width: fit-content;
  max-width: calc(100% - 32px);
  box-sizing: border-box;
  text-align: center;
}

body.page-index .st-showreel-panel .nv-category-wrap--scrollable .nv-category-scroll {
  padding-left: 40px;
  padding-right: 40px;
}

body.page-index .st-showreel-panel .nv-category-fade {
  position: absolute;
  top: 1px;
  bottom: 1px;
  width: 36px;
  z-index: 2;
  pointer-events: none;
  border-radius: inherit;
  opacity: 1;
  transition: opacity 0.25s var(--nf-ease);
}

body.page-index .st-showreel-panel .nv-category-fade--left {
  left: 1px;
  border-radius: 13px 0 0 13px;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.92) 0%, rgba(0, 0, 0, 0.5) 45%, transparent 100%);
}

body.page-index .st-showreel-panel .nv-category-fade--right {
  right: 1px;
  border-radius: 0 13px 13px 0;
  background: linear-gradient(270deg, rgba(0, 0, 0, 0.92) 0%, rgba(0, 0, 0, 0.5) 45%, transparent 100%);
}

body.page-index .st-showreel-panel .nv-category-fade--off {
  opacity: 0;
}

body.page-index .st-showreel-panel .nv-category-wrap:not(.nv-category-wrap--scrollable) .nv-category-fade,
body.page-index .st-showreel-panel .nv-category-wrap:not(.nv-category-wrap--scrollable) .nv-category-arrow {
  display: none;
}

body.page-index .st-showreel-panel .nv-category-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  padding: 0;
  margin: 0;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 50%;
  background: rgba(10, 10, 10, 0.75);
  color: #fff;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: background 0.2s, border-color 0.2s, opacity 0.2s;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.45);
}

body.page-index .st-showreel-panel .nv-category-arrow:hover:not(:disabled) {
  background: rgba(40, 40, 40, 0.9);
  border-color: rgba(255, 255, 255, 0.55);
}

body.page-index .st-showreel-panel .nv-category-arrow:disabled {
  opacity: 0.22;
  cursor: default;
  pointer-events: none;
}

body.page-index .st-showreel-panel .nv-category-arrow--prev {
  left: 8px;
}

body.page-index .st-showreel-panel .nv-category-arrow--next {
  right: 8px;
}

/* Tight glass pill: only as wide as tabs (desktop); full-width scroll on phone */
body.page-index .st-showreel-panel .nv-category-scroll {
  flex-shrink: 0;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  touch-action: pan-x;
  margin: 0;
  padding: 2px 14px 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(12px) saturate(1.2);
  -webkit-backdrop-filter: blur(12px) saturate(1.2);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 14px;
  box-shadow: 0 6px 28px rgba(0, 0, 0, 0.4);
  display: inline-block;
  width: auto;
  max-width: 100%;
  min-width: 0;
  vertical-align: top;
  box-sizing: border-box;
}

body.page-index .st-showreel-panel .nv-category-scroll::-webkit-scrollbar {
  height: 4px;
}

body.page-index .st-showreel-panel .nv-category-scroll::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.2);
  border-radius: 2px;
}

body.page-index .st-showreel-panel .nv-category-list {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: stretch;
  gap: clamp(14px, 2.4vw, 26px);
  list-style: none;
  margin: 0;
  padding: 0 6px 0;
  width: max-content;
  min-width: 0;
  font-family: Georgia, 'Times New Roman', Times, serif;
}

body.page-index .st-showreel-panel .nv-category-list li {
  flex-shrink: 0;
}

body.page-index .st-showreel-panel .nv-category-list .nv-playlist__btn {
  display: block;
  padding: 8px 2px 10px;
  margin: 0;
  border: none;
  background: transparent;
  color: rgba(255, 255, 255, 0.82);
  font-family: inherit;
  font-size: clamp(11px, 1.65vw, 13px);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  white-space: nowrap;
  cursor: pointer;
  position: relative;
  text-align: left;
  width: auto;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
  transition: color 0.3s var(--nf-ease);
}

body.page-index .st-showreel-panel .nv-category-list .nv-playlist__btn:hover {
  color: #fff;
}

body.page-index .st-showreel-panel .nv-category-list .nv-playlist__btn.nv-active {
  color: var(--nf-white);
  font-weight: 700;
}

body.page-index .st-showreel-panel .nv-category-list .nv-playlist__btn.nv-active::after {
  content: '';
  position: absolute;
  left: -2px;
  right: -2px;
  bottom: 2px;
  height: 3px;
  background: var(--nf-red);
  border-radius: 2px;
}

body.page-index .st-showreel-panel .nv-row-track {
  flex: 0 0 auto;
  overflow-x: auto;
  overflow-y: visible;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  padding: 10px 0 12px;
}

body.page-index .st-showreel-panel .nv-row-track::-webkit-scrollbar {
  height: 6px;
}

body.page-index .st-showreel-panel .nv-row-track::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.22);
  border-radius: 3px;
}

body.page-index .st-showreel-panel .nv-row-cards--netflix {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: flex-end;
  gap: 6px;
  width: max-content;
  padding: 4px clamp(16px, 3vw, 48px) 4px;
  margin: 0;
  scroll-snap-type: x proximity;
}

body.page-index .st-showreel-panel .nv-row-cards--netflix.nv-fade {
  opacity: 0.45;
}

/* Kill global .nv-card hover scale — expansion is on .nv-card__shell */
body.page-index .st-showreel-panel .nv-row-cards--netflix .nv-card--netflix {
  flex: 0 0 auto;
  width: min(268px, 54vw);
  max-width: 320px;
  scroll-snap-align: start;
  position: relative;
  z-index: 1;
  margin: 0;
  padding: 0;
  border: none;
  background: transparent;
  border-radius: 6px;
  cursor: pointer;
  outline: none;
  transition: z-index 0s linear 0.2s;
}

body.page-index .st-showreel-panel .nv-row-cards--netflix .nv-card--netflix:hover,
body.page-index .st-showreel-panel .nv-row-cards--netflix .nv-card--netflix:focus-within {
  z-index: 18;
  transition-delay: 0s;
}

body.page-index .st-showreel-panel .nv-row-cards--netflix .nv-card--netflix:hover {
  transform: none;
  box-shadow: none;
}

body.page-index .st-showreel-panel .nv-row-cards--netflix .nv-card--netflix:focus-visible .nv-card__shell {
  box-shadow: 0 0 0 2px #fff, 0 8px 24px rgba(0, 0, 0, 0.5);
}

body.page-index .st-showreel-panel .nv-row-cards--netflix .nv-card__shell {
  border-radius: 6px;
  overflow: hidden;
  background: #181818;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.45);
  transform-origin: 50% 100%;
  transition: transform 0.28s var(--nf-ease), box-shadow 0.28s var(--nf-ease);
}

@media (hover: hover) and (pointer: fine) {
  body.page-index .st-showreel-panel .nv-row-cards--netflix .nv-card--netflix:hover .nv-card__shell,
  body.page-index .st-showreel-panel .nv-row-cards--netflix .nv-card--netflix:focus-within .nv-card__shell {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.55);
  }
}

@media (prefers-reduced-motion: reduce) {
  body.page-index .st-showreel-panel .nv-row-cards--netflix .nv-card--netflix:hover .nv-card__shell,
  body.page-index .st-showreel-panel .nv-row-cards--netflix .nv-card--netflix:focus-within .nv-card__shell {
    transform: none;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.45);
  }
}

body.page-index .st-showreel-panel .nv-row-cards--netflix .nv-card__thumb-wrap {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: 6px 6px 0 0;
  overflow: hidden;
  background: #0a0a0a;
}

body.page-index .st-showreel-panel .nv-row-cards--netflix .nv-card__play-ov {
  z-index: 3;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s var(--nf-ease);
}

@media (hover: hover) and (pointer: fine) {
  body.page-index .st-showreel-panel .nv-row-cards--netflix .nv-card--netflix:hover .nv-card__play-ov,
  body.page-index .st-showreel-panel .nv-row-cards--netflix .nv-card--netflix:focus-within .nv-card__play-ov {
    opacity: 1;
  }
}

/* White circle + red play — matches Netflix tile hover */
body.page-index .st-showreel-panel .nv-row-cards--netflix .nv-card__play-ov span {
  width: 48px;
  height: 48px;
  border: none;
  background: var(--nf-white);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.45);
}

body.page-index .st-showreel-panel .nv-row-cards--netflix .nv-card__play-ov span svg {
  width: 22px;
  height: 22px;
  margin-left: 4px;
  fill: var(--nf-red);
  filter: none;
}

body.page-index .st-showreel-panel .nv-row-cards--netflix .nv-card__dock {
  background: #181818;
}

body.page-index .st-showreel-panel .nv-row-cards--netflix .nv-card__dock-default {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 10px 12px;
  min-height: 50px;
}

body.page-index .st-showreel-panel .nv-row-cards--netflix .nv-card__dock-line {
  flex: 1;
  min-width: 0;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.35;
  color: #e8e8e8;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

body.page-index .st-showreel-panel .nv-row-cards--netflix .nv-card__dock-line .nv-card__ep-num {
  font-weight: 800;
  color: var(--nf-white);
  margin-right: 4px;
}

body.page-index .st-showreel-panel .nv-row-cards--netflix .nv-card__dur {
  flex-shrink: 0;
  font-size: 12px;
  font-weight: 600;
  color: #b3b3b3;
  white-space: nowrap;
}

/* Edge-to-edge player: fills viewport; browser fullscreen uses same surface */
body.page-index .nv-modal.nv-open {
  padding: 0;
  align-items: stretch;
  justify-content: stretch;
  background: #000;
}

body.page-index .nv-modal.nv-open .nv-modal__inner {
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  display: flex;
  flex-direction: column;
}

body.page-index .nv-modal.nv-open .nv-modal__close {
  top: max(12px, env(safe-area-inset-top, 0px));
  right: max(12px, env(safe-area-inset-right, 0px));
  z-index: 20;
}

body.page-index .nv-modal.nv-open .nv-modal__stage {
  flex: 1;
  min-height: 0;
  height: auto;
  aspect-ratio: unset;
  border-radius: 0;
  box-shadow: none;
}

body.page-index .nv-modal:fullscreen,
body.page-index .nv-modal:-webkit-full-screen {
  background: #000;
}

/* main.css .dark-first hides logo (brightness 0) + dark hamburger — videos page sits on dark video */
body.page-index.dark-first .header .header__builder .logo-image img {
  filter: none !important;
  max-height: 44px;
  width: auto;
  max-width: min(150px, 50vw);
  object-fit: contain;
}

body.page-index.dark-first .menu-btn span:before,
body.page-index.dark-first .menu-btn span:after {
  background-color: #eb6165 !important;
}

body.page-index.dark-first .menu-btn.active span:before,
body.page-index.dark-first .menu-btn.active span:after {
  background-color: #eb6165 !important;
}

@media screen and (max-width: 768px) {
  /* Readable “spotlight” behind centered copy */
  body.page-index .st-showreel-panel .nv-hero__pane .nv-hero__overlay {
    background: radial-gradient(
        ellipse 120% 70% at 50% 42%,
        rgba(0, 0, 0, 0.82) 0%,
        rgba(0, 0, 0, 0.45) 45%,
        rgba(0, 0, 0, 0.2) 70%
      ),
      linear-gradient(180deg, rgba(0, 0, 0, 0.55) 0%, transparent 22%, transparent 52%, rgba(12, 12, 12, 0.88) 100%);
    pointer-events: none;
  }

  body.page-index .st-showreel-panel {
    --nv-hero-overlap: clamp(56px, 12vh, 112px);
  }

  /* Hero stack: centered like Netflix mobile */
  body.page-index .st-showreel-panel .nv-hero__content--single {
    justify-content: center;
    align-items: center;
    padding: clamp(56px, 15vw, 88px) 18px calc(var(--nv-hero-overlap) + 16px);
  }

  body.page-index .st-showreel-panel .nv-hero__left {
    max-width: 100%;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 0 6px;
  }

  body.page-index .st-showreel-panel .nv-hero__eyebrow {
    display: flex;
    justify-content: center;
    width: 100%;
  }

  body.page-index .st-showreel-panel .nv-hero__title {
    justify-content: center;
    font-size: clamp(1.35rem, 6.8vw, 2.15rem);
    margin-bottom: 10px;
  }

  body.page-index .st-showreel-panel .nv-hero__meta {
    justify-content: center;
    width: 100%;
    margin-bottom: 10px;
    flex-wrap: wrap;
  }

  body.page-index .st-showreel-panel .nv-hero__desc {
    -webkit-line-clamp: 4;
    font-size: 14px;
    line-height: 1.5;
    max-width: 34em;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 16px;
    text-align: center;
    color: #fff;
    text-shadow:
      0 0 2px #000,
      0 1px 3px rgba(0, 0, 0, 0.95),
      0 2px 14px rgba(0, 0, 0, 0.75),
      0 4px 28px rgba(0, 0, 0, 0.55);
  }

  body.page-index .st-showreel-panel .nv-hero__actions {
    justify-content: center;
    width: 100%;
  }

  body.page-index .st-showreel-panel .nv-browse {
    padding-top: 4px;
  }

  /* Category strip: full-width wrap; glass on inner scroll */
  body.page-index .st-showreel-panel .nv-category-wrap {
    width: calc(100% - 24px);
    max-width: none;
    margin-left: 12px;
    margin-right: 12px;
    text-align: left;
  }

  body.page-index .st-showreel-panel .nv-category-scroll {
    display: block;
    width: 100%;
    padding: 10px 14px 8px;
    border-radius: 16px;
    background: rgba(6, 6, 6, 0.82);
    backdrop-filter: blur(22px) saturate(1.45);
    -webkit-backdrop-filter: blur(22px) saturate(1.45);
    border: 1px solid rgba(255, 255, 255, 0.22);
    box-shadow:
      0 0 0 1px rgba(0, 0, 0, 0.5),
      0 10px 36px rgba(0, 0, 0, 0.55),
      inset 0 1px 0 rgba(255, 255, 255, 0.14);
  }

  body.page-index .st-showreel-panel .nv-category-wrap--scrollable .nv-category-scroll {
    padding-left: 46px;
    padding-right: 46px;
  }

  body.page-index .st-showreel-panel .nv-category-fade--left {
    border-radius: 15px 0 0 15px;
  }

  body.page-index .st-showreel-panel .nv-category-fade--right {
    border-radius: 0 15px 15px 0;
  }

  body.page-index .st-showreel-panel .nv-category-arrow {
    width: 36px;
    height: 36px;
  }

  body.page-index .st-showreel-panel .nv-category-arrow--prev {
    left: 10px;
  }

  body.page-index .st-showreel-panel .nv-category-arrow--next {
    right: 10px;
  }

  body.page-index .st-showreel-panel .nv-category-list {
    gap: 16px;
    padding: 0 8px 2px;
  }

  body.page-index .st-showreel-panel .nv-category-list .nv-playlist__btn {
    min-height: 44px;
    padding: 10px 4px 12px;
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: 0.1em;
    color: rgba(255, 255, 255, 0.92);
  }

  body.page-index .st-showreel-panel .nv-category-list .nv-playlist__btn.nv-active {
    color: #fff;
  }

  body.page-index .st-showreel-panel .nv-category-list .nv-playlist__btn.nv-active::after {
    height: 4px;
    bottom: 4px;
    left: -4px;
    right: -4px;
    box-shadow: 0 0 12px rgba(229, 9, 20, 0.45);
  }

  body.page-index .header {
    padding-left: 16px !important;
    padding-right: 16px !important;
  }

  body.page-index .st-showreel-panel .nv-row-cards--netflix {
    padding-left: 10px;
    padding-right: 10px;
  }

  body.page-index .nv-modal.nv-open .nv-modal__close {
    top: max(8px, env(safe-area-inset-top, 0px));
    right: max(8px, env(safe-area-inset-right, 0px));
  }
}

@media screen and (max-width: 480px) {
  body.page-index .st-showreel-panel .nv-category-list {
    gap: 12px;
    padding: 0 6px 2px;
  }

  body.page-index .st-showreel-panel .nv-category-list .nv-playlist__btn {
    font-size: 10.5px;
    letter-spacing: 0.085em;
    padding: 10px 2px 12px;
    min-height: 44px;
  }

  body.page-index .st-showreel-panel .nv-hero__title {
    font-size: clamp(1.2rem, 7.2vw, 1.85rem);
  }
}
