:root {
    --bg-0: #05080d;
    --surface: #0d1420;
    --surface-alt: #121b2c;
    --border: #1c2942;
    --border-soft: rgba(59, 130, 246, 0.18);

    --blue: #3b82f6;
    --blue-bright: #60a5fa;
    --blue-dark: #1d4ed8;

    --orange: #ff7a29;
    --orange-bright: #ffa057;

    --text: #eef2f9;
    --text-dim: #8a97ad;
    --text-faint: #566178;

    --font-display: 'Rajdhani', sans-serif;
    --font-body: 'Inter', sans-serif;
    --font-mono: 'Share Tech Mono', monospace;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Lėtai judantis mėlynas glow fone */
body::before {
    content: "";
    position: fixed;
    inset: -50%;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.05) 0%, transparent 35%);
    animation: backgroundMove 18s ease-in-out infinite alternate;
    pointer-events: none;
    z-index: -1;
}

@keyframes backgroundMove {
    0% {
        transform: translate(-5%, -3%) scale(1);
    }
    100% {
        transform: translate(5%, 3%) scale(1.1);
    }
}

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

html::-webkit-scrollbar {
    display: none;
}

@keyframes pulse-dot {
    0%, 100% { opacity: 1; box-shadow: 0 0 6px currentColor; }
    50% { opacity: 0.4; box-shadow: 0 0 2px currentColor; }
}

body {
    /* CSS-only animuotas Gaming HUD background */
    background:
        radial-gradient(circle at 50% 0%, rgba(59, 130, 246, 0.20), transparent 45%),
        radial-gradient(circle at 0% 100%, rgba(29, 78, 216, 0.10), transparent 35%),
        #05080d;

    background-attachment: fixed;
    position: relative;

    font-family: var(--font-body);
    color: var(--text);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
}

h1 {
    text-align: center;
    margin-bottom: 30px;
    font-family: var(--font-display);
    font-size: 26px;
    font-weight: 700;
    letter-spacing: 0.5px;
    color: #ffffff;
}

/* RADIJO GROTUVAS */
.radio-container {
    margin: 90px auto 20px auto;
    display: flex;
    justify-content: center;
    padding: 0 20px;
    width: 100%;
    box-sizing: border-box;
    z-index: 200;
}

.radio-player-box {
    position: relative;
    isolation: isolate;
    background: linear-gradient(180deg, rgba(18, 27, 44, 0.92), rgba(10, 15, 26, 0.94));
    backdrop-filter: blur(16px);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 18px 22px;
    width: 100%;
    max-width: 700px;
    color: #e4e6eb;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.04);
    overflow: hidden;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.radio-player-box::before {
    content: "";
    position: absolute;
    inset: 0;
    padding: 1px;
    border-radius: 14px;
    background: linear-gradient(120deg, rgba(59, 130, 246, 0.5), rgba(255, 122, 41, 0.35), rgba(59, 130, 246, 0.15));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
    opacity: 0.6;
}

.player-glow {
    position: absolute;
    top: -60%;
    left: 50%;
    transform: translateX(-50%);
    width: 70%;
    height: 140%;
    background: radial-gradient(closest-side, rgba(59, 130, 246, 0.22), transparent 70%);
    filter: blur(10px);
    z-index: -1;
    pointer-events: none;
}

.player-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--border);
}

.radio-title {
    display: flex;
    align-items: center;
    gap: 12px;
}

.radio-art {
    position: relative;
    width: 38px;
    height: 38px;
    flex-shrink: 0;
    border-radius: 9px;
    background: linear-gradient(145deg, var(--blue), var(--blue-dark));
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 14px;
    box-shadow: 0 4px 14px rgba(59, 130, 246, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.eq-bars {
    position: absolute;
    inset: 0;
    display: none;
    align-items: flex-end;
    justify-content: center;
    gap: 3px;
    padding-bottom: 7px;
    background: rgba(10, 15, 26, 0.55);
    border-radius: 9px;
}

.eq-bars span {
    width: 3px;
    height: 4px;
    background: var(--orange-bright);
    border-radius: 2px;
    animation: eq-bounce 0.9s ease-in-out infinite;
}

.eq-bars span:nth-child(1) { animation-delay: 0s; }
.eq-bars span:nth-child(2) { animation-delay: 0.15s; }
.eq-bars span:nth-child(3) { animation-delay: 0.3s; }
.eq-bars span:nth-child(4) { animation-delay: 0.45s; }

@keyframes eq-bounce {
    0%, 100% { height: 4px; }
    50% { height: 16px; }
}

.radio-player-box.playing .eq-bars {
    display: flex;
}

.radio-title-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.radio-name {
    font-family: var(--font-display);
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.4px;
    color: #ffffff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.radio-sub {
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--text-dim);
    letter-spacing: 0.3px;
}

.live-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 122, 41, 0.12);
    border: 1px solid rgba(255, 122, 41, 0.4);
    color: var(--orange-bright);
    padding: 4px 10px;
    border-radius: 20px;
    font-family: var(--font-mono);
    font-size: 10px;
    font-weight: bold;
    letter-spacing: 0.5px;
    flex-shrink: 0;
}

.live-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--orange);
    box-shadow: 0 0 6px var(--orange);
    animation: pulse-dot 2s ease-in-out infinite;
}

.player-controls {
    display: flex;
    align-items: center;
    gap: 16px;
}

.control-btn {
    background: linear-gradient(145deg, var(--blue-bright), var(--blue-dark));
    border: none;
    color: #ffffff;
    font-size: 15px;
    cursor: pointer;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 4px 14px rgba(59, 130, 246, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.25);
    transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.control-btn i {
    /* nudge the play triangle to look visually centered */
    margin-left: 1px;
}

.control-btn:hover {
    transform: translateY(-1px) scale(1.04);
    box-shadow: 0 6px 18px rgba(255, 122, 41, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.25);
    background: linear-gradient(145deg, var(--orange-bright), var(--orange));
}

.control-btn:active {
    transform: translateY(0) scale(0.97);
}

.progress-bar-bg {
    flex-grow: 1;
    height: 5px;
    background-color: rgba(255, 255, 255, 0.06);
    border-radius: 3px;
    overflow: hidden;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.3);
}

.progress-bar-fill {
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, var(--blue), var(--blue-bright), var(--orange));
    background-size: 200% 100%;
}

.radio-player-box.playing .progress-bar-fill {
    animation: progress-shimmer 3s linear infinite;
}

@keyframes progress-shimmer {
    0% { background-position: 0% 0%; }
    100% { background-position: 200% 0%; }
}

.volume-control-wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: 5px;
}

.volume-icon {
    color: var(--text-dim);
    font-size: 14px;
    transition: color 0.2s ease;
}

.volume-control-wrapper:hover .volume-icon {
    color: var(--blue-bright);
}

.volume-slider {
    width: 70px;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    outline: none;
    -webkit-appearance: none;
    cursor: pointer;
    transition: background 0.2s ease;
}

.volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #ffffff;
    border: 2px solid var(--blue);
    cursor: pointer;
    box-shadow: 0 0 6px rgba(59, 130, 246, 0.6);
    transition: transform 0.15s ease;
}

.volume-slider::-webkit-slider-thumb:hover {
    transform: scale(1.15);
}

.volume-slider::-moz-range-thumb {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #ffffff;
    border: 2px solid var(--blue);
    cursor: pointer;
    box-shadow: 0 0 6px rgba(59, 130, 246, 0.6);
}

@media (prefers-reduced-motion: reduce) {
    .eq-bars span,
    .live-dot,
    .radio-player-box.playing .progress-bar-fill {
        animation: none;
    }
}

@media (max-width: 480px) {
    .radio-player-box {
        padding: 14px 16px;
    }
    .radio-sub {
        display: none;
    }
}

/* PAIEŠKA */
.search-wrapper {
    position: relative;
    z-index: 200;
    max-width: 800px;
    width: 100%;
    margin: 16px auto 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 8px;
    transition: 0.2s ease;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.search-wrapper:focus-within {
    border-color: var(--blue);
}

#search {
    width: 100%;
    height: 48px;
    padding: 0 14px 0 10px;
    font-size: 15px;
    border: none;
    background: transparent;
    color: #ffffff;
    outline: none;
    box-sizing: border-box;
}

#search::placeholder {
    color: var(--text-dim);
}

#micBtn {
    position: static;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    padding: 0;
    cursor: pointer;
    outline: none;
    z-index: 250;
    height: 48px;
}

#micIcon {
    fill: var(--text-dim);
    transition: 0.2s ease;
    margin-top: 1px;
}

#micBtn:hover #micIcon {
    fill: #ffffff;
}

#micBtn.active #micIcon {
    fill: var(--orange);
}

/* KORTELĖS (.qa) */
.qa {
    max-width: 700px;
    width: 100%;
    margin: 0 auto 16px auto;
    background: var(--surface);
    backdrop-filter: blur(10px);
    padding: 18px 22px;
    border-radius: 8px;
    border: 1px solid var(--border);
    cursor: pointer;
    box-sizing: border-box;

    /* Švelnus padidėjimas */
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
    transform: scale(1);
    
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

/* Uždėjus pelę – šiek tiek padidėja */
.qa:hover {
    border-color: var(--border);
    background: var(--surface-alt);
    transform: scale(1.015);

    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.qa h3 {
    margin: 0 0 8px;
    font-family: var(--font-display);
    font-size: 17px;
    font-weight: 600;
    color: #ffffff;
    line-height: 1.4;
}

.qa .answer {
    margin: 8px 0 0;
    font-size: 14px;
    line-height: 1.5;
    color: var(--text-dim);
    display: block !important;
}

/* POPUP */
.popup {
    position: fixed;
    inset: 0;
    backdrop-filter: blur(10px);
    background: rgba(0, 0, 0, 0.45);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    transition: opacity 0.25s ease;
}

.popup.show {
    opacity: 1;
}

.popup-content {
    background: rgba(13, 20, 32, 0.95);
    backdrop-filter: blur(18px);
    padding: 34px 30px 28px;
    border-radius: 10px;
    width: 90%;
    max-width: 420px;
    text-align: center;
    color: #ffffff;
    border: 1px solid var(--border);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    transform: translateY(16px) scale(0.96);
    opacity: 0;
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.3s ease;
}

.popup.show .popup-content {
    transform: translateY(0) scale(1);
    opacity: 1;
}

.popup-icon {
    width: 52px;
    height: 52px;
    margin: 0 auto 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(59, 130, 246, 0.15);
    border: 1px solid rgba(59, 130, 246, 0.3);
    color: var(--blue);
    font-size: 20px;
}

.popup-content h3 {
    margin: 0 0 18px;
    font-family: var(--font-display);
    font-size: 20px;
    font-weight: 700;
    color: #ffffff;
}

.popup-updates {
    list-style: none;
    margin: 0 0 24px;
    padding: 0;
    text-align: left;
}

.popup-updates li {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    font-size: 14px;
    color: #d1d5db;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 6px;
    margin-bottom: 8px;
}

.popup-updates li:last-child {
    margin-bottom: 0;
}

.popup-updates li i {
    color: var(--orange);
    font-size: 13px;
    width: 16px;
    text-align: center;
    flex-shrink: 0;
}

#close-popup {
    background: var(--blue);
    color: #ffffff;
    border: none;
    padding: 12px 32px;
    border-radius: 4px;
    font-family: var(--font-display);
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.15s ease;
}

#close-popup:hover {
    background: var(--blue-dark);
    box-shadow: 0 0 0 1px rgba(255, 122, 41, 0.4) inset;
    transform: translateY(-1px);
}

/* ==========================================================================
   NAVIGACIJA (identiška kitiems puslapiams)
   ========================================================================== */
.navbar {
    background-color: #081121;
    border-bottom: 1px solid var(--border);
    box-shadow: 0 1px 0 rgba(59, 130, 246, 0.12);
    padding: 15px 20px;
    position: sticky;
    top: 0;
    z-index: 999;
}

.nav-container {
    max-width: 100%;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.nav-group-left {
    display: flex;
    align-items: center;
    width: 200px;
    flex-shrink: 0;
}

.logo-section {
    display: flex;
    align-items: center;
    gap: 10px;
    height: 32px;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 18px;
    letter-spacing: 0.5px;
    color: #ffffff;
    text-transform: uppercase;
}

.logo-img {
    width: 32px;
    height: 32px;
    object-fit: cover;
    border-radius: 50%;
    border: 1px solid var(--border);
    background-color: var(--surface);
}

.nav-group-center {
    display: flex;
    gap: 4px;
    flex-grow: 1;
    justify-content: center;
    align-items: center;
}

.nav-item {
    color: var(--text-dim);
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    font-family: 'Inter', sans-serif;
    transition: all 0.2s ease;
    text-align: center;
    padding: 6px 12px;
    background: transparent;
    border: 1px solid transparent;
    border-radius: 4px;
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.nav-item:hover {
    color: #ffffff;
    background: rgba(59, 130, 246, 0.12);
}

.nav-item.active {
    color: #ffffff;
    background: rgba(59, 130, 246, 0.1);
}

.nav-item.active::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: -1px;
    transform: translateX(-50%);
    width: 16px;
    height: 2px;
    background: var(--orange);
    box-shadow: 0 0 6px var(--orange);
}

.nav-group-right {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    width: 200px;
    flex-shrink: 0;
}

.status-indicator {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    background: var(--surface);
    padding: 4px 10px;
    border-radius: 2px;
    border: 1px solid var(--border);
    min-width: 50px;
}

.status-dot {
    width: 6px;
    height: 6px;
    background-color: var(--blue);
    border-radius: 50%;
    color: var(--blue);
    animation: pulse-dot 2s ease-in-out infinite;
    margin-right: 5px;
}

.status-text {
    color: #e2e8f0;
    font-family: var(--font-mono);
    font-size: 13px;
    font-weight: 400;
    letter-spacing: 0.3px;
}

.menu-toggle {
    display: none;
    cursor: pointer;
    font-size: 24px;
    color: #ffffff;
}

@media (max-width: 850px) {
    .menu-toggle {
        display: block;
        z-index: 1001;
    }

    .nav-group-center {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        background-color: rgba(8, 17, 33, 0.97);
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        z-index: 1000;
        padding: 40px 20px;
        box-sizing: border-box;
    }

    .nav-group-center.active {
        display: flex;
    }

    .nav-item {
        width: 100%;
        max-width: 320px;
        text-align: center;
        justify-content: center;
        padding: 14px 0;
        font-size: 16px;
        font-weight: 600;
        color: #ffffff;
        text-transform: uppercase;
        letter-spacing: 1px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        transition: background 0.2s, color 0.2s;
    }

    .nav-item:last-child {
        border-bottom: none;
    }

    .nav-item:hover {
        color: var(--blue-bright);
        background-color: rgba(37, 99, 235, 0.2);
        border-radius: 8px;
    }

    .nav-group-right {
        display: none;
    }

    .main-content {
        padding: 100px 20px 40px 20px;
        flex-direction: column;
        justify-content: center;
        text-align: center;
    }

    .hero-title {
        font-size: 32px;
    }

    .hero-description {
        text-align: center;
    }
}

@media (prefers-reduced-motion: reduce) {
    .status-dot { animation: none; }
}