div#wmsc-search-results {
    margin-top: 30px;
}
form.wmsc-movie-search-form button{
    margin-top: 20px;
}
.wmsc-movie-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 16px;
    padding: 1rem 0;
}

.wmsc-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    transition: border-color 0.15s ease, transform 0.15s ease;
}
.wmsc-card:hover {
    border-color: #9ca3af;
    transform: translateY(-2px);
}
.wmsc-poster-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 2 / 3;
    background: #f3f4f6;
    overflow: hidden;
}
.wmsc-poster {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.wmsc-type-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    background: rgba(0, 0, 0, 0.55);
    color: #fff;
    font-size: 11px;
    font-weight: 500;
    padding: 2px 8px;
    border-radius: 20px;
    text-transform: capitalize;
    letter-spacing: 0.02em;
}
.wmsc-card-body {
    padding: 10px 12px 12px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex: 1;
}

.wmsc-movie-title {
    font-size: 13px;
    font-weight: 600;
    color: #111827;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.wmsc-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
}

.wmsc-year {
    font-size: 12px;
    color: #6b7280;
}

.wmsc-rating {
    font-size: 12px;
    color: #6b7280;
    display: flex;
    align-items: center;
    gap: 3px;
}
.wmsc-rating::before {
    content: '★';
    color: #e6a817;
    font-size: 11px;
}
.wmsc-no-results {
    text-align: center;
    color: #6b7280;
    font-size: 14px;
    padding: 2rem 0;
}
@media (max-width: 480px) {
    .wmsc-movie-list {
        grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
        gap: 12px;
    }
}


/* Modal design */
.wmsc-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.wmsc-modal {
    background: #fff;
    border-radius: 12px;
    width: 100%;
    max-width: 720px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    padding: 2rem;
}

.wmsc-modal-close {
    position: absolute;
    top: 12px;
    right: 16px;
    background: none;
    border: none;
    font-size: 18px;
    cursor: pointer;
    color: #6b7280;
    line-height: 1;
}

.wmsc-modal-close:hover {
    color: #111827;
}

.wmsc-modal-loading {
    text-align: center;
    padding: 3rem 0;
    color: #6b7280;
    font-size: 14px;
}