.cogop-latest-songs-preview {
    --bg-card: #141720;
    --bg-elevated: #1a1e2a;
    --accent: #4f8ef7;
    --accent-soft: rgba(79, 142, 247, 0.12);
    --accent-border: rgba(79, 142, 247, 0.3);
    --green: #3ecf8e;
    --text-primary: #eceef5;
    --text-secondary: #8892a4;
    --text-muted: #4e5768;
    --border: #1e2535;
    --border-hover: #2a3347;
    --radius-lg: 14px;

    color: var(--text-primary);
    font-family: "DM Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.cogop-latest-songs-preview *,
.cogop-latest-songs-preview *::before,
.cogop-latest-songs-preview *::after {
    box-sizing: border-box;
}

.cogop-latest-songs-preview a {
    color: inherit;
    text-decoration: none;
}

.cogop-latest-songs-preview .cogop-song-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.cogop-latest-songs-preview .cogop-library-song-card {
    position: relative;
    display: flex;
    align-items: center;
    gap: 14px;
    overflow: hidden;
    padding: 14px 16px;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    background: var(--bg-card);
    transition: background 0.2s ease, border-color 0.2s ease;
}

.cogop-latest-songs-preview .cogop-library-song-card::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    border-radius: 2px 0 0 2px;
    background: transparent;
    transition: background 0.2s ease;
}

.cogop-latest-songs-preview .cogop-library-song-card:hover,
.cogop-latest-songs-preview .cogop-library-song-card:focus-within {
    background: var(--bg-elevated);
    border-color: var(--border-hover);
}

.cogop-latest-songs-preview .cogop-library-song-card:hover::before,
.cogop-latest-songs-preview .cogop-library-song-card:focus-within::before {
    background: var(--accent);
}

.cogop-latest-songs-preview .cogop-library-song-cover {
    flex: 0 0 46px;
    width: 46px;
    height: 46px;
    overflow: hidden;
    border-radius: 8px;
    background: linear-gradient(135deg, #1a2840, #2a3f6b);
}

.cogop-latest-songs-preview .cogop-library-song-cover a,
.cogop-latest-songs-preview .cogop-library-song-cover img {
    display: block;
    width: 100%;
    height: 100%;
}

.cogop-latest-songs-preview .cogop-library-song-cover img {
    object-fit: cover;
}

.cogop-latest-songs-preview .cogop-library-cover-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    color: rgba(255, 255, 255, 0.75);
    font-size: 20px;
}

.cogop-latest-songs-preview .cogop-library-song-info {
    flex: 1;
    min-width: 0;
}

.cogop-latest-songs-preview .cogop-library-song-title {
    margin: 0 0 4px;
    overflow: hidden;
    color: var(--text-primary);
    font-size: 14px;
    font-weight: 600;
    line-height: 1.25;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.cogop-latest-songs-preview .cogop-library-song-title a:hover,
.cogop-latest-songs-preview .cogop-library-song-title a:focus-visible {
    color: var(--accent);
    outline: none;
}

.cogop-latest-songs-preview .cogop-library-song-artist {
    color: var(--text-secondary);
    font-size: 12.5px;
    line-height: 1.35;
}

.cogop-latest-songs-preview .cogop-library-song-themes {
    margin-top: 2px;
    color: var(--text-muted);
    font-size: 11.5px;
    line-height: 1.35;
}

.cogop-latest-songs-preview .cogop-library-song-meta {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 16px;
}

.cogop-latest-songs-preview .cogop-library-meta-item {
    min-width: 40px;
    text-align: center;
}

.cogop-latest-songs-preview .cogop-library-meta-item span {
    display: block;
    margin-bottom: 2px;
    color: var(--text-muted);
    font-size: 10px;
    letter-spacing: 0.5px;
    line-height: 1;
    text-transform: uppercase;
}

.cogop-latest-songs-preview .cogop-library-meta-item strong {
    display: block;
    color: var(--text-secondary);
    font-size: 13px;
    font-weight: 600;
    line-height: 1.2;
}

.cogop-latest-songs-preview .cogop-library-song-price {
    flex: 0 0 82px;
    text-align: right;
}

.cogop-latest-songs-preview .library-price-main {
    color: var(--text-primary);
    font-size: 15px;
    font-weight: 700;
    line-height: 1.2;
}

.cogop-latest-songs-preview .library-price-note {
    color: var(--green);
    font-size: 12px;
    font-weight: 500;
    line-height: 1.25;
    white-space: nowrap;
}

.cogop-latest-songs-preview .library-access-main {
    color: var(--text-primary);
    font-weight: 700;
}

.cogop-latest-songs-preview .cogop-library-open-song {
    display: flex;
    flex: 0 0 34px;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border: 1px solid var(--accent-border);
    border-radius: 8px;
    background: var(--accent-soft);
    color: var(--accent);
    transition: background 0.15s ease, color 0.15s ease;
}

.cogop-latest-songs-preview .cogop-library-open-song:hover,
.cogop-latest-songs-preview .cogop-library-open-song:focus-visible,
.cogop-latest-songs-preview .cogop-library-song-card:hover .cogop-library-open-song {
    background: var(--accent);
    color: #fff;
    outline: none;
}

.cogop-latest-songs-preview .cogop-library-open-song svg {
    width: 16px;
    height: 16px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.cogop-latest-songs-preview .cogop-latest-songs-empty {
    margin: 0;
    padding: 18px;
    border: 1px dashed var(--border-hover);
    border-radius: var(--radius-lg);
    background: var(--bg-card);
    color: var(--text-secondary);
    text-align: center;
}

@media (max-width: 780px) {
    .cogop-latest-songs-preview .cogop-library-song-card {
        display: grid;
        grid-template-columns: 46px minmax(0, 1fr) 34px;
        gap: 12px;
    }

    .cogop-latest-songs-preview .cogop-library-song-meta,
    .cogop-latest-songs-preview .cogop-library-song-price {
        display: none;
    }

    .cogop-latest-songs-preview .cogop-library-open-song {
        grid-column: 3;
        justify-self: end;
        align-self: center;
    }
}

@media (max-width: 640px) {
    .cogop-latest-songs-preview .cogop-song-list {
        gap: 14px;
    }

    .cogop-latest-songs-preview .cogop-library-song-card {
        grid-template-columns: 80px minmax(0, 1fr) 34px;
        gap: 14px;
        align-items: start;
        padding: 16px;
        border-radius: 16px;
    }

    .cogop-latest-songs-preview .cogop-library-song-card::before {
        display: none;
    }

    .cogop-latest-songs-preview .cogop-library-song-cover {
        grid-column: 1;
        grid-row: 1;
        width: 80px;
        height: 80px;
        border: 1px solid var(--border);
        border-radius: 12px;
        background: #1e293b;
    }

    .cogop-latest-songs-preview .cogop-library-song-cover img {
        border-radius: 12px;
    }

    .cogop-latest-songs-preview .cogop-library-song-info {
        grid-column: 2;
        grid-row: 1;
        align-self: center;
    }

    .cogop-latest-songs-preview .cogop-library-song-title {
        overflow: visible;
        white-space: normal;
    }
}
