        body {
            margin: 0;
            font-family: 'Arial', sans-serif;
            background-color: #141414; /* тёмный фон Netflix */
            color: #fff;
        }

        .banner {
  display: flex;           /* Включаем flex, чтобы элементы были в ряд */
  align-items: center;     /* Вертикальное выравнивание по центру */
  justify-content: flex-start; /* Выровнять по левому краю */
  gap: 20px;               /* Расстояние между картинкой и заголовком */
}

.banner img {
  height: 90px;            /* Высота картинки, можно менять под дизайн */
  width: auto;
}

.banner h1 {
  margin: 0;               /* Убираем стандартные отступы h1 */
  font-size: 32px;         /* Размер заголовка */
}

        h1 {
            text-align: flex-start;
            margin: 20px 0;
            font-size: 2.5rem;
        }

        /* Кнопка загрузки */
        .upload-btn {
            display: block;
            width: 200px;
            text-align: center;
            margin: 10px auto 30px auto;
            padding: 10px 0;
            background-color: #e50914;
            color: white;
            text-decoration: none;
            border-radius: 5px;
            font-weight: bold;
            transition: background 0.3s;
        }
        .upload-btn:hover {
            background-color: #f6121d;
        }

        /* Баннер */
  .banner-container {
  display: flex;           /* Включаем flex */
  align-items: center;     /* Выравниваем по вертикали */
  justify-content: flex-start; /* Выровнять по левому краю */
  gap: 20px;               /* Отступ между картинкой и текстом */
}


.banner-text {
  font-size: 24px;
  font-weight: bold;
}

        .banner img {
            width: 15%;
            max-width: 100px; /* уменьшили баннер */
            border-radius: 15px;
            box-shadow: 0 0 30px rgba(255, 255, 255, 0.2);
            transition: transform 0.3s;
        }
        .banner img:hover {
            transform: scale(1.02);
        }

        /* Каталог видео */
        .grid {
            display: flex;
            flex-wrap: wrap;
            justify-content: center;
            gap: 20px;
            padding: 0 20px;
        }
        
.card {
    background-color: #1e1e1e;
    width: 400px; /* 🔥 меняешь здесь размер */
    aspect-ratio: 16 / 10; /* ✅ всегда будет 16:9 */
    
    border-radius: 12px;
    overflow: hidden;
    text-decoration: none;
    color: #fff;

    display: flex;
    flex-direction: column;
    justify-content: flex-end;

    transition: transform 0.3s, box-shadow 0.3s;
}

        .card:hover {
            transform: scale(1.05);
            box-shadow: 0 10px 25px rgba(0,0,0,0.7);
        }

        .card img {
            width: 100%;
            height: 200px;
            object-fit: cover;
        }

        .no-preview {
            width: 100%;
            height: 300px;
            display: flex;
            align-items: center;
            justify-content: center;
            background-color: #333;
            font-size: 3rem;
        }

        .card h3 {
            text-align: center;
            padding: 3px;
            font-size: 1rem;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;


        /*PLAYER*/

body {
    margin: 0;
    background: #111;
    color: white;
    font-family: Arial, sans-serif;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 10px;
}

video {
    width: 100%;
    max-width: 1000px;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0,0,0,0.7);
    background: black;
    max-height: 80vh;
}

select, input, button {
    padding: 8px;
    margin: 5px;
    border-radius: 5px;
    border: none;
    font-size: 16px;
}

select, input { background: #222; color: white; }
button { background: #555; color: white; cursor: pointer; }

#info, #userSettings {
    width: 100%;
    max-width: 1000px;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    margin-top: 10px;
}

#chat {
    width: 100%;
    max-width: 1000px;
    height: 250px;
    border: 1px solid #333;
    border-radius: 8px;
    padding: 10px;
    overflow-y: auto;
    background: #222;
    margin-top: 10px;
}

/* Overlay Chat */
#overlayChat {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 300px;
    max-height: 50%;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 8px;
    padding: 5px;
    overflow-y: auto;
    color: white;
    font-size: 14px;
    display: none;
    z-index: 1000;
}

#overlayChat .message span {
    font-weight: bold;
}

#toggleOverlayChat {
    position: absolute;
    top: 5px;
    right: 5px;
    background: rgba(0,0,0,0.7);
    color: white;
    border: none;
    border-radius: 5px;
    padding: 2px 5px;
    cursor: pointer;
    z-index: 1001;
}
#backButton {
        
    position: fixed;      /* фиксируем */
    top: 15px;            /* отступ сверху */
    left: 15px;           /* отступ слева */
    background: white;    /* белый фон */
    color: black;         /* чёрный текст */
    padding: 8px 16px;
    border-radius: 6px;   /* прямоугольник со слегка скруглёнными краями */
    text-decoration: none;
    font-weight: bold;
    z-index: 10000;       /* поверх всего */
    box-shadow: 0 4px 10px rgba(0,0,0,0.4);
}

#backButton:hover {
    background: #f0f0f0;
}

/* Mobile adaptation */
@media (max-width: 600px) {
    video {
        border-radius: 5px;
        max-height: 60vh;
    }
    select, input, button {
        font-size: 14px;
        padding: 6px;
    }
    #info, #userSettings {
        flex-direction: column;
        align-items: flex-start;
    }
    #chat {
        height: 200px;
    }
    #overlayChat {
        width: 80%;
        top: 5%;
        right: 10%;
        max-height: 40%;
        font-size: 12px;
    }
    #backButton {
        position: fixed;      /* фиксируем */
        top: 15px;            /* отступ сверху */
        left: 15px;           /* отступ слева */
        background: white;    /* белый фон */
        color: black;         /* чёрный текст */
        padding: 8px 16px;
        border-radius: 6px;   /* прямоугольник со слегка скруглёнными краями */
        text-decoration: none;
        font-weight: bold;
        z-index: 10000;       /* поверх всего */
        box-shadow: 0 4px 10px rgba(0,0,0,0.4);
    }

    #backButton:hover {
        background: #f0f0f0;
    }

}