/* ========================= MAIN LAYOUT ========================= */
.wb-stream-hub {
    display: grid;
    grid-template-columns: minmax(0, 3fr) minmax(280px, 1fr);
    gap: 25px;
    padding: 50px; /* Updated to 50px */
    border: 1px solid #333;
    align-items: start;
}

/* ========================= FEATURED STREAM ========================= */
.wb-featured {
    position: relative;
    overflow: hidden;
    padding: 10px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    border-radius: 15px;
    min-height: 600px;
}

.wb-background {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 0;
}

.wb-background:after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, .55);
}

.wb-loading {
    position: absolute;
    inset: 0;
    z-index: 999;
    background: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    opacity: 1;
    visibility: visible;
    transition: opacity .8s ease, visibility .8s ease;
}

.wb-loading.loaded {
    opacity: 0;
    visibility: hidden;
}

.loader-container {
    width: 300px;
    height: 12px;
    background: #000;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, .2);
}

.loader-bar {
    height: 100%;
    width: 10%;
    background: linear-gradient(90deg, #8b0000, #ff0000, #8b0000);
    background-size: 200% 100%;
    animation: wbScan 1.5s linear infinite;
    border-radius: 10px;
}

@keyframes wbScan {
    from { background-position: 200% 0; }
    to { background-position: -200% 0; }
}

.wb-loading-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, .55);
    color: white;
    text-align: center;
}

.wb-loading-overlay h2 { font-size: 28px; margin-bottom: 20px; }

.wb-loader {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    border: 4px solid rgba(255, 255, 255, .3);
    border-top-color: #9146ff;
    animation: wbspin 1s linear infinite;
}

@keyframes wbspin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

#wb-player-container {
    position: relative;
    z-index: 2;
    width: 100%;
    margin: 5px auto 0;
}

#wb-player {
    width: 100%;
    aspect-ratio: 16/9;
    border: none;
    border-radius: 12px;
    display: block;
}

.wb-info {
    position: relative;
    z-index: 3;
    width: 90%;
    border-radius: 12px;
    color: white;
    text-align: center;
    backdrop-filter: blur(6px);
}

.wb-info h2 { margin: 0 0 8px; font-size: 28px; }
.wb-info p { margin: 0; font-size: 16px; color: #ddd; }
.wb-name { font-size: 44px !important; font-weight: 700 !important; margin-bottom: 0 !important; }

/* ========================= STREAMER SIDEBAR ========================= */
.wb-streamers {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin: 0;
    max-height: 600px;
    overflow-y: auto;
    padding-right: 8px;
}

.wb-streamer {
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
    background: #151515;
    color: white;
    padding: 12px;
    border-radius: 10px;
    cursor: pointer;
    border: 1px solid rgba(255, 255, 255, .1);
    transition: .3s ease;
    clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
}

.wb-streamer:hover {
    background: #222;
    border-color: red;
    box-shadow: 0 0 15px rgba(255, 0, 0, 0.2);
    transform: translateY(-2px);
}

.wb-avatar { width: 55px; height: 55px; flex-shrink: 0; border-radius: 50%; object-fit: cover; }
.wb-streamer h3 { margin: 0; font-size: 16px; }
.wb-status { margin-top: 4px; font-size: 13px; font-weight: bold; }
.wb-live { color: #00ff66; }
.wb-offline-status { color: #888; }
.wb-follow { display: none; }

.wb-streamer.active { border: 2px solid red; box-shadow: 0 0 15px rgba(145, 70, 255, .5); }
.wb-streamer.active:before {
    content: "WATCHING";
    position: absolute;
    top: -9px;
    right: -2px;
    background: red;
    color: white;
    padding: 3px 8px;
    font-size: 9px;
    font-weight: bold;
}

.wb-streamer.offline { opacity: .45; cursor: not-allowed; filter: grayscale(100%); }
.wb-streamer.offline:hover { background: #151515; transform: none; }

/* ========================= MOBILE ========================= */
@media(max-width:900px) {
    .wb-stream-hub { grid-template-columns: 1fr; padding: 20px; }
    .wb-featured { min-height: auto; }
    .wb-info { order: 1; width: 100%; max-width: none; margin: 0; padding: 15px; }
    #wb-player-container { order: 2; width: 100%; padding-bottom: 50px; }
    .wb-streamers { display: grid; grid-template-columns: repeat(2, 1fr); padding-bottom: 50px; gap: 12px; }
    .wb-avatar { width: 50px; height: 50px; }
    .wb-streamer h3 { font-size: 14px; }
}