/* CosmoAI Vision — Modern Deep Space Theme */

:root {
  --bg-space: #060912;
  --bg-panel: rgba(14, 21, 37, 0.78);
  --bg-card: rgba(18, 27, 47, 0.7);
  --bg-card-hover: rgba(26, 39, 68, 0.85);
  
  --border-subtle: rgba(72, 102, 150, 0.25);
  --border-glow: rgba(0, 240, 255, 0.4);
  
  --cyan-glow: #00f0ff;
  --cyan-dim: #0099aa;
  --green-glow: #00ffaa;
  --amber-glow: #ffb703;
  --magenta-glow: #ff007f;
  
  --text-primary: #f1f5f9;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-full: 9999px;
  
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: "SF Mono", "Cascadia Code", "JetBrains Mono", Consolas, monospace;
}

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

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

/* Background Canvas */
#starfield {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -1;
  pointer-events: none;
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-space);
}
::-webkit-scrollbar-thumb {
  background: rgba(72, 102, 150, 0.5);
  border-radius: var(--radius-full);
}
::-webkit-scrollbar-thumb:hover {
  background: var(--cyan-dim);
}

/* Navbar */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(6, 9, 18, 0.82);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-subtle);
}

.nav-container {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0.9rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  text-decoration: none;
  cursor: pointer;
}

.brand-icon {
  position: relative;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.orbit-ring {
  position: absolute;
  width: 30px;
  height: 30px;
  border: 2px solid var(--cyan-glow);
  border-radius: 50%;
  border-top-color: transparent;
  animation: rotateRing 6s linear infinite;
}

.core-dot {
  width: 10px;
  height: 10px;
  background: var(--cyan-glow);
  border-radius: 50%;
  box-shadow: 0 0 12px var(--cyan-glow);
}

@keyframes rotateRing {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.logo-title {
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: 1.5px;
  color: var(--text-primary);
}

.logo-title .highlight {
  color: var(--cyan-glow);
  text-shadow: 0 0 12px rgba(0, 240, 255, 0.6);
}

.logo-sub {
  font-size: 0.65rem;
  font-family: var(--font-mono);
  letter-spacing: 1.2px;
  color: var(--text-muted);
}

/* Search Bar */
.search-bar {
  position: relative;
  flex: 1;
  max-width: 520px;
  display: flex;
  align-items: center;
}

.search-icon {
  position: absolute;
  left: 14px;
  color: var(--text-muted);
  pointer-events: none;
}

.search-bar input {
  width: 100%;
  padding: 0.65rem 2.4rem 0.65rem 2.6rem;
  background: rgba(18, 27, 47, 0.8);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  color: var(--text-primary);
  font-size: 0.9rem;
  outline: none;
  transition: all 0.25s ease;
}

.search-bar input:focus {
  border-color: var(--cyan-glow);
  box-shadow: 0 0 14px rgba(0, 240, 255, 0.25);
  background: rgba(22, 33, 58, 0.95);
}

.btn-icon {
  position: absolute;
  right: 12px;
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.2rem;
  cursor: pointer;
}

.btn-icon:hover {
  color: var(--text-primary);
}

/* Status Chip */
.status-chip {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(0, 255, 170, 0.08);
  border: 1px solid rgba(0, 255, 170, 0.25);
  padding: 0.4rem 0.85rem;
  border-radius: var(--radius-full);
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green-glow);
}

.status-dot.pulse {
  box-shadow: 0 0 10px var(--green-glow);
  animation: pulseDot 2s infinite;
}

@keyframes pulseDot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.85); }
}

.status-text {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--green-glow);
  letter-spacing: 0.5px;
}

/* Main Layout */
.main-container {
  max-width: 1440px;
  margin: 0 auto;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 2.8rem;
}

/* Hero Section */
.hero-section {
  position: relative;
  min-height: 440px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  padding: 3rem;
  border: 1px solid var(--border-subtle);
  background: #0d1527;
}

.hero-backdrop {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  transition: opacity 0.5s ease;
  opacity: 0.5;
}

.hero-gradient-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, rgba(6, 9, 18, 0.2) 0%, rgba(6, 9, 18, 0.85) 65%, rgba(6, 9, 18, 0.98) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 820px;
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

.hero-badge .badge-tech {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--cyan-glow);
  background: rgba(0, 240, 255, 0.12);
  border: 1px solid var(--border-glow);
  padding: 0.35rem 0.8rem;
  border-radius: var(--radius-sm);
  letter-spacing: 1px;
}

.hero-title {
  font-size: 2.3rem;
  font-weight: 800;
  line-height: 1.2;
  color: #ffffff;
  text-shadow: 0 2px 10px rgba(0,0,0,0.7);
}

.hero-desc {
  font-size: 1.05rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  align-items: center;
}

.meta-tag {
  font-size: 0.8rem;
  background: rgba(255, 255, 255, 0.08);
  padding: 0.3rem 0.65rem;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-secondary);
}

.meta-tag.tech-highlight {
  background: rgba(0, 255, 170, 0.1);
  border-color: rgba(0, 255, 170, 0.3);
  color: var(--green-glow);
}

.hero-actions {
  display: flex;
  gap: 1rem;
  margin-top: 0.5rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.75rem 1.6rem;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: var(--radius-md);
  border: none;
  cursor: pointer;
  transition: all 0.25s ease;
  text-decoration: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--cyan-glow), #0099ff);
  color: #040814;
  box-shadow: 0 0 16px rgba(0, 240, 255, 0.4);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 24px rgba(0, 240, 255, 0.7);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-primary);
  border: 1px solid var(--border-subtle);
  backdrop-filter: blur(8px);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: var(--text-secondary);
}

/* Telemetry Section */
.telemetry-section {
  background: var(--bg-panel);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.5rem 2rem;
  backdrop-filter: blur(12px);
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.2rem;
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 0.8rem;
}

.section-title-wrap {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.cyber-bracket {
  color: var(--cyan-glow);
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 1.2rem;
}

.section-header h2 {
  font-size: 0.95rem;
  font-family: var(--font-mono);
  letter-spacing: 1.5px;
  color: var(--text-primary);
}

.telemetry-refresh {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--cyan-glow);
}

.telemetry-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.2rem;
}

.hud-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1rem 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  transition: all 0.25s ease;
}

.hud-card:hover {
  border-color: var(--border-glow);
  box-shadow: 0 0 16px rgba(0, 240, 255, 0.12);
}

.hud-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.hud-label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text-muted);
}

.hud-indicator {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 700;
  padding: 0.15rem 0.45rem;
  border-radius: var(--radius-sm);
}

.hud-indicator.active {
  background: rgba(0, 255, 170, 0.15);
  color: var(--green-glow);
  border: 1px solid rgba(0, 255, 170, 0.3);
}

.hud-body {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.hud-stat {
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
}

.stat-name {
  color: var(--text-secondary);
}

.stat-value {
  font-family: var(--font-mono);
  font-weight: 600;
}

.text-cyan { color: var(--cyan-glow); }
.text-green { color: var(--green-glow); }

.progress-bar-wrap {
  width: 100%;
  height: 4px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-full);
  overflow: hidden;
  margin-top: 0.3rem;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--cyan-glow), var(--green-glow));
  border-radius: var(--radius-full);
}

/* Filters Section */
.filters-section {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.filters-top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  padding-bottom: 0.8rem;
  border-bottom: 1px solid var(--border-subtle);
}

.language-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.lang-pill {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  padding: 0.45rem 1rem;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.lang-pill:hover {
  background: rgba(255, 255, 255, 0.12);
  color: var(--text-primary);
  border-color: rgba(255, 255, 255, 0.3);
}

.lang-pill.active {
  background: linear-gradient(135deg, rgba(0, 240, 255, 0.2), rgba(0, 153, 255, 0.25));
  border-color: var(--cyan-glow);
  color: #ffffff;
  box-shadow: 0 0 14px rgba(0, 240, 255, 0.3);
}

.categories-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.filter-pill {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  padding: 0.5rem 1.1rem;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.filter-pill:hover {
  background: var(--bg-card-hover);
  color: var(--text-primary);
  border-color: rgba(255, 255, 255, 0.2);
}

.filter-pill.active {
  background: rgba(0, 240, 255, 0.15);
  border-color: var(--cyan-glow);
  color: var(--cyan-glow);
  box-shadow: 0 0 12px rgba(0, 240, 255, 0.2);
}

.card-lang-badge {
  position: absolute;
  top: 8px;
  right: 8px;
  background: rgba(10, 16, 30, 0.85);
  backdrop-filter: blur(6px);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.2rem 0.5rem;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--text-primary);
  z-index: 2;
}

.card-lang-badge.lang-ru {
  border-color: rgba(255, 183, 3, 0.5);
  color: #ffd166;
}

.library-stats {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* Video Grid Catalog */
.catalog-section {
  width: 100%;
}

.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 1.8rem;
}

.video-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
}

.video-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-glow);
  box-shadow: 0 8px 24px rgba(0, 240, 255, 0.15);
}

.card-thumbnail-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #0f172a;
  overflow: hidden;
}

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

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

.thumb-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(6, 9, 18, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.25s ease;
}

.video-card:hover .thumb-overlay {
  opacity: 1;
}

.play-badge {
  width: 50px;
  height: 50px;
  background: rgba(0, 240, 255, 0.85);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #040814;
  box-shadow: 0 0 16px var(--cyan-glow);
}

.card-duration {
  position: absolute;
  bottom: 8px;
  right: 8px;
  background: rgba(0, 0, 0, 0.8);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  padding: 0.15rem 0.45rem;
  border-radius: var(--radius-sm);
  color: #ffffff;
}

.card-category-tag {
  position: absolute;
  top: 8px;
  left: 8px;
  background: rgba(14, 23, 42, 0.85);
  backdrop-filter: blur(6px);
  font-size: 0.68rem;
  font-family: var(--font-mono);
  color: var(--cyan-glow);
  padding: 0.2rem 0.5rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-glow);
}

.card-body {
  padding: 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  flex: 1;
}

.card-title {
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.35;
  color: var(--text-primary);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-mission {
  font-size: 0.8rem;
  font-family: var(--font-mono);
  color: var(--amber-glow);
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.card-ai-tech {
  font-size: 0.82rem;
  color: var(--green-glow);
  background: rgba(0, 255, 170, 0.08);
  border: 1px solid rgba(0, 255, 170, 0.2);
  padding: 0.4rem 0.6rem;
  border-radius: var(--radius-sm);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-desc {
  font-size: 0.84rem;
  color: var(--text-secondary);
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-footer {
  margin-top: auto;
  padding-top: 0.6rem;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* Empty State */
.empty-state {
  text-align: center;
  padding: 4rem 2rem;
  background: var(--bg-panel);
  border-radius: var(--radius-lg);
  border: 1px dashed var(--border-subtle);
}

.empty-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.empty-state h3 {
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
}

.empty-state p {
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
}

/* Cinema Modal */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(3, 6, 12, 0.92);
  backdrop-filter: blur(16px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.modal-container {
  width: 100%;
  max-width: 1100px;
  background: #0b1120;
  border: 1px solid var(--border-glow);
  box-shadow: 0 0 35px rgba(0, 240, 255, 0.25);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  max-height: 94vh;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.6rem;
  background: rgba(14, 23, 42, 0.85);
  border-bottom: 1px solid var(--border-subtle);
}

.modal-category-badge {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--cyan-glow);
}

.modal-video-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: #ffffff;
}

.modal-close-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
  transition: color 0.2s;
}

.modal-close-btn:hover {
  color: var(--cyan-glow);
}

/* Custom Player Container */
.player-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000000;
}

#videoPlayer {
  width: 100%;
  height: 100%;
  display: block;
}

/* Custom Controls Bar */
.player-controls {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  background: linear-gradient(180deg, transparent 0%, rgba(4, 7, 15, 0.88) 35%, rgba(4, 7, 15, 0.98) 100%);
  padding: 0.6rem 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.player-wrapper:hover .player-controls,
.player-wrapper.paused .player-controls {
  opacity: 1;
}

/* Timeline */
.timeline-container {
  position: relative;
  width: 100%;
  height: 6px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: height 0.15s ease;
}

.timeline-container:hover {
  height: 9px;
}

.timeline-buffered {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  background: rgba(255, 255, 255, 0.35);
  border-radius: var(--radius-full);
  width: 0%;
}

.timeline-progress {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  background: var(--cyan-glow);
  border-radius: var(--radius-full);
  width: 0%;
  box-shadow: 0 0 10px var(--cyan-glow);
}

.timeline-handle {
  position: absolute;
  top: 50%;
  left: 0%;
  width: 12px;
  height: 12px;
  background: #ffffff;
  border-radius: 50%;
  transform: translate(-50%, -50%) scale(0);
  transition: transform 0.15s ease;
  box-shadow: 0 0 6px rgba(0, 0, 0, 0.5);
}

.timeline-container:hover .timeline-handle {
  transform: translate(-50%, -50%) scale(1);
}

.timeline-tooltip {
  position: absolute;
  bottom: 14px;
  left: 0;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.85);
  color: #fff;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  padding: 2px 6px;
  border-radius: var(--radius-sm);
  pointer-events: none;
  display: none;
}

.controls-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.controls-left, .controls-right {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.ctrl-btn {
  background: none;
  border: none;
  color: var(--text-primary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s, transform 0.1s;
}

.ctrl-btn:hover {
  color: var(--cyan-glow);
  transform: scale(1.1);
}

.time-display {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-secondary);
  margin-left: 0.4rem;
}

/* Volume */
.volume-container {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

#volumeSlider {
  width: 70px;
  accent-color: var(--cyan-glow);
  cursor: pointer;
}

/* Speed Selector */
.speed-selector {
  position: relative;
}

.speed-btn {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.1);
  padding: 0.25rem 0.55rem;
  border-radius: var(--radius-sm);
}

.speed-menu {
  position: absolute;
  bottom: 30px;
  right: 0;
  background: #0f172a;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 4px 14px rgba(0,0,0,0.5);
  z-index: 50;
}

.speed-menu button {
  background: none;
  border: none;
  color: var(--text-secondary);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  padding: 0.4rem 0.8rem;
  text-align: left;
  cursor: pointer;
}

.speed-menu button:hover, .speed-menu button.active {
  background: rgba(0, 240, 255, 0.15);
  color: var(--cyan-glow);
}

/* Modal Info Panel */
.modal-info-panel {
  padding: 1.4rem 1.8rem;
  background: #0d1527;
  overflow-y: auto;
  max-height: 240px;
}

.info-tabs {
  display: flex;
  gap: 1.5rem;
  border-bottom: 1px solid var(--border-subtle);
  margin-bottom: 1rem;
}

.info-tab {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 600;
  padding-bottom: 0.6rem;
  cursor: pointer;
  position: relative;
}

.info-tab.active {
  color: var(--cyan-glow);
}

.info-tab.active::after {
  content: "";
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--cyan-glow);
  box-shadow: 0 0 8px var(--cyan-glow);
}

.tab-content p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.tags-container {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.8rem;
}

.tag-badge {
  font-size: 0.72rem;
  font-family: var(--font-mono);
  background: rgba(255, 255, 255, 0.06);
  padding: 0.2rem 0.5rem;
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
}

/* AI Spec Box */
.ai-spec-box .spec-title {
  font-size: 0.95rem;
  color: var(--green-glow);
  margin-bottom: 0.4rem;
}

.ai-spec-box .spec-desc {
  color: var(--text-primary);
  margin-bottom: 0.8rem;
}

.ai-architecture-highlights {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.highlight-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.82rem;
  color: var(--text-secondary);
}

/* Tech Specs Grid */
.tech-specs-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.8rem;
}

.tech-row {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.tech-key {
  font-size: 0.72rem;
  font-family: var(--font-mono);
  color: var(--text-muted);
}

.tech-val {
  font-size: 0.85rem;
  font-family: var(--font-mono);
  color: var(--text-primary);
}

.tech-link {
  font-size: 0.85rem;
  color: var(--cyan-glow);
  text-decoration: underline;
}

/* Footer */
.footer {
  margin-top: 4rem;
  background: rgba(6, 9, 18, 0.95);
  border-top: 1px solid var(--border-subtle);
  padding: 2rem;
}

.footer-content {
  max-width: 1440px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-left {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.footer-brand {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--cyan-glow);
}

.footer-note {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.footer-tech {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--green-glow);
}

/* Utilities */
.hidden { display: none !important; }

/* Responsive adjustments */
@media (max-width: 768px) {
  .nav-container { flex-direction: column; gap: 1rem; }
  .search-bar { max-width: 100%; width: 100%; }
  .hero-section { padding: 1.5rem; min-height: 380px; }
  .hero-title { font-size: 1.6rem; }
  .telemetry-grid { grid-template-columns: 1fr; }
  .video-grid { grid-template-columns: 1fr; }
  .tech-specs-grid { grid-template-columns: 1fr; }
}
