:root {
  --bg: #07060d;
  --bg-soft: #0e0c1a;
  --panel: rgba(20, 16, 38, .55);
  --stroke: rgba(150, 120, 255, .18);
  --text: #ece9ff;
  --muted: #9a93c4;
  --neon: #a06bff;
  --neon-2: #ff5fc8;
  --glow: 0 0 24px rgba(160, 107, 255, .55);
  --radius: 18px;
  --font: 'Segoe UI', system-ui, -apple-system, sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0
}

html {
  scroll-behavior: smooth
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden
}

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

/* ======= Animated side ornaments - enhanced with geometric patterns ======= */
body::before,
body::after {
  content: '';
  position: fixed;
  top: 0;
  bottom: 0;
  width: 320px;
  z-index: 1;
  pointer-events: none;
  opacity: .42;
}

body::before {
  left: 0;
  background:
    repeating-linear-gradient(45deg, transparent 0, transparent 30px, rgba(160, 107, 255, .08) 30px, rgba(160, 107, 255, .08) 32px),
    repeating-linear-gradient(-45deg, transparent 0, transparent 25px, rgba(255, 95, 200, .06) 25px, rgba(255, 95, 200, .06) 27px),
    repeating-linear-gradient(180deg, transparent 0, transparent 35px, rgba(160, 107, 255, .1) 35px, rgba(160, 107, 255, .1) 37px),
    radial-gradient(ellipse at 20% 40%, rgba(160, 107, 255, .25), transparent 60%),
    radial-gradient(ellipse at 30% 70%, rgba(255, 95, 200, .18), transparent 50%),
    linear-gradient(180deg,
      rgba(122, 79, 255, .0) 0%,
      rgba(160, 107, 255, .2) 15%,
      rgba(255, 95, 200, .15) 35%,
      rgba(160, 107, 255, .12) 55%,
      rgba(122, 79, 255, .22) 75%,
      rgba(255, 95, 200, .1) 90%,
      rgba(160, 107, 255, .0) 100%);
  mask-image: linear-gradient(90deg, rgba(0, 0, 0, .85) 0%, rgba(0, 0, 0, .5) 60%, transparent 100%);
  -webkit-mask-image: linear-gradient(90deg, rgba(0, 0, 0, .85) 0%, rgba(0, 0, 0, .5) 60%, transparent 100%);
  animation: sideShimmerLeft 12s ease-in-out infinite alternate;
  filter: blur(1px);
}

body::after {
  right: 0;
  background:
    repeating-linear-gradient(45deg, transparent 0, transparent 40px, rgba(255, 95, 200, .07) 40px, rgba(255, 95, 200, .07) 42px),
    repeating-linear-gradient(-45deg, transparent 0, transparent 35px, rgba(160, 107, 255, .08) 35px, rgba(160, 107, 255, .08) 37px),
    repeating-linear-gradient(180deg, transparent 0, transparent 45px, rgba(255, 95, 200, .09) 45px, rgba(255, 95, 200, .09) 47px),
    radial-gradient(ellipse at 80% 30%, rgba(255, 95, 200, .22), transparent 55%),
    radial-gradient(ellipse at 70% 65%, rgba(160, 107, 255, .2), transparent 50%),
    linear-gradient(180deg,
      rgba(255, 95, 200, .0) 0%,
      rgba(255, 95, 200, .18) 20%,
      rgba(160, 107, 255, .2) 40%,
      rgba(255, 95, 200, .14) 60%,
      rgba(160, 107, 255, .16) 80%,
      rgba(255, 95, 200, .0) 100%);
  mask-image: linear-gradient(-90deg, rgba(0, 0, 0, .85) 0%, rgba(0, 0, 0, .5) 60%, transparent 100%);
  -webkit-mask-image: linear-gradient(-90deg, rgba(0, 0, 0, .85) 0%, rgba(0, 0, 0, .5) 60%, transparent 100%);
  animation: sideShimmerRight 15s ease-in-out infinite alternate;
  filter: blur(1px);
}

@keyframes sideShimmerLeft {
  0% {
    background-position: 0 0, 0 0, 0 0, 0 0, 0 0, 0 0;
    opacity: .35
  }

  33% {
    opacity: .5
  }

  66% {
    opacity: .42
  }

  100% {
    background-position: 0 150px, 0 -100px, 0 80px, 0 60px, 0 -40px, 0 0;
    opacity: .38
  }
}

@keyframes sideShimmerRight {
  0% {
    background-position: 0 80px, 0 40px, 0 60px, 0 0, 0 20px, 0 0;
    opacity: .4
  }

  33% {
    opacity: .52
  }

  66% {
    opacity: .45
  }

  100% {
    background-position: 0 -120px, 0 180px, 0 -90px, 0 70px, 0 -50px, 0 0;
    opacity: .38
  }
}

/* Floating orbs behind content */
.page-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.page-bg__orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  opacity: .18;
  animation: orbFloat 20s ease-in-out infinite alternate;
}

.page-bg__orb--1 {
  width: 600px;
  height: 600px;
  top: -10%;
  left: -5%;
  background: var(--neon);
  animation-duration: 22s
}

.page-bg__orb--2 {
  width: 500px;
  height: 500px;
  bottom: -10%;
  right: -8%;
  background: var(--neon-2);
  animation-duration: 18s;
  animation-delay: -6s
}

.page-bg__orb--3 {
  width: 400px;
  height: 400px;
  top: 40%;
  left: 50%;
  background: #7a4fff;
  animation-duration: 25s;
  animation-delay: -12s
}

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

  33% {
    transform: translate(30px, -40px) scale(1.1)
  }

  66% {
    transform: translate(-20px, 30px) scale(.95)
  }

  100% {
    transform: translate(10px, -20px) scale(1.05)
  }
}

/* ======= Intro splash ======= */
.intro {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  background: radial-gradient(circle at 50% 50%, #140d2b 0, #05040a 70%);
  animation: introOut .9s ease 2.4s forwards
}

.intro__logo {
  text-align: center;
  animation: introIn 1.2s cubic-bezier(.2, .8, .2, 1) both
}

.intro__moon {
  display: block;
  width: 74px;
  height: 74px;
  margin: 0 auto 18px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #fff 0, #c9b6ff 30%, #7a4fff 75%);
  box-shadow: 0 0 40px rgba(160, 107, 255, .8), inset -10px -10px 20px rgba(60, 20, 120, .7);
  animation: floaty 3s ease-in-out infinite
}

.intro__title {
  font-size: clamp(34px, 8vw, 64px);
  letter-spacing: 6px;
  font-weight: 800;
  background: linear-gradient(90deg, var(--neon), var(--neon-2));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  filter: drop-shadow(0 0 18px rgba(160, 107, 255, .45));
  white-space: nowrap
}

.intro__title span {
  font-weight: 300;
  opacity: .9
}

.intro__tagline {
  margin-top: 8px;
  color: var(--muted);
  letter-spacing: 4px;
  text-transform: uppercase;
  font-size: 12px
}

@keyframes introIn {
  0% {
    opacity: 0;
    transform: translateY(20px) scale(.96);
    filter: blur(8px)
  }

  100% {
    opacity: 1;
    transform: none;
    filter: none
  }
}

@keyframes introOut {
  to {
    opacity: 0;
    visibility: hidden;
    transform: scale(1.08)
  }
}

@keyframes floaty {

  0%,
  100% {
    transform: translateY(0)
  }

  50% {
    transform: translateY(-8px)
  }
}

/* ======= Header (centered, wide-screen friendly) ======= */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  flex-wrap: wrap;
  padding: 14px 32px;
  max-width: 1800px;
  margin: 0 auto;
  background: transparent;
}

/* Make header a floating rounded glassmorphic panel */
.header-wrap {
  position: sticky;
  top: 16px;
  z-index: 100;
  margin: 16px 32px 0;
  background: rgba(14, 12, 26, .7);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border: 1px solid rgba(160, 107, 255, .22);
  border-radius: 24px;
  box-shadow:
    0 12px 40px rgba(0, 0, 0, .6),
    inset 0 1px 0 rgba(255, 255, 255, .05);
  transition: all .3s ease;
}

.header-wrap .header {
  position: relative;
  background: none;
  backdrop-filter: none;
  border-bottom: none;
}

.header__brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  letter-spacing: 2px;
  flex-shrink: 0;
  white-space: nowrap
}

.header__moon {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #fff, #7a4fff);
  box-shadow:
    0 0 20px rgba(160, 107, 255, .6),
    0 4px 12px rgba(160, 107, 255, .4);
}

.header__name b {
  font-weight: 300;
  opacity: .8;
  color: var(--text)
}

.header__search-container {
  position: relative;
  flex: 1;
  max-width: 480px;
  min-width: 260px;
  z-index: 10;
}

.search-box {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
  background: rgba(20, 16, 38, .65);
  backdrop-filter: blur(12px) saturate(150%);
  -webkit-backdrop-filter: blur(12px) saturate(150%);
  border: 1px solid rgba(160, 107, 255, .25);
  border-radius: 999px;
  padding: 0 16px;
  height: 40px;
  transition: all .3s cubic-bezier(.4, 0, .2, 1);
  box-shadow:
    0 4px 12px rgba(0, 0, 0, .2),
    inset 0 1px 0 rgba(255, 255, 255, .05);
}

.search-box:focus-within,
.search-box:hover {
  border-color: rgba(160, 107, 255, .6);
  background: rgba(20, 16, 38, .85);
  box-shadow:
    0 6px 20px rgba(160, 107, 255, .25),
    inset 0 1px 0 rgba(255, 255, 255, .08);
}

.search-icon {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: var(--muted);
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  margin-right: 10px;
  transition: stroke .3s;
}

.search-box:focus-within .search-icon {
  stroke: var(--neon);
}

#searchInput {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: var(--text);
  font-family: var(--font);
  font-size: 14px;
  width: 100%;
}

#searchInput::placeholder {
  color: var(--muted);
  opacity: .8;
}

.search-clear-btn {
  background: transparent;
  border: none;
  outline: none;
  color: var(--muted);
  font-size: 20px;
  cursor: pointer;
  padding: 0 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color .2s;
}

.search-clear-btn:hover {
  color: var(--neon-2);
}

.search-suggestions {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  background: rgba(14, 12, 26, .95);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid rgba(160, 107, 255, .25);
  border-radius: 16px;
  max-height: 280px;
  overflow-y: auto;
  z-index: 99;
  box-shadow:
    0 12px 36px rgba(0, 0, 0, .5),
    0 0 20px rgba(160, 107, 255, .1);
  opacity: 0;
  transform: translateY(-8px);
  pointer-events: none;
  transition: opacity .2s ease, transform .2s ease;
}

.search-suggestions.is-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.suggestion-item {
  padding: 10px 16px;
  font-size: 13.5px;
  color: var(--muted);
  cursor: pointer;
  transition: all .2s;
  display: flex;
  align-items: center;
  gap: 8px;
}

.suggestion-item:first-child {
  border-top-left-radius: 15px;
  border-top-right-radius: 15px;
}

.suggestion-item:last-child {
  border-bottom-left-radius: 15px;
  border-bottom-right-radius: 15px;
}

.suggestion-item:hover,
.suggestion-item.is-selected {
  background: rgba(160, 107, 255, .15);
  color: #fff;
}

.suggestion-item strong {
  color: var(--neon);
  font-weight: 600;
}

.suggestion-ru {
  font-size: 11px;
  color: var(--muted);
  opacity: .65;
  margin-left: auto;
}

.search-suggestions::-webkit-scrollbar {
  width: 6px;
}

.search-suggestions::-webkit-scrollbar-track {
  background: transparent;
}

.search-suggestions::-webkit-scrollbar-thumb {
  background: rgba(160, 107, 255, .3);
  border-radius: 99px;
}

.search-suggestions::-webkit-scrollbar-thumb:hover {
  background: rgba(160, 107, 255, .5);
}

.header__traffic {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--muted);
  background: rgba(20, 16, 38, .65);
  backdrop-filter: blur(12px) saturate(150%);
  -webkit-backdrop-filter: blur(12px) saturate(150%);
  border: 1px solid rgba(160, 107, 255, .2);
  padding: 8px 14px;
  border-radius: 999px;
  flex-shrink: 0;
  box-shadow:
    0 4px 12px rgba(0, 0, 0, .2),
    inset 0 1px 0 rgba(255, 255, 255, .05);
}

.header__traffic-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--neon-2);
  box-shadow: 0 0 10px var(--neon-2);
  animation: pulse 1.4s infinite
}

@keyframes pulse {

  0%,
  100% {
    opacity: 1
  }

  50% {
    opacity: .3
  }
}

/* ======= Hero ======= */
.hero {
  text-align: center;
  padding: 54px 20px 26px;
  position: relative;
  z-index: 2;
  max-width: 1200px;
  margin: 0 auto;
}

.hero__title {
  font-size: clamp(26px, 5vw, 46px);
  font-weight: 800;
  letter-spacing: 1px;
  text-shadow: 0 2px 20px rgba(160, 107, 255, .4);
}

.hero__title span {
  background: linear-gradient(135deg, var(--neon), var(--neon-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: none;
  filter: drop-shadow(0 2px 8px rgba(160, 107, 255, .5));
}

.hero__sub {
  margin-top: 10px;
  color: var(--muted);
  font-size: clamp(14px, 2vw, 16px);
}

/* ======= Gallery (grid layout to prevent reordering) ======= */
.gallery {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 22px 32px;
  max-width: 1600px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.gallery-col {
  flex: 1 1 0;
  width: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-width: 0;
}

.card {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  background: transparent;
  border: none;
  cursor: pointer;
  opacity: 0;
  transform: translateY(16px);
  transition: transform .35s ease, box-shadow .35s ease, opacity .5s ease;
  display: flex;
  flex-direction: column;
}

.card.is-in {
  opacity: 1;
  transform: none
}

.card img {
  display: block;
  width: 100%;
  height: auto;
  transition: transform .35s ease, filter 0.3s ease;
  background: #15102a;
}

.card--nsfw img {
  filter: blur(4px);
}

.card--nsfw:hover img {
  filter: blur(0);
}

.card__badge {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 5;
  padding: 4px 10px;
  font-size: 11px;
  font-weight: 800;
  border-radius: 6px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.card__badge--nsfw {
  background: rgba(255, 95, 200, 0.25);
  backdrop-filter: blur(12px) saturate(160%);
  -webkit-backdrop-filter: blur(12px) saturate(160%);
  color: #ffbbf0;
  border: 1px solid rgba(255, 95, 200, 0.45);
  box-shadow:
    0 4px 12px rgba(255, 95, 200, 0.25),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  text-shadow: 0 0 8px rgba(255, 95, 200, 0.6);
}

.card:hover {
  box-shadow: 0 16px 48px rgba(160, 107, 255, .35);
  transform: translateY(-4px);
}

.card:hover img {
  transform: scale(1.03)
}

.card__overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 8px;
  padding: 14px;
  opacity: 0;
  transition: .3s;
  background: linear-gradient(0deg, rgba(5, 4, 12, .92), transparent 60%);
}

.card:hover .card__overlay {
  opacity: 1
}

.card__res {
  font-size: 12px;
  color: #fff;
  background: rgba(160, 107, 255, .35);
  backdrop-filter: blur(8px) saturate(150%);
  -webkit-backdrop-filter: blur(8px) saturate(150%);
  border: 1px solid rgba(160, 107, 255, .3);
  padding: 4px 10px;
  border-radius: 999px;
  align-self: flex-end;
  box-shadow:
    0 4px 12px rgba(160, 107, 255, .2),
    inset 0 1px 0 rgba(255, 255, 255, .1);
}

.card__actions {
  display: flex;
  gap: 8px;
  transform: translateY(8px);
  transition: transform .3s ease
}

.card:hover .card__actions {
  transform: none
}

.card__btn {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  border: 1px solid rgba(160, 107, 255, .3);
  background: rgba(20, 16, 38, .75);
  backdrop-filter: blur(12px) saturate(150%);
  -webkit-backdrop-filter: blur(12px) saturate(150%);
  color: #fff;
  cursor: pointer;
  transition: .2s;
  font-size: 16px;
  box-shadow:
    0 4px 12px rgba(0, 0, 0, .3),
    inset 0 1px 0 rgba(255, 255, 255, .08);
}

.card__btn:hover {
  background: linear-gradient(135deg, rgba(160, 107, 255, .9), rgba(255, 95, 200, .85));
  border-color: rgba(255, 255, 255, .3);
  box-shadow:
    0 6px 20px rgba(160, 107, 255, .5),
    inset 0 1px 0 rgba(255, 255, 255, .15);
  transform: translateY(-2px);
}

.card__btn svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round
}

/* ======= Skeleton loading cards ======= */
.skeleton-card {
  position: relative;
  background: rgba(14, 12, 26, .95);
  border-radius: var(--radius);
  border: 1px solid rgba(160, 107, 255, .15);
  opacity: 1;
  min-height: 320px;
}

@keyframes skeleton-pulse {

  0%,
  100% {
    background: rgba(14, 12, 26, .95);
    border-color: rgba(160, 107, 255, .15);
  }

  50% {
    background: rgba(20, 16, 38, .95);
    border-color: rgba(160, 107, 255, .25);
  }
}

.skeleton-container {
  display: contents;
}

/* ======= Load More Button ======= */
.load-more-wrap {
  text-align: center;
  padding: 40px 20px;
  position: relative;
  z-index: 2;
}

.load-more-btn {
  padding: 16px 48px;
  font-size: 16px;
  font-weight: 600;
  border-radius: 999px;
  border: 1px solid rgba(160, 107, 255, .3);
  background: linear-gradient(135deg, rgba(160, 107, 255, .9), rgba(255, 95, 200, .85));
  backdrop-filter: blur(12px) saturate(150%);
  -webkit-backdrop-filter: blur(12px) saturate(150%);
  color: #fff;
  cursor: pointer;
  transition: .3s;
  box-shadow:
    0 8px 32px rgba(160, 107, 255, .4),
    inset 0 1px 0 rgba(255, 255, 255, .2);
  font-family: var(--font);
}

.load-more-btn:hover:not(:disabled) {
  box-shadow:
    0 12px 40px rgba(160, 107, 255, .6),
    0 0 60px rgba(255, 95, 200, .3),
    inset 0 1px 0 rgba(255, 255, 255, .25);
  transform: translateY(-3px);
  border-color: rgba(255, 255, 255, .4);
}

.load-more-btn:disabled {
  opacity: .6;
  cursor: wait;
}

/* ======= Loader & sentinel ======= */
[hidden] {
  display: none !important
}

.loader {
  display: flex;
  gap: 8px;
  justify-content: center;
  padding: 30px;
  position: relative;
  z-index: 2
}

.loader span {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--neon);
  animation: bounce .9s infinite ease-in-out
}

.loader span:nth-child(2) {
  animation-delay: .15s;
  background: var(--neon-2)
}

.loader span:nth-child(3) {
  animation-delay: .3s
}

@keyframes bounce {

  0%,
  100% {
    transform: translateY(0);
    opacity: .4
  }

  50% {
    transform: translateY(-12px);
    opacity: 1
  }
}

/* ======= Lightbox ======= */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  background: rgba(4, 3, 10, .95);
  backdrop-filter: blur(24px) saturate(120%);
  -webkit-backdrop-filter: blur(24px) saturate(120%);
  animation: fade .3s ease;
  overflow: hidden;
}

.lightbox__stage {
  width: 100vw;
  height: 100vh;
  display: grid;
  place-items: center;
  overflow: hidden;
  cursor: grab
}

.lightbox__stage.is-grabbing {
  cursor: grabbing
}

.lightbox__img {
  max-width: 92vw;
  max-height: 86vh;
  border-radius: 14px;
  box-shadow: 0 0 60px rgba(160, 107, 255, .4);
  border: 1px solid var(--stroke);
  transform: translate(0, 0) scale(1);
  transition: transform .12s ease-out;
  will-change: transform;
  user-select: none
}

.lightbox__close {
  position: absolute;
  top: 20px;
  right: 26px;
  font-size: 34px;
  background: rgba(20, 16, 38, .8);
  backdrop-filter: blur(16px) saturate(150%);
  -webkit-backdrop-filter: blur(16px) saturate(150%);
  border: 1px solid rgba(160, 107, 255, .3);
  border-radius: 12px;
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  color: #fff;
  cursor: pointer;
  line-height: 1;
  z-index: 3;
  transition: .2s;
  box-shadow:
    0 4px 16px rgba(0, 0, 0, .3),
    inset 0 1px 0 rgba(255, 255, 255, .1);
}

.lightbox__close:hover {
  background: rgba(160, 107, 255, .4);
  border-color: rgba(160, 107, 255, .5);
  box-shadow:
    0 6px 20px rgba(160, 107, 255, .4),
    inset 0 1px 0 rgba(255, 255, 255, .15);
}

.lightbox__zoom {
  position: absolute;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
  background: rgba(20, 16, 38, .75);
  backdrop-filter: blur(16px) saturate(150%);
  -webkit-backdrop-filter: blur(16px) saturate(150%);
  border: 1px solid rgba(160, 107, 255, .25);
  padding: 6px;
  border-radius: 999px;
  z-index: 3;
  box-shadow:
    0 8px 32px rgba(0, 0, 0, .4),
    inset 0 1px 0 rgba(255, 255, 255, .08);
}

.lightbox__zoom button {
  min-width: 42px;
  height: 34px;
  border: none;
  border-radius: 999px;
  background: transparent;
  color: #fff;
  cursor: pointer;
  font-size: 16px;
  font-weight: 600;
  transition: .2s;
}

.lightbox__zoom button:hover {
  background: rgba(160, 107, 255, .4);
  box-shadow: 0 4px 12px rgba(160, 107, 255, .3);
}

.lightbox__bar {
  position: absolute;
  bottom: 26px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 16px;
  align-items: center;
  background: rgba(20, 16, 38, .75);
  backdrop-filter: blur(16px) saturate(150%);
  -webkit-backdrop-filter: blur(16px) saturate(150%);
  border: 1px solid rgba(160, 107, 255, .25);
  padding: 6px 6px 6px 18px;
  border-radius: 999px;
  z-index: 5;
  box-shadow:
    0 8px 32px rgba(0, 0, 0, .4),
    inset 0 1px 0 rgba(255, 255, 255, .08);
  max-width: calc(100% - 32px);
}

.lightbox__dl {
  background: linear-gradient(135deg, rgba(160, 107, 255, .9), rgba(255, 95, 200, .85));
  padding: 8px 20px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 14px;
  border: 1px solid rgba(255, 255, 255, .2);
  color: #fff;
  cursor: pointer;
  box-shadow:
    0 4px 16px rgba(160, 107, 255, .4),
    inset 0 1px 0 rgba(255, 255, 255, .15);
  transition: .2s;
  white-space: nowrap;
}

.lightbox__dl:hover {
  box-shadow:
    0 6px 24px rgba(160, 107, 255, .6),
    inset 0 1px 0 rgba(255, 255, 255, .2);
  transform: translateY(-1px);
}

.lightbox__dl:disabled {
  opacity: .6;
  cursor: wait;
}

#lbMeta {
  font-size: 13px;
  color: #fff;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
  white-space: nowrap;
}

@keyframes fade {
  from {
    opacity: 0
  }

  to {
    opacity: 1
  }
}

/* ======= Footer ======= */
.footer {
  text-align: center;
  padding: 40px 20px;
  color: var(--muted);
  font-size: 13px;
  border-top: 1px solid var(--stroke);
  margin-top: 30px;
  position: relative;
  z-index: 2
}

.footer a {
  color: var(--neon)
}

/* ======= Header filters dropdowns & switches ======= */
.header__filters-dropdowns {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.filter-dropdown {
  position: relative;
}

.filter-dropdown__btn {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(20, 16, 38, 0.65);
  backdrop-filter: blur(12px) saturate(150%);
  -webkit-backdrop-filter: blur(12px) saturate(150%);
  border: 1px solid rgba(160, 107, 255, 0.2);
  color: var(--muted);
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 13px;
  font-family: var(--font);
  cursor: pointer;
  transition: all 0.25s;
  box-shadow:
    0 4px 12px rgba(0, 0, 0, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.filter-dropdown__btn:hover,
.filter-dropdown.is-open .filter-dropdown__btn {
  color: var(--text);
  border-color: rgba(160, 107, 255, 0.5);
  background: rgba(20, 16, 38, 0.85);
  box-shadow:
    0 6px 20px rgba(160, 107, 255, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.filter-dropdown__value {
  color: var(--neon);
  font-weight: 600;
}

.dropdown-chevron {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 0.2s;
}

.filter-dropdown.is-open .dropdown-chevron {
  transform: rotate(180deg);
}

.filter-dropdown__menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 160px;
  background: rgba(14, 12, 26, 0.95);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid rgba(160, 107, 255, 0.25);
  border-radius: 14px;
  padding: 6px 0;
  z-index: 101;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.4);
  opacity: 0;
  transform: translateY(-8px);
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.filter-dropdown.is-open .filter-dropdown__menu {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.filter-dropdown__item {
  padding: 8px 16px;
  font-size: 13px;
  color: var(--muted);
  cursor: pointer;
  transition: all 0.2s;
}

.filter-dropdown__item:hover {
  background: rgba(160, 107, 255, 0.15);
  color: #fff;
}

.filter-dropdown__item.is-active {
  color: #fff;
  background: rgba(160, 107, 255, 0.25);
  font-weight: 600;
}

.filter-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(20, 16, 38, 0.65);
  backdrop-filter: blur(12px) saturate(150%);
  -webkit-backdrop-filter: blur(12px) saturate(150%);
  border: 1px solid rgba(160, 107, 255, 0.2);
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 13px;
  box-shadow:
    0 4px 12px rgba(0, 0, 0, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.filter-toggle__label {
  color: var(--muted);
  font-weight: 600;
  transition: color 0.25s;
}

.filter-toggle.is-active .filter-toggle__label {
  color: var(--neon-2);
}

.switch {
  position: relative;
  display: inline-block;
  width: 34px;
  height: 20px;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(255, 255, 255, 0.1);
  transition: .3s;
  border-radius: 34px;
  border: 1px solid rgba(160, 107, 255, 0.2);
}

.slider:before {
  position: absolute;
  content: "";
  height: 12px;
  width: 12px;
  left: 3px;
  bottom: 3px;
  background-color: var(--muted);
  transition: .3s;
  border-radius: 50%;
}

input:checked+.slider {
  background-color: rgba(255, 95, 200, 0.2);
  border-color: var(--neon-2);
}

input:checked+.slider:before {
  transform: translateX(14px);
  background-color: var(--neon-2);
  box-shadow: 0 0 8px var(--neon-2);
}

.header__mobile-filters-btn {
  display: none;
  align-items: center;
  gap: 8px;
  background: rgba(20, 16, 38, 0.65);
  backdrop-filter: blur(12px) saturate(150%);
  -webkit-backdrop-filter: blur(12px) saturate(150%);
  border: 1px solid rgba(160, 107, 255, 0.2);
  color: var(--muted);
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 13px;
  font-family: var(--font);
  cursor: pointer;
  transition: all 0.25s;
  box-shadow:
    0 4px 12px rgba(0, 0, 0, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.header__mobile-filters-btn:hover,
.header__mobile-filters-btn.is-active {
  color: var(--text);
  border-color: rgba(160, 107, 255, 0.5);
  background: rgba(20, 16, 38, 0.85);
  box-shadow:
    0 6px 20px rgba(160, 107, 255, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.header__mobile-filters-btn svg {
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.header__mobile-filters-btn.is-active svg {
  transform: rotate(90deg);
  stroke: var(--neon);
}

/* ======= Lightbox Container & Sidebar (Desktop) ======= */
.lightbox__container {
  display: flex;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
}

.lightbox__main {
  flex: 1;
  height: 100%;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  overflow: hidden;
}

.lightbox__stage {
  flex: 1;
  width: 100%;
  display: grid;
  place-items: center;
  overflow: hidden;
  cursor: grab;
}

.lightbox__stage.is-grabbing {
  cursor: grabbing;
}

.lightbox__sidebar {
  width: 360px;
  height: 100%;
  background: rgba(14, 12, 26, 0.75);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border-left: 1px solid rgba(160, 107, 255, 0.2);
  display: flex;
  flex-direction: column;
  z-index: 10;
  box-shadow: -10px 0 30px rgba(0, 0, 0, 0.5);
  flex-shrink: 0;
}

.lightbox__sidebar-content {
  padding: 24px;
  overflow-y: auto;
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.sidebar-section-title {
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  letter-spacing: 1px;
  text-transform: uppercase;
  border-left: 3px solid var(--neon);
  padding-left: 10px;
  margin-bottom: 8px;
}

/* Sidebar tags */
.lightbox__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.sidebar-tag-btn {
  background: rgba(160, 107, 255, 0.12);
  border: 1px solid rgba(160, 107, 255, 0.25);
  color: var(--muted);
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 12px;
  font-family: var(--font);
  cursor: pointer;
  transition: all 0.2s ease;
}

.sidebar-tag-btn:hover {
  background: rgba(160, 107, 255, 0.25);
  border-color: rgba(160, 107, 255, 0.5);
  color: #fff;
  transform: translateY(-1px);
}

/* Sidebar Recommendations */
.rec-grid {
  column-count: 2;
  column-gap: 10px;
  display: block;
}

.rec-thumb {
  width: 100%;
  height: auto;
  aspect-ratio: auto;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid rgba(160, 107, 255, 0.15);
  cursor: pointer;
  transition: all 0.25s ease;
  background: #15102a;
  display: block;
  margin-bottom: 10px;
  break-inside: avoid;
}

.rec-thumb:hover {
  transform: translateY(-2px);
  border-color: var(--neon);
  box-shadow: 0 4px 12px rgba(160, 107, 255, 0.3);
}

/* Skeletons */
.sidebar-skeleton {
  height: 24px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 6px;
  margin-bottom: 8px;
  animation: sidebar-skeleton-pulse 1.2s ease-in-out infinite;
}

.rec-grid-skeleton {
  column-count: 2;
  column-gap: 10px;
  display: block;
}

.sidebar-rec-skeleton {
  width: 100%;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  animation: sidebar-skeleton-pulse 1.2s ease-in-out infinite;
  display: block;
  margin-bottom: 10px;
  break-inside: avoid;
}

.sidebar-rec-skeleton:nth-child(odd) {
  height: 140px;
}

.sidebar-rec-skeleton:nth-child(even) {
  height: 90px;
}

.sidebar-rec-skeleton:nth-child(3n) {
  height: 170px;
}

@keyframes sidebar-skeleton-pulse {

  0%,
  100% {
    opacity: 0.5;
  }

  50% {
    opacity: 0.8;
  }
}

/* Error/Notice styles */
.sidebar-error {
  font-size: 12.5px;
  color: var(--muted);
  opacity: 0.8;
  font-style: italic;
}



/* ======= Responsive ======= */
@media(max-width: 1023px) {

  body::before,
  body::after {
    display: none !important;
  }
}

@media(max-width: 900px) {
  .header-wrap {
    margin: 12px 16px 0 !important;
    border-radius: 18px;
    width: auto !important;
    transform: none !important;
    margin-bottom: 0 !important;
  }

  .header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 16px;
  }

  .header__brand {
    order: 1;
  }

  .header__traffic {
    order: 2;
    margin-left: 0;
  }

  .header__search-container {
    order: 3;
    flex: 1;
    min-width: 200px;
    max-width: 100%;
  }

  .header__mobile-filters-btn {
    display: flex;
    order: 4;
    height: 40px;
    align-self: center;
  }

  .header__filters-dropdowns {
    order: 5;
    width: 100%;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    pointer-events: none;
    transition: max-height 0.35s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.25s ease, margin 0.25s ease;

    /* 2x2 grid for mobile filters! */
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;

    background: rgba(14, 12, 26, 0.85);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-radius: 18px;
    border: 1px solid rgba(160, 107, 255, 0.15);
    padding: 0 16px;
    box-shadow:
      0 12px 36px rgba(0, 0, 0, 0.4),
      inset 0 1px 0 rgba(255, 255, 255, 0.03);
    margin-top: 0;
  }

  .header__filters-dropdowns.is-open {
    max-height: 500px;
    opacity: 1;
    pointer-events: auto;
    padding: 16px;
    margin-top: 4px;
    overflow: visible;
  }

  .filter-dropdown {
    width: 100%;
    position: relative;
  }

  .filter-dropdown__btn {
    width: 100%;
    justify-content: space-between;
    height: 42px;
    padding: 0 18px;
  }

  .filter-dropdown__menu {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    width: 100%;
    z-index: 120;
    background: rgba(14, 12, 26, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(160, 107, 255, 0.25);
    border-radius: 14px;
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.5);
    opacity: 1;
    transform: none;
    pointer-events: auto;
    display: none;
  }

  .filter-dropdown.is-open .filter-dropdown__menu {
    display: block;
  }

  .filter-toggle {
    width: 100%;
    justify-content: space-between;
    height: 42px;
    padding: 0 18px;
  }

  /* Lightbox Mobile/Tablet vertical scrolling layout */
  .lightbox__container {
    flex-direction: column;
    overflow-y: auto;
  }

  .lightbox__main {
    width: 100%;
    height: 65vh;
    min-height: 380px;
    flex-shrink: 0;
  }

  .lightbox__stage {
    height: 100%;
  }

  .lightbox__img {
    max-width: 96vw;
    max-height: 55vh;
  }

  .lightbox__close {
    top: 12px;
    right: 12px;
    width: 42px;
    height: 42px;
    font-size: 26px;
  }

  .lightbox__zoom {
    display: none !important;
  }

  .lightbox__bar {
    bottom: 20px;
  }

  .lightbox__sidebar {
    width: 100%;
    height: auto;
    border-left: none;
    border-top: 1px solid rgba(160, 107, 255, 0.2);
    padding: 0;
    overflow-y: visible;
  }
}

@media(max-width: 600px) {
  .header-wrap {
    margin: 8px 12px 0 !important;
    border-radius: 16px;
    width: auto !important;
    transform: none !important;
    margin-bottom: 0 !important;
  }

  .gallery {
    gap: 12px;
    padding: 12px;
    max-width: 100%;
  }

  .gallery-col {
    gap: 12px;
  }

  .hero {
    padding: 36px 16px 20px;
  }

  .hero__title {
    font-size: 24px;
  }

  .hero__sub {
    font-size: 13px;
  }

  .header {
    gap: 8px !important;
    padding: 10px 12px !important;
  }

  .header__brand {
    transform: scale(0.8) !important;
    transform-origin: left center;
  }

  .header__traffic {
    transform: scale(0.8) !important;
    transform-origin: right center;
    margin-left: 0 !important;
  }

  .header__search-container {
    min-width: 140px;
    flex: 1;
  }

  .search-box {
    height: 32px !important;
    padding: 0 10px !important;
  }

  .search-icon {
    width: 14px !important;
    height: 14px !important;
    margin-right: 6px !important;
  }

  #searchInput {
    font-size: 12.5px !important;
  }

  .header__mobile-filters-btn {
    height: 32px !important;
    padding: 0 12px !important;
    font-size: 12px !important;
  }

  /* Make mobile filters dropdown more compact */
  .header__filters-dropdowns.is-open {
    padding: 10px !important;
    gap: 8px !important;
  }

  .filter-dropdown__btn,
  .filter-toggle {
    height: 32px !important;
    font-size: 11.5px !important;
    padding: 0 10px !important;
  }

  .lightbox__bar {
    gap: 8px !important;
    padding: 4px 4px 4px 12px !important;
    border-radius: 999px !important;
    bottom: 12px !important;
    max-width: calc(100% - 24px) !important;
  }
  
  #lbMeta {
    font-size: 11px !important;
  }
  
  .lightbox__dl {
    font-size: 11px !important;
    padding: 5px 12px !important;
  }
}

@media(min-width: 901px) and (max-width: 1400px) {
  .gallery {
    max-width: 1200px;
  }

  .header {
    max-width: 1400px
  }
}

@media(min-width: 1401px) and (max-width: 1800px) {
  .gallery {
    max-width: 1600px;
  }

  .header {
    max-width: 1800px
  }
}

@media(min-width: 1801px) and (max-width: 2400px) {
  .gallery {
    max-width: 1800px;
  }

  .header {
    max-width: 2000px
  }
}

@media(min-width: 2401px) {
  .gallery {
    max-width: 2200px;
  }

  .header {
    max-width: 2400px
  }
}

/* Touch devices: hide zoom controls */
@media (pointer: coarse) {
  .lightbox__zoom {
    display: none !important;
  }
}

/* Sidebar Masonry Recommendations */
.rec-gallery {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  width: 100%;
}

.rec-col {
  flex: 1 1 0;
  width: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
}

/* Override standard card styles when inside the sidebar for compact fit */
.lightbox__recommendations .card {
  border-radius: 12px;
}

.lightbox__recommendations .card:hover {
  box-shadow: 0 8px 24px rgba(160, 107, 255, .25);
}

.lightbox__recommendations .card__overlay {
  padding: 8px;
}

.lightbox__recommendations .card__res {
  font-size: 10px;
  padding: 2px 6px;
  border-radius: 999px;
}

.lightbox__recommendations .card__actions {
  gap: 4px;
}

.lightbox__recommendations .card__btn {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  font-size: 12px;
}

.lightbox__recommendations .card__btn svg {
  width: 14px;
  height: 14px;
}

.lightbox__recommendations .card__badge {
  top: 6px;
  left: 6px;
  padding: 2px 6px;
  font-size: 9px;
  border-radius: 4px;
}