/* Стили для страницы видео-обзоров - Темная тема */

:root {
  --bg: #0b0d10;
  --surface: #111418;
  --muted: #0f1216;
  --text: #e7ecf3;
  --text-dim: #a9b4c0;
  --primary: #3ea6ff;
  --primary-600: #1f8fe9;
  --accent: #67f3a2;
  --border: #242a32;
  --card: #12161b;
  --shadow: 0 10px 30px rgba(0,0,0,.35);
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  background: radial-gradient(1200px 800px at 10% -10%, #0e1218 0%, var(--bg) 60%), var(--bg);
  color: var(--text);
  font: clamp(15px, 1.6vw, 16px)/1.6 Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  text-rendering: optimizeLegibility;
}

.video-hero {
  background: linear-gradient(135deg, 
    #0f1419 0%, 
    #1a1f2a 25%, 
    #162026 50%, 
    #1e252f 75%, 
    #0f1419 100%
  );
  color: var(--text);
  text-align: center;
  padding: 4rem 0;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
}

.video-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(circle at 20% 80%, rgba(62, 166, 255, 0.15) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(103, 243, 162, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 40% 40%, rgba(62, 166, 255, 0.08) 0%, transparent 50%);
  opacity: 1;
}

.video-hero::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.02) 50%, transparent 100%),
    linear-gradient(180deg, transparent 0%, rgba(62, 166, 255, 0.03) 50%, transparent 100%);
  animation: shimmer 8s ease-in-out infinite;
}

@keyframes shimmer {
  0%, 100% { opacity: 0.3; }
  50% { opacity: 0.7; }
}

/* Декоративные частицы */
.video-hero .particles {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  overflow: hidden;
  z-index: 0;
}

.video-hero .particles::before,
.video-hero .particles::after,
.video-hero .particles .particle-1,
.video-hero .particles .particle-2,
.video-hero .particles .particle-3 {
  content: '';
  position: absolute;
  width: 4px;
  height: 4px;
  background: var(--primary);
  border-radius: 50%;
  animation: float 6s ease-in-out infinite;
}

.video-hero .particles::before {
  top: 20%;
  left: 10%;
  animation-delay: 0s;
}

.video-hero .particles::after {
  top: 60%;
  right: 15%;
  background: var(--accent);
  animation-delay: 3s;
}

.video-hero .particles .particle-1 {
  top: 30%;
  left: 80%;
  background: var(--accent);
  animation-delay: 1s;
  width: 3px;
  height: 3px;
}

.video-hero .particles .particle-2 {
  top: 70%;
  left: 20%;
  background: var(--primary);
  animation-delay: 2s;
  width: 2px;
  height: 2px;
}

.video-hero .particles .particle-3 {
  top: 40%;
  left: 60%;
  background: var(--accent);
  animation-delay: 4s;
  width: 5px;
  height: 5px;
}

@keyframes float {
  0%, 100% { 
    transform: translateY(0px) scale(1);
    opacity: 0.6;
  }
  50% { 
    transform: translateY(-20px) scale(1.2);
    opacity: 1;
  }
}

.video-hero h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  margin-bottom: 1rem;
  font-weight: 700;
  position: relative;
  z-index: 1;
  background: linear-gradient(135deg, #e7ecf3 0%, #a9b4c0 50%, #e7ecf3 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: 0 0 30px rgba(231, 236, 243, 0.3);
  animation: titleGlow 4s ease-in-out infinite;
}

@keyframes titleGlow {
  0%, 100% { 
    filter: drop-shadow(0 0 20px rgba(62, 166, 255, 0.3));
  }
  50% { 
    filter: drop-shadow(0 0 30px rgba(103, 243, 162, 0.4));
  }
}

.video-hero .lead {
  font-size: clamp(1rem, 2vw, 1.25rem);
  opacity: 0.9;
  max-width: 600px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.video-grid-section {
  padding: 4rem 0;
  background: var(--muted);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* TikTok-стиль карточки в формате 9:16 - Темная тема */
.video-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: all 0.3s ease;
  cursor: pointer;
  aspect-ratio: 9/16;
  max-width: 320px;
  margin: 0 auto;
  position: relative;
}

.video-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.4);
  border-color: var(--primary);
}

.video-thumbnail {
  position: relative;
  width: 100%;
  height: 70%;
  overflow: hidden;
  background: #000;
}

.video-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

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

.play-button {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 60px;
  height: 60px;
  background: rgba(62, 166, 255, 0.9);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  color: #0a0d11;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
  border: 2px solid rgba(255, 255, 255, 0.2);
}

.video-card:hover .play-button {
  background: var(--primary);
  transform: translate(-50%, -50%) scale(1.1);
  box-shadow: 0 0 20px rgba(62, 166, 255, 0.5);
}

.video-duration {
  position: absolute;
  bottom: 12px;
  right: 12px;
  background: rgba(0, 0, 0, 0.8);
  color: var(--text);
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 500;
  backdrop-filter: blur(4px);
}

.video-info {
  padding: 1rem;
  height: 30%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: var(--card);
}

.video-info h3 {
  font-size: 1rem;
  font-weight: 600;
  margin: 0 0 0.5rem 0;
  color: var(--text);
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.video-info p {
  font-size: 0.875rem;
  color: var(--text-dim);
  margin: 0 0 0.75rem 0;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.video-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.75rem;
  color: var(--text-dim);
}

.video-meta .date {
  background: var(--surface);
  padding: 2px 6px;
  border-radius: 4px;
  border: 1px solid var(--border);
}

/* Видео-модальное окно - Темная тема */
.video-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.95);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  border: none;
  padding: 0;
}

.video-modal::backdrop {
  background: rgba(0, 0, 0, 0.95);
}

.video-container {
  position: relative;
  width: 360px;
  height: 640px;
  border-radius: 12px;
  overflow: hidden;
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
}

.video-player {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 12px;
}

.video-modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 40px;
  height: 40px;
  background: rgba(0, 0, 0, 0.8);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: bold;
  z-index: 10;
  transition: all 0.2s ease;
  backdrop-filter: blur(4px);
}

.video-modal-close:hover {
  background: rgba(255, 0, 0, 0.8);
  border-color: #ff4444;
  transform: scale(1.1);
}

/* Адаптивность */
@media (max-width: 768px) {
  .video-hero h1 {
    font-size: 2rem;
  }
  
  .video-hero .lead {
    font-size: 1rem;
  }
  
  .video-grid {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.5rem;
    padding: 0 1rem;
  }
  
  .video-card {
    max-width: 280px;
  }
  
  .video-container {
    width: 320px;
    height: 568px;
  }
}

@media (max-width: 480px) {
  .video-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .video-card {
    max-width: 100%;
  }
  
  .video-hero {
    padding: 2rem 0;
  }
  
  .video-hero h1 {
    font-size: 1.75rem;
  }
  
  .video-container {
    width: 280px;
    height: 497px;
  }
}

/* Анимация появления карточек */
.video-card {
  animation: fadeInUp 0.6s ease forwards;
  opacity: 0;
  transform: translateY(30px);
}

.video-card:nth-child(1) { animation-delay: 0.1s; }
.video-card:nth-child(2) { animation-delay: 0.2s; }
.video-card:nth-child(3) { animation-delay: 0.3s; }
.video-card:nth-child(4) { animation-delay: 0.4s; }
.video-card:nth-child(5) { animation-delay: 0.5s; }
.video-card:nth-child(6) { animation-delay: 0.6s; }

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Стили для активной ссылки в навигации */
.nav a.active {
  color: var(--primary);
  font-weight: 600;
}

/* Дополнительные стили для соответствия основному сайту */
.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header стили для соответствия основному сайту */
.site-header {
  position: sticky;
  top: 0;
  backdrop-filter: blur(8px);
  background: color-mix(in oklab, var(--surface) 70%, transparent);
  border-bottom: 1px solid var(--border);
  z-index: 50;
}

.header-inner {
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  gap: 16px;
  align-items: center;
  padding: 14px 0;
}

.logo {
  color: var(--text);
  font-weight: 700;
  letter-spacing: .5px;
  text-decoration: none;
}

.nav { display: flex; gap: 18px; }
.nav a {
  color: var(--text-dim);
  text-decoration: none;
  transition: color 0.2s ease;
}

.nav a:hover { color: var(--text); }
.nav a.active { color: var(--primary); }

.cta {
  background: linear-gradient(90deg, var(--primary) 0%, var(--accent) 100%);
  color: #0a0d11;
  text-decoration: none;
  padding: 10px 14px;
  border-radius: 10px;
  font-weight: 600;
  transition: all 0.3s ease;
}

.cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(62, 166, 255, 0.3);
}

/* Footer стили */
.site-footer {
  border-top: 1px solid var(--border);
  background: var(--surface);
  margin-top: 4rem;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 0;
  color: var(--text-dim);
}

.footer-inner a {
  color: var(--text);
  text-decoration: none;
}

/* Мобильная навигация */
@media (max-width: 640px) {
  .header-inner { grid-template-columns: auto 1fr auto; }
  .nav { 
    display: none; 
    position: fixed; top: 60px; right: 12px; left: 12px; 
    background: var(--surface); border: 1px solid var(--border); border-radius: 14px; 
    box-shadow: var(--shadow); padding: 10px; flex-direction: column; gap: 8px; z-index: 60;
  }
  .nav.open { display: flex; }
  .burger { display: inline-flex; background: transparent; color: var(--text); border: 0; font-size: 22px; }
}
