.ta-video-heading .ta-desktop-video-upload-icon { display: none; }
.ta-video-heading .ta-video-upload-management { display: inline-flex; align-items: center; }
.ta-video-author-country { white-space: nowrap; font-size: .8em; font-weight: 500; }
.ta-video-author-country abbr[title] { text-decoration: none; }

.ta-video-gallery-categories { display: flex; flex-wrap: wrap; gap: 8px; margin-block-end: 18px; }
.ta-video-gallery-categories a {
    display: inline-flex; align-items: center; justify-content: center; min-block-size: 37px;
    padding: 6px 13px; border: 1px solid #cadbea; border-radius: 9px; background: #fff;
    color: #234f76; font-size: .88rem; font-weight: 650; line-height: 1.3; text-decoration: none;
}
.ta-video-gallery-categories a:hover { border-color: #759fc7; }
.ta-video-gallery-categories [aria-current="true"] { border-color: #145b9f; background: #145b9f; color: #fff; }
.ta-video-gallery-category-filter { display: none; }
.ta-video-gallery-status { margin-block: 12px; color: #425e77; }
.ta-video-gallery-grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 205px), 1fr));
    grid-auto-rows: 1px; grid-auto-flow: row dense; column-gap: 15px;
}
.ta-video-gallery-card { grid-row-end: span var(--ta-gallery-rows, 300); min-inline-size: 0; }
.ta-video-gallery-tile {
    display: block; overflow: hidden; border: 1px solid #d7e5ef; border-radius: 13px;
    background: #fff; color: #173b5f; text-decoration: none;
    box-shadow: 0 4px 15px rgb(32 73 107 / 5%);
}
.ta-video-gallery-tile:hover { border-color: #83add3; color: #104e81; }
.ta-video-gallery-cover {
    isolation: isolate; display: grid; place-items: center; position: relative;
    aspect-ratio: var(--ta-gallery-ratio, 1.5); background: #172d44; color: white; overflow: hidden;
}
.ta-video-gallery-cover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -1; }
.ta-video-gallery-play {
    display: grid; place-items: center; inline-size: 43px; block-size: 43px; border-radius: 50%;
    background: rgb(9 25 44 / 74%); color: #fff; border: 1px solid rgb(255 255 255 / 35%);
}
.ta-video-gallery-play svg { fill: currentColor; inline-size: 19px; block-size: 19px; margin-inline-start: 2px; }
.ta-video-gallery-duration {
    position: absolute; inset-inline-end: 9px; inset-block-end: 9px;
    border-radius: 6px; padding: 2px 6px; color: #fff; background: rgb(9 25 44 / 81%);
    font-size: .75rem; font-variant-numeric: tabular-nums;
}
.ta-video-gallery-tile-text { display: grid; grid-template-columns: minmax(0, 1fr); gap: 5px; padding: 9px 12px 12px; }
.ta-video-gallery-tile-text strong { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; overflow-wrap: anywhere; font-size: .94rem; line-height: 1.35; }
.ta-video-gallery-card-stats {
    display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 3px 6px;
    color: #45627d; font-size: .75rem; line-height: 1.3; font-variant-numeric: tabular-nums;
}
.ta-video-gallery-card-stat { display: inline-flex; align-items: center; gap: 3px; white-space: nowrap; }
.ta-video-gallery-card-stat svg {
    flex: none; inline-size: 13px; block-size: 13px;
    fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round;
}
.ta-video-gallery-card-footer {
    display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 6px;
    color: #46627b; font-size: .8rem; line-height: 1.35;
}
.ta-video-gallery-card-footer [data-gallery-author]:not([hidden]) {
    min-inline-size: 0; max-inline-size: 100%; display: flex; align-items: baseline; gap: 4px; white-space: nowrap;
}
.ta-video-gallery-card-footer [data-gallery-author] > :first-child {
    min-inline-size: 0; overflow: hidden; text-overflow: ellipsis;
}
.ta-video-gallery-card-footer .ta-video-author-country { flex: none; color: #496784; font-size: .9em; }
.ta-video-gallery-card-footer time {
    margin-inline-start: auto; color: #526a80; font-size: .9em; font-variant-numeric: tabular-nums; white-space: nowrap;
}
.ta-video-gallery-more { margin-block-start: 9px; }

@media (max-width: 980px) {
    .ta-video-page.ta-ui-rc { block-size: auto; min-block-size: 100dvh; overflow: visible; }
    .ta-video-page.ta-ui-rc .ta-site-frame { align-items: start; }
    .ta-video-page.ta-ui-rc .ta-site-frame > .ta-video-main { display: block; min-inline-size: 0; }
    .ta-video-main .ta-video-heading { gap: clamp(5px, 1.8vw, 9px); padding-block: 10px; flex-wrap: wrap; }
    .ta-video-main .ta-video-heading h1 { min-inline-size: 0; }
    .ta-video-heading .ta-video-upload-link,
    .ta-video-heading .ta-video-upload-management { padding-inline: clamp(7px, 2vw, 13px); font-size: .84rem; text-align: center; white-space: normal; }
    .ta-video-heading .ta-video-upload-link svg { inline-size: 17px; block-size: 17px; }
    .ta-video-gallery-categories { display: none; }
    .ta-video-gallery-category-filter { position: relative; display: block; margin-block-end: 10px; }
    .ta-video-gallery-category-filter::after {
        content: ''; position: absolute; inset-block-start: 50%; inset-inline-end: 18px;
        inline-size: 8px; block-size: 8px; border: solid #234f76; border-width: 0 2px 2px 0;
        transform: translateY(-72%) rotate(45deg); pointer-events: none;
    }
    .ta-video-gallery-category-filter select {
        appearance: none; box-sizing: border-box; display: block; inline-size: 100%; min-block-size: 44px;
        padding: 8px 12px; padding-inline-end: 44px; border: 1px solid #cadbea; border-radius: 9px;
        background: #fff; color: #234f76; font: inherit; font-size: max(16px, 1rem); font-weight: 650;
    }
    .ta-video-gallery-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 10px; }
    .ta-video-gallery-category-filter,
    .ta-video-gallery-grid,
    .ta-video-gallery-status { margin-inline: max(10px, env(safe-area-inset-left), env(safe-area-inset-right)); }
    .ta-video-gallery-play { inline-size: 38px; block-size: 38px; }
    .ta-video-gallery-tile-text { padding: 8px 9px 10px; }
    .ta-video-gallery-tile-text strong { font-size: .88rem; }
    .ta-video-gallery-card-stats { gap: 3px 4px; font-size: .71rem; }
    .ta-video-gallery-card-stat { gap: 2px; }
    .ta-video-gallery-card-stat svg { inline-size: 12px; block-size: 12px; }
    .ta-video-gallery-duration { inset-inline-end: 7px; inset-block-end: 7px; font-size: .7rem; }
    .ta-video-gallery-more { display: block; margin: 8px auto 14px; }
    .ta-video-gallery-dialog { display: none !important; }
}

@media (max-width: 980px) and (min-height: 501px) {
    .ta-video-page.ta-ui-rc { padding-block-end: var(--ta-mobile-nav-height, calc(68px + env(safe-area-inset-bottom, 0px))) !important; }
    .ta-video-page.ta-ui-rc .ta-mobile-bottom-nav { position: fixed; }
}

@media (min-width: 981px) {
    .ta-video-page.ta-ui-rc { block-size: auto; min-block-size: 100dvh; overflow: visible; }
    .ta-video-page.ta-ui-rc .ta-site-frame { align-items: start; }
    .ta-video-page.ta-ui-rc .ta-site-frame > .ta-video-main { display: block; min-inline-size: 0; padding-block: 16px 42px; }
    .ta-video-main .ta-video-heading { margin-block-end: 18px; }
    .ta-video-main .ta-video-heading h1 { font-size: clamp(1.45rem, 2.4vw, 2rem); }
    .ta-video-heading .ta-mobile-video-upload-icon,
    .ta-video-main .ta-stream-stage { display: none; }
    .ta-video-heading .ta-desktop-video-upload-icon { display: block; object-fit: contain; }
    .ta-video-gallery-dialog {
        box-sizing: border-box; width: min(1120px, calc(100vw - 58px)); max-width: none;
        max-height: min(78dvh, 760px); padding: 0; border: 0; border-radius: 16px;
        overflow: auto; background: #fff; color: #18384e; box-shadow: 0 25px 85px rgb(4 20 38 / 45%);
    }
    .ta-video-gallery-dialog::backdrop { background: rgb(10 23 37 / 65%); }
    .ta-video-page:has(.ta-video-gallery-dialog[open]) { overflow: hidden; }
    .ta-video-gallery-modal {
        direction: ltr; display: grid; grid-template-columns: minmax(0, 1.56fr) minmax(305px, 1fr);
        block-size: min(78dvh, 760px);
    }
    .ta-video-gallery-player {
        position: relative; display: grid; place-items: center; min-inline-size: 0; min-block-size: 0;
        overflow: hidden; background: #091522;
    }
    .ta-video-gallery-player video {
        display: block; inline-size: 100%; block-size: 100%; min-block-size: 0; object-fit: contain;
    }
    .ta-video-gallery-end-poster {
        position: absolute; inset: 0 0 48px; inline-size: 100%; block-size: calc(100% - 48px);
        object-fit: contain; background: #091522; pointer-events: none;
    }
    .ta-video-gallery-player p {
        position: absolute; inset: 50% 20px auto; transform: translateY(-50%);
        color: white; text-align: center; pointer-events: none;
    }
    .ta-video-main [data-ta-video-report] {
        inset: 0; margin: auto; block-size: fit-content; inline-size: min(540px, calc(100vw - 44px));
        max-block-size: calc(100dvh - 44px); border-radius: 14px;
    }
    .ta-video-gallery-sidebar {
        display: flex; flex-direction: column; padding: clamp(15px, 2vw, 25px);
        min-inline-size: 0; overflow: auto; overscroll-behavior: contain;
    }
    .ta-video-gallery-sidebar > * { flex-shrink: 0; }
    :root[dir="rtl"] .ta-video-gallery-sidebar { direction: rtl; }
    .ta-video-gallery-modal-top { display: flex; gap: 8px; align-items: flex-start; justify-content: space-between; margin-block-end: 22px; }
    .ta-video-gallery-person { display: flex; min-width: 0; gap: 10px; align-items: center; }
    .ta-video-gallery-person > span {
        display: grid; place-items: center; position: relative; overflow: hidden; flex: 0 0 40px;
        block-size: 40px; border-radius: 50%; background: #e7f1f9; color: #244d72; font-weight: 700;
    }
    .ta-video-gallery-person img { position: absolute; inset: 0; inline-size: 100%; block-size: 100%; object-fit: cover; }
    .ta-video-gallery-person a { display: block; overflow-wrap: anywhere; color: #153b62; font-weight: 700; }
    .ta-video-gallery-person [data-gallery-company] { margin-block-start: 2px; font-size: .87rem; font-weight: 500; color: #3d5973; }
    .ta-video-gallery-close {
        flex: 0 0 38px; display: grid; place-items: center; block-size: 38px;
        border: 1px solid #d7e5ef; border-radius: 9px; background: #f3f8fc; color: #234b70; cursor: pointer;
    }
    .ta-video-gallery-topic { display: inline-flex; border-radius: 6px; padding: 3px 8px; background: #e9f3fb; color: #1b527f; font-weight: 650; font-size: .8rem; }
    .ta-video-gallery-modal-copy h2 { margin: 8px 0; font-size: inherit; font-weight: 700; line-height: 1.25; color: #14385c; overflow-wrap: anywhere; }
    .ta-video-gallery-modal-copy p { margin: 0 0 10px; color: #334f68; white-space: pre-line; overflow-wrap: anywhere; }
    .ta-video-gallery-modal-copy time { font-size: .85rem; color: #526b83; }
    .ta-video-gallery-disclosures { display: flex; flex-wrap: wrap; gap: 5px; margin-block-start: 8px; }
    .ta-video-gallery-disclosures span { padding: 3px 6px; border-radius: 6px; background: #edf1f7; font-size: .77rem; color: #3e5773; }
    .ta-video-gallery-metadata { display: grid; gap: 3px; margin: 8px 0 0; color: #526b83; font-size: .83rem; }
    .ta-video-gallery-metadata > div { min-inline-size: 0; display: flex; flex-wrap: wrap; gap: 0 8px; }
    .ta-video-gallery-metadata dt { font-weight: 700; }
    .ta-video-gallery-metadata dd { margin: 0; overflow-wrap: anywhere; }
    .ta-gallery-actions { display: flex; flex-wrap: wrap; gap: 7px; margin-block-start: 18px; }
    .ta-gallery-actions :is(button, [data-gallery-owner-edit], [data-gallery-message]) {
        display: inline-flex; align-items: center; justify-content: center; gap: 5px; min-inline-size: 42px; min-block-size: 37px;
        padding: 6px 8px; border: 1px solid #cedeea; border-radius: 8px; background: #f7fafe; color: #1e4f79; cursor: pointer;
    }
    .ta-gallery-actions :is([data-gallery-owner-edit], [data-gallery-owner-delete]) {
        font: inherit; font-size: .87rem; font-weight: 650; text-decoration: none;
    }
    .ta-gallery-actions [data-gallery-owner-delete] { color: #982f36; }
    .ta-gallery-actions :is(button, [data-gallery-message]) svg { inline-size: 17px; block-size: 17px; }
    .ta-gallery-actions button[aria-pressed="true"] { color: #ad2343; }
    .ta-gallery-actions button[aria-pressed="true"] svg { fill: currentColor; }
    .ta-gallery-actions button[aria-expanded="true"] { background: #e7f1fa; border-color: #9abbd7; }
    .ta-gallery-share-control { display: inline-flex; align-items: center; gap: 6px; max-inline-size: 100%; }
    .ta-gallery-share-feedback { color: #275c82; font-size: .78rem; line-height: 1.3; overflow-wrap: anywhere; }
    .ta-gallery-share-fallback { flex-basis: 100%; min-inline-size: 0; }
    .ta-gallery-share-fallback input {
        box-sizing: border-box; inline-size: 100%; min-block-size: 36px; padding: 6px 8px;
        border: 1px solid #c1d5e8; border-radius: 8px; background: #fff; color: #173a5c; font: inherit;
    }
    .ta-video-gallery-feedback { flex-basis: 100%; font-size: .85rem; color: #526b83; margin: 0; }
    .ta-gallery-inline-comments { margin-block-start: 12px; min-inline-size: 0; }
    .ta-gallery-inline-comment-form { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 7px; }
    .ta-gallery-inline-comment-form input {
        min-inline-size: 0; inline-size: 100%; padding: 8px 9px; border: 1px solid #c1d5e8;
        border-radius: 8px; background: #fff; color: #173a5c; font: inherit;
    }
    .ta-gallery-inline-comment-form input:focus-visible { outline: 2px solid #246298; outline-offset: 1px; }
    .ta-gallery-inline-comment-form button { min-block-size: 38px; padding-inline: 10px; font-size: .87rem; }
    .ta-gallery-inline-comments .ta-video-comments { min-block-size: 0; max-block-size: min(28dvh, 205px); padding-block: 8px 0; font-size: .88rem; }
    .ta-gallery-inline-comments .ta-video-form-feedback { color: #9a2433; font-size: .85rem; }
    .ta-gallery-comment-quote-preview, .ta-gallery-comment-reference {
        min-inline-size: 0; padding: 5px 8px; border-inline-start: 2px solid #a4bfd4;
        background: #f0f5fa; color: #405c75; overflow-wrap: anywhere;
    }
    .ta-gallery-comment-quote-preview {
        display: flex; align-items: center; justify-content: space-between; gap: 8px;
        grid-column: 1 / -1; margin-block: 0 7px; font-size: .84rem;
    }
    .ta-gallery-comment-reference { margin: 5px 0; font-size: .8rem; }
    .ta-gallery-comment-quote-preview > span,
    .ta-gallery-comment-reference { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
    .ta-gallery-comment-actions, .ta-gallery-comment-confirm {
        display: flex; flex-wrap: wrap; align-items: center; gap: 3px 8px; margin-block-start: 5px;
        color: #506c83; font-size: .78rem;
    }
    .ta-gallery-comment-actions button, .ta-gallery-comment-confirm button, .ta-gallery-comment-quote-preview button {
        padding: 0 4px; min-block-size: 25px; border: 0; background: transparent; color: #1f5683;
        font: inherit; font-weight: 650; cursor: pointer;
    }
    .ta-gallery-comment-confirm [data-gallery-comment-action="confirm-delete"] { color: #a22b3b; }
    .ta-gallery-comment-quote-preview button { flex: none; }
    .ta-video-gallery-related { margin-block-start: 19px; padding-block-start: 13px; border-block-start: 1px solid #dbe7f0; }
    .ta-video-gallery-related h3 { margin: 0 0 6px; color: #193e62; font-size: .98rem; }
    .ta-video-gallery-related ul { display: grid; gap: 7px; margin: 0; padding-inline-start: 1.1em; }
    .ta-video-gallery-related a { color: #194f83; overflow-wrap: anywhere; font-size: .91rem; }
    .ta-video-gallery-disclaimer { margin-block-start: auto; padding-block-start: 18px; }
    .ta-video-gallery-disclaimer .ta-video-disclaimer { border-block-start: 1px solid #dbe7f0; padding-block-start: 11px; }
}
