*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    min-height: 100vh;
    flex-direction: column;
    line-height: 1.5;
    background: url('background.png') center / cover no-repeat fixed #f4f5f7;
}

a {
    color: inherit;
    text-decoration: none;
}

.site-header {
    display: flex;
    align-items: center;
    padding: 0.85rem 1.5rem;
    background: rgba(255, 255, 255, 0.9);
    border-bottom: 1px solid #e5e7eb;
}

.site-header__brand {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    font-weight: 700;
    font-size: 1.15rem;
}

.site-header__logo {
    width: 24px;
    height: 24px;
    object-fit: contain;
}

.page-center {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 1.5rem 1rem;
}

.search-card {
    width: min(500px, 100%);
    padding: 2rem 1.75rem;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    text-align: center;
}

.search-card__heading {
    font-size: 1.75rem;
    margin-bottom: 0.25rem;
}

.search-card__sub {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.search-card__note {
    color: #777;
    font-size: 0.85rem;
    line-height: 1.4;
    margin-bottom: 1.25rem;
}

.search-form {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.search-form__input {
    width: 100%;
    padding: 0.75rem 0.9rem;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 0.95rem;
    outline: none;
}

.search-form__input:focus {
    border-color: #0082fc;
}

.btn {
    padding: 0.75rem 1.25rem;
    border: none;
    border-radius: 6px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.btn--primary {
    width: 100%;
    background: #0082fc;
    color: #fff;
}

.btn--primary:hover:not(:disabled) {
    background: #0070db;
}

.btn--ghost {
    width: 100%;
    background: #f1f3f5;
    color: #333;
    margin-top: 0.5rem;
}

.overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    z-index: 50;
}

.modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 51;
    width: min(340px, 92vw);
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
    overflow: hidden;
}

.loading-box {
    padding: 2.25rem 1.5rem;
    text-align: center;
}

.loading-spinner {
    width: 36px;
    height: 36px;
    margin: 0 auto 1rem;
    border: 3px solid #e5e7eb;
    border-top-color: #0082fc;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.loading-status {
    font-size: 0.88rem;
    color: #666;
    margin-top: 0.35rem;
}

.modal__head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.85rem 1.15rem;
    border-bottom: 1px solid #eee;
    font-size: 0.95rem;
    font-weight: 600;
}

.modal__close {
    background: none;
    border: none;
    font-size: 1.3rem;
    line-height: 1;
    color: #888;
    cursor: pointer;
}

.modal__close:hover {
    color: #111;
}

.result-card {
    padding: 1.25rem;
    text-align: center;
}

.result-card__cover {
    width: 135px;
    height: 135px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 0.85rem;
}

.result-card__title {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 0.15rem;
}

.result-card__artist {
    font-size: 0.95rem;
    color: #444;
    margin-bottom: 0.15rem;
}

.result-card__album {
    font-size: 0.8rem;
    font-style: italic;
    color: #888;
}

.result-card__links {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1rem;
}

.stream-btn {
    padding: 0.45rem 0.85rem;
    border-radius: 4px;
    color: #fff;
    font-size: 0.82rem;
    font-weight: 600;
}

.stream-btn--spotify {
    background: #1db954;
}

.stream-btn--apple {
    background: #fc3c44;
}

.error-card {
    padding: 1.5rem 1.25rem;
    text-align: center;
}

.error-card__msg {
    font-size: 0.95rem;
    color: #d32f2f;
}

.hidden {
    display: none !important;
}