/* ===== FONTS ===== */
@font-face {
  font-family: 'Space Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/fonts/space-mono-400.woff2') format('woff2');
  ascent-override: 116%;
  descent-override: 30%;
  line-gap-override: 0%;
  size-adjust: 100%;
}

@font-face {
  font-family: 'Space Mono';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/fonts/space-mono-700.woff2') format('woff2');
  ascent-override: 116%;
  descent-override: 30%;
  line-gap-override: 0%;
  size-adjust: 100%;
}

@font-face {
  font-family: 'Satoshi';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/fonts/satoshi-400.woff2') format('woff2');
  ascent-override: 90%;
  descent-override: 22%;
  line-gap-override: 0%;
  size-adjust: 107%;
}

@font-face {
  font-family: 'Satoshi';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('/fonts/satoshi-500.woff2') format('woff2');
  ascent-override: 90%;
  descent-override: 22%;
  line-gap-override: 0%;
  size-adjust: 107%;
}

@font-face {
  font-family: 'Satoshi';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/fonts/satoshi-700.woff2') format('woff2');
  ascent-override: 90%;
  descent-override: 22%;
  line-gap-override: 0%;
  size-adjust: 107%;
}

@font-face {
  font-family: 'Satoshi';
  font-style: normal;
  font-weight: 900;
  font-display: swap;
  src: url('/fonts/satoshi-900.woff2') format('woff2');
  ascent-override: 90%;
  descent-override: 22%;
  line-gap-override: 0%;
  size-adjust: 107%;
}

/* ===== GLOBAL STYLES — savethat.video ===== */

:root {
  --bg: #0a0a0b;
  --surface: #131316;
  --surface-hover: #1a1a1f;
  --border: #222228;
  --text: #e8e8ec;
  --text-muted: #8e8e9a;
  --accent: #22d67a;
  --accent-dim: #1aad62;
  --accent-glow: rgba(34, 214, 122, 0.15);
  --accent-glow-strong: rgba(34, 214, 122, 0.3);
  --radius: 14px;
  --radius-sm: 8px;
}

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

body {
  font-family: 'Satoshi', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Grain overlay */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  opacity: 0.025;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-repeat: repeat;
}

a { color: inherit; }
img { max-width: 100%; display: block; }

/* ===== ANIMATIONS ===== */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

/* ===== AD SLOTS ===== */
.ad-slot {
  max-width: 728px;
  height: 90px;
  margin: 32px auto;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 12px;
  color: var(--text-muted);
  opacity: 0.6;
}

.ad-slot.in-content {
  max-width: 600px;
  height: 250px;
}

/* Sticky footer ad — mobile only */
.ad-sticky {
  display: none;
}

@media (max-width: 768px) {
  .ad-slot { max-width: 320px; height: 100px; }
  .ad-sticky {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: rgba(10, 10, 11, 0.95);
    backdrop-filter: blur(10px);
    border-top: 1px solid var(--border);
    align-items: center;
    justify-content: center;
    z-index: 1000;
    font-size: 12px;
    color: var(--text-muted);
  }
  .ad-sticky .close-btn {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 6px;
    color: var(--text-muted);
    font-size: 14px;
    cursor: pointer;
    font-family: monospace;
  }
  body { padding-bottom: 70px; }
}
