#language-selector {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 10000;
    display: flex;
    flex-wrap: wrap;
    gap: 0;
    align-items: center;
    padding: 0;
}

.music-player {
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(20, 20, 20, 0.85);
    border: none;
    border-bottom: 1px solid #8b0000;
    border-radius: 0;
    padding: 8px 10px;
    overflow: hidden;
    flex: 1;
    width: 100%;
    order: -1;
    min-width: 0;
}

.track-info {
    display: flex;
    flex-direction: column;
    flex: 1;
    width: auto;
    min-width: 0;
    gap: 3px;
    overflow: hidden;
}

.track-name-wrapper {
    width: 100%;
    overflow: hidden;
    position: relative;
}

.track-name {
    color: #ff6666;
    font-size: 11px;
    font-family: 'Courier New', monospace;
    white-space: nowrap;
    text-shadow: 0 0 8px rgba(255, 0, 0, 0.5);
    display: inline-block;
}

.track-name.scrolling {
    animation: marquee 10s linear infinite;
    padding-right: 50px;
}

@keyframes marquee {
    0%, 10% { transform: translateX(0); }
    90%, 100% { transform: translateX(calc(-100% + 240px)); }
}

.track-progress {
    width: 100%;
    height: 5px;
    background: rgba(139, 0, 0, 0.3);
    border-radius: 2px;
    cursor: pointer;
    position: relative;
}

.track-progress-bar {
    height: 100%;
    background: #ff6666;
    border-radius: 2px;
    width: 0%;
    transition: width 0.1s linear;
    pointer-events: none;
}

.player-btn {
    width: 28px !important;
    height: 28px;
    padding: 0 !important;
    background: rgba(139, 0, 0, 0.5);
    border: 1px solid #8b0000;
    color: #fff;
    cursor: pointer;
    font-size: 12px;
    border-radius: 4px;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.player-btn:hover {
    background: rgba(139, 0, 0, 0.9);
    border-color: #ff0000;
    box-shadow: 0 0 10px rgba(255, 0, 0, 0.4);
}

@media (max-width: 600px) {
    .track-name {
        font-size: 11px;
    }
    .player-btn {
        width: 28px !important;
        height: 28px;
        font-size: 12px;
    }
}

.lang-selector-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(20, 20, 20, 0.85);
    padding: 8px 10px;
    border-bottom: 1px solid #8b0000;
}

.lang-globe-btn {
    font-size: 16px !important;
}

.lang-buttons {
    display: flex;
    gap: 6px;
    overflow: hidden;
    max-width: 0;
    opacity: 0;
    transition: max-width 0.3s ease, opacity 0.3s ease, margin 0.3s ease;
    margin-left: 0;
}

.lang-buttons.open {
    max-width: 200px;
    opacity: 1;
    margin-left: 8px;
}

.lang-btn {
    padding: 6px 12px;
    background: rgba(139, 0, 0, 0.6);
    border: 1px solid #8b0000;
    color: #fff;
    cursor: pointer;
    font-family: 'Courier New', monospace;
    font-size: 12px;
    font-weight: bold;
    transition: all 0.2s ease;
    border-radius: 4px;
    white-space: nowrap;
}

.lang-btn:hover {
    background: rgba(139, 0, 0, 0.9);
    border-color: #ff0000;
    box-shadow: 0 0 8px rgba(255, 0, 0, 0.4);
}

.lang-btn.active {
    background: #8b0000;
    border-color: #ff0000;
    box-shadow: 0 0 10px rgba(255, 0, 0, 0.6);
}

.menu-subtitle {
    color: #999;
    font-size: 16px;
    margin-bottom: 30px;
    font-style: italic;
}

#language-selector.hidden {
    display: none !important;
}

/* Cyrillic font override */
html[lang="ru"] body,
html[lang="ru"] button,
html[lang="ru"] input,
html[lang="ru"] textarea,
html[lang="ru"] select {
    font-family: 'Ubuntu', sans-serif;
}
