/* sacred — global stylesheet */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Space+Grotesk:wght@400;500;700&display=swap');

:root {
  --black: #000000;
  --near-black: #080808;
  --card-bg: #0e0e0e;
  --border: #1a1a1a;
  --border-light: #252525;
  --white: #ffffff;
  --off-white: #e4e4e4;
  --muted: #5a5a5a;
  --muted-light: #888;
  --glow-sm: 0 0 20px rgba(255,255,255,0.06);
  --glow-md: 0 0 40px rgba(255,255,255,0.10);
  --glow-lg: 0 0 80px rgba(255,255,255,0.14);
  --glow-hero: 0 0 160px rgba(255,255,255,0.07);
  --radius: 6px;
  --radius-lg: 10px;
  --font-display: 'Space Grotesk', sans-serif;
  --font-body: 'Inter', sans-serif;
  --transition: 0.2s cubic-bezier(.4,0,.2,1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }

body {
  background: var(--black);
  color: var(--off-white);
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.6;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* ── Animations ─────────────────────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.4; }
}
@keyframes glowPulse {
  0%, 100% { box-shadow: 0 0 40px rgba(255,255,255,0.06); }
  50%       { box-shadow: 0 0 80px rgba(255,255,255,0.13); }
}
@keyframes borderGlow {
  0%, 100% { border-color: #1a1a1a; }
  50%       { border-color: #2e2e2e; }
}

/* Skeleton shimmer */
@keyframes shimmer {
  0%   { background-position: -600px 0; }
  100% { background-position:  600px 0; }
}

/* Logo glow breathe */
@keyframes logoGlow {
  0%, 100% { text-shadow: 0 0 0px rgba(255,255,255,0); }
  50%       { text-shadow: 0 0 18px rgba(255,255,255,0.35), 0 0 40px rgba(255,255,255,0.12); }
}

/* Card border sweep on hover */
@keyframes cardBorderGlow {
  0%   { opacity: 0; }
  50%  { opacity: 1; }
  100% { opacity: 0; }
}

.anim-fade-up  { animation: fadeUp 0.55s cubic-bezier(.4,0,.2,1) both; }
.anim-fade-in  { animation: fadeIn 0.4s ease both; }
.delay-1 { animation-delay: 0.08s; }
.delay-2 { animation-delay: 0.16s; }
.delay-3 { animation-delay: 0.24s; }
.delay-4 { animation-delay: 0.32s; }

/* Scroll reveal — JS adds .visible */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.6s cubic-bezier(.4,0,.2,1), transform 0.6s cubic-bezier(.4,0,.2,1);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── Typography ─────────────────────────────────────── */
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 700; line-height: 1.15; }
h1 { font-size: clamp(2.4rem, 5.5vw, 4rem); letter-spacing: -0.03em; }
h2 { font-size: clamp(1.5rem, 3vw, 2.2rem); letter-spacing: -0.02em; }
h3 { font-size: 1.05rem; letter-spacing: -0.01em; }
p  { color: var(--off-white); }
a  { color: var(--white); text-decoration: none; }

/* ── Layout ─────────────────────────────────────────── */
.container { max-width: 1280px; margin: 0 auto; padding: 0 28px; }
.page-content { padding-top: 60px; min-height: calc(100vh - 60px); }

/* ── Navbar ─────────────────────────────────────────── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: 60px;
  background: rgba(0,0,0,0.7);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center;
  transition: background var(--transition), border-color var(--transition);
}
nav.scrolled { background: rgba(0,0,0,0.92); border-color: var(--border-light); }

.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  width: 100%; max-width: 1280px; margin: 0 auto; padding: 0 28px;
}
.nav-logo {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--white);
  transition: text-shadow 0.4s ease;
  animation: logoGlow 4s ease-in-out infinite;
}
.nav-logo:hover {
  animation: none;
  text-shadow:
    0 0 10px rgba(255,255,255,0.9),
    0 0 30px rgba(255,255,255,0.4),
    0 0 60px rgba(255,255,255,0.15);
  transition: text-shadow 0.2s ease;
}

.nav-links { display: flex; align-items: center; gap: 2px; }
.nav-link {
  padding: 6px 13px;
  border-radius: var(--radius);
  font-size: 0.825rem;
  font-weight: 500;
  color: var(--muted-light);
  letter-spacing: 0.01em;
  transition: color var(--transition), background var(--transition);
}
.nav-link:hover { color: var(--white); background: rgba(255,255,255,0.05); }
.nav-link.active { color: var(--white); }

.nav-user { display: flex; align-items: center; gap: 8px; }
.nav-username { font-size: 0.825rem; color: var(--off-white); font-weight: 500; }

/* ── Buttons ─────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 9px 20px;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
  border: none;
  text-decoration: none;
  letter-spacing: 0.01em;
  position: relative;
  overflow: hidden;
}
.btn::after {
  content: '';
  position: absolute; inset: 0;
  background: rgba(255,255,255,0);
  transition: background var(--transition);
}
.btn:hover::after { background: rgba(255,255,255,0.06); }

.btn-primary {
  background: var(--white);
  color: var(--black);
  box-shadow: 0 0 0 0 rgba(255,255,255,0);
}
.btn-primary:hover {
  box-shadow: 0 0 28px rgba(255,255,255,0.22), 0 0 8px rgba(255,255,255,0.12);
  transform: translateY(-1px);
}
.btn-ghost {
  background: transparent;
  color: var(--off-white);
  border: 1px solid var(--border-light);
}
.btn-ghost:hover { border-color: #3a3a3a; color: var(--white); }
.btn-sm { padding: 5px 13px; font-size: 0.78rem; }
.btn-danger { background: transparent; color: #e05; border: 1px solid rgba(238,0,85,0.2); }
.btn-danger:hover { background: rgba(238,0,85,0.08); border-color: #e05; }
.btn:disabled { opacity: 0.35; cursor: not-allowed; pointer-events: none; }

/* ── Inputs ─────────────────────────────────────────── */
.input, .textarea, .select {
  width: 100%;
  background: var(--card-bg);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 0.875rem;
  padding: 10px 14px;
  outline: none;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.input:focus, .textarea:focus {
  border-color: #363636;
  box-shadow: 0 0 0 3px rgba(255,255,255,0.03), 0 0 16px rgba(255,255,255,0.04);
}
.textarea { resize: vertical; min-height: 100px; }
.input-label {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--muted-light);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 7px;
}
.input-group { margin-bottom: 18px; }

/* ── Cards ─────────────────────────────────────────── */
.card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: border-color var(--transition), box-shadow var(--transition), transform var(--transition);
}
.card:hover {
  border-color: var(--border-light);
  box-shadow: var(--glow-md);
}

/* ── Video Grid ─────────────────────────────────────── */
.video-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
@media (max-width: 1100px) { .video-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 750px)  { .video-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px)  { .video-grid { grid-template-columns: 1fr; } }

.video-card {
  cursor: pointer;
  position: relative;
}

/* Outer ambient glow layer — spreads wide, low opacity */
.video-card::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: var(--radius-lg);
  background: transparent;
  box-shadow: 0 0 0px rgba(255,255,255,0);
  transition: box-shadow 0.35s cubic-bezier(.4,0,.2,1);
  pointer-events: none;
  z-index: 0;
}
/* Inner border glow — tight ring of white */
.video-card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255,255,255,0);
  transition: border-color 0.35s cubic-bezier(.4,0,.2,1), box-shadow 0.35s cubic-bezier(.4,0,.2,1);
  pointer-events: none;
  z-index: 1;
}
.video-card:hover {
  transform: translateY(-4px);
}
.video-card:hover::before {
  box-shadow:
    0 0 30px 4px rgba(255,255,255,0.07),
    0 0 60px 8px rgba(255,255,255,0.04),
    0 20px 40px rgba(0,0,0,0.5);
}
.video-card:hover::after {
  border-color: rgba(255,255,255,0.12);
  box-shadow: inset 0 0 20px rgba(255,255,255,0.03);
}

.video-thumb {
  width: 100%; aspect-ratio: 16/9;
  background: #0a0a0a;
  position: relative;
  overflow: hidden;
}
.video-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s cubic-bezier(.4,0,.2,1); }
.video-card:hover .video-thumb img { transform: scale(1.04); }

.video-thumb-placeholder {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #0c0c0c, #141414);
}
.nsfw-badge {
  position: absolute; top: 8px; left: 8px;
  background: rgba(0,0,0,0.75);
  border: 1px solid rgba(238,0,85,0.4);
  color: #e05;
  font-size: 0.6rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  padding: 2px 7px;
  border-radius: 3px;
  text-transform: uppercase;
  backdrop-filter: blur(4px);
}
.duration-badge {
  position: absolute; bottom: 8px; right: 8px;
  background: rgba(0,0,0,0.78);
  color: #ccc;
  font-size: 0.7rem;
  font-weight: 600;
  padding: 2px 7px;
  border-radius: 3px;
  backdrop-filter: blur(4px);
}
.video-info { padding: 10px 12px 13px; }
.video-title {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--white);
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 5px;
}
.video-meta { font-size: 0.72rem; color: var(--muted-light); }

/* ── Modal ─────────────────────────────────────────── */
.modal-overlay {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(0,0,0,0.8);
  backdrop-filter: blur(6px);
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
  animation: fadeIn 0.2s ease;
}
.modal-overlay.hidden { display: none; }
.modal {
  background: #0d0d0d;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 440px;
  box-shadow: 0 0 80px rgba(0,0,0,0.9), 0 0 40px rgba(255,255,255,0.04);
  animation: fadeUp 0.25s cubic-bezier(.4,0,.2,1);
}
.modal-header { padding: 22px 22px 0; display: flex; align-items: center; justify-content: space-between; }
.modal-header h2 { font-size: 1rem; letter-spacing: -0.01em; }
.modal-close {
  background: none; border: none; color: var(--muted);
  cursor: pointer; font-size: 1.3rem; line-height: 1;
  padding: 4px; transition: color 0.1s; border-radius: 4px;
}
.modal-close:hover { color: var(--white); background: rgba(255,255,255,0.05); }
.modal-body { padding: 18px 22px 22px; }

/* ── Player ─────────────────────────────────────────── */
.player-overlay {
  position: fixed; inset: 0; z-index: 300;
  background: #000;
  display: flex; flex-direction: column;
  animation: fadeIn 0.2s ease;
}
.player-overlay.hidden { display: none; animation: none; }
.player-header {
  display: flex; align-items: center;
  padding: 12px 18px;
  background: rgba(0,0,0,0.95);
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
  gap: 12px;
}
.player-title { font-size: 0.9rem; font-weight: 600; flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.player-main { flex: 1; display: flex; align-items: center; justify-content: center; overflow: hidden; background: #000; }
video#main-video { width: 100%; height: 100%; max-height: calc(100vh - 140px); object-fit: contain; }
.player-controls {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 14px;
  background: rgba(0,0,0,0.96);
  border-top: 1px solid var(--border);
  flex-shrink: 0;
}
.ctrl-btn {
  background: none; border: none; color: var(--off-white);
  cursor: pointer; padding: 6px; border-radius: 4px;
  transition: color var(--transition), background var(--transition);
  line-height: 1; font-size: 1rem; flex-shrink: 0;
}
.ctrl-btn:hover { color: var(--white); background: rgba(255,255,255,0.07); }

.progress-bar-wrap {
  flex: 1; position: relative; height: 4px; cursor: pointer;
  border-radius: 2px; overflow: hidden;
}
.progress-bg { width: 100%; height: 100%; background: var(--border-light); }
.progress-fill {
  height: 100%; background: var(--white); border-radius: 2px;
  transition: width 0.1s linear; width: 0%;
  box-shadow: 0 0 8px rgba(255,255,255,0.3);
}
.volume-wrap { display: flex; align-items: center; gap: 6px; }
.volume-slider {
  width: 68px; -webkit-appearance: none; appearance: none;
  height: 3px; background: var(--border-light); border-radius: 2px;
  outline: none; cursor: pointer;
}
.volume-slider::-webkit-slider-thumb {
  -webkit-appearance: none; width: 11px; height: 11px;
  border-radius: 50%; background: var(--white); cursor: pointer;
  box-shadow: 0 0 6px rgba(255,255,255,0.4);
}
.time-display { font-size: 0.72rem; color: var(--muted-light); min-width: 88px; text-align: center; font-variant-numeric: tabular-nums; }

/* ── Toast ─────────────────────────────────────────── */
#toast {
  position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%) translateY(8px);
  background: #141414;
  border: 1px solid var(--border-light);
  color: var(--white);
  padding: 9px 18px;
  border-radius: var(--radius);
  font-size: 0.825rem;
  z-index: 9999;
  opacity: 0;
  transition: opacity 0.2s, transform 0.2s;
  pointer-events: none;
  white-space: nowrap;
  box-shadow: 0 0 24px rgba(0,0,0,0.6);
}
#toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ── Footer ─────────────────────────────────────────── */
footer { border-top: 1px solid var(--border); padding: 44px 0 32px; margin-top: 100px; }
.footer-inner {
  display: grid; grid-template-columns: 1fr auto; gap: 40px; align-items: start;
  max-width: 1280px; margin: 0 auto; padding: 0 28px;
}
.footer-brand { font-family: var(--font-display); font-size: 1rem; font-weight: 700; margin-bottom: 6px; letter-spacing: -0.02em; }
.footer-tagline { font-size: 0.78rem; color: var(--muted); }
.footer-links { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.footer-link { font-size: 0.78rem; color: var(--muted); transition: color var(--transition); }
.footer-link:hover { color: var(--off-white); }
.footer-copy {
  font-size: 0.72rem; color: var(--muted); margin-top: 28px; padding-top: 22px;
  border-top: 1px solid var(--border); text-align: center;
  max-width: 1280px; margin-left: auto; margin-right: auto; padding-left: 28px; padding-right: 28px;
}

/* ── Chat ─────────────────────────────────────────── */
#chat-panel {
  position: fixed; bottom: 0; right: 20px; z-index: 150;
  width: 290px;
}
.chat-toggle {
  display: flex; align-items: center; justify-content: space-between;
  background: #0e0e0e;
  border: 1px solid var(--border-light);
  border-bottom: none;
  border-radius: 8px 8px 0 0;
  padding: 9px 13px;
  cursor: pointer;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted-light);
  transition: color var(--transition);
}
.chat-toggle:hover { color: var(--white); }
.chat-live-dot {
  width: 6px; height: 6px; border-radius: 50%; background: #2d2;
  animation: pulse 2s infinite;
}
.chat-body {
  background: #0a0a0a;
  border: 1px solid var(--border-light);
  border-top: none;
  display: none; flex-direction: column;
  height: 300px;
}
.chat-body.open { display: flex; }
.chat-messages {
  flex: 1; overflow-y: auto; padding: 10px;
  display: flex; flex-direction: column; gap: 5px;
  scrollbar-width: thin; scrollbar-color: #1e1e1e transparent;
}
.chat-msg { font-size: 0.76rem; line-height: 1.4; }
.chat-msg .author { font-weight: 700; color: var(--white); margin-right: 5px; }
.chat-msg .text { color: var(--muted-light); }
.chat-input-row {
  display: flex; gap: 6px; padding: 8px;
  border-top: 1px solid var(--border);
}
.chat-input-row input {
  flex: 1; background: #111; border: 1px solid var(--border-light);
  border-radius: 4px; color: var(--white); font-size: 0.76rem;
  padding: 6px 10px; outline: none;
  transition: border-color var(--transition);
}
.chat-input-row input:focus { border-color: #333; }
.chat-send {
  background: var(--white); color: var(--black);
  border: none; border-radius: 4px; padding: 6px 10px;
  font-size: 0.76rem; font-weight: 700; cursor: pointer;
  transition: all var(--transition);
}
.chat-send:hover { box-shadow: 0 0 12px rgba(255,255,255,0.2); }

/* ── Admin button ─────────────────────────────────── */
#admin-btn {
  position: fixed; bottom: 18px; left: 18px; z-index: 150;
  width: 26px; height: 26px;
  background: none; border: 1px solid #181818;
  border-radius: 4px; cursor: pointer;
  opacity: 0.25; transition: opacity var(--transition), border-color var(--transition);
  display: flex; align-items: center; justify-content: center;
}
#admin-btn:hover { opacity: 0.9; border-color: #303030; }
#admin-btn svg { width: 11px; height: 11px; fill: var(--muted); }

/* ── Misc ─────────────────────────────────────────── */
.divider { height: 1px; background: var(--border); }
.section-label {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.tag {
  display: inline-flex; align-items: center;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  border: 1px solid var(--border-light);
  color: var(--muted-light);
  cursor: pointer;
  transition: all var(--transition);
}
.tag:hover, .tag.active { border-color: var(--white); color: var(--white); }
.tag.nsfw { border-color: rgba(238,0,85,0.3); color: #e05; }
.tag.nsfw.active { background: rgba(238,0,85,0.08); border-color: #e05; }

.spinner {
  width: 22px; height: 22px;
  border: 2px solid var(--border-light);
  border-top-color: var(--white);
  border-radius: 50%;
  animation: spin 0.65s linear infinite;
}

/* ── Sacred loading screen ──────────────────────────── */
#sacred-loader {
  position: fixed; inset: 0; z-index: 9997;
  background: #000;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 32px;
  transition: opacity 0.5s ease, transform 0.5s ease;
}
#sacred-loader.hidden {
  opacity: 0;
  pointer-events: none;
}
.loader-logo {
  font-family: var(--font-display);
  font-size: 2.4rem;
  font-weight: 700;
  letter-spacing: -0.04em;
  color: var(--white);
  animation: logoGlow 1.8s ease-in-out infinite;
}
.loader-bar-wrap {
  width: 140px; height: 1px;
  background: #1a1a1a;
  border-radius: 1px;
  overflow: hidden;
  position: relative;
}
.loader-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, transparent, #fff, transparent);
  width: 40%;
  position: absolute;
  left: -40%;
  animation: loaderSlide 1.1s ease-in-out infinite;
  box-shadow: 0 0 12px rgba(255,255,255,0.6);
}
@keyframes loaderSlide {
  0%   { left: -40%; }
  100% { left: 140%; }
}
.loader-dots {
  display: flex; gap: 6px;
}
.loader-dot {
  width: 3px; height: 3px;
  border-radius: 50%;
  background: #333;
  animation: dotPulse 1.1s ease-in-out infinite;
}
.loader-dot:nth-child(2) { animation-delay: 0.15s; }
.loader-dot:nth-child(3) { animation-delay: 0.3s; }
@keyframes dotPulse {
  0%, 100% { background: #282828; transform: scale(1); }
  50%       { background: #fff;    transform: scale(1.4); box-shadow: 0 0 6px rgba(255,255,255,0.5); }
}

/* ── Skeleton cards ─────────────────────────────────── */
.skeleton {
  background: linear-gradient(
    90deg,
    #0e0e0e 0%,
    #161616 40%,
    #1a1a1a 50%,
    #161616 60%,
    #0e0e0e 100%
  );
  background-size: 600px 100%;
  animation: shimmer 1.6s infinite linear;
  border-radius: var(--radius);
}
.skeleton-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.skeleton-thumb {
  width: 100%; aspect-ratio: 16/9;
}
.skeleton-info { padding: 10px 12px 13px; display: flex; flex-direction: column; gap: 8px; }
.skeleton-title { height: 13px; width: 85%; }
.skeleton-meta  { height: 10px; width: 55%; }

.empty-state { text-align: center; padding: 80px 20px; color: var(--muted); font-size: 0.875rem; }
.empty-state h3 { margin-bottom: 8px; color: var(--off-white); }

.login-gate {
  display: flex; align-items: center; justify-content: center;
  flex-direction: column; gap: 16px;
  min-height: 60vh; text-align: center;
}
.login-gate h2 { font-size: 1.2rem; }
.login-gate p { color: var(--muted-light); font-size: 0.875rem; }

/* Clips feed */
.clip-slide video { max-height: 100vh; max-width: 100%; object-fit: contain; }
.clip-nav-btn {
  width: 42px; height: 42px;
  background: rgba(255,255,255,0.08);
  border: none; border-radius: 50%;
  color: var(--white); cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background var(--transition), box-shadow var(--transition);
}
.clip-nav-btn:hover { background: rgba(255,255,255,0.16); box-shadow: 0 0 20px rgba(255,255,255,0.1); }

@media (max-width: 640px) {
  .nav-link { display: none; }
  .footer-inner { grid-template-columns: 1fr; }
  #chat-panel { width: calc(100% - 40px); }
}

/* ══════════════════════════════════════════════════════
   STYLE UPGRADE PASS — glows, polish, refinements
   ══════════════════════════════════════════════════════ */

/* Glow-line dividers */
.divider {
  height: 1px;
  background: linear-gradient(90deg,
    transparent 0%,
    var(--border-light) 20%,
    var(--border-light) 80%,
    transparent 100%
  );
  position: relative;
}
.divider::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg,
    transparent 30%,
    rgba(255,255,255,0.04) 50%,
    transparent 70%
  );
}

/* Card hover — inner top-edge light streak */
.card {
  position: relative;
}
.card::before {
  content: '';
  position: absolute; top: 0; left: 10%; right: 10%; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.06), transparent);
  pointer-events: none;
  z-index: 1;
  transition: opacity 0.3s ease;
  opacity: 0;
}
.card:hover::before { opacity: 1; }

/* Progress bar glow track */
.progress-bg {
  background: linear-gradient(90deg, #111, #161616);
}

/* Navbar glow line when scrolled */
nav.scrolled {
  box-shadow: 0 1px 0 rgba(255,255,255,0.04), 0 4px 24px rgba(0,0,0,0.6);
}

/* Better modal glow */
.modal {
  box-shadow:
    0 0 0 1px rgba(255,255,255,0.04),
    0 0 80px rgba(0,0,0,0.9),
    0 0 40px rgba(255,255,255,0.03);
}

/* Input focus glow ring */
.input:focus, .textarea:focus {
  box-shadow: 0 0 0 2px rgba(255,255,255,0.05), 0 0 20px rgba(255,255,255,0.04);
}

/* Tag active glow */
.tag.active {
  box-shadow: 0 0 12px rgba(255,255,255,0.08);
}

/* Footer brand subtle glow */
.footer-brand {
  text-shadow: 0 0 20px rgba(255,255,255,0.08);
  transition: text-shadow 0.3s ease;
}
.footer-brand:hover {
  text-shadow: 0 0 30px rgba(255,255,255,0.2);
}

/* Player overlay top-glow */
.player-header {
  box-shadow: 0 1px 0 rgba(255,255,255,0.04);
}

/* Section label refined */
.section-label, .s-label {
  position: relative;
  display: inline-block;
}

/* Button primary glow pulse on active */
.btn-primary:active {
  box-shadow: 0 0 40px rgba(255,255,255,0.3);
  transform: translateY(0);
}

/* Skeleton shimmer faster on dark bg */
.skeleton {
  background: linear-gradient(
    90deg,
    #0d0d0d 0%,
    #181818 40%,
    #1c1c1c 50%,
    #181818 60%,
    #0d0d0d 100%
  );
  background-size: 600px 100%;
  animation: shimmer 1.4s infinite linear;
}

/* Video info area subtle gradient */
.video-info {
  background: linear-gradient(180deg, transparent 0%, rgba(0,0,0,0.15) 100%);
}

/* Upload drop zone glow on drag */
#drop-zone:hover {
  border-color: #3a3a3a;
  box-shadow: 0 0 30px rgba(255,255,255,0.04), inset 0 0 30px rgba(255,255,255,0.02);
}

/* Admin panel stat cards */
.stat-card {
  position: relative; overflow: hidden;
}
.stat-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.06), transparent);
}

/* Toast glow */
#toast.show {
  box-shadow: 0 0 30px rgba(0,0,0,0.8), 0 0 16px rgba(255,255,255,0.04);
}

/* Nav chat panel glow */
#nav-chat-panel {
  box-shadow: 0 20px 60px rgba(0,0,0,0.9), 0 0 0 1px rgba(255,255,255,0.04) !important;
}

/* Clip side buttons */
.clip-side-btn {
  box-shadow: 0 0 0 1px rgba(255,255,255,0.06);
}

/* Loader logo glow stronger */
.loader-logo {
  text-shadow: 0 0 40px rgba(255,255,255,0.2);
}

/* Section title — slight gradient text on hover */
.s-title {
  transition: text-shadow 0.3s ease;
}

/* About/feature/people cards top highlight edge */
.about-grid, .features-grid, .people-grid {
  position: relative;
}
.about-grid::before,
.features-grid::before,
.people-grid::before {
  content: '';
  position: absolute; top: 0; left: 5%; right: 5%; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.06), transparent);
  z-index: 1;
  pointer-events: none;
}

/* Scrollbar global styling */
* { scrollbar-width: thin; scrollbar-color: #1e1e1e transparent; }
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #1e1e1e; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #2a2a2a; }

/* Selection highlight */
::selection { background: rgba(255,255,255,0.12); color: var(--white); }


/* ── Filter buttons (ALL / SFW / NSFW) ─────────────────── */
.filter-btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 5px 14px;
  border-radius: 6px;
  font-size: 0.72rem; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase;
  cursor: pointer;
  border: 1px solid var(--border-light);
  background: transparent;
  color: var(--muted-light);
  transition: all 0.15s ease;
  font-family: var(--font-body);
}
.filter-btn:hover { border-color: #3a3a3a; color: var(--white); }
.filter-btn.active {
  background: var(--white);
  color: var(--black);
  border-color: var(--white);
  box-shadow: 0 0 14px rgba(255,255,255,0.15);
}
.filter-btn.nsfw-btn { border-color: rgba(238,0,85,0.25); color: #e05; }
.filter-btn.nsfw-btn:hover { border-color: #e05; background: rgba(238,0,85,0.06); }
.filter-btn.nsfw-btn.active { background: #e05; color: #fff; border-color: #e05; box-shadow: 0 0 14px rgba(238,0,85,0.25); }
