/* Musikwünsche Frontend */

.mw-form-wrap { max-width: 600px; margin: 0 auto; }
.mw-form-inner {
    background: #1b3a3a;
    border-radius: 12px;
    padding: 36px 36px 32px;
    box-shadow: 0 8px 40px rgba(0,0,0,.25);
    color: #f0e8d4;
}
.mw-form-title {
    font-size: 26px;
    color: #c9a94d;
    margin: 0 0 8px;
    text-align: center;
    letter-spacing: .5px;
}
.mw-form-intro {
    text-align: center;
    color: #a8c0b0;
    font-size: 14px;
    margin: 0 0 24px;
    line-height: 1.6;
}

.mw-field { margin-bottom: 16px; }
.mw-field label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: #c9a94d;
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: .6px;
}
.mw-field input[type=text], .mw-field input[type=url], .mw-field input[type=number], .mw-field textarea {
    width: 100%;
    background: rgba(255,255,255,.06);
    border: 1px solid rgba(201,169,77,.3);
    border-radius: 6px;
    padding: 10px 14px;
    color: #f0e8d4;
    font-size: 15px;
    font-family: inherit;
    box-sizing: border-box;
}
.mw-field input:focus, .mw-field textarea:focus {
    outline: none;
    border-color: #c9a94d;
}
.mw-field input::placeholder { color: rgba(240,232,212,.35); }

.mw-field-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.mw-divider {
    text-align: center;
    color: #a8c0b0;
    margin: 16px 0 12px;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: .7;
}

/* Search results */
.mw-search-field { position: relative; }
#mw-search-results {
    margin-top: 8px;
    max-height: 320px;
    overflow-y: auto;
}
.mw-search-result {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px;
    background: rgba(255,255,255,.04);
    border: 1px solid transparent;
    border-radius: 6px;
    margin-bottom: 6px;
    cursor: pointer;
    transition: background .15s, border-color .15s;
}
.mw-search-result:hover {
    background: rgba(255,255,255,.08);
}
.mw-search-result.is-selected {
    border-color: #c9a94d;
    background: rgba(201,169,77,.1);
}
.mw-search-result img {
    width: 44px; height: 44px;
    border-radius: 4px;
    object-fit: cover;
    flex-shrink: 0;
}
.mw-cover-placeholder {
    width: 44px; height: 44px;
    border-radius: 4px;
    background: rgba(201,169,77,.2);
    display: flex; align-items: center; justify-content: center;
    color: #c9a94d;
    font-size: 18px;
    flex-shrink: 0;
}
.mw-result-meta { flex: 1; min-width: 0; }
.mw-result-meta strong {
    display: block;
    color: #f0e8d4;
    font-size: 14px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.mw-result-meta span {
    display: block;
    color: #a8c0b0;
    font-size: 12px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.mw-result-duration {
    color: #a8c0b0;
    font-size: 12px;
    flex-shrink: 0;
}

.mw-submit {
    width: 100%;
    background: linear-gradient(135deg, #c9a94d, #e0c06b);
    color: #1b2e2e;
    border: none;
    border-radius: 8px;
    padding: 14px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    margin-top: 12px;
    letter-spacing: .3px;
}
.mw-submit:hover { opacity: .9; }
.mw-submit:disabled { opacity: .6; cursor: not-allowed; }

.mw-notice {
    padding: 11px 14px;
    border-radius: 6px;
    font-size: 14px;
    margin-bottom: 12px;
}
.mw-notice--error {
    background: rgba(214,54,56,.15);
    border: 1px solid rgba(214,54,56,.4);
    color: #ff9b9b;
}

.mw-success {
    text-align: center;
    padding: 16px 0;
}
.mw-success-icon { font-size: 50px; margin-bottom: 10px; }
.mw-success h3 {
    font-size: 22px;
    color: #c9a94d;
    margin: 0 0 8px;
}
.mw-success p {
    color: #a8c0b0;
    font-size: 15px;
    line-height: 1.6;
    margin: 0 0 20px;
}

@media (max-width: 480px) {
    .mw-form-inner { padding: 24px 18px; }
    .mw-field-row { grid-template-columns: 1fr; }
}

/* Service badges in search results */
.mw-result-badges {
    margin-top: 4px;
    display: flex;
    gap: 4px;
}
.mw-badge-svc {
    display: inline-block;
    font-size: 9px;
    font-weight: 600;
    padding: 1px 6px;
    border-radius: 8px;
    text-transform: uppercase;
    letter-spacing: .5px;
}
.mw-badge-spotify { background: #1DB954; color: #fff; }
.mw-badge-apple   { background: #fa243c; color: #fff; }
