.vk-brand-mark {
    color: #fff;
    background: linear-gradient(145deg, #4c89d9, #2d6fbe);
    box-shadow: 0 10px 30px rgba(45,111,190,.22);
    font-size: 14px;
    letter-spacing: -.04em;
}

.vk-workspace {
    padding: 22px 24px 28px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(270px, 340px);
    gap: 16px;
    min-height: calc(100vh - 198px);
}

.vk-main-panel { min-width: 0; }
.vk-queue-panel { min-height: 0; }
.vk-queue-panel .queue-list { max-height: calc(100vh - 330px); }

.vk-search-area {
    position: relative;
    padding: 14px 16px 12px;
    border-bottom: 1px solid var(--line);
    z-index: 4;
}

.vk-search-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
    align-items: center;
}

.vk-search-box { margin: 0; }
.vk-search-row .primary-button { min-width: 100px; height: 42px; }

.vk-suggestions {
    position: absolute;
    left: 16px;
    right: 126px;
    top: calc(100% - 7px);
    padding: 6px;
    background: rgba(17,21,26,.985);
    border: 1px solid var(--line);
    border-radius: 12px;
    box-shadow: 0 20px 50px rgba(0,0,0,.35);
    max-height: 320px;
    overflow-y: auto;
}

.vk-suggestion {
    width: 100%;
    min-height: 42px;
    padding: 8px 10px;
    border: 0;
    border-radius: 9px;
    background: transparent;
    text-align: left;
    cursor: pointer;
    color: var(--text);
}
.vk-suggestion:hover,
.vk-suggestion.active { background: rgba(255,255,255,.055); }
.vk-suggestion strong { display: block; font-size: 13px; }
.vk-suggestion span { display: block; margin-top: 2px; color: var(--muted); font-size: 11px; }

.vk-view-toolbar {
    min-height: 72px;
    padding: 14px 16px;
    display: flex;
    align-items: center;
    gap: 14px;
    border-bottom: 1px solid var(--line);
}

.vk-content { padding: 16px; }
.vk-content.loading { opacity: .58; pointer-events: none; }

.vk-welcome {
    min-height: 420px;
    display: grid;
    place-items: center;
    align-content: center;
    text-align: center;
    gap: 9px;
    padding: 34px;
}
.vk-welcome-icon {
    width: 62px;
    height: 62px;
    border-radius: 20px;
    display: grid;
    place-items: center;
    background: rgba(76,137,217,.12);
    color: #6da7ed;
    font-size: 30px;
    margin-bottom: 4px;
}
.vk-welcome p { max-width: 660px; line-height: 1.55; }

.vk-section {
    border: 1px solid var(--line);
    border-radius: 15px;
    overflow: hidden;
    background: rgba(255,255,255,.018);
    margin-bottom: 14px;
}
.vk-section:last-child { margin-bottom: 0; }

.vk-section-heading {
    min-height: 58px;
    padding: 12px 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    border-bottom: 1px solid rgba(255,255,255,.05);
}
.vk-section-heading h3 { margin: 0; font-size: 16px; }
.vk-section-heading .muted { font-size: 11px; }

.vk-track-list { display: grid; }
.vk-track-row {
    min-height: 58px;
    display: grid;
    grid-template-columns: 38px 46px minmax(0,1fr) auto 34px;
    gap: 8px;
    align-items: center;
    padding: 6px 10px;
    border-top: 1px solid rgba(255,255,255,.045);
}
.vk-track-row:first-child { border-top: 0; }
.vk-track-row:hover { background: rgba(255,255,255,.035); }
.vk-track-row .track-play { width: 32px; height: 32px; }
.vk-track-cover {
    width: 42px;
    height: 42px;
    object-fit: cover;
    border-radius: 9px;
    background: var(--panel-3);
    border: 1px solid var(--line);
}
.vk-track-cover-placeholder {
    width: 42px;
    height: 42px;
    border-radius: 9px;
    display: grid;
    place-items: center;
    background: var(--panel-3);
    color: var(--muted);
}
.vk-track-main { min-width: 0; }
.vk-track-main strong {
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 13px;
}
.vk-track-artist {
    margin-top: 3px;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--muted);
    cursor: default;
    font-size: 11px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}
.vk-track-artist.clickable { cursor: pointer; }
.vk-track-artist.clickable:hover { color: var(--accent); }
.vk-track-duration { color: var(--muted); font-size: 11px; padding-left: 8px; }
.vk-add-button {
    width: 30px;
    height: 30px;
    border: 1px solid var(--line);
    border-radius: 9px;
    background: transparent;
    color: var(--muted);
    cursor: pointer;
}
.vk-add-button:hover { color: var(--accent); border-color: rgba(119,230,182,.35); }

.vk-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 12px;
    padding: 12px;
}
.vk-card {
    border: 0;
    background: transparent;
    color: inherit;
    text-align: left;
    min-width: 0;
    cursor: pointer;
    padding: 0;
}
.vk-card-art {
    aspect-ratio: 1;
    width: 100%;
    border-radius: 12px;
    object-fit: cover;
    border: 1px solid var(--line);
    background: var(--panel-3);
    display: block;
}
.vk-card-art-placeholder {
    aspect-ratio: 1;
    width: 100%;
    border-radius: 12px;
    display: grid;
    place-items: center;
    border: 1px solid var(--line);
    background: linear-gradient(145deg, rgba(76,137,217,.15), rgba(119,230,182,.06));
    color: var(--muted);
    font-size: 26px;
}
.vk-card:hover .vk-card-art,
.vk-card:hover .vk-card-art-placeholder { border-color: rgba(119,230,182,.36); }
.vk-card strong {
    display: block;
    margin-top: 8px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 13px;
}
.vk-card span {
    display: block;
    margin-top: 3px;
    color: var(--muted);
    font-size: 11px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.vk-artist-list { display: grid; gap: 1px; }
.vk-artist-row {
    width: 100%;
    min-height: 64px;
    padding: 8px 12px;
    display: grid;
    grid-template-columns: 48px minmax(0,1fr) auto;
    gap: 10px;
    align-items: center;
    border: 0;
    border-top: 1px solid rgba(255,255,255,.045);
    background: transparent;
    color: inherit;
    text-align: left;
    cursor: pointer;
}
.vk-artist-row:first-child { border-top: 0; }
.vk-artist-row:hover { background: rgba(255,255,255,.035); }
.vk-artist-row img,
.vk-artist-avatar-placeholder {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    object-fit: cover;
    background: var(--panel-3);
    display: grid;
    place-items: center;
    color: var(--muted);
}
.vk-artist-row strong { display: block; font-size: 13px; }
.vk-artist-row span { display: block; margin-top: 3px; color: var(--muted); font-size: 11px; }
.vk-artist-arrow { color: var(--muted); }

.vk-artist-hero {
    display: grid;
    grid-template-columns: 150px minmax(0,1fr);
    gap: 18px;
    align-items: center;
    padding: 8px 2px 20px;
}
.vk-artist-hero img,
.vk-artist-hero-placeholder {
    width: 150px;
    height: 150px;
    border-radius: 22px;
    object-fit: cover;
    background: var(--panel-3);
    display: grid;
    place-items: center;
    font-size: 42px;
    color: var(--muted);
    border: 1px solid var(--line);
}
.vk-artist-hero h2 { font-size: 26px; }
.vk-artist-hero p { margin-top: 10px; line-height: 1.5; max-width: 760px; }

.vk-list-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 10px 12px;
    border-bottom: 1px solid rgba(255,255,255,.045);
}

.vk-load-more {
    display: flex;
    justify-content: center;
    padding: 14px;
    border-top: 1px solid rgba(255,255,255,.045);
}

.vk-error,
.vk-empty {
    min-height: 220px;
    display: grid;
    place-items: center;
    align-content: center;
    text-align: center;
    gap: 8px;
    padding: 24px;
}
.vk-error strong { color: var(--danger); }

.vk-config-help { margin-top: 16px; padding: 22px; }
.vk-config-help h2 { margin-bottom: 10px; }
.vk-config-help p { line-height: 1.55; }

.vk-now-cover {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    object-fit: cover;
    border: 1px solid var(--line);
    margin-right: 10px;
}

@media (max-width: 980px) {
    .vk-workspace { grid-template-columns: 1fr; }
    .vk-queue-panel { display: none; }
    .vk-content { padding-bottom: 20px; }
}

@media (max-width: 700px) {
    .vk-workspace { padding: 12px 10px 18px; }
    .vk-main-panel { border-radius: 14px; }
    .vk-search-area { padding: 10px; }
    .vk-search-row { grid-template-columns: minmax(0,1fr) 82px; gap: 7px; }
    .vk-search-row .primary-button { min-width: 82px; }
    .vk-suggestions { left: 10px; right: 99px; }
    .vk-content { padding: 10px; }
    .vk-section { border-radius: 12px; }
    .vk-track-row {
        grid-template-columns: 34px 40px minmax(0,1fr) 34px;
        gap: 6px;
        padding: 6px 7px;
    }
    .vk-track-cover,
    .vk-track-cover-placeholder { width: 38px; height: 38px; border-radius: 8px; }
    .vk-track-duration { display: none; }
    .vk-card-grid { grid-template-columns: repeat(2, minmax(0,1fr)); gap: 10px; padding: 10px; }
    .vk-artist-hero { grid-template-columns: 92px minmax(0,1fr); gap: 12px; padding-bottom: 14px; }
    .vk-artist-hero img,
    .vk-artist-hero-placeholder { width: 92px; height: 92px; border-radius: 16px; }
    .vk-artist-hero h2 { font-size: 21px; }
    .vk-artist-hero p { font-size: 12px; margin-top: 6px; max-height: 54px; overflow: hidden; }
    .vk-view-toolbar { padding: 10px; min-height: 60px; }
    .vk-view-toolbar h2 { font-size: 16px; }
}

html[data-theme="light"] .vk-suggestions {
    background: rgba(255,255,255,.99);
    border-color: rgba(26,38,49,.13);
}
html[data-theme="light"] .vk-suggestion:hover,
html[data-theme="light"] .vk-suggestion.active,
html[data-theme="light"] .vk-track-row:hover,
html[data-theme="light"] .vk-artist-row:hover {
    background: rgba(22,37,50,.045);
}
html[data-theme="light"] .vk-section {
    background: rgba(22,37,50,.018);
}
html[data-theme="light"] .vk-card-art-placeholder,
html[data-theme="light"] .vk-track-cover-placeholder,
html[data-theme="light"] .vk-artist-avatar-placeholder,
html[data-theme="light"] .vk-artist-hero-placeholder {
    background: #edf1f4;
}

@media (max-width: 720px) {
    .vk-music-shell .topbar-actions { gap: 5px; }
    .vk-music-shell .topbar-link { padding: 0 7px; font-size: 11px; }
    .vk-music-shell .ghost-button { padding-left: 8px; padding-right: 8px; }
}
