html {
    scrollbar-width: none;
    overflow-y: scroll;
    /*スクロールバー非表示（IE・Edge）*/
    -ms-overflow-style: none;
    /*スクロールバー非表示（Firefox）*/
    scrollbar-width: none !important;
}

html {
    scrollbar-width: none;
    overflow-y: scroll;
}

/* ローディング表示 */
.small_window_loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0,0,0,0.85);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: opacity 0.3s;
}
.loader_spinner {
    border: 6px solid #333;
    border-top: 6px solid #67c08a;
    border-radius: 50%;
    width: 48px;
    height: 48px;
    animation: spin 1s linear infinite;
    margin-bottom: 18px;
}
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
.loader_text {
    color: #fff;
    font-size: 18px;
    letter-spacing: 0.1em;
    text-align: center;
}
/* 
/* © 2026 airkeiba.com All Rights Reserved. 本コードの無断使用を禁じます。 */

html {
    scrollbar-width: none;
    overflow-y: scroll;
}
html::-webkit-scrollbar {
    display: none;
}
body {
    background-color: black;
    color: white;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    overflow-x: hidden;
}

.small_window_topbar {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(0, 0, 0, 0.92);
    backdrop-filter: blur(6px);
    padding: 6px 10px 10px 10px;
    margin-bottom: 0px;
    /* 下線削除済み */
}

.small_window_toggle {
    display: flex;
    gap: 10px;
    align-items: center;
    width: 100%;
    box-sizing: border-box;
}

.toggle_btn {
    padding: 0px 0px;
    margin: 0px 0;
    border-radius: 10px;
    border: 1px solid #444;
    background: #1a1a1a;
    color: #fff;
    font-size: 14px;
    font-weight: normal;
    cursor: pointer;
    transition: background-color 0.15s ease, border-color 0.15s ease;
    flex: 1 1 0;
    min-width: 0;
    box-sizing: border-box;
}

/* 「非表示」ボタンは横幅を詰める */
#btnHideVideo {
    padding-left: 5px;
    padding-right: 5px;
        background: #3a1a1a;
        border-color: #a44;
    }

    #btnHideVideo.is_active {
        background: #5a2323;
        border-color: #e44;
    }

    #btnHideVideo:hover {
        background: #6a2a2a;
        border-color: #ff6666;
    }

.toggle_btn:hover {
    background: #262626;
    border-color: #777;
}

.toggle_btn.is_active {
    background: #2b4a39;
    border-color: #67c08a;
}

.hide_mode_hint {
    margin-top: 8px;
    color: #bbb;
    font-size: 12px;
    padding: 0 10px 0 10px;
}
.small_window_all {
    width: 100%;
    height: auto;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
    padding: 0 10px 10px 10px;
    margin: 0;
    box-sizing: border-box;
    min-width: 0;
}
.local_file_player_btn {
    grid-column: 1 / -1;
    width: 250px;
    height: 30px;
    font-size: 14px;
    border: 3px solid #ffffff;
    border-radius: 5px;
    transition: background-color 0.3s ease;
    background-color: rgba(0, 0, 0, 0.8);
    color: rgb(255, 255, 255);
    cursor: pointer;
}
.local_file_player_btn:hover {
    background-color: #868686;
}
.small_window {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100%;
    box-sizing: border-box;
}

.small_window.hide_mode {
    gap: 10px;
    padding: 10px;
    border: 1px solid #2a2a2a;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.03);
}

.channel_title {
    font-size: 12px;
    line-height: 1.3;
    color: #ddd;
    word-break: break-word;
}
.youtube_ifreme {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    border-radius: 10px;
    background: black;
    display: block;
    border: 2px solid #333;
}

/* small_window: YouTubeデータなし表示 */
.small_window_empty_state {
    grid-column: 1 / -1;
    border: 1px dashed #444;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.04);
    color: #ddd;
    padding: 16px 14px;
    text-align: center;
    box-sizing: border-box;
}
.small_window_btn {
    position: absolute;
    top: -8px;
    right: 8px;
    width: auto;
    min-width: 60px;
    height: 45px;
    padding: 0 15px;
    font-size: 18px;
    font-weight: bold;
    border: 2px solid #ffffff;
    border-radius: 8px;
    transition: background-color 0.3s ease;
    background-color: rgba(0, 0, 0, 0.7);
    color: rgb(255, 255, 255);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    margin-top: calc(16.25% - 22.5px - 8px);
    margin-right: 8px;
    box-sizing: border-box;
    max-width: 100%;
}

/* 非表示モードではボタンを幅いっぱいにしてはみ出し防止 */
.small_window.hide_mode .small_window_btn {
    position: static;
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 0 8px;
    height: 42px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: normal;
}
.small_window_btn:hover {
    background-color: rgba(0, 0, 0, 0.9);
    border-color: #ffff00;
}
.pr_dummy_btn {
    cursor: pointer;
    pointer-events: auto;
    color: #ff1e1e;
    border: 2px solid #ff1e1e;
}
.PR_btn {
    border: 3px solid #ff1e1e;
}
/* 
/* © 2026 airkeiba.com All Rights Reserved. 本コードの無断使用を禁じます。 */
