/* SpotiDown Plugin Styles */

#spotidown-wrap {
    background: #181818;
    border: 1px solid #2a2a2a;
    border-radius: 16px;
    padding: 36px;
    max-width: 700px;
    margin: 30px auto;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    position: relative;
}

#spotidown-wrap::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, #1DB954, transparent);
    border-radius: 16px 16px 0 0;
}

/* Input row */
.sd-input-row {
    display: flex;
    gap: 10px;
    background: #222;
    border: 2px solid #333;
    border-radius: 10px;
    padding: 6px 6px 6px 16px;
    transition: border-color 0.2s;
    align-items: center;
}

.sd-input-row:focus-within {
    border-color: #1DB954;
    box-shadow: 0 0 0 3px rgba(29,185,84,0.12);
}

#sd-url {
    flex: 1;
    background: none;
    border: none;
    outline: none;
    color: #fff;
    font-size: 15px;
    padding: 10px 0;
    min-width: 0;
}

#sd-url::placeholder { color: #555; }

#sd-btn {
    background: #1DB954;
    color: #000;
    border: none;
    border-radius: 8px;
    padding: 12px 22px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s;
}

#sd-btn:hover { background: #1ed760; transform: scale(1.03); }
#sd-btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }

/* Hint */
.sd-hint {
    color: #888;
    font-size: 13px;
    margin: 12px 0 0;
}

/* Error */
#sd-error {
    background: rgba(255,60,60,0.1);
    border: 1px solid rgba(255,60,60,0.25);
    color: #ff7070;
    border-radius: 8px;
    padding: 14px 18px;
    font-size: 14px;
    margin-top: 16px;
}

/* Loading */
#sd-loading {
    text-align: center;
    padding: 28px 0 10px;
    margin-top: 20px;
}

.sd-bars {
    display: flex;
    justify-content: center;
    align-items: flex-end;
    gap: 5px;
    height: 40px;
    margin-bottom: 14px;
}

.sd-bars span {
    display: block;
    width: 6px;
    background: #1DB954;
    border-radius: 3px;
    animation: sd-wave 1s ease-in-out infinite;
}

.sd-bars span:nth-child(1) { animation-delay: 0s; }
.sd-bars span:nth-child(2) { animation-delay: 0.15s; }
.sd-bars span:nth-child(3) { animation-delay: 0.30s; }
.sd-bars span:nth-child(4) { animation-delay: 0.45s; }
.sd-bars span:nth-child(5) { animation-delay: 0.60s; }

@keyframes sd-wave {
    0%, 100% { height: 8px; opacity: 0.4; }
    50%       { height: 36px; opacity: 1; }
}

#sd-loading p { color: #ccc; font-size: 15px; margin: 0 0 4px; }
#sd-loading small { color: #666; font-size: 12px; }

/* Result */
#sd-result {
    margin-top: 20px;
    background: #222;
    border: 1px solid #2a2a2a;
    border-radius: 12px;
    overflow: hidden;
    animation: sd-up 0.3s ease;
}

@keyframes sd-up {
    from { opacity: 0; transform: translateY(10px); }
    to   { opacity: 1; transform: translateY(0); }
}

.sd-track {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px;
    border-bottom: 1px solid #2a2a2a;
}

#sd-art {
    width: 70px;
    height: 70px;
    border-radius: 8px;
    object-fit: cover;
    background: #333;
    flex-shrink: 0;
}

.sd-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.sd-info strong {
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: block;
}

.sd-info span {
    color: #aaa;
    font-size: 13px;
    display: block;
}

.sd-info small {
    color: #666;
    font-size: 12px;
    display: block;
}

#sd-badge {
    background: rgba(29,185,84,0.15);
    color: #1DB954;
    border: 1px solid rgba(29,185,84,0.25);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: 50px;
    flex-shrink: 0;
}

.sd-btns {
    padding: 16px 20px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: center;
}

.sd-btn-green {
    background: #1DB954;
    color: #000 !important;
    font-size: 14px;
    font-weight: 700;
    padding: 12px 24px;
    border-radius: 50px;
    text-decoration: none !important;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s;
    border: none;
    cursor: pointer;
}

.sd-btn-green:hover {
    background: #1ed760 !important;
    transform: scale(1.03);
    color: #000 !important;
}

.sd-btn-outline {
    background: none;
    color: #aaa !important;
    font-size: 13px;
    font-weight: 600;
    padding: 10px 18px;
    border-radius: 50px;
    border: 1px solid #333;
    text-decoration: none !important;
    display: inline-flex;
    align-items: center;
    cursor: pointer;
    transition: all 0.2s;
    font-family: inherit;
}

.sd-btn-outline:hover {
    color: #fff !important;
    border-color: #555;
    background: #2a2a2a;
}

@media (max-width: 600px) {
    #spotidown-wrap { padding: 20px 16px; }
    .sd-input-row { flex-direction: column; padding: 10px; }
    #sd-btn { width: 100%; justify-content: center; }
    .sd-btns { flex-direction: column; }
    .sd-btn-green, .sd-btn-outline { width: 100%; justify-content: center; }
}
