.dpp-track-actions .dpp-share-btn {
    width: 34px;
    min-width: 34px;
    height: 34px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
}

.dpp-track-actions .dpp-share-btn svg {
    width: 18px;
    height: 18px;
    fill: none !important;
    stroke: currentColor;
}

.dpp-track-row.dpp-shared-track {
    position: relative;
    border-color: var(--dpp-primary, #6a4e9e) !important;
    background: var(--dpp-primary-light, rgba(106, 78, 158, .12)) !important;
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--dpp-primary, #6a4e9e) 16%, transparent);
    animation: dpp-shared-track-pulse 1.35s ease 2;
}

.dpp-shared-track-badge {
    display: inline-flex;
    margin-inline-start: 8px;
    padding: 2px 7px;
    border-radius: 999px;
    background: var(--dpp-primary, #6a4e9e);
    color: #fff;
    font-size: 9px;
    line-height: 1.6;
    vertical-align: middle;
    white-space: nowrap;
}

@keyframes dpp-shared-track-pulse {
    0%, 100% { box-shadow: 0 0 0 3px color-mix(in srgb, var(--dpp-primary, #6a4e9e) 16%, transparent); }
    50% { box-shadow: 0 0 0 9px color-mix(in srgb, var(--dpp-primary, #6a4e9e) 7%, transparent); }
}

.dpp-share-overlay {
    position: fixed;
    inset: 0;
    z-index: 100000;
    display: grid;
    place-items: center;
    padding: 18px;
    background: rgba(10, 10, 20, .58);
    backdrop-filter: blur(4px);
}

.dpp-share-overlay[hidden] {
    display: none !important;
}

html.dpp-share-open,
html.dpp-share-open body {
    overflow: hidden;
}

.dpp-share-dialog {
    width: min(100%, 480px);
    max-height: min(640px, calc(100vh - 36px));
    overflow: auto;
    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: 18px;
    background: #fff;
    color: #222;
    box-shadow: 0 24px 80px rgba(0, 0, 0, .34);
    padding: 18px;
    font: inherit;
}

.dpp-share-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
}

.dpp-share-head > div {
    min-width: 0;
}

.dpp-share-head strong {
    display: block;
    font-size: 16px;
    margin-bottom: 5px;
}

.dpp-share-track-title {
    display: block;
    color: #666;
    font-size: 12px;
    line-height: 1.8;
    overflow-wrap: anywhere;
}

.dpp-share-close {
    width: 34px;
    min-width: 34px;
    height: 34px;
    border: 1px solid #ddd;
    border-radius: 10px;
    background: #f5f5f5;
    color: #333;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
}

.dpp-share-link-wrap {
    display: block;
    margin-bottom: 14px;
}

.dpp-share-link {
    width: 100%;
    min-height: 42px;
    box-sizing: border-box;
    direction: ltr;
    text-align: left;
    border: 1px solid #ddd;
    border-radius: 10px;
    background: #f8f8fa;
    color: #444;
    padding: 9px 11px;
    font: 12px/1.6 monospace;
}

.dpp-share-actions {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
}

.dpp-share-actions button,
.dpp-share-actions a {
    min-height: 46px;
    border: 1px solid #ddd;
    border-radius: 11px;
    background: #f7f7f8;
    color: #333;
    padding: 8px 7px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    text-decoration: none !important;
    font: inherit;
    font-size: 11px;
    cursor: pointer;
    transition: transform .16s ease, border-color .16s ease, background .16s ease;
}

.dpp-share-actions button:hover,
.dpp-share-actions a:hover {
    transform: translateY(-1px);
    border-color: var(--dpp-primary, #6a4e9e);
    background: var(--dpp-primary-light, rgba(106, 78, 158, .10));
}

.dpp-share-actions svg {
    width: 18px;
    height: 18px;
    flex: 0 0 auto;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
}

.dpp-share-telegram svg,
.dpp-share-whatsapp svg {
    fill: currentColor;
    stroke: none;
}

.dpp-share-status {
    min-height: 20px;
    margin-top: 10px;
    color: var(--dpp-primary, #6a4e9e);
    font-size: 12px;
    text-align: center;
}

@media (prefers-color-scheme: dark) {
    .dpp-share-dialog {
        background: #202124;
        color: #f1f1f1;
        border-color: rgba(255, 255, 255, .12);
    }
    .dpp-share-track-title { color: #b8b8b8; }
    .dpp-share-close,
    .dpp-share-actions button,
    .dpp-share-actions a {
        background: #2b2c30;
        color: #f1f1f1;
        border-color: #45464b;
    }
    .dpp-share-link {
        background: #17181a;
        color: #e6e6e6;
        border-color: #45464b;
    }
}

@media (max-width: 768px) {
    .dpp-track-actions .dpp-share-btn {
        width: 31px;
        min-width: 31px;
        height: 31px;
        padding: 0;
    }

    .dpp-share-overlay {
        align-items: end;
        padding: 0;
    }

    .dpp-share-dialog {
        width: 100%;
        max-height: 78vh;
        border-radius: 20px 20px 0 0;
        padding: 16px;
    }

    .dpp-share-actions {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .dpp-share-actions button,
    .dpp-share-actions a {
        min-height: 48px;
        font-size: 12px;
    }

    .dpp-shared-track-badge {
        display: table;
        margin: 5px auto 0;
    }
}

@media (prefers-reduced-motion: reduce) {
    .dpp-track-row.dpp-shared-track {
        animation: none;
    }
    .dpp-share-actions button,
    .dpp-share-actions a {
        transition: none;
    }
}
