/* Design Tokens — matched to ridercam.org cyberpunk neon aesthetic */
@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;700;900&family=Montserrat:wght@300;400;500;600;700;800;900&family=JetBrains+Mono:wght@400;500;600&display=swap');

:root {
  --bg: #050510;
  --surface: #0a0a1a;
  --border: rgba(255, 255, 255, 0.06);
  --text-primary: #e8e8f4;
  --text-secondary: #9a9ab4;
  --cyan: #00f0ff;
  --magenta: #ff00aa;
  --yellow: #f0ff00;
  --green: #00ff88;
  --purple: #b000ff;
  --font-logo: 'Orbitron', sans-serif;
  --font-heading: 'Montserrat', 'Gotham', sans-serif;
  --font-body: 'Montserrat', 'Gotham', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  --sidebar-w: 240px;
  --grid-gap: 6px;
  --thumb-ratio: 56.25%; /* 16:9 */
  --glow-cyan: 0 0 20px rgba(0, 240, 255, 0.3);
  --glow-magenta: 0 0 20px rgba(255, 0, 170, 0.3);
}

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

/* ========== Access Gate ========== */
html.access-locked body > .top-bar,
html.access-locked body > .category-bar,
html.access-locked body > .layout,
html.access-locked body > .modal-overlay,
html.access-locked body > .footer {
  display: none !important;
}
html.access-locked, html.access-locked body { overflow: hidden; }

.access-gate {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg);
  background-image:
    radial-gradient(ellipse at 20% 30%, rgba(0, 240, 255, 0.08), transparent 50%),
    radial-gradient(ellipse at 80% 70%, rgba(255, 0, 170, 0.08), transparent 50%),
    linear-gradient(135deg, transparent 48%, rgba(0, 240, 255, 0.04) 49%, rgba(0, 240, 255, 0.04) 51%, transparent 52%),
    linear-gradient(45deg, transparent 48%, rgba(255, 0, 170, 0.04) 49%, rgba(255, 0, 170, 0.04) 51%, transparent 52%);
  background-size: auto, auto, 120px 120px, 120px 120px;
  animation: gateFadeIn 0.4s ease-out;
}
.access-gate.fade-out { animation: gateFadeOut 0.4s ease-out forwards; }

@keyframes gateFadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes gateFadeOut { from { opacity: 1; } to { opacity: 0; } }

.access-gate-inner {
  text-align: center;
  padding: 32px;
  max-width: 480px;
  width: 100%;
}

.access-logo {
  font-family: var(--font-logo);
  font-size: 72px;
  font-weight: 900;
  letter-spacing: 6px;
  line-height: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
}
.access-logo .logo-rider {
  color: var(--cyan);
  text-shadow: 0 0 30px rgba(0, 240, 255, 0.6), 0 0 60px rgba(0, 240, 255, 0.3);
}
.access-logo .logo-cam {
  color: var(--magenta);
  text-shadow: 0 0 30px rgba(255, 0, 170, 0.6), 0 0 60px rgba(255, 0, 170, 0.3);
}

.access-sub {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 8px;
  color: var(--text-secondary);
  margin-top: 18px;
  margin-bottom: 48px;
  text-transform: uppercase;
}

.access-form {
  display: flex;
  gap: 0;
  width: 100%;
  max-width: 440px;
  margin: 0 auto;
  border: 1px solid var(--cyan);
  box-shadow: 0 0 20px rgba(0, 240, 255, 0.2), inset 0 0 20px rgba(0, 240, 255, 0.04);
  background: rgba(0, 0, 0, 0.4);
}
.access-form.shake { animation: gateShake 0.4s ease-in-out; }

@keyframes gateShake {
  0%, 100% { transform: translateX(0); }
  20% { transform: translateX(-8px); }
  40% { transform: translateX(8px); }
  60% { transform: translateX(-6px); }
  80% { transform: translateX(6px); }
}

.access-input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 500;
  padding: 18px 22px;
  letter-spacing: 1px;
}
.access-input::placeholder { color: var(--text-secondary); opacity: 0.8; }

.access-submit {
  background: var(--cyan);
  color: #000;
  border: none;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 3px;
  padding: 0 36px;
  cursor: pointer;
  transition: background 0.15s ease, box-shadow 0.15s ease;
}
.access-submit:hover {
  background: #4ffaff;
  box-shadow: 0 0 24px rgba(0, 240, 255, 0.5);
}

.access-error {
  margin-top: 18px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1px;
  color: var(--magenta);
  text-transform: uppercase;
  opacity: 0;
  transition: opacity 0.2s ease;
  min-height: 16px;
}
.access-error.show { opacity: 1; }

.access-hint {
  margin-top: 28px;
  font-size: 12px;
  color: var(--text-secondary);
  letter-spacing: 0.5px;
}
.access-hint a {
  color: var(--cyan);
  text-decoration: none;
  border-bottom: 1px solid rgba(0, 240, 255, 0.3);
  transition: border-color 0.15s ease;
}
.access-hint a:hover { border-bottom-color: var(--cyan); }

@media (max-width: 520px) {
  .access-logo { font-size: 52px; letter-spacing: 4px; }
  .access-sub { font-size: 11px; letter-spacing: 6px; margin-bottom: 36px; }
  .access-input { font-size: 14px; padding: 16px 18px; }
  .access-submit { padding: 0 24px; font-size: 12px; }
}
/* ========== /Access Gate ========== */

body {
  background: var(--bg);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 500;
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Scanline overlay — removed for readability */

/* Top Bar */
.top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
  border-bottom: 1px solid var(--border);
  background: rgba(5, 5, 16, 0.9);
  backdrop-filter: blur(20px);
  position: sticky;
  top: 0;
  z-index: 100;
}

.logo {
  font-family: var(--font-logo);
  font-size: 18px;
  font-weight: 900;
  letter-spacing: 3px;
  display: flex;
  align-items: baseline;
  gap: 0;
}

.logo-rider {
  color: var(--cyan);
  text-shadow: 0 0 10px rgba(0, 240, 255, 0.4);
}

.logo-cam {
  color: var(--magenta);
  text-shadow: 0 0 10px rgba(255, 0, 170, 0.4);
}

.logo-sub {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-secondary);
  letter-spacing: 2px;
  margin-left: 10px;
  text-shadow: none;
}

.btn-contact {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 8px 24px;
  background: transparent;
  color: var(--cyan);
  text-decoration: none;
  border: 2px solid var(--cyan);
  transition: all 0.3s;
  position: relative;
  overflow: hidden;
}

.btn-contact::before {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 100%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(0, 240, 255, 0.15), transparent);
  transition: left 0.5s;
}

.btn-contact:hover::before { left: 100%; }
.btn-contact:hover {
  box-shadow: var(--glow-cyan);
  background: rgba(0, 240, 255, 0.08);
}

/* Category Bar */
.category-bar {
  border-bottom: 1px solid var(--border);
  background: rgba(10, 10, 26, 0.95);
  backdrop-filter: blur(12px);
  position: sticky;
  top: 53px;
  z-index: 99;
}

.category-bar-inner {
  display: flex;
  align-items: center;
  padding: 0 24px;
  gap: 16px;
  overflow-x: auto;
  scrollbar-width: none;
}

.category-bar-inner::-webkit-scrollbar { display: none; }

.category-label {
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 3px;
  color: rgba(224, 224, 240, 0.4);
  text-transform: uppercase;
  white-space: nowrap;
  flex-shrink: 0;
}

.category-tabs {
  display: flex;
  gap: 0;
}

.category-tab {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 14px 22px;
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.2s;
  position: relative;
  text-align: left;
  min-width: 180px;
  max-width: 260px;
}

.category-tab:hover {
  background: rgba(0, 240, 255, 0.03);
}

.category-tab.active {
  border-bottom-color: var(--cyan);
  background: rgba(0, 240, 255, 0.04);
}

.category-tab .tab-icon {
  display: none;
}

.tab-info {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.tab-title {
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 0.3px;
  color: rgba(232, 232, 244, 0.6);
  transition: color 0.2s;
}

.category-tab:hover .tab-title {
  color: var(--text-primary);
}

.category-tab.active .tab-title {
  color: #fff;
  text-shadow: 0 0 12px rgba(0, 240, 255, 0.4);
}

.tab-desc {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 400;
  color: var(--text-secondary);
  opacity: 0.6;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.category-tab:hover .tab-desc {
  opacity: 0.6;
}

.category-tab.active .tab-desc {
  opacity: 0.85;
  color: rgba(0, 240, 255, 0.7);
}

/* Category description */
.category-desc {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-secondary);
  padding: 0 0 12px 0;
  border-bottom: 1px solid var(--border);
  margin-bottom: 12px;
  opacity: 0.7;
}

/* Layout */
.layout {
  display: flex;
  flex: 1;
  position: relative;
}

/* Sidebar */
.sidebar {
  width: var(--sidebar-w);
  min-width: var(--sidebar-w);
  background: var(--surface);
  border-right: 1px solid var(--border);
  padding: 20px 16px;
  overflow-y: auto;
  height: calc(100vh - 53px);
  position: sticky;
  top: 53px;
  display: none;
}

.sidebar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.sidebar-title {
  font-family: var(--font-heading);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--cyan);
  text-shadow: 0 0 6px rgba(0, 240, 255, 0.3);
}

.btn-clear {
  font-family: var(--font-mono);
  font-size: 11px;
  padding: 4px 12px;
  background: transparent;
  border: 1px solid var(--magenta);
  color: var(--magenta);
  cursor: pointer;
  transition: all 0.2s;
}

.btn-clear:hover {
  background: rgba(255, 0, 170, 0.1);
  box-shadow: 0 0 12px rgba(255, 0, 170, 0.2);
}

.filter-group {
  margin-bottom: 24px;
}

.filter-group-title {
  font-family: var(--font-heading);
  font-size: 11px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.filter-option {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 5px 0;
  color: var(--text-secondary);
  cursor: pointer;
  font-family: var(--font-mono);
  font-size: 13px;
  transition: color 0.15s;
}

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

.filter-option input[type="checkbox"] {
  appearance: none;
  width: 14px;
  height: 14px;
  border: 1px solid var(--text-secondary);
  background: transparent;
  cursor: pointer;
  position: relative;
  flex-shrink: 0;
  transition: all 0.15s;
}

.filter-option input[type="checkbox"]:checked {
  background: var(--cyan);
  border-color: var(--cyan);
  box-shadow: 0 0 8px rgba(0, 240, 255, 0.4);
}

.filter-option input[type="checkbox"]:checked::after {
  content: '✓';
  position: absolute;
  top: -1px;
  left: 2px;
  font-size: 11px;
  color: var(--bg);
  font-weight: 700;
}

.filter-option input[type="checkbox"]:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 1px;
}

/* Mobile filter toggle */
.filter-toggle {
  display: none;
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 90;
  background: transparent;
  color: var(--cyan);
  border: 2px solid var(--cyan);
  padding: 12px 20px;
  font-family: var(--font-heading);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  cursor: pointer;
  align-items: center;
  gap: 8px;
  box-shadow: var(--glow-cyan);
}

/* Content */
.content {
  flex: 1;
  padding: 20px;
  min-width: 0;
}

/* Summary Bar */
.summary-bar {
  font-family: var(--font-mono);
  font-size: 15px;
  color: var(--text-secondary);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.active-filters {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.filter-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(0, 240, 255, 0.08);
  color: var(--cyan);
  padding: 3px 10px;
  font-size: 11px;
  font-family: var(--font-mono);
  border: 1px solid rgba(0, 240, 255, 0.2);
}

.filter-tag button {
  background: none;
  border: none;
  color: var(--magenta);
  cursor: pointer;
  font-size: 13px;
  padding: 0;
  line-height: 1;
}

/* Grid */
.grid {
  display: grid;
  grid-template-columns: 1fr;
  max-width: 900px;
  margin: 0 auto;
  gap: var(--grid-gap);
}

/* Clip Card */
.clip-card {
  background: var(--surface);
  cursor: pointer;
  overflow: hidden;
  position: relative;
  border: 1px solid transparent;
  transition: all 0.25s;
}

.clip-card:hover {
  border-color: var(--cyan);
  box-shadow: var(--glow-cyan);
  transform: translateY(-3px);
}

.clip-card:focus-visible {
  outline: 2px solid var(--cyan);
  box-shadow: var(--glow-cyan);
}

/* Inline YouTube embed */
.clip-yt-embed {
  position: relative;
  width: 100%;
  padding-top: 56.25%; /* 16:9 */
  background: #000;
}

.clip-yt-embed iframe {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

.clip-thumb-wrap {
  position: relative;
  width: 100%;
  padding-top: var(--thumb-ratio);
  background: #08081a;
  overflow: hidden;
}

.clip-thumb {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.3s;
}

.clip-thumb.loaded { opacity: 1; }

.clip-thumb-placeholder {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: linear-gradient(135deg, #08081a 0%, #0f0f2a 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  font-size: 28px;
}

.clip-duration {
  position: absolute;
  bottom: 8px;
  right: 8px;
  background: rgba(5, 5, 16, 0.85);
  color: var(--cyan);
  font-family: var(--font-mono);
  font-size: 11px;
  padding: 2px 8px;
  border: 1px solid rgba(0, 240, 255, 0.2);
}

.clip-real-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  background: linear-gradient(135deg, var(--cyan), var(--magenta));
  color: var(--bg);
  font-family: var(--font-heading);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 1.5px;
  padding: 3px 10px;
  border-radius: 2px;
  text-shadow: none;
  animation: badge-pulse 2s ease-in-out infinite;
}

@keyframes badge-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.8; }
}

.clip-play-icon {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 44px; height: 44px;
  background: rgba(5, 5, 16, 0.7);
  border: 2px solid var(--cyan);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.2s;
  box-shadow: var(--glow-cyan);
}

.clip-card:hover .clip-play-icon { opacity: 1; }

.clip-play-icon::after {
  content: '';
  display: block;
  width: 0; height: 0;
  border-left: 14px solid var(--cyan);
  border-top: 8px solid transparent;
  border-bottom: 8px solid transparent;
  margin-left: 3px;
}

.clip-meta {
  padding: 10px 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}

.clip-badge {
  font-family: var(--font-mono);
  font-size: 12px;
  padding: 3px 10px;
  border: 1px solid rgba(106, 106, 138, 0.3);
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.clip-badge.pov {
  color: var(--green);
  border-color: rgba(0, 255, 136, 0.4);
  text-shadow: 0 0 6px rgba(0, 255, 136, 0.3);
}

.clip-badge.city {
  color: var(--magenta);
  border-color: rgba(255, 0, 170, 0.4);
  text-shadow: 0 0 6px rgba(255, 0, 170, 0.3);
}

/* Loading State */
.loading-state { display: block; }

.skeleton-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: var(--grid-gap);
}

.skeleton-card {
  background: var(--surface);
  padding-top: calc(var(--thumb-ratio) + 40px);
  animation: pulse 2s ease-in-out infinite;
  border: 1px solid var(--border);
}

@keyframes pulse {
  0%, 100% { opacity: 0.4; border-color: rgba(0, 240, 255, 0.05); }
  50% { opacity: 0.8; border-color: rgba(0, 240, 255, 0.15); }
}

/* Empty & Error States */
.empty-state, .error-state {
  text-align: center;
  padding: 80px 20px;
  color: var(--text-secondary);
}

.empty-icon {
  font-size: 48px;
  margin-bottom: 16px;
  opacity: 0.4;
  filter: drop-shadow(0 0 8px rgba(0, 240, 255, 0.3));
}

.empty-title {
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 8px;
  letter-spacing: 1px;
}

.empty-desc {
  font-size: 14px;
  margin-bottom: 24px;
}

/* Modal */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(5, 5, 16, 0.92);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal {
  background: var(--surface);
  border: 1px solid var(--border);
  max-width: 900px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  box-shadow: 0 0 60px rgba(0, 240, 255, 0.08), 0 0 120px rgba(255, 0, 170, 0.04);
}

.modal-close {
  position: absolute;
  top: 10px;
  right: 14px;
  background: none;
  border: none;
  color: var(--text-secondary);
  font-size: 28px;
  cursor: pointer;
  z-index: 10;
  line-height: 1;
  transition: color 0.15s;
}

.modal-close:hover {
  color: var(--magenta);
  text-shadow: 0 0 8px rgba(255, 0, 170, 0.5);
}

.modal-video-wrap {
  width: 100%;
  background: #000;
  border-bottom: 1px solid var(--border);
}

.modal-video-wrap video {
  width: 100%;
  display: block;
  max-height: 500px;
}

#modalYoutube {
  position: relative;
  width: 100%;
  padding-top: 56.25%; /* 16:9 */
}

#modalYoutube iframe {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
}

.modal-meta {
  padding: 20px 24px;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-secondary);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 30px;
  border-bottom: 1px solid var(--border);
}

.modal-meta .meta-label {
  color: var(--text-secondary);
}

.modal-meta .meta-value {
  color: var(--cyan);
}

.modal-meta .meta-row {
  display: flex;
  gap: 8px;
}

.modal-actions {
  padding: 16px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.btn-nav {
  font-family: var(--font-mono);
  font-size: 12px;
  padding: 8px 16px;
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.2s;
}

.btn-nav:hover {
  color: var(--cyan);
  border-color: var(--cyan);
  box-shadow: 0 0 10px rgba(0, 240, 255, 0.15);
}

.btn-nav:disabled {
  opacity: 0.2;
  cursor: default;
}

.btn-request {
  font-family: var(--font-heading);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 10px 28px;
  background: transparent;
  color: var(--cyan);
  text-decoration: none;
  border: 2px solid var(--cyan);
  transition: all 0.3s;
  position: relative;
  overflow: hidden;
}

.btn-request::before {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 100%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(0, 240, 255, 0.15), transparent);
  transition: left 0.5s;
}

.btn-request:hover::before { left: 100%; }
.btn-request:hover {
  box-shadow: var(--glow-cyan);
  background: rgba(0, 240, 255, 0.08);
}

/* ===== Dataset Documentation ===== */
.dataset-doc {
  max-width: 900px;
  margin: 40px auto 0;
  padding: 40px 48px;
  background: linear-gradient(180deg, rgba(10,10,26,0.95) 0%, rgba(8,8,20,0.98) 100%);
  border: 1px solid var(--border);
  border-top: 2px solid var(--cyan);
  font-family: 'Rajdhani', 'Segoe UI', sans-serif;
  line-height: 1.7;
  color: var(--text-primary);
}

.doc-title {
  font-family: var(--font-heading);
  font-size: 28px;
  font-weight: 900;
  letter-spacing: 2px;
  color: var(--cyan);
  text-shadow: 0 0 12px rgba(0, 240, 255, 0.25);
  margin-bottom: 20px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
}

.doc-lead {
  font-size: 17px;
  line-height: 1.8;
  color: rgba(232, 232, 244, 0.9);
  margin-bottom: 32px;
}

.doc-heading {
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--cyan);
  margin-top: 36px;
  margin-bottom: 14px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(0, 240, 255, 0.1);
}

.doc-subheading {
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--magenta);
  margin-top: 28px;
  margin-bottom: 10px;
}

.dataset-doc p {
  font-size: 16px;
  color: rgba(232, 232, 244, 0.85);
  margin-bottom: 12px;
}

.dataset-doc strong {
  color: var(--text-primary);
}

.dataset-doc code {
  font-family: var(--font-mono);
  font-size: 12px;
  background: rgba(0, 240, 255, 0.06);
  border: 1px solid rgba(0, 240, 255, 0.12);
  padding: 2px 7px;
  color: var(--cyan);
}

/* Feature grid (signal composition) */
.doc-grid-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 16px 0 24px;
}

.doc-feature {
  display: flex;
  gap: 12px;
  padding: 14px 16px;
  background: rgba(0, 240, 255, 0.02);
  border: 1px solid rgba(0, 240, 255, 0.08);
  transition: border-color 0.2s;
}

.doc-feature:hover {
  border-color: rgba(0, 240, 255, 0.2);
}

.doc-feature-icon {
  font-size: 20px;
  flex-shrink: 0;
  margin-top: 2px;
}

.doc-feature div {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.doc-feature strong {
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 700;
  color: var(--text-primary);
}

.doc-feature span:last-child {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* Task tags */
.doc-tasks {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0 24px;
}

.doc-task-tag {
  font-family: var(--font-mono);
  font-size: 13px;
  padding: 5px 14px;
  background: rgba(0, 240, 255, 0.04);
  border: 1px solid rgba(0, 240, 255, 0.15);
  color: var(--cyan);
  letter-spacing: 0.3px;
  transition: all 0.2s;
}

.doc-task-tag:hover {
  background: rgba(0, 240, 255, 0.08);
  box-shadow: 0 0 8px rgba(0, 240, 255, 0.12);
}

/* Code block */
.doc-code {
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.8;
  background: rgba(5, 5, 16, 0.8);
  border: 1px solid var(--border);
  padding: 18px 22px;
  margin: 12px 0 24px;
  overflow-x: auto;
  color: var(--text-primary);
}

.doc-code .code-comment {
  color: var(--text-secondary);
  opacity: 0.6;
}

/* Tables */
.doc-table {
  width: 100%;
  border-collapse: collapse;
  margin: 12px 0 24px;
  font-size: 15px;
}

.doc-table th {
  font-family: var(--font-heading);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--cyan);
  text-align: left;
  padding: 10px 16px;
  border-bottom: 1px solid rgba(0, 240, 255, 0.2);
  background: rgba(0, 240, 255, 0.03);
}

.doc-table td {
  padding: 10px 16px;
  color: rgba(232, 232, 244, 0.85);
  border-bottom: 1px solid rgba(0, 240, 255, 0.05);
}

.doc-table td strong {
  color: var(--text-primary);
  font-weight: 600;
}

.doc-table tbody tr:hover td {
  background: rgba(0, 240, 255, 0.02);
}

/* Responsive doc */
@media (max-width: 768px) {
  .dataset-doc {
    padding: 24px 18px;
    margin-top: 24px;
  }
  .doc-grid-features {
    grid-template-columns: 1fr;
  }
  .doc-title {
    font-size: 16px;
  }
}

/* Footer */
.footer {
  display: flex;
  gap: 24px;
  padding: 20px 24px;
  border-top: 1px solid var(--border);
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-secondary);
}

/* Responsive: Tablet */
@media (max-width: 768px) {
  .sidebar {
    position: fixed;
    bottom: 0; left: 0; right: 0;
    width: 100%;
    height: auto;
    max-height: 60vh;
    z-index: 95;
    border-right: none;
    border-top: 1px solid var(--border);
    transform: translateY(100%);
    transition: transform 0.25s ease;
    overflow-y: auto;
  }

  .sidebar.open { transform: translateY(0); }

  .filter-toggle { display: flex; }

  .category-bar { top: 48px; }
  .category-bar-inner { padding: 0 12px; gap: 8px; }
  .category-label { display: none; }
  .category-tab { padding: 10px 14px; font-size: 12px; gap: 6px; }
  .category-tab .tab-icon { font-size: 14px; }

  .content { padding: 12px; }

  .grid {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  }

  .modal { max-width: 95vw; }
  .modal-meta { grid-template-columns: 1fr; }
}

/* Responsive: Mobile */
@media (max-width: 480px) {
  .grid {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .top-bar { padding: 10px 14px; }
  .logo { font-size: 12px; letter-spacing: 1.5px; }
  .btn-contact { font-size: 10px; padding: 6px 14px; }

  .category-tab .tab-text { display: none; }
  .category-tab .tab-icon { font-size: 18px; }
  .category-tab { padding: 10px 16px; }

  .modal-actions { flex-wrap: wrap; gap: 8px; }
  .btn-request { width: 100%; text-align: center; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .clip-thumb { transition: none; }
  .skeleton-card { animation: none; opacity: 0.4; }
  .sidebar { transition: none; }
  .clip-card { transition: none; }
  .btn-contact::before, .btn-request::before { display: none; }
  body::before { display: none; }
}
