/* =========================================================
REWARDTUBE - RESPONSIVE PAGED VIDEO GRID
========================================================= */

.video-section {
    width: 100%;
}

.video-grid {
    width: 100%;
    display: grid !important;
    grid-template-columns: repeat(var(--video-columns, 5), minmax(0, 1fr)) !important;
    grid-template-rows: repeat(3, auto) !important;
    gap: 14px 10px !important;
}

.video-card {
    width: 100% !important;
    min-width: 0 !important;
    display: block !important;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
    color: #111;
    text-align: left;
    cursor: pointer;
}

.thumb-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: 5px;
    background: #e8e8e8;
}

.thumb-wrap img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-card:hover .thumb-wrap img {
    transform: scale(1.03);
    transition: transform .2s ease;
}

.video-title-row {
    display: flex;
    align-items: flex-start;
    gap: 4px;
    margin-top: 5px;
}

.video-title-row .title {
    min-width: 0;
    flex: 1;
    font-size: 12px;
    line-height: 1.3;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.video-title-row .more {
    flex: 0 0 auto;
    font-size: 14px;
}

.meta {
    display: flex;
    gap: 4px;
    margin-top: 4px;
    color: #777;
    font-size: 10px;
}

.points {
    position: absolute;
    top: 4px;
    left: 4px;
    right: 4px;
    padding: 2px 4px;
    background: rgba(255,255,255,.92);
    color: #c00000;
    text-align: center;
    font-size: 9px;
    font-weight: 800;
}

.duration {
    position: absolute;
    right: 4px;
    bottom: 4px;
    padding: 2px 4px;
    border-radius: 2px;
    background: rgba(0,0,0,.8);
    color: white;
    font-size: 9px;
}

.play-badge {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 30px;
    height: 30px;
    display: grid;
    place-items: center;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    background: rgba(192,0,0,.95);
    color: white;
    font-size: 11px;
    opacity: 0;
}

.video-card:hover .play-badge {
    opacity: 1;
}

/* =========================================================
FULL SCREEN VIDEO MODAL
========================================================= */

body:has(.modal-backdrop) {
    overflow: hidden !important;
    height: 100vh !important;
}

.modal-backdrop {
    position: fixed !important;
    top: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    z-index: 2147483647 !important;
    display: flex !important;
    align-items: flex-start !important;
    justify-content: center !important;
    padding: 30px 20px !important;
    background: rgba(0,0,0,.88) !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    pointer-events: auto !important;
    touch-action: none !important;
    isolation: isolate !important;
}

.modal-box {
    position: relative !important;
    width: min(900px, 92vw) !important;
    max-width: 900px !important;
    margin: 0 auto !important;
    flex: 0 0 auto !important;
    overflow: hidden !important;
    border-radius: 8px !important;
    background: #090909 !important;
    color: white !important;
    box-shadow: 0 25px 80px rgba(0,0,0,.8) !important;
    pointer-events: auto !important;
}

.modal-header {
    min-height: 52px !important;
    padding: 9px 12px 9px 15px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    background: #111 !important;
}

.modal-header strong {
    display: block !important;
    max-width: 750px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 13px;
}

.modal-eyebrow {
    display: block !important;
    color: #e00000;
    font-size: 8px;
    font-weight: 800;
    letter-spacing: .15em;
}

.close-button {
    width: 32px !important;
    height: 32px !important;
    flex: 0 0 32px;
    border: 0 !important;
    border-radius: 50% !important;
    background: #292929 !important;
    color: white !important;
    font-size: 22px !important;
    line-height: 1 !important;
    cursor: pointer !important;
}

.close-button:hover {
    background: #c00000 !important;
}

.close-button:disabled,
.close-button.is-locked {
    opacity: .35 !important;
    cursor: not-allowed !important;
}

.player-stage {
    position: relative !important;
    width: 100% !important;
    background: #000 !important;
}

.player {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    max-height: 68vh !important;
    background: #000 !important;
}

.ad-stage .player {
    min-height: 330px !important;
    max-height: 65vh !important;
    object-fit: contain !important;
}

.lock-layer {
    position: absolute !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    top: auto !important;
    z-index: 30 !important;
    height: 72px !important;
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 14px !important;
    padding: 8px 18px !important;
    background: linear-gradient(to top, rgba(0,0,0,.95), rgba(0,0,0,.78), rgba(0,0,0,0)) !important;
    color: #fff !important;
    pointer-events: auto !important;
    cursor: wait !important;
    user-select: none !important;
}

.lock-pill {
    flex: 0 0 auto !important;
    padding: 4px 8px !important;
    border-radius: 999px !important;
    background: #c00000 !important;
    color: #fff !important;
    font-size: 8px !important;
    font-weight: 800 !important;
    letter-spacing: .08em !important;
}

.countdown {
    flex: 0 0 auto !important;
    margin: 0 !important;
    font-size: 25px !important;
    line-height: 1 !important;
    font-weight: 800 !important;
    color: #fff !important;
}

.hint {
    flex: 0 1 auto !important;
    margin: 0 !important;
    max-width: 260px !important;
    color: #eee !important;
    font-size: 10px !important;
    line-height: 1.3 !important;
    text-align: left !important;
}

.countdown-track {
    position: absolute !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100% !important;
    height: 3px !important;
    margin: 0 !important;
    overflow: hidden !important;
    background: rgba(255,255,255,.15) !important;
}

.countdown-fill {
    height: 100% !important;
    background: #c00000 !important;
    transition: width .25s linear !important;
}

.video-footer {
    position: relative !important;
    min-height: 64px !important;
    padding: 11px 14px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 14px !important;
    background: #111 !important;
    border-top: 1px solid rgba(255,255,255,.08) !important;
}

.video-footer > div:first-child {
    min-width: 0 !important;
    flex: 1 1 auto !important;
    padding-right: 5px !important;
}

.video-footer strong {
    display: block !important;
    margin: 0 !important;
    color: #fff !important;
    font-size: 14px !important;
    line-height: 1.35 !important;
    font-weight: 700 !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
}

.video-footer span {
    display: block !important;
    margin-top: 4px !important;
    color: #999 !important;
    font-size: 10px !important;
    line-height: 1.35 !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
}

.video-footer .reward-pill {
    flex: 0 0 auto !important;
    min-width: 70px !important;
    padding: 7px 10px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 5px !important;
    background: #c00000 !important;
    color: #fff !important;
    font-size: 11px !important;
    line-height: 1 !important;
    font-weight: 800 !important;
    white-space: nowrap !important;
    box-shadow: 0 2px 8px rgba(192,0,0,.25) !important;
}

.completion-summary-overlay {
    position: fixed !important;
    top: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    z-index: 2147483646 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 20px !important;
    background: rgba(0,0,0,.94) !important;
    pointer-events: auto !important;
}

.completion-summary {
    position: relative !important;
    width: min(430px,90vw) !important;
    padding: 45px 30px 35px !important;
    border-radius: 8px !important;
    background: #050505 !important;
    color: #fff !important;
    text-align: center !important;
    box-shadow: 0 25px 80px rgba(0,0,0,.9) !important;
    border: 1px solid #242424 !important;
}

.completion-close {
    position: absolute !important;
    top: 10px !important;
    right: 10px !important;
    width: 32px !important;
    height: 32px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 50% !important;
    background: #292929 !important;
    color: #fff !important;
    font-size: 22px !important;
    line-height: 1 !important;
    cursor: pointer !important;
}

.completion-close:hover {
    background: #c00000 !important;
}

.completion-summary .success-icon {
    width: 64px !important;
    height: 64px !important;
    margin: 0 auto 18px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 50% !important;
    background: #c00000 !important;
    color: #fff !important;
    font-size: 30px !important;
    font-weight: 800 !important;
}

.completion-summary h3 {
    margin: 0 0 8px !important;
    color: #fff !important;
    font-size: 22px !important;
    line-height: 1.2 !important;
}

.completion-summary p {
    margin: 0 !important;
    color: #aaa !important;
    font-size: 12px !important;
    line-height: 1.5 !important;
}

.completion-summary .earned {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin-top: 18px !important;
    padding: 9px 14px !important;
    border-radius: 5px !important;
    background: #c00000 !important;
    color: #fff !important;
    font-size: 15px !important;
    font-weight: 800 !important;
}

@media (max-width: 700px) {
    .video-grid {
        gap: 12px 8px !important;
    }

    .modal-backdrop {
        padding: 0 !important;
        align-items: flex-start !important;
    }

    .modal-box {
        width: 100vw !important;
        max-width: 100vw !important;
        min-height: 0;
        border-radius: 0 !important;
    }

    .player {
        max-height: 65vh !important;
    }

    .ad-stage .player {
        min-height: 240px !important;
    }

    .lock-layer {
        height: 62px !important;
        gap: 9px !important;
        padding: 7px 12px !important;
    }

    .lock-pill {
        font-size: 7px !important;
        padding: 4px 7px !important;
    }

    .countdown {
        font-size: 22px !important;
    }

    .hint {
        max-width: 180px !important;
        font-size: 9px !important;
    }

    .video-footer {
        min-height: 58px !important;
        padding: 9px 11px !important;
        gap: 9px !important;
    }

    .video-footer strong {
        font-size: 12px !important;
    }

    .video-footer span {
        font-size: 9px !important;
    }

    .video-footer .reward-pill {
        min-width: 62px !important;
        padding: 6px 8px !important;
        font-size: 10px !important;
    }
}


/* =========================================================
REWARDTUBE - RIGHT-SIDE PAGED FEED
========================================================= */

.feed-viewport {
    position: relative !important;
    width: 100% !important;
    overflow: hidden !important;
}

.feed-arrow {
    position: absolute !important;
    top: 50% !important;
    z-index: 50 !important;
    width: 38px !important;
    height: 38px !important;
    margin-top: -19px !important;
    border: 0 !important;
    border-radius: 50% !important;
    background: rgba(255,255,255,.96) !important;
    color: #333 !important;
    box-shadow: 0 2px 9px rgba(0,0,0,.25) !important;
    cursor: pointer !important;
    display: grid !important;
    place-items: center !important;
    font-size: 29px !important;
    line-height: 1 !important;
    padding: 0 0 2px !important;
    transition: transform .18s ease, background .18s ease, color .18s ease !important;
}

.feed-arrow:hover {
    transform: scale(1.08) !important;
    background: #c00000 !important;
    color: #fff !important;
}

.feed-arrow-right { right: 5px !important; }
.feed-arrow-left { left: 5px !important; }

.page-enter-next {
    animation: rewardTubePageNext .46s cubic-bezier(.22,.75,.25,1) both !important;
}

.page-enter-previous {
    animation: rewardTubePagePrevious .46s cubic-bezier(.22,.75,.25,1) both !important;
}

@keyframes rewardTubePageNext {
    from { opacity: 0; transform: translate3d(46px,0,0); filter: blur(1.5px); }
    to { opacity: 1; transform: translate3d(0,0,0); filter: blur(0); }
}

@keyframes rewardTubePagePrevious {
    from { opacity: 0; transform: translate3d(-46px,0,0); filter: blur(1.5px); }
    to { opacity: 1; transform: translate3d(0,0,0); filter: blur(0); }
}

@media (max-width: 700px) {
    .feed-arrow {
        width: 32px !important;
        height: 32px !important;
        margin-top: -16px !important;
        font-size: 24px !important;
    }
    .feed-arrow-right { right: 2px !important; }
    .feed-arrow-left { left: 2px !important; }
}


/* =========================================================
   EARNINGTUBE - YOUTUBE METADATA ADD VIDEO EXPERIENCE
   ========================================================= */

.youtube-url-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    column-gap: 18px;
    margin-bottom: 20px;
    padding: 20px;
    border: 1px solid rgba(192, 0, 0, .14);
    border-radius: 14px;
    background: linear-gradient(135deg, #fff 0%, #fff7f7 100%);
    box-shadow: 0 10px 30px rgba(0, 0, 0, .06);
}

.youtube-url-icon {
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    background: #c00000;
    color: #fff;
    font-size: 22px;
    box-shadow: 0 8px 20px rgba(192, 0, 0, .22);
}

.youtube-url-copy {
    min-width: 0;
    flex: 1 1 auto;
    display: flex;
    text-align: left;
    flex-direction: column;
    gap: 3px;
}

.youtube-url-copy strong {
    color: #161616;
    font-size: 18px;
    line-height: 1.25;
}

.youtube-url-copy small {
    color: #777;
    font-size: 11px;
    line-height: 1.4;
}

.youtube-source-side {
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: flex-start;
    gap: 6px;
    margin-left: 14px;
    align-self: center;
}

.youtube-source-badge {
    flex: 0 0 auto;
    align-self: flex-end;
    display: inline-flex;
    align-items: center;
    padding: 7px 10px;
    border-radius: 999px;
    background: #ffeaea;
    color: #c00000;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: .14em;
    white-space: nowrap;
}

.youtube-url-entry {
    grid-column: 1 / -1;
    display: flex;
    gap: 10px;
    margin-top: 14px;
}

.youtube-url-input {
    flex: 1 1 auto;
    min-width: 0;
    height: 50px;
    padding: 0 15px;
    border: 1px solid #ddd;
    border-radius: 9px;
    outline: none;
    background: #fff;
    color: #222;
    font-size: 13px;
    transition: border-color .18s ease, box-shadow .18s ease;
}

.youtube-url-input:focus {
    border-color: #c00000;
    box-shadow: 0 0 0 3px rgba(192, 0, 0, .09);
}

.youtube-fetch-button {
    min-width: 155px;
    height: 50px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    border: 0;
    border-radius: 9px;
    background: #c00000;
    color: #fff;
    font-size: 11px;
    font-weight: 800;
    cursor: pointer;
    transition: transform .18s ease, box-shadow .18s ease, opacity .18s ease;
}

.youtube-fetch-button:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 8px 18px rgba(192, 0, 0, .22);
}

.youtube-fetch-button:disabled {
    opacity: .65;
    cursor: wait;
}

.metadata-status,
.metadata-error {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 12px;
    padding: 10px 12px;
    border-radius: 8px;
    font-size: 10px;
    line-height: 1.4;
}

.metadata-status {
    background: #f1fbf4;
    color: #24723c;
}

.metadata-error {
    background: #fff1f1;
    color: #a00000;
}

.metadata-form-grid {
    margin-top: 4px;
}

.metadata-field {
    min-width: 0;
}

.field-label-row {
    min-height: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.field-label-row label {
    margin: 0;
}

.field-label-row span {
    color: #999;
    font-size: 8px;
    font-weight: 700;
    white-space: nowrap;
}

.metadata-field.metadata-locked .field-label-row span {
    color: #c00000;
}

.metadata-field input:disabled,
.metadata-field textarea:disabled,
.metadata-field select:disabled {
    opacity: 1;
    background: #f7f7f7;
    color: #333;
    border-color: #e8e8e8;
    cursor: not-allowed;
}

.metadata-value {
    min-height: 40px;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0 11px;
    border: 1px solid #e8e8e8;
    border-radius: 6px;
    background: #f7f7f7;
    color: #333;
    font-size: 12px;
}

.duration-value i {
    color: #c00000;
}

.thumbnail-preview {
    position: relative;
    width: 100%;
    overflow: hidden;
    min-height: 0;
    border: 1px solid #e8e8e8;
    border-radius: 8px;
    background: #111;
}

    .thumbnail-preview img {
        display: block;
        width: 100%;
        height: auto;
        max-width: 100%;
        max-height: none;
        object-fit: contain;
    }

.thumbnail-preview div {
    position: absolute;
    right: 8px;
    bottom: 8px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 8px;
    border-radius: 999px;
    background: rgba(0, 0, 0, .78);
    color: #fff;
    font-size: 8px;
    font-weight: 700;
}

@media (max-width: 640px) {
    .youtube-url-card {
        grid-template-columns: minmax(0, 1fr) auto;
        column-gap: 10px;
        padding: 15px;
    }

    .youtube-source-side {
        gap: 5px;
        margin-left: 10px;
    }

    .youtube-url-icon {
        width: 32px;
        height: 32px;
        font-size: 17px;
    }

    .youtube-url-entry {
        grid-column: 1 / -1;
        flex-direction: column;
    }

    .youtube-fetch-button {
        width: 100%;
    }

    .field-label-row {
        align-items: flex-start;
        flex-direction: column;
        gap: 2px;
    }
}

.thumbnail-upload-note {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin-top: 10px;
    padding: 10px 12px;
    border: 1px solid #f0caca;
    border-radius: 8px;
    background: #fff7f7;
    color: #8f1d1d;
    font-size: 11px;
    font-weight: 600;
    line-height: 1.5;
}

.thumbnail-upload-note i {
    flex: 0 0 auto;
    margin-top: 2px;
    color: #c00000;
    font-size: 13px;
}

.metadata-youtube-panel {
    margin-top: 18px;
    padding: 16px;
    border: 1px solid #e4e4e4;
    border-radius: 12px;
    background: linear-gradient(180deg, #f8f8f8 0%, #fdfdfd 100%);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.9), 0 6px 18px rgba(0,0,0,.035);
}

.metadata-youtube-panel-header {
    display: flex;
    align-items: center;
    gap: 11px;
    margin-bottom: 15px;
    padding-bottom: 13px;
    border-bottom: 1px solid #e8e8e8;
}

.metadata-youtube-panel-icon {
    flex: 0 0 34px;
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 9px;
    background: #ffeaea;
    color: #c00000;
    font-size: 16px;
}

.metadata-youtube-panel-header > div:nth-child(2) {
    min-width: 0;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.metadata-youtube-panel-header strong {
    color: #222;
    font-size: 13px;
    font-weight: 800;
}

.metadata-youtube-panel-header span:not(.metadata-youtube-panel-badge) {
    color: #777;
    font-size: 10px;
    line-height: 1.45;
}

.metadata-youtube-panel-badge {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 6px 9px;
    border-radius: 999px;
    background: #fff0f0;
    color: #a00000;
    font-size: 9px;
    font-weight: 800;
    white-space: nowrap;
}

.metadata-youtube-panel-badge.loaded {
    background: #eef8f0;
    color: #26713b;
}

.metadata-youtube-fields {
    margin-top: 0;
}

@media (max-width: 640px) {
    .metadata-youtube-panel {
        padding: 12px;
    }

    .metadata-youtube-panel-header {
        align-items: flex-start;
        flex-wrap: wrap;
    }

    .metadata-youtube-panel-badge {
        margin-left: 45px;
    }

    .youtube-source-badge {
        align-self: flex-start;
        padding: 6px 8px;
        font-size: 8px;
    }
}

.metadata-field > label,
.field-label-row > label {
    display: inline-flex;
    align-items: center;
    margin: 0 0 7px;
    color: #252525;
    font-family: "Segoe UI", Inter, system-ui, sans-serif;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.metadata-field > label::before,
.field-label-row > label::before {
    content: "";
    width: 4px;
    height: 14px;
    margin-right: 7px;
    border-radius: 3px;
    background: #c00000;
}

.field-label-row > label {
    margin-bottom: 7px;
}

.field-label-row span {
    color: #8a8a8a;
    font-size: 8px;
    font-weight: 700;
}


/* Shared page canvas: full viewport background, not only the central content panel. */
html, body, #app { min-height: 100%; background: #292929; }
body { margin: 0; }

/* EarningTube feed arrows: override legacy global rules that forced white buttons
   and absolute positioning on mobile. */
.video-section .feed-arrow {
    background: #d00000 !important;
    color: #ffffff !important;
    border: 2px solid #ffffff !important;
    box-shadow: 0 4px 14px rgba(0, 0, 0, .42), 0 0 0 3px rgba(220, 0, 0, .2), 0 0 18px rgba(220, 0, 0, .32) !important;
}
.video-section .feed-arrow:hover:not(:disabled),
.video-section .feed-arrow:focus-visible:not(:disabled) {
    background: #ff9999 !important;
    color: #ffffff !important;
    border-color: #ffffff !important;
}
.video-section .feed-arrow:disabled,
.video-section .feed-arrow:disabled:hover,
.video-section .feed-arrow:disabled:active {
    background: #dedede !important;
    color: #777777 !important;
    border-color: #f5f5f5 !important;
    opacity: 1 !important;
    cursor: not-allowed !important;
    transform: none !important;
    filter: none !important;
    box-shadow: 0 2px 7px rgba(0, 0, 0, .2) !important;
}
@media (max-width: 575.98px) {
    .video-section .mobile-feed-control {
        position: relative !important;
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
        gap: 18px !important;
        width: 100% !important;
        z-index: 31 !important;
    }
    .video-section .mobile-feed-control .feed-arrow {
        position: relative !important;
        inset: auto !important;
        top: auto !important;
        left: auto !important;
        right: auto !important;
        bottom: auto !important;
        width: 38px !important;
        height: 38px !important;
        margin: 0 !important;
        padding: 0 !important;
        display: flex !important;
        place-items: unset !important;
        font-size: 27px !important;
        line-height: 1 !important;
    }
    .video-section .mobile-feed-control-top { margin: 0 0 10px !important; }
    .video-section .mobile-feed-control-bottom { margin: 10px 0 0 !important; }
    .video-section .desktop-feed-arrow { display: none !important; }
}
/* Feed titles and metadata stay legible on the dark Home page canvas. */
.home-page .video-card,
.home-page .video-card .title,
.home-page .video-card .more { color: #f4f4f4 !important; }
.home-page .video-card .meta { color: #b8b8b8 !important; }


/* EarningTube startup screen shown while Blazor WebAssembly initializes. */
.startup-loader {
    position: fixed;
    inset: 0;
    z-index: 2147483000;
    display: grid;
    place-items: center;
    min-height: 100vh;
    min-height: 100dvh;
    padding: 24px;
    overflow: hidden;
    background:
        radial-gradient(ellipse at 50% 38%, rgba(37, 99, 235, .16), transparent 42%),
        radial-gradient(ellipse at 10% 100%, rgba(192, 0, 0, .10), transparent 36%),
        #0b1120;
    color: #f8fafc;
    font-family: "Segoe UI", Inter, system-ui, sans-serif;
}
.startup-loader::before,
.startup-loader::after {
    position: absolute;
    content: "";
    width: min(70vw, 620px);
    aspect-ratio: 1;
    border: 1px solid rgba(148, 163, 184, .07);
    border-radius: 50%;
    pointer-events: none;
}
.startup-loader::after { width: min(52vw, 460px); }
.startup-loader-card {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: min(100%, 390px);
    padding: 36px 30px 30px;
    border: 1px solid rgba(148, 163, 184, .17);
    border-radius: 26px;
    background: linear-gradient(155deg, rgba(30, 41, 59, .82), rgba(15, 23, 42, .92));
    box-shadow: 0 30px 90px rgba(0, 0, 0, .34), inset 0 1px 0 rgba(255, 255, 255, .045);
    text-align: center;
    backdrop-filter: blur(16px);
}
.startup-loader-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 30px;
}
.startup-loader-mark {
    display: grid;
    place-items: center;
    width: 39px;
    height: 39px;
    border: 1px solid rgba(147, 197, 253, .3);
    border-radius: 12px;
    background: linear-gradient(145deg, #3b82f6, #1d4ed8);
    color: #fff;
    font-size: 25px;
    box-shadow: 0 7px 20px rgba(37, 99, 235, .26);
}
.startup-loader-word { color: #f8fafc; font-size: 21px; font-weight: 850; letter-spacing: -.7px; }
.startup-loader-word span { color: #93c5fd; }
.startup-loader-orbit {
    position: relative;
    display: grid;
    place-items: center;
    width: 78px;
    height: 78px;
    margin-bottom: 22px;
    border: 2px solid rgba(96, 165, 250, .18);
    border-top-color: #60a5fa;
    border-right-color: #3b82f6;
    border-radius: 50%;
    animation: startup-loader-spin 1.3s linear infinite;
}
.startup-loader-play {
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    border: 1px solid rgba(147, 197, 253, .25);
    border-radius: 16px;
    background: rgba(59, 130, 246, .13);
    color: #bfdbfe;
    font-size: 25px;
    animation: startup-loader-counter-spin 1.3s linear infinite;
}
.startup-loader-orbit-dot {
    position: absolute;
    top: -4px;
    left: 14px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #bfdbfe;
    box-shadow: 0 0 14px rgba(96, 165, 250, .85);
}
.startup-loader-card h1 { margin: 0; color: #f8fafc; font-size: 21px; font-weight: 750; letter-spacing: -.45px; }
.startup-loader-card p { margin: 8px 0 22px; color: #aebbd0; font-size: 13px; line-height: 1.6; }
.startup-loader-track {
    width: 100%;
    height: 4px;
    overflow: hidden;
    border-radius: 99px;
    background: rgba(148, 163, 184, .16);
}
.startup-loader-track span {
    display: block;
    width: 38%;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #2563eb, #93c5fd);
    box-shadow: 0 0 14px rgba(59, 130, 246, .35);
    animation: startup-loader-progress 1.8s ease-in-out infinite;
}
.startup-loader-caption { margin-top: 16px; color: #7f91ac; font-size: 9px; font-weight: 800; letter-spacing: .17em; }
@keyframes startup-loader-spin { to { transform: rotate(360deg); } }
@keyframes startup-loader-counter-spin { to { transform: rotate(-360deg); } }
@keyframes startup-loader-progress { 0% { transform: translateX(-110%); } 100% { transform: translateX(360%); } }
@media (max-width: 480px) {
    .startup-loader { padding: 18px; }
    .startup-loader-card { padding: 30px 22px 24px; border-radius: 22px; }
}
@media (prefers-reduced-motion: reduce) {
    .startup-loader-orbit, .startup-loader-play, .startup-loader-track span { animation-duration: 3s; }
}
