body {
    margin: 0px;
    padding: 0px;
    background-color: silver;
}

.site-container {
    display: flex;
    flex-direction: column;
    height: 100vh;
    overflow: hidden;
}

.wrapper {
    display: flex;
    height: calc(100vh - 60px);
    overflow: hidden;
}

aside {
    background-color: #242830;
    width: 300px;
    height: 100%;
    overflow-y: auto;
    padding: 15px;
    box-sizing: border-box;
    position: relative;
}

main {
    background-color:#111625;
    flex: 1;
    height: 100%;
    overflow-y: auto;
    padding: 0px;
}

.timeline-header {
    position: sticky;
    top: 0;
    left: 0;
    width: 100%;
    height: 60px;
    background-color: rgba(26, 29, 36, 0.85);
    color: snow;
    z-index: 100;
    padding: 0 15px;
    box-sizing: border-box;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    display: flex;
    align-items: center;
    gap: 10px;
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}

.filter-group {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-left: auto;
}

.filter-group label {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    font-size: 14px;
    cursor: pointer;
}

.global-footer {
    width: 100%;
    height: 60px;
    background-color: #215a75;
    color: #fff;
    font-size: 12px;
    display: flex;
    align-items: center;
    padding: 0 15px;
    box-sizing: border-box;
    z-index: 10;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.group-header:first-child {
    margin-top: 0;
}

input[type="checkbox"] {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    width: 14px;
    height: 14px;
    border-radius: 3px;
    margin: 0 12px 0 0;
    flex-shrink: 0;
    cursor: pointer;
    position: relative;
    box-sizing: border-box;
    background: rgba(0, 0, 0, 0.4); 
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: inset 0 2px 3px rgba(0, 0, 0, 0.5)
                    , 0 1px 1px rgba(255, 255, 255, 0.1);
    transition: background 0.2s, box-shadow 0.2s;
}

input[type="checkbox"]:checked {
    background: #005a99;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.4), 0 0 4px rgba(0, 122, 204, 0.5);
    border-color: rgba(255, 255, 255, 0.2);
}

input[type="checkbox"]:checked::before {
    content: "";
    position: absolute;
    top: 2px;
    left: 5px;
    width: 2px;
    height: 8px;
    background-color: #ffffff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
    opacity: 0.85;
}

.channel-item {
    display: flex;
    align-items: center;
    padding: 0 12px;
    height: 100%;
    cursor: pointer;
    box-sizing: border-box;
    flex: 1;
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 13px;
    font-weight: 500;
    background: rgba(255, 255, 255, 0.06);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    box-shadow: inset 0 0 1px rgba(255, 255, 255, 0.2),
                      0 4px 6px rgba(0, 0, 0, 0.2);
    transition: background-color 0.2s, border-color 0.2s;
}
.channel-item:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
}

/* メンバーシップON時のスタイル */
.channel-item.is-membership {
    /* ゴールド系 */
    background: rgba(255, 230, 180, 0.12) !important;
    color: rgb(255, 230, 180) !important;
    border-color: rgba(255, 230, 180, 0.3) !important;
    box-shadow: inset 0 0 3px rgba(255, 230, 180, 0.4),
                      0 4px 6px rgba(0, 0, 0, 0.2) !important;
}

/* メンバーシップON時のマウスホバー */
.channel-item.is-membership:hover {
    /* ゴールド系 */
    background: rgba(255, 230, 180, 0.2) !important;
    border-color: rgba(255, 230, 180, 0.5) !important;
}

.channel-link {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 1;
    transition: transform 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.3), z-index 0s;
}
.channel-link:hover {
    z-index: 10;
    transform: scale(1.8);
}

.icon-grid {
    display: grid;
    grid-template-rows: repeat(2, 20px);
    grid-template-columns: repeat(2, 20px);
    grid-auto-flow: column;
    width: 44px;
    gap: 4px;
    margin-left: 8px;
    flex-shrink: 0;
    height: 100%;
    align-content: center;
}

.icon-grid.is-short {
    grid-template-columns: 20px;
    width: 20px;
}

.link-wick:hover,
.link-twitch:hover,
.link-tiktok:hover,
.link-instagram:hover,
.link-facebook:hover { 
    transform-origin: right center; 
}
.link-x:hover,
.link-youtube:hover { 
    transform-origin: left center; 
}

.link-twitch {
    border-radius: 4px;
    background-color: #9146FF;
}
.link-tiktok {
    border-radius: 4px;
    background-color: #000000;
}
.link-instagram {
    border-radius: 4px;
    background-color: #FF0069;
}
.link-facebook {
    border-radius: 4px;
    background-color: #0866FF;
}
.link-wick {
    border-radius: 4px;
    background-color: #FFFFFF;
}
.link-wick svg {
    transform: scale(1.15);
}
.link-x {
    border-radius: 4px;
    background-color: #000000;
}
.link-youtube {
    border-radius: 4px;
    background-color: #FF0000;
}
.channel-link svg {
    width: 14px;
    height: 14px;
    fill: #ffffff;
}


.link-youtube svg { transform: scale(1.05); }
.link-x svg       { transform: scale(1.08); }
.link-wick svg    { transform: translateY(0px) scale(1.15); }
.link-tiktok svg  { transform: translateY(0px); }
.link-twitch svg  { transform: translateY(1px); }



.link-empty {
    width: 20px;
    height: 20px;
    visibility: hidden;
}

/* カード情報 */
#channelLiveList {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    padding: 15px;
}

.video-card {
    width: 280px;
    border: 1px solid #ccc;
    border-radius: 8px;
    padding: 10px;
    background-color: #f9f9f9;
    box-sizing: border-box;
}

.video-card.live     { border: 8px solid #FF5252; }
.video-card.upcoming { border: 8px solid deepskyblue;}
.video-card.none     { border: 8px solid gray; background-color: #8E8E93; }
.video-card.video    { border: 8px solid silver; background-color: snow; }
.video-card.shorts   { border: 8px solid silver; background-color: snow; }

.video-card img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    display: block;
    border-radius: 4px;
}
.video-title {
    font-size: 14px;
    font-weight: bold;
    margin: 0 0 8px 0;
    word-break: break-all;
    display: flex;
    height: 18px;
    align-items: center;
}
.video-name {
    font-size: 16px;
    font-weight: bold;
    margin: 10px 0 0 0;
    word-break: break-all;
    display: flex;
    height: 26px;
}
.video-link {
    color: black;
    text-decoration: none;
}
.video-member {
    width: 45px;
    height: 20px;
    font-size: 13px;
    justify-content: center;
    align-items: center;
    border-radius: 4px;
    display: inline-flex;
    border: solid;
    margin-left: auto;
    background-color: gold;
}

.date-header {
    width: 100% !important;
    box-sizing: border-box;
    clear: both;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 80px;
    font-weight: bold;
    font-size: 24px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: inset 0 0  2px rgba(255, 255, 255, 0.3),
                      0 4px 10px rgba(0, 0, 0, 0.4);
}

.time-header {
    width: 100%;
    margin-top: 5px;
    margin-bottom: 0px;
    clear: both;
    color: white;
}

.hour-block {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    width: 100%;
    margin-bottom: 20px;
}

.dialog-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    z-index: 999;
}

#ticker-container {
    flex: 1;
    height: 36px;
    background-color: #333;
    color: #fff;
    overflow: hidden;
    border-radius: 4px;
    display: flex;
    position: relative;
    border: 1px solid dimgray;
}

#ticker-text {
    display: flex;
    align-items: center;
    white-space: nowrap;
    position: absolute;
    left: 0;
    will-change: transform;
    height: 32px;
    font-size: 26px;
}

#ticker-text.fast-forward {
    animation-duration: 4s !important;
}

#ticker-container:hover #ticker-text:not(.fast-forward) {
    animation-play-state: paused;
}

@keyframes ticker-scroll {
    0% { transform: translate3d(0, 0, 0); }
    100% { transform: translate3d(-100%, 0, 0); }
}

.ticker-item {
    display: inline-flex;
    align-items: center;
    margin-right: 120px;
    height: 100%;
}

.ticker-date-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 30px;
    padding: 0 8px;
    padding-bottom: 2px;
    border-radius: 4px;
    font-weight: bold;
    margin-right: 12px;
    font-size: 24px;
    box-sizing: border-box;
    vertical-align: middle;
    margin-top: 3px;
    text-shadow:1px 1px 0 black, -1px -1px 0 black,
               -1px 1px 0 black,  1px -1px 0 black,
                0px 1px 0 black,  0   -1px 0 black,
               -1px 0   0 black,  1px  0   0 black;
}

.ticker-message {
    font-weight: bold;
    display: inline-flex;
    align-items: center;
    height: 100%;
}

.ticker-message-link {
    font-weight: bold;
    display: inline-flex;
    align-items: center;
    height: 100%;
    color: steelblue;
    text-shadow:1px 1px 0 snow, -1px -1px 0 snow,
               -1px 1px 0 snow,  1px -1px 0 snow,
                0px 1px 0 snow,  0   -1px 0 snow,
               -1px 0   0 snow,  1px  0   0 snow;
    text-decoration: none;
}

.badge-today { background-color: #ff4757; color: white; }
.badge-tomorrow { background-color: #ffa502; color: white; }
.badge-two-days-later { background-color: #2ed573; color: white; }
.badge-always { background-color: #747d8c; color: white; }

