* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html,
body {
    height: 100%;
    overflow: hidden;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    min-height: 100vh;
    height: 100vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    position: relative;
    color: white;
}

/* ══════════════════════════════════
   OVERLAY
══════════════════════════════════ */
.overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(3px);
    z-index: 300;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.35s ease;
}

.overlay.active {
    opacity: 1;
    pointer-events: all;
}

/* ══════════════════════════════════
   SIDE PANEL
══════════════════════════════════ */
.side-panel {
    position: fixed;
    top: 0;
    right: 0;
    width: 340px;
    max-width: 90vw;
    height: 100%;
    background: rgba(15, 20, 40, 0.95);
    backdrop-filter: blur(20px);
    border-left: 1px solid rgba(0, 198, 255, 0.15);
    z-index: 400;
    transform: translateX(100%);
    transition: transform 0.38s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    overflow-x: hidden;
}

.side-panel.open {
    transform: translateX(0);
}

.side-panel-close {
    position: absolute;
    top: 18px;
    right: 18px;
    width: 36px;
    height: 36px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.07);
    color: rgba(255, 255, 255, 0.7);
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.25s ease;
}

.side-panel-close:hover {
    background: rgba(255, 255, 255, 0.15);
    color: white;
    transform: rotate(90deg);
}

.side-panel-content {
    padding: 60px 30px 40px;
    flex: 1;
}

.side-panel-logo {
    width: 90px;
    height: 90px;
    margin: 0 auto 16px;
    border-radius: 18px;
    /* Kvadrata uyğun oval kənarlar */
    overflow: hidden;
    border: 2px solid rgba(0, 198, 255, 0.3);
    box-shadow: 0 0 30px rgba(0, 198, 255, 0.2);
    background: rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
}

.side-panel-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    padding: 0;
}

.side-panel-title {
    text-align: center;
    font-size: 18px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.9);
    letter-spacing: 1px;
    margin-bottom: 6px;
}

.side-panel-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(0, 198, 255, 0.3), transparent);
    margin: 22px 0;
}

.side-panel-section-title {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: #00c6ff;
    margin-bottom: 12px;
}

.side-panel-text {
    font-size: 14px;
    line-height: 1.75;
    color: rgba(255, 255, 255, 0.65);
}

.side-panel-contact {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.side-panel-contact li {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
}

.side-panel-contact li i {
    width: 16px;
    color: #00c6ff;
    font-size: 13px;
}

.side-panel-contact a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color 0.2s;
}

.side-panel-contact a:hover {
    color: #00c6ff;
}

.side-panel-socials {
    display: flex;
    gap: 14px;
    justify-content: center;
    margin-top: 8px;
}

.side-panel-socials a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.6);
    font-size: 16px;
    text-decoration: none;
    transition: all 0.25s ease;
}

.side-panel-socials a:hover {
    background: rgba(0, 198, 255, 0.15);
    border-color: rgba(0, 198, 255, 0.4);
    color: #00c6ff;
    transform: translateY(-3px);
}

/* ══════════════════════════════════
   HEADER
══════════════════════════════════ */
.header {
    position: relative;
    flex-shrink: 0;
    padding: 14px 28px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    z-index: 200;
    background: rgba(0, 0, 0, 0.25);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.header-left {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.header-left img {
    width: 44px;
    height: 44px;
    object-fit: contain;
    flex-shrink: 0;
    border-radius: 10px;
    /* Kvadrata uyğun oval kənarlar */
    background: rgba(255, 255, 255, 0.05);
    /* Tünd loqolar üçün yüngül arxa fon */
}

.header-left h1 {
    color: white;
    font-size: clamp(14px, 2vw, 22px);
    font-weight: 700;
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.25);
    letter-spacing: 1px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

/* ── Language Switcher ── */
.lang-switcher {
    position: relative;
}

.lang-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 7px 14px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.07);
    color: rgba(255, 255, 255, 0.85);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all 0.25s ease;
    white-space: nowrap;
}

.lang-btn:hover {
    background: rgba(255, 255, 255, 0.13);
    border-color: rgba(0, 198, 255, 0.35);
    color: white;
}

.lang-arrow {
    font-size: 10px !important;
    transition: transform 0.25s ease;
}

.lang-switcher.open .lang-arrow {
    transform: rotate(180deg);
}

.lang-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    width: 180px;
    background: rgba(15, 20, 50, 0.97);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(0, 198, 255, 0.18);
    border-radius: 14px;
    padding: 6px;
    z-index: 500;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-6px) scale(0.97);
    transition: all 0.22s cubic-bezier(0.4, 0, 0.2, 1);
    transform-origin: top right;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.lang-switcher.open .lang-dropdown {
    opacity: 1;
    pointer-events: all;
    transform: translateY(0) scale(1);
}

.lang-option {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 12px;
    border: none;
    border-radius: 9px;
    background: transparent;
    color: rgba(255, 255, 255, 0.75);
    font-size: 14px;
    cursor: pointer;
    transition: all 0.18s ease;
    text-align: left;
}

.lang-option:hover {
    background: rgba(0, 198, 255, 0.12);
    color: white;
}

.lang-option.active {
    background: rgba(0, 198, 255, 0.15);
    color: #00c6ff;
}

.lang-flag {
    font-size: 18px;
    line-height: 1;
}

.lang-check {
    margin-left: auto;
    font-size: 11px;
    opacity: 0;
    color: #00c6ff;
}

.lang-option.active .lang-check {
    opacity: 1;
}

/* ── Hamburger Button ── */
.menu-btn {
    width: 42px;
    height: 42px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.07);
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 0;
    transition: all 0.25s ease;
}

.menu-btn:hover {
    background: rgba(255, 255, 255, 0.13);
    border-color: rgba(0, 198, 255, 0.35);
}

.hamburger-line {
    display: block;
    width: 18px;
    height: 2px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 2px;
    transition: all 0.28s ease;
    transform-origin: center;
}

.menu-btn.open .hamburger-line:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.menu-btn.open .hamburger-line:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.menu-btn.open .hamburger-line:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* ══════════════════════════════════
   MAIN CONTENT
══════════════════════════════════ */
.main-content {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 12px 20px;
    position: relative;
    z-index: 1;
    overflow: hidden;
}

/* ── Radio Card ── */
.radio-card {
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 30px;
    padding: 36px 44px;
    text-align: center;
    box-shadow: 0 0 60px rgba(0, 150, 255, 0.25),
        inset 0 0 60px rgba(255, 255, 255, 0.04);
    animation: cardGlow 4s ease-in-out infinite alternate;
    backdrop-filter: blur(20px);
    max-width: 440px;
    width: 100%;
    position: relative;
    overflow: visible;
}

@keyframes cardGlow {
    from {
        box-shadow: 0 0 60px rgba(0, 150, 255, 0.25), inset 0 0 60px rgba(255, 255, 255, 0.04);
        border-color: rgba(0, 150, 255, 0.25);
    }

    to {
        box-shadow: 0 0 90px rgba(0, 200, 255, 0.4), inset 0 0 80px rgba(255, 255, 255, 0.08);
        border-color: rgba(0, 200, 255, 0.45);
    }
}

/* ── Music Notes ── */
.music-notes-container {
    position: absolute;
    top: -50px;
    left: -50px;
    right: -50px;
    bottom: -50px;
    pointer-events: none;
    z-index: 5;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.music-notes-container.active {
    opacity: 1;
}

.music-note {
    position: absolute;
    font-size: 22px;
    color: rgba(0, 198, 255, 0.8);
    text-shadow: 0 0 10px rgba(0, 198, 255, 0.5);
    animation: floatNote 4s ease-in-out infinite;
    opacity: 0;
}

@keyframes floatNote {
    0% {
        transform: translateY(0) rotate(0deg) scale(0.8);
        opacity: 0;
    }

    20% {
        opacity: 1;
        transform: translateY(-20px) rotate(10deg) scale(1);
    }

    80% {
        opacity: 1;
        transform: translateY(-80px) rotate(-10deg) scale(1.1);
    }

    100% {
        transform: translateY(-120px) rotate(0deg) scale(0.8);
        opacity: 0;
    }
}

/* ── On Air Badge ── */
.on-air-badge {
    position: absolute;
    top: 16px;
    right: 16px;
    background: rgba(255, 0, 0, 0.15);
    border: 2px solid rgba(255, 0, 0, 0.4);
    border-radius: 25px;
    padding: 6px 14px;
    display: flex;
    align-items: center;
    gap: 7px;
    opacity: 0.35;
    transition: all 0.3s ease;
    z-index: 10;
}

.on-air-badge.active {
    opacity: 1;
    animation: onAirPulse 2s ease-in-out infinite;
    box-shadow: 0 0 18px rgba(255, 0, 0, 0.4);
}

@keyframes onAirPulse {

    0%,
    100% {
        transform: scale(1);
        box-shadow: 0 0 18px rgba(255, 0, 0, 0.4);
    }

    50% {
        transform: scale(1.04);
        box-shadow: 0 0 28px rgba(255, 0, 0, 0.7);
    }
}

.on-air-dot {
    width: 9px;
    height: 9px;
    background: #ff3333;
    border-radius: 50%;
    animation: dotPulse 1s ease-in-out infinite;
}

@keyframes dotPulse {

    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.45;
        transform: scale(1.2);
    }
}

.on-air-text {
    color: #ff4444;
    font-weight: 700;
    font-size: 11px;
    letter-spacing: 2px;
}

/* ── Logo Container ── */
.logo-container {
    width: 200px;
    height: 200px;
    margin: 24px auto;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.spinning-logo {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    padding: 14px;
    position: relative;
    z-index: 10;
    box-shadow: 0 0 40px rgba(0, 0, 0, 0.35);
}

.spinning-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 50%;
}

.logo-container.playing .spinning-logo {
    animation: spin 3s linear infinite;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

/* Pulse Rings */
.pulse-ring {
    position: absolute;
    border-radius: 50%;
    border: 2px solid transparent;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0;
}

.ring-1 {
    width: 170px;
    height: 170px;
    border-color: rgba(0, 198, 255, 0.55);
}

.ring-2 {
    width: 190px;
    height: 190px;
    border-color: rgba(0, 150, 255, 0.35);
}

.ring-3 {
    width: 210px;
    height: 210px;
    border-color: rgba(0, 100, 255, 0.2);
}

.logo-container.playing .ring-1 {
    animation: pulseRing 2s ease-out infinite;
}

.logo-container.playing .ring-2 {
    animation: pulseRing 2s ease-out infinite 0.5s;
}

.logo-container.playing .ring-3 {
    animation: pulseRing 2s ease-out infinite 1s;
}

@keyframes pulseRing {
    0% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.8;
    }

    100% {
        transform: translate(-50%, -50%) scale(1.55);
        opacity: 0;
    }
}

/* ── Controls ── */
.controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin: 20px 0;
}

.play-btn {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    border: none;
    background: linear-gradient(135deg, #00c6ff, #0072ff);
    color: white;
    font-size: 26px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 0 28px rgba(0, 114, 255, 0.5);
    position: relative;
    overflow: hidden;
    z-index: 10;
}

.play-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 0 45px rgba(0, 198, 255, 0.75);
}

.play-btn:active {
    transform: scale(0.95);
}

.play-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.28);
    transform: translate(-50%, -50%);
    transition: width 0.55s, height 0.55s;
}

.play-btn:active::before {
    width: 280px;
    height: 280px;
}

/* ── Volume ── */
.volume-control {
    display: flex;
    align-items: center;
    gap: 10px;
}

.volume-btn {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.18);
    background: rgba(255, 255, 255, 0.08);
    color: white;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.25s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.volume-btn:hover {
    background: rgba(255, 255, 255, 0.16);
    transform: scale(1.08);
}

.volume-btn.muted {
    border-color: rgba(255, 60, 60, 0.5);
    color: #ff4444;
}

.volume-slider-container {
    width: 0;
    overflow: hidden;
    transition: width 0.3s ease;
}

.volume-control:hover .volume-slider-container {
    width: 110px;
}

.volume-slider {
    width: 110px;
    height: 5px;
    -webkit-appearance: none;
    appearance: none;
    background: rgba(255, 255, 255, 0.18);
    border-radius: 3px;
    outline: none;
    cursor: pointer;
}

.volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: linear-gradient(135deg, #00c6ff, #0072ff);
    cursor: pointer;
    box-shadow: 0 0 8px rgba(0, 198, 255, 0.5);
    transition: transform 0.2s;
}

.volume-slider::-webkit-slider-thumb:hover {
    transform: scale(1.2);
}

.volume-slider::-moz-range-thumb {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: linear-gradient(135deg, #00c6ff, #0072ff);
    cursor: pointer;
    border: none;
}

/* ── Status Text ── */
.status-text {
    margin-top: 14px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    letter-spacing: 0.5px;
    min-height: 22px;
}

/* ── Frequency Digits Animation ── */
.freq-animate {
    display: inline-block;
    color: #00c6ff;
    font-weight: 700;
    text-shadow: 0 0 10px rgba(0, 198, 255, 0.4);
}

.freq-animate.drop-out {
    animation: freqDropOut 0.4s cubic-bezier(0.55, 0.055, 0.675, 0.19) forwards;
}

.freq-animate.drop-in {
    animation: freqDropIn 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

@keyframes freqDropOut {
    0% {
        transform: translateY(0) scale(1);
        opacity: 1;
        filter: blur(0);
    }

    100% {
        transform: translateY(15px) scale(0.8);
        opacity: 0;
        filter: blur(3px);
    }
}

@keyframes freqDropIn {
    0% {
        transform: translateY(-15px) scale(1.1);
        opacity: 0;
        filter: blur(4px);
    }

    100% {
        transform: translateY(0) scale(1);
        opacity: 1;
        filter: blur(0);
    }
}

/* ── Loading Spinner ── */
.loading {
    display: inline-block;
    width: 14px;
    height: 14px;
    border: 2px solid rgba(255, 255, 255, 0.25);
    border-radius: 50%;
    border-top-color: white;
    animation: spinLoader 0.9s ease-in-out infinite;
    margin-left: 8px;
    vertical-align: middle;
}

@keyframes spinLoader {
    to {
        transform: rotate(360deg);
    }
}

/* ══════════════════════════════════
   VISUALIZER
══════════════════════════════════ */
.visualizer-container {
    position: fixed;
    bottom: 56px;
    left: 0;
    right: 0;
    height: 90px;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: 2px;
    z-index: 1;
    opacity: 0;
    transition: opacity 0.35s ease;
    padding: 0 4px;
}

.visualizer-container.active {
    opacity: 0.55;
}

.bar {
    flex: 1;
    min-width: 2px;
    background: linear-gradient(to top, #00c6ff, #0072ff, #00ff88);
    border-radius: 2px 2px 0 0;
    height: 20%;
    transition: height 0.1s ease;
    transform-origin: bottom;
}

.visualizer-container.active .bar {
    animation: equalizer 1s ease-in-out infinite;
}

@keyframes equalizer {

    0%,
    100% {
        transform: scaleY(0.25);
    }

    50% {
        transform: scaleY(1);
    }
}

/* ══════════════════════════════════
   FOOTER
══════════════════════════════════ */
.footer {
    position: relative;
    flex-shrink: 0;
    background: rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(10px);
    padding: 10px 28px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
    border-top: 1px solid rgba(255, 255, 255, 0.07);
}

.copyright {
    color: rgba(255, 255, 255, 0.55);
    font-size: 12px;
}

.social-links {
    display: flex;
    gap: 16px;
}

.social-links a {
    color: rgba(255, 255, 255, 0.55);
    font-size: 18px;
    transition: all 0.25s ease;
    text-decoration: none;
}

.social-links a:hover {
    color: #00c6ff;
    transform: translateY(-3px);
    text-shadow: 0 0 14px rgba(0, 198, 255, 0.7);
}

.highlight {
    color: white;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.2s;
    border-bottom: 1px solid transparent;
}

.highlight:hover {
    color: #00d9ff;
    border-bottom-color: #00d9ff;
}

/* ══════════════════════════════════
   RESPONSIVE
══════════════════════════════════ */
@media (max-width: 600px) {
    .header {
        padding: 10px 16px;
    }

    .header-left h1 {
        font-size: 13px;
    }

    .header-left img {
        width: 36px;
        height: 36px;
    }

    .radio-card {
        padding: 24px 20px;
        border-radius: 22px;
    }

    .logo-container {
        width: 160px;
        height: 160px;
        margin: 16px auto;
    }

    .spinning-logo {
        width: 120px;
        height: 120px;
    }

    .ring-1 {
        width: 136px;
        height: 136px;
    }

    .ring-2 {
        width: 152px;
        height: 152px;
    }

    .ring-3 {
        width: 168px;
        height: 168px;
    }

    .play-btn {
        width: 60px;
        height: 60px;
        font-size: 22px;
    }

    .footer {
        flex-direction: column;
        gap: 8px;
        text-align: center;
        padding: 8px 16px;
    }

    .visualizer-container {
        bottom: 70px;
        height: 60px;
    }

    .side-panel {
        width: 100%;
        max-width: 100%;
    }
}

@media (max-height: 640px) {
    .logo-container {
        width: 140px;
        height: 140px;
        margin: 12px auto;
    }

    .spinning-logo {
        width: 110px;
        height: 110px;
    }

    .ring-1 {
        width: 124px;
        height: 124px;
    }

    .ring-2 {
        width: 138px;
        height: 138px;
    }

    .ring-3 {
        width: 152px;
        height: 152px;
    }

    .radio-card {
        padding: 20px 28px;
    }

    .controls {
        margin: 12px 0;
    }

    .status-text {
        margin-top: 8px;
        font-size: 13px;
    }
}