.ppbbs-wrap {
    width: min(900px, calc(100% - 30px));
    margin: 28px auto 34px;
}

.ppbbs-form {
    display: flex;
    align-items: stretch;
    overflow: hidden;
    background: #fff;
    border: 2px solid #8d4cab;
    border-radius: 8px;
    box-shadow: 0 4px 14px rgba(0,0,0,.08);
}

.ppbbs-input {
    flex: 1;
    min-width: 0;
    padding: 15px 18px;
    border: 0 !important;
    outline: 0;
    background: #fff;
    color: #333;
    font-size: 16px;
    line-height: 1.4;
}

.ppbbs-input:focus {
    box-shadow: inset 0 0 0 2px rgba(141,76,171,.15);
}

.ppbbs-button {
    border: 0;
    padding: 0 28px;
    background: #8d4cab;
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
}

.ppbbs-button:hover,
.ppbbs-button:focus {
    background: #713b8b;
}

.ppbbs-status {
    min-height: 24px;
    margin: 12px 2px 0;
    font-size: 14px;
    color: #555;
}

.ppbbs-results {
    margin-top: 14px;
}

.ppbbs-results-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
}

.ppbbs-result-card {
    overflow: hidden;
    border: 1px solid #e3e3e3;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 3px 10px rgba(0,0,0,.06);
}

.ppbbs-result-link {
    display: block;
    height: 100%;
    color: inherit;
    text-decoration: none !important;
}

.ppbbs-result-image {
    aspect-ratio: 2 / 3;
    overflow: hidden;
    background: #f3f3f3;
}

.ppbbs-result-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ppbbs-result-content {
    padding: 14px 15px 16px;
}

.ppbbs-result-title {
    margin: 0 0 7px;
    color: #44215f;
    font-size: 18px;
    line-height: 1.3;
}

.ppbbs-result-date {
    color: #777;
    font-size: 13px;
}

.ppbbs-loading {
    opacity: .65;
    pointer-events: none;
}

@media (max-width: 800px) {
    .ppbbs-results-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 600px) {
    .ppbbs-wrap {
        width: min(100% - 24px, 900px);
    }

    .ppbbs-form {
        flex-direction: column;
    }

    .ppbbs-button {
        width: 100%;
        padding: 13px 18px;
    }

    .ppbbs-results-grid {
        grid-template-columns: 1fr;
    }
}
