/* Radio Stream Hub - Precision Layout v3.1.0 */

#rsh-player-container {
    position: relative;
    width: 360px;
    height: 600px;
    background: #090912;
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.8);
    overflow: hidden;
    font-family: 'Be Vietnam', sans-serif;
    color: #fff;
    margin: 20px auto;
}

/* 1. Top Bar */
#rsh-top-bar {
    width: 100%;
    height: 40px;
    background: rgba(255, 255, 255, 0.03);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    justify-content: space-between;
    padding: 0 10px;
    align-items: center;
    z-index: 120;
}

#rsh-popout-btn {
    width: 28px;
    height: 28px;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    font-size: 0.7rem;
    transition: all 0.3s;
}

#rsh-popout-btn:hover {
    background: #e94560;
    transform: scale(1.1);
}

#rsh-station-menu-trigger {
    padding: 6px 18px;
    background: #e94560;
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.8rem;
    font-weight: 700;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    gap: 10px;
}

.rsh-arrow {
    font-size: 0.7rem;
    font-style: normal;
    opacity: 1;
    color: #fff;
    display: inline-block;
    margin-left: 5px;
    transition: transform 0.3s;
}

/* 2. Splash Overlay */
#rsh-splash-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, #1a1a2e 0%, #090912 100%);
    z-index: 500;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

#rsh-splash-icon {
    font-size: 5rem;
    margin-bottom: 20px;
    animation: icon-bounce 3s ease-in-out infinite;
    filter: drop-shadow(0 0 15px rgba(233, 69, 96, 0.5));
}

@keyframes icon-bounce {

    0%,
    100% {
        transform: translateY(0) scale(1);
    }

    50% {
        transform: translateY(-20px) scale(1.1);
    }
}

#rsh-start-btn {
    padding: 16px 32px;
    background: #e94560;
    border: none;
    border-radius: 30px;
    color: #fff;
    font-weight: 700;
    cursor: pointer;
}

/* 3. Main Player & Preloader */
#rsh-main-player {
    width: 100%;
    height: 400px;
    background: #000;
    position: relative;
}

#rsh-player-loader {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #090912;
    display: none;
    /* Controlled by JS */
    justify-content: center;
    align-items: center;
    z-index: 50;
    flex-direction: column;
}

.rsh-spinner {
    width: 50px;
    height: 50px;
    border: 3px solid rgba(233, 69, 96, 0.3);
    border-top: 3px solid #e94560;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.rsh-loading-text {
    margin-top: 15px;
    font-size: 0.8rem;
    color: #e94560;
    font-weight: 700;
    letter-spacing: 1px;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* 4. Ads, Ticker, etc. */
#rsh-ad-carousel-container {
    padding-top: 10px;
    height: 110px;
    background: #111120;
    display: flex;
    justify-content: center;
    align-items: center;
}

#rsh-ad-wrapper {
    width: 330px;
    height: 90px;
    overflow: hidden;
}

#rsh-ad-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

#rsh-ticker-container {
    position: absolute;
    bottom: 0;
    width: 100%;
    height: 45px;
    background: #000;
    display: flex;
    align-items: center;
}

#rsh-ticker-label {
    background: #e94560;
    padding: 0 12px;
    height: 100%;
    display: flex;
    align-items: center;
    font-size: 0.7rem;
    font-weight: 900;
}

#rsh-ticker-content {
    flex: 1;
    overflow: hidden;
    white-space: nowrap;
}

#rsh-ticker-scroll {
    display: inline-block;
    animation: ticker-scroll 450s linear infinite;
    padding-left: 20px;
    font-size: 1rem;
    font-weight: 500;
    color: #ffffff;
}

@keyframes ticker-scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-100%);
    }
}

/* 7. Global Launcher */
#rsh-floating-launcher {
    position: fixed;
    bottom: 25px;
    left: 25px !important;
    right: auto !important;
    width: 60px;
    height: 60px;
    background: #e94560;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: #fff;
    cursor: pointer;
    box-shadow: 0 10px 30px rgba(233, 69, 96, 0.5);
    z-index: 999999;
    animation: float-btn 4s ease-in-out infinite;
    transition: all 0.3s;
}

#rsh-floating-launcher:hover {
    transform: scale(1.1) rotate(5deg);
    background: #ff5e78;
}

.rsh-launcher-icon {
    font-size: 1.5rem;
}

.rsh-launcher-text {
    font-size: 0.55rem;
    font-weight: 900;
    margin-top: -2px;
}

@keyframes float-btn {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

/* 6. List Overlay */
#rsh-station-list-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(5, 5, 10, 0.98);
    z-index: 1000;
    padding: 20px;
    box-sizing: border-box;
}

#rsh-station-items li {
    padding: 15px;
    background: rgba(255, 255, 255, 0.03);
    margin-bottom: 8px;
    border-radius: 10px;
    cursor: pointer;
}

#rsh-close-menu {
    width: 100%;
    padding: 15px;
    background: #e94560;
    color: #fff;
    border: none;
    border-radius: 10px;
    font-weight: 700;
    cursor: pointer;
}