/* ── RadiolaShare Overlay ────────────────────────────────────── */

.radiola-share-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9999;
    align-items: center;
    justify-content: center;
}
.radiola-share-overlay.open {
    display: flex;
}

/* Backdrop */
.share-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, .65);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    opacity: 0;
    transition: opacity .25s ease;
}
.radiola-share-overlay.visible .share-backdrop {
    opacity: 1;
}

/* Panel */
.share-panel {
    position: relative;
    width: 90%;
    max-width: 380px;
    background: #18181f;
    border: 1px solid rgba(255, 153, 0, .12);
    border-radius: 18px;
    padding: 28px 24px 24px;
    box-shadow: 0 24px 80px rgba(0, 0, 0, .6), 0 0 40px rgba(255, 153, 0, .06);
    transform: translateY(20px) scale(.97);
    opacity: 0;
    transition: transform .3s cubic-bezier(.16, 1, .3, 1), opacity .25s ease;
}
.radiola-share-overlay.visible .share-panel {
    transform: translateY(0) scale(1);
    opacity: 1;
}

/* Close button */
.share-close {
    position: absolute;
    top: 14px;
    right: 14px;
    background: none;
    border: none;
    color: rgba(255, 255, 255, .4);
    cursor: pointer;
    padding: 4px;
    border-radius: 8px;
    transition: color .15s, background .15s;
}
.share-close:hover {
    color: #fff;
    background: rgba(255, 255, 255, .08);
}

/* Preview (cover + title + artist) */
.share-preview {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 22px;
}
.share-cover {
    width: 56px;
    height: 56px;
    border-radius: 10px;
    object-fit: cover;
    flex-shrink: 0;
}
.share-cover[src=""] {
    display: none;
}
.share-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}
.share-title {
    font-size: .95rem;
    font-weight: 600;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.share-artist {
    font-size: .8rem;
    color: rgba(255, 255, 255, .45);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Link row */
.share-link-row {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
}
.share-link-input {
    flex: 1;
    background: rgba(255, 255, 255, .06);
    border: 1px solid rgba(255, 255, 255, .1);
    border-radius: 10px;
    color: rgba(255, 255, 255, .7);
    font-family: 'Inter', system-ui, sans-serif;
    font-size: .78rem;
    padding: 10px 14px;
    outline: none;
    min-width: 0;
    transition: border-color .2s;
}
.share-link-input:focus {
    border-color: rgba(255, 153, 0, .4);
}
.share-copy-btn {
    flex-shrink: 0;
    padding: 10px 18px;
    border-radius: 10px;
    border: none;
    background: linear-gradient(135deg, #ff9900, #ffb347);
    color: #000;
    font-family: 'Inter', system-ui, sans-serif;
    font-size: .82rem;
    font-weight: 650;
    cursor: pointer;
    transition: transform .15s, box-shadow .2s;
}
.share-copy-btn:hover {
    transform: scale(1.04);
    box-shadow: 0 4px 16px rgba(255, 153, 0, .35);
}
.share-copy-btn.copied {
    background: linear-gradient(135deg, #00c853, #69f0ae);
}

/* App buttons */
.share-apps {
    display: flex;
    justify-content: center;
    gap: 16px;
}
.share-app-btn {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, .08);
    background: rgba(255, 255, 255, .04);
    color: rgba(255, 255, 255, .7);
    cursor: pointer;
    transition: background .15s, transform .15s, border-color .15s;
}
.share-app-btn:hover {
    background: rgba(255, 255, 255, .1);
    border-color: rgba(255, 153, 0, .25);
    transform: scale(1.08);
}
.share-app-btn[data-app="whatsapp"]:hover { color: #25d366; }
.share-app-btn[data-app="twitter"]:hover  { color: #fff; }
.share-app-btn[data-app="telegram"]:hover { color: #2aabee; }
.share-app-btn[data-app="native"]:hover   { color: #ff9900; }

/* ── Share button on track cards ─────────────────────────────── */

.track-share-btn {
    background: none;
    border: none;
    color: rgba(255, 255, 255, .35);
    cursor: pointer;
    padding: 4px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color .15s, background .15s;
    flex-shrink: 0;
}
.track-share-btn:hover {
    color: #ff9900;
    background: rgba(255, 153, 0, .1);
}

/* ── Add to My RadioLA button on track cards ─────────────────── */

.track-mrl-btn {
    background: none;
    border: none;
    color: rgba(255, 255, 255, .35);
    cursor: pointer;
    padding: 4px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color .15s, background .15s;
    flex-shrink: 0;
}
.track-mrl-btn:hover {
    color: #1ec878;
    background: rgba(30, 200, 120, .1);
}
.track-mrl-btn.in-mrl {
    color: #1ec878;
}
.track-mrl-btn.in-mrl:hover {
    color: #ff5555;
    background: rgba(255, 85, 85, .1);
}

/* Responsive */
@media (max-width: 480px) {
    .share-panel {
        width: 95%;
        padding: 22px 18px 20px;
        border-radius: 14px;
    }
    .share-apps {
        gap: 12px;
    }
    .share-app-btn {
        width: 44px;
        height: 44px;
    }
}
