/* ГЛОБАЛЬНЫЕ СТИЛИ И ПЕРЕМЕННЫЕ */
:root {
    --bg-main: #121212;
    --bg-sidebar: #000000;
    --bg-card: #181818;
    --bg-card-hover: #282828;
    --accent-color: #a855f7;       /* Стильный современный фиолетовый */
    --accent-hover: #c084fc;
    --text-main: #ffffff;
    --text-muted: #a7a7a7;
    --border-color: #292929;
    --track-active: #2a2438;
    --danger-color: #ef4444;
    --font-stack: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-stack);
    background-color: var(--bg-main);
    color: var(--text-main);
    overflow: hidden;
    height: 100vh;
    -webkit-font-smoothing: antialiased;
    scrollbar-color: #343434 #121212;
}


* {
    scrollbar-color: #343434 transparent;
}

*::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

*::-webkit-scrollbar-track {
    background: transparent;
}

*::-webkit-scrollbar-thumb {
    background: #343434;
    border-radius: 999px;
    border: 2px solid transparent;
    background-clip: content-box;
}

*::-webkit-scrollbar-thumb:hover {
    background: #4a4a4a;
    background-clip: content-box;
}

/* ОСНОВНОЙ КОНТЕЙНЕР ПРИЛОЖЕНИЯ */
.app-container {
    display: grid;
    grid-template-columns: 360px 1fr;
    grid-template-rows: 1fr;
    height: 100vh;
    width: 100vw;
    padding-bottom: 0;
}

body.taskbar-visible .app-container {
    padding-bottom: 82px;
}

/* ЛЕВАЯ КОЛОНКА (САЙДБАР) */
.sidebar {
    grid-column: 1;
    grid-row: 1;
    background-color: var(--bg-sidebar);
    border-right: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    padding: 24px 16px 10px 16px;
    overflow: hidden;
}

.sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.sidebar-header h2 {
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.track-counter {
    font-size: 0.85rem;
    color: var(--text-muted);
    background: #1e1e1e;
    padding: 4px 10px;
    border-radius: 12px;
    font-weight: 500;
}

.section-label {
    color: var(--text-muted);
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 8px;
}

.soundcloud-search-panel {
    margin-bottom: 16px;
}

.soundcloud-search-panel .search-box {
    margin-bottom: 8px;
}

.sc-search-results {
    display: none;
    max-height: 260px;
    overflow-y: auto;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background-color: #111111;
}

.sc-search-results.visible {
    display: block;
}

.sc-search-results::-webkit-scrollbar {
    width: 6px;
}

.sc-search-results::-webkit-scrollbar-thumb {
    background-color: #333;
    border-radius: 3px;
}

.sc-result-item {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 9px 10px;
    border: none;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    background: transparent;
    color: var(--text-main);
    text-align: left;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.sc-result-item:last-child {
    border-bottom: none;
}

.sc-result-item:hover {
    background-color: var(--bg-card-hover);
}

.sc-result-cover,
.sc-result-cover-placeholder {
    width: 42px;
    height: 42px;
    border-radius: 6px;
    flex-shrink: 0;
    object-fit: cover;
    background: linear-gradient(135deg, #2a2a2a, #111);
}

.sc-result-cover-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: 1rem;
}

.sc-result-info {
    min-width: 0;
    flex: 1;
}

.sc-result-title {
    font-size: 0.86rem;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 3px;
}

.sc-result-artist {
    color: var(--text-muted);
    font-size: 0.74rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sc-result-duration {
    color: var(--text-muted);
    font-size: 0.72rem;
    flex-shrink: 0;
}

.sc-search-message {
    color: var(--text-muted);
    padding: 12px;
    font-size: 0.82rem;
    text-align: center;
}

.sc-search-message.error {
    color: #f87171;
}

.sc-results-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 10px 10px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    margin-bottom: 4px;
}

.sc-results-header h3 {
    min-width: 0;
    margin: 0;
    font-size: 0.96rem;
    font-weight: 800;
    color: var(--text-main);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sc-results-header span {
    flex-shrink: 0;
    color: var(--text-muted);
    font-size: 0.76rem;
    font-weight: 700;
}

/* Строка поиска */
.search-box {
    position: relative;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
}

.search-box input {
    width: 100%;
    padding: 12px 16px 12px 42px;
    background-color: #1a1a1a;
    border: 1px solid transparent;
    border-radius: 8px;
    color: var(--text-main);
    font-size: 0.9rem;
    transition: var(--transition-smooth);
}

.search-box input:focus {
    outline: none;
    border-color: var(--accent-color);
    background-color: #242424;
    box-shadow: 0 0 0 3px rgba(168, 85, 247, 0.2);
}

.search-box input:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.search-icon {
    position: absolute;
    left: 14px;
    width: 18px;
    height: 18px;
    color: var(--text-muted);
    fill: currentColor;
    pointer-events: none;
    transition: var(--transition-smooth);
    z-index: 1;
}

.search-box input:focus + .search-icon,
.search-box:focus-within .search-icon {
    color: var(--accent-color);
}

/* Зона Drag & Drop загрузки */
.upload-zone {
    border: 2px dashed #3a3a3a;
    border-radius: 12px;
    padding: 24px 16px;
    text-align: center;
    cursor: pointer;
    background-color: #0d0d0d;
    transition: var(--transition-smooth);
    margin-bottom: 16px;
}

.upload-zone:hover, .upload-zone.dragover {
    border-color: var(--accent-color);
    background-color: rgba(168, 85, 247, 0.04);
}

.upload-icon {
    width: 40px;
    height: 40px;
    fill: var(--text-muted);
    margin-bottom: 10px;
    transition: var(--transition-smooth);
}

.upload-zone:hover .upload-icon, .upload-zone.dragover .upload-icon {
    fill: var(--accent-color);
    transform: translateY(-2px);
}

.upload-zone .main-text {
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 4px;
}

.upload-zone .sub-text {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* Кнопки действий над плейлистом */
.playlist-actions {
    display: flex;
    gap: 10px;
    margin-bottom: 16px;
    animation: fadeIn 0.3s ease;
}

.action-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 8px 12px;
    background-color: #1a1a1a;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    color: var(--text-main);
    font-size: 0.8rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.action-btn:hover {
    background-color: #262626;
    border-color: #444;
}

.action-btn.danger:hover {
    background-color: rgba(239, 68, 68, 0.15);
    border-color: var(--danger-color);
    color: #f87171;
}

/* Список треков контейнер */
.playlist-container {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    margin-right: -4px;
    padding-right: 4px;
    scrollbar-width: thin;
    scrollbar-color: #303030 transparent;
}

.playlist-container::-webkit-scrollbar {
    width: 6px;
    height: 0;
}

.playlist-container::-webkit-scrollbar-track {
    background: transparent;
}

.playlist-container::-webkit-scrollbar-thumb {
    background-color: #303030;
    border-radius: 999px;
}

/* Элемент трека в списке */
.track-item {
    display: flex;
    align-items: center;
    padding: 10px 12px;
    border-radius: 8px;
    cursor: pointer;
    margin-bottom: 6px;
    transition: var(--transition-smooth);
    border: 1px solid transparent;
    animation: slideIn 0.3s ease;
}

.track-item:hover {
    background-color: var(--bg-card-hover);
}

.track-item.active {
    background-color: var(--track-active);
    border-color: rgba(168, 85, 247, 0.3);
}

.track-item.unavailable {
    opacity: 0.45;
}

.track-item-status {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    color: var(--accent-color);
    margin-right: 10px;
    flex-shrink: 0;
}

.track-item-info {
    flex: 1;
    overflow: hidden;
    padding-right: 8px;
}

.track-item-title {
    font-size: 0.9rem;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 2px;
}

.track-item.active .track-item-title {
    color: var(--accent-hover);
}

.track-item-artist {
    font-size: 0.75rem;
    color: var(--text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.track-item-badge {
    font-size: 0.65rem;
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: 600;
    text-transform: uppercase;
    flex-shrink: 0;
}

.track-item-liked-actions {
    min-width: 72px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    flex-shrink: 0;
}

.track-item-duration {
    color: var(--text-muted);
    font-size: 0.82rem;
    font-weight: 600;
    line-height: 1;
    font-variant-numeric: tabular-nums;
}

.track-item-remove {
    width: 28px;
    height: 28px;
    border: none;
    border-radius: 7px;
    display: none;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    background: transparent;
    cursor: pointer;
    transition: color 0.16s ease, background 0.16s ease;
}

.track-item-remove svg {
    width: 18px;
    height: 18px;
    display: block;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.2;
    stroke-linecap: round;
}

.liked-track-item:hover .track-item-remove,
.liked-track-item:focus-within .track-item-remove {
    display: flex;
}

.track-item-remove:hover {
    color: #fff;
    background: rgba(239, 68, 68, 0.22);
}

.badge-error {
    background-color: rgba(239, 68, 68, 0.2);
    color: #ef4444;
}

.badge-ready {
    background-color: rgba(34, 197, 94, 0.15);
    color: #22c55e;
}

/* Анимированный индикатор звуковых волн при игре */
.playing-waves {
    display: flex;
    align-items: flex-end;
    gap: 2px;
    width: 14px;
    height: 14px;
}

.playing-waves span {
    display: block;
    width: 2px;
    background-color: var(--accent-color);
    animation: bounce 0.8s ease infinite alternate;
}
.playing-waves span:nth-child(2) { animation-delay: 0.2s; }
.playing-waves span:nth-child(3) { animation-delay: 0.4s; }

.paused-icon {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: var(--text-muted);
}

/* ЦЕНТРАЛЬНАЯ ЧАСТЬ (ГЛАВНЫЙ КОНТЕНТ) */
.main-content {
    grid-column: 2;
    grid-row: 1;
    background: linear-gradient(180deg, #1e142d 0%, var(--bg-main) 40%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
    overflow-y: auto;
}

/* ЭКРАН ПРИВЕТСТВИЯ */
.welcome-screen {
    text-align: center;
    max-width: 480px;
    animation: fadeIn 0.6s ease;
}

.welcome-badge {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--accent-color), #4f46e5);
    border-radius: 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    box-shadow: 0 10px 25px rgba(168, 85, 247, 0.3);
}

.welcome-badge svg {
    width: 40px;
    height: 40px;
    fill: #fff;
}

.welcome-screen h1 {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 12px;
    letter-spacing: -0.03em;
}

.welcome-screen p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
}

.welcome-screen code {
    background-color: rgba(255, 255, 255, 0.08);
    padding: 2px 6px;
    border-radius: 4px;
    font-family: monospace;
    color: var(--accent-hover);
}

/* КАРТОЧКА ТЕКУЩЕГО ТРЕКА */
.player-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 24px;
    width: 100%;
    max-width: 380px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.5);
    transition: var(--transition-smooth);
    animation: fadeInScale 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.player-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.6);
    border-color: rgba(168, 85, 247, 0.2);
}

.artwork-wrapper {
    position: relative;
    width: 100%;
    padding-top: 100%; /* Соотношение сторон 1:1 */
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 20px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.4);
    background-color: #121212;
}

.artwork-placeholder, .artwork-wrapper img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.artwork-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #2a2a2a 0%, #111111 100%);
}

.artwork-placeholder svg {
    width: 35%;
    height: 35%;
    fill: #444;
}

.status-badge {
    position: absolute;
    bottom: 12px;
    left: 12px;
    background-color: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(8px);
    padding: 6px 12px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 6px;
    border: 1px solid rgba(255,255,255,0.08);
    font-size: 0.75rem;
    font-weight: 500;
}

.status-badge[hidden] {
    display: none !important;
}

.status-badge.playing .badge-icon {
    width: 6px;
    height: 6px;
    background-color: #22c55e;
    border-radius: 50%;
    box-shadow: 0 0 8px #22c55e;
    animation: pulse 1s infinite alternate;
}

.status-badge.paused .badge-icon {
    width: 6px;
    height: 6px;
    background-color: #eab308;
    border-radius: 50%;
}

.track-meta {
    text-align: center;
}

.track-meta h2 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 6px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    letter-spacing: -0.01em;
}

.track-meta p {
    color: var(--text-muted);
    font-size: 0.95rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* НИЖНИЙ ПЛЕЕР (ПАНЕЛЬ УПРАВЛЕНИЯ) */
.bottom-player {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    height: 82px;
    background-color: #181818;
    border-top: 1px solid var(--border-color);
    padding: 0 24px;
    z-index: 1200;
    transform: translateY(calc(100% + 2px));
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: transform 0.22s ease, opacity 0.22s ease;
}

body.taskbar-visible .bottom-player {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.bottom-player-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    max-width: 100%;
}

/* Левая секция инфо плеера */
.mini-track-info {
    width: 30%;
    display: flex;
    align-items: center;
}

.mini-text {
    max-width: 100%;
}

.mini-title {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-main);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 2px;
}

.mini-artist {
    font-size: 0.75rem;
    color: var(--text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Секция управления кнопками и прогрессом */
.player-controls-wrapper {
    width: 40%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.controls-buttons {
    display: flex;
    align-items: center;
    gap: 20px;
}

.control-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-smooth);
    border-radius: 50%;
    padding: 6px;
}

.control-btn svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

.control-btn:hover:not(:disabled) {
    color: var(--text-main);
    transform: scale(1.05);
}

.control-btn:disabled {
    opacity: 0.25;
    cursor: not-allowed;
}

.main-action-btn {
    background-color: var(--text-main);
    color: #000000;
    padding: 12px;
    box-shadow: 0 4px 10px rgba(255,255,255,0.1);
}

.main-action-btn svg {
    width: 22px;
    height: 22px;
}

.main-action-btn:hover:not(:disabled) {
    background-color: var(--text-main);
    color: #000;
    transform: scale(1.08);
}

/* Полоса прогресса */
.progress-container {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 10px;
}

.time-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    min-width: 32px;
}

#time-current { text-align: right; }
#time-total { text-align: left; }

.slider-wrapper {
    position: relative;
    flex: 1;
    display: flex;
    align-items: center;
    height: 12px;
}

.slider-wrapper input[type="range"] {
    position: absolute;
    width: 100%;
    height: 4px;
    background: #3e3e3e;
    border-radius: 2px;
    appearance: none;
    -webkit-appearance: none;
    outline: none;
    cursor: pointer;
    z-index: 3;
    margin: 0;
    opacity: 0; /* Делаем стандартный бегунок невидимым, но кликабельным */
}

/* Визуальный кастомный прогресс-бар */
.slider-wrapper::before {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    height: 4px;
    background-color: #3e3e3e;
    border-radius: 2px;
    z-index: 1;
}

.progress-fill {
    position: absolute;
    left: 0;
    top: 4px;
    height: 4px;
    background-color: var(--text-main);
    border-radius: 2px;
    z-index: 2;
    pointer-events: none;
    width: 0%;
    transition: background-color 0.1s;
}

.slider-wrapper:hover .progress-fill {
    background-color: var(--accent-color);
}

/* Десктопный филлер справа */
.volume-placeholder-desktop {
    width: 30%;
}

/* АНИМАЦИИ */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 0; transform: translateY(0); }
}

@keyframes fadeInScale {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}

@keyframes bounce {
    from { height: 3px; }
    to { height: 14px; }
}

@keyframes pulse {
    from { transform: scale(0.9); opacity: 0.7; }
    to { transform: scale(1.1); opacity: 1; }
}

/* АДАПТИВНОСТЬ ДЛЯ ПЛАНШЕТОВ И МОБИЛЬНЫХ *//* Стили для контейнера громкости */
.volume-container {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: auto; /* Сдвигает блок громкости в правый угол панели */
    padding: 0 15px;
}

.volume-slider {
    --range-fill: 35%;
    width: 80px;
    height: 4px;
    -webkit-appearance: none;
    appearance: none;
    background: linear-gradient(
        to right,
        var(--accent-color, #a855f7) 0%,
        var(--accent-color, #a855f7) var(--range-fill),
        rgba(255, 255, 255, 0.2) var(--range-fill),
        rgba(255, 255, 255, 0.2) 100%
    );
    border-radius: 2px;
    outline: none;
    cursor: pointer;
    transition: background 0.2s;
}

.volume-slider:disabled {
    opacity: 0.25;
    cursor: not-allowed;
}

.volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--accent-color, #a855f7);
    cursor: pointer;
    box-shadow: 0 0 0 2px rgba(168, 85, 247, 0.18);
}

.volume-slider::-moz-range-track {
    height: 4px;
    border-radius: 2px;
    background: transparent;
}

.volume-slider::-moz-range-progress {
    height: 4px;
    border-radius: 2px;
    background: var(--accent-color, #a855f7);
}

.volume-slider::-moz-range-thumb {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--accent-color, #a855f7);
    cursor: pointer;
    border: none;
    box-shadow: 0 0 0 2px rgba(168, 85, 247, 0.18);
}

/* Кнопка текста */
.control-icon-btn {
    background: none;
    border: none;
    color: inherit;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px;
    transition: opacity 0.2s;
}
.control-icon-btn:hover {
    opacity: 0.7;
}

/* Модальное окно (Оверлей) */
.lyrics-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.62);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.lyrics-modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

/* Контент модалки */
.lyrics-modal-content {
    background: #2b2b2b;
    color: #e4e6eb;
    padding: 20px 8px 0 20px;
    border-radius: 10px;
    width: 90%;
    max-width: 490px;
    height: min(590px, 86vh);
    display: flex;
    flex-direction: column;
    position: relative;
    box-shadow: 0 14px 34px rgba(0,0,0,0.55);
    border: 1px solid rgba(255,255,255,0.05);
    overflow: hidden;
}

/* Кнопка закрытия */
.lyrics-modal-close-btn {
    position: absolute;
    top: 12px;
    right: 14px;
    width: 30px;
    height: 30px;
    border: none;
    background: transparent;
    font-size: 26px;
    line-height: 1;
    cursor: pointer;
    color: #aeb1b7;
    transition: color 0.2s;
    z-index: 2;
}
.lyrics-modal-close-btn:hover {
    color: #fff;
}

.lyrics-modal-header {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-shrink: 0;
    padding: 0 40px 22px 0;
}

.lyrics-cover-wrap {
    width: 64px;
    height: 64px;
    border-radius: 6px;
    overflow: hidden;
    flex-shrink: 0;
    background: #202020;
    box-shadow: 0 8px 18px rgba(0,0,0,0.32);
}

.lyrics-cover-wrap img,
.lyrics-cover-placeholder {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.lyrics-cover-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #3a3a3a, #1c1c1c);
}

.lyrics-cover-placeholder svg {
    width: 30px;
    height: 30px;
    fill: #888;
}

.lyrics-track-heading {
    min-width: 0;
}

.lyrics-track-heading h3 {
    font-size: 1rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.lyrics-track-heading p {
    color: #9ca0a7;
    font-size: 0.78rem;
    font-weight: 500;
    text-transform: uppercase;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Контейнер для прокрутки текста */
.lyrics-text-container {
    overflow-y: auto;
    flex: 1;
    min-height: 0;
    padding: 0 16px 16px 0;
    color: var(--text-main);
    font-family: var(--font-stack);
    font-size: 1.2rem;
    font-weight: 400;
    line-height: 1.55;
    text-align: left;
    scrollbar-gutter: stable;
}

/* Кастомизация скроллбара внутри текста */
.lyrics-text-container::-webkit-scrollbar {
    width: 8px;
}
.lyrics-text-container::-webkit-scrollbar-thumb {
    background-color: #818181;
    border-radius: 999px;
    border: 2px solid #2b2b2b;
}

.lyrics-line {
    margin: 0 0 8px;
    font-weight: 400;
}

.playlist-modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 1400;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(0, 0, 0, 0.64);
    backdrop-filter: blur(8px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.22s ease;
}

.playlist-modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.playlist-modal-content {
    width: min(480px, 100%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    padding: 22px;
    background: #242424;
    color: var(--text-main);
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.55);
    position: relative;
}

.playlist-modal-close-btn {
    position: absolute;
    top: 12px;
    right: 14px;
    width: 30px;
    height: 30px;
    border: none;
    background: transparent;
    color: #aeb1b7;
    font-size: 26px;
    line-height: 1;
    cursor: pointer;
}

.playlist-modal-close-btn:hover {
    color: #fff;
}

.playlist-modal-header {
    padding-right: 34px;
    margin-bottom: 18px;
}

.playlist-modal-header h2 {
    font-size: 1.35rem;
    line-height: 1.15;
}

.playlist-form-field {
    display: block;
    margin-bottom: 14px;
}

.playlist-form-field span,
.playlist-cover-actions span {
    display: block;
    margin-bottom: 7px;
    color: var(--text-muted);
    font-size: 0.82rem;
    font-weight: 700;
}

.playlist-form-field input,
.playlist-form-field textarea {
    width: 100%;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background: #181818;
    color: var(--text-main);
    font: inherit;
    outline: none;
    transition: var(--transition-smooth);
}

.playlist-form-field input {
    height: 42px;
    padding: 0 12px;
}

.playlist-form-field textarea {
    min-height: 84px;
    resize: vertical;
    padding: 11px 12px;
    line-height: 1.45;
}

.playlist-form-field input:focus,
.playlist-form-field textarea:focus {
    border-color: rgba(168, 85, 247, 0.7);
    box-shadow: 0 0 0 3px rgba(168, 85, 247, 0.16);
}

.playlist-cover-field {
    display: grid;
    grid-template-columns: 86px 1fr;
    gap: 14px;
    align-items: center;
    padding: 12px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.18);
}

.playlist-cover-preview {
    width: 86px;
    height: 86px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    color: #fff;
    background: linear-gradient(180deg, #8c4bd0, #6e3eb4);
}

.playlist-cover-preview svg {
    width: 38px;
    height: 38px;
}

.playlist-cover-preview img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.playlist-cover-actions p {
    margin-top: 8px;
    color: var(--text-muted);
    font-size: 0.78rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.playlist-modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 18px;
}

.lyrics-break {
    height: 10px;
}

.lyrics-loader, .lyrics-empty, .lyrics-error, .lyrics-instrumental {
    color: #b8bbc2;
    font-style: italic;
    padding: 20px 0;
    font-size: 1rem;
    font-weight: 600;
}

.lyrics-player-bar {
    flex-shrink: 0;
    margin: 0 0 8px -12px;
    padding: 14px 18px 16px;
    border-radius: 0 0 8px 8px;
    background: #333333;
    box-shadow: 0 -10px 24px rgba(0,0,0,0.22);
}

.lyrics-progress-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.lyrics-progress-track {
    position: relative;
    flex: 1;
    height: 3px;
    border-radius: 999px;
    background: #4b4b4b;
    overflow: hidden;
}

.lyrics-progress-fill {
    position: absolute;
    inset: 0 auto 0 0;
    width: 0%;
    background: #d7d9dd;
    border-radius: inherit;
}

.lyrics-player-time {
    width: 34px;
    color: #aeb1b7;
    font-size: 0.82rem;
    font-weight: 500;
    text-align: right;
}

.lyrics-controls-row {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
}

.lyrics-volume-control {
    min-width: 150px;
    margin-right: auto;
    display: flex;
    align-items: center;
    gap: 9px;
    color: #d7d9dd;
}

.lyrics-volume-icon {
    font-size: 0.9rem;
    line-height: 1;
    opacity: 0.82;
}

.lyrics-volume-slider {
    width: 118px;
}

.lyrics-control-btn {
    width: 24px;
    height: 24px;
    border: none;
    background: transparent;
    color: #e5e7eb;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0.94;
    transition: opacity 0.2s, transform 0.2s;
}

.lyrics-control-btn:hover {
    opacity: 1;
    transform: scale(1.06);
}

.lyrics-control-btn svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

.lyrics-control-main {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: #eef0f3;
    color: #2d2d2d;
}

.lyrics-control-main svg {
    width: 17px;
    height: 17px;
}

/* Обновлённый интерфейс вкладок */
.app-container {
    grid-template-columns: 260px 1fr;
}

.sidebar {
    padding: 22px 16px;
    gap: 20px;
}

.brand-block {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 58px;
    overflow: hidden;
    flex-shrink: 0;
}

.brand-mark {
    width: 54px;
    height: 54px;
    display: grid;
    place-items: center;
    flex: 0 0 54px;
    overflow: hidden;
    border-radius: 14px;
}

.brand-mark img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain;
}

.brand-title {
    font-size: 1.18rem;
    font-weight: 800;
    line-height: 1;
}

.brand-subtitle {
    margin-top: 5px;
    color: var(--text-muted);
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    white-space: nowrap;
}

.brand-logo {
    width: 150px;
    height: auto;
    display: block;
}

.app-nav {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.nav-tab {
    width: 100%;
    min-height: 44px;
    border: 1px solid transparent;
    border-radius: 8px;
    padding: 0 12px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-muted);
    background: transparent;
    cursor: pointer;
    font-size: 0.92rem;
    font-weight: 650;
    transition: var(--transition-smooth);
}

.nav-tab svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
    flex-shrink: 0;
}

.nav-tab:hover {
    color: var(--text-main);
    background: #161616;
}

.nav-tab.active {
    color: var(--text-main);
    background: var(--track-active);
    border-color: rgba(168, 85, 247, 0.28);
}

.sidebar-now {
    margin-top: auto;
    border-top: 1px solid var(--border-color);
    padding-top: 18px;
}

.sidebar-now-title,
.sidebar-now-artist {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sidebar-now-title {
    font-weight: 700;
    margin-bottom: 4px;
}

.sidebar-now-artist {
    color: var(--text-muted);
    font-size: 0.82rem;
}

.main-content {
    align-items: stretch;
    justify-content: stretch;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 24px;
    padding: 28px;
    background: linear-gradient(180deg, #1a1128 0%, var(--bg-main) 34%);
}

.view-panel {
    display: none;
    min-width: 0;
    overflow-y: auto;
    padding-right: 4px;
}

.view-panel.active {
    display: block;
}

.view-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 18px;
    margin-bottom: 22px;
}

.view-header.compact {
    margin-top: 14px;
}

.view-kicker {
    color: var(--accent-hover);
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.view-header h1 {
    font-size: 2rem;
    line-height: 1.1;
    margin-bottom: 8px;
}

.view-header p {
    color: var(--text-muted);
    max-width: 640px;
    line-height: 1.5;
}

.primary-btn,
.ghost-btn,
.secondary-btn {
    border: 1px solid transparent;
    border-radius: 8px;
    min-height: 40px;
    padding: 0 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: var(--text-main);
    cursor: pointer;
    font-weight: 700;
    transition: var(--transition-smooth);
}

.primary-btn {
    background: var(--accent-color);
}

.primary-btn:hover {
    background: var(--accent-hover);
}

.ghost-btn {
    background: #171717;
    border-color: var(--border-color);
}

.ghost-btn:hover {
    border-color: #555;
    background: #222;
}

.secondary-btn {
    background: #202020;
    border-color: var(--border-color);
}

.secondary-btn:hover {
    border-color: rgba(168, 85, 247, 0.45);
    background: #292333;
}

.primary-btn svg,
.ghost-btn svg,
.secondary-btn svg {
    width: 18px;
    height: 18px;
}

.library-toolbar {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.library-overview {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 16px;
}

.library-overview-card {
    min-height: 96px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 16px;
    display: flex;
    align-items: center;
    gap: 14px;
    background: linear-gradient(135deg, rgba(255,255,255,0.06), rgba(0,0,0,0.18));
}

.library-overview-card.liked {
    border-color: rgba(244, 63, 94, 0.22);
}

.library-overview-card.txt {
    border-color: rgba(168, 85, 247, 0.22);
}

.overview-icon {
    width: 48px;
    height: 48px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.library-overview-card.liked .overview-icon {
    color: #fb7185;
    background: rgba(244, 63, 94, 0.13);
}

.library-overview-card.txt .overview-icon {
    color: var(--accent-hover);
    background: rgba(168, 85, 247, 0.13);
}

.overview-icon svg {
    width: 25px;
    height: 25px;
    display: block;
}

.library-overview-card span {
    color: var(--text-muted);
    display: block;
    font-size: 0.82rem;
    margin-bottom: 5px;
}

.library-overview-card strong {
    display: block;
    font-size: 1.45rem;
    line-height: 1;
}

.content-tabs {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px;
    margin-bottom: 16px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background: rgba(0,0,0,0.2);
}

.content-tab {
    min-height: 34px;
    border: none;
    border-radius: 6px;
    padding: 0 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    color: var(--text-muted);
    background: transparent;
    font-size: 0.84rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.content-tab:hover {
    color: var(--text-main);
    background: #202020;
}

.content-tab.active {
    color: var(--text-main);
    background: var(--track-active);
}

.content-tab svg {
    width: 17px;
    height: 17px;
    display: block;
    flex: 0 0 auto;
}

.heart-icon {
    color: #fb7185;
    transform: translateY(1px);
}

.playlist-upload-zone {
    margin-bottom: 16px;
}

.library-filter {
    flex: 1;
    margin-bottom: 0;
}

.track-list-filter {
    padding: 6px 6px 12px;
    margin-bottom: 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.track-list-filter .search-box {
    max-width: 520px;
    margin-bottom: 0;
}

.track-list-surface,
.search-page-panel {
    background: rgba(0,0,0,0.18);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 8px;
}

.track-list-surface {
    min-height: 230px;
}

.inline-empty {
    color: var(--text-muted);
    text-align: center;
    padding: 34px 16px;
    font-size: 0.92rem;
}

.now-playing-panel {
    min-width: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.now-playing-panel .welcome-screen {
    max-width: 320px;
}

.now-playing-panel .welcome-screen h1 {
    font-size: 1.35rem;
}

.search-page-panel .search-box {
    margin-bottom: 12px;
}

.search-page-results {
    display: block;
    max-height: calc(100vh - 300px);
    border: none;
    background: transparent;
}

.playlist-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(172px, 188px));
    gap: 24px 26px;
    align-items: start;
    justify-content: start;
    padding-top: 8px;
}

.playlist-card {
    width: 100%;
    height: 202px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background: rgba(23, 23, 23, 0.84);
    color: var(--text-main);
    padding: 16px;
    font: inherit;
    text-align: left;
    cursor: pointer;
    transition: var(--transition-smooth);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    position: relative;
    box-shadow: 0 18px 42px rgba(0, 0, 0, 0.18);
}

.playlist-card:hover {
    transform: translateY(-2px);
    border-color: rgba(168, 85, 247, 0.42);
    background: #1f1f1f;
    box-shadow: 0 22px 54px rgba(0, 0, 0, 0.28);
}

.playlist-card-art {
    width: 108px;
    height: 108px;
    border-radius: 8px;
    background: #111;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 2px auto 14px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.26);
}

.playlist-card-art img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.playlist-card-art.placeholder {
    background: linear-gradient(180deg, #8c4bd0, #6e3eb4);
}

.playlist-card-art svg,
.empty-state svg {
    width: 34px;
    height: 34px;
    color: rgba(255, 255, 255, 0.88);
    fill: currentColor;
}

.playlist-card-title {
    width: 100%;
    font-size: 1rem;
    font-weight: 800;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 5px;
    text-align: left;
}

.playlist-card-meta {
    width: 100%;
    color: var(--text-muted);
    font-size: 0.82rem;
    text-align: left;
    margin-top: auto;
}

.playlist-card-description {
    display: none;
    width: 100%;
    color: #c7c7c7;
    font-size: 0.82rem;
    line-height: 1.25;
    margin: -1px 0 6px;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.playlist-detail > .content-tabs {
    display: none;
}

.playlist-create-card {
    height: 202px;
    justify-content: center;
    align-items: center;
    gap: 14px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.11);
    background: rgba(15, 15, 17, 0.74);
}

.playlist-create-card:hover {
    border-color: rgba(168, 85, 247, 0.55);
    background: rgba(27, 22, 34, 0.9);
}

.playlist-create-icon {
    width: 38px;
    height: 38px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    background: rgba(255, 255, 255, 0.08);
}

.playlist-create-icon svg {
    width: 22px;
    height: 22px;
}

.playlist-create-title {
    max-width: 132px;
    color: var(--text-main);
    font-size: 1rem;
    line-height: 1.25;
    font-weight: 800;
    text-align: center;
}

.playlist-card-menu-wrap {
    position: absolute;
    top: 8px;
    right: 8px;
    z-index: 4;
}

.playlist-card-menu-btn {
    width: 30px;
    height: 30px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #d8d8d8;
    background: rgba(0, 0, 0, 0.34);
    cursor: pointer;
    opacity: 0.72;
    transition: var(--transition-smooth);
}

.playlist-card:hover .playlist-card-menu-btn,
.playlist-card:focus-within .playlist-card-menu-btn,
.playlist-card-menu-btn:focus {
    opacity: 1;
}

.playlist-card-menu-btn:hover {
    color: #fff;
    border-color: rgba(168, 85, 247, 0.45);
    background: rgba(27, 22, 34, 0.92);
}

.playlist-card-menu-btn svg {
    width: 18px;
    height: 18px;
}

.playlist-card-menu {
    position: absolute;
    top: 36px;
    right: 0;
    width: 174px;
    padding: 6px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    background: #242424;
    box-shadow: 0 18px 44px rgba(0, 0, 0, 0.42);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-4px);
    transition: var(--transition-smooth);
}

.playlist-card-menu.active {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.playlist-card-menu button {
    width: 100%;
    height: 34px;
    border: none;
    border-radius: 6px;
    padding: 0 8px;
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-main);
    background: transparent;
    cursor: pointer;
    font-size: 0.84rem;
    font-weight: 700;
    text-align: left;
}

.playlist-card-menu button:hover {
    background: rgba(255, 255, 255, 0.07);
}

.playlist-card-menu button.danger {
    color: #fb7185;
}

.playlist-card-menu button.danger:hover {
    background: rgba(239, 68, 68, 0.14);
}

.playlist-card-menu button svg {
    width: 16px;
    height: 16px;
    flex: 0 0 auto;
}

.empty-state {
    min-height: 310px;
    border: 1px dashed #3a3a3a;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 28px;
    background: rgba(0,0,0,0.16);
}

.empty-state svg {
    width: 44px;
    height: 44px;
    fill: var(--accent-hover);
    margin-bottom: 16px;
}

.empty-state h2 {
    font-size: 1.2rem;
    margin-bottom: 8px;
}

.empty-state p {
    color: var(--text-muted);
    max-width: 360px;
    line-height: 1.5;
    margin-bottom: 18px;
}

/* Taskbar player */
.main-content {
    grid-template-columns: minmax(0, 1fr);
}

.now-playing-panel {
    display: none;
}

.bottom-player {
    height: 82px;
    padding: 0 18px;
}

.bottom-player-inner {
    gap: 10px;
}

.taskbar-controls,
.taskbar-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.taskbar-track {
    min-width: 210px;
    max-width: 270px;
    flex: 0 1 245px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.taskbar-cover-wrap {
    width: 48px;
    height: 48px;
    border-radius: 6px;
    overflow: hidden;
    flex-shrink: 0;
    background: #101010;
}

.taskbar-cover-wrap img,
.taskbar-cover-placeholder {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.taskbar-cover-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #2a2a2a, #111);
}

.taskbar-cover-placeholder svg {
    width: 24px;
    height: 24px;
    fill: #666;
}

.taskbar-meta {
    min-width: 0;
    flex: 1;
}

.taskbar-meta h2 {
    font-size: 0.9rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 3px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.taskbar-meta p {
    color: var(--text-muted);
    font-size: 0.74rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.taskbar-track .status-badge {
    display: none;
}

.lyrics-text-icon {
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 0;
    line-height: 1;
}

.mode-toggle-btn.active {
    color: var(--accent-hover);
    background: rgba(168, 85, 247, 0.14);
    border-color: rgba(168, 85, 247, 0.42);
}

.favorite-toggle-btn.active {
    color: #ff6b8a;
    background: rgba(255, 107, 138, 0.13);
}

.favorite-toggle-btn svg {
    transition: transform 0.16s ease;
}

.favorite-toggle-btn line {
    stroke: currentColor;
    stroke-width: 2.2;
    stroke-linecap: round;
}

.favorite-toggle-btn:hover:not(:disabled) svg {
    transform: scale(1.08);
}

.taskbar-progress {
    flex: 1;
    min-width: 180px;
}

.taskbar-progress .progress-container {
    width: 100%;
}


.volume-container {
    margin-left: 0;
}

.volume-placeholder-desktop {
    display: none;
}

.sc-result-item {
    padding: 0;
}

.sc-result-main {
    flex: 1;
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 10px;
    border: none;
    background: transparent;
    color: inherit;
    text-align: left;
    cursor: pointer;
}

.sc-result-add {
    width: 34px;
    height: 34px;
    margin-right: 8px;
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 50%;
    background: #1c1c1c;
    color: var(--text-main);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition-smooth);
    flex-shrink: 0;
}

.sc-result-add:hover {
    background: var(--accent-color);
    border-color: var(--accent-color);
}

.sc-result-add.added,
.sc-result-add.added:hover {
    background: rgba(34, 197, 94, 0.16);
    border-color: rgba(34, 197, 94, 0.45);
    color: #4ade80;
    cursor: pointer;
    transform: none;
}

.sc-result-add svg {
    width: 18px;
    height: 18px;
}

.auth-screen {
    position: fixed;
    inset: 0;
    z-index: 4500;
    align-items: center;
    justify-content: center;
    padding: 22px;
    background: radial-gradient(circle at center, rgba(168, 85, 247, 0.12), transparent 38%), #101011;
}

.auth-card {
    width: min(100%, 370px);
    max-height: calc(100vh - 44px);
    overflow-y: auto;
    border: 1px solid rgba(168, 85, 247, 0.38);
    border-radius: 8px;
    background: #151515;
    padding: 28px;
    box-shadow: 0 26px 70px rgba(0, 0, 0, 0.55);
}

.auth-panel {
    display: none;
}

.auth-panel.active {
    display: block;
}

.auth-logo {
    width: 205px;
    height: auto;
    display: block;
    margin-bottom: 28px;
}

.auth-logo.small {
    width: 150px;
    margin-bottom: 20px;
}

.auth-panel h1,
.auth-panel h2 {
    line-height: 1.18;
    letter-spacing: 0;
}

.auth-panel h1 {
    font-size: 2rem;
    margin-bottom: 22px;
}

.auth-panel h1 span,
.auth-panel h2 span {
    color: var(--accent-color);
}

.auth-panel h2 {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.7rem;
    margin-bottom: 14px;
}

.auth-panel p {
    color: #d0cad7;
    line-height: 1.55;
    margin-bottom: 22px;
}

.auth-note-art {
    width: 100%;
    max-width: 280px;
    display: block;
    margin: 10px auto 28px;
}

.auth-panel label {
    display: grid;
    gap: 8px;
    color: #ffffff;
    font-size: 0.86rem;
    font-weight: 800;
    margin-bottom: 14px;
}

.auth-panel input {
    width: 100%;
    min-height: 50px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    background: #191919;
    color: #ffffff;
    padding: 0 16px;
    font: inherit;
    font-weight: 700;
    outline: none;
}

.auth-panel input:focus {
    border-color: rgba(168, 85, 247, 0.82);
    box-shadow: 0 0 0 3px rgba(168, 85, 247, 0.16);
}

.auth-main-btn,
.auth-secondary-btn,
.profile-logout-btn {
    width: 100%;
    min-height: 56px;
    border-radius: 8px;
    border: 1px solid rgba(168, 85, 247, 0.58);
    color: #ffffff;
    font: inherit;
    font-weight: 900;
    cursor: pointer;
}

.auth-main-btn {
    background: linear-gradient(135deg, #8b3fe4, #a855f7);
    margin-top: 8px;
}

.auth-secondary-btn {
    background: #171717;
    margin-top: 12px;
}

.auth-back {
    width: 34px;
    height: 34px;
    border: 0;
    background: transparent;
    color: #ffffff;
    font: inherit;
    font-size: 1.5rem;
    cursor: pointer;
}

.auth-divider {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 14px;
    color: var(--text-muted);
    margin: 22px 0 10px;
    font-weight: 800;
}

.auth-divider::before,
.auth-divider::after {
    content: "";
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
}

.auth-code-input {
    text-align: center;
    font-size: 2rem !important;
    letter-spacing: 0.42em;
}

.auth-message {
    min-height: 20px;
    margin-top: 14px;
    color: #fca5a5;
    font-size: 0.9rem;
    font-weight: 800;
}

.auth-message.info {
    color: #c084fc;
}

.profile-view {
    min-height: 100%;
    display: flex;
    align-items: flex-start;
    justify-content: center;
}

.profile-card-web {
    width: min(100%, 560px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    background: #151515;
    padding: 34px;
    text-align: center;
}

.profile-avatar-web {
    width: 132px;
    height: 132px;
    margin: 0 auto 18px;
    border: 2px solid rgba(168, 85, 247, 0.82);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #2a1d3f;
    overflow: hidden;
}

.profile-avatar-web svg {
    width: 72px;
    height: 72px;
}

.profile-avatar-web img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-card-web h1 {
    font-size: 2rem;
    margin-bottom: 6px;
}

.profile-card-web > p {
    color: var(--accent-hover);
    font-weight: 900;
    margin-bottom: 26px;
}

.profile-info-grid {
    display: grid;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    margin-bottom: 24px;
    text-align: left;
    overflow: hidden;
}

.profile-info-grid div {
    display: grid;
    gap: 6px;
    padding: 15px 18px;
}

.profile-info-grid div + div {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.profile-info-grid span {
    color: var(--text-muted);
    font-size: 0.76rem;
    font-weight: 900;
    text-transform: uppercase;
}

.profile-info-grid strong {
    word-break: break-word;
}

.profile-logout-btn {
    border-color: rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.06);
}

.auth-screen {
    padding: 34px;
    background:
        radial-gradient(circle at 14% 12%, rgba(168, 85, 247, 0.18), transparent 34%),
        radial-gradient(circle at 82% 82%, rgba(126, 34, 206, 0.16), transparent 32%),
        #0d0d10;
}

.auth-card {
    width: min(1120px, calc(100vw - 48px));
    max-height: calc(100vh - 32px);
    display: grid;
    grid-template-columns: minmax(390px, 0.92fr) minmax(480px, 1fr);
    gap: 0;
    padding: 0;
    border-color: rgba(168, 85, 247, 0.28);
    border-radius: 16px;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.035), transparent 34%),
        rgba(18, 18, 20, 0.96);
    overflow: hidden;
    box-shadow: 0 34px 90px rgba(0, 0, 0, 0.62);
}

.auth-brand-pane,
.auth-form-pane {
    min-height: min(690px, calc(100vh - 32px));
}

.auth-brand-pane {
    position: relative;
    display: grid;
    align-content: space-between;
    gap: 20px;
    padding: 34px 40px;
    border-right: 1px solid rgba(255, 255, 255, 0.08);
    background:
        radial-gradient(circle at 34% 64%, rgba(168, 85, 247, 0.16), transparent 32%),
        linear-gradient(145deg, rgba(168, 85, 247, 0.11), rgba(255, 255, 255, 0.015) 46%),
        #121116;
    overflow: hidden;
}

.auth-brand-pane::after {
    content: "";
    position: absolute;
    inset: auto -120px 46px auto;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: rgba(168, 85, 247, 0.12);
    filter: blur(44px);
    pointer-events: none;
}

.auth-form-pane {
    display: grid;
    align-items: center;
    padding: 34px 46px;
    overflow-y: auto;
    background:
        radial-gradient(circle at 50% 50%, rgba(168, 85, 247, 0.1), transparent 42%),
        rgba(12, 12, 15, 0.38);
}

.auth-logo {
    width: 220px;
    margin: 0;
}

.auth-logo.small {
    display: none;
}

.auth-kicker {
    margin: 0 0 12px;
    color: var(--accent-hover);
    font-size: 0.72rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.auth-brand-pane h1 {
    max-width: 390px;
    margin: 0;
    font-size: clamp(1.62rem, 2.12vw, 2.22rem);
    line-height: 1.16;
    font-weight: 750;
}

.auth-brand-pane h1 span {
    color: var(--accent-hover);
}

.auth-title-rule {
    width: 48px;
    height: 2px;
    margin: 16px 0 18px;
    border-radius: 999px;
    background: var(--accent-hover);
}

.auth-brand-copy {
    max-width: 410px;
    margin: 0;
    color: #d2ceda;
    font-size: 0.92rem;
    line-height: 1.55;
}

.auth-art-panel {
    position: relative;
    min-height: 210px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(168, 85, 247, 0.24);
    border-radius: 14px;
    background:
        radial-gradient(circle at center, rgba(168, 85, 247, 0.18), transparent 42%),
        rgba(10, 10, 12, 0.42);
    overflow: hidden;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.045), 0 18px 40px rgba(0, 0, 0, 0.22);
}

.auth-note-art {
    width: min(44%, 170px);
    max-width: none;
    margin: 0;
    z-index: 1;
    filter: drop-shadow(0 20px 35px rgba(168, 85, 247, 0.22));
}

.auth-wave-svg {
    position: absolute;
    left: 4%;
    right: 4%;
    top: 50%;
    width: 90%;
    transform: translateY(-50%);
    color: #8f43ef;
    opacity: 0.72;
    filter: drop-shadow(0 0 18px rgba(168, 85, 247, 0.34));
}

.auth-wave-svg rect {
    fill: currentColor;
}

.auth-benefit-list {
    display: grid;
    gap: 10px;
}

.auth-benefit-list div {
    min-height: 48px;
    display: grid;
    grid-template-columns: 34px 1fr;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    background:
        linear-gradient(135deg, rgba(168, 85, 247, 0.12), rgba(255, 255, 255, 0.025)),
        rgba(255, 255, 255, 0.025);
    color: #e8e2ef;
    font-size: 0.84rem;
    font-weight: 800;
}

.auth-benefit-list svg {
    width: 34px;
    height: 34px;
    padding: 8px;
    border-radius: 50%;
    color: var(--accent-hover);
    background: rgba(168, 85, 247, 0.13);
}

.auth-panel h1 {
    font-size: 2.15rem;
}

.auth-panel h2 {
    display: block;
    font-size: clamp(1.75rem, 2.35vw, 2.25rem);
    line-height: 1.1;
    margin: 0;
}

.auth-form-pane .auth-panel.active {
    display: block;
    width: 100%;
    max-width: 560px;
    margin: 0 auto;
}

.auth-welcome-layout {
    display: grid;
    justify-items: center;
    text-align: center;
}

.auth-welcome-icon {
    width: 58px;
    height: 58px;
    display: grid;
    place-items: center;
    margin-bottom: 22px;
    border: 1px solid rgba(168, 85, 247, 0.36);
    border-radius: 50%;
    color: var(--accent-hover);
    background: rgba(168, 85, 247, 0.13);
}

.auth-welcome-icon svg {
    width: 28px;
    height: 28px;
}

.auth-welcome-copy h2 {
    font-size: clamp(1.6rem, 2.2vw, 2rem);
    font-weight: 750;
}

.auth-welcome-copy p {
    max-width: 330px;
    margin: 12px auto 0;
    color: #bfb8ca;
    font-size: 0.9rem;
    line-height: 1.5;
}

.auth-welcome-separator {
    position: relative;
    width: min(330px, 100%);
    height: 44px;
    display: grid;
    place-items: center;
}

.auth-welcome-separator::before {
    content: "";
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(168, 85, 247, 0.45), transparent);
}

.auth-welcome-separator span {
    position: absolute;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--accent-hover);
    box-shadow: 0 0 18px rgba(168, 85, 247, 0.86);
}

.auth-form-pane #auth-register-form.active {
    max-width: 600px;
}

.auth-form-pane #auth-login-form.active,
.auth-form-pane #auth-register-form.active {
    text-align: center;
}

.auth-form-pane #auth-login-form.active .auth-heading-row,
.auth-form-pane #auth-register-form.active .auth-heading-row {
    width: max-content;
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
}

.auth-form-pane #auth-login-form.active .auth-copy-card,
.auth-form-pane #auth-register-form.active .auth-copy-card {
    text-align: center;
}

.auth-form-pane #auth-login-form.active label,
.auth-form-pane #auth-register-form.active label {
    text-align: left;
}

.auth-panel p {
    max-width: 520px;
    margin: 14px 0 22px;
    color: #cfc9d8;
    font-size: 0.92rem;
    line-height: 1.55;
}

.auth-heading-row {
    display: grid;
    grid-template-columns: 44px 1fr;
    gap: 14px;
    align-items: center;
    margin-bottom: 16px;
}

.auth-step-title {
    font-size: clamp(1.35rem, 2vw, 1.85rem) !important;
    line-height: 1.12;
    font-weight: 800;
    margin: 0;
}

.auth-copy-card {
    margin-bottom: 20px;
    padding: 18px 20px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    background:
        linear-gradient(135deg, rgba(168, 85, 247, 0.1), rgba(255, 255, 255, 0.025)),
        rgba(255, 255, 255, 0.028);
}

.auth-copy-card h3 {
    margin: 0 0 8px;
    font-size: 1.12rem;
    font-weight: 700;
    line-height: 1.15;
}

.auth-copy-card p {
    margin: 0;
    font-size: 0.9rem;
    color: #cbc4d4;
}

.auth-back {
    width: 42px;
    height: 42px;
    display: inline-grid;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.04);
    font-size: 1.35rem;
}

.auth-back svg {
    width: 22px;
    height: 22px;
}

.auth-choice-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    width: min(330px, 100%);
    margin: 0 auto;
}

.auth-form-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
}

.auth-wide-field {
    grid-column: 1 / -1;
}

.auth-panel label {
    font-size: 0.78rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.auth-panel input {
    min-height: 50px;
    border-color: rgba(255, 255, 255, 0.09);
    background: rgba(255, 255, 255, 0.045);
}

.auth-input-wrap {
    position: relative;
    display: block;
}

.auth-input-wrap input {
    padding-right: 48px;
}

.auth-password-toggle {
    position: absolute;
    top: 50%;
    right: 10px;
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    transform: translateY(-50%);
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: #bdb6c7;
    cursor: pointer;
}

.auth-password-toggle:hover,
.auth-password-toggle.is-visible {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.06);
}

.auth-password-toggle svg {
    width: 20px;
    height: 20px;
}

.auth-password-toggle .icon-eye-off {
    display: none;
}

.auth-password-toggle.is-visible .icon-eye {
    display: none;
}

.auth-password-toggle.is-visible .icon-eye-off {
    display: block;
}

.auth-password-strength {
    display: grid;
    gap: 7px;
    margin-top: 8px;
}

.auth-password-strength-bars {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 5px;
}

.auth-password-strength-bars i {
    height: 4px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.1);
}

.auth-password-strength-text {
    color: var(--text-muted);
    font-size: 0.72rem;
    font-weight: 500;
    line-height: 1.35;
}

.auth-password-strength[data-strength="weak"] .auth-password-strength-bars i:nth-child(-n + 1) {
    background: #ef4444;
}

.auth-password-strength[data-strength="medium"] .auth-password-strength-bars i:nth-child(-n + 2) {
    background: #f59e0b;
}

.auth-password-strength[data-strength="good"] .auth-password-strength-bars i:nth-child(-n + 3) {
    background: #a855f7;
}

.auth-password-strength[data-strength="strong"] .auth-password-strength-bars i {
    background: #86efac;
}

.auth-password-strength[data-strength="weak"] .auth-password-strength-text {
    color: #fca5a5;
}

.auth-password-strength[data-strength="medium"] .auth-password-strength-text {
    color: #fbbf24;
}

.auth-password-strength[data-strength="good"] .auth-password-strength-text {
    color: #c084fc;
}

.auth-password-strength[data-strength="strong"] .auth-password-strength-text {
    color: #86efac;
}

.auth-main-btn,
.auth-secondary-btn,
.profile-save-btn,
.profile-soft-btn,
.profile-link-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border-radius: 8px;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}

.auth-main-btn,
.auth-secondary-btn {
    min-height: 52px;
    font-size: 0.92rem;
}

.auth-button-icon {
    width: 20px;
    height: 20px;
    flex: 0 0 auto;
}

.auth-button-arrow {
    width: 18px;
    height: 18px;
    margin-left: auto;
    opacity: 0.8;
}

#auth-welcome .auth-main-btn,
#auth-welcome .auth-secondary-btn {
    justify-content: flex-start;
    padding: 0 24px;
}

.auth-welcome-meta {
    width: min(390px, 100%);
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    margin: 46px auto 0;
    padding-top: 26px;
    border-top: 1px solid rgba(255, 255, 255, 0.07);
}

.auth-welcome-meta div {
    display: grid;
    gap: 5px;
    justify-items: center;
    text-align: center;
    color: #c8c0d0;
}

.auth-welcome-meta svg {
    width: 20px;
    height: 20px;
    color: var(--accent-hover);
}

.auth-welcome-meta strong {
    color: #e8e2ef;
    font-size: 0.82rem;
    font-weight: 700;
}

.auth-welcome-meta span {
    font-size: 0.75rem;
    line-height: 1.35;
}

.auth-main-btn {
    box-shadow: 0 18px 36px rgba(168, 85, 247, 0.22);
}

.auth-secondary-btn.compact {
    border: 0;
    background: transparent;
    color: var(--accent-hover);
    box-shadow: none;
}

.auth-code-shell {
    margin: 24px 0;
    padding: 18px;
    border: 1px solid rgba(168, 85, 247, 0.24);
    border-radius: 14px;
    background: rgba(168, 85, 247, 0.08);
}

.auth-code-input {
    min-height: 76px !important;
    border: 0 !important;
    background: transparent !important;
    font-size: clamp(2rem, 4vw, 3.2rem) !important;
    letter-spacing: 0.34em;
    padding-left: 0.34em !important;
}

.auth-message {
    margin-top: 18px;
}

.auth-message.success,
.profile-message.success {
    color: #86efac;
}

.profile-view {
    justify-content: center;
}

.profile-card-web {
    width: min(100%, 1080px);
    display: grid;
    grid-template-columns: 300px minmax(0, 1fr);
    gap: 28px;
    padding: 28px;
    border-color: rgba(168, 85, 247, 0.22);
    background: #151515;
    box-shadow: 0 26px 70px rgba(0, 0, 0, 0.34);
    text-align: left;
}

.profile-summary-web,
.profile-edit-web {
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.profile-summary-web {
    padding: 8px 22px 8px 0;
    border-right: 1px solid rgba(255, 255, 255, 0.08);
    text-align: center;
}

.profile-edit-web {
    padding: 8px 0;
}

.profile-avatar-web {
    width: 144px;
    height: 144px;
}

.profile-avatar-actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    align-items: center;
    margin: 22px 0;
}

.profile-avatar-actions::after {
    content: "";
    width: 100%;
    height: 1px;
    order: 1;
    background: rgba(255, 255, 255, 0.08);
}

.profile-soft-btn {
    min-height: 42px;
    border: 1px solid rgba(168, 85, 247, 0.42);
    background: rgba(168, 85, 247, 0.14);
    color: #ffffff;
    order: 0;
}

.profile-link-btn {
    min-height: 42px;
    border: 1px solid rgba(248, 113, 113, 0.24);
    border-radius: 8px;
    background: rgba(248, 113, 113, 0.06);
    color: #fca5a5;
    padding: 0 12px;
    order: 2;
}

.profile-link-btn:disabled {
    opacity: 0.35;
    cursor: default;
}

.profile-card-web h1 {
    font-size: 2.05rem;
}

.profile-edit-header {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 18px;
    align-items: start;
    margin-bottom: 18px;
}

.profile-edit-header h2 {
    margin: 0 0 8px;
    font-size: 1.9rem;
}

.profile-edit-header > span {
    color: var(--text-muted);
    line-height: 1.55;
}

.profile-edit-header > div > span {
    color: var(--text-muted);
    line-height: 1.55;
}

.profile-edit-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
}

.profile-edit-grid label {
    display: grid;
    gap: 8px;
    color: #ffffff;
    font-size: 0.82rem;
    font-weight: 700;
}

.profile-edit-grid input {
    width: 100%;
    min-height: 50px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.045);
    color: #ffffff;
    padding: 0 15px;
    font: inherit;
    font-weight: 700;
    outline: none;
}

.profile-edit-grid .auth-input-wrap input {
    padding-right: 48px;
}

.profile-tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    width: min(420px, 100%);
    margin-bottom: 22px;
    padding: 4px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.035);
}

.profile-tab-btn {
    min-height: 40px;
    border: 0;
    border-radius: 6px;
    background: transparent;
    color: #c9c0d3;
    font: inherit;
    font-size: 0.88rem;
    font-weight: 700;
    cursor: pointer;
}

.profile-tab-btn.active {
    color: #ffffff;
    background: rgba(168, 85, 247, 0.22);
}

.profile-tab-panel {
    display: none;
}

.profile-tab-panel.active {
    display: block;
}

.profile-edit-grid input:focus {
    border-color: rgba(168, 85, 247, 0.82);
    box-shadow: 0 0 0 3px rgba(168, 85, 247, 0.14);
}

.profile-password-box {
    margin-top: 0;
    padding: 20px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.026);
}

.profile-password-box h3 {
    margin: 0 0 8px;
    font-size: 1rem;
}

.profile-password-box p {
    margin: 0 0 18px;
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.5;
}

.profile-wide-field {
    grid-column: 1 / -1;
}

.profile-message {
    min-height: 20px;
    margin: 18px 0;
    color: #fca5a5;
    font-size: 0.9rem;
    font-weight: 800;
}

.profile-message.info {
    color: #c084fc;
}

.profile-actions-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}

.profile-save-btn,
.profile-logout-btn {
    min-height: 52px;
    color: #ffffff;
}

.profile-save-btn {
    border: 1px solid rgba(168, 85, 247, 0.58);
    background: linear-gradient(135deg, #7f35d6, #a855f7);
}

.profile-logout-btn {
    width: 44px;
    min-height: 44px;
    border-color: rgba(248, 113, 113, 0.34);
    background: rgba(248, 113, 113, 0.09);
    color: #f87171;
    padding: 0;
}

.profile-logout-btn svg {
    width: 23px;
    height: 23px;
}

.profile-logout-btn:hover {
    border-color: rgba(248, 113, 113, 0.62);
    background: rgba(248, 113, 113, 0.15);
    color: #fecaca;
}

@media (max-width: 1180px) {
    .auth-card {
        grid-template-columns: 0.82fr 1fr;
    }

    .auth-brand-pane,
    .auth-form-pane {
        padding: 34px;
    }
}

@media (max-width: 860px) {
    .auth-card,
    .profile-card-web {
        grid-template-columns: 1fr;
    }

    .profile-summary-web {
        padding: 0 0 24px;
        border-right: 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    }

    .auth-brand-pane {
        min-height: auto;
        gap: 18px;
        border-right: 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    }

    .auth-art-panel,
    .auth-benefit-list {
        display: none;
    }

    .auth-form-pane {
        min-height: auto;
    }

    .auth-choice-row,
    .auth-form-grid,
    .profile-edit-grid,
    .profile-actions-row {
        grid-template-columns: 1fr;
    }
}
.mobile-browser-blocker {
    display: none;
}

@media (max-width: 1024px), (hover: none) and (pointer: coarse) {
    html,
    body {
        width: 100%;
        height: 100%;
        overflow: hidden;
    }

    body {
        background: #08080a;
    }

    .app-container,
    .bottom-player,
    .lyrics-modal-overlay,
    .playlist-modal-overlay {
        display: none !important;
    }

    .mobile-browser-blocker {
        position: fixed;
        inset: 0;
        z-index: 5000;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 22px;
        background:
            linear-gradient(180deg, rgba(168, 85, 247, 0.18), rgba(8, 8, 10, 0) 42%),
            #08080a;
        color: #ffffff;
        overflow-y: auto;
    }

    .mobile-browser-card {
        position: relative;
        width: min(100%, 430px);
        text-align: center;
        padding: 34px 24px 26px;
        border: 1px solid rgba(168, 85, 247, 0.34);
        border-radius: 14px;
        background:
            radial-gradient(circle at 50% 0%, rgba(168, 85, 247, 0.2), transparent 42%),
            linear-gradient(180deg, #18151f 0%, #111113 100%);
        box-shadow: 0 28px 78px rgba(0, 0, 0, 0.58);
        overflow: hidden;
    }

    .mobile-browser-card::before {
        content: "";
        position: absolute;
        inset: 0 22px auto;
        height: 1px;
        background: linear-gradient(90deg, transparent, rgba(192, 132, 252, 0.75), transparent);
    }

    .mobile-browser-logo {
        display: block;
        width: 148px;
        height: auto;
        margin: 0 auto 24px;
    }

    .mobile-browser-card h1 {
        max-width: 340px;
        margin: 0 auto 14px;
        font-size: 1.54rem;
        line-height: 1.18;
        letter-spacing: 0;
    }

    .mobile-browser-card p {
        max-width: 350px;
        margin: 0 auto;
        color: #d0d0d5;
        font-size: 0.98rem;
        line-height: 1.55;
    }

    .mobile-browser-actions {
        display: grid;
        gap: 12px;
        margin-top: 26px;
    }

    .mobile-store-button {
        width: 100%;
        min-height: 52px;
        display: inline-flex;
        align-items: center;
        justify-content: flex-start;
        gap: 12px;
        padding: 0 20px;
        border: 1px solid rgba(168, 85, 247, 0.72);
        border-radius: 8px;
        background: linear-gradient(135deg, #8b35e7, #a855f7);
        color: #ffffff;
        font: inherit;
        font-size: 0.97rem;
        font-weight: 750;
        text-decoration: none;
        cursor: pointer;
        box-shadow: 0 10px 28px rgba(168, 85, 247, 0.2);
    }

    .mobile-store-button.secondary {
        border-color: rgba(255, 255, 255, 0.14);
        background: rgba(255, 255, 255, 0.07);
        box-shadow: none;
    }

    .mobile-store-button.disabled {
        opacity: 0.72;
        cursor: default;
    }

    .mobile-store-button svg {
        width: 22px;
        height: 22px;
        flex-shrink: 0;
    }

    .mobile-store-button span {
        line-height: 1;
    }

    .mobile-store-button em {
        margin-left: auto;
        padding: 3px 7px;
        border-radius: 999px;
        background: rgba(168, 85, 247, 0.24);
        color: #d8b4fe;
        font-size: 0.68rem;
        font-style: normal;
        font-weight: 800;
        text-transform: uppercase;
    }
}

/* LANDING PAGE */
body.landing-page {
    min-height: 100vh;
    height: auto;
    overflow-x: hidden;
    overflow-y: auto;
    background:
        radial-gradient(circle at 75% 26%, rgba(168, 85, 247, 0.22), transparent 26%),
        radial-gradient(circle at 10% 0%, rgba(168, 85, 247, 0.12), transparent 24%),
        linear-gradient(180deg, #11121a 0%, #0d0d12 45%, #08080a 100%);
    scrollbar-width: none;
}

body.landing-page::-webkit-scrollbar {
    display: none;
}

html:has(body.landing-page) {
    scrollbar-width: none;
    -ms-overflow-style: none;
}

html:has(body.landing-page)::-webkit-scrollbar {
    width: 0;
    height: 0;
    display: none;
}

body.landing-page::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    background:
        radial-gradient(circle at 76% 28%, rgba(168, 85, 247, 0.12), transparent 34%),
        repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.012) 0 1px, transparent 1px 112px),
        repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.009) 0 1px, transparent 1px 112px);
    opacity: 0.38;
}

.landing-shell {
    position: relative;
    width: min(1180px, calc(100% - 48px));
    min-height: 100vh;
    margin: 0 auto;
    padding: 28px 0 36px;
    display: block;
}

.landing-card {
    width: 100%;
    padding: 0;
}

.landing-card-header,
.landing-actions,
.landing-feature-grid,
.landing-hero {
    display: grid;
    gap: 18px;
}

.landing-card-header {
    grid-template-columns: 1fr auto;
    align-items: center;
    margin-bottom: 38px;
    padding-bottom: 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.landing-logo {
    width: 176px;
    height: auto;
    display: block;
    filter: drop-shadow(0 0 13px rgba(168, 85, 247, 0.42));
}

.landing-status {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 40px;
    padding: 0 22px;
    border: 1px solid rgba(168, 85, 247, 0.32);
    border-radius: 999px;
    background: linear-gradient(180deg, rgba(65, 34, 102, 0.82), rgba(36, 21, 60, 0.86));
    color: #ffffff;
    font-size: 0.9rem;
    font-weight: 900;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 10px 28px rgba(0, 0, 0, 0.28);
}

.landing-status svg {
    width: 18px;
    height: 18px;
}

.landing-hero {
    grid-template-columns: minmax(0, 1fr) 370px;
    align-items: center;
    gap: 58px;
    margin-bottom: 40px;
}

.landing-kicker {
    width: max-content;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 38px;
    padding: 0 17px;
    border-radius: 8px;
    background: rgba(168, 85, 247, 0.11);
    color: #c061ff;
    box-shadow: 0 0 28px rgba(168, 85, 247, 0.14);
}

.landing-kicker span {
    width: 10px;
    height: 10px;
    border-radius: 999px;
    background: #7c3aed;
    box-shadow: 0 0 16px rgba(168, 85, 247, 0.8);
}

.landing-copy h1 {
    max-width: 650px;
    margin-top: 28px;
    font-size: clamp(1.95rem, 3.15vw, 3.08rem);
    line-height: 1.18;
    letter-spacing: 0;
    text-shadow: 0 2px 22px rgba(0, 0, 0, 0.38);
}

.landing-copy h1 strong {
    color: #a855f7;
    font-weight: 900;
}

.landing-lead {
    max-width: 570px;
    margin-top: 20px;
    color: #cbc4d5;
    font-size: 0.96rem;
    line-height: 1.7;
}

.landing-player-preview {
    position: relative;
    min-height: 506px;
    overflow: hidden;
    border: 1px solid rgba(168, 85, 247, 0.34);
    border-radius: 8px;
    padding: 28px;
    background:
        radial-gradient(circle at 48% 16%, rgba(168, 85, 247, 0.22), transparent 42%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.018)),
        #111116;
    box-shadow: 0 28px 90px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.065);
}

.landing-player-preview::before {
    content: "";
    position: absolute;
    inset: -34% -24% auto auto;
    width: 230px;
    height: 230px;
    border-radius: 50%;
    background: rgba(168, 85, 247, 0.22);
    filter: blur(36px);
}

.landing-player-preview::after {
    display: none;
}

.landing-cover {
    position: relative;
    z-index: 1;
    width: 100%;
    aspect-ratio: 1;
    border-radius: 8px;
    border: 2px solid rgba(168, 85, 247, 0.7);
    background:
        radial-gradient(circle at center, rgba(168, 85, 247, 0.22), transparent 56%),
        #171021;
    overflow: hidden;
    box-shadow: 0 0 44px rgba(168, 85, 247, 0.26), 0 20px 48px rgba(0, 0, 0, 0.42);
}

.landing-cover img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 8%;
    display: block;
}

.landing-preview-meta {
    position: relative;
    z-index: 1;
    display: grid;
    gap: 4px;
    margin-top: 28px;
}

.landing-preview-meta span {
    position: relative;
    padding-left: 18px;
}

.landing-preview-meta span::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    width: 10px;
    height: 10px;
    border-radius: 999px;
    background: #a855f7;
    transform: translateY(-50%);
    box-shadow: 0 0 16px rgba(168, 85, 247, 0.9);
}

.landing-preview-meta span,
.landing-preview-meta small {
    color: #c9c2d3;
    font-size: 0.9rem;
}

.landing-preview-meta strong {
    font-size: 1.15rem;
}

.landing-wave {
    position: relative;
    z-index: 1;
    height: 42px;
    margin-top: 34px;
    display: flex;
    align-items: center;
    gap: 7px;
}

.landing-wave span {
    width: 7px;
    height: 22px;
    border-radius: 999px;
    background: linear-gradient(180deg, #c084fc, #7c3aed);
}

.landing-wave span:nth-child(2) {
    height: 36px;
}

.landing-wave span:nth-child(3) {
    height: 42px;
}

.landing-wave span:nth-child(4) {
    height: 32px;
}

.landing-wave span:nth-child(5) {
    height: 38px;
}

.landing-actions {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    max-width: 760px;
    margin-top: 30px;
}

.landing-action {
    position: relative;
    min-height: 56px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 0 16px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 7px;
    background: rgba(24, 24, 30, 0.78);
    backdrop-filter: blur(12px);
    color: #ffffff;
    text-decoration: none;
    font-size: 0.94rem;
    font-weight: 800;
    transition: var(--transition-smooth);
}

.landing-action:hover {
    transform: translateY(-1px);
    border-color: rgba(168, 85, 247, 0.65);
    background: rgba(168, 85, 247, 0.16);
}

.landing-action.primary {
    border-color: rgba(168, 85, 247, 0.78);
    background: linear-gradient(135deg, #8b3fe4, #a855f7);
    box-shadow: 0 15px 38px rgba(168, 85, 247, 0.28);
}

.landing-action.disabled {
    color: rgba(255, 255, 255, 0.52);
    cursor: default;
}

.landing-action.disabled:hover {
    transform: none;
    border-color: rgba(255, 255, 255, 0.12);
    background: #181818;
}

.landing-action svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.landing-action em {
    position: absolute;
    right: -12px;
    top: -12px;
    padding: 4px 7px;
    border-radius: 5px;
    background: #a855f7;
    color: #ffffff;
    font-size: 0.68rem;
    font-style: normal;
    font-weight: 900;
}

.landing-feature-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin-top: 10px;
}

.landing-feature {
    min-height: 146px;
    display: grid;
    grid-template-columns: 58px minmax(0, 1fr);
    column-gap: 16px;
    align-items: start;
    padding: 22px;
    border: 1px solid rgba(168, 85, 247, 0.18);
    border-radius: 8px;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.01)),
        rgba(16, 16, 22, 0.78);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04), 0 18px 42px rgba(0, 0, 0, 0.18);
    transition: var(--transition-smooth);
}

.landing-feature:hover {
    transform: translateY(-2px);
    border-color: rgba(168, 85, 247, 0.32);
    background:
        linear-gradient(135deg, rgba(168, 85, 247, 0.08), rgba(255, 255, 255, 0.012)),
        rgba(18, 18, 24, 0.86);
}

.landing-feature svg {
    grid-row: span 2;
    width: 48px;
    height: 48px;
    padding: 12px;
    border-radius: 999px;
    background: rgba(168, 85, 247, 0.13);
    color: var(--accent-color);
    box-shadow: 0 0 26px rgba(168, 85, 247, 0.22);
}

.landing-feature h2 {
    font-size: 1rem;
    margin-bottom: 9px;
}

.landing-feature p {
    color: #bbb3c6;
    font-size: 0.88rem;
    line-height: 1.5;
}

.landing-bottom-strip {
    margin-top: 22px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    border: 1px solid rgba(168, 85, 247, 0.28);
    border-radius: 8px;
    background:
        linear-gradient(180deg, rgba(168, 85, 247, 0.11), rgba(255, 255, 255, 0.025)),
        rgba(18, 18, 24, 0.72);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.landing-bottom-strip > div {
    min-height: 78px;
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 28px;
}

.landing-bottom-strip > div + div {
    border-left: 1px solid rgba(255, 255, 255, 0.08);
}

.landing-bottom-strip svg {
    width: 42px;
    height: 42px;
    padding: 11px;
    border-radius: 999px;
    background: rgba(168, 85, 247, 0.16);
    color: var(--accent-color);
}

.landing-bottom-strip span {
    display: grid;
    gap: 4px;
}

.landing-bottom-strip strong {
    font-size: 0.94rem;
}

.landing-bottom-strip small {
    color: var(--text-muted);
    font-size: 0.84rem;
}

@media (max-width: 900px) {
    html {
        height: auto;
        min-height: 100%;
        overflow-y: auto;
    }

    body.landing-page {
        height: auto;
        min-height: 100%;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    .landing-shell {
        width: min(100% - 24px, 560px);
        padding: 18px 0 26px;
        align-items: flex-start;
    }

    .landing-card {
        padding: 0;
    }

    .landing-card-header,
    .landing-actions,
    .landing-feature-grid,
    .landing-bottom-strip {
        grid-template-columns: 1fr;
    }

    .landing-card-header {
        grid-template-columns: minmax(0, 1fr) auto;
        align-items: center;
    }

    .landing-hero {
        grid-template-columns: 1fr;
    }

    .landing-card-header {
        gap: 16px;
        margin-bottom: 26px;
        padding-bottom: 18px;
    }

    .landing-logo {
        width: 156px;
    }

    .landing-status {
        width: max-content;
        min-height: 34px;
        padding: 0 15px;
        font-size: 0.78rem;
    }

    .landing-hero {
        gap: 24px;
        margin-bottom: 28px;
    }

    .landing-kicker {
        min-height: 34px;
        padding: 0 13px;
        font-size: 0.74rem;
    }

    .landing-kicker span {
        width: 8px;
        height: 8px;
    }

    .landing-copy h1 {
        margin-top: 18px;
        font-size: clamp(1.82rem, 9vw, 2.5rem);
        line-height: 1.14;
    }

    .landing-lead {
        margin-top: 16px;
        font-size: 0.92rem;
        line-height: 1.62;
    }

    .landing-player-preview {
        display: none;
    }

    .landing-player-preview::after {
        display: none;
    }

    .landing-cover {
        max-width: 310px;
        margin: 0 auto;
    }

    .landing-preview-meta {
        margin-top: 18px;
    }

    .landing-wave {
        margin-top: 18px;
    }

    .landing-actions {
        max-width: none;
        margin-top: 22px;
        gap: 10px;
    }

    .landing-action {
        justify-content: center;
        min-height: 52px;
    }

    .landing-feature {
        min-height: auto;
        padding: 18px;
        grid-template-columns: 50px minmax(0, 1fr);
        column-gap: 14px;
    }

    .landing-feature svg {
        width: 44px;
        height: 44px;
        padding: 11px;
    }

    .landing-bottom-strip {
        margin-top: 14px;
    }

    .landing-bottom-strip > div {
        min-height: 68px;
        padding: 14px 18px;
    }

    .landing-bottom-strip > div + div {
        border-left: 0;
        border-top: 1px solid rgba(255, 255, 255, 0.08);
    }
}

@media (max-width: 520px) {
    .landing-shell {
        width: min(100% - 18px, 430px);
        padding: 14px 0 22px;
    }

    .landing-card-header {
        grid-template-columns: minmax(0, 1fr) auto;
        gap: 10px;
    }

    .landing-logo {
        width: min(140px, 44vw);
    }

    .landing-status {
        min-height: 32px;
        padding: 0 10px;
        font-size: 0.72rem;
        white-space: nowrap;
    }

    .landing-status svg {
        width: 15px;
        height: 15px;
    }

    .landing-copy h1 {
        font-size: clamp(1.62rem, 8.4vw, 2.15rem);
    }

    .landing-actions {
        grid-template-columns: 1fr;
    }

    .landing-action {
        justify-content: flex-start;
        padding: 0 18px;
    }

    .landing-feature-grid {
        gap: 10px;
    }

    .landing-feature {
        grid-template-columns: 46px minmax(0, 1fr);
        padding: 16px;
    }

    .landing-feature svg {
        width: 40px;
        height: 40px;
        padding: 10px;
    }

    .landing-feature h2 {
        font-size: 0.94rem;
    }

    .landing-feature p {
        font-size: 0.84rem;
    }
}
