﻿* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    display: flex;
    height: 100vh;
    font-family: 'Roboto', sans-serif;
    background-color: #0a0a0a;
}

/* РЎС‚РёР»РёР·Р°С†РёСЏ РїРѕР»РѕСЃС‹ РїСЂРѕРєСЂСѓС‚РєРё */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}
::-webkit-scrollbar-track {
    background: #1a1a1a;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb {
    background: #444;
    border-radius: 4px;
    transition: background 0.3s;
}
::-webkit-scrollbar-thumb:hover {
    background: #ff0000;
}
* {
    scrollbar-width: thin;
    scrollbar-color: #444 #1a1a1a;
}

@keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* РџР»РµР№Р»РёСЃС‚ */
#playlist-container {
    width: 300px;
    background-color: #111;
    color: white;
    display: flex;
    flex-direction: column;
    border-right: 1px solid #222;
    z-index: 2;
}

#playlist-header {
    padding: 20px;
    border-bottom: 1px solid #222;
    flex-shrink: 0;
    background: linear-gradient(135deg, #0d0d0d 0%, #111 100%);
}

.playlist-header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.settings-btn {
    background: none;
    border: none;
    color: #888;
    font-size: 22px;
    cursor: pointer;
    padding: 8px;
    border-radius: 8px;
    transition: all 0.3s ease;
}
.settings-btn:hover {
    color: #ff0000;
    background: #1a1a1a;
    transform: rotate(30deg);
}

.playlist-title {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 18px;
    font-weight: 700;
    color: #fff;
}
.playlist-title-icon {
    font-size: 24px;
    background: linear-gradient(135deg, #ff0000, #cc0000);
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
}
.playlist-title-text {
    letter-spacing: 3px;
    font-size: 20px;
    font-weight: 800;
    background: linear-gradient(135deg, #fff 0%, #e04040 50%, #fff 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: titleShimmer 4s ease-in-out infinite;
    text-transform: uppercase;
}
@keyframes titleShimmer {
    0%, 100% { background-position: 0% center; }
    50% { background-position: 200% center; }
}
.playlist-stats {
    display: flex;
    gap: 8px;
    margin-top: 10px;
}
.stat-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 11px;
    font-weight: 500;
    color: #888;
    background: linear-gradient(180deg, #1a1a1a 0%, #141414 100%);
    border: 1px solid #252525;
    padding: 4px 10px;
    border-radius: 20px;
    letter-spacing: 0.2px;
}
.stat-badge svg {
    opacity: 0.7;
    flex-shrink: 0;
}
.stat-badge span {
    color: #ccc;
    font-weight: 600;
}
.stat-queue span {
    color: #e04040;
}

/* РџРѕРёСЃРє */
.search-container {
    margin-top: 15px;
    position: relative;
}
.search-input-wrapper {
    position: relative;
    width: 100%;
}
.search-input {
    width: 100%;
    padding: 9px 35px 9px 38px;
    background: linear-gradient(180deg, #111 0%, #0d0d0d 100%);
    border: 1px solid #252525;
    border-radius: 10px;
    color: #eee;
    font-size: 13px;
    outline: none;
    transition: all 0.2s ease;
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.3);
}
.search-input::placeholder {
    color: #555;
    font-weight: 400;
}
.search-input:focus {
    border-color: #c00;
    background: linear-gradient(180deg, #161616 0%, #111 100%);
    box-shadow: 0 0 0 2px rgba(200,0,0,0.12), inset 0 1px 3px rgba(0,0,0,0.2);
}
.search-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #555;
    pointer-events: none;
    display: flex;
    align-items: center;
    transition: color 0.2s ease;
}
.search-input:focus ~ .search-icon,
.search-input-wrapper:focus-within .search-icon {
    color: #e04040;
}
.search-clear {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    background: #222;
    border: none;
    color: #666;
    cursor: pointer;
    font-size: 11px;
    display: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    line-height: 18px;
    text-align: center;
    transition: all 0.15s ease;
}
.search-clear:hover {
    color: #fff;
    background: #c00;
}
.search-counter {
    font-size: 11px;
    color: #666;
    margin-top: 8px;
    padding: 0 5px;
    display: none;
}
.no-results-message {
    text-align: center;
    padding: 40px 20px;
    color: #666;
    font-size: 13px;
}
.no-results-message div:first-child {
    font-size: 48px;
    margin-bottom: 10px;
    opacity: 0.5;
}

#playlist-tabs {
    display: flex;
    gap: 4px;
    padding: 10px 10px 0;
    background: #0a0a0a;
    position: relative;
}
#playlist-tabs::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: #1a1a1a;
}
.tab-btn {
    flex: 1;
    background: transparent;
    border: none;
    border-bottom: 2px solid transparent;
    color: #666;
    padding: 9px 12px 10px;
    border-radius: 0;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.3px;
    transition: all 0.2s ease;
    position: relative;
    z-index: 1;
}
.tab-btn.active {
    color: #fff;
    border-bottom-color: #e04040;
    background: transparent;
}
.tab-btn:hover:not(.active) {
    color: #bbb;
    border-bottom-color: #333;
}

#playlist-controls {
    display: flex;
    gap: 5px;
    padding: 8px 10px;
    border-bottom: 1px solid #1a1a1a;
    background: linear-gradient(180deg, #111 0%, #0a0a0a 100%);
    flex-shrink: 0;
}
.ctrl-btn {
    background: linear-gradient(180deg, #222 0%, #161616 100%);
    border: 1px solid #2a2a2a;
    color: #999;
    height: 32px;
    padding: 0 12px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s ease;
    flex: 1;
    box-shadow: 0 1px 3px rgba(0,0,0,0.4), inset 0 1px 0 rgba(255,255,255,0.04);
}
.ctrl-btn:hover {
    color: #fff;
    border-color: #c00;
    background: linear-gradient(180deg, #2a1015 0%, #1a0a0c 100%);
    box-shadow: 0 1px 6px rgba(255,0,0,0.2), inset 0 1px 0 rgba(255,255,255,0.05);
}
.ctrl-btn:active {
    transform: scale(0.95);
    box-shadow: 0 0 2px rgba(0,0,0,0.5), inset 0 1px 3px rgba(0,0,0,0.3);
}
#pl-play-btn {
    color: #e04040;
    font-size: 15px;
}
#pl-play-btn:hover {
    color: #ff4444;
}

#playlist-items {
    flex: 1;
    overflow-y: auto;
    padding: 6px 8px;
}
.playlist-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 12px;
    cursor: pointer;
    border-left: 3px solid transparent;
    border-radius: 10px;
    transition: all 0.18s ease;
    margin: 2px 0;
    background: linear-gradient(180deg, rgba(255,255,255,0.03) 0%, rgba(255,255,255,0.01) 100%);
    box-shadow: 0 1px 2px rgba(0,0,0,0.2), inset 0 1px 0 rgba(255,255,255,0.03);
}
.playlist-item.drag-over {
    background: rgba(255,255,255,0.06);
    box-shadow: inset 0 0 0 1px rgba(255,255,255,0.1);
}
.playlist-item-icons {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-right: 10px;
    flex-shrink: 0;
    width: 18px;
    align-items: center;
    align-self: stretch;
    justify-content: center;
}
.song-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    border-radius: 4px;
    opacity: 0;
}
.song-icon svg {
    display: block;
}
.song-icon-vocal {
    opacity: 1;
    color: #e8a040;
    background: rgba(232,160,64,0.12);
}
.song-icon-video {
    opacity: 1;
    color: #60b0e0;
    background: rgba(96,176,224,0.12);
}
.song-icon-bv {
    display: inline-flex;
    align-items: center;
    font-size: 8px;
    font-weight: 800;
    line-height: 1;
    vertical-align: middle;
    position: relative;
    top: -2px;
    color: #4fc3f7;
    background: rgba(79,195,247,0.15);
    border-radius: 3px;
    padding: 2px 4px;
    letter-spacing: 0.5px;
    margin-left: 3px;
}
.playlist-item-content {
    flex: 1;
    min-width: 0;
}
.playlist-item-actions {
    display: flex;
    gap: 8px;
    align-items: center;
    margin-left: auto;
    flex-shrink: 0;
}
.pitch-controls {
    display: flex;
    flex-direction: column;
    gap: 3px;
    margin-left: auto;
}
.pitch-btn {
    width: 20px;
    height: 16px;
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 3px;
    background: rgba(255,255,255,0.08);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    transition: background 0.15s;
}
.pitch-btn:hover {
    background: rgba(255,255,255,0.2);
}
.pitch-btn:active {
    background: rgba(255,255,255,0.3);
}
#pitch-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0,0,0,0.75);
    color: #fff;
    font-size: 20px;
    font-weight: 600;
    padding: 10px 24px;
    border-radius: 10px;
    pointer-events: none;
    z-index: 100;
    opacity: 0;
    transition: opacity 0.3s;
}
#pitch-overlay.pitch-overlay-show {
    opacity: 1;
}
#pitch-overlay.pitch-overlay-hide {
    opacity: 0;
}
.add-to-queue-btn,
.queue-item-delete {
    border: 1px solid rgba(255,255,255,0.12);
    background: rgba(255,255,255,0.04);
    color: #f5f5f5;
    border-radius: 999px;
    padding: 4px 8px;
    cursor: pointer;
    font-size: 11px;
    min-width: 28px;
    height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.16s ease, background 0.16s ease, border-color 0.16s ease, color 0.16s ease;
}
.add-to-queue-btn:hover,
.queue-item-delete:hover {
    border-color: #ff4d4d;
    color: #fff;
    background: rgba(255,77,77,0.16);
    transform: translateY(-1px);
}
.add-to-queue-btn .btn-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    transition: transform 0.18s ease;
}
.add-to-queue-btn.is-adding {
    animation: add-to-queue-pulse 0.45s ease;
}
.add-to-queue-btn.is-added {
    background: rgba(34, 197, 94, 0.18);
    border-color: #3ddc84;
    color: #eefff0;
    transform: scale(0.92);
}
.add-to-queue-btn.is-added .btn-icon {
    transform: scale(1.08);
}
@keyframes add-to-queue-pulse {
    0% { transform: scale(1); }
    50% { transform: scale(0.94); }
    100% { transform: scale(1); }
}
.playlist-item[draggable="true"] {
    cursor: grab;
}
.playlist-item[draggable="true"]:active {
    cursor: grabbing;
}
.queue-item-active {
    background: linear-gradient(135deg, rgba(220,40,40,0.14) 0%, rgba(220,40,40,0.04) 100%);
    border-left-color: #e04040;
}
}
.playlist-item:hover {
    background: linear-gradient(180deg, rgba(255,255,255,0.06) 0%, rgba(255,255,255,0.02) 100%);
    box-shadow: 0 2px 6px rgba(0,0,0,0.3), inset 0 1px 0 rgba(255,255,255,0.05);
    transform: translateX(2px);
}
.playlist-item.selected {
    background: linear-gradient(180deg, rgba(200,30,30,0.12) 0%, rgba(200,30,30,0.05) 100%);
    border-left-color: #e04040;
    box-shadow: 0 2px 8px rgba(200,30,30,0.15), inset 0 1px 0 rgba(255,255,255,0.04);
}
.fav-btn {
    border: none;
    background: none;
    color: #555;
    cursor: pointer;
    font-size: 14px;
    padding: 4px;
    line-height: 1;
    transition: transform 0.2s ease;
}
.fav-btn:hover {
    transform: scale(1.25);
}
.fav-btn.is-fav {
    color: #ff4d4d;
}
.playlist-item.active {
    background: linear-gradient(135deg, rgba(220,40,40,0.14) 0%, rgba(220,40,40,0.04) 100%);
    border-left-color: #e04040;
    box-shadow: 0 2px 10px rgba(220,40,40,0.12), inset 0 1px 0 rgba(255,255,255,0.05);
}
.playlist-item-title {
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 3px;
    line-height: 1.2;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    color: #ddd;
}
.playlist-item-artist {
    font-size: 12px;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}
.playlist-item.active .playlist-item-title {
    color: #fff;
}
.playlist-item.active .playlist-item-artist {
    color: #b0b0b0;
}

/* Р¤СѓС‚РµСЂ РЅР°РІРёРіР°С†РёРё */
.playlist-footer {
    border-top: 1px solid #1a1a1a;
    padding: 6px 8px;
    background: linear-gradient(180deg, #0e0e0e 0%, #080808 100%);
    flex-shrink: 0;
}
.footer-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2px;
    width: 100%;
}
.footer-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    background: none;
    border: none;
    color: #555;
    cursor: pointer;
    padding: 7px 4px 5px;
    border-radius: 10px;
    transition: all 0.2s ease;
    font-size: 11px;
    flex: 1 1 0;
    min-width: 0;
    position: relative;
}
.footer-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%) scaleX(0);
    width: 20px;
    height: 2px;
    background: #e04040;
    border-radius: 1px;
    transition: transform 0.2s ease;
}
.footer-btn:hover {
    color: #ccc;
    background: rgba(255, 255, 255, 0.04);
}
.footer-btn.active {
    color: #fff;
}
.footer-btn.active::before {
    transform: translateX(-50%) scaleX(1);
}
.footer-btn.active .footer-icon {
    color: #e04040;
}
.footer-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    line-height: 1;
    transition: color 0.2s ease;
}
.footer-label {
    font-size: 9px;
    font-weight: 500;
    letter-spacing: 0.2px;
    line-height: 1;
    text-align: center;
    word-break: break-word;
}

/* РћСЃРЅРѕРІРЅРѕР№ РєРѕРЅС‚РµР№РЅРµСЂ РїР»РµРµСЂР° */
#player-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 20px 30px 0 30px;
    position: relative;
    background-color: #000000;
    overflow: hidden;
}
#content-area {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    position: relative;
    z-index: 10;
}
.player-view {
    display: flex;
    flex-direction: column;
    height: 100%;
}
.hidden-view {
    display: none;
}
.fullscreen-toggle-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    bottom: auto;
    width: 42px;
    height: 42px;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,0.12);
    background: rgba(255,255,255,0.04);
    color: #fff;
    font-size: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 20;
    transition: transform 0.18s ease, background 0.18s ease, border-color 0.18s ease;
}
.fullscreen-toggle-btn:hover {
    background: rgba(255,77,77,0.16);
    border-color: #ff4d4d;
    transform: translateY(-1px);
}
.tables-panel-btn {
    right: 110px;
}
.tables-panel-btn.active {
    background: rgba(255,0,0,0.3);
    border-color: #ff0000;
}
.external-display-btn {
    right: 60px;
}
.external-display-btn.active {
    background: rgba(255,0,0,0.3);
    border-color: #ff0000;
}

#player-container:fullscreen {
    background: #000;
}

.tables-panel {
    display: none;
    background: rgba(10, 10, 10, 0.92);
    border: 1px solid #1a1a1a;
    border-radius: 12px;
    padding: 14px 16px;
    margin-bottom: 8px;
    max-height: 50vh;
    overflow-y: auto;
    backdrop-filter: blur(8px);
    position: relative;
    z-index: 10;
}
.tables-panel.active {
    display: block;
}
.tables-panel-title {
    font-size: 14px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 10px;
}
.tables-panel-title i {
    color: #ff0000;
    margin-right: 6px;
}
.tables-panel-toggle {
    color: #aaa;
    font-size: 13px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
}
.tables-panel-row {
    display: flex;
    gap: 12px;
    margin: 10px 0;
}
.tables-panel-field {
    flex: 1;
}
.tables-panel-actions {
    display: flex;
    gap: 8px;
}
.tables-panel-action-btn {
    flex: 1;
    font-size: 13px;
    padding: 8px 12px;
}
.tables-panel-divider {
    border-top: 1px solid #222;
    margin: 12px 0;
}
.tables-panel-section {
    /* spacing handled by divider */
}
.tables-status-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}
.table-status-item {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 4px 8px;
    border-radius: 8px;
    background: #1a1a1a;
    border: 1px solid #222;
    font-size: 12px;
    color: #666;
}
.table-status-item.online {
    border-color: #2a5a2a;
    color: #ccc;
}
.table-status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #444;
    flex-shrink: 0;
}
.table-status-item.online .table-status-dot {
    background: #4caf50;
    box-shadow: 0 0 4px #4caf50;
}
.table-status-num {
    font-weight: 700;
}
.table-status-songs {
    color: #888;
    font-size: 11px;
}
.table-status-songs::before {
    content: '(';
}
.table-status-songs::after {
    content: ')';
}
.table-status-close {
    background: none;
    border: none;
    color: #a44;
    font-size: 14px;
    cursor: pointer;
    padding: 0 2px;
    line-height: 1;
}
.table-status-close:hover {
    color: #ff4444;
}

/* РџР»Р°РІР°СЋС‰РёР№ Р°СѓРґРёРѕРїР»РµРµСЂ (fixed) вЂ“ РїСЂРёР¶Р°С‚ Рє РІРµСЂС…Сѓ */
#audio-container {
    position: fixed;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 320px);
    max-width: 800px;
    min-width: 300px;
    z-index: 1000;
    display: flex;
    gap: 15px;
    align-items: center;
    padding: 8px 20px;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(10px);
    border-radius: 0 0 40px 40px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-top: none;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    transition: opacity 0.5s ease, transform 0.5s ease;
    pointer-events: auto;
    opacity: 1;
}
#audio-container.hidden {
    opacity: 0;
    transform: translateX(-50%) translateY(-30px);
    pointer-events: none;
}
#audio-container:hover {
    opacity: 1 !important;
    transform: translateX(-50%) translateY(0) !important;
    background: rgba(0, 0, 0, 0.95);
}
#audios {
    display: none;
}
.custom-audio-player {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.player-controls {
    display: flex;
    align-items: center;
    gap: 15px;
}
.control-btn {
     flex: 0 0 auto;    
    background: #1a1a1a;
    border: none;
    color: white;
    font-size: 20px;
    cursor: pointer;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    border: 1px solid #2a2a2a;
}
.control-btn:hover {
    background: #ff0000;
    border-color: #ff0000;
    transform: scale(1.05);
    box-shadow: 0 0 15px rgba(255,0,0,0.3);
}
.play-btn {
    flex: 0 0 auto;
    background: #ff0000;
    border-color: #ff0000;
    width: 55px;
    height: 55px;
}
.play-btn:hover {
    background: #cc0000;
    box-shadow: 0 0 20px rgba(255,0,0,0.4);
}
.progress-container {
    flex: 2 1 350px;
    min-width: 280px;
    display: flex;
    align-items: center;
    gap: 10px;
}
.time-current, .time-duration {
    color: #888;
    font-size: 12px;
    font-family: monospace;
    min-width: 40px;
}
.progress-bar {
    flex: 1 1 auto;
    width: 100%;
    min-width: 0;
    height: 6px;
    background: #2a2a2a;
    border-radius: 2px;
    cursor: pointer;
    transition: height 0.2s;
}
.progress-bar:hover {
    height: 8px;
}
.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #ff0000, #cc0000);
    border-radius: 2px;
    width: 0%;
    position: relative;
    transition: width 0.1s linear;
}
.progress-fill::after {
    content: '';
    position: absolute;
    right: -6px;
    top: 50%;
    transform: translateY(-50%);
    width: 12px;
    height: 12px;
    background: #ff0000;
    border-radius: 50%;
    opacity: 0;
    transition: opacity 0.2s;
}
.progress-bar:hover .progress-fill::after {
    opacity: 1;
}
.volume-container {
    display: flex;
    align-items: center;
    gap: 10px;
}
.volume-btn {
    background: none;
    border: none;
    color: #888;
    font-size: 18px;
    cursor: pointer;
    padding: 5px;
}
.volume-btn:hover {
    color: #ff0000;
}
.volume-slider {
    width: 80px;
    height: 4px;
    background: #2a2a2a;
    border-radius: 2px;
    cursor: pointer;
}
.volume-fill {
    height: 100%;
    background: linear-gradient(90deg, #ff0000, #cc0000);
    border-radius: 2px;
    width: 100%;
}
.track-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-left: auto;
    text-align: right;
    flex: 0 1 220px;
    min-width: 0;
    max-width: 220px;
    overflow: hidden;
}
.track-title {
    color: white;
    font-size: 14px;
    font-weight: 500;
    display: block;
    width: 100%;
    max-width: 100%;
    white-space: nowrap;
    overflow: hidden;
}
.track-title.marquee .marquee-content {
    display: inline-block;
    white-space: nowrap;
    animation: marquee 12s linear infinite;
    will-change: transform;
}
.track-artist {
    color: #aca9a9;
    font-size: 12px;
}

/* РљР°РЅРІР°СЃ вЂ“ РїСЂРёР¶Р°С‚ Рє РЅРёР·Сѓ */
#canvas {
    margin-top: auto;
    width: 100%;
    min-height: 120px;
    background-color: rgba(0, 0, 0, 0.9);
    border-radius: 12px;
    border: 1px solid #1a1a1a;
    backdrop-filter: blur(5px);
    position: relative;
    z-index: 10;
    flex-shrink: 0;
}

.intro-line-container {
    margin-top: 4px;
    margin-bottom: 10px;
}
.intro-line-track {
    width: 100%;
    height: 5px;
    background: #111;
    border-radius: 4px;
    overflow: hidden;
    opacity: 0;
    transition: opacity 0.2s ease;
}
.intro-line-track.active {
    opacity: 1;
}
.intro-line-fill {
    width: 0%;
    height: 100%;
    background: #ff0000;
    transition: width 0.1s linear;
}

/* РЎС‚СЂР°РЅРёС†С‹ */
.page-overlay {
    position: absolute;
    inset: 0;
    z-index: 100;
    background: rgba(0, 0, 0, 0.82);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 30px 20px;
    transition: opacity 0.25s ease, visibility 0.25s ease;
    overflow: hidden;
}
.page-overlay-hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}
.page-overlay-close {
    position: absolute;
    top: 14px;
    right: 14px;
    z-index: 10;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #999;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s ease;
}
.page-overlay-close:hover {
    background: rgba(220, 40, 40, 0.25);
    border-color: rgba(220, 40, 40, 0.4);
    color: #fff;
}
.page-overlay-content {
    width: 100%;
    max-width: 560px;
    max-height: 100%;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: #333 transparent;
}
.page-overlay-content::-webkit-scrollbar {
    width: 5px;
}
.page-overlay-content::-webkit-scrollbar-thumb {
    background: #333;
    border-radius: 4px;
}
.page-container {
    background: rgba(18, 18, 18, 0.65);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 16px;
    padding: 30px 24px 44px;
    min-height: auto;
    height: auto;
    overflow-y: visible;
}
.page-title {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 24px;
    color: white;
    text-align: center;
    letter-spacing: 0.5px;
}

.request-page-shell {
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 18px;
    padding-bottom: 12px;
}

/* Р¤РѕСЂРјС‹ */
.form-group {
    margin-bottom: 20px;
}
.form-label {
    display: block;
    margin-bottom: 8px;
    color: #888;
    font-size: 14px;
}
.form-input {
    width: 100%;
    padding: 12px 16px;
    background: #0a0a0a;
    border: 1px solid #2a2a2a;
    border-radius: 8px;
    color: white;
    font-size: 14px;
    outline: none;
    transition: all 0.3s;
}
.form-input:focus {
    border-color: #ff0000;
    box-shadow: 0 0 0 2px rgba(255,0,0,0.1);
}
.form-button {
    width: 100%;
    padding: 12px;
    background: linear-gradient(135deg, #ff0000, #cc0000);
    border: none;
    border-radius: 8px;
    color: white;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}
.form-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(255,0,0,0.3);
}

/* Q&A */
.qa-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.qa-item {
    background: #0a0a0a;
    border: 1px solid #1a1a1a;
    border-radius: 12px;
    padding: 20px;
}
.qa-question {
    color: #ff0000;
    font-weight: 600;
    margin-bottom: 10px;
    font-size: 16px;
}
.qa-answer {
    color: #aaa;
    font-size: 14px;
    line-height: 1.5;
}

/* Магазин */
.shop-hero {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 24px;
    margin-bottom: 28px;
    padding: 24px;
    border-radius: 20px;
    background: linear-gradient(135deg, rgba(255,0,0,0.13), rgba(20,20,20,0.9));
    border: 1px solid rgba(255,255,255,0.07);
}
.shop-eyebrow {
    color: #ff8a8a;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 10px;
}
.shop-description {
    color: #ccc;
    line-height: 1.6;
    max-width: 640px;
    margin: 0;
}
.shop-pill {
    padding: 12px 16px;
    border-radius: 999px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.08);
    color: #fff;
    font-size: 13px;
    white-space: nowrap;
}
.shop-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
}
.shop-card {
    background: linear-gradient(180deg, rgba(18,18,18,0.98), rgba(8,8,8,0.98));
    border: 1px solid #1a1a1a;
    border-radius: 18px;
    padding: 22px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    box-shadow: 0 12px 30px rgba(0,0,0,0.27);
}
.shop-card-highlight {
    border-color: rgba(255,0,0,0.5);
    box-shadow: 0 12px 30px rgba(255,0,0,0.12);
}
.shop-card-icon {
    width: 46px;
    height: 46px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    background: rgba(255,0,0,0.12);
    font-size: 24px;
}
.shop-card-label {
    color: #fff;
    font-size: 18px;
    font-weight: 700;
}
.shop-card-price {
    color: #ff4d4d;
    font-size: 22px;
    font-weight: 800;
}
.shop-card-description {
    color: #aaa;
    line-height: 1.6;
    margin: 0;
}
.shop-card-list {
    margin: 0;
    padding-left: 18px;
    color: #ccc;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.shop-card .form-button {
    width: auto;
    margin-top: auto;
}

/* Уведомления */
.toast-notification {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: #1a1a1a;
    border-left: 3px solid #ff0000;
    padding: 12px 20px;
    border-radius: 8px;
    color: white;
    font-size: 14px;
    z-index: 1000;
    animation: slideIn 0.3s ease;
}
@keyframes slideIn {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

/* РќР°СЃС‚СЂРѕР№РєРё */
.settings-container {
    max-width: 500px;
    margin: 0 auto;
}
.color-setting {
    background: #0a0a0a;
    border-radius: 12px;
    padding: 25px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}
.color-setting-title {
    color: white;
    font-size: 18px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}
.color-preview {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    border: 2px solid #2a2a2a;
    margin-bottom: 15px;
}
.color-picker-wrapper {
    display: flex;
    gap: 15px;
    align-items: center;
    flex-wrap: wrap;
}
.color-picker {
    width: 60px;
    height: 40px;
    border: 2px solid #2a2a2a;
    border-radius: 8px;
    cursor: pointer;
}
.color-value {
    background: #1a1a1a;
    padding: 8px 12px;
    border-radius: 6px;
    color: #888;
    font-family: monospace;
    font-size: 14px;
}
.reset-color-btn {
    background: #1a1a1a;
    border: 1px solid #2a2a2a;
    color: #888;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
}
.reset-color-btn:hover {
    color: #ff0000;
    border-color: #ff0000;
}
.text-preview {
    background: #0a0a0a;
    border-radius: 12px;
    padding: 25px;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.text-preview p {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 10px;
}
.text-preview small {
    color: #666;
    font-size: 12px;
}

/* Р’РёРґРµРѕС„РѕРЅ */
.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 2;
    pointer-events: none;
}
.video-start-btn {
    z-index: 100 !important;
    animation: pulse 2s infinite;
}
@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(255,0,0,0.4); }
    70% { box-shadow: 0 0 0 15px rgba(255,0,0,0); }
    100% { box-shadow: 0 0 0 0 rgba(255,0,0,0); }
}
.video-control-btn {
    background: #1a1a1a !important;
    border: 1px solid #2a2a2a !important;
}
.video-control-btn:hover {
    background: #ff0000 !important;
    border-color: #ff0000 !important;
}

/* Settings content layout */
.settings-container {
    max-width: 100%;
    margin: 0 auto;
}
.settings-content {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 20px;
    align-items: stretch;
}
.settings-content .color-setting {
    flex: 1 1 300px;
    min-width: 280px;
}
.settings-content .text-preview {
    flex: 1 1 300px;
    min-width: 280px;
}

.audiophones-setting {
    background: #0a0a0a;
    border-radius: 12px;
    padding: 25px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    flex: 1 1 300px;
    min-width: 280px;
}
.audiophones-setting-title {
    color: white;
    font-size: 18px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
}
.audiophones-toggle-label {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    user-select: none;
    padding: 8px 0;
}
.audiophones-toggle-checkbox {
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: #ff0000;
}
.audiophones-toggle-text {
    color: #ccc;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.3s;
}
.audiophones-toggle-label:hover .audiophones-toggle-text {
    color: white;
}
.audiophones-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.audiophones-label {
    color: #888;
    font-size: 14px;
    font-weight: 500;
}
.audiophones-hint {
    color: #555;
    font-size: 12px;
    margin-top: 4px;
}
.audiophones-folder-input {
    padding: 10px 12px;
    background: #1a1a1a;
    border: 1px solid #2a2a2a;
    border-radius: 6px;
    color: #888;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.3s;
}
.audiophones-folder-input:hover {
    border-color: #ff0000;
}
.audiophones-folder-input:focus {
    outline: none;
    border-color: #ff0000;
    box-shadow: 0 0 0 2px rgba(255,0,0,0.1);
}
.audiophones-input-wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
}
.audiophones-delay-input {
    flex: 1;
    min-width: 80px;
    padding: 10px 12px;
    background: #1a1a1a;
    border: 1px solid #2a2a2a;
    border-radius: 6px;
    color: white;
    font-size: 14px;
    outline: none;
    transition: all 0.3s;
}
.audiophones-delay-input:focus {
    border-color: #ff0000;
    box-shadow: 0 0 0 2px rgba(255,0,0,0.1);
}
.audiophones-unit {
    color: #666;
    font-size: 13px;
    padding: 8px 0;
}
.audiophones-volume-container {
    display: flex;
    align-items: center;
    gap: 12px;
}
.audiophones-volume-slider {
    flex: 1;
    height: 6px;
    -webkit-appearance: none;
    appearance: none;
    background: linear-gradient(90deg, #1a1a1a, #2a2a2a);
    border-radius: 3px;
    outline: none;
    cursor: pointer;
}
.audiophones-volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    background: linear-gradient(135deg, #ff0000, #cc0000);
    border-radius: 50%;
    cursor: pointer;
    border: 2px solid rgba(255,255,255,0.1);
    transition: all 0.2s;
}
.audiophones-volume-slider::-webkit-slider-thumb:hover {
    box-shadow: 0 0 10px rgba(255,0,0,0.5);
    border-color: #ff0000;
}
.audiophones-volume-slider::-moz-range-thumb {
    width: 18px;
    height: 18px;
    background: linear-gradient(135deg, #ff0000, #cc0000);
    border-radius: 50%;
    cursor: pointer;
    border: 2px solid rgba(255,255,255,0.1);
    transition: all 0.2s;
}
.audiophones-volume-slider::-moz-range-thumb:hover {
    box-shadow: 0 0 10px rgba(255,0,0,0.5);
    border-color: #ff0000;
}
.audiophones-volume-value {
    color: #ff0000;
    font-weight: 600;
    font-size: 14px;
    min-width: 40px;
    text-align: right;
}

.mic-effect-btn {
    background: #1a1a1a;
    color: #888;
    border: 1px solid #333;
    border-radius: 8px;
    padding: 6px 14px;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s;
}
.mic-effect-btn:hover {
    color: #fff;
    border-color: #555;
}
.mic-effect-btn.active {
    background: linear-gradient(135deg, #cc0000, #990000);
    color: #fff;
    border-color: #ff0000;
}
.mic-eq-row {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-top: 8px;
}
.mic-eq-band {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}
.mic-eq-label {
    color: #888;
    font-size: 12px;
    font-weight: 500;
}
.mic-eq-val {
    color: #ff0000;
    font-size: 12px;
    font-weight: 600;
    min-width: 24px;
    text-align: center;
}
.mic-eq-slider {
    writing-mode: vertical-lr;
    direction: rtl;
    width: 6px;
    height: 80px;
    -webkit-appearance: none;
    appearance: none;
    background: linear-gradient(180deg, #1a1a1a, #2a2a2a);
    border-radius: 3px;
    outline: none;
    cursor: pointer;
}
.mic-eq-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 16px;
    height: 16px;
    background: linear-gradient(135deg, #ff0000, #cc0000);
    border-radius: 50%;
    cursor: pointer;
    border: 2px solid rgba(255,255,255,0.1);
}
.mic-eq-slider::-moz-range-thumb {
    width: 16px;
    height: 16px;
    background: linear-gradient(135deg, #ff0000, #cc0000);
    border-radius: 50%;
    cursor: pointer;
    border: 2px solid rgba(255,255,255,0.1);
}

/* Видеофон */
@media (max-width: 768px) {
    #audio-container {
        width: calc(100% - 40px);
        padding: 6px 15px;
    }
    .control-btn {
    flex: 0 0 auto;          /* не растягиваться */
    width: 45px;
    height: 45px;
    min-width: 45px;
    min-height: 45px;
    border-radius: 50%;
    background: #1a1a1a;
    border: none;
    color: white;
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    border: 1px solid #2a2a2a;
    }
    .play-btn {
        width: 55px;
    height: 55px;
    min-width: 55px;
    min-height: 55px;
    background: #ff0000;
    border-color: #ff0000;
    }
    .progress-container {
        gap: 8px;
    }
    .time-current, .time-duration {
        font-size: 10px;
        min-width: 35px;
    }
    .volume-slider {
        width: 60px;
    }
    .track-info {
        display: none;
    }
    #player-container {
        padding: 20px 15px 15px 15px;
    }
}
@media (max-width: 1024px) and (min-width: 769px) {
    #audio-container {
        width: calc(100% - 340px);
    }
    .track-info {
        max-width: 150px;
    }
    .track-title, .track-artist {
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
}
/* Р“Р°СЂР°РЅС‚РёСЂРѕРІР°РЅРЅРѕРµ РїСЂРёР¶Р°С‚РёРµ РєР°РЅРІР°СЃР° Рє РЅРёР·Сѓ */
#player-container,
#content-area,
#player-page {
    display: flex !important;
    flex-direction: column !important;
    flex: 1 !important;
    height: 100% !important;
}

#canvas {
    margin-top: auto !important;
    flex-shrink: 0 !important;
}
#prev-btn{
    display: none !important;
}

/* Анимация для логотипа плеера */
.playlist-title-icon {
   width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #ff0000, #cc0000);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.logo-mic-animation {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-mic-icon {
     position: relative;
    font-size: 28px;
    color: #eae6e6;  /* чёрный микрофон */
    animation: logoFloat 2s ease-in-out infinite;
    z-index: 2;
    background: transparent;
}

@keyframes logoFloat {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-3px); }
}

.logo-sound-waves {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    gap: 3px;
    justify-content: center;
    align-items: center;
    pointer-events: none;
    z-index: 1;
}

.logo-sound-waves span {
    width: 3px;
    background: #58595b;
    border-radius: 2px;
    display: inline-block;
    animation: logoSoundWave 0.6s ease-in-out infinite;
}

.logo-sound-waves span:nth-child(1) { animation-delay: 0s; height: 12px; }
.logo-sound-waves span:nth-child(2) { animation-delay: 0.1s; height: 20px; }
.logo-sound-waves span:nth-child(3) { animation-delay: 0.2s; height: 16px; }
.logo-sound-waves span:nth-child(4) { animation-delay: 0.3s; height: 24px; }
.logo-sound-waves span:nth-child(5) { animation-delay: 0.4s; height: 14px; }
.logo-sound-waves span:nth-child(6) { animation-delay: 0.5s; height: 22px; }

@keyframes logoSoundWave {
    0%, 100% { transform: scaleY(1); opacity: 0.6; }
    50% { transform: scaleY(1.8); opacity: 1; }
}

.logo-floating-notes {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
}

.logo-floating-notes i {
    position: absolute;
    font-size: 12px;
    color: rgba(255,255,255,0.6);
    animation: logoFloatNote 3s linear infinite;
}

.logo-floating-notes i:nth-child(1) {
    top: -15px;
    left: 10%;
    animation-delay: 0s;
}
.logo-floating-notes i:nth-child(2) {
    top: 5px;
    right: -10px;
    animation-delay: 1s;
    font-size: 10px;
}
.logo-floating-notes i:nth-child(3) {
    bottom: -15px;
    left: 20%;
    animation-delay: 2s;
    font-size: 14px;
}

@keyframes logoFloatNote {
    0% {
        transform: translateY(0) rotate(0deg);
        opacity: 0;
    }
    50% {
        opacity: 0.6;
    }
    100% {
        transform: translateY(-20px) rotate(15deg);
        opacity: 0;
    }
}

/* Демо-ограничение: оверлей + модалка */
.demo-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 0, 0, 0.85);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: demoFadeIn 0.3s ease;
}
.demo-overlay.hidden {
    display: none;
}
@keyframes demoFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}
.demo-modal {
    background: #1a1a1a;
    border: 1px solid #333;
    border-radius: 16px;
    padding: 36px 32px;
    max-width: 380px;
    width: 90%;
    text-align: center;
    animation: demoSlideUp 0.3s ease;
}
@keyframes demoSlideUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}
.demo-modal-icon {
    font-size: 48px;
    margin-bottom: 12px;
}
.demo-modal-title {
    color: #fff;
    font-size: 22px;
    margin-bottom: 12px;
}
.demo-modal-text {
    color: #999;
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 24px;
}
.demo-modal-btn {
    display: block;
    width: 100%;
    padding: 14px;
    background: #ff0000;
    border: none;
    border-radius: 10px;
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    margin-bottom: 12px;
    transition: background 0.2s;
}
.demo-modal-btn:hover {
    background: #cc0000;
}
.demo-modal-close {
    display: block;
    width: 100%;
    padding: 10px;
    background: transparent;
    border: 1px solid #333;
    border-radius: 10px;
    color: #666;
    font-size: 14px;
    cursor: pointer;
    transition: color 0.2s, border-color 0.2s;
}
.demo-modal-close:hover {
    color: #aaa;
    border-color: #555;
}

/* ========== MOBILE PLAYER ========== */
.mobile-now-playing {
    display: none;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: linear-gradient(135deg, #1a1a1a 0%, #111 100%);
    border-top: 1px solid #222;
    cursor: pointer;
    flex-shrink: 0;
    position: relative;
    overflow: hidden;
}
.mnp-info {
    flex: 1;
    min-width: 0;
}
.mnp-title {
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: #fff;
}
.mnp-artist {
    font-size: 11px;
    color: #666;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-top: 2px;
}
.mnp-controls {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
}
.mnp-btn {
    background: none;
    border: 1px solid #333;
    color: #fff;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}
.mnp-btn:active {
    background: #ff0000;
    border-color: #ff0000;
}
.mnp-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 2px;
    background: #ff0000;
    width: 0%;
}
.mobile-back-btn {
    display: none;
}
.mobile-vocal-btn {
    display: none;
}

@media (max-width: 1024px) {

    .mobile-vocal-btn {
        display: flex;
        align-items: center;
        justify-content: center;
        position: fixed;
        right: 0;
        top: 50%;
        transform: translateY(-50%);
        z-index: 200;
        width: 36px;
        height: 44px;
        background: rgba(0, 0, 0, 0.6);
        border: 1px solid rgba(255, 255, 255, 0.15);
        border-right: none;
        border-radius: 8px 0 0 8px;
        color: #666;
        cursor: pointer;
        backdrop-filter: blur(6px);
        transition: all 0.2s;
    }
    .mobile-vocal-btn.active {
        color: #ff4444;
        background: rgba(255, 68, 68, 0.15);
        border-color: rgba(255, 68, 68, 0.3);
    }
    /* Sidebar takes full screen */
    #playlist-container {
        width: 100% !important;
        height: 100vh !important;
        height: 100dvh !important;
        display: flex !important;
        flex-direction: column !important;
        overflow: hidden !important;
    }

    /* Logo: hidden on mobile */
    .playlist-title-icon {
        display: none !important;
    }

    /* Player container becomes a slide-in overlay */
    #player-container {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        width: 100% !important;
        height: 100vh !important;
        height: 100dvh !important;
        z-index: 50 !important;
        flex: none !important;
        padding: 0 !important;
        transform: translateX(100%) !important;
        transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        overflow: hidden !important;
        display: flex !important;
        flex-direction: column !important;
    }

    #player-container.mobile-visible {
        transform: translateX(0) !important;
    }

    /* Back button — thin bar at top of overlay */
    .mobile-back-btn {
        display: flex;
        align-items: center;
        gap: 6px;
        width: 100%;
        background: #0a0a0a;
        border: none;
        border-bottom: 1px solid #1a1a1a;
        color: #aaa;
        font-size: 14px;
        padding: 10px 16px;
        cursor: pointer;
        flex-shrink: 0;
    }
    .mobile-back-btn:active {
        background: #1a1a1a;
        color: #fff;
    }

    /* Audio controls: hidden on mobile */
    #audio-container {
        display: none !important;
    }

    /* Remote control: hidden on mobile */
    .remote-control-section {
        display: none !important;
    }

    .custom-audio-player {
        gap: 0 !important;
    }

    .player-controls {
        flex-wrap: nowrap !important;
        align-items: center !important;
        gap: 6px !important;
        padding: 8px 12px !important;
        min-height: 48px !important;
        max-height: 48px !important;
    }

    #audio-container .control-btn {
        width: 28px !important;
        height: 28px !important;
        min-width: 28px !important;
        max-width: 28px !important;
        min-height: 28px !important;
        max-height: 28px !important;
        font-size: 13px !important;
        line-height: 28px !important;
        text-align: center !important;
        background: none !important;
        border: none !important;
        flex-shrink: 0 !important;
        flex-grow: 0 !important;
        padding: 0 !important;
        overflow: hidden !important;
    }

    #audio-container .play-btn {
        width: 32px !important;
        height: 32px !important;
        min-width: 32px !important;
        max-width: 32px !important;
        min-height: 32px !important;
        max-height: 32px !important;
        font-size: 15px !important;
        line-height: 32px !important;
        text-align: center !important;
        background: #ff0000 !important;
        border: none !important;
        overflow: hidden !important;
    }

    .progress-container {
        flex: 1 1 auto !important;
        width: calc(100% - 120px) !important;
        min-width: 100px !important;
        gap: 5px !important;
        display: flex !important;
        align-items: center !important;
    }

    .progress-bar {
        flex: 1 1 auto !important;
        width: 100% !important;
        min-width: 50px !important;
        height: 6px !important;
        background: #444 !important;
        display: block !important;
    }

    .time-current, .time-duration {
        display: none !important;
    }

    .volume-container {
        display: none !important;
    }

    .track-info {
        display: none !important;
    }

    /* Now playing mini bar */
    .mobile-now-playing {
        display: none !important;
    }

    /* Hide fullscreen button */
    .fullscreen-toggle-btn {
        display: none !important;
    }

    /* Content area fills remaining space */
    #content-area {
        flex: 1 !important;
        height: 0 !important;
        overflow-y: auto !important;
        overflow-x: hidden !important;
    }

    /* Canvas: keep original size, don't stretch */
    #canvas {
        min-height: 0 !important;
        flex-shrink: 0 !important;
        margin-top: auto !important;
    }

    /* Page containers scroll properly inside overlay */
    .page-container {
        padding: 20px 16px 30px !important;
    }
}

/* Next song notification overlay */
#next-song-overlay {
    position: absolute;
    top: 20px;
    left: 20px;
    z-index: 50;
    display: flex;
    flex-direction: column;
    gap: 4px;
    background: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-left: 3px solid #ff4444;
    border-radius: 0 8px 8px 0;
    padding: 10px 16px;
    opacity: 0;
    transform: translateX(-20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
    pointer-events: none;
}
#next-song-overlay.visible {
    opacity: 1;
    transform: translateX(0);
}
.next-song-label {
    font-size: 11px;
    font-weight: 600;
    color: #ff4444;
    text-transform: uppercase;
    letter-spacing: 1.5px;
}
.next-song-name {
    font-size: 15px;
    font-weight: 500;
    color: #fff;
    white-space: nowrap;
    text-shadow: 0 1px 3px rgba(0,0,0,0.5);
}
