.sp-doc-hub-section {
    margin-bottom: 32px;
    border: 1px solid #dcdcdc;
    padding: 20px;
    background: #ffffff;
}

.sp-doc-hub-header {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 16px;
}

.sp-doc-hub-title-row {
    background: #1f1f1f;
    padding: 10px 12px;
    border-radius: 4px;
}

.sp-doc-hub-title {
    margin: 0;
    font-size: 20px;
}

.sp-doc-hub-description {
    margin: 0;
    color: #555555;
}

.sp-doc-hub-intro {
    font-size: 0.9em;
    color: #666666;
    margin-bottom: 36px;
}

.sp-doc-hub-intro p {
    margin: 0 0 8px 0;
}

.sp-doc-hub-intro p:last-child {
    margin-bottom: 0;
}

.sp-doc-hub-search input {
    max-width: 280px;
    width: 100%;
}

.sp-doc-hub-controls {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
}

.sp-doc-hub-status-filter .button {
    margin-right: 6px;
}

.sp-doc-hub-status-btn.is-active {
    background: #2271b1;
    border-color: #2271b1;
    color: #ffffff;
}

.sp-doc-hub-download-all.is-loading {
    opacity: 0.7;
    pointer-events: none;
}

.sp-doc-hub-toggle {
    font-size: 13px;
    color: #444444;
}

.sp-doc-hub-hide-desc .sp-doc-hub-col-desc {
    display: none;
}

.sp-doc-hub-hide-updated .sp-doc-hub-col-updated {
    display: none;
}

.sp-doc-hub-recent td {
    background: #f5fbff;
}

.sp-doc-hub-recent-badge {
    display: inline-block;
    padding: 2px 6px;
    border-radius: 10px;
    font-size: 11px;
    background: #e7f1ff;
    color: #084298;
}

.sp-doc-hub-table-wrap {
    overflow-x: auto;
}

.sp-doc-hub-table-wrap table {
    width: 100%;
    border-collapse: collapse;
}

.sp-doc-hub-table-wrap th,
.sp-doc-hub-table-wrap td {
    border: 1px solid #e4e4e4;
    padding: 8px 10px;
}

.sp-doc-hub-table-wrap th {
    background: #f7f7f7;
    text-align: left;
    cursor: pointer;
}

.sp-doc-hub-loading,
.sp-doc-hub-empty {
    text-align: center;
    color: #666666;
}

.sp-doc-hub-pagination {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 12px;
}

.sp-doc-hub-preview {
    border: 1px solid #dcdcdc;
    padding: 20px;
}

.sp-doc-hub-preview-media.is-resizable {
    resize: vertical;
    overflow: auto;
    min-height: 520px;
    height: 70vh;
}

.sp-doc-hub-preview-embed {
    width: 100%;
    min-height: 480px;
    border: 0;
}

.sp-doc-hub-preview-media.is-resizable .sp-doc-hub-preview-embed {
    height: 100%;
    min-height: 100%;
}

.sp-doc-hub-video {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
}

.sp-doc-hub-video .sp-doc-hub-preview-embed {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.sp-doc-hub-video .sp-doc-hub-youtube-player {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.sp-doc-hub-preview-image {
    max-width: 100%;
    height: auto;
}

.sp-doc-hub-gated {
    padding: 16px;
    border: 1px solid #f0c36d;
    background: #fff8e5;
    color: #614c02;
    font-size: 14px;
}

@media (max-width: 768px) {
    .sp-doc-hub-preview-media.is-resizable {
        min-height: 360px;
        height: 70vh;
    }

    .sp-doc-hub-preview-embed {
        min-height: 320px;
    }
}
