:host {
    padding: 20px;
    display: block;
    box-sizing: border-box;
}

.media-finder-wrapper h1 {
    font-size: 2em;
    font-weight: bold;
}
.media-finder-wrapper h3 {
    font-size: 1.2em;
    font-weight: bold;
}

.search-box {
    margin-bottom: 15px;
}

.search-form {
    margin-top: 15px;
}

.search-type-group {
    display: flex;
    gap: 20px;
    margin-bottom: 15px;
}

.radio-label {
    display: flex;
    align-items: center;
    gap: 5px;
    cursor: pointer;
    font-weight: 600;
}

.radio-label input[type="radio"] {
    cursor: pointer;
}

.search-input-group {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
    align-items: center;
}

.search-input-group input[type="text"],
.search-input-group input[type="number"] {
    padding: 8px 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 14px;
    min-width: 200px;
}

.search-input-group label {
    display: flex;
    align-items: center;
    gap: 5px;
    font-weight: 600;
}

.results-section {
    margin-top: 20px;
    border-top: 1px solid #ccc;
    padding-top: 15px;
}

.results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.result-count {
    font-size: 0.8em;
    font-weight: normal;
    color: #666;
}

.table-wrapper {
    overflow-x: auto;
}

.results-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
}

.results-table th,
.results-table td {
    padding: 10px 15px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.results-table th {
    background: #f5f5f5;
    font-weight: 700;
    border-bottom: 2px solid #ccc;
}

.results-table th.sortable {
    cursor: pointer;
    user-select: none;
}
.results-table th.sortable:hover {
    background: #eaeaea;
}
.results-table th.sorted {
    background: #e8e8e8;
}
.sort-arrow {
    font-size: 0.75em;
    color: #555;
}

.results-table tr:hover {
    background: #f9f9f9;
}

.results-table a {
    color: #1b264f;
    text-decoration: none;
    font-weight: 600;
}
.results-table a:hover {
    text-decoration: underline;
}

.pagination-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    padding: 15px 0;
    border-top: 1px solid #eee;
    margin-top: 5px;
}

.page-btn {
    padding: 6px 14px;
    border: 1px solid #ccc;
    border-radius: 4px;
    background: #fff;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
}
.page-btn:hover:not(:disabled) {
    background: #f0f0f0;
}
.page-btn:disabled {
    opacity: 0.4;
    cursor: default;
}

.page-info {
    font-size: 13px;
    color: #555;
}

.no-results {
    margin-top: 20px;
    padding: 20px;
    text-align: center;
    color: #999;
    border-top: 1px solid #ccc;
}

.loading-section {
    margin-top: 20px;
    padding: 20px;
    text-align: center;
    color: #666;
}

.loading-spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid currentColor;
    border-top: 2px solid transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    vertical-align: middle;
    margin-right: 5px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.copy {
    width: 100%;
    margin-top: 15px;
    text-align: center;
    font-size: 12px;
    color: #999;
    font-weight: 600;
}
.copy a {
    color: #999 !important;
    font-size: 12px !important;
    text-decoration: none !important;
    font-weight: 600 !important;
}