/*
 * VARIANT 3 - MINIMALISTIC TOP DESIGN
 * Компактные соц.сети в хедере + крупные карточки действий
 */

@import url('base.css');

/* ==================== HEADER V3 ==================== */
.station-header-v3 {
    position: relative;
    margin: 20px auto;
    width: 100%;
    max-width: 1200px;
    background: var(--glass-bg);
    backdrop-filter: blur(var(--blur-amount));
    -webkit-backdrop-filter: blur(var(--blur-amount));
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    padding: 12px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    z-index: 10000;
}

.station-name {
    color: white;
    font-weight: 700;
    font-size: 1.3rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.station-name::after {
    content: '';
    display: inline-block;
    width: 10px;
    height: 10px;
    background-color: #ff0000;
    border-radius: 50%;
    box-shadow: 0 0 8px rgba(255, 0, 0, 0.6);
    animation: pulseLive 1.5s ease-in-out infinite;
}

/* Burger menu - скрыто на десктопе */
.burger-menu {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 10003;
    position: relative;
}

.burger-menu span {
    width: 25px;
    height: 3px;
    background: white;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.burger-menu.active span {
    background: white;
}

.burger-menu.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.burger-menu.active span:nth-child(2) {
    opacity: 0;
    transform: translateX(-20px);
}

.burger-menu.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

@keyframes pulseLive {
    0%, 100% { transform: scale(1); opacity: 0.8; }
    50% { transform: scale(1.2); opacity: 1; }
}

/* Header Links & Social Wrapper */
.header-links-wrapper {
    display: flex;
    align-items: center;
    gap: 20px;
}

.header-links {
    display: flex;
    gap: 12px;
}

.header-link {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    padding: 8px 16px;
    color: white;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.header-link:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(123, 97, 255, 0.6);
    transform: translateY(-1px);
    box-shadow: 0 2px 10px rgba(123, 97, 255, 0.3);
}

.header-link-accent {
    background: linear-gradient(135deg, rgba(123, 97, 255, 0.3), rgba(99, 77, 230, 0.2));
    border-color: rgba(123, 97, 255, 0.5);
}

.header-link-accent:hover {
    background: linear-gradient(135deg, rgba(123, 97, 255, 0.5), rgba(99, 77, 230, 0.3));
    border-color: rgba(123, 97, 255, 0.8);
    box-shadow: 0 4px 15px rgba(123, 97, 255, 0.5);
}

/* Social Icons in Header */
.social-icons-compact {
    display: flex;
    gap: 12px;
}

.social-icon {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    cursor: pointer;
}

.social-icon:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(123, 97, 255, 0.4);
}

.social-icon img {
    width: 24px;
    height: 24px;
    filter: brightness(0) invert(1);
}

/* ==================== BANNER SLIDER V3 ==================== */
.banner-slider-v3 {
    width: 100%;
    max-width: 1200px;
    height: 280px;
    background: rgba(0, 0, 0, 0.5);
    border-radius: var(--radius-md);
    overflow: hidden;
    margin: 20px auto;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    position: relative;
}

.banner-slider-v3 img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
    transition: opacity 0.8s ease;
}

.banner-slider-v3 img.active {
    opacity: 1;
}

.banner-slider-v3 .dots {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.banner-slider-v3 .dots span {
    width: 12px;
    height: 12px;
    background: white;
    border-radius: 50%;
    opacity: 0.4;
    cursor: pointer;
    transition: opacity 0.3s;
}

.banner-slider-v3 .dots span.active {
    opacity: 1;
}

/* ==================== SEO BLOCK ==================== */
.seo-block {
    width: 100%;
    max-width: 1200px;
    margin: 30px auto; /* Обычный поток */
    background: var(--glass-bg);
    backdrop-filter: blur(var(--blur-amount));
    -webkit-backdrop-filter: blur(var(--blur-amount));
    border: 1px solid var(--glass-border);
    border-radius: 15px;
    padding: 25px 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.seo-block h1 {
    font-size: 1.8rem;
    font-weight: 700;
    color: white;
    margin: 0 0 15px 0;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.seo-block p {
    font-size: 1rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.85);
    margin: 0;
}

/* ==================== ACTIONS SECTION (ONLY BUTTONS) ==================== */
.actions-section-only {
    width: 100%;
    max-width: 1200px;
    margin: 30px auto; /* Обычный поток */
    background: var(--glass-bg);
    backdrop-filter: blur(var(--blur-amount));
    -webkit-backdrop-filter: blur(var(--blur-amount));
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.section-header {
    text-align: center;
    margin-bottom: 20px;
}

.section-header h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
    margin: 0;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

/* Social Grid - УДАЛЕНО (соц.сети только в хедере) */

/* Divider - УДАЛЕНО */

/* Actions Grid */
.actions-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
}

.action-card-compact {
    flex: 0 1 auto; /* Авторазмер */
}
.action-card-compact {
    flex: 0 1 auto; /* Авторазмер */
    background: rgba(255, 255, 255, 0.08);
    border: 2px solid rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    padding: 18px 25px;
    min-width: 180px; /* Минимальная ширина для единообразия */
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    color: white;
}

.action-card-compact:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(123, 97, 255, 0.6);
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(123, 97, 255, 0.4);
}

.action-card-compact.primary {
    background: linear-gradient(135deg, rgba(123, 97, 255, 0.25), rgba(99, 77, 230, 0.2));
    border-color: rgba(123, 97, 255, 0.4);
}

.action-card-compact.primary:hover {
    background: linear-gradient(135deg, rgba(123, 97, 255, 0.4), rgba(99, 77, 230, 0.3));
    border-color: rgba(123, 97, 255, 0.7);
    box-shadow: 0 6px 30px rgba(123, 97, 255, 0.6);
}

.action-card-compact.autodj {
    background: linear-gradient(135deg, rgba(255, 152, 0, 0.25), rgba(255, 87, 34, 0.2));
    border-color: rgba(255, 152, 0, 0.4);
}

.action-card-compact.autodj:hover {
    background: linear-gradient(135deg, rgba(255, 152, 0, 0.4), rgba(255, 87, 34, 0.3));
    border-color: rgba(255, 152, 0, 0.7);
}

/* Disabled state for buttons when no DJ */
.action-card-compact.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    filter: grayscale(50%);
}

.action-card-compact.disabled:hover {
    transform: none;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

/* Tooltip */
.action-card-compact[data-tooltip] {
    position: relative;
}

.action-card-compact[data-tooltip].disabled:hover::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: calc(100% + 10px);
    left: 50%;
    transform: translateX(-50%);
    padding: 12px 16px;
    background: rgba(0, 0, 0, 0.95);
    color: white;
    border-radius: 10px;
    font-size: 0.9rem;
    white-space: nowrap;
    z-index: 10000;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
    animation: tooltipFadeIn 0.2s ease;
    pointer-events: none;
}

.action-card-compact[data-tooltip].disabled:hover::before {
    content: '';
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 7px solid transparent;
    border-top-color: rgba(0, 0, 0, 0.95);
    z-index: 10000;
    pointer-events: none;
}

@keyframes tooltipFadeIn {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(5px);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

.action-icon {
    font-size: 2rem;
    line-height: 1;
}

.action-text {
    font-size: 1rem;
    font-weight: 600;
}

/* ==================== FOOTER (ВНИЗУ, ОБЫЧНЫЙ ПОТОК) ==================== */
.site-footer-bottom {
    width: 100%;
    max-width: 1200px;
    margin: 30px auto 200px; /* Больше отступ снизу для плеера */
    background: var(--glass-bg);
    backdrop-filter: blur(var(--blur-amount));
    -webkit-backdrop-filter: blur(var(--blur-amount));
    border: 1px solid var(--glass-border);
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 15px;
}

.footer-logo-img {
    width: 50px;
    height: 50px;
    border-radius: 10px;
    object-fit: cover;
    border: 2px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.footer-brand {
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
    letter-spacing: 0.5px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.footer-links {
    display: flex;
    gap: 20px;
}

.footer-link {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1.5px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    padding: 12px 25px;
    color: white;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}

.footer-link:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(123, 97, 255, 0.6);
    transform: translateY(-2px);
    box-shadow:
        0 4px 20px rgba(123, 97, 255, 0.4),
        0 0 30px rgba(123, 97, 255, 0.2);
}

/* ==================== ACTION CARDS GRID V3 ==================== */
/* Удалено - теперь в combined секции */

/* ==================== FOOTER ==================== */
/* Удалено - перенесено в site-footer-bottom */

/* ==================== BOTTOM PLAYER ==================== */
.bottom-player {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 1200px;
    background: var(--glass-bg);
    backdrop-filter: blur(var(--blur-amount));
    -webkit-backdrop-filter: blur(var(--blur-amount));
    border: 1px solid var(--glass-border);
    border-radius: 20px 20px 0 0;
    padding: 20px 30px;
    display: flex;
    align-items: center;
    gap: 20px;
    z-index: 2000;
    box-shadow: 0 -4px 30px rgba(0, 0, 0, 0.3);
}

/* ==================== SIDEBAR MODALS ==================== */
/* История треков - выезжает слева */
#historyModal.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0);
    z-index: 3000;
    backdrop-filter: blur(0px);
    transition: background 0.3s ease, backdrop-filter 0.3s ease;
}

#historyModal.modal.show,
#historyModal.modal.active {
    display: flex !important;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
}

#historyModal .modal-content {
    position: fixed;
    left: -550px;
    top: 100px;
    width: 550px;
    max-width: 90vw;
    height: calc(100vh - 100px);
    background: var(--glass-bg);
    backdrop-filter: blur(var(--blur-amount));
    border-radius: 0;
    padding: 20px;
    padding-top: 60px;
    box-shadow: 4px 0 30px rgba(0, 0, 0, 0.5);
    overflow-y: auto;
    transition: left 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

#historyModal .modal-content h2{
    background: transparent;
}

#historyModal.modal.show .modal-content,
#historyModal.modal.active .modal-content {
    left: 0;
}

/* Текст песни - выезжает справа */
#lyricsModal.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0);
    z-index: 3000;
    backdrop-filter: blur(0px);
    transition: background 0.3s ease, backdrop-filter 0.3s ease;
}

#lyricsModal.modal.show,
#lyricsModal.modal.active {
    display: flex !important;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
}

#lyricsModal .modal-content {
    position: fixed;
    right: -450px;
    top: 100px;
    width: 450px;
    max-width: 90vw;
    height: calc(100vh - 100px);
    background: var(--glass-bg);
    backdrop-filter: blur(var(--blur-amount));
    border-radius: 0;
    padding: 20px;
    padding-top: 60px;
    box-shadow: -4px 0 30px rgba(0, 0, 0, 0.5);
    overflow-y: auto;
    transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

#lyricsModal.modal.show .modal-content,
#lyricsModal.modal.active .modal-content {
    right: 0;
}

/* Кнопка закрытия для sidebar */
#historyModal .close-modal,
#lyricsModal .close-modal {
    position: absolute;
    top: 30px;
    right: 20px;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

#historyModal .close-modal:hover,
#lyricsModal .close-modal:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg);
}

/* ==================== BOTTOM PLAYER ==================== */
.bottom-player {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 1200px;
    background: var(--glass-bg);
    backdrop-filter: blur(var(--blur-amount));
    -webkit-backdrop-filter: blur(var(--blur-amount));
    border: 1px solid var(--glass-border);
    border-radius: 20px 20px 0 0;
    padding: 20px 30px;
    display: flex;
    align-items: center;
    gap: 20px;
    z-index: 2000;
    box-shadow: 0 -4px 30px rgba(0, 0, 0, 0.3);
}

.player-btn {
    background: linear-gradient(135deg, rgba(123, 97, 255, 0.6), rgba(99, 77, 230, 0.5));
    backdrop-filter: blur(10px);
    border: 2px solid rgba(123, 97, 255, 0.8);
    border-radius: 50%;
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow:
        0 4px 20px rgba(123, 97, 255, 0.5),
        0 0 30px rgba(123, 97, 255, 0.3);
}

.player-btn:hover {
    transform: scale(1.08);
    background: linear-gradient(135deg, rgba(123, 97, 255, 0.8), rgba(99, 77, 230, 0.7));
    box-shadow:
        0 6px 30px rgba(123, 97, 255, 0.7),
        0 0 40px rgba(123, 97, 255, 0.5);
}

.player-btn svg {
    width: 32px;
    height: 32px;
    fill: white;
}

.player-art {
    width: 65px;
    height: 65px;
    border-radius: 12px;
    object-fit: cover;
    border: 2px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.player-info {
    flex: 1;
    min-width: 0;
}

.player-title-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 4px;
}

.player-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: white;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.live-badge {
    background: linear-gradient(135deg, #ff4444, #cc0000);
    color: white;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 12px;
    white-space: nowrap;
    animation: pulseLiveBadge 2s ease-in-out infinite;
    box-shadow: 0 2px 10px rgba(255, 0, 0, 0.5);
}

@keyframes pulseLiveBadge {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.8; transform: scale(1.05); }
}

.player-artist {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.7);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 8px;
}

.player-progress-container {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
}

/* Скрываем таймер (elapsed/duration) */
#player-elapsed,
#player-duration {
    display: none !important;
}

.player-progress-bar {
    flex: 1;
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    overflow: hidden;
}

.player-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #7B61FF, #634DE6);
    border-radius: 3px;
    transition: width 0.3s ease;
}

.player-actions {
    display: flex !important;
    gap: 10px;
}

.rating-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1.5px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    width: 55px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
    color: white;
    font-size: 1.2rem;
}

.rating-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.05);
}

.rating-btn.like.active {
    background: linear-gradient(135deg, rgba(76, 175, 80, 0.5), rgba(56, 142, 60, 0.4));
    border-color: rgba(76, 175, 80, 0.8);
    box-shadow: 0 0 20px rgba(76, 175, 80, 0.6);
}

.rating-btn.dislike.active {
    background: linear-gradient(135deg, rgba(244, 67, 54, 0.5), rgba(211, 47, 47, 0.4));
    border-color: rgba(244, 67, 54, 0.8);
    box-shadow: 0 0 20px rgba(244, 67, 54, 0.6);
}

.rating-count {
    font-size: 0.8rem;
    font-weight: 600;
}

/* Player Extra Actions (History & Lyrics) */
.player-extra-actions {
    display: flex;
    gap: 8px;
}

.player-extra-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1.5px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1.3rem;
}

.player-extra-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(123, 97, 255, 0.6);
    transform: scale(1.05);
    box-shadow: 0 0 15px rgba(123, 97, 255, 0.4);
}

.volume-control {
    display: flex;
    align-items: center;
    gap: 10px;
}

.volume-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1.5px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.volume-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.05);
}

.volume-btn.muted {
    background: linear-gradient(135deg, rgba(244, 67, 54, 0.5), rgba(211, 47, 47, 0.6)) !important;
    border-color: rgba(244, 67, 54, 0.8) !important;
    box-shadow: 0 0 20px rgba(244, 67, 54, 0.6) !important;
}

.volume-btn svg {
    width: 22px;
    height: 22px;
    fill: white;
}

.volume-slider {
    width: 100px;
    height: 6px;
    -webkit-appearance: none;
    appearance: none;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    outline: none;
}

.volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 16px;
    height: 16px;
    background: linear-gradient(135deg, #7B61FF, #634DE6);
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(123, 97, 255, 0.5);
}

.volume-slider::-moz-range-thumb {
    width: 16px;
    height: 16px;
    background: linear-gradient(135deg, #7B61FF, #634DE6);
    border-radius: 50%;
    cursor: pointer;
    border: none;
    box-shadow: 0 2px 8px rgba(123, 97, 255, 0.5);
}

.listeners {
    display: flex !important;
    align-items: center;
    gap: 8px;
    color: white;
    font-size: 1rem;
    padding: 8px 15px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 1024px) {
    /* На планшетах уже 2 колонки по умолчанию */
}

@media (max-width: 991px) {
    .station-header-v3 {
        flex-direction: row;
        justify-content: space-between;
        padding: 15px;
        margin: 10px;
        position: relative;
    }

    /* Показываем бургер-меню */
    .burger-menu {
        display: flex;
    }

    /* Скрываем меню по умолчанию */
    .header-links-wrapper {
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        width: 100%;
        background: rgba(15, 15, 25, 0.98);
        backdrop-filter: blur(var(--blur-amount));
        border-bottom: 2px solid rgba(255, 255, 255, 0.2);
        padding: 25px 20px;
        flex-direction: column;
        gap: 15px;
        opacity: 0;
        visibility: hidden;
        transform: translateY(-20px);
        transition: all 0.3s ease;
        box-shadow: 0 10px 40px rgba(0, 0, 0, 0.9);
        z-index: 10002;
        pointer-events: none;
    }

    .header-links-wrapper.active {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
        pointer-events: auto;
    }

    /* Фон (overlay) когда меню открыто - НЕ затемняет шапку */
    body::after {
        content: '';
        position: fixed;
        top: 130px;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.75);
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.3s ease, visibility 0.3s ease;
        z-index: 9999;
        pointer-events: none;
    }

    body.menu-open::after {
        opacity: 1;
        visibility: visible;
    }

    /* Показываем меню когда активно */
    .header-links-wrapper.active {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    .header-links {
        flex-direction: column;
        width: 100%;
        gap: 10px;
    }

    .header-link {
        font-size: 0.9rem;
        padding: 12px 15px;
        text-align: center;
        width: 100%;
        border-radius: 10px;
        background: rgba(255, 255, 255, 0.95);
        color: #1a1a2e !important;
        font-weight: 600;
        transition: all 0.2s ease;
    }

    .header-link:hover {
        background: rgba(255, 255, 255, 1);
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(255, 255, 255, 0.3);
    }

    .social-icons-compact {
        justify-content: center;
        gap: 15px;
    }

    .social-icon img {
        width: 32px;
        height: 32px;
    }

    .banner-slider-v3 {
        height: 200px;
        margin: 10px;
    }

    .seo-block {
        padding: 20px;
        margin: 20px auto;
    }

    .seo-block h1 {
        font-size: 1.3rem;
    }

    .seo-block p {
        font-size: 0.9rem;
    }

    .actions-section-only {
        margin: 20px auto;
        padding: 20px;
    }

    .actions-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .action-card-compact {
        padding: 15px 18px;
    }

    .action-icon {
        font-size: 1.8rem;
    }

    .action-text {
        font-size: 0.95rem;
    }

    /* Sidebar модалки на мобильных */
    #historyModal .modal-content,
    #lyricsModal .modal-content {
        width: 100vw;
        max-width: 100vw;
        border-radius: 0;
    }

    .player-extra-actions {
        gap: 6px;
    }

    /* BOTTOM PLAYER - БЕЗ ORDER! */
    /* Строка 1: кнопка плей | трек | лайк\дизлайк */
    /* Строка 2: слушатели | громкость | история | текст песни */

    .bottom-player {
        display: grid;
        grid-template-columns: auto 1fr auto;
        grid-template-rows: auto auto;
        padding: 12px 15px;
        gap: 10px 10px;
        max-width: 100%;
        align-items: center;
    }

    /* === СТРОКА 1 === */

    /* Play кнопка - первая ячейка */
    .player-btn {
        grid-column: 1;
        grid-row: 1;
        width: 50px;
        height: 50px;
    }

    .player-btn svg {
        width: 24px;
        height: 24px;
    }

    /* ОБЛОЖКА СКРЫВАЕМ */
    .player-art {
        display: none;
    }

    /* ТРЕК - вторая ячейка (растягивается) */
    .player-info {
        grid-column: 2;
        grid-row: 1;
        min-width: 0;
    }

    .player-title {
        font-size: 0.9rem;
    }

    .player-artist {
        font-size: 0.8rem;
    }

    .player-progress-bar {
        height: 3px;
    }

    .live-badge {
        font-size: 0.7rem;
        padding: 2px 6px;
    }

    /* ЛАЙКИ - третья ячейка */
    .player-actions {
        grid-column: 3;
        grid-row: 1;
        display: flex;
        gap: 6px;
    }

    .rating-btn {
        width: 45px;
        height: 38px;
        font-size: 1rem;
    }

    .rating-count {
        font-size: 0.7rem;
    }

    /* === СТРОКА 2 === */

    /* СЛУШАТЕЛИ - первая ячейка второй строки */
    .listeners {
        grid-column: 1;
        grid-row: 2;
        padding: 6px 12px;
        font-size: 0.85rem;
        white-space: nowrap;
    }

    /* ГРОМКОСТЬ - вторая ячейка (растягивается) */
    .volume-control {
        grid-column: 2;
        grid-row: 2;
        display: flex;
        gap: 8px;
        min-width: 0;
    }

    .volume-btn {
        width: 38px;
        height: 38px;
        flex-shrink: 0;
    }

    .volume-btn svg {
        width: 20px;
        height: 20px;
    }

    .volume-slider {
        flex: 1;
        min-width: 60px;
    }

    /* ИСТОРИЯ И ТЕКСТ - третья ячейка */
    .player-extra-actions {
        grid-column: 3;
        grid-row: 2;
        display: flex;
        gap: 6px;
    }

    .player-extra-btn {
        width: 38px;
        height: 38px;
        font-size: 1rem;
    }
}

/* Дополнительный breakpoint для очень маленьких экранов */
@media (max-width: 480px) {
    .station-header-v3 {
        padding: 10px;
    }

    .station-header-v3 {
        padding: 10px;
    }

    .station-name {
        font-size: 0.95rem;
    }

    .header-link {
        font-size: 0.75rem;
        padding: 5px 10px;
    }

    .social-icon img {
        width: 28px;
        height: 28px;
    }

    .banner-slider-v3 {
        height: 150px;
        margin: 10px;
    }

    .seo-block {
        padding: 15px;
        margin: 15px 10px;
    }

    .seo-block h1 {
        font-size: 1.1rem;
    }

    .seo-block p {
        font-size: 0.85rem;
    }

    .actions-section-only {
        margin: 15px 10px;
        padding: 15px;
    }

    .action-card-compact {
        padding: 12px 15px;
    }

    .action-icon {
        font-size: 1.5rem;
    }

    .action-text {
        font-size: 0.9rem;
    }

    /* Плеер на очень маленьких экранах */
    .bottom-player {
        padding: 10px 12px;
        gap: 10px;
    }

    .player-btn {
        width: 45px;
        height: 45px;
    }

    .player-btn svg {
        width: 22px;
        height: 22px;
    }

    .player-art {
        width: 45px;
        height: 45px;
    }

    .player-title {
        font-size: 0.85rem;
    }

    .player-artist {
        font-size: 0.75rem;
    }

    .rating-btn {
        width: 44px;
        height: 38px;
        font-size: 0.95rem;
    }

    .rating-count {
        font-size: 0.65rem;
    }

    .player-extra-btn {
        width: 38px;
        height: 38px;
        font-size: 1rem;
    }

    .volume-btn {
        width: 38px;
        height: 38px;
    }

    .volume-slider {
        max-width: 180px;
    }

    .listeners {
        font-size: 0.8rem;
        padding: 5px 10px;
    }

    /* Тултипы на мобильных */
    .action-card-compact[data-tooltip].disabled:hover::after {
        font-size: 0.8rem;
        padding: 10px 12px;
        white-space: normal;
        max-width: 200px;
        text-align: center;
    }
}
        width: 40px;
        height: 40px;
        font-size: 1.1rem;
    }

    .bottom-player {
        flex-wrap: wrap;
        padding: 15px 20px;
    }

    .player-btn {
        width: 60px;
        height: 60px;
    }

    .volume-slider {
        width: 80px;
    }
}

