/* public/css/style.css */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.box {
    background: rgba(255, 255, 255, 0.98);
    padding: 40px 30px;
    border-radius: 32px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    max-width: 900px;
    width: 100%;
    backdrop-filter: blur(10px);
    animation: fadeIn 0.5s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* Скролл для результатов */
#searchResults::-webkit-scrollbar {
    width: 8px;
}
#searchResults::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}
#searchResults::-webkit-scrollbar-thumb {
    background: #cbd5e0;
    border-radius: 10px;
}
#searchResults::-webkit-scrollbar-thumb:hover {
    background: #a0aec0;
}

/* Адаптация для мобильных */
@media (max-width: 600px) {
    .box { padding: 25px 20px; }
    .video-card { flex-direction: column; }
    .video-card > div:first-child { width: 100%; height: 180px; }
}

/* Модальное окно */
#videoModal {
    animation: fadeIn 0.2s;
}

#videoModal > div {
    animation: slideUp 0.3s;
}

@keyframes slideUp {
    from { transform: translateY(50px); opacity: 0; }
    to   { transform: translateY(0); opacity: 1; }
}

/* Mobile: search row stacks nicely */
@media (max-width: 520px) {
  #searchRow {
    flex-direction: column;
  }

  #searchBtn {
    width: 100%;
    justify-content: center; /* т.к. кнопка display:flex */
  }
}