.yt-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    transition: all 0.5s ease;
}

.yt-item {
    display: flex;
    flex-direction: column;
}

/* Card container youtube/spotify */
.yt-item {
    background-color: var(--white);
    padding: 10px;
    border-radius: 20px;
}

.yt-item .inner-text {
    display: flex;
    flex-direction: column;
}

.yt-item .inner-text p {
    margin: 0;
    padding: 0;
    height: 15px;
    transform: translateY(-8px);
}

.yt-thumb-wrapper {
    width: 100%;
    overflow: hidden;
    border-radius: 12px;
}

.yt-thumb-wrapper img {
    width: 100%;
    display: block;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.yt-item:hover .yt-thumb-wrapper img {
    transform: scale(1.05);
}

.yt-title {
    margin-top: 10px;
    font-size: 14px;
    line-height: 1.4;
    font-family: 'Lilita One', sans-serif;
    color: black;
}

.yt-buttons {
    margin-top: auto;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.yt-btn {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 12px;
    text-decoration: none;
    border: 1px solid var(--grey);
}

.yt-pagination-wrapper {
    margin-top: 20px;
    text-align: center;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.yt-nav-btn {
    padding: 6px 12px;
    border-radius: 4px;
    border: 1px solid var(--grey);
    background: #fff;
    cursor: pointer;
    font-size: 12px;
}

.yt-nav-btn:disabled {
    opacity: 0.4;
    cursor: default;
}

.yt-page-buttons {
    display: inline-flex;
    gap: 4px;
    align-items: center;
}

.yt-page-btn {
    padding: 4px 8px;
    border-radius: 4px;
    border: 1px solid var(--grey);
    background: var(--white);
    cursor: pointer;
    font-size: 12px;
}

.yt-page-btn.is-active {
    font-weight: 600;
    border-color: var(--black)
}

.yt-page-ellipsis {
    font-size: 12px;
    padding: 0 4px;
    opacity: 0.7;
}

.yt-page-info {
    margin-top: 8px;
    font-size: 13px;
    opacity: 0.7;
}

/* Search input */
.yt-search-input {
    width: 100%;
    max-width: 400px;
    padding: 8px 12px;
    margin: 0 0 16px 0;
    border-radius: 999px;
    border: 1px solid var(--grey);
    font-size: 14px;
    outline: none;
}

.yt-search-input:focus {
    border-color: var(--black);
}

/* Fix prev/next buttons icons */
#yt-prev,
#yt-next {
    border-color: var(--white);
    border-radius: 100%;
    padding: 5px;
    border-width: 2px;
    background-color: transparent;
}

#yt-prev .icon,
#yt-next .icon {
    mask-image: url("../icons/leftarrow-icon.svg");
    mask-position: center;
    mask-size: cover;
    mask-repeat: no-repeat;
    background-color: var(--white);
    width: 12px;
    height: 12px;
}

#yt-next .icon {
    mask-image: url("../icons/rightarrow-icon.svg");
}

.yt-page-ellipsis {
    color: var(--white);
    font-size: 20px;
    font-weight: 700;
}

.yt-page-btn {
    background-color: transparent;
    border-radius: 2px;
    color: var(--white);
    transition: all 0.5s ease;
}

.yt-page-btn:hover {
    border-color: var(--mainColor);
    background-color: var(--mainColor);
    color: var(--white);
}

.yt-page-btn.is-active {
    border-color: var(--mainColor);
    background-color: var(--mainColor);
    color: var(--white);
}

.yt-item .yt-title {
    font-size: 20px;
    font-weight: 400;
}

.yt-item .yt-btn-spotify,
.yt-item .yt-btn-youtube {
    background-color: var(--mainColor);
    color: var(--white);
    padding: 2px 4px;
    border-radius: 5px;
    display: flex;
    height: fit-content;
    min-height: 30px;
    align-items: center;
    border-color: transparent;
    font-size: 12px;
}

.yt-item .yt-btn-spotify:hover,
.yt-item .yt-btn-youtube:hover {
    background-color: var(--secundaryColor);
    transition: all 0.5s ease;
}

.yt-item .yt-btn-spotify .icon,
.yt-item .yt-btn-youtube .icon {
    mask-image: url("../icons/spotify-icon.svg");
    mask-position: center;
    mask-size: cover;
    mask-repeat: no-repeat;
    background-color: var(--white);
    width: 24px;
    height: 24px;
    margin-right: 5px;
}

.yt-item .yt-btn-youtube .icon {
    height: 18px;
    border-radius: 2px;
    background-image: url("../icons/youtube-icon.png");
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    mask-image: none;
}

.yt-item-animated {
    opacity: 0;
    animation: ytFadeIn 0.45s ease forwards;
}

/* Load more button */
#yt-load-more.yt-load-more {
    background-color: var(--mainColor);
    color: var(--white);
    font-size: 17px;
    padding: 15px 20px;
    border-radius: 10px;
    margin: 30px auto;
    display: block;
    border: none;
    cursor: pointer;
    font-family: 'Neue Haas Grotesk Display Pro', Sans-serif;
    transition: all 0.5s ease;
}

#yt-load-more.yt-load-more:hover {
    transform: scale(103%);
}

.yt-spotify-grid-wrapper {
    display: flex;
    align-items: center;
    flex-direction: column;
}


/* Upper container */
.upper {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    margin-bottom: 40px;
    width: 100%;
}

.upper .inputcontainer {
    position: relative;
}

.upper .inputcontainer .search-icon {
    position: absolute;
    top: 18px;
    right: 15px;
    width: 12px;
    height: 15px;
    mask-image: url("../icons/search-icon.svg");
    mask-size: cover;
    mask-position: center;
    mask-repeat: no-repeat;
    background-color: rgb(203, 203, 203);
}

.upper input {
    margin-bottom: 0;
    height: 50px;
    width: 180px;
    background-color: transparent;
    color: var(--white);
    font-size: 17px;
    border-radius: 10px;
    font-family: 'Neue Haas Grotesk Display Pro', Sans-serif;

}

.upper input:active,
.upper input:focus {
    border-color: var(--grey);
}

.upper h2 {
    font-size: 70px;
    width: fit-content;
    margin: 0;
    margin-right: auto;
    color: var(--white);
    font-family: 'Gagalin', sans-serif;
    margin-right: auto;
}

.upper .yt-btn-view-channel {
    background-color: var(--mainColor);
    color: var(--white);
    padding: 8px 10px;
    border-radius: 10px;
    display: flex;
    height: fit-content;
    min-height: 30px;
    align-items: center;
    border-color: transparent;
    font-size: 17px;
    font-weight: 400;
    margin-left: 10px;
    min-width: 150px;
    font-family: 'Neue Haas Grotesk Display Pro', Sans-serif;
}

.upper .yt-btn-view-channel:hover {
    transform: scale(105%);
}

.upper .yt-btn-view-channel .icon {
    height: 18px;
    border-radius: 2px;
    background-image: url("../icons/youtube-icon.png");
    background-position: center;
    background-size: cover;
    width: 24px;
    margin-right: 4px;
    background-repeat: no-repeat;
    mask-image: none;
}

.upper .container {
    display: flex;
}

.no-videos {
    width: 100%;
    align-items: start;
    color: var(--white);

}

@keyframes ytFadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive: tablet / mobile */
@media (max-width: 1024px) {
    .yt-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 767px) {
    .yt-grid {
        grid-template-columns: 1fr;
    }

    .upper {
        flex-direction: column;
        padding: 0;
    }

    .upper .container {
        width: 100%;
    }

    .upper h2 {
        font-size: 43px;
        margin-right: auto;
        margin-bottom: 20px;
    }

    .upper {
        padding: 15px 10px 0;
    }

    .upper .inputcontainer {
        min-width: auto;
        width: 100%;
        padding-right: 10px;
    }

    .upper input {
        width: 100%;
        max-width: 100%;
        padding: 8px 0 8px 8px;
        font-size: 16px;
        height: 45px;

    }

    .upper .inputcontainer .search-icon {
        top: 15px;
        right: 20px;
    }



    .upper .yt-btn-view-channel {
        min-width: auto;
        width: auto;
        font-size: 16px;
        text-wrap: nowrap;
    }

    .yt-item .yt-btn-spotify,
    .yt-item .yt-btn-youtube {
        min-height: 40px;
    }
}