.hdsv-fair-ranking-wrapper {
    padding: 0;
    background: transparent;
}

.hdsv-fr-filter-panel {
    background: #e7ecf9;
    border: 1px solid #d3daf0;
    border-radius: 12px;
    padding: 16px;
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
    align-items: flex-end;
}

.hdsv-fr-select {
    flex: 1;
    min-width: 220px;
    display: flex;
    flex-direction: column;
    font-weight: 600;
    color: #505a6d;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 0.03em;
}

.hdsv-fr-select select {
    margin-top: 8px;
    padding: 10px 14px;
    border-radius: 8px;
    border: 1px solid #c4cbd6;
    font-size: 1rem;
    background: #fff;
    color: #1f2430;
}

.hdsv-fr-search input {
    font-size: 1rem;
    margin-top: 8px;
    padding: 10px 14px;
    border-radius: 8px;
    border: 1px solid #c4cbd6;
    background: #fff;
    color: #1f2430;
}

.hdsv-fr-summary {
    background: #fff;
    border-radius: 8px;
    border: 1px solid #e2e7f1;
    margin: 12px 0;
    padding: 8px 12px;
}

.hdsv-fr-summary-text {
    color: #343a46;
    margin-bottom: 4px;
    font-size: 0.85rem;
    line-height: 1.4;
}

.hdsv-fr-summary-text p {
    margin: 0;
}

.hdsv-fair-ranking-wrapper .hdsv-fr-summary-stats {
    list-style: none !important;
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    padding: 0 !important;
    margin: 0 !important;
    line-height: 1.4;
}

.hdsv-fair-ranking-wrapper .hdsv-fr-summary-stats li {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    padding: 2px 0;
    list-style: none !important;
}

.hdsv-fr-summary-stats span {
    font-size: 0.72rem;
    color: #6c7489;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.hdsv-fr-summary-stats strong {
    font-size: 0.95rem;
    color: #1c1f2a;
}

.hdsv-fr-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(21, 33, 74, 0.08);
}

.hdsv-fr-table thead th {
    background: #e40417;
    color: #fff;
    padding: 12px;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 0.05em;
}

.hdsv-fr-table tbody td {
    padding: 12px 14px;
    border-bottom: 1px solid #e9eef7;
}

.entry-content .hdsv-fr-table td,
.entry-content .hdsv-fr-table th {
    padding: 12px 14px;
    text-align: left;
}

.hdsv-fr-table tbody tr:nth-child(even) {
    background: #fdfefe;
}

.hdsv-fr-table tbody tr:hover {
    background: #f1f5ff;
    cursor: pointer;
}

.hdsv-fr-views {
    margin-top: 16px;
}

.hdsv-fr-list-view[hidden],
.hdsv-fr-detail-view[hidden] {
    display: none;
}

.hdsv-fr-detail-view {
    margin-top: 24px;
}

.hdsv-fr-back-button {
    border: 1px solid #cbd2e0;
    background: #fff;
    border-radius: 999px;
    padding: 8px 18px;
    font-weight: 600;
    color: #1c1f2a;
    cursor: pointer;
    margin-bottom: 16px;
    transition: background 0.2s ease;
}

.hdsv-fr-back-button:hover {
    background: #f5f7fc;
}

.hdsv-fr-detail-card {
    background: #fff;
    border-radius: 16px;
    padding: 24px;
    border: 1px solid #e2e7f1;
    box-shadow: 0 10px 30px rgba(21, 33, 74, 0.07);
}

.hdsv-fr-detail-header h2 {
    margin: 0;
    font-size: 1.6rem;
    color: #1f2430;
}

.hdsv-fr-detail-header p {
    margin: 6px 0 20px;
    color: #6c7489;
    font-size: 0.95rem;
}

.hdsv-fr-detail-meta {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.hdsv-fr-detail-meta-item {
    background: #f8f9fe;
    border-radius: 10px;
    padding: 12px 16px;
    border: 1px solid #e4e9f5;
}

.hdsv-fr-detail-meta-item span {
    display: block;
    font-size: 0.75rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #8891a8;
    margin-bottom: 4px;
}

.hdsv-fr-detail-meta-item strong {
    display: block;
    font-size: 1rem;
    color: #1f2430;
}

.hdsv-fr-detail-meta-value {
    font-size: 0.95rem;
    color: #1f2430;
    line-height: 1.4;
}

.hdsv-fr-detail-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin-top: 12px;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #e9eef7;
}

.hdsv-fr-detail-table th {
    text-align: left;
    background: #f2f4fb;
    padding: 12px;
    font-size: 0.85rem;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    color: #58607a;
}

.hdsv-fr-detail-table td {
    padding: 4px 4px !important;
    border-bottom: 1px solid #eef2fb;
}

.hdsv-fr-detail-richtext {
    margin-bottom: 24px;
}

.hdsv-fr-detail-richtext p {
    margin: 0 0 12px;
}

.hdsv-fr-link-button {
    border: none;
    background: transparent;
    color: #e40417;
    font-weight: 600;
    cursor: pointer;
    padding: 0;
    text-decoration: underline;
}

.hdsv-fr-link-button:focus-visible {
    outline: 2px solid #e40417;
    outline-offset: 2px;
}

.hdsv-fr-pagination {
    margin-top: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.hdsv-fr-pagination button {
    border: 1px solid #cbd2e0;
    background: #fff;
    border-radius: 999px;
    padding: 8px 18px;
    font-weight: 600;
    color: #1c1f2a;
    cursor: pointer;
}

.hdsv-fr-pagination button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

@media (max-width: 640px) {
    .hdsv-fr-filter-panel {
        flex-direction: column;
    }

    .hdsv-fair-ranking-wrapper .hdsv-fr-summary-stats {
        flex-direction: column;
        gap: 8px;
    }

    .hdsv-fr-table thead {
        font-size: 0.85rem;
    }

    .hdsv-fr-detail-card {
        padding: 16px;
    }

    .hdsv-fr-detail-meta {
        grid-template-columns: 1fr;
    }
}
