/* ОБЩЕЕ */
* {
    box-sizing: border-box;
}

/* СКРЫТЬ СКРОЛЛБАР */
::-webkit-scrollbar {
    width: 0;
    height: 0;
}

body {
    margin: 0;
    font-family: Arial, sans-serif;
    color: white;

    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;

    scrollbar-width: none; /* Firefox */
}

/* ШАПКА */
header {
    position: sticky;
    top: 0;
    z-index: 10;

    display: flex;
    justify-content: space-between;
    align-items: center;

    padding: 14px 30px;
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(4px);
}

.logo img {
    height: 65px;
}

/* НАВИГАЦИЯ */
nav a {
    margin-left: 20px;
    text-decoration: none;
    color: white;
    font-size: 16px;
}

/* КОНТЕНТ */
.container {
    display: flex;
    gap: 30px;
    padding: 30px;
}

/* ВИДЕО-СЕТКА */
.videos {
    flex: 1;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;

    /*max-height: calc(100vh - 120px);
    overflow-y: auto;*/
}

/* КАРТОЧКА */
.video-item {
    cursor: pointer;
    border-radius: 14px;
    overflow: hidden;
    transition: 0.25s;
}

.video-item img {
    width: 100%;
    display: block;
    
}

.video-item:hover {
    transform: scale(1.06);
    box-shadow: 0 0 20px rgba(140, 60, 255, 0.6);
}

/* ПРАВАЯ ПАНЕЛЬ */
.right-info {
    width: 620px;
    padding: 20px;
    font-size: 18px;
    line-height: 1.5;
    /* background: rgba(0, 0, 0, 0.45); */
    border-radius: 14px;
    height: fit-content;
}

/* === ПОДВАЛ === */
  footer {
    background-color: #cccccc;
    padding: 30px 0;
    display: flex;
    justify-content: center;
    gap: 25px;
  }

  footer a {
    text-decoration: none;
  }

  .footer-btn {
    background: #1a1a1a;
    color: white;
    border: 2px solid #444;
    padding: 12px 28px;
    border-radius: 30px;
    font-weight: bold;
    letter-spacing: 1px;
    transition: all 0.3s ease;
  }

  .footer-btn:hover {
    background: #b600f7;
    border-color: #b600f7;
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 0 12px #b600f7;
  }
  
/* ===== АДАПТИВ ===== */

/* Планшет */
@media (max-width: 1024px) {
    .videos {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Телефон */
@media (max-width: 768px) {
    header {
        flex-direction: column;
        gap: 10px;
    }

    .container {
        flex-direction: column;
        padding: 20px;
    }

    .videos {
        grid-template-columns: repeat(2, 1fr);
        max-height: none;
    }

    .right-info {
        width: 100%;
        text-align: center;
    }
}

/* Маленький телефон */
@media (max-width: 480px) {
    .videos {
        grid-template-columns: 1fr;
    }
}
