/* Stili generali per la galleria */
.album {
    margin-bottom: 4rem;
}

.album-image {
    width: 100%;
    height: auto;
    object-fit: cover;
    transition: transform 0.3s;
    border-top-left-radius: 0.25rem;
    border-top-right-radius: 0.25rem;
}

.card {
    border: none;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: box-shadow 0.3s, transform 0.3s;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 12px 20px rgba(0, 0, 0, 0.15);
}

.card:hover .album-image {
    transform: scale(1.05);
}

.card-body {
    position: relative;
    background-color: #f9f9f9;
    padding: 1.5rem;
}

.card-text {
    margin-bottom: 1rem;
    font-size: 1.2rem;
    font-weight: 500;
    color: #333;
}

.card .btn-outline-primary, .card .btn-outline-info {
    margin: 0.2rem 0;
    border: none;
    color: #007bff;
    transition: background-color 0.3s, color 0.3s;
}

.card .btn-outline-primary:hover, .card .btn-outline-info:hover {
    background-color: #007bff;
    color: white;
}

@media (max-width: 576px) {
    .album-image {
        height: 150px;
    }

    .card-text {
        font-size: 1rem;
    }
}

@media (min-width: 768px) {
    .album-image {
        height: 200px;
    }
}

.btn {
    border-radius: 25px;
    padding: 10px 20px;
    transition: all 0.3s;
    font-weight: 500;
    letter-spacing: 0.5px;
}

.btn:hover {
    transform: scale(1.05);
    box-shadow: 0px 10px 20px rgba(0, 0, 0, 0.1);
}

.btn-outline-primary {
    border-color: #007bff;
    color: #007bff;
}

.btn-outline-primary:hover {
    background-color: #007bff;
    color: #fff;
}

.btn-outline-info {
    border-color: #17a2b8;
    color: #17a2b8;
}

.btn-outline-info:hover {
    background-color: #17a2b8;
    color: #fff;
}

/* Stili per lo switch */
.switch-container {
    display: flex;
    align-items: center; /* Centra verticalmente */
    justify-content: center; /* Centra orizzontalmente */
    width: 150px;
    height: 50px;
}


.custom-switch {
    position: relative;
    width: 100%;
    height: 100%;
}

.custom-switch input[type="checkbox"] {
    display: none;
}

.custom-switch label {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 2px solid #ddd;
    border-radius: 25px;
    background-color: #f4f4f4;
    cursor: pointer;
    transition: all 0.3s;
}

.switch-text {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50%;
    text-align: center;
    transition: all 0.3s;
    font-weight: 500;
    color: #333;
}

.custom-switch label .switch-text:nth-child(1) {
    left: 5px;
    opacity: 1;
}

.custom-switch label .switch-text:nth-child(2) {
    right: 5px;
    opacity: 0.5;
}

.switch-button {
    position: absolute;
    top: 50%;
    left: 2px;
    transform: translateY(-50%);
    width: 46%;
    height: 36px;
    background-color: #007bff;
    border-radius: 20px;
    transition: all 0.3s;
}

input[type="checkbox"]:checked + label .switch-button {
    left: 52%;
}

input[type="checkbox"]:checked + label .switch-text:nth-child(1) {
    opacity: 0.5;
}

input[type="checkbox"]:checked + label .switch-text:nth-child(2) {
    opacity: 1;
}

/* Modal Video */
.modal {
    display: none;
    position: fixed;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7); /* Sfondo semi-trasparente */
    z-index: 1000;
    overflow: auto;
}

.modal-content {
    background-color: #fefefe;
    margin: 10% auto;
    border: 1px solid #888;
    border-radius: 8px; /* Bordo arrotondato */
    width: 70%;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* Ombra leggera */
}

.close {
    color: #aaaaaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
}

.close:hover, .close:focus {
    color: #000;
    text-decoration: none;
    cursor: pointer;
}

/* Thumbnail Video */
.video-thumbnail {
    width: 100%;
    height: auto;
    transition: transform 0.3s;
    cursor: pointer;
    border-radius: 8px; /* Bordo arrotondato */
}

.video-card:hover .video-thumbnail {
    transform: scale(1.05);
}

/* Card del Canale */
.channel-card {
    background-color: #f9f9f9;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* Ombra leggera */
    text-align: center; /* Centra tutto il testo nella card */
    margin-top: 20px;
}

.channel-image {
    width: 100px;
    height: 100px;
    border-radius: 50%; /* Immagine rotonda */
    margin: 0 auto; /* Centra l'immagine orizzontalmente */
}

.subscribe-btn {
    background-color: #007bff; /* Colore di sfondo */
    color: #fff; /* Colore del testo */
    padding: 10px 20px;
    border-radius: 25px;
    transition: all 0.3s;
    text-decoration: none; /* Rimuove sottolineatura */
    margin-top: 10px; /* Spazio sopra il pulsante */
    display: inline-block; /* Necessario per il padding */
}

.subscribe-btn:hover {
    background-color: #0056b3; /* Colore di sfondo al passaggio del mouse */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Modal Video per mobile */
@media (max-width: 576px) {
    .modal-content {
        width: 90%; /* Fornisce un po' di padding ai lati su schermi piccoli */
    }

    .channel-card {
        padding: 10px;
    }

    .channel-image {
        width: 80px;
        height: 80px;
    }
}

/* Thumbnail Video per mobile */
.video-card {
    margin-bottom: 20px;
}

@media (max-width: 576px) {
    .video-thumbnail {
        width: 100%;
        height: 150px; /* Fissa l'altezza per uniformità */
        object-fit: cover; /* Mantiene le proporzioni dell'immagine */
    }
}

/* Card del Canale per mobile */
@media (max-width: 576px) {
    .channel-card {
        padding: 10px;
    }

    .channel-image {
        width: 70px;
        height: 70px;
    }

    .subscribe-btn {
        font-size: 0.9rem; /* Riduce la dimensione del font */
        padding: 8px 16px;
    }
}
