/* =============================================================================
   justhypnosis — STYLES
   =============================================================================
   HOW TO CHANGE COLORS
   --------------------
   Edit the values under :root { ... } below. They are called CSS variables.
   Examples:
     --neon-purple: #c44dff;   → change to another purple/pink hex code
     --neon-blue:   #00e5ff;   → change the electric blue
     --neon-pink:   #ff2d95;   → change the hot pink
     --bg-deep:     #070510;   → change the dark page background
   Save the file and refresh your browser to see the change.
   ============================================================================= */

:root {
  /* Neon palette — tweak these first */
  --neon-purple: #c44dff;
  --neon-blue:   #00e5ff;
  --neon-pink:   #ff2d95;
  --neon-lilac:  #e8d5ff;

  /* Backgrounds */
  --bg-deep:     #070510;
  --bg-panel:    #120a22;
  --bg-card:     #160e2a;
  --bg-card-hover: #1e1438;

  /* Text */
  --text-primary:   #f2eaff;
  --text-secondary: #b8a8d4;
  --text-muted:     #7a6a98;

  /* Effects */
  --glow-purple: 0 0 18px rgba(196, 77, 255, 0.55), 0 0 40px rgba(196, 77, 255, 0.25);
  --glow-blue:   0 0 18px rgba(0, 229, 255, 0.45), 0 0 36px rgba(0, 229, 255, 0.2);
  --glow-pink:   0 0 18px rgba(255, 45, 149, 0.5), 0 0 36px rgba(255, 45, 149, 0.2);
  --radius: 16px;
  --radius-sm: 10px;
  --max-width: 1100px;
  --font: "Segoe UI", system-ui, -apple-system, sans-serif;
}

/* Reset */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg-deep);
  color: var(--text-primary);
  line-height: 1.55;
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
}

img { max-width: 100%; display: block; }
a { color: var(--neon-blue); text-decoration: none; }
a:hover { color: var(--neon-pink); }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
ul { list-style: none; }

/* ----- Animated swirl background ----- */
.swirl-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
  background:
    radial-gradient(ellipse 80% 50% at 20% 10%, rgba(196, 77, 255, 0.18), transparent 55%),
    radial-gradient(ellipse 60% 40% at 85% 20%, rgba(0, 229, 255, 0.12), transparent 50%),
    radial-gradient(ellipse 70% 50% at 50% 90%, rgba(255, 45, 149, 0.12), transparent 55%),
    var(--bg-deep);
}

.swirl-bg svg {
  position: absolute;
  width: min(900px, 120vw);
  height: min(900px, 120vw);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  opacity: 0.22;
  animation: spin-swirl 80s linear infinite;
}

.swirl-bg .swirl-2 {
  width: min(600px, 90vw);
  height: min(600px, 90vw);
  opacity: 0.15;
  animation: spin-swirl-rev 55s linear infinite;
  top: 20%;
  left: 70%;
}

@keyframes spin-swirl {
  from { transform: translate(-50%, -50%) rotate(0deg); }
  to   { transform: translate(-50%, -50%) rotate(360deg); }
}
@keyframes spin-swirl-rev {
  from { transform: translate(-50%, -50%) rotate(360deg); }
  to   { transform: translate(-50%, -50%) rotate(0deg); }
}

@media (prefers-reduced-motion: reduce) {
  .swirl-bg svg { animation: none; }
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ----- Layout ----- */
.container {
  width: min(100% - 2rem, var(--max-width));
  margin-inline: auto;
}

/* ----- Header ----- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(14px);
  background: rgba(7, 5, 16, 0.75);
  border-bottom: 1px solid rgba(196, 77, 255, 0.2);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.9rem 0;
  gap: 1rem;
}

.logo {
  font-size: 1.45rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  background: linear-gradient(105deg, var(--neon-purple), var(--neon-blue), var(--neon-pink));
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: none;
  filter: drop-shadow(0 0 12px rgba(196, 77, 255, 0.45));
  animation: shimmer 6s ease-in-out infinite;
}

@keyframes shimmer {
  0%, 100% { background-position: 0% center; }
  50% { background-position: 100% center; }
}

.nav {
  display: flex;
  gap: 1.25rem;
  align-items: center;
}

.nav a {
  color: var(--text-secondary);
  font-size: 0.95rem;
  font-weight: 500;
  transition: color 0.2s;
}
.nav a:hover { color: var(--neon-blue); }

/* ----- Hero ----- */
.hero {
  text-align: center;
  padding: 3.5rem 0 2.5rem;
  position: relative;
}

.hero-logo {
  font-size: clamp(2.4rem, 8vw, 4rem);
  font-weight: 900;
  letter-spacing: -0.02em;
  line-height: 1.1;
  background: linear-gradient(120deg, var(--neon-purple) 0%, var(--neon-blue) 45%, var(--neon-pink) 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 0 20px rgba(196, 77, 255, 0.5)) drop-shadow(0 0 40px rgba(0, 229, 255, 0.25));
  animation: shimmer 7s ease-in-out infinite;
  margin-bottom: 0.75rem;
}

.hero-tagline {
  color: var(--text-secondary);
  font-size: clamp(1rem, 2.5vw, 1.2rem);
  max-width: 32rem;
  margin: 0 auto 1.75rem;
}

.hero-accent {
  width: 80px;
  height: 4px;
  margin: 0 auto;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--neon-purple), var(--neon-blue), var(--neon-pink));
  box-shadow: var(--glow-purple);
}

/* ----- Filters ----- */
.gallery-section { padding: 1rem 0 3rem; }

.section-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1.25rem;
  color: var(--text-primary);
}

.filter-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 1.75rem;
}

.filter-btn {
  padding: 0.45rem 1.1rem;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-secondary);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(196, 77, 255, 0.25);
  transition: background 0.2s, color 0.2s, border-color 0.2s, box-shadow 0.2s;
}

.filter-btn:hover {
  color: var(--text-primary);
  border-color: var(--neon-blue);
  box-shadow: var(--glow-blue);
}

.filter-btn.active {
  color: #0a0618;
  background: linear-gradient(120deg, var(--neon-purple), var(--neon-blue));
  border-color: transparent;
  box-shadow: var(--glow-purple);
}

/* ----- Card grid ----- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.4rem;
}

.card {
  background: var(--bg-card);
  border-radius: var(--radius);
  border: 1px solid rgba(196, 77, 255, 0.18);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease, border-color 0.25s, box-shadow 0.25s, background 0.25s;
}

.card:hover {
  transform: translateY(-4px);
  background: var(--bg-card-hover);
  border-color: rgba(0, 229, 255, 0.4);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45), 0 0 24px rgba(196, 77, 255, 0.2);
}

@media (prefers-reduced-motion: reduce) {
  .card:hover { transform: none; }
}

.card-thumb {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #0c0820;
  position: relative;
}

.card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.card:hover .card-thumb img { transform: scale(1.04); }

.card-body {
  padding: 1.1rem 1.15rem 1.25rem;
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 0.45rem;
}

.card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 0.85rem;
  font-size: 0.78rem;
  color: var(--text-muted);
}

.card-category {
  color: var(--neon-blue);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 0.72rem;
}

.card-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.3;
}

.card-desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
  flex: 1;
}

.btn-download {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  margin-top: 0.75rem;
  padding: 0.65rem 1rem;
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  font-weight: 700;
  color: #0a0618;
  background: linear-gradient(120deg, var(--neon-pink), var(--neon-purple) 55%, var(--neon-blue));
  background-size: 180% auto;
  box-shadow: var(--glow-pink);
  transition: background-position 0.3s, transform 0.2s, box-shadow 0.2s;
  text-align: center;
}

.btn-download:hover {
  color: #0a0618;
  background-position: 100% center;
  box-shadow: var(--glow-blue);
  transform: translateY(-1px);
}

.btn-download:focus-visible {
  outline: 2px solid var(--neon-blue);
  outline-offset: 3px;
}

.empty-state {
  grid-column: 1 / -1;
  text-align: center;
  padding: 3rem 1rem;
  color: var(--text-muted);
}

/* ----- About ----- */
.about-section {
  padding: 2.5rem 0 3.5rem;
}

.about-panel {
  background: var(--bg-panel);
  border: 1px solid rgba(196, 77, 255, 0.2);
  border-radius: var(--radius);
  padding: 1.75rem 1.5rem;
  box-shadow: 0 0 40px rgba(196, 77, 255, 0.08);
}

.about-panel h2 {
  font-size: 1.4rem;
  margin-bottom: 0.75rem;
  background: linear-gradient(90deg, var(--neon-purple), var(--neon-blue));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.about-panel p {
  color: var(--text-secondary);
  max-width: 48rem;
}

/* ----- Footer nav (reference: dark navy bar, neon purple uppercase links) ----- */
.site-footer {
  margin-top: 2rem;
  border-top: none;
  padding: 0;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.85rem;
}

.footer-nav {
  background: #0a0e1a;
  border-top: 1px solid rgba(196, 77, 255, 0.25);
  border-bottom: 1px solid rgba(196, 77, 255, 0.15);
  padding: 1.1rem 1rem;
}

.footer-nav-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.85rem 1.75rem;
  max-width: var(--max-width);
  margin: 0 auto;
  list-style: none;
}

.footer-nav-list a {
  color: #d14dff;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  transition: color 0.2s, text-shadow 0.2s;
  white-space: nowrap;
}

.footer-nav-list a:hover,
.footer-nav-list a:focus-visible {
  color: #f0a0ff;
  text-shadow: 0 0 10px rgba(209, 77, 255, 0.7);
}

.footer-copy {
  padding: 1.25rem 1rem 1.75rem;
  color: var(--text-muted);
  font-size: 0.85rem;
}

/* Favorite heart on cards */
.card-thumb { position: relative; }

.btn-fav {
  position: absolute;
  top: 0.55rem;
  right: 0.55rem;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(7, 5, 16, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: rgba(255, 255, 255, 0.55);
  font-size: 1.1rem;
  line-height: 1;
  z-index: 2;
  transition: color 0.2s, background 0.2s, border-color 0.2s, transform 0.2s;
}

.btn-fav:hover {
  color: var(--neon-pink);
  border-color: rgba(255, 45, 149, 0.5);
}

.btn-fav.is-fav {
  color: var(--neon-pink);
  border-color: rgba(255, 45, 149, 0.7);
  background: rgba(255, 45, 149, 0.18);
  box-shadow: var(--glow-pink);
}

.btn-fav .heart { pointer-events: none; }

/* Placeholder page body */
.page-main {
  padding: 2.5rem 0 3rem;
  min-height: 50vh;
}

.page-panel {
  background: var(--bg-panel);
  border: 1px solid rgba(196, 77, 255, 0.2);
  border-radius: var(--radius);
  padding: 1.75rem 1.5rem;
  box-shadow: 0 0 40px rgba(196, 77, 255, 0.08);
}

.page-panel h1 {
  font-size: 1.6rem;
  margin-bottom: 0.85rem;
  background: linear-gradient(90deg, var(--neon-purple), var(--neon-blue));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.page-panel p {
  color: var(--text-secondary);
  margin-bottom: 0.75rem;
  max-width: 40rem;
}

.placeholder-note {
  margin-top: 1rem;
  padding: 0.85rem 1rem;
  border-left: 3px solid var(--neon-pink);
  background: rgba(255, 45, 149, 0.08);
  color: var(--neon-lilac);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-size: 0.92rem;
}

/* ----- Modal (optional detail view) ----- */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(4, 2, 12, 0.8);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s, visibility 0.25s;
}

.modal-overlay.open {
  opacity: 1;
  visibility: visible;
}

.modal {
  background: var(--bg-card);
  border: 1px solid rgba(196, 77, 255, 0.35);
  border-radius: var(--radius);
  max-width: 520px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6), var(--glow-purple);
  position: relative;
}

.modal-close {
  position: absolute;
  top: 0.65rem;
  right: 0.75rem;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  color: var(--text-secondary);
  font-size: 1.4rem;
  line-height: 1;
  background: rgba(255, 255, 255, 0.06);
  z-index: 2;
  transition: color 0.2s, background 0.2s;
}
.modal-close:hover { color: var(--neon-pink); background: rgba(255, 45, 149, 0.15); }

.modal-thumb { aspect-ratio: 16 / 9; background: #0c0820; }
.modal-thumb img { width: 100%; height: 100%; object-fit: cover; }

.modal-body { padding: 1.25rem 1.35rem 1.5rem; }
.modal-body h2 { font-size: 1.35rem; margin-bottom: 0.4rem; }
.modal-body .card-meta { margin-bottom: 0.75rem; }
.modal-body p { color: var(--text-secondary); margin-bottom: 1rem; }

body.modal-open { overflow: hidden; }

/* ----- Mobile ----- */
@media (max-width: 600px) {
  .header-inner { flex-wrap: wrap; }
  .hero { padding: 2.5rem 0 1.75rem; }
  .gallery-grid { grid-template-columns: 1fr; gap: 1.1rem; }
  .nav { gap: 0.9rem; }
  .nav a { font-size: 0.88rem; }
}

/* ----- Pagination ----- */
.pagination {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  justify-content: center;
  margin-top: 2rem;
  padding-bottom: 0.5rem;
}

.page-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.4rem;
  padding: 0.45rem 0.75rem;
  border-radius: 8px;
  font-size: 0.88rem;
  font-weight: 700;
  color: #fff;
  background: #2a2a32;
  border: 1px solid transparent;
  text-decoration: none;
  transition: background 0.15s, color 0.15s;
}

a.page-btn:hover {
  background: #3a3a48;
  color: #fff;
}

.page-btn.is-active {
  background: #a855f7;
  color: #0a0618;
}

.page-btn.is-disabled,
.page-btn.is-ellipsis {
  opacity: 0.45;
  cursor: default;
  pointer-events: none;
}

/* filter tabs as links */
a.filter-btn {
  display: inline-flex;
  text-decoration: none;
}

/* ----- Categories grid ----- */
.categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.25rem;
}

.category-tile {
  display: flex;
  flex-direction: column;
  background: var(--bg-card);
  border: 1px solid rgba(196, 77, 255, 0.2);
  border-radius: var(--radius);
  overflow: hidden;
  color: inherit;
  text-decoration: none;
  transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
}

.category-tile:hover {
  transform: translateY(-3px);
  border-color: rgba(0, 229, 255, 0.4);
  box-shadow: 0 10px 30px rgba(0,0,0,0.4);
  color: inherit;
}

.category-tile-cover {
  aspect-ratio: 16 / 9;
  background: #0c0820;
}
.category-tile-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.category-tile-body {
  padding: 1rem 1.1rem 1.2rem;
}
.category-tile-body h2 {
  font-size: 1.15rem;
  margin-bottom: 0.35rem;
}
.category-count {
  display: inline-block;
  margin-top: 0.6rem;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--neon-blue);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.muted { color: var(--text-muted); }
.demo-note { font-size: 0.88rem; margin-bottom: 0.75rem; }

/* ----- Video page ----- */
.video-page { padding: 1.5rem 0 3rem; }

.video-cover {
  display: block;
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid rgba(196, 77, 255, 0.25);
  background: #0c0820;
  aspect-ratio: 16 / 9;
  max-height: 520px;
}
.video-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.video-cover-hint {
  position: absolute;
  left: 50%;
  bottom: 1rem;
  transform: translateX(-50%);
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  background: rgba(7,5,16,0.75);
  color: var(--neon-lilac);
  font-size: 0.85rem;
  font-weight: 600;
  pointer-events: none;
}

.video-title {
  margin: 1.1rem 0 0.9rem;
  font-size: clamp(1.35rem, 3vw, 1.85rem);
}

.promo-banner {
  display: block;
  text-align: center;
  background: #a855f7;
  color: #fff;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: underline;
  padding: 0.85rem 1rem;
  border-radius: 4px;
  margin-bottom: 0;
}
.promo-banner:hover { color: #fff; filter: brightness(1.08); }

.action-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
  background: #0a0e1a;
  border: 1px solid rgba(196, 77, 255, 0.15);
  border-top: none;
  padding: 0.75rem 1rem;
  border-radius: 0 0 8px 8px;
  margin-bottom: 1rem;
}

.action-left, .action-right {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem;
}

.icon-btn, .tool-btn {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: rgba(255,255,255,0.06);
  color: #fff;
  font-size: 1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255,255,255,0.08);
}
.icon-btn.is-active {
  background: rgba(168, 85, 247, 0.35);
  border-color: #a855f7;
}
.tool-btn:hover, .icon-btn:hover {
  border-color: rgba(168, 85, 247, 0.6);
}

.vote-box { min-width: 120px; }
.vote-text {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  color: #e8e8f0;
  margin-bottom: 0.25rem;
}
.vote-bar {
  height: 4px;
  background: #2a2a32;
  border-radius: 999px;
  overflow: hidden;
  width: 140px;
  max-width: 30vw;
}
.vote-fill {
  height: 100%;
  background: #a855f7;
  width: 0%;
  transition: width 0.2s;
}

.fav-dropdown { position: relative; }
.fav-menu-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.4rem 0.7rem;
  border-radius: 8px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}
.fav-menu-btn.is-fav { color: var(--neon-pink); border-color: rgba(255,45,149,0.5); }
.fav-menu[hidden] { display: none !important; }
.fav-menu {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  z-index: 20;
  min-width: 180px;
  background: #160e2a;
  border: 1px solid rgba(196, 77, 255, 0.35);
  border-radius: 10px;
  padding: 0.4rem;
  box-shadow: 0 12px 30px rgba(0,0,0,0.5);
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}
.fav-menu button, .fav-menu a {
  text-align: left;
  padding: 0.5rem 0.65rem;
  border-radius: 6px;
  color: var(--text-primary);
  font-size: 0.88rem;
  background: transparent;
  text-decoration: none;
}
.fav-menu button:hover, .fav-menu a:hover {
  background: rgba(168, 85, 247, 0.2);
}

.details-panel, .shots-panel {
  background: var(--bg-panel);
  border: 1px solid rgba(196, 77, 255, 0.2);
  border-radius: var(--radius-sm);
  padding: 1rem 1.1rem;
  margin-bottom: 1rem;
}
.details-panel h3, .shots-panel h3 { margin-bottom: 0.5rem; font-size: 1rem; }
.shots-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}
.shots-row img {
  width: 140px;
  height: 80px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.1);
}

.download-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem;
  margin: 1rem 0 0.85rem;
}

.btn-download-lg {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.75rem 1.25rem;
  border-radius: 8px;
  background: #a855f7;
  color: #0a0618;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  box-shadow: 0 0 18px rgba(168, 85, 247, 0.35);
}
.btn-download-lg:hover { color: #0a0618; filter: brightness(1.08); }

.meta-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.55rem 0.75rem;
  border-radius: 8px;
  background: rgba(255,255,255,0.06);
  color: #e0e0ea;
  font-size: 0.88rem;
  font-weight: 600;
}
.meta-ico { opacity: 0.85; }

.tags-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-bottom: 1.75rem;
}
.tag-chip {
  display: inline-block;
  padding: 0.35rem 0.7rem;
  border-radius: 8px;
  background: #2a2a32;
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  text-decoration: none;
}
.tag-chip:hover { background: #3a3a48; color: #fff; }

.comments-section, .related-section {
  margin-top: 2rem;
}
.comments-section h2, .related-section h2 {
  font-size: 1.25rem;
  margin-bottom: 0.85rem;
}

.comment-form {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  margin-bottom: 1.25rem;
  max-width: 520px;
}
.comment-form label {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  font-size: 0.88rem;
  color: var(--text-secondary);
}
.comment-form input,
.comment-form textarea,
.comment-form select {
  background: #120a22;
  border: 1px solid rgba(196, 77, 255, 0.25);
  border-radius: 8px;
  color: var(--text-primary);
  padding: 0.55rem 0.7rem;
  font: inherit;
}
.comment {
  background: var(--bg-card);
  border: 1px solid rgba(196, 77, 255, 0.15);
  border-radius: 10px;
  padding: 0.85rem 1rem;
  margin-bottom: 0.65rem;
}
.comment time {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-left: 0.4rem;
}
.comment p { margin-top: 0.35rem; color: var(--text-secondary); }

.card-thumb {
  display: block;
  text-decoration: none;
  color: inherit;
}

@media (max-width: 600px) {
  .action-row { flex-direction: column; align-items: flex-start; }
  .vote-bar { width: 110px; }
  .video-cover { max-height: none; }
}


/* Header Log in button */
.btn-login {
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #0a0618 !important;
  background: linear-gradient(120deg, var(--neon-purple), var(--neon-blue));
  box-shadow: var(--glow-purple);
  border: none;
}
.btn-login:hover {
  filter: brightness(1.08);
  color: #0a0618 !important;
}

/* ----- Account menu / auth ----- */
.account-slot { display: inline-flex; align-items: center; }
.account-menu { position: relative; }
.account-toggle {
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-primary);
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(196, 77, 255, 0.35);
}
.account-dropdown {
  position: absolute;
  right: 0;
  top: calc(100% + 6px);
  min-width: 150px;
  background: #160e2a;
  border: 1px solid rgba(196, 77, 255, 0.35);
  border-radius: 10px;
  padding: 0.35rem;
  z-index: 50;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}
.account-dropdown[hidden] { display: none !important; }
.account-dropdown a, .account-dropdown button {
  text-align: left;
  padding: 0.5rem 0.65rem;
  border-radius: 6px;
  color: var(--text-primary);
  background: transparent;
  font-size: 0.9rem;
  text-decoration: none;
}
.account-dropdown a:hover, .account-dropdown button:hover {
  background: rgba(168, 85, 247, 0.2);
}

.auth-tabs { display: flex; flex-wrap: wrap; gap: 0.45rem; margin: 1rem 0; }
.auth-msg { margin-top: 0.75rem; font-size: 0.9rem; min-height: 1.2em; }
.auth-msg.ok { color: #7dffb3; }
.auth-msg.err { color: #ff8fb5; }

/* ----- Admin ----- */
.admin-main { padding: 1.5rem 0 3rem; }
.admin-toolbar {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}
.admin-list { display: flex; flex-direction: column; gap: 0.55rem; }
.admin-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 0.9rem;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(196, 77, 255, 0.18);
  border-radius: 10px;
}
.admin-form { margin-top: 1.25rem; max-width: 640px; }
.row-inline { display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center; }
.row-inline input { flex: 1; min-width: 160px; }
.check-row {
  flex-direction: row !important;
  align-items: center;
  gap: 0.5rem !important;
}
.filter-btn.danger { border-color: #ff2d95; color: #ff8fb5; }
.pill {
  display: inline-block;
  margin-top: 0.25rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--neon-blue);
}
.tag-editor { display: flex; flex-direction: column; gap: 0.5rem; }

@media (max-width: 600px) {
  .admin-row { flex-direction: column; align-items: flex-start; }
  .nav { flex-wrap: wrap; justify-content: flex-end; }
}


/* Ensure HTML hidden attribute wins over display:flex/grid utilities */
.auth-form[hidden],
.admin-form[hidden],
.admin-panel[hidden],
#admin-app[hidden],
#admin-gate[hidden] {
  display: none !important;
}

/* ----- Age gate ----- */
body.age-gate-open { overflow: hidden; }
.age-gate {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(4, 2, 12, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  backdrop-filter: blur(8px);
}
.age-gate-panel {
  width: min(100%, 440px);
  background: #120a22;
  border: 1px solid rgba(196, 77, 255, 0.4);
  border-radius: 16px;
  padding: 1.5rem 1.35rem 1.35rem;
  box-shadow: 0 0 40px rgba(196, 77, 255, 0.25);
}
.age-gate-panel h1 {
  font-size: 1.35rem;
  margin-bottom: 0.65rem;
  background: linear-gradient(90deg, var(--neon-purple), var(--neon-blue));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.age-gate-body { color: var(--text-secondary); margin-bottom: 1rem; }
.age-gate-form {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-bottom: 0.75rem;
}
.age-gate-field {
  flex: 1;
  min-width: 90px;
  font-size: 0.8rem;
  color: var(--text-muted);
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}
.age-gate-field select {
  background: #0a0618;
  color: var(--text-primary);
  border: 1px solid rgba(196, 77, 255, 0.3);
  border-radius: 8px;
  padding: 0.55rem;
  font: inherit;
}
.age-gate-confirm { width: 100%; justify-content: center; margin-top: 0.5rem; }
.age-gate-err { color: #ff8fb5; font-size: 0.9rem; margin-bottom: 0.5rem; }
.age-gate-deny { color: var(--text-secondary); margin: 0.75rem 0; }
.age-gate-deny a { color: var(--neon-blue); }

/* ----- Page body / rich editor ----- */
.page-body { color: var(--text-secondary); line-height: 1.65; }
.page-body h2, .page-body h3 { color: var(--text-primary); margin: 1rem 0 0.4rem; }
.page-body ul { padding-left: 1.25rem; margin: 0.5rem 0; }
.page-body a { color: var(--neon-blue); }

.editor-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-bottom: 0.45rem;
}
.editor-toolbar button {
  padding: 0.35rem 0.55rem;
  border-radius: 6px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(196, 77, 255, 0.25);
  color: var(--text-primary);
}
.rich-editor {
  min-height: 180px;
  background: #0a0618;
  border: 1px solid rgba(196, 77, 255, 0.25);
  border-radius: 10px;
  padding: 0.75rem;
  color: var(--text-primary);
  margin-bottom: 0.75rem;
}
.admin-hr {
  border: none;
  border-top: 1px solid rgba(196, 77, 255, 0.2);
  margin: 1rem 0;
}

/* ----- Thumbnail frame picker ----- */
.thumb-picker {
  border: 1px dashed rgba(196, 77, 255, 0.35);
  border-radius: 12px;
  padding: 0.85rem;
  margin: 0.75rem 0;
}
.thumb-video {
  width: 100%;
  max-height: 220px;
  background: #000;
  border-radius: 8px;
  margin-top: 0.5rem;
}
.frame-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 0.5rem;
  margin-top: 0.75rem;
}
.frame-choice {
  padding: 0;
  border: 2px solid transparent;
  border-radius: 8px;
  overflow: hidden;
  background: #000;
  cursor: pointer;
}
.frame-choice img { width: 100%; display: block; aspect-ratio: 16/9; object-fit: cover; }
.frame-choice.is-selected { border-color: var(--neon-pink); box-shadow: var(--glow-pink); }
.tag-chip.is-on {
  background: linear-gradient(120deg, var(--neon-purple), var(--neon-blue));
  color: #0a0618;
}
.muted-chips { opacity: 0.95; }
.scrub-label { display: block; margin-top: 0.5rem; color: var(--text-muted); font-size: 0.85rem; }
#thumb-scrub { width: 100%; }
