#itunes-artwork-finder {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    max-width: 1100px;
    margin: 0 auto;
}

.iaf-form-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    background: #f5f5f7;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 14px 16px;
}

.iaf-form-row select,
.iaf-form-row input[type="text"] {
    height: 38px;
    padding: 0 10px;
    border: 1px solid #ccc;
    border-radius: 6px;
    background: #fff;
    font-size: 14px;
    color: #333;
    box-sizing: border-box;
}

.iaf-form-row select:focus,
.iaf-form-row input[type="text"]:focus {
    outline: none;
    border-color: #0071e3;
    box-shadow: 0 0 0 2px rgba(0,113,227,0.2);
}

.iaf-form-row input[type="text"] {
    
    min-width: 0;  /* was 120px — this is what causes the overflow on mobile */
}

.iaf-form-row button[type="submit"] {
    height: 38px;
    padding: 0 18px;
    background: #0071e3;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.15s ease;
	margin-left:auto;
	margin-right:0px;
}

.iaf-form-row button[type="submit"]:hover {
    background: #0062c4;
}

#itunes-status {
    margin: 16px 0 8px;
    font-size: 14px;
    color: #555;
    min-height: 20px;
}

#itunes-status.iaf-error {
    color: #c0392b;
    background: #fdf0ef;
    border: 1px solid #f5c6c2;
    border-radius: 6px;
    padding: 10px 14px;
}

#itunes-results {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 8px;
    max-width: 100%;
    box-sizing: border-box;
}

.itunes-result {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: box-shadow 0.15s ease;
}

.itunes-result:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.10);
}

.itunes-result img {
    width: 100%;
    height: auto;
    display: block;
}

.itunes-result-info {
    padding: 10px 12px 12px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex: 1;
}

.itunes-result-title {
    font-size: 13px;
    font-weight: 600;
    color: #1d1d1f;
    margin: 0;
    line-height: 1.3;
}

.itunes-result-links {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.itunes-result-links a {
    font-size: 12px;
    color: #0071e3;
    text-decoration: none;
    border: 1px solid #0071e3;
    border-radius: 4px;
    padding: 2px 8px;
    white-space: nowrap;
}

.itunes-result-links a:hover {
    background: #0071e3;
    color: #fff;
}

@media (max-width: 600px) {
    #itunes-artwork-finder {
        overflow: hidden;
    }
    .iaf-form-row {
        flex-direction: column;
        align-items: stretch;
    }
    .iaf-form-row select,
    .iaf-form-row input[type="text"],
    .iaf-form-row button {
        width: 100%;
        min-width: 0;
    }
    #itunes-results {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    }
}