@charset "utf-8"; .play-list iframe {
    margin: 10px 0 0;
    max-width: 100%;
}

.play-list .iframe-wrap.kick_direct {
    padding-bottom: 42%;
    overflow: hidden;
    height: auto;
    position: relative;
    display: flex;
    justify-content: center;
    background: black;
}

.play-list .iframe-wrap.kick_direct iframe {
    height: 1000px;
    width: 73%;
    height: 100%;
    min-height: unset !important;
    margin: 0 auto;
    display: block;
    position: absolute;
}
.play-list .iframe-wrap.kick_direct iframe {
    margin-top: -55px;
    height: 1000px;
}

.livestream-admin {
}

.livestream-admin .inputwrap {
    width: 100%;
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    background: #fafafa;
    margin: 5px 0;
    border-radius: 3px;
    padding: 5px;
}

.livestream-admin .explain {
    font-size: 1.2em;
    font-weight: bold;
    color: darkred;
}

.livestream-url {
    flex-grow: 1;
}

.btn-mod {
    width: 100px;
}

.game_wrap_youtube {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    margin-bottom: 0px;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 9px;
}

.game_wrap_youtube>a {
    /* padding-bottom: 15%; */
    display: inline-block;
    position: relative;
    height: 100%;
    overflow: hidden;
    /* margin-bottom: 10px; */
    /* width: 33%; */
}

.game_wrap_youtube a .img {
    display: block;
    /* position: absolute; */
    /* top: 0; */
    /* left: 0; */
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.game_wrap_youtube .img img {
    display: block;
    border: 0;
    width: auto;
    height: 80px;
    margin: 0px auto;
    object-fit: revert;
}

.all-streams-container {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    align-items: flex-start;
    margin-top: 10px;
}

.stream-wrap {
    flex: 1 1 450px;
    /* 기본 크기 480px, 공간이 부족하면 줄어들고, 여유가 있으면 늘어남 */
    max-width: 440px;
    min-width: 320px;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 5px;
    background-color: #f9f9f9;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.stream-wrap h5 {
    margin-top: 0;
    margin-bottom: 10px;
    font-size: 1.1em;
    text-align: center;
}

.stream-wrap .iframe-wrap {
    position: relative;
    width: 100%;
    padding-top: 56.25%;
    /* 16:9 Aspect Ratio */
    margin-bottom: 10px;
}
.stream-wrap .iframe-wrap iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}
.stream-wrap .iframe-wrap.kick_direct {
    position: relative;
    width: 100%;
    padding-top: 57.5%;
    /* 16:9 Aspect Ratio */
    margin-bottom: 10px;
        overflow: hidden;
}
.stream-wrap .iframe-wrap.kick_direct iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.stream-wrap .iframe-wrap.kick_direct iframe {
    height: 1000px;
    margin-top: -55px;
}

.stream-wrap .stream-banner img {
    width: 100%;
    border-radius: 8px;
    margin-bottom: 10px;
}

.chat-toggle-wrap {
    text-align: center;
    margin-bottom: 10px;
}

.chat-toggle-btn {
    padding: 8px 16px;
    border: 1px solid #ccc;
    background-color: #fff;
    cursor: pointer;
    border-radius: 5px;
    margin-top: 6px;
}

.chat-content {
    height: 460px;
}

@media all and (max-width: 767px) {
    .game_wrap_youtube {
        gap: 3px;
    }

    .game_wrap_youtube>a {
        width: 33%;
        display: block;
    }

    .game_wrap_youtube a .img img {
        height: auto;
        width: 100%;
    }
}

@media (max-width: 600px) {
    .page-content .play-list .iframe-wrap iframe.is-stuck {
        position: fixed;
        top: 0;
        z-index: 1000;
    }

    .page-content .play-list.is-stuck {
        position: fixed;
        top: 0;
        z-index: 1000;
    }

    .page-content .play-list .iframe-wrap {
        height: auto;
        position: relative;
        /* margin-bottom: 20%; */
        padding-bottom: 50%;
    }

    .page-content .play-list.offair {
        padding-bottom: 0px;
    }

    .play-list .iframe-wrap.kick_direct {
        padding-bottom: 58%;
        overflow: hidden;
    }

    .page-content .play-list .iframe-wrap iframe {
        width: 100%;
        height: 100%;
        min-height: unset !important;
        margin: 0;
        display: block;
        position: absolute;
    }

    .play-list .iframe-wrap.kick_direct iframe {
        height: 1000px;
        margin-top: -55px;
    }
}



html.dark-mode .livestream-admin .btn{
    background-color: #2a2a2a;
    border-color: #444;
    color: #e0e0e0 !important;
}


html.dark-mode .livestream-admin input{
    background-color: #333;
    border-color: #555;
    color: #ccc;
}

html.dark-mode .livestream-admin button.btn-mod
{
    background-color: #414141;
    border: none;
}