:root {
  --page-bg: #111;
  --text: #d7d7d7;
  --muted: #a8a8a8;
  --active: #fff;
  --gap: 5px;
  --header-side: 12px;
  --plyr-color-main: #fff;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  background: var(--page-bg);
  color: var(--text);
}

body {
  font-family: Arial, Helvetica, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: geometricPrecision;
}

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

.site-header {
  padding: 22px var(--header-side) 16px;
}

.header-inner {
  width: 100%;
  display: flex;
  align-items: flex-end;
  gap: 30px;
}

.brand {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-end;
  line-height: 1;
  white-space: nowrap;
  text-align: right;
}

.brand-name {
  color: var(--active);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.5px;
}

.brand-role {
  margin-top: 2px;
  width: 100%;
  color: var(--muted);
  font-size: 10px;
  line-height: 1;
  text-align: right;
}

.site-nav {
  margin-left: auto;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 9px;
  padding-bottom: 2px;
  font-size: 14px;
  white-space: nowrap;
}

.site-nav a {
  color: var(--muted);
  transition: color 120ms ease;
}

.site-nav a:hover,
.site-nav a:focus-visible,
.site-nav a.active {
  color: var(--active);
}

.nav-plus {
  color: #777;
}

.reel-grid {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--gap);
  padding: 0 var(--gap) var(--gap);
}

.reel-item {
  position: relative;
  z-index: 0;
  display: block;
  width: 100%;
  overflow: hidden;
  border: 0;
  padding: 0;
  margin: 0;
  background: #000;
  cursor: pointer;
  aspect-ratio: 16 / 9;
}

.reel-item img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1);
  filter: brightness(1) contrast(1);
  transition:
    transform 180ms ease,
    filter 180ms ease;
}

.reel-item:hover,
.reel-item:focus-visible {
  z-index: 3;
}

.reel-item:hover img,
.reel-item:focus-visible img {
  transform: scale(1.035);
  filter: brightness(1.11) contrast(0.97);
}


.reel-title {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  padding: 34px 14px 12px;
  color: #fff;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.72));
  font-size: clamp(12px, 1.05vw, 17px);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: 0.01em;
  text-align: center;
  opacity: 1;
  transform: translateY(0);
  pointer-events: none;
}

.reel-item:focus-visible {
  outline: 2px solid #fff;
  outline-offset: -2px;
}

.video-lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 40px;
  background: rgba(0, 0, 0, 0.95);
}

.video-lightbox.open {
  display: flex;
}

.player-shell {
  width: min(92vw, 1500px);
  max-height: 86vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

#reelPlayer,
.plyr {
  display: block;
  max-width: 100%;
  max-height: 86vh;
  background: #000;
}

.player-shell.is-16x9 {
  width: min(92vw, 1500px);
  aspect-ratio: 16 / 9;
}

.player-shell.is-4x3 {
  width: min(78vw, 1100px);
  aspect-ratio: 4 / 3;
}

.player-shell .plyr,
.player-shell .plyr__video-wrapper,
.player-shell video {
  width: 100%;
  height: 100%;
}

.player-shell video {
  object-fit: contain;
}

/* Keep Plyr clean and understated against the black lightbox. */
.plyr--video {
  --plyr-video-background: #000;
  --plyr-control-icon-size: 18px;
  --plyr-control-spacing: 10px;
  --plyr-control-radius: 0;
  --plyr-menu-radius: 0;
}

.plyr--video .plyr__controls {
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.72));
}

.lightbox-close {
  position: fixed;
  top: 12px;
  right: 18px;
  z-index: 1002;
  border: 0;
  padding: 4px 8px;
  background: transparent;
  color: #fff;
  font: 300 40px/1 Arial, Helvetica, sans-serif;
  cursor: pointer;
  opacity: 0.78;
  transition: opacity 120ms ease;
}

.lightbox-close:hover,
.lightbox-close:focus-visible {
  opacity: 1;
}

body.lightbox-open {
  overflow: hidden;
}

@media (max-width: 760px) {
  :root {
    --gap: 4px;
    --header-side: 10px;
  }

  .site-header {
    padding-top: 16px;
    padding-bottom: 14px;
  }

  .header-inner {
    align-items: flex-end;
    gap: 18px;
  }

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

  .site-nav {
    flex-wrap: wrap;
    gap: 7px;
    font-size: 13px;
  }

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

  .video-lightbox {
    padding: 34px 12px 20px;
  }

  .player-shell.is-16x9,
  .player-shell.is-4x3 {
    width: 100%;
    max-height: 82vh;
  }
}

@media (max-width: 480px) {
  .header-inner {
    align-items: flex-end;
  }

  .brand {
    flex: 0 0 auto;
  }

  .site-nav {
    font-size: 12px;
  }

  .reel-grid {
    grid-template-columns: 1fr;
  }
}
