.media {
    width: 100%;
    min-height: 100vh;
    min-height: 100dvh;
    height: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    flex-direction: column;
    gap: 50px;
    padding: 30px 0px;
}

.mediayt {
    width: 100%;
    min-height: 100vh;
    min-height: 100dvh;
    height: auto;
    display: flex;
    align-items: center;
    flex-direction: column;
    gap: 50px;
    padding: 30px 0px;
}

.mediaTop {
    width: 100%;
    height: auto;
    position: fixed;
    top: 70px;
    display: flex;
    justify-content: center;
    text-align: center;
    align-items: center;
    background-color: #424242;
    z-index: 50;
}

.mediaTopContent {
    width: 100%;
    max-width: 1200px;
    display: flex;
    justify-content: center;
    text-align: center;
    align-items: center;
    overflow: hidden;
    overflow-x: auto;
    justify-content: start;
}

.mediaTopContentItem {
    width: 100%;
    padding: 5px 30px;
    margin: 0px;
    background-color: #424242;
    color: white;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    flex: 1;
}

.mediaTopContentItem h2,
.mediaTopContentItemActive h2 {
    font-size: 15px;
}

.mediaTopContentItemActive {
    width: 100%;
    padding: 5px 30px;
    font-size: 12px;
    margin: 0px;
    background-color: #ffffff;
    color: black;
    cursor: pointer;
    text-decoration: none;
    flex: 1;
}

.mediaTopContentItem:hover {
    background-color: #616161;

}

.yt-bg {
    background-image: url("../img/bg.webp");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.tk-bg {
    background-image: url("../img/bg.webp");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.ig-bg {
    background-image: url("../img/bg.webp");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.fb-bg {
    background-image: url("../img/bg.webp");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.media-content {
    width: 85%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    padding: 50px 0px;
    border-radius: 60px 0px 60px 0px;
}

.media-content h1 {
    font-size: 36px;
    margin: 0px 0px 20px 0px;
    color: white;
    width: 85%;
}

.media-content a {
    text-decoration: none;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 10px;
    background-color: white;
    padding: 10px 30px;
    border-radius: 50px;
    transition: all 0.3s ease;
    border: 3px solid white;
    font-size: 32px;
}

.tk {
    color: #000000;
    background-color: #000000;
}

.ig {
    color: #e30072;
    background-color: #e30072;
}

.fb {
    color: #0765fb;
    background-color: #0765fb;
}

.media-content a i {
    font-size: 32px;
}

.media-content a:hover {
    background-color: transparent;
    color: white;
    border: 3px solid white;
}

.yt {
    width: 90%;
    max-width: 1200px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-top: 130px;
}

.ytContent {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, auto));
    /* ubah 1fr ke auto */
    gap: 20px;
    margin-top: 30px;
    justify-content: start;
    /* agar item tidak stretch full */
}

.ytContentItem {
    height: fit-content;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-radius: 20px;
    overflow: hidden;
    text-decoration: none;
    transition: transform 0.2s ease;
}

.ytContentItem:hover {
    transform: scale(1.02);
    box-shadow: 1px 1px 5px rgba(0, 0, 0, 0.466);
}

.ytContentItem img {
    width: 100%;
    height: auto;
    object-fit: cover;
    aspect-ratio: 16/9;
}

.ytContentItemText {
    width: 100%;
    height: auto;
    background-color: rgb(235, 235, 235);
    padding: 20px 0px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ytContentItemText h3 {
    width: 90%;
    font-size: 15px;
    margin: 0px;
    color: black;
}

.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: 0.3s;
    z-index: 999;
}


.lightbox.show {
    opacity: 1;
    visibility: visible;
}


.lightbox-yt {
    max-width: 90vw;
    max-height: 90vh;
    width: 90vw;
    height: auto;
    aspect-ratio: 16/9;
    object-fit: contain;
    /* pastikan tidak terpotong */
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    animation: zoomIn 0.3s ease;
}

.close {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 40px;
    color: #fff;
    cursor: pointer;
    user-select: none;
}

.media-content-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100vh;
}

.media-content-wrapper2 {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100vh;
    scale: 0.9;
}

blockquote {
    min-width: 200px;
    max-width: 700px;
}

.pagination {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    margin-top: 20px;
    gap: 10px;
}

.pagination-btn {
    padding: 15px 15px;
    border: none;
    background-color: rgb(219, 219, 219);
    color: #000000;
    cursor: pointer;
    font-size: 20px;
    text-decoration: none;
    transition: background-color 0.3s ease;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 10px;
}

.pagination-btn:hover:not(.pagination-active) {
    background-color: rgb(190, 190, 190);
}

.pagination-active {
    background-color: #ff961e;
    color: #000000;
}

.customSelect {
    width: 250px;
    background: #ff961e;
    color: black;
    border-radius: 12px;
    position: relative;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.25);
}

/* Selected box */
.customSelect .selected {
    padding: 12px 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: bold;
}

.customSelect .selected i {
    transition: 0.3s;
}

/* Dropdown list */
.customSelect .options {
    margin-top: 10px;
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: #d6d6d6;
    border-radius: 12px;
    overflow: hidden;
    z-index: 99;
}

/* Normal option */
.customSelect .options div {
    padding: 12px;
    background: #d6d6d6;
    color: black;
    transition: 0.2s;
}

/* Hover putih */
.customSelect .options div:hover {
    background: white;
    color: black;
}

/* ACTIVE biru */
.customSelect .options div.active {
    background: #ff961e;
    color: black;
    font-weight: bold;
}

.ytFilterBar {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
    margin-bottom: 10px;
}

/* SEARCH BOX */
.ytSearchBox {
    flex: 1;
    max-width: 400px;
    display: flex;
    align-items: center;
    background: white;
    border-radius: 12px;
    padding: 10px 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
}

.ytSearchBox i {
    color: #777;
    margin-right: 10px;
}

.ytSearchBox input {
    border: none;
    outline: none;
    font-size: 15px;
    width: 100%;
}

@media (max-width: 700px) {
    .ytFilterBar {
        flex-direction: column;
        align-items: stretch;
    }

    .customSelect {
        width: 100%;
    }

    .ytSearchBox {
        max-width: 100%;
    }
}

@media (min-width: 800px) {
    .media-content h1 {
        font-size: 36px;
    }

    .media-content a {
        padding: 10px 30px;
        font-size: 32px;
    }

    .media-content a i {
        font-size: 32px;
    }
}

@media (max-width: 800px) {
    .media-content h1 {
        font-size: 30px;
    }

    .media-content a {
        padding: 8px 20px;
        font-size: 22px;
    }

    .media-content a i {
        font-size: 22px;
    }

    .mediaTop {
        top: 50px;
    }

    .mediaTopContentItem h2,
    .mediaTopContentItemActive h2 {
        font-size: 13px;
    }
}

@media (max-width: 800px) {
    .yt {
        margin-top: 110px;
    }

    .ytTag {
        height: auto;
    }

    .ytTagItem {
        width: fit-content;
        height: 50px;
    }

    .ytTagItem h2,
    .ytTagItemActive h2 {
        font-size: 15px;
    }
}

@media (max-width: 800px) {
    .yt {
        width: 85%;
    }
}

@media (max-width: 600px) {
    .pagination-btn {
        padding: 3vw 3vw;
        font-size: 3.5vw;
    }

    .pagination {
        gap: 1%;
    }
}

@media (max-width: 400px) {
    .pagination-btn {
        padding: 10px 15px;
        font-size: 15px;
    }

    .pagination {
        gap: 1%;
    }
}