:root {
  --cyan: #00b7e8;
  --nav: #161616;
  --text: #ffffff;
  --muted: rgba(255, 255, 255, 0.78);
}

* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  height: 100%;
  margin: 0;
}

body {
  overflow: hidden;
  background: #02070b;
  color: var(--text);
  font-family: Arial, Helvetica, sans-serif;
  letter-spacing: 0;
}

.topbar {
  position: fixed;
  inset: 0 0 auto;
  z-index: 10;
  height: 62px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 29px 0 35px;
  background: var(--nav);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.05);
}

.brand {
  display: flex;
  align-items: center;
  color: #fff;
  text-decoration: none;
  font-size: 40px;
  line-height: 1;
  font-weight: 900;
  letter-spacing: -2px;
  white-space: nowrap;
}

.brand-deck {
  position: relative;
}

.brand-deck::first-letter {
  color: var(--cyan);
}

.brand-mark {
  margin-left: 3px;
  align-self: flex-start;
  padding-top: 3px;
  color: #d9d9d9;
  font-size: 8px;
  letter-spacing: 0;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 27px;
  height: 100%;
  font-size: 16px;
  font-weight: 800;
  text-transform: uppercase;
}

.main-nav a {
  display: flex;
  align-items: center;
  gap: 4px;
  color: #fff;
  text-decoration: none;
  white-space: nowrap;
}

.main-nav svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.main-nav .active {
  color: var(--cyan);
}

.icon-link {
  gap: 5px;
}

.chevron {
  font-size: 15px;
  line-height: 1;
}

.hero {
  position: relative;
  min-height: 100vh;
  padding-top: 62px;
  isolation: isolate;
}

.water-scene {
  position: absolute;
  inset: 62px 0 0;
  overflow: hidden;
  background:
    radial-gradient(circle at 51% 67%, rgba(160, 225, 255, 0.7) 0 3%, transparent 12%),
    radial-gradient(ellipse at 51% 56%, rgba(76, 185, 235, 0.58) 0 12%, transparent 29%),
    radial-gradient(ellipse at 52% 24%, rgba(42, 142, 202, 0.56) 0 18%, transparent 39%),
    linear-gradient(90deg, rgba(1, 5, 12, 0.98) 0%, rgba(2, 19, 37, 0.84) 31%, rgba(8, 45, 71, 0.54) 50%, rgba(1, 12, 24, 0.88) 74%, rgba(0, 3, 9, 0.98) 100%),
    #020810;
}

.water-scene::before {
  content: "";
  position: absolute;
  inset: -12% -5%;
  background:
    repeating-linear-gradient(166deg, rgba(255,255,255,0.05) 0 1px, transparent 1px 24px),
    repeating-linear-gradient(88deg, transparent 0 13px, rgba(68, 171, 221, 0.08) 14px 16px, transparent 17px 46px);
  filter: blur(1.2px);
  opacity: 0.6;
  transform: perspective(900px) rotateX(53deg) translateY(-28%);
}

.water-scene::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 51% 10%, rgba(205, 244, 255, 0.18), transparent 11%),
    radial-gradient(circle at 50% 54%, rgba(207, 244, 255, 0.35), transparent 5%),
    linear-gradient(to bottom, rgba(0,0,0,0.1), transparent 42%, rgba(0,0,0,0.3));
  mix-blend-mode: screen;
}

.light-column {
  position: absolute;
  left: 41%;
  top: 0;
  width: 24%;
  height: 100%;
  background: linear-gradient(to bottom, rgba(143, 229, 255, 0.16), rgba(133, 218, 255, 0.42) 55%, rgba(147, 221, 255, 0.08));
  clip-path: polygon(38% 0, 60% 0, 94% 100%, 3% 100%);
  filter: blur(12px);
}

.surface {
  position: absolute;
  left: 37%;
  top: 2%;
  width: 27%;
  height: 23%;
  border-radius: 50%;
  background:
    radial-gradient(ellipse at 50% 68%, rgba(210, 240, 255, 0.4), transparent 18%),
    repeating-linear-gradient(172deg, rgba(200, 239, 255, 0.14) 0 2px, transparent 3px 16px);
  filter: blur(3px);
  opacity: 0.62;
}

.figure {
  position: absolute;
  z-index: 1;
  left: 50%;
  width: 32px;
  height: 154px;
  background: linear-gradient(to bottom, rgba(224, 244, 255, 0.72), rgba(45, 90, 134, 0.8), rgba(9, 20, 37, 0.92));
  border-radius: 40% 40% 48% 48%;
  filter: blur(0.7px);
  transform-origin: center;
}

.figure::before,
.figure::after {
  content: "";
  position: absolute;
  width: 8px;
  height: 88px;
  background: rgba(211, 238, 255, 0.62);
  border-radius: 999px;
}

.figure::before {
  left: -8px;
  top: 22px;
  transform: rotate(30deg);
}

.figure::after {
  right: -9px;
  top: 20px;
  transform: rotate(-22deg);
}

.figure-top {
  top: 8%;
  opacity: 0.56;
  transform: translateX(-50%) rotate(165deg) scale(0.52);
}

.figure-bottom {
  top: 58%;
  opacity: 0.86;
  transform: translateX(-50%) rotate(-10deg);
}

.bubbles {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle, rgba(226, 248, 255, 0.36) 0 1px, transparent 1.8px),
    radial-gradient(circle, rgba(226, 248, 255, 0.16) 0 1px, transparent 2px);
  background-size: 118px 102px, 81px 139px;
  opacity: 0.22;
}

.bubbles-b {
  transform: translate(37px, 25px);
  opacity: 0.13;
  filter: blur(1px);
}

.hero-content {
  position: relative;
  z-index: 2;
  display: flex;
  min-height: calc(100vh - 62px);
  flex-direction: column;
  align-items: center;
  padding-top: 37px;
  text-align: center;
}

.hero-content h1 {
  margin: 0;
  font-size: clamp(28px, 2.05vw, 42px);
  font-weight: 400;
  line-height: 1.2;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.dotted-rule {
  width: min(620px, 50vw);
  height: 1px;
  margin: 20px 0 18px;
  background-image: radial-gradient(circle, rgba(255,255,255,0.78) 1px, transparent 1.4px);
  background-size: 9px 1px;
}

.hero-content p {
  margin: 0;
  color: #fff;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: 0.1px;
}

.search-box {
  position: absolute;
  top: 43.5%;
  left: 50%;
  width: min(600px, calc(100vw - 48px));
  height: 45px;
  display: grid;
  grid-template-columns: 46px 1fr 48px;
  align-items: center;
  transform: translateX(-50%);
  border-radius: 4px;
  background: rgba(250, 250, 250, 0.92);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.5) inset, 0 12px 34px rgba(0, 0, 0, 0.28);
}

.search-icon {
  justify-self: center;
  width: 26px;
  height: 26px;
  fill: #9b9b9b;
}

.search-box input {
  width: 100%;
  height: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: #4a4a4a;
  font: 16px Arial, Helvetica, sans-serif;
}

.search-box input::placeholder {
  color: #6f6f6f;
  opacity: 1;
}

.search-box button {
  display: grid;
  width: 100%;
  height: 100%;
  place-items: center;
  border: 0;
  background: transparent;
  color: #9c9c9c;
  cursor: pointer;
}

.search-box button svg {
  width: 29px;
  height: 29px;
  fill: currentColor;
}

.home-search-suggestions {
  position: absolute;
  z-index: 20;
  top: 51px;
  left: 0;
  right: 0;
  display: none;
  overflow: hidden;
  border-radius: 3px;
  background: rgba(23, 23, 23, 0.98);
  box-shadow: 0 16px 42px rgba(0,0,0,0.45);
}

.home-search-suggestions.open {
  display: block;
}

.home-search-suggestions .suggestion-item {
  min-height: 42px;
}

.credit {
  position: absolute;
  z-index: 2;
  left: 35px;
  bottom: 15px;
  color: rgba(255,255,255,0.95);
  font-size: 11px;
  font-weight: 700;
}

.tagline {
  position: absolute;
  z-index: 2;
  left: 50%;
  bottom: 38px;
  width: min(620px, 90vw);
  transform: translateX(-50%);
  color: #fff;
  text-align: center;
  font-size: 18px;
  font-weight: 800;
}

@media (max-width: 960px) {
  .topbar {
    height: auto;
    min-height: 70px;
    align-items: flex-start;
    gap: 14px;
    padding: 17px 20px;
  }

  .brand {
    font-size: 32px;
  }

  .main-nav {
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 12px 18px;
    font-size: 13px;
  }

  .water-scene {
    inset-top: 70px;
  }

  .hero {
    padding-top: 70px;
  }

  .hero-content {
    min-height: calc(100vh - 70px);
    padding: 34px 22px 0;
  }

  .search-box {
    top: 47%;
  }
}

@media (max-width: 640px) {
  body {
    overflow: auto;
  }

  .topbar {
    position: sticky;
    flex-direction: column;
    align-items: stretch;
  }

  .main-nav {
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 3px;
  }

  .hero {
    min-height: 760px;
    padding-top: 0;
  }

  .water-scene {
    inset: 0;
  }

  .hero-content {
    min-height: 680px;
    padding-top: 58px;
  }

  .hero-content h1 {
    font-size: 28px;
  }

  .dotted-rule {
    width: 78vw;
  }

  .hero-content p {
    max-width: 320px;
    font-size: 15px;
    line-height: 1.45;
  }

  .search-box {
    top: 50%;
  }

  .tagline {
    bottom: 52px;
    font-size: 15px;
    line-height: 1.35;
  }
}

.browse-page {
  overflow-x: hidden;
  overflow-y: auto;
  background: #000;
}

.browse-topbar {
  height: 72px;
  padding-left: 35px;
}

.browse-topbar .main-nav {
  gap: 27px;
}

.filters {
  position: fixed;
  z-index: 5;
  left: 20px;
  top: 194px;
  bottom: 0;
  width: 244px;
  padding: 12px 10px 0 15px;
  background: #0d0d0d;
  color: #fff;
  overflow: auto;
}

.side-search {
  position: fixed;
  left: 35px;
  top: 206px;
  z-index: 8;
  width: 224px;
  height: 36px;
  display: grid;
  grid-template-columns: 1fr 40px;
  align-items: center;
  background: #3a3a3a;
  border-radius: 2px;
}

.side-search input {
  min-width: 0;
  height: 100%;
  border: 0;
  padding: 0 10px;
  background: transparent;
  color: #fff;
  font: 14px Arial, Helvetica, sans-serif;
}

.side-search input::placeholder {
  color: #fff;
  opacity: 1;
}

.side-search button {
  height: 100%;
  border: 0;
  background: transparent;
  color: #a5a5a5;
  cursor: pointer;
}

.side-search svg {
  width: 25px;
  height: 25px;
  fill: currentColor;
}

.search-suggestions {
  position: absolute;
  top: 40px;
  left: 0;
  right: 0;
  display: none;
  overflow: hidden;
  border: 1px solid #454545;
  border-radius: 2px;
  background: #1d1d1d;
  box-shadow: 0 14px 34px rgba(0,0,0,0.52);
}

.search-suggestions.open {
  display: block;
}

.suggestion-item {
  display: grid;
  gap: 2px;
  width: 100%;
  min-height: 38px;
  border: 0;
  border-bottom: 1px solid #333;
  padding: 5px 11px;
  background: transparent;
  color: #fff;
  text-align: left;
  font: 14px Arial, Helvetica, sans-serif;
  cursor: pointer;
}

.suggestion-item:last-child {
  border-bottom: 0;
}

.suggestion-item:hover,
.suggestion-item:focus {
  background: #303030;
  color: var(--cyan);
}

.suggestion-item.muted {
  color: #aaa;
}

.suggestion-label {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.suggestion-meta {
  color: #8b8b8b;
  font-size: 11px;
  text-transform: uppercase;
}

.filter-title {
  display: flex;
  justify-content: space-between;
  margin-top: 47px;
  margin-bottom: 22px;
  font-size: 14px;
  text-transform: uppercase;
}

.filter-title button {
  border: 0;
  background: transparent;
  color: var(--cyan);
  cursor: pointer;
  font-weight: 700;
}

.filter-list {
  border-top: 1px solid #343434;
}

.filter-group {
  border-bottom: 1px solid #343434;
}

.filter-group summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 31px;
  cursor: pointer;
  list-style: none;
  color: #fff;
  font-size: 14px;
}

.filter-group summary::-webkit-details-marker {
  display: none;
}

.filter-group summary::after {
  content: "+";
  color: var(--cyan);
  font-weight: 800;
}

.filter-group[open] summary::after {
  content: "-";
}

.filter-group summary b {
  margin-left: auto;
  margin-right: 12px;
  color: #7e7e7e;
  font-size: 11px;
  font-weight: 700;
}

.filter-values {
  display: grid;
  gap: 1px;
  padding: 0 0 8px;
}

.filter-value {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: 25px;
  border: 0;
  border-radius: 2px;
  padding: 0 5px 0 9px;
  background: transparent;
  color: #d8d8d8;
  text-align: left;
  font: 12px Arial, Helvetica, sans-serif;
  cursor: pointer;
}

.filter-value span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.filter-value small {
  color: #777;
  font-size: 11px;
}

.filter-value:hover,
.filter-value.active {
  background: #272727;
  color: var(--cyan);
}

.filter-row {
  display: block;
  width: 100%;
  height: 27px;
  border: 0;
  border-bottom: 1px solid #343434;
  padding: 0 0 0 2px;
  background: transparent;
  color: #fff;
  text-align: left;
  font: 14px Arial, Helvetica, sans-serif;
  cursor: pointer;
}

.filter-row:hover {
  color: var(--cyan);
}

.check-row {
  display: flex;
  align-items: center;
  gap: 7px;
  height: 24px;
  color: #fff;
  font-size: 14px;
}

.check-row input {
  width: 15px;
  height: 15px;
  accent-color: var(--cyan);
}

.results-shell {
  position: fixed;
  left: 264px;
  right: 0;
  top: 194px;
  bottom: 0;
  min-height: 0;
  margin-left: 0;
  padding-top: 0;
  overflow-y: auto;
  background: #000;
}

.results-toolbar {
  position: sticky;
  z-index: 6;
  top: 0;
  min-height: 98px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding: 17px 15px 0 16px;
  background: #000;
}

.results-summary {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px;
  min-width: 0;
}

.results-summary strong {
  font-size: 14px;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 24px;
  border: 0;
  border-radius: 2px;
  padding: 0 8px;
  background: #454545;
  color: #fff;
  font: 14px Arial, Helvetica, sans-serif;
}

.chip span {
  color: var(--cyan);
  font-weight: 800;
}

.view-tools {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  font-size: 14px;
  white-space: nowrap;
}

.view-tools button {
  width: 22px;
  height: 22px;
  border: 0;
  padding: 0;
  background: transparent;
  color: #888;
  cursor: pointer;
}

.view-tools button.active {
  color: var(--cyan);
}

.view-grid {
  background-image:
    linear-gradient(currentColor 0 0),
    linear-gradient(currentColor 0 0),
    linear-gradient(currentColor 0 0),
    linear-gradient(currentColor 0 0);
  background-position: 0 0, 13px 0, 0 13px, 13px 13px;
  background-size: 9px 9px;
  background-repeat: no-repeat;
}

.view-grid.tiny {
  background-position: 0 0, 7px 0, 14px 0, 0 7px, 7px 7px, 14px 7px, 0 14px, 7px 14px, 14px 14px;
  background-size: 5px 5px;
}

.view-square {
  background: currentColor !important;
  border-radius: 2px;
}

.view-list {
  background-image:
    linear-gradient(currentColor 0 0),
    linear-gradient(currentColor 0 0),
    linear-gradient(currentColor 0 0);
  background-position: 0 2px, 0 10px, 0 18px;
  background-size: 22px 3px;
  background-repeat: no-repeat;
}

.view-expand {
  position: relative;
}

.view-expand::before,
.view-expand::after {
  content: "";
  position: absolute;
  inset: 2px;
  border: 4px solid currentColor;
}

.view-expand::before {
  clip-path: polygon(0 0, 45% 0, 45% 20%, 20% 20%, 20% 45%, 0 45%);
}

.view-expand::after {
  clip-path: polygon(55% 0, 100% 0, 100% 45%, 80% 45%, 80% 20%, 55% 20%, 55% 80%, 80% 80%, 80% 55%, 100% 55%, 100% 100%, 55% 100%, 55% 80%, 20% 80%, 20% 100%, 0 100%, 0 55%, 20% 55%, 20% 80%, 45% 80%, 45% 55%, 55% 55%);
}

.view-tools select {
  min-width: 200px;
  height: 30px;
  margin-left: 8px;
  border: 0;
  border-radius: 3px;
  padding: 0 33px 0 10px;
  background: #333;
  color: var(--cyan);
  font: 14px Arial, Helvetica, sans-serif;
}

.shot-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(168px, 1fr));
  grid-auto-flow: row;
  gap: 10px;
  padding: 8px 34px 34px 16px;
}

.empty-results {
  grid-column: 1 / -1;
  min-height: 260px;
  display: grid;
  place-items: center;
  border: 1px solid #242424;
  background: #090909;
  color: #bdbdbd;
  font-size: 16px;
}

.shot-card {
  position: relative;
  aspect-ratio: 350 / 263;
  min-height: 0;
  overflow: hidden;
  background: #111;
  cursor: pointer;
}

.shot-magnifier {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.16s ease;
}

.shot-magnifier svg {
  width: 44px;
  height: 44px;
  padding: 10px;
  border: 2px solid rgba(255,255,255,0.95);
  border-radius: 50%;
  background: rgba(0,0,0,0.42);
  fill: #fff;
}

.shot-card img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transition: transform 0.18s ease, opacity 0.18s ease;
}

.shot-card:hover img,
.shot-card:focus img {
  transform: scale(1.025);
  opacity: 0.82;
}

.shot-card:hover .shot-magnifier,
.shot-card:focus .shot-magnifier {
  opacity: 1;
}

.missing-image {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  padding: 14px;
  background: #151515;
  color: #777;
  text-align: center;
  font-size: 12px;
  line-height: 1.25;
}

.shot-overlay {
  position: absolute;
  inset: auto 0 0;
  display: grid;
  gap: 3px;
  padding: 10px 11px;
  background: linear-gradient(transparent, rgba(0,0,0,0.88));
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.shot-card:hover .shot-overlay,
.shot-card:focus .shot-overlay {
  opacity: 1;
  transform: translateY(0);
}

.shot-overlay strong {
  color: #fff;
  font-size: 12px;
  line-height: 1.1;
  text-transform: uppercase;
}

.shot-overlay p {
  margin: -2px 0 0;
  color: #c7c7c7;
  font-size: 10px;
  line-height: 1.2;
}

.shot-overlay dl {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 3px 12px;
  margin: 0;
  font-size: 12px;
}

.shot-overlay dt {
  color: #aaa;
}

.shot-overlay dd {
  margin: 0;
}

.shot-dialog {
  width: min(1010px, calc(100vw - 14px));
  max-width: none;
  border: 0;
  padding: 0;
  margin: auto;
  background: transparent;
  color: #fff;
  outline: 0;
  overflow: visible;
}

.shot-dialog::backdrop {
  background: #000;
}

.shot-dialog[open] {
  display: block;
  overflow: visible;
}

.shotdeck-modal-content {
  position: relative;
  max-height: calc(100vh - 80px);
  overflow-x: hidden;
  overflow-y: auto;
  background: #000;
  scrollbar-width: none;
}

.shotdeck-modal-content::-webkit-scrollbar {
  display: none;
}

.shotdeck-dialog-header {
  position: sticky;
  top: 0;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 48px;
  padding: 0 14px;
  background: #000;
}

.shotdeck-dialog-header h2 {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin: 0;
  color: var(--cyan);
  font-size: 18px;
  line-height: 1;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.shotdeck-title {
  color: var(--cyan);
  text-decoration: none;
}

.shotdeck-year {
  color: #f2f2f2;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0;
  text-decoration: none;
}

.shotdeck-dialog-tools {
  display: flex;
  align-items: center;
  gap: 13px;
}

.shotdeck-menu-wrap {
  position: relative;
}

.dialog-menu,
.dialog-close {
  width: auto;
  height: auto;
  border: 0;
  padding: 0;
  background: transparent;
  color: #fff;
  font: 900 28px/1 Arial, Helvetica, sans-serif;
  cursor: pointer;
  text-shadow: 0 0 1px #fff;
}

.dialog-menu {
  font-size: 24px;
  transform: translateY(-1px);
}

.shotdeck-menu-popover {
  position: absolute;
  top: calc(100% + 9px);
  right: -8px;
  z-index: 8;
  width: 172px;
  border: 1px solid #4b4b4b;
  border-radius: 2px;
  padding: 7px;
  background: #181818;
  box-shadow: 0 10px 28px rgba(0,0,0,0.7);
}

.shotdeck-menu-popover[hidden] {
  display: none;
}

.shotdeck-menu-popover::before {
  content: "";
  position: absolute;
  top: -7px;
  right: 13px;
  width: 12px;
  height: 12px;
  border-left: 1px solid #4b4b4b;
  border-top: 1px solid #4b4b4b;
  background: #181818;
  transform: rotate(45deg);
}

.shotdeck-menu-item {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 31px;
  border: 0;
  border-radius: 2px;
  padding: 0 10px;
  background: #2c2c2c;
  color: #fff;
  font: 900 12px/1 Arial, Helvetica, sans-serif;
  text-align: left;
  text-transform: uppercase;
  cursor: pointer;
}

.shotdeck-menu-item:hover,
.shotdeck-menu-item:focus {
  background: var(--cyan);
  color: #000;
}

.shotdeck-menu-item.added {
  color: var(--cyan);
}

.shotdeck-menu-count {
  position: relative;
  z-index: 1;
  display: block;
  padding: 7px 2px 0;
  color: #9a9a9a;
  font-size: 10px;
  line-height: 1;
  text-transform: uppercase;
}

.shotdeck-stage {
  position: relative;
  padding: 0 14px 10px;
  border-bottom: 1px solid #555;
}

.full-image-link {
  position: relative;
  display: block;
  color: inherit;
  text-decoration: none;
  cursor: zoom-in;
}

.full-image-link img {
  width: 100%;
  max-height: 430px;
  display: block;
  object-fit: contain;
  background: #000;
}

.full-image-zoom {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  opacity: 0;
  background: rgba(0,0,0,0.16);
  transition: opacity 0.16s ease;
}

.full-image-link:hover .full-image-zoom,
.full-image-link:focus .full-image-zoom {
  opacity: 1;
}

.full-image-zoom svg {
  width: 58px;
  height: 58px;
  padding: 13px;
  border: 2px solid rgba(255,255,255,0.96);
  border-radius: 50%;
  background: rgba(0,0,0,0.42);
  fill: #fff;
}

.dialog-nav {
  position: absolute;
  top: 50%;
  z-index: 4;
  display: block;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  padding: 0;
  background: transparent;
  color: #111;
  font-size: 0;
  cursor: pointer;
  transition: scale 0.16s ease;
}

.dialog-nav::before {
  content: "";
  display: block;
  width: 36px;
  height: 36px;
  background-position: center;
  background-repeat: no-repeat;
  background-size: 36px 36px;
}

.dialog-nav-prev {
  left: -34px;
}

.dialog-nav-prev::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 36 36'%3E%3Ccircle cx='18' cy='18' r='18' fill='white'/%3E%3Cpath d='M21.2 8.9 12.1 18l9.1 9.1 3.2-3.2-5.9-5.9 5.9-5.9z' fill='black'/%3E%3C/svg%3E");
}

.dialog-nav-next {
  right: -34px;
}

.dialog-nav-next::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 36 36'%3E%3Ccircle cx='18' cy='18' r='18' fill='white'/%3E%3Cpath d='M14.8 8.9 23.9 18l-9.1 9.1-3.2-3.2 5.9-5.9-5.9-5.9z' fill='black'/%3E%3C/svg%3E");
}

.dialog-nav:hover {
  scale: 1.08;
}

.shotdeck-details {
  padding: 0 14px 42px;
  background: #000;
}

.palette {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 1fr;
  gap: 0;
  min-height: 50px;
  margin: 10px 0 12px;
  border: 1px solid #e6e6e6;
}

.palette.palette-empty {
  display: none;
}

.palette-swatch {
  height: 48px;
  min-width: 0;
  border: 0;
  border-right: 1px solid rgba(255,255,255,0.72);
  border-radius: 0;
  cursor: pointer;
}

.palette-swatch:last-child {
  border-right: 0;
}

.shotdeck-tags {
  margin: 0;
  padding: 12px 0;
  border-top: 1px solid #2a2a2a;
  border-bottom: 1px solid #2a2a2a;
  color: #a9a9a9;
  font-size: 11px;
  line-height: 1.35;
}

.shotdeck-tags strong {
  color: #fff;
  font-size: 11px;
  text-transform: uppercase;
}

.shotdeck-tags a,
.shotdeck-meta-grid a {
  color: #a7a7a7;
  text-decoration: none;
}

.shotdeck-tags a:hover,
.shotdeck-meta-grid a:hover {
  color: var(--cyan);
}

.shotdeck-meta-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 34px;
  padding: 14px 0 16px;
  border-bottom: 1px solid #262626;
}

.shotdeck-meta-grid dl {
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr);
  align-content: start;
  gap: 7px 8px;
  margin: 0;
  min-width: 0;
  font-size: 11px;
  line-height: 1.2;
}

.shotdeck-meta-grid dt {
  color: #fff;
  font-weight: 900;
  text-transform: uppercase;
}

.shotdeck-meta-grid dd {
  margin: 0;
  min-width: 0;
  color: #a7a7a7;
  overflow-wrap: anywhere;
}

.similar-section {
  padding: 14px 0 34px;
}

.similar-section h3 {
  margin: 0 0 14px;
  color: #fff;
  font-size: 12px;
  line-height: 1;
  font-weight: 900;
  text-transform: uppercase;
}

.similar-section h3 span {
  color: var(--cyan);
}

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

.similar-thumb {
  aspect-ratio: 350 / 146;
  border: 0;
  padding: 0;
  background: #111;
  cursor: pointer;
}

.similar-thumb img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.similar-more {
  display: table;
  margin: 18px auto 0;
  border-radius: 3px;
  padding: 8px 12px;
  background: #777;
  color: #fff;
  font-size: 13px;
  font-weight: 900;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.load-more {
  grid-column: 1 / -1;
  display: grid;
  place-items: center;
  min-height: 76px;
}

.load-more button {
  min-width: 180px;
  height: 36px;
  border: 1px solid #333;
  border-radius: 2px;
  background: #151515;
  color: var(--cyan);
  font: 800 13px Arial, Helvetica, sans-serif;
  text-transform: uppercase;
  cursor: pointer;
}

.load-more button:hover {
  border-color: var(--cyan);
}


.catalog-page {
  overflow-x: hidden;
  overflow-y: auto;
  background: #000;
}

.catalog-shell {
  min-height: 100vh;
  padding: 116px 34px 46px;
  background: #000;
}

.catalog-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 24px;
}

.catalog-toolbar h1 {
  margin: 0;
  color: #fff;
  font-size: 24px;
  line-height: 1.1;
  text-transform: uppercase;
}

.catalog-search input {
  width: min(420px, 42vw);
  height: 36px;
  border: 0;
  border-radius: 2px;
  padding: 0 12px;
  background: #333;
  color: #fff;
  font: 14px Arial, Helvetica, sans-serif;
}

.catalog-action {
  height: 34px;
  display: inline-flex;
  align-items: center;
  border-radius: 2px;
  padding: 0 12px;
  background: #333;
  color: var(--cyan);
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
  text-transform: uppercase;
}

.title-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 14px;
}

.title-card,
.deck-card {
  display: grid;
  overflow: hidden;
  border: 1px solid #222;
  border-radius: 2px;
  background: #0b0b0b;
  color: #fff;
  text-decoration: none;
}

.title-card:hover,
.deck-card:hover {
  border-color: #444;
}

.title-card img {
  width: 100%;
  aspect-ratio: 350 / 263;
  display: block;
  object-fit: cover;
  background: #111;
}

.title-card div,
.deck-card > div:last-child {
  display: grid;
  gap: 4px;
  padding: 10px;
}

.title-card strong,
.deck-card strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 14px;
}

.title-card span,
.deck-card span {
  color: #9a9a9a;
  font-size: 12px;
  text-transform: uppercase;
}

.deck-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}

.deck-preview {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2px;
  background: #050505;
}

.deck-preview img {
  width: 100%;
  aspect-ratio: 350 / 263;
  display: block;
  object-fit: cover;
}

.settings-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
}

.settings-grid article {
  border: 1px solid #222;
  border-radius: 2px;
  padding: 18px;
  background: #0b0b0b;
  color: #fff;
}

.settings-grid h2 {
  margin: 0 0 16px;
  font-size: 15px;
  text-transform: uppercase;
}

.settings-grid dl {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 8px 14px;
  margin: 0;
  font-size: 13px;
}

.settings-grid dt {
  color: #888;
}

.settings-grid dd {
  min-width: 0;
  margin: 0;
  overflow-wrap: anywhere;
}

.setting-row,
.settings-grid article a {
  min-height: 28px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: #dcdcdc;
  font-size: 13px;
  text-decoration: none;
}

.settings-grid article a {
  color: var(--cyan);
}

@media (max-width: 900px) {
  .browse-topbar {
    padding-left: 35px;
  }

  .browse-topbar .brand {
    font-size: 31px;
  }

  .browse-topbar .main-nav {
    gap: 18px;
    font-size: 13px;
    overflow-x: auto;
  }

  .results-toolbar {
    height: 106px;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 10px;
    padding-top: 14px;
  }

  .results-summary {
    gap: 8px;
  }

  .results-summary strong {
    width: 100%;
    white-space: nowrap;
    font-size: 13px;
  }

  .view-tools {
    gap: 9px;
  }

  .view-tools select {
    min-width: 170px;
  }

  .shot-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding-top: 8px;
    padding-right: 14px;
  }

  .shot-card {
    grid-column: span 1 !important;
    min-height: 0 !important;
  }
}

@media (max-width: 700px) {
  .browse-page {
    overflow: auto;
  }

  .filters {
    position: static;
    width: auto;
    margin-top: 72px;
    padding-top: 52px;
    max-height: 280px;
  }

  .side-search {
    position: absolute;
    top: 92px;
    left: 20px;
    width: calc(100% - 40px);
  }

  .results-shell {
    position: static;
    margin-left: 0;
    padding-top: 0;
    overflow: visible;
  }

  .results-toolbar {
    position: static;
    height: auto;
    flex-direction: column;
    padding: 16px 20px;
  }

  .shot-grid {
    grid-template-columns: repeat(6, 1fr);
    padding: 0 20px 30px;
  }

  .shot-card {
    grid-column: span 3 !important;
    min-height: 0 !important;
  }
}

@media (max-width: 640px) {
  .browse-topbar {
    position: sticky;
  }

  .filters {
    margin-top: 0;
  }

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

  .shot-card {
    grid-column: span 1 !important;
    min-height: 0 !important;
  }

  .view-tools {
    flex-wrap: wrap;
  }

  .full-image-link img {
    max-height: none;
  }

  .shotdeck-dialog-header {
    min-height: 42px;
    padding: 0 10px;
  }

  .shotdeck-dialog-header h2 {
    font-size: 15px;
  }

  .shotdeck-stage,
  .shotdeck-details {
    padding-left: 10px;
    padding-right: 10px;
  }

  .palette {
    min-height: 34px;
  }

  .palette-swatch {
    height: 32px;
  }

  .shotdeck-meta-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }

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

/* ── IFRAME EMBED MODE ──
   Quando o palmaref carrega dentro do iframe overlay do palmapost,
   esconde o brand pra não duplicar com o header "palmapost › tools › PalmaRef".
   Reduz altura do topbar pra fit melhor. */
.palmaref-in-iframe .brand {
  display: none !important;
}
/* v1.9: home-link permanece visível no iframe (Eric pediu) */
.palmaref-in-iframe .topbar {
  height: 50px !important;
  padding: 0 20px !important;
  justify-content: flex-end;
}
.palmaref-in-iframe .main-nav {
  gap: 22px;
  font-size: 14px;
}

/* ── BLACK SPACE FIX (v1.5) ──
   .catalog-shell tinha padding-top: 116px (catalog/decks/settings)
   Topbar é 62px → 54px de espaço preto entre nav e conteúdo. Reduzo.
   Em iframe (topbar=50px) reduzo mais ainda. */
.catalog-shell {
  padding-top: 90px !important;  /* 62px topbar + ~28px breathing room */
}
.results-shell {
  top: 154px !important;  /* 62px topbar + ~92px filters/toolbar */
}
.palmaref-in-iframe .catalog-shell {
  padding-top: 70px !important;  /* 50px topbar + 20px */
}
.palmaref-in-iframe .results-shell {
  top: 130px !important;  /* 50px topbar + 80px */
}

/* === PALMAREF FOOTER (v1.7) === */
.palmaref-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 34px;
  background: #050a10;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 12px;
  color: rgba(255, 255, 255, 0.5);
  flex-wrap: wrap;
}
.footer-left {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}
.footer-brand {
  text-decoration: none;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.06em;
}
.footer-brand .brand-shot { color: #fff; }
.footer-brand .brand-deck { color: var(--cyan, #00b7e8); }
.footer-copyright {
  color: rgba(255, 255, 255, 0.4);
}
.footer-right {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}
.footer-nav {
  color: rgba(255, 255, 255, 0.55);
  text-decoration: none;
  font-size: 12px;
  transition: color 0.15s;
}
.footer-nav:hover { color: var(--cyan, #00b7e8); }
.palmaref-in-iframe .palmaref-footer { padding: 14px 20px; }
@media (max-width: 700px) {
  .palmaref-footer { justify-content: center; text-align: center; }
  .footer-left, .footer-right { justify-content: center; }
}

.help-link {
  color: rgba(255, 255, 255, 0.7) !important;
  font-size: 12px !important;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.help-link:hover { color: var(--cyan, #00b7e8) !important; }

/* === WELCOME PAGES (v1.8) === */
.welcome-shell {
  max-width: 820px;
  margin: 0 auto;
}
.welcome-article {
  color: rgba(255, 255, 255, 0.85);
  font-size: 14px;
  line-height: 1.65;
}
.welcome-article h2 {
  color: #fff;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin: 32px 0 12px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  padding-bottom: 10px;
}
.welcome-article h2:first-child { margin-top: 0; }
.welcome-article p { margin: 0 0 12px; }
.welcome-article a { color: var(--cyan, #00b7e8); text-decoration: none; }
.welcome-article a:hover { text-decoration: underline; }

/* === SETTINGS NAV DROPDOWN (v1.8) === */
.settings-nav-wrap {
  position: relative;
  display: inline-block;
}
.settings-nav-popover {
  position: absolute;
  top: 100%;
  right: 0;
  margin-top: 4px;
  min-width: 180px;
  background: #161b22;
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 10px 30px rgba(0,0,0,0.6);
  z-index: 300;
  padding: 4px;
}
.settings-nav-popover a, .settings-nav-popover button {
  display: block;
  width: 100%;
  text-align: left;
  padding: 9px 14px;
  background: transparent;
  border: 0;
  color: #fff !important;
  font: 13px Arial, Helvetica, sans-serif !important;
  text-decoration: none;
  cursor: pointer;
  letter-spacing: 0;
  text-transform: none;
}
.settings-nav-popover a:hover, .settings-nav-popover button:hover {
  background: rgba(0,183,232,0.15);
  color: var(--cyan, #00b7e8) !important;
}
.settings-nav-popover .divider {
  height: 1px;
  background: rgba(255,255,255,0.08);
  margin: 4px 0;
}


/* === REFERENCES SPACING FIX (v1.8 — safe, só compacta o gap) === */
/* Original: .filters top:194px, .results-shell top:194px. Topbar:62px → gap 132px. */
/* Reduzo pra 100px (38px de gap após topbar) — bem compacto sem quebrar position:fixed. */
.browse-page .filters { top: 100px !important; }
.browse-page .results-shell { top: 100px !important; }
.palmaref-in-iframe.browse-page .filters,
.palmaref-in-iframe .browse-page .filters { top: 80px !important; }
.palmaref-in-iframe.browse-page .results-shell,
.palmaref-in-iframe .browse-page .results-shell { top: 80px !important; }

/* === BROWSE SUB-TOPBAR (v1.9 — shotdeck-style) === */
.browse-subtopbar {
  position: fixed;
  top: 62px;
  left: 0;
  right: 0;
  height: 44px;
  z-index: 8;
  background: #0a0d12;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: stretch;
  padding: 0;
  gap: 0;
}
.palmaref-in-iframe .browse-subtopbar { top: 50px; }

.subtop-search {
  display: flex;
  align-items: center;
  width: 244px;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  padding: 0 12px;
  position: relative;
}
.subtop-search input {
  flex: 1;
  background: #1a1a1a;
  border: 0;
  padding: 6px 10px;
  color: #fff;
  font: 12px Arial, Helvetica, sans-serif;
  outline: none;
  height: 28px;
}
.subtop-search input::placeholder { color: rgba(255, 255, 255, 0.4); }
.subtop-search-visual {
  width: 28px;
  height: 28px;
  background: #1a1a1a;
  border: 0;
  border-left: 1px solid #0a0d12;
  color: rgba(255, 255, 255, 0.55);
  cursor: pointer;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.subtop-search-visual svg { width: 14px; height: 14px; fill: currentColor; }
.subtop-search-visual:hover { color: var(--cyan, #00b7e8); }

.subtop-summary {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 18px;
  min-width: 0;
  overflow: hidden;
}
.subtop-summary strong {
  color: #fff;
  font: 700 13px Arial, Helvetica, sans-serif;
  white-space: nowrap;
}
.subtop-summary .chips {
  display: flex;
  flex-wrap: nowrap;
  gap: 6px;
  overflow: hidden;
}

.subtop-tools {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 0 16px;
}
.view-tools {
  display: flex;
  gap: 2px;
}
.view-btn {
  width: 30px;
  height: 30px;
  padding: 0;
  background: transparent;
  border: 0;
  color: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 2px;
}
.view-btn svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}
.view-btn:hover { color: #fff; background: rgba(255, 255, 255, 0.06); }
.view-btn.is-active { color: var(--cyan, #00b7e8); }
.subtop-sort {
  color: rgba(255, 255, 255, 0.6);
  font-size: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.subtop-sort select {
  background: #1a1a1a;
  border: 0;
  color: var(--cyan, #00b7e8);
  padding: 5px 8px;
  font: 700 12px Arial, Helvetica, sans-serif;
  outline: none;
  cursor: pointer;
}

/* Reposicionar .filters e .results-shell pra ficar abaixo da sub-topbar */
.browse-page .filters {
  top: 106px !important;  /* 62 (nav) + 44 (subtopbar) */
  left: 0 !important;
  width: 244px !important;
  padding: 14px 12px 0 16px !important;
  background: #050a10 !important;
  border-right: 1px solid rgba(255, 255, 255, 0.06);
}
.browse-page .results-shell {
  top: 106px !important;
  left: 244px !important;
  right: 0 !important;
  bottom: 0 !important;
}
.palmaref-in-iframe .browse-page .filters,
.palmaref-in-iframe.browse-page .filters { top: 94px !important; }
.palmaref-in-iframe .browse-page .results-shell,
.palmaref-in-iframe.browse-page .results-shell { top: 94px !important; }

/* Filter title estilo shotdeck */
.browse-page .filter-title {
  margin-bottom: 12px;
  padding-bottom: 8px;
}
.browse-page .filter-title strong {
  color: rgba(255, 255, 255, 0.6);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.1em;
}
.browse-page .filter-title button {
  color: var(--cyan, #00b7e8);
  font-size: 11px;
  background: transparent;
  border: 0;
  cursor: pointer;
}

/* Esconder o results-toolbar antigo (estamos usando sub-topbar fixa agora) */
.browse-page .results-toolbar { display: none; }

/* Shot grid: sem padding extra, layout justified */
.browse-page .shot-grid {
  padding: 4px;
  gap: 4px;
}

@media (max-width: 900px) {
  .browse-subtopbar { flex-wrap: wrap; height: auto; }
  .subtop-search, .subtop-summary, .subtop-tools { width: 100%; padding: 6px 12px; border-right: 0; }
  .subtop-summary { border-bottom: 1px solid rgba(255,255,255,0.06); }
}
