/* ==========================================================================
   emrev5 - Ultra-Premium Live Radio Station Login Theme
   Full-Screen 100% No-Scroll + Top Portal Navigation + Live Audio Player
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;1,700&display=swap');

:root {
    --em-primary: #10b981;
    --em-primary-hover: #059669;
    --em-primary-glow: rgba(16, 185, 129, 0.45);
    --em-accent-purple: #8b5cf6;
    --em-accent-pink: #ec4899;
    --em-bg-dark: #07090e;
    --em-card-bg: rgba(11, 15, 23, 0.88);
    --em-card-border: rgba(255, 255, 255, 0.1);
    --em-input-bg: rgba(6, 9, 15, 0.85);
    --em-input-border: rgba(255, 255, 255, 0.12);
    --em-player-bg: rgba(8, 11, 17, 0.98);
    --em-player-border: rgba(255, 255, 255, 0.08);
    --em-text-main: #ffffff;
    --em-text-muted: #94a3b8;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* Force complete suppression of theme doodles & default backgrounds when login page is active */
body:has(#login_wrap) {
    width: 100% !important;
    height: 100vh !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
    background-color: var(--em-bg-dark) !important;
    background-image: none !important;
    border: none !important;
    color: var(--em-text-main);
}

/* --------------------------------------------------------------------------
   Full Screen Fixed Background (No Scroll, No Cut, Seamless Cover)
   -------------------------------------------------------------------------- */
#login_wrap {
    width: 100vw !important;
    height: 100vh !important;
    max-height: 100vh !important;
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: space-between !important;
    overflow: hidden !important;
    z-index: 10 !important;
    background: transparent !important;
}

/* Dedicated Background Layer spanning 100% of the viewport */
.em-full-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 1;
    pointer-events: none;
    background: linear-gradient(180deg, rgba(7, 9, 14, 0.75) 0%, rgba(7, 9, 14, 0.88) 100%), 
                url('https://images.unsplash.com/photo-1516450360452-9312f5e86fc7?auto=format&fit=crop&w=1920&q=80') center center / cover no-repeat;
    background-color: #07090e;
}

/* Ambient Pulsing Studio Aura */
.em-ambient-glow {
    position: absolute;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    filter: blur(140px);
    pointer-events: none;
    z-index: 2;
    opacity: 0.5;
    animation: emFloatGlow 18s infinite alternate ease-in-out;
}

.em-glow-1 {
    top: -120px;
    left: -120px;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.35), transparent 70%);
}

.em-glow-2 {
    bottom: 60px;
    right: -120px;
    background: radial-gradient(circle, rgba(16, 185, 129, 0.28), transparent 70%);
    animation-delay: -9s;
}

@keyframes emFloatGlow {
    0% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(40px, 60px) scale(1.12); }
    100% { transform: translate(-30px, 20px) scale(0.95); }
}

#emParticleCanvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 3;
}

/* --------------------------------------------------------------------------
   Top Navigation Bar with Portal & Content Links
   -------------------------------------------------------------------------- */
.em-top-header {
    width: 100%;
    padding: 16px 36px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    z-index: 50;
    flex-shrink: 0;
    background: transparent !important;
}

.em-header-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.em-live-station-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(11, 15, 23, 0.75);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    padding: 6px 14px;
    border-radius: 30px;
    font-size: 11.5px;
    font-weight: 700;
    color: #e2e8f0;
    letter-spacing: 0.5px;
}

.em-live-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #ef4444;
    box-shadow: 0 0 10px #ef4444;
    animation: emLivePulse 1.5s infinite;
}

.em-live-dot.active {
    background: #10b981;
    box-shadow: 0 0 12px #10b981;
}

@keyframes emLivePulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.35); opacity: 0.6; }
}

/* Navigation Links */
.em-nav-menu {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(11, 15, 23, 0.65);
    border: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    padding: 5px 8px;
    border-radius: 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.em-nav-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #cbd5e1;
    text-decoration: none;
    font-size: 12px;
    font-weight: 600;
    padding: 6px 13px;
    border-radius: 20px;
    transition: all 0.25s ease;
}

.em-nav-link i {
    font-size: 12px;
    opacity: 0.8;
}

.em-nav-link:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-1px);
}

/* Special Highlighted Portal Button */
.em-nav-portal-btn {
    background: linear-gradient(135deg, #8b5cf6 0%, #ec4899 100%) !important;
    color: #ffffff !important;
    font-weight: 800 !important;
    box-shadow: 0 4px 15px rgba(139, 92, 246, 0.4) !important;
}

.em-nav-portal-btn:hover {
    background: linear-gradient(135deg, #a78bfa 0%, #f43f5e 100%) !important;
    box-shadow: 0 6px 20px rgba(139, 92, 246, 0.6) !important;
    transform: translateY(-2px) !important;
}

/* --------------------------------------------------------------------------
   Center Hero & Luxury Glassmorphic Card (Optimized for No-Scroll)
   -------------------------------------------------------------------------- */
#intro_top {
    width: 100%;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 20px 84px 20px;
    position: relative;
    z-index: 20;
    background: transparent !important;
}

#login_all {
    width: 420px;
    max-width: 100%;
    background: var(--em-card-bg) !important;
    backdrop-filter: blur(30px) saturate(190%) !important;
    -webkit-backdrop-filter: blur(30px) saturate(190%) !important;
    border: 1px solid var(--em-card-border) !important;
    border-radius: 26px !important;
    padding: 34px 30px !important;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.7), 
                0 0 70px rgba(16, 185, 129, 0.08),
                inset 0 1px 0 rgba(255, 255, 255, 0.14) !important;
    color: var(--em-text-main) !important;
    position: relative !important;
    z-index: 25;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.em-logo-container {
    position: relative;
    display: inline-block;
    margin-bottom: 12px;
}

#login_logo {
    max-height: 75px;
    max-width: 220px;
    width: auto;
    object-fit: contain;
    position: relative;
    z-index: 2;
    filter: drop-shadow(0 6px 16px rgba(0,0,0,0.5));
    transition: transform 0.3s ease;
}

#login_logo:hover {
    transform: scale(1.03);
}

.login_text p.bold {
    font-size: 21px !important;
    font-weight: 800 !important;
    letter-spacing: -0.5px !important;
    color: #ffffff !important;
    margin-bottom: 4px !important;
    background: linear-gradient(135deg, #ffffff 40%, #a78bfa 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.login_text p.text_med {
    font-size: 13px !important;
    color: var(--em-text-muted) !important;
    margin-bottom: 20px !important;
    line-height: 1.4 !important;
    font-weight: 500 !important;
}

/* Form Controls */
.em-input-group {
    position: relative;
    margin-bottom: 15px;
    text-align: left;
}

.em-input-group label {
    display: block;
    font-size: 10.5px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #94a3b8;
    margin-bottom: 6px;
    font-weight: 700;
}

.em-input-field-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.em-input-field-wrap i.em-input-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: #64748b;
    font-size: 15px;
    pointer-events: none;
}

.em-input-field {
    width: 100%;
    height: 48px;
    padding: 10px 42px 10px 44px;
    background: var(--em-input-bg) !important;
    border: 1px solid var(--em-input-border) !important;
    border-radius: 13px !important;
    color: #ffffff !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    outline: none !important;
    transition: all 0.25s ease !important;
}

.em-input-field:focus {
    border-color: var(--em-primary) !important;
    background: rgba(10, 14, 22, 0.95) !important;
    box-shadow: 0 0 18px rgba(16, 185, 129, 0.25) !important;
}

.em-input-field:focus ~ i.em-input-icon {
    color: var(--em-primary);
}

.em-toggle-pass {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #64748b;
    cursor: pointer;
    font-size: 14px;
    padding: 6px;
    z-index: 5;
}

.em-toggle-pass:hover {
    color: #e2e8f0;
}

/* CTA Buttons */
.em-btn-primary {
    width: 100%;
    height: 48px;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%) !important;
    border: none !important;
    border-radius: 24px !important;
    color: #ffffff !important;
    font-size: 14.5px !important;
    font-weight: 800 !important;
    letter-spacing: 0.5px !important;
    cursor: pointer !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    box-shadow: 0 6px 20px var(--em-primary-glow) !important;
    transition: all 0.25s ease !important;
    margin-top: 8px !important;
}

.em-btn-primary:hover {
    transform: translateY(-2px) !important;
    background: linear-gradient(135deg, #12d192 0%, #10b981 100%) !important;
    box-shadow: 0 10px 25px rgba(16, 185, 129, 0.55) !important;
}

.em-btn-secondary {
    width: 100%;
    height: 44px;
    background: rgba(255, 255, 255, 0.05) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 22px !important;
    color: #e2e8f0 !important;
    font-size: 13.5px !important;
    font-weight: 700 !important;
    cursor: pointer !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    transition: all 0.25s ease !important;
    margin-top: 10px !important;
}

.em-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1) !important;
    border-color: rgba(255, 255, 255, 0.2) !important;
    color: #ffffff !important;
    transform: translateY(-1px) !important;
}

.em-footer-links {
    margin-top: 18px;
    font-size: 13px;
    color: #94a3b8;
    font-weight: 500;
}

.em-register-link {
    color: var(--em-primary) !important;
    font-weight: 700 !important;
    cursor: pointer !important;
    margin-left: 6px;
}

.em-register-link:hover {
    color: #34d399 !important;
    text-decoration: underline;
}

/* --------------------------------------------------------------------------
   Studio-Grade Fixed Bottom Live Radio Player Bar (ZERO-GAP FLUSH)
   -------------------------------------------------------------------------- */
.em-radio-player-bar {
    width: 100% !important;
    height: 80px !important;
    background: var(--em-player-bg) !important;
    backdrop-filter: blur(20px) !important;
    -webkit-backdrop-filter: blur(20px) !important;
    border-top: 1px solid var(--em-player-border) !important;
    padding: 0 36px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    position: fixed !important;
    bottom: 0px !important;
    left: 0px !important;
    right: 0px !important;
    margin: 0 !important;
    z-index: 9999 !important;
    box-shadow: 0 -12px 30px rgba(0, 0, 0, 0.7) !important;
    box-sizing: border-box !important;
}

.em-radio-player-bar * {
    margin: 0 !important;
    box-sizing: border-box !important;
}

.em-player-left {
    display: flex !important;
    align-items: center !important;
    gap: 16px !important;
    width: 35% !important;
    height: 100% !important;
    min-width: 240px !important;
}

/* Vinyl Disc with Pulsing Live Dot */
.em-vinyl-disc {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: radial-gradient(circle, #2a2e39 25%, #11141c 26%, #1a1e29 65%, #0d1017 100%);
    border: 2px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 10px rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    position: relative;
}

.em-vinyl-disc::after {
    content: '';
    width: 11px;
    height: 11px;
    border-radius: 50%;
    background: #10b981;
    box-shadow: 0 0 8px #10b981;
    animation: emDiscDotPulse 2s infinite ease-in-out;
}

.em-vinyl-disc.live-pulsing::after,
.em-vinyl-disc.spinning::after {
    animation: emDiscDotPulse 1.2s infinite ease-in-out;
}

@keyframes emDiscDotPulse {
    0%, 100% { transform: scale(1); opacity: 1; box-shadow: 0 0 6px #10b981; }
    50% { transform: scale(1.35); opacity: 0.55; box-shadow: 0 0 14px #10b981; }
}

.em-vinyl-disc.spinning {
    animation: emSpinDisc 5s linear infinite;
}

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

.em-play-btn {
    width: 44px !important;
    height: 44px !important;
    border-radius: 50% !important;
    background: var(--em-primary) !important;
    border: none !important;
    color: #ffffff !important;
    font-size: 15px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    box-shadow: 0 4px 14px var(--em-primary-glow) !important;
    transition: all 0.25s ease !important;
    flex-shrink: 0 !important;
}

.em-play-btn:hover {
    transform: scale(1.08) !important;
    background: var(--em-primary-hover) !important;
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.55) !important;
}

.em-play-btn i {
    margin-left: 2px !important;
}

.em-play-btn.playing i {
    margin-left: 0 !important;
}

.em-radio-info {
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    gap: 3px !important;
    min-width: 0 !important;
    overflow: hidden !important;
}

.em-radio-title {
    font-size: 12.5px !important;
    font-weight: 800 !important;
    color: #ffffff !important;
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    line-height: 1.2 !important;
    white-space: nowrap !important;
}

.em-radio-title span.badge {
    background: rgba(16, 185, 129, 0.12) !important;
    color: var(--em-primary) !important;
    border: 1px solid rgba(16, 185, 129, 0.25) !important;
    font-size: 9px !important;
    padding: 2px 7px !important;
    border-radius: 4px !important;
    text-transform: uppercase !important;
    font-weight: 800 !important;
    letter-spacing: 0.8px !important;
}

.em-song-scroller {
    width: 250px !important;
    max-width: 100% !important;
    overflow: hidden !important;
    white-space: nowrap !important;
    background: rgba(255, 255, 255, 0.03) !important;
    border-radius: 6px !important;
    padding: 3px 8px !important;
    border: 1px solid rgba(255, 255, 255, 0.05) !important;
    height: 20px !important;
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
}

.em-song-scroller i {
    color: var(--em-primary) !important;
    font-size: 10px !important;
    flex-shrink: 0 !important;
}

.em-song-scroller marquee {
    font-size: 11px !important;
    color: #cbd5e1 !important;
    font-weight: 600 !important;
    display: block !important;
    width: 100% !important;
}

.em-player-center {
    width: 30% !important;
    height: 100% !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 5px !important;
}

.em-eq-visualizer {
    display: flex !important;
    align-items: flex-end !important;
    justify-content: center !important;
    gap: 3px !important;
    height: 22px !important;
}

.em-eq-bar {
    width: 3px !important;
    height: 4px !important;
    background: linear-gradient(to top, var(--em-primary), #34d399) !important;
    border-radius: 2px !important;
    opacity: 0.4 !important;
    transition: height 0.1s ease, opacity 0.3s ease !important;
}

.em-eq-visualizer.playing .em-eq-bar {
    opacity: 1 !important;
    animation: emBounceEQ 1.1s ease-in-out infinite alternate !important;
}

.em-eq-visualizer.playing .em-eq-bar:nth-child(1) { animation-duration: 0.8s !important; animation-delay: 0.1s !important; }
.em-eq-visualizer.playing .em-eq-bar:nth-child(2) { animation-duration: 1.2s !important; animation-delay: 0.3s !important; }
.em-eq-visualizer.playing .em-eq-bar:nth-child(3) { animation-duration: 0.6s !important; animation-delay: 0.15s !important; }
.em-eq-visualizer.playing .em-eq-bar:nth-child(4) { animation-duration: 1.4s !important; animation-delay: 0.4s !important; }
.em-eq-visualizer.playing .em-eq-bar:nth-child(5) { animation-duration: 0.9s !important; animation-delay: 0.25s !important; }
.em-eq-visualizer.playing .em-eq-bar:nth-child(6) { animation-duration: 1.3s !important; animation-delay: 0.35s !important; }
.em-eq-visualizer.playing .em-eq-bar:nth-child(7) { animation-duration: 0.7s !important; animation-delay: 0.1s !important; }
.em-eq-visualizer.playing .em-eq-bar:nth-child(8) { animation-duration: 1.5s !important; animation-delay: 0.5s !important; }
.em-eq-visualizer.playing .em-eq-bar:nth-child(9) { animation-duration: 1.0s !important; animation-delay: 0.2s !important; }
.em-eq-visualizer.playing .em-eq-bar:nth-child(10) { animation-duration: 0.75s !important; animation-delay: 0.3s !important; }
.em-eq-visualizer.playing .em-eq-bar:nth-child(11) { animation-duration: 1.25s !important; animation-delay: 0.45s !important; }
.em-eq-visualizer.playing .em-eq-bar:nth-child(12) { animation-duration: 0.85s !important; animation-delay: 0.1s !important; }

@keyframes emBounceEQ {
    0% { height: 4px; }
    100% { height: 22px; }
}

.em-stream-quality {
    font-size: 9px;
    font-weight: 700;
    color: #64748b;
    letter-spacing: 0.6px;
    text-transform: uppercase;
}

.em-player-right {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
    gap: 16px !important;
    width: 35% !important;
    height: 100% !important;
}

.em-listeners-badge {
    display: flex !important;
    align-items: center !important;
    gap: 7px !important;
    font-size: 12px !important;
    color: #cbd5e1 !important;
    font-weight: 700 !important;
    background: rgba(255, 255, 255, 0.03) !important;
    padding: 6px 12px !important;
    border-radius: 20px !important;
    border: 1px solid rgba(255, 255, 255, 0.05) !important;
}

.em-listeners-badge i {
    color: #f59e0b !important;
    font-size: 13px !important;
    text-shadow: 0 0 8px rgba(245, 158, 11, 0.5) !important;
}

.em-volume-wrap {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    background: rgba(255, 255, 255, 0.03) !important;
    padding: 5px 12px !important;
    border-radius: 20px !important;
    border: 1px solid rgba(255, 255, 255, 0.05) !important;
    height: 34px !important;
}

.em-volume-wrap i {
    color: #94a3b8 !important;
    font-size: 13px !important;
    width: 16px !important;
    text-align: center !important;
    cursor: pointer !important;
}

.em-volume-wrap i:hover {
    color: #ffffff !important;
}

.em-volume-slider {
    -webkit-appearance: none !important;
    width: 80px !important;
    height: 4px !important;
    background: rgba(255, 255, 255, 0.15) !important;
    border-radius: 2px !important;
    outline: none !important;
    cursor: pointer !important;
}

.em-volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none !important;
    width: 12px !important;
    height: 12px !important;
    border-radius: 50% !important;
    background: #ffffff !important;
    cursor: pointer !important;
    box-shadow: 0 0 6px rgba(0,0,0,0.4) !important;
    transition: background-color 0.2s, transform 0.2s !important;
}

.em-volume-slider::-webkit-slider-thumb:hover {
    background: var(--em-primary) !important;
    transform: scale(1.2) !important;
}

/* --------------------------------------------------------------------------
   Responsive Breakpoints
   -------------------------------------------------------------------------- */
@media (max-width: 1100px) {
    .em-nav-menu .em-nav-link:not(.em-nav-portal-btn):nth-child(n+5) {
        display: none !important;
    }
}

@media (max-width: 850px) {
    .em-top-header {
        padding: 12px 18px !important;
    }
    .em-nav-menu .em-nav-link:not(.em-nav-portal-btn) {
        display: none !important;
    }
    .em-player-center {
        display: none !important;
    }
    .em-player-left {
        width: 50% !important;
    }
    .em-player-right {
        width: 50% !important;
    }
}

@media (max-width: 640px) {
    #login_wrap {
        padding-bottom: 74px !important;
    }
    .em-top-header {
        padding: 12px 14px !important;
    }
    #intro_top {
        padding: 5px 12px 74px 12px !important;
    }
    #login_all {
        padding: 26px 18px !important;
        border-radius: 20px !important;
    }
    .login_text p.bold {
        font-size: 19px !important;
    }
    .login_text p.text_med {
        font-size: 12px !important;
        margin-bottom: 16px !important;
    }
    .em-radio-player-bar {
        height: 70px !important;
        padding: 6px 14px !important;
    }
    .em-vinyl-disc {
        display: none !important;
    }
    .em-play-btn {
        width: 38px !important;
        height: 38px !important;
        font-size: 13px !important;
    }
    .em-song-scroller {
        width: 130px !important;
    }
    .em-player-right {
        width: auto !important;
        gap: 8px !important;
    }
    .em-volume-wrap {
        display: none !important;
    }
    .em-listeners-badge {
        font-size: 10.5px !important;
        padding: 4px 8px !important;
    }
}
