.videos-page {
    width: 73rem;
    max-width: 73rem;
    margin: 0 auto;
    padding: 28px 18px 52px;
    display: flex;
    flex-direction: column;
    gap: 18px
}

.videos-header {
    display: flex;
    gap: 14px;
    align-items: center;
    justify-content: space-between;
    flex-wrap: nowrap
}

.videos-tabs {
    display: flex;
    gap: 8px;
    flex-wrap: nowrap;
    flex: 1;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding: 4px 0;
    align-items: center;
    position: relative;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-x;
    cursor: grab
}

.videos-tabs.dragging {
    cursor: grabbing
}

.videos-tabs::-webkit-scrollbar {
    display: none
}

.videos-tabs.fade-right {
    -webkit-mask-image: linear-gradient(90deg, #000 0%, #000 82%, rgba(0, 0, 0, 0) 100%);
    mask-image: linear-gradient(90deg, #000 0%, #000 82%, rgba(0, 0, 0, 0) 100%)
}

.videos-tabs.fade-left {
    -webkit-mask-image: linear-gradient(90deg, rgba(0, 0, 0, 0) 0%, #000 18%, #000 100%);
    mask-image: linear-gradient(90deg, rgba(0, 0, 0, 0) 0%, #000 18%, #000 100%)
}

.videos-tabs.fade-both {
    -webkit-mask-image: linear-gradient(90deg, rgba(0, 0, 0, 0) 0%, #000 18%, #000 82%, rgba(0, 0, 0, 0) 100%);
    mask-image: linear-gradient(90deg, rgba(0, 0, 0, 0) 0%, #000 18%, #000 82%, rgba(0, 0, 0, 0) 100%)
}

.video-tab-separator {
    width: 1px;
    height: 28px;
    background: rgba(255, 255, 255, .2);
    flex: 0 0 auto;
    user-select: none;
    -webkit-user-select: none
}

.video-tab {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 14px;
    border-radius: 999px;
    background: #262626;
    color: #ededed;
    border: 1px solid var(--feed-card-border);
    font-weight: 800;
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
    transition: background .18s ease, color .18s ease, border-color .18s ease;
    text-decoration: none;
    min-height: 40px;
    height: 40px;
    white-space: nowrap;
    flex-shrink: 0;
    user-select: none;
    -webkit-user-select: none
}

.video-tab.active {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff
}

.video-tab-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .1);
    color: #cfd3d6;
    font-size: 14px;
    font-weight: 800;
    flex-shrink: 0;
    margin-left: auto
}

.video-tab-count.wide {
    width: auto;
    padding: 0 8px
}

.video-tab.active .video-tab-count {
    background: rgba(255, 255, 255, .2);
    color: #fff
}

.videos-actions {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-shrink: 0
}

.videos-status-dropdown {
    position: relative
}

.videos-status-toggle {
    border: 1px solid rgba(255, 255, 255, .15);
    border-radius: 6px;
    padding: 10px 14px;
    font-size: 16px;
    font-weight: 800;
    cursor: pointer;
    transition: transform .12s ease, background .18s ease, border-color .18s ease;
    text-transform: uppercase;
    letter-spacing: .01em;
    white-space: nowrap;
    height: 48px;
    min-width: 216px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    justify-content: flex-start;
    color: #fff;
    background: #2b2f33
}

.videos-status-toggle.approved {
    border-color: #789D2A
}

.videos-status-toggle.viewed {
    border-color: #60A5FA
}

.videos-status-toggle.rejected {
    border-color: rgba(239, 68, 68, .6)
}

.videos-status-toggle.pending {
    border-color: #878884
}

.videos-status-toggle-icon {
    width: 18px;
    height: 18px;
    filter: brightness(0) invert(1);
    margin-right: 2px
}

.videos-status-toggle-arrow {
    margin-left: auto;
    opacity: .7;
    transition: transform .2s
}

.videos-status-dropdown.open .videos-status-toggle-arrow {
    transform: rotate(180deg)
}

.videos-status-menu {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    background: #1a1a1a;
    border: 1px solid var(--feed-card-border);
    border-radius: 10px;
    overflow: hidden;
    z-index: 20;
    display: none;
    flex-direction: column
}

.videos-status-dropdown.open .videos-status-menu {
    display: flex
}

.videos-status-item {
    border: none;
    background: transparent;
    color: #fff;
    font-size: 15px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .01em;
    height: 48px;
    padding: 10px 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    border-bottom: 1px solid rgba(255, 255, 255, .08)
}

.videos-status-item:last-child {
    border-bottom: none
}

.videos-status-item-icon {
    width: 18px;
    height: 18px;
    filter: brightness(0) invert(1)
}

.videos-status-item.selected.approved {
    background: #789D2A
}

.videos-status-item.selected.viewed {
    background: #60A5FA
}

.videos-status-item.selected.rejected {
    background: rgba(239, 68, 68, .2)
}

.videos-status-item.selected.pending {
    background: #878884
}

.videos-action-btn {
    border: 1px solid var(--feed-card-border);
    outline: none;
    border-radius: 6px;
    padding: 10px 18px;
    font-size: 18px;
    font-weight: 800;
    cursor: pointer;
    transition: transform .12s ease, background .18s ease, color .18s ease, border-color .18s ease;
    text-transform: uppercase;
    letter-spacing: .01em;
    white-space: nowrap;
    height: 48px;
    min-width: 216px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    justify-content: center
}

.videos-action-icon {
    width: 18px;
    height: 18px;
    object-fit: contain;
    display: block;
    filter: brightness(0) invert(1)
}

.videos-action-btn.primary {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent)
}

.videos-action-btn.primary:hover {
    transform: translateY(-1px);
    background: #6a8a25
}

.videos-action-btn.random {
    background: #2b2f33;
    border-color: rgba(255, 255, 255, .18);
    min-width: 48px;
    width: 48px;
    padding: 0;
    position: relative;
    box-shadow: 0 0 10px rgba(240, 102, 255, .2);
    animation: random-glow 2.6s ease-in-out infinite
}

.videos-action-btn.random:hover {
    box-shadow: 0 0 16px rgba(255, 122, 236, .35);
    transform: translateY(-1px)
}

.videos-action-btn.random:active {
    transform: translateY(0) scale(0.98)
}

@keyframes random-glow {
    0% { box-shadow: 0 0 8px rgba(240, 102, 255, .18); }
    50% { box-shadow: 0 0 16px rgba(255, 122, 236, .32); }
    100% { box-shadow: 0 0 8px rgba(240, 102, 255, .18); }
}


.videos-random-icon {
    width: 24px;
    height: 24px;
    display: block;
    background: linear-gradient(135deg, #ff7ae9, #b06bff);
    -webkit-mask-image: url("/static/image/random.svg");
    mask-image: url("/static/image/random.svg");
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-position: center;
    mask-position: center;
    -webkit-mask-size: contain;
    mask-size: contain
}

.videos-action-btn.ghost {
    background: #262626;
    color: #f3f4f5;
    border-color: var(--feed-card-border)
}

.videos-action-btn.ghost:hover {
    border-color: var(--accent)
}

.videos-subfilters {
    display: flex;
    gap: 8px;
    flex-wrap: wrap
}

.video-subfilter {
    padding: 9px 14px;
    border-radius: 12px;
    background: #262626;
    border: 1px solid var(--feed-card-border);
    color: #d7dbdd;
    font-weight: 700;
    font-size: 13px;
    cursor: pointer;
    transition: background .18s ease, border-color .18s ease, color .18s ease
}

.video-subfilter-text {
    display: inline-flex;
    align-items: center
}

.video-subfilter-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 24px;
    height: 22px;
    padding: 0 6px;
    margin-left: 8px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .08);
    color: #cfd3d6;
    font-size: 12px;
    font-weight: 800
}

.video-subfilter.active {
    background: #333;
    border-color: var(--accent);
    color: #fff
}

.video-subfilter.active .video-subfilter-count {
    background: rgba(255, 255, 255, .2);
    color: #fff
}

.videos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 16px;
    width: 100%
}

.video-card {
    background: var(--feed-card-bg);
    border: 1px solid var(--feed-card-border);
    border-radius: 0.75rem;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    padding: 0;
    transition: transform .2s ease;
    position: relative
}

.video-card:hover {
    transform: translateY(-2px)
}

.video-thumb {
    position: relative;
    width: 100%;
    padding-top: 56.25%;
    background: #181a1b;
    overflow: hidden;
    border-radius: 0.75rem 0.75rem 0 0;
    border-bottom: 1px solid var(--feed-card-border)
}

.video-card-pin {
    position: absolute;
    top: 10px;
    left: 10px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: none;
    background: #000000e0;
    padding: 0;
    box-shadow: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform .12s ease;
    z-index: 5
}

.video-card-pin img {
    width: 16px;
    height: 16px;
    display: block;
    filter: grayscale(1) brightness(.6);
    opacity: .85
}

.video-card-pin:hover {
    transform: translateY(-1px)
}

.video-card-pin.is-pinned img {
    filter: none;
    opacity: 1
}

.videos-page .feed-card-preview {
    height: auto !important;
    aspect-ratio: 16/9
}

.videos-page .feed-card-preview img {
    height: 100%;
    width: 100%;
    object-fit: cover
}

.video-card .feed-card-preview-link {
    border-radius: 0.75rem 0.75rem 0 0
}

.video-thumb img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .25s ease
}

.video-thumb .video-thumb-preview {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
    pointer-events: none;
    z-index: 2;
    background: #000;
    object-fit: cover
}

.video-thumb img.video-thumb-preview[src=""],
.video-thumb img.video-thumb-preview:not([src]) {
    display: none
}

.video-thumb.has-preview .video-thumb-image {
    opacity: 0
}

.video-card:hover .video-thumb img {
    transform: scale(1.02)
}

.video-thumb-badge {
    position: absolute;
    bottom: 10px;
    right: 12px;
    background: rgba(0, 0, 0, .72);
    color: #fff;
    font-weight: 800;
    font-size: 13px;
    padding: 7px 11px;
    border-radius: 12px;
    backdrop-filter: blur(6px)
}

.video-thumb-meta {
    position: absolute;
    left: 12px;
    right: 12px;
    bottom: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #f5f5f5;
    font-size: 16px;
    font-weight: 800;
    text-shadow: 0 1px 2px rgba(0, 0, 0, .4)
}

.video-thumb-meta span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 8px;
    border-radius: 4px;
    background: #000000e0
}

.feed-card-info {
    padding: 14px;
    display: flex;
    flex-direction: column;
    gap: 10px
}

.videos-page .feed-card-info {
    justify-content: flex-start !important;
}

.video-card-top {
    display: flex;
    align-items: center;
    gap: 10px;
    justify-content: space-between;
    flex-wrap: nowrap
}

.video-card-actions {
    display: inline-flex;
    align-items: center;
    gap: 10px
}

.video-card-vote {
    border: 1px solid var(--feed-card-border);
    outline: none;
    padding: 9px 12px;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 800;
    cursor: pointer;
    background: transparent;
    color: #FB932B;
    transition: border-color .18s ease, color .18s ease, background .18s ease, box-shadow .2s ease, transform .18s ease;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    height: 40px;
    min-width: 40px;
    position: relative;
    overflow: visible
}

.video-card-vote.has-votes {
    border-color: #ff7a00
}

.video-card-vote:hover {
    border-color: #ff7a00;
    color: #ffa94d;
    background: rgba(255, 169, 77, .12);
    transform: translateY(-1px) scale(1.03)
}

.video-card-vote:not(.is-voted):hover {
    animation: vote-hover-pulse .9s ease-in-out infinite
}

.video-author {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--feed-card-author-color);
    font-weight: 800;
    font-size: 16px;
    text-decoration: none
}
.video-author .video-card-comment {
    color: var(--feed-card-desc-color);
    font-size: 14px
}

.video-author-link {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: inherit
}

.video-author-link:hover .feed-card-username {
    color: var(--accent)
}

.video-author-link img,
.feed-card-avatar {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    object-fit: cover;
    border: none
}

.video-vote-count {
    color: currentColor;
    font-size: 16px;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    line-height: 1
}

.video-icon {
    object-fit: contain;
    display: inline-block
}

.video-icon--meta {
    width: 22px;
    height: 22px
}

.video-icon--votes {
    width: 18px;
    height: 18px
}

.video-stat {
    display: inline-flex;
    align-items: center;
    gap: 6px
}

.video-reactions {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--feed-card-stats-color);
    font-size: 13px;
    font-weight: 700
}

.feed-card-title {
    font-size: 20px;
    font-weight: 900;
    color: var(--feed-card-title-color);
    line-height: 1.2 !important;
    max-height: calc(2 * 1.2em);
    min-height: calc(2 * 1.2em);
    margin-bottom: -10px;
    overflow: hidden;
    display: block !important;
    white-space: normal !important
}

.feed-card-description {
    font-size: 13px;
    color: var(--feed-card-desc-color);
    line-height: 1.4
}

.video-card-meta {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-top: 0
}

.video-card-stats {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--feed-card-stats-color);
    font-size: 18px;
    font-weight: 800;
    height: 36px;
    width: 100%;
    justify-content: flex-start;
    flex-wrap: nowrap;
    overflow: hidden
}

.video-channel-link {
    color: var(--feed-card-stats-color);
    font-size: 18px;
    font-weight: 800;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    flex: 0 1 auto;
    min-width: 0;
    max-width: calc(100% - 90px);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis
}

.video-channel-views {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-left: 8px;
    color: var(--feed-card-stats-color);
    flex: 0 0 auto;
    white-space: nowrap
}

.video-channel-link:hover {
    text-decoration: underline
}

.video-card-vote-content {
    display: inline-flex;
    align-items: center;
    gap: 6px
}

.video-card-vote.is-voted {
    background-color: #5e471c;
    border-color: #ff7a00;
    color: #ff7a00;
    animation: vote-fire 1.2s ease-in-out infinite
}

.video-card-vote.is-voted::before,
.video-card-vote.is-voted::after {
    content: "";
    position: absolute;
    width: 12px;
    height: 12px;
    background: url("/static/image/votes.svg") no-repeat center / contain;
    opacity: 0;
    pointer-events: none
}

.video-card-vote.is-voted::before {
    left: 2px;
    top: -6px;
    animation: vote-confetti 1.1s ease-out infinite
}

.video-card-vote.is-voted::after {
    right: 2px;
    top: -8px;
    animation: vote-confetti 1.1s ease-out .2s infinite
}

@keyframes vote-fire {
    0% {
        box-shadow: 0 0 8px rgba(255, 122, 0, .28), 0 0 16px rgba(255, 122, 0, .18);
        transform: translateY(0)
    }
    50% {
        box-shadow: 0 0 14px rgba(255, 122, 0, .45), 0 0 28px rgba(255, 122, 0, .35);
        transform: translateY(-1px)
    }
    100% {
        box-shadow: 0 0 8px rgba(255, 122, 0, .28), 0 0 16px rgba(255, 122, 0, .18);
        transform: translateY(0)
    }
}

@keyframes vote-confetti {
    0% {
        opacity: 0;
        transform: translateY(0) scale(.6) rotate(0deg)
    }
    30% {
        opacity: .85
    }
    100% {
        opacity: 0;
        transform: translateY(-14px) scale(1) rotate(25deg)
    }
}

@keyframes vote-hover-pulse {
    0% {
        box-shadow: 0 0 0 rgba(255, 169, 77, 0)
    }
    50% {
        box-shadow: 0 0 18px rgba(255, 169, 77, .45)
    }
    100% {
        box-shadow: 0 0 0 rgba(255, 169, 77, 0)
    }
}

.video-card-comment {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: var(--feed-card-desc-color);
    font-size: 14px;
    cursor: pointer;
    white-space: nowrap
}

.video-card-comment-icon {
    display: inline-flex
}


.video-tooltip {
    position: fixed;
    z-index: 9999;
    background: rgba(24, 24, 24, .96);
    color: #fff;
    padding: 8px 10px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, .12);
    font-size: 20px;
    font-weight: 600;
    max-width: 320px;
    word-break: break-word;
    pointer-events: none;
    transition: opacity .12s ease
}

.video-card-sep {
    height: 1px;
    background: rgba(255, 255, 255, .08);
    margin: 4px 0
}

.video-card-categories {
    display: flex;
    flex-wrap: nowrap;
    gap: 10px;
    align-items: center;
    height: 40px;
    flex: 1;
    min-width: 0
}

.video-category-more {
    color: var(--muted);
    font-size: 16px;
    font-weight: 700;
    height: 40px;
    display: inline-flex;
    align-items: center;
    cursor: pointer
}

.video-category-tag {
    padding: 0 12px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, .12);
    color: #d7dbdd;
    background: #292B2FBF;
    font-weight: 800;
    font-size: 16px;
    letter-spacing: .02em;
    height: 40px;
    display: inline-flex;
    align-items: center;
    line-height: 1;
    cursor: pointer;
    transition: border-color .15s ease
}

.video-category-tag:hover {
    border-color: rgba(255, 255, 255, .28)
}

.video-card-admin {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: nowrap;
    margin-top: 6px;
    height: 40px;
    max-width: none;
    width: 100%;
    justify-content: space-between
}

.video-card-edit {
    border: none;
    background: #000000e0;
    color: #fff;
    border-radius: 10px;
    width: 36px;
    height: 36px;
    min-width: 36px;
    min-height: 36px;
    flex: 0 0 36px;
    padding: 0;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 5
}

.video-card-edit:hover {
    transform: translateY(-1px)
}

.video-card-edit-icon {
    width: 18px;
    height: 18px;
    display: block;
    background: #fff;
    -webkit-mask-image: url("/static/image/more.svg");
    mask-image: url("/static/image/more.svg");
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-position: center;
    mask-position: center;
    -webkit-mask-size: contain;
    mask-size: contain
}
.video-status-control:hover .video-status-menu {
    display: flex
}

.video-status {
    padding: 0 12px;
    border-radius: 999px;
    font-size: 16px;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    letter-spacing: .02em;
    height: 40px;
    line-height: 1
}

.video-status-control {
    position: relative;
    display: inline-flex
}

.video-status-menu {
    position: absolute;
    bottom: 100%;
    right: 0;
    background: #1a1a1a;
    border: 1px solid var(--feed-card-border);
    border-radius: 10px;
    overflow: hidden;
    z-index: 20;
    display: none;
    flex-direction: column;
    min-width: 180px
}

.video-status-control.open .video-status-menu {
    display: flex
}

.video-status-menu-item {
    border: none;
    background: transparent;
    color: #fff;
    font-size: 15px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .01em;
    height: 44px;
    padding: 8px 12px;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    border-bottom: 1px solid rgba(255, 255, 255, .08)
}

.video-status-menu-item:last-child {
    border-bottom: none
}

.video-status-menu-icon {
    width: 16px;
    height: 16px;
    filter: brightness(0) invert(1)
}

.video-status.approved {
    background: #789D2A;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, .15)
}

.video-status.pending {
    background: #878884;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, .15)
}

.video-status.rejected {
    background: rgba(239, 68, 68, .2);
    color: #fff;
    border: 1px solid rgba(239, 68, 68, .35)
}

.video-status.viewed {
    background: #60A5FA;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, .15)
}

.video-status-icon {
    width: 16px;
    height: 16px;
    filter: brightness(0) invert(1)
}

.video-card-btn {
    border: none;
    outline: none;
    padding: 11px 16px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 900;
    cursor: pointer;
    background: var(--accent);
    color: #fff;
    transition: transform .12s ease, background .18s ease;
    min-width: 150px;
    text-align: center
}

.video-card-btn:hover {
    transform: translateY(-1px);
    background: #6a8a25
}

.videos-empty {
    text-align: center;
    color: var(--muted);
    font-weight: 800;
    padding: 40px 0;
    font-size: 16px
}

.videos-empty.hidden {
    display: none
}


.video-offer-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(80, 80, 80, .5);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    animation: modal-fadein .3s ease
}

.video-offer-modal.show {
    display: flex
}

.video-offer-modal-content {
    background: var(--card-bg);
    border-radius: 16px;
    border: 1px solid var(--feed-card-border);
    width: 90%;
    max-width: 900px;
    position: relative;
    animation: modalSlideIn .3s ease;
    overflow: hidden
}

.video-offer-modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: none;
    border: none;
    color: #989898;
    font-size: 24px;
    cursor: pointer;
    padding: 4px;
    transition: color .2s;
    z-index: 10
}

.video-offer-modal-close:hover {
    color: #fff
}

.video-offer-layout {
    display: flex;
    gap: 0;
    align-items: center
}

.video-offer-preview {
    flex: 0 0 45%;
    background: #181a1b;
    border: 1px solid var(--feed-card-border);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    aspect-ratio: 16/9;
    border-radius: 1rem;
    min-height: 0;
    max-height: none;
    margin: 0 0 0 32px
}

.video-offer-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0
}

.video-offer-preview-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    color: #555;
    font-size: 18px;
    font-weight: 600
}

.video-offer-preview-placeholder svg {
    opacity: .4
}

.video-offer-form {
    flex: 1;
    padding: 32px;
    display: flex;
    flex-direction: column;
    gap: 16px
}

.video-offer-label {
    color: var(--muted);
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 4px
}

.video-offer-input {
    background: var(--input-bg);
    border: 1px solid var(--feed-card-border);
    border-radius: 12px;
    padding: 14px 16px;
    color: #fff;
    font-size: 18px;
    font-weight: 600;
    outline: none;
    transition: border-color .2s
}

.video-offer-input:focus {
    border-color: var(--accent)
}

.video-offer-input::placeholder {
    color: #555
}

.video-offer-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 8px
}

.video-offer-status {
    display: flex;
    flex-direction: column;
    gap: 8px
}

.video-offer-checkbox {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #bdbdbd;
    font-size: 17px;
    font-weight: 600
}

.video-offer-select {
    background: var(--input-bg);
    border: 1px solid var(--feed-card-border);
    border-radius: 12px;
    padding: 10px 16px;
    color: #fff;
    font-size: 18px;
    font-weight: 600;
    outline: none;
    width: 100%;
    height: 57px;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23888' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center
}

.video-offer-select:focus {
    border-color: var(--accent)
}

.video-offer-select option {
    background: #1a1a1a;
    color: #fff;
    padding: 10px 16px;
    font-size: 18px;
    font-weight: 600;
    min-height: 57px
}

.video-offer-select option:checked,
.video-offer-select option:hover {
    background: #515556;
    color: #fff
}

.video-offer-dropdown {
    position: relative;
    width: 100%
}

.video-offer-dropdown-toggle {
    background: var(--input-bg);
    border: 1px solid var(--feed-card-border);
    border-radius: 12px;
    padding: 10px 16px;
    color: #fff;
    font-size: 18px;
    font-weight: 600;
    outline: none;
    width: 100%;
    height: 57px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    transition: border-color .2s
}

.video-offer-dropdown-toggle:hover,
.video-offer-dropdown.open .video-offer-dropdown-toggle {
    border-color: var(--accent)
}

.video-offer-dropdown-text {
    flex: 1;
    text-align: left
}

.video-offer-dropdown-arrow {
    transition: transform .2s;
    opacity: .6
}

.video-offer-dropdown.open .video-offer-dropdown-arrow {
    transform: rotate(180deg)
}

.video-offer-dropdown-menu {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    background: #1a1a1a;
    border: 1px solid var(--feed-card-border);
    border-radius: 12px;
    overflow: hidden;
    z-index: 100;
    display: none;
    flex-direction: column
}

.video-offer-dropdown.open .video-offer-dropdown-menu {
    display: flex
}

.video-offer-dropdown-item {
    background: transparent;
    border: none;
    border-bottom: 1px solid var(--feed-card-border);
    color: #fff;
    font-size: 18px;
    font-weight: 600;
    padding: 10px 16px;
    height: 57px;
    cursor: pointer;
    text-align: left;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: background .15s
}

.video-offer-dropdown-item:last-child {
    border-bottom: none
}

.video-offer-dropdown-item:hover {
    background: #333
}

.video-offer-dropdown-item.selected {
    background: #515556
}

.video-offer-cat {
    padding: 10px 16px;
    border-radius: 20px;
    background: transparent;
    border: 1px solid var(--feed-card-border);
    color: #d7dbdd;
    font-size: 17px;
    font-weight: 700;
    cursor: pointer;
    transition: all .18s
}

.video-offer-cat:hover {
    border-color: var(--accent)
}

.video-offer-cat.selected {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff
}

.video-offer-textarea {
    background: var(--input-bg);
    border: 1px solid var(--feed-card-border);
    border-radius: 12px;
    padding: 14px 16px;
    color: #fff;
    font-size: 18px;
    font-weight: 600;
    outline: none;
    resize: none;
    min-height: 80px;
    transition: border-color .2s;
    font-family: inherit
}

.video-offer-textarea:focus {
    border-color: var(--accent)
}

.video-offer-textarea::placeholder {
    color: #555
}

.video-offer-submit {
    background: var(--accent);
    color: #fff;
    border: none;
    border-radius: 12px;
    padding: 16px;
    font-size: 20px;
    font-weight: 800;
    cursor: pointer;
    transition: background .2s, transform .12s;
    margin-top: auto
}

.video-offer-submit:hover {
    background: #6a8a25;
    transform: translateY(-1px)
}

.video-offer-submit.is-error {
    background: #b91c1c
}

.video-offer-submit.is-error:hover {
    background: #991b1b
}

.video-offer-submit:disabled {
    opacity: .5;
    cursor: not-allowed;
    transform: none
}

@keyframes modal-fadein {
    from {
        opacity: 0
    }

    to {
        opacity: 1
    }
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: scale(.95) translateY(20px)
    }

    to {
        opacity: 1;
        transform: none
    }
}

@media (max-width:900px) {
    .videos-grid {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr))
    }

    .video-offer-layout {
        flex-direction: column
    }

    .video-offer-preview {
        flex: none;
        min-height: 200px
    }
}

@media (max-width:768px) {
    .videos-page {
        width: 100%;
        max-width: 100%;
        padding: 16px 12px 96px
    }

    .videos-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px
    }

    .videos-actions {
        width: 100%;
        justify-content: space-between
    }

    .videos-tabs {
        width: 100%;
        padding-right: 28px
    }

    .videos-grid {
        grid-template-columns: 1fr
    }

    #offer-video-btn {
        position: fixed;
        left: 12px;
        right: 12px;
        bottom: 20px;
        z-index: 1200;
        border-radius: 6px;
        min-width: 0;
        width: auto;
        height: 52px;
        padding: 0 18px;
    }

    .video-card-btn {
        width: 100%
    }

    .video-offer-modal-content {
        max-width: 95%
    }

    .video-offer-form {
        padding: 20px
    }
}

.video-card-pin {
    position: absolute;
    top: 10px;
    left: 10px;
    width: 34px;
    height: 34px;
    border-radius: 10px;
    border: none;
    background: #000000e0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform .12s ease;
    z-index: 5
}

.video-card-pin img {
    width: 18px;
    height: 18px;
    display: block;
    filter: brightness(0) invert(1)
}

.video-card-pin:hover {
    transform: translateY(-1px)
}

.video-card-pin.is-pinned {
    background: #000000e0
}

.video-card-pin-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #000000e0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    z-index: 5
}

.video-card-pin-badge img {
    width: 16px;
    height: 16px;
    display: block;
    filter: none;
    opacity: 1
}

