/* ==========================================================================
   ITHLUX Training Hub — Scoped Styles
   Colors: #A08052 (gold), #EECEA6 (light gold), #878787 (gray), #fff
   ALL selectors prefixed with .ithlux-hub-*
   ========================================================================== */

/* ---- Video Grid Wrapper ---- */
.ithlux-hub-grid-wrapper {
    box-sizing: border-box;
    max-width: 100%;
}

/* ---- Search Bar ---- */
.ithlux-hub-search-bar {
    margin-bottom: 24px;
}

.ithlux-hub-search-bar .ithlux-hub-search-input {
    width: 100%;
    max-width: 500px;
    padding: 12px 18px;
    border: 1px solid #e5e0d9;
    border-radius: 8px;
    font-size: 14px;
    box-sizing: border-box;
    display: block;
    margin: 0 auto;
    background: #fff;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.ithlux-hub-search-bar .ithlux-hub-search-input:focus {
    outline: none;
    border-color: #A08052;
    box-shadow: 0 0 0 3px rgba(160, 128, 82, 0.12);
}

/* ---- Filter Bar ---- */
.ithlux-hub-filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    margin-bottom: 0;
}

.ithlux-hub-filter-btn {
    padding: 9px 20px;
    border: 1px solid #e5e0d9;
    border-radius: 8px;
    background: #fff;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    color: #878787;
    transition: all 0.2s ease;
}

.ithlux-hub-filter-btn:hover {
    background: #EECEA6;
    color: #A08052;
    border-color: #EECEA6;
}

.ithlux-hub-filter-btn.is-active {
    background: #A08052;
    color: #fff;
    border-color: #A08052;
}

/* ---- Controls Bar ---- */
.ithlux-hub-controls-bar {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
}

.ithlux-hub-controls-left {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: center;
}

.ithlux-hub-index-link-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 9px 20px;
    border: 1px solid #e5e0d9;
    border-radius: 8px;
    background: #fff;
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    color: #878787;
    transition: all 0.2s ease;
    white-space: nowrap;
    cursor: pointer;
}
.ithlux-hub-index-link-btn:hover {
    background: #EECEA6;
    color: #A08052;
    border-color: #EECEA6;
}

.ithlux-hub-sort-filter {
    display: flex;
    gap: 8px;
    align-items: center;
}

.ithlux-hub-select {
    padding: 10px 36px 10px 14px;
    border: 1px solid #c5bfb3;
    border-radius: 8px;
    font-size: 14px;
    color: #2d2d2d;
    background: #fff;
    cursor: pointer;
    outline: none;
    min-width: 220px;
    appearance: auto;
}

.ithlux-hub-select:focus {
    border-color: #A08052;
}

/* ---- Pagination ---- */
.ithlux-hub-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-top: 24px;
    padding-top: 16px;
    border-top: 1px solid #ede8e0;
}

.ithlux-hub-page-btn {
    padding: 8px 16px;
    border: 1px solid #e5e0d9;
    border-radius: 8px;
    background: #fff;
    color: #A08052;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s;
}

.ithlux-hub-page-btn:hover:not(:disabled) {
    background: #A08052;
    color: #fff;
    border-color: #A08052;
}

.ithlux-hub-page-btn:disabled {
    opacity: 0.4;
    cursor: default;
}

.ithlux-hub-page-info {
    font-size: 13px;
    color: #878787;
}

/* ---- Video Grid ---- */
.ithlux-hub-video-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    justify-items: center;
}

@media (max-width: 900px) {
    .ithlux-hub-video-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
    .ithlux-hub-video-grid { grid-template-columns: 1fr; }
}

/* ---- Video Card ---- */
.ithlux-hub-video-card {
    border: 1px solid #ede8e0;
    border-radius: 10px;
    overflow: hidden;
    background: #fff;
    transition: box-shadow 0.25s ease, border-color 0.25s ease;
    min-width: 0;
    max-width: 420px;
    justify-self: center;
    width: 100%;
}

.ithlux-hub-video-card:hover {
    box-shadow: 0 6px 20px rgba(160, 128, 82, 0.12);
    border-color: #d5c9b8;
}

/* ---- Thumb Wrapper ---- */
.ithlux-hub-video-thumb-wrapper {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%;
    background-color: #1c1c1c;
    background-size: cover;
    background-position: center;
    overflow: hidden;
    cursor: pointer;
}

.ithlux-hub-video-thumb-wrapper:hover::after {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
    background: rgba(160, 128, 82, 0.15);
    z-index: 0;
    transition: background 0.2s ease;
}

.ithlux-hub-play-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.20);
    transition: background 0.2s ease;
    z-index: 1;
    pointer-events: none;
}

.ithlux-hub-video-thumb-wrapper:hover .ithlux-hub-play-overlay {
    background: rgba(160, 128, 82, 0.35);
}

.ithlux-hub-play-overlay svg {
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.4));
    transition: transform 0.2s ease;
}

.ithlux-hub-video-thumb-wrapper:hover .ithlux-hub-play-overlay svg {
    transform: scale(1.1);
}

/* ---- Card Thumb Link (no video) ---- */
.ithlux-hub-card-thumb-link {
    display: block;
    aspect-ratio: 16 / 9;
    background-size: cover;
    background-position: center;
    background-color: #1c1c1c;
}

/* ---- Card Body ---- */
.ithlux-hub-card-body {
    padding: 14px 16px;
}

.ithlux-hub-card-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 8px;
}

.ithlux-hub-card-title {
    margin: 0;
    font-size: 14px;
    line-height: 1.3;
    flex: 1;
    min-width: 0;
    color: #2d2d2d;
    font-weight: 600;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ithlux-hub-card-excerpt {
    margin: 6px 0 0 0;
    font-size: 12px;
    color: #878787;
    line-height: 1.5;
}

/* ---- Card Progress ---- */
.ithlux-hub-card-progress {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid #f5f0e8;
}

.ithlux-hub-progress-label {
    display: block;
    font-size: 11px;
    font-weight: 600;
    color: #A08052;
    margin-bottom: 5px;
}

.ithlux-hub-progress-bar {
    width: 100%;
    height: 4px;
    background: #f0ebe0;
    border-radius: 2px;
    overflow: hidden;
}

.ithlux-hub-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #A08052, #c4a87a);
    border-radius: 2px;
    transition: width 0.4s ease;
}

/* ---- Share Button ---- */
.ithlux-hub-share-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 30px;
    height: 30px;
    background: #EECEA6;
    color: #A08052;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.ithlux-hub-share-btn:hover {
    background: #A08052;
    color: #fff;
}

.ithlux-hub-share-btn svg {
    flex-shrink: 0;
}

/* ---- No Results ---- */
.ithlux-hub-no-results {
    text-align: center;
    color: #878787;
    padding: 48px 0;
    font-size: 14px;
}

/* ---- Modal ---- */
.ithlux-hub-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 99999;
}

.ithlux-hub-modal-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(12, 12, 12, 0.92);
}

.ithlux-hub-modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    max-width: 900px;
    z-index: 1;
}

.ithlux-hub-modal-content > div,
.ithlux-hub-modal-content iframe {
    width: 100% !important;
    aspect-ratio: 16 / 9;
    height: auto !important;
    border: none;
    border-radius: 6px;
    display: block;
}

.ithlux-hub-modal-close {
    position: absolute;
    top: -44px;
    right: -4px;
    background: rgba(160, 128, 82, 0.20);
    border: none;
    color: #fff;
    font-size: 32px;
    cursor: pointer;
    padding: 0;
    line-height: 1;
    z-index: 2;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.ithlux-hub-modal-close:hover {
    background: rgba(160, 128, 82, 0.40);
}

/* ---- KPI Wrapper ---- */
.ithlux-hub-kpi-wrapper {
    box-sizing: border-box;
    max-width: 100%;
}

.ithlux-hub-kpi-title {
    margin: 0 0 20px 0;
    font-size: 20px;
    color: #2d2d2d;
    font-weight: 600;
    text-align: center;
}

/* ---- KPI Grid ---- */
.ithlux-hub-kpi-grid {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

/* ---- KPI Card ---- */
.ithlux-hub-kpi-card {
    background: #fff;
    border: 1px solid #ede8e0;
    border-radius: 10px;
    padding: 14px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: box-shadow 0.2s;
    width: 180px;
    flex-shrink: 0;
}

.ithlux-hub-kpi-card:hover {
    box-shadow: 0 4px 16px rgba(160, 128, 82, 0.08);
}

.ithlux-hub-kpi-number {
    font-size: 24px;
    font-weight: 700;
    color: #A08052;
    margin-bottom: 2px;
}

.ithlux-hub-kpi-label {
    font-size: 11px;
    color: #878787;
    margin-bottom: 8px;
}

/* ---- KPI Progress Bar ---- */
.ithlux-hub-kpi-bar {
    width: 100%;
    height: 4px;
    background: #f0ebe0;
    border-radius: 2px;
    overflow: hidden;
    margin-bottom: 6px;
}

.ithlux-hub-kpi-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #A08052, #c4a87a);
    border-radius: 3px;
    transition: width 0.4s ease;
    width: 0;
}

.ithlux-hub-kpi-pct {
    font-size: 12px;
    font-weight: 600;
    color: #A08052;
}

/* ---- KPI Login Message ---- */
.ithlux-hub-kpi-login {
    padding: 20px;
    color: #878787;
    font-size: 14px;
}

/* ---- Top 10 Widget ---- */
.ithlux-hub-top10-wrapper {
    box-sizing: border-box;
    max-width: 100%;
}

.ithlux-hub-top10-section {
    margin-bottom: 24px;
}

.ithlux-hub-top10-heading {
    margin: 0 0 10px 0;
    font-size: 15px;
    font-weight: 600;
    color: #2d2d2d;
}

.ithlux-hub-top10-list {
    display: flex;
    flex-direction: column;
    gap: 1px;
    background: #ede8e0;
    border: 1px solid #ede8e0;
    border-radius: 10px;
    overflow: hidden;
}

.ithlux-hub-top10-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    background: #fff;
}

.ithlux-hub-top10-rank {
    width: 26px;
    height: 26px;
    border-radius: 8px;
    background: #f5f0e8;
    color: #878787;
    font-size: 12px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.ithlux-hub-top10-row:first-child .ithlux-hub-top10-rank {
    background: #A08052;
    color: #fff;
}

.ithlux-hub-top10-row:nth-child(2) .ithlux-hub-top10-rank {
    background: #c4a87a;
    color: #fff;
}

.ithlux-hub-top10-row:nth-child(3) .ithlux-hub-top10-rank {
    background: #EECEA6;
    color: #A08052;
}

.ithlux-hub-top10-avatar {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    flex-shrink: 0;
    border: 2px solid #EECEA6;
}

.ithlux-hub-top10-name {
    flex: 1;
    font-size: 13px;
    color: #2d2d2d;
    font-weight: 500;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ithlux-hub-top10-metric {
    font-size: 12px;
    font-weight: 600;
    color: #A08052;
    flex-shrink: 0;
}

.ithlux-hub-top10-empty {
    padding: 24px;
    color: #878787;
    font-size: 13px;
    text-align: center;
}

/* ==========================================================================
   ITHLUX Training Hub — Indice Dinâmico (VideoIndex Widget)
   ========================================================================== */
.ithlux-hub-index-wrapper {
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
    font-family: inherit;
}

.ithlux-hub-index-login,
.ithlux-hub-index-empty {
    padding: 32px 20px;
    text-align: center;
    color: #878787;
    font-size: 14px;
    background: #fff;
    border: 1px solid #ede8e0;
    border-radius: 10px;
}

/* ---- Search ---- */
.ithlux-hub-index-search {
    position: relative;
    margin-bottom: 20px;
}
.ithlux-hub-index-search-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #878787;
    pointer-events: none;
    display: flex;
}
.ithlux-hub-index-search-input {
    width: 100%;
    max-width: 560px;
    margin: 0 auto;
    display: block;
    padding: 12px 18px 12px 42px;
    border: 1px solid #e5e0d9;
    border-radius: 8px;
    font-size: 14px;
    box-sizing: border-box;
    background: #fff;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.ithlux-hub-index-search-input:focus {
    outline: none;
    border-color: #A08052;
    box-shadow: 0 0 0 3px rgba(160, 128, 82, 0.12);
}

/* ---- Tree / Modules ---- */
.ithlux-hub-index-tree {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100%;
}

.ithlux-hub-index-module {
    width: 100%;
    box-sizing: border-box;
    border: 1px solid #e5e0d9;
    border-left: 4px solid #A08052;
    border-radius: 0 10px 10px 0;
    background: #fff;
    overflow: hidden;
    transition: border-color 0.2s;
}
.ithlux-hub-index-module.is-expanded {
    border-left-color: #6b4f2a;
}

.ithlux-hub-index-module-head {
    display: flex;
    align-items: center;
    position: relative;
    width: 100%;
    box-sizing: border-box;
    padding: 14px 20px;
    padding-right: 110px;
    margin: 0;
    background: #EECEA6;
    border: none;
    border-radius: 0;
    cursor: pointer;
    text-align: left;
    font: inherit;
    line-height: 1.4;
    color: #2d2d2d;
    transition: background 0.2s;
    -webkit-appearance: none;
    appearance: none;
}
.ithlux-hub-index-module-head:hover {
    background: #e6c494;
}
.ithlux-hub-index-head-left {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    flex: 1;
}
.ithlux-hub-index-caret {
    flex-shrink: 0;
    color: #A08052;
    display: flex;
    transition: transform 0.25s ease;
}
.ithlux-hub-index-module.is-collapsed .ithlux-hub-index-caret {
    transform: rotate(0deg);
}
.ithlux-hub-index-module.is-expanded .ithlux-hub-index-caret {
    transform: rotate(90deg);
}
.ithlux-hub-index-module-name {
    font-size: 15px;
    font-weight: 600;
    color: #2d2d2d;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.ithlux-hub-index-module-count {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    white-space: nowrap;
    font-size: 11px;
    font-weight: 700;
    color: #A08052;
    background: #fff;
    padding: 4px 12px;
    border-radius: 20px;
}

/* ---- Module body collapse ---- */
.ithlux-hub-index-module-body {
    border-top: 1px solid #f0ebe0;
    padding: 8px 0 12px 0;
    background: #fff;
}
.ithlux-hub-index-module.is-collapsed > .ithlux-hub-index-module-body {
    display: none;
}
/* Sub-modules get left indentation + lighter accent */
.ithlux-hub-index-module .ithlux-hub-index-module {
    margin: 6px 10px 6px 16px;
    border-color: #ede8e0;
    border-left-color: #c4a87a;
}
.ithlux-hub-index-module .ithlux-hub-index-module .ithlux-hub-index-module-head {
    padding: 11px 16px;
    background: #faf3e6;
}
.ithlux-hub-index-module .ithlux-hub-index-module .ithlux-hub-index-module-head:hover {
    background: #f5e8d2;
}
.ithlux-hub-index-module .ithlux-hub-index-module .ithlux-hub-index-module-name {
    font-size: 14px;
    font-weight: 600;
}
.ithlux-hub-index-module .ithlux-hub-index-module .ithlux-hub-index-module-count {
    background: #fff;
    color: #c4a87a;
    font-size: 10px;
    padding: 3px 10px;
}

/* ---- List items ---- */
.ithlux-hub-index-list {
    list-style: none;
    margin: 0;
    padding: 0;
}
.ithlux-hub-index-item {
    border-bottom: 1px solid #f5f0e8;
}
.ithlux-hub-index-item:last-child {
    border-bottom: none;
}
.ithlux-hub-index-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 18px;
    text-decoration: none;
    color: #2d2d2d;
    transition: background 0.18s ease, padding-left 0.18s ease;
    border-radius: 0;
}
.ithlux-hub-index-link:hover {
    background: #faf7f0;
    padding-left: 24px;
}

/* ---- Marker (status icon) ---- */
.ithlux-hub-index-marker {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
}
.ithlux-hub-index-marker-completed {
    background: #A08052;
    box-shadow: 0 0 0 3px rgba(160,128,82,0.15);
}
.ithlux-hub-index-marker-in-progress {
    background: #c4a87a;
    box-shadow: 0 0 0 3px rgba(196,168,122,0.15);
}
.ithlux-hub-index-marker-not-started {
    background: #e0dbd0;
    color: #fff;
}

/* ---- Item main ---- */
.ithlux-hub-index-item-main {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.ithlux-hub-index-item-title {
    font-size: 14px;
    font-weight: 500;
    color: #2d2d2d;
    line-height: 1.35;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.ithlux-hub-index-item-desc {
    font-size: 12px;
    color: #878787;
    line-height: 1.4;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* ---- Status badge ---- */
.ithlux-hub-index-item-status {
    flex-shrink: 0;
}
.ithlux-hub-index-badge {
    font-size: 11px;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 20px;
    white-space: nowrap;
    letter-spacing: 0.02em;
}
.ithlux-hub-index-badge-done {
    background: rgba(160, 128, 82, 0.12);
    color: #6b4f2a;
}
.ithlux-hub-index-badge-progress {
    background: rgba(196, 168, 122, 0.2);
    color: #8a6f3d;
}
.ithlux-hub-index-badge-todo {
    background: #f5f0e8;
    color: #878787;
}

/* ---- Arrow ---- */
.ithlux-hub-index-arrow {
    flex-shrink: 0;
    color: #c5bfb3;
    display: flex;
    transition: transform 0.18s ease, color 0.18s ease;
}
.ithlux-hub-index-link:hover .ithlux-hub-index-arrow {
    color: #A08052;
    transform: translateX(3px);
}

.ithlux-hub-index-no-results {
    text-align: center;
    color: #878787;
    padding: 32px 0;
    font-size: 14px;
}

/* Estado concluido fica mais discreto */
.ithlux-hub-index-item.is-completed .ithlux-hub-index-item-title {
    color: #878787;
    font-weight: 400;
}

/* ==========================================================================
   ITHLUX Training Hub — Pagina de Visualizacao (Single)
   ========================================================================== */
.ithlux-hub-single-wrapper {
    box-sizing: border-box;
    max-width: 1000px;
    margin: 0 auto;
    padding: 24px 20px 48px;
}

/* ---- Top bar ---- */
.ithlux-hub-single-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 18px;
    flex-wrap: wrap;
}
.ithlux-hub-single-back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: #A08052;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.2s;
}
.ithlux-hub-single-back:hover {
    color: #8a6f3d;
}
.ithlux-hub-single-module {
    font-size: 12px;
    color: #878787;
    background: #EECEA6;
    color: #A08052;
    padding: 5px 12px;
    border-radius: 20px;
    font-weight: 600;
}

.ithlux-hub-single-topbar-right {
    display: flex;
    align-items: center;
    gap: 10px;
}
.ithlux-hub-single-topbar-right .ithlux-hub-share-btn {
    width: auto;
    height: auto;
    padding: 7px 14px;
    gap: 6px;
    font-size: 13px;
    font-weight: 500;
}

/* ---- Index topbar ---- */
.ithlux-hub-index-topbar {
    display: flex;
    justify-content: flex-start;
    margin-bottom: 16px;
}
.ithlux-hub-index-grid-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 9px 20px;
    border: 1px solid #e5e0d9;
    border-radius: 8px;
    background: #fff;
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    color: #878787;
    transition: all 0.2s ease;
}
.ithlux-hub-index-grid-link:hover {
    background: #EECEA6;
    color: #A08052;
    border-color: #EECEA6;
}

/* ---- Title ---- */
.ithlux-hub-single-title {
    margin: 0 0 20px 0;
    font-size: 26px;
    color: #2d2d2d;
    font-weight: 700;
    line-height: 1.25;
}

/* ---- Player area ---- */
.ithlux-hub-single-player-area {
    margin-bottom: 24px;
}
.ithlux-hub-single-player-frame {
    position: relative;
    width: 100%;
}
.ithlux-hub-single-player-frame iframe {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
}
/* Container div do YouTube (id=ithlux-player-yt-*) */
.ithlux-hub-single-player-frame > div[id^="ithlux-player-yt-"],
.ithlux-hub-single-player-frame > div[id^="ithlux-single-yt"] {
    line-height: 0;
}

.ithlux-hub-single-protected-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 25;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(160, 128, 82, 0.92);
    color: #fff;
    font-size: 11px;
    aspect-ratio: unset !important;
    pointer-events: none;
    font-weight: 600;
    padding: 5px 10px;
    border-radius: 20px;
    pointer-events: none;
    backdrop-filter: blur(2px);
}

/* ---- Meta / progress ---- */
.ithlux-hub-single-meta {
    margin-top: 14px;
}
.ithlux-hub-single-progress-label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: #A08052;
    margin-bottom: 6px;
}
.ithlux-hub-single-progress-bar {
    width: 100%;
    height: 5px;
    background: #f0ebe0;
    border-radius: 3px;
    overflow: hidden;
}
.ithlux-hub-single-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #A08052, #c4a87a);
    border-radius: 3px;
    transition: width 0.4s ease;
}

/* ---- Body ---- */
.ithlux-hub-single-body {
    background: #fff;
    border: 1px solid #ede8e0;
    border-radius: 10px;
    padding: 24px;
    margin-bottom: 24px;
}
.ithlux-hub-single-excerpt {
    font-size: 15px;
    color: #878787;
    margin: 0 0 16px 0;
    font-style: italic;
}
.ithlux-hub-single-content {
    font-size: 15px;
    line-height: 1.7;
    color: #2d2d2d;
}
.ithlux-hub-single-content p {
    margin: 0 0 14px 0;
}
.ithlux-hub-single-keywords {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid #f5f0e8;
}
.ithlux-hub-single-keyword {
    font-size: 11px;
    color: #878787;
    background: #f5f0e8;
    padding: 4px 10px;
    border-radius: 20px;
    text-decoration: none;
    display: inline-block;
    transition: background 0.2s, color 0.2s;
}
.ithlux-hub-single-keyword:hover,
.ithlux-hub-single-keyword:focus {
    color: #A08052;
    background: #EECEA6;
    text-decoration: none;
}

/* ---- Nav ---- */
.ithlux-hub-single-nav {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}
.ithlux-hub-single-nav-btn {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 14px 18px;
    background: #fff;
    border: 1px solid #ede8e0;
    border-radius: 10px;
    text-decoration: none;
    color: #2d2d2d;
    flex: 1;
    min-width: 200px;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.ithlux-hub-single-nav-btn:hover {
    border-color: #d5c9b8;
    box-shadow: 0 4px 14px rgba(160, 128, 82, 0.08);
}
.ithlux-hub-single-nav-next {
    text-align: right;
}
.ithlux-hub-single-nav-dir {
    font-size: 12px;
    color: #A08052;
    font-weight: 600;
}
.ithlux-hub-single-nav-title {
    font-size: 14px;
    color: #2d2d2d;
    font-weight: 500;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* ---- Denied / login states ---- */
.ithlux-hub-single-denied {
    text-align: center;
    padding: 64px 20px;
    background: #fff;
    border: 1px solid #ede8e0;
    border-radius: 10px;
    max-width: 500px;
    margin: 40px auto;
}
.ithlux-hub-single-denied-icon {
    display: block;
    font-size: 48px;
    margin-bottom: 16px;
}
.ithlux-hub-single-denied h1 {
    font-size: 22px;
    color: #2d2d2d;
    margin: 0 0 10px 0;
    font-weight: 600;
}
.ithlux-hub-single-denied p {
    color: #878787;
    margin: 0 0 24px 0;
    font-size: 14px;
}
.ithlux-hub-single-btn {
    display: inline-block;
    padding: 11px 26px;
    background: #A08052;
    color: #fff !important;
    text-decoration: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    transition: background 0.2s;
}
.ithlux-hub-single-btn:hover {
    background: #8a6f3d;
}

@media (max-width: 640px) {
    .ithlux-hub-single-title { font-size: 22px; }
    .ithlux-hub-single-nav-btn { min-width: 100%; }
    .ithlux-hub-single-body { padding: 18px; }
}

/* ---- Ajuste do wrapper quando integrado como widget Player ---- */
.ithlux-hub-player-wrapper {
    max-width: 1000px;
    margin: 0 auto;
    padding: 16px 0 40px;
}
@media (max-width: 640px) {
    .ithlux-hub-player-wrapper { padding: 12px 0 32px; }
}

/* ==========================================================================
   Widget Submeter Video
   ========================================================================== */
.ithlux-hub-submit-wrapper {
    max-width: 960px;
    margin: 0 auto;
}
.ithlux-hub-submit-login,
.ithlux-hub-submit-success {
    text-align: center;
    padding: 40px 20px;
    font-size: 16px;
    color: #878787;
}
.ithlux-hub-submit-success {
    color: #00a32a;
    background: #d4edda;
    border: 1px solid #b7d7be;
    border-radius: 8px;
    font-weight: 500;
}

/* ---- Grid layout ---- */
.ithlux-hub-submit-grid {
    display: flex;
    gap: 24px;
    align-items: flex-start;
}
.ithlux-hub-submit-main {
    flex: 1;
    min-width: 0;
}
.ithlux-hub-submit-sidebar {
    width: 280px;
    flex-shrink: 0;
}

/* ---- Fields ---- */
.ithlux-hub-submit-field {
    margin-bottom: 20px;
}
.ithlux-hub-submit-label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #2d2d2d;
    margin-bottom: 6px;
}
.ithlux-hub-submit-required {
    color: #d63638;
}
.ithlux-hub-submit-input {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #e5e0d9;
    border-radius: 8px;
    font-size: 14px;
    color: #2d2d2d;
    background: #fff;
    box-sizing: border-box;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.ithlux-hub-submit-input:focus {
    outline: none;
    border-color: #A08052;
    box-shadow: 0 0 0 3px rgba(160,128,82,0.12);
}
.ithlux-hub-submit-textarea {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #e5e0d9;
    border-radius: 8px;
    font-size: 14px;
    color: #2d2d2d;
    background: #fff;
    box-sizing: border-box;
    resize: vertical;
    font-family: inherit;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.ithlux-hub-submit-textarea:focus {
    outline: none;
    border-color: #A08052;
    box-shadow: 0 0 0 3px rgba(160,128,82,0.12);
}
.ithlux-hub-submit-hint {
    font-size: 12px;
    color: #878787;
    margin: 4px 0 0;
}

/* ---- URL row ---- */
.ithlux-hub-submit-url-row {
    display: flex;
    gap: 8px;
}
.ithlux-hub-submit-url-input {
    font-family: monospace;
    flex: 1;
}

/* ---- Preview ---- */
.ithlux-hub-submit-preview {
    margin-top: 10px;
}
.ithlux-hub-submit-preview-inner {
    display: flex;
    gap: 12px;
    align-items: center;
    padding: 10px;
    background: #f0f6fc;
    border-radius: 8px;
    border: 1px solid #c5d9ed;
}
.ithlux-hub-submit-preview-inner img {
    width: 120px;
    height: 67px;
    object-fit: cover;
    border-radius: 4px;
    flex-shrink: 0;
}
.ithlux-hub-submit-preview-info {
    flex: 1;
    min-width: 0;
}
.ithlux-hub-submit-preview-info strong {
    display: block;
    margin-bottom: 2px;
    font-size: 14px;
}
.ithlux-hub-submit-preview-info span {
    font-size: 12px;
    color: #878787;
}
.ithlux-hub-submit-status {
    margin-left: auto;
    font-weight: 600;
    font-size: 13px;
    white-space: nowrap;
}

/* ---- Buttons ---- */
.ithlux-hub-submit-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 9px 20px;
    border: 1px solid #e5e0d9;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    background: #fff;
    color: #878787;
    text-decoration: none;
    white-space: nowrap;
}
.ithlux-hub-submit-btn:hover {
    background: #EECEA6;
    color: #A08052;
    border-color: #EECEA6;
}
.ithlux-hub-submit-btn-primary {
    width: 100%;
    background: #A08052;
    color: #fff;
    border-color: #A08052;
    padding: 12px 24px;
    font-size: 15px;
}
.ithlux-hub-submit-btn-primary:hover {
    background: #8a6f3d;
    border-color: #8a6f3d;
    color: #fff;
}
.ithlux-hub-submit-btn-verify {
    flex-shrink: 0;
}
.ithlux-hub-submit-btn-outline {
    width: 100%;
    margin-top: 8px;
}
.ithlux-hub-submit-btn-sm {
    padding: 4px 12px;
    font-size: 12px;
    margin-top: 8px;
}

/* ---- Cards ---- */
.ithlux-hub-submit-card {
    background: #fff;
    border: 1px solid #e5e0d9;
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 16px;
}
.ithlux-hub-submit-card-title {
    margin: 0 0 12px;
    font-size: 14px;
    font-weight: 700;
    color: #2d2d2d;
}

/* ---- Radio / Check ---- */
.ithlux-hub-submit-radio-list,
.ithlux-hub-submit-check-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.ithlux-hub-submit-radio,
.ithlux-hub-submit-check {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 14px;
    color: #2d2d2d;
    padding: 6px 10px;
    border-radius: 6px;
    transition: background 0.15s;
}
.ithlux-hub-submit-radio:hover,
.ithlux-hub-submit-check:hover {
    background: #f9f6f0;
}
.ithlux-hub-submit-radio input[type="radio"],
.ithlux-hub-submit-check input[type="checkbox"] {
    accent-color: #A08052;
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

/* ---- Thumbnail ---- */
.ithlux-hub-submit-thumb-area {
    text-align: center;
}
.ithlux-hub-submit-thumb-preview img {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: 6px;
    margin-bottom: 4px;
}
.ithlux-hub-submit-thumb-empty {
    color: #878787;
    padding: 16px 0;
    font-size: 13px;
}

/* ---- Responsive ---- */
@media (max-width: 782px) {
    .ithlux-hub-submit-grid {
        flex-direction: column;
    }
    .ithlux-hub-submit-sidebar {
        width: 100%;
    }
}
