.reels-caro {
    position: relative;
}

.reels-track {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    padding: 4px 2px 12px;
}

.reels-track::-webkit-scrollbar {
    display: none;
}

.reels-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 4;
    width: 44px;
    height: 44px;
    border: 1px solid #E5EAF3;
    border-radius: 50%;
    background: #fff;
    color: #0F141B;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 6px 20px rgba(15, 20, 27, .16);
    transition: .2s;
}

.reels-arrow.l {
    left: -18px;
}

.reels-arrow.r {
    right: -18px;
}

.reels-arrow:hover {
    background: #0F141B;
    color: #fff;
    border-color: #0F141B;
}

.reels-arrow.is-off {
    opacity: 0;
    pointer-events: none;
}

.reel {
    position: relative;
    flex: 0 0 auto;
    width: 206px;
    aspect-ratio: 9 / 16;
    border-radius: 16px;
    overflow: hidden;
    scroll-snap-align: start;
    cursor: pointer;
    color: #fff;
    background: #0F141B;
    box-shadow: 0 6px 24px rgba(15, 20, 27, .14);
    transition: transform .28s ease, box-shadow .28s ease;
}

.reel:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 44px rgba(15, 20, 27, .24);
}

.reel:focus-visible {
    outline: 3px solid #1E63E9;
    outline-offset: 3px;
}

.reel-poster {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .5s ease;
}

.reel:hover .reel-poster {
    transform: scale(1.05);
}

.reel-grad {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, .8) 4%, rgba(0, 0, 0, .1) 42%, transparent 62%);
}

.reel-play {
    position: absolute;
    top: 13px;
    right: 13px;
    width: 33px;
    height: 33px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .92);
    color: #23272E;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    padding-left: 2px;
    transition: transform .22s ease;
}

.reel:hover .reel-play {
    transform: scale(1.12);
}

.reel-feat {
    position: absolute;
    top: 13px;
    left: 13px;
    background: #E3A83C;
    color: #3D2C00;
    font-size: 10.5px;
    font-weight: 800;
    letter-spacing: .4px;
    padding: 4px 9px;
    border-radius: 20px;
}

.reel-disc {
    display: block;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .5px;
    opacity: .9;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.reel-name {
    display: block;
    font-size: 16px;
    font-weight: 800;
    line-height: 1.15;
    margin-top: 2px;
}

.reel-city {
    display: block;
    font-size: 12px;
    opacity: .85;
}

body.reel-open {
    overflow: hidden;
}

.reel-player {
    position: fixed;
    inset: 0;
    z-index: 1100;
    background: rgba(4, 8, 16, .94);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    padding: 20px;
}

.reel-player[hidden] {
    display: none;
}

.rp-stage {
    position: relative;
    width: min(420px, 92vw);
    aspect-ratio: 9 / 16;
    max-height: 92dvh;
    border-radius: 18px;
    overflow: hidden;
    background: #000;
    box-shadow: 0 30px 70px rgba(0, 0, 0, .6);
}

.rp-stage video {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #000;
    display: block;
}

.rp-info strong {
    display: block;
    font-size: 16px;
    font-weight: 700;
}

.rp-info span {
    display: block;
    font-size: 13.5px;
    opacity: .8;
    margin-top: 2px;
}

.rp-profile {
    pointer-events: auto;
    flex-shrink: 0;
    background: #fff;
    color: #0F141B;
    border-radius: 8px;
    padding: 9px 16px;
    font-size: 13.5px;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
}

.rp-profile:hover {
    color: #0F141B;
    background: #A9C4FF;
}

.rp-close,
.rp-nav {
    border: 1px solid rgba(255, 255, 255, .28);
    background: rgba(255, 255, 255, .10);
    color: #fff;
    border-radius: 50%;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 17px;
    flex-shrink: 0;
    transition: .2s;
}

.rp-close {
    position: absolute;
    top: 18px;
    right: 18px;
    width: 42px;
    height: 42px;
}

.rp-close:hover,
.rp-nav:hover {
    background: #fff;
    color: #0F141B;
}

@media (max-width: 767.98px) {
    .reels-arrow {
        display: none;
    }

    .reel {
        width: 168px;
    }

    .reel-name {
        font-size: 14px;
    }

    .rp-nav {
        display: none;
    }

    .rp-stage {
        width: 100%;
        border-radius: 0;
        max-height: 100dvh;
    }

    .reel-player {
        padding: 0;
    }
}

.reels-admin {
    padding: 8px 0 40px;
}

.ra-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 24px;
}

.ra-head h1 {
    font-size: 24px;
    font-weight: 700;
    color: #0F141B;
    margin: 0 0 4px;
}

.ra-head p {
    color: #8B94A3;
    font-size: 14px;
    margin: 0;
}

.ra-head-right {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.ra-quota {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #F2F5FA;
    border-radius: 999px;
    padding: 9px 16px;
    font-size: 13.5px;
    font-weight: 600;
    color: #5A6472;
}

.ra-quota i {
    color: #1E63E9;
}

.ra-quota.is-full {
    background: rgba(226, 75, 74, .10);
    color: #E24B4A;
}

.ra-quota.is-full i {
    color: #E24B4A;
}

.ra-btn {
    display: inline-flex;
    align-items: center;
    border: 0;
    border-radius: 10px;
    padding: 12px 22px;
    font-size: 14.5px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: .2s;
}

.ra-btn-primary {
    background: linear-gradient(135deg, #1E63E9, #0B3B94);
    color: #fff;
}

.ra-btn-primary:hover {
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(30, 99, 233, .3);
}

.ra-btn-ghost {
    border: 1px solid #DDE3EC;
    background: #fff;
    color: #0F141B;
}

.ra-btn-ghost:hover {
    background: #0F141B;
    color: #fff;
}

.ra-notice {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
    background: #FFFDF8;
    border: 1px solid #EDE7DA;
    border-radius: 14px;
    padding: 16px 18px;
    margin-bottom: 22px;
}

.ra-notice>i {
    color: #A9770F;
    font-size: 18px;
}

.ra-notice strong {
    display: block;
    font-size: 15px;
    color: #0F141B;
}

.ra-notice span {
    display: block;
    font-size: 13.5px;
    color: #8B94A3;
    margin-top: 2px;
}

.ra-notice>div {
    flex: 1 1 auto;
}

.ra-hint {
    font-size: 13px;
    color: #8B94A3;
    margin-bottom: 14px;
}

.ra-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
    gap: 18px;
}

.ra-item {
    background: #fff;
    border: 1px solid #E6EAEF;
    border-radius: 16px;
    overflow: hidden;
    cursor: grab;
    transition: box-shadow .2s ease, opacity .2s ease;
}

.ra-item:hover {
    box-shadow: 0 10px 28px rgba(15, 20, 27, .12);
}

.ra-item.is-dragging {
    opacity: .45;
    cursor: grabbing;
}

.ra-thumb {
    position: relative;
    aspect-ratio: 9 / 16;
    background: #0F141B;
}

.ra-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.ra-dur {
    position: absolute;
    left: 10px;
    bottom: 10px;
    background: rgba(0, 0, 0, .6);
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    padding: 2px 7px;
    border-radius: 5px;
}

.ra-feat-tag,
.ra-hidden-tag {
    position: absolute;
    top: 10px;
    left: 10px;
    font-size: 10.5px;
    font-weight: 800;
    padding: 4px 9px;
    border-radius: 20px;
}

.ra-feat-tag {
    background: #E3A83C;
    color: #3D2C00;
}

.ra-hidden-tag {
    background: rgba(226, 75, 74, .92);
    color: #fff;
}

.ra-preview {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 32px;
    height: 32px;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, .92);
    color: #0F141B;
    cursor: pointer;
    font-size: 11px;
}

.ra-body {
    padding: 12px 14px 4px;
}

.ra-body strong {
    display: block;
    font-size: 14px;
    color: #0F141B;
    line-height: 1.35;
}

.ra-body span {
    display: block;
    font-size: 12px;
    color: #8B94A3;
    margin-top: 4px;
}

.ra-actions {
    display: flex;
    gap: 6px;
    padding: 8px 14px 14px;
}

.ra-icon {
    width: 34px;
    height: 34px;
    border: 1px solid #E5EAF3;
    background: #fff;
    border-radius: 9px;
    color: #5A6472;
    cursor: pointer;
    font-size: 12px;
    transition: .2s;
}

.ra-icon:hover {
    background: #0F141B;
    color: #fff;
    border-color: #0F141B;
}

.ra-icon-danger:hover {
    background: #E24B4A;
    border-color: #E24B4A;
}

.ra-reason {
    margin: 0;
    padding: 0 14px 14px;
    font-size: 12px;
    color: #E24B4A;
}

.ra-drop {
    border: 2px dashed #D9E0EA;
    border-radius: 16px;
    padding: 28px 20px;
    text-align: center;
    cursor: pointer;
    background: #FBFCFE;
    transition: .2s;
}

.ra-drop:hover,
.ra-drop.is-over {
    border-color: #1E63E9;
    background: #F4F8FF;
}

.ra-drop-idle i {
    font-size: 30px;
    color: #1E63E9;
    display: block;
    margin-bottom: 12px;
}

.ra-drop-idle strong {
    display: block;
    font-size: 15px;
    color: #0F141B;
}

.ra-drop-idle span {
    display: block;
    font-size: 13px;
    color: #8B94A3;
    margin-top: 3px;
}

.ra-drop-preview {
    display: flex;
    gap: 16px;
    align-items: center;
    text-align: left;
}

.ra-drop-preview video {
    width: 92px;
    aspect-ratio: 9 / 16;
    object-fit: cover;
    border-radius: 10px;
    background: #000;
    flex-shrink: 0;
}

.ra-drop-meta span {
    display: block;
    font-size: 13px;
    color: #5A6472;
}

.ra-drop-meta span:first-child {
    font-weight: 600;
    color: #0F141B;
    word-break: break-all;
}

.ra-link {
    border: 0;
    background: 0;
    padding: 0;
    margin-top: 6px;
    color: #1E63E9;
    font-size: 13px;
    text-decoration: underline;
    cursor: pointer;
}

.ra-progress {
    display: inline-block;
    width: 90px;
    height: 5px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .3);
    overflow: hidden;
}

.ra-progress span {
    display: block;
    height: 100%;
    width: 0;
    background: #fff;
    transition: width .2s ease;
}

.ra-empty {
    text-align: center;
    padding: 56px 20px 62px;
    border: 1px dashed #DDE3EC;
    border-radius: 18px;
    background: #FBFCFE;
}

.ra-empty-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    border-radius: 18px;
    background: #EEF3FE;
    color: #1E63E9;
    font-size: 23px;
    margin-bottom: 18px;
}

.ra-empty h2 {
    font-size: 20px;
    font-weight: 700;
    color: #0F141B;
    margin: 0 0 8px;
}

.ra-empty p {
    color: #5A6472;
    font-size: 14.5px;
    margin: 0 auto 20px;
    max-width: 420px;
}

.ra-preview-overlay {
    position: fixed;
    inset: 0;
    z-index: 1100;
    background: rgba(4, 8, 16, .92);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.ra-preview-overlay[hidden] {
    display: none;
}

.ra-preview-overlay video {
    width: min(380px, 90vw);
    aspect-ratio: 9 / 16;
    border-radius: 16px;
    background: #000;
}

.ra-preview-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 42px;
    height: 42px;
    border: 1px solid rgba(255, 255, 255, .3);
    background: rgba(255, 255, 255, .1);
    color: #fff;
    border-radius: 50%;
    cursor: pointer;
}

@media (max-width: 575.98px) {
    .ra-grid {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }

    .ra-head-right {
        width: 100%;
    }

    .ra-head-right .ra-btn {
        flex: 1 1 auto;
        justify-content: center;
    }
}

.reel-stats {
    position: absolute;
    left: 12px;
    right: 12px;
    bottom: 62px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.reel-dur,
.reel-views {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: rgba(0, 0, 0, .55);
    backdrop-filter: blur(2px);
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: 6px;
    line-height: 1.4;
}

.reel-views i {
    font-size: 9px;
    opacity: .85;
}

.reel-count {
    position: absolute;
    top: 13px;
    right: 56px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: rgba(0, 0, 0, .6);
    backdrop-filter: blur(2px);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    padding: 4px 9px;
    border-radius: 20px;
}

.reel-count i {
    font-size: 9px;
}

.reel-lab {
    position: absolute;
    left: 12px;
    right: 12px;
    bottom: 12px;
    display: flex;
    align-items: center;
    gap: 9px;
}

.reel-avatar {
    width: 34px;
    height: 34px;
    flex-shrink: 0;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(255, 255, 255, .9);
    box-shadow: 0 2px 8px rgba(0, 0, 0, .4);
}

.reel-who {
    min-width: 0;
    flex: 1 1 auto;
}

.reel-name {
    display: block;
    font-size: 14px;
    font-weight: 800;
    line-height: 1.2;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.reel-pro {
    font-size: 10px;
    color: #E3A83C;
    margin-left: 3px;
}

.reel-disc {
    display: block;
    font-size: 11px;
    font-weight: 500;
    color: rgba(255, 255, 255, .82);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-top: 1px;
}

.rp-bars {
    position: absolute;
    top: 10px;
    left: 10px;
    right: 10px;
    z-index: 3;
    display: flex;
    gap: 4px;
}

.rp-bars.d-none {
    display: none;
}

.rp-bars span {
    flex: 1 1 0;
    height: 3px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .28);
    overflow: hidden;
}

.rp-bars span i {
    display: block;
    height: 100%;
    width: 0;
    background: #fff;
    border-radius: 999px;
}

.rp-bars span.is-done i {
    width: 100% !important;
}

.rp-loading {
    position: absolute;
    inset: 0;
    z-index: 4;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, .45);
}

.rp-loading[hidden] {
    display: none;
}

.rp-info {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 3;
    padding: 18px 16px 16px;
    background: linear-gradient(to top, rgba(0, 0, 0, .88), transparent);
    color: #fff;
    display: flex;
    align-items: center;
    gap: 12px;
    pointer-events: none;
}

.rp-info img {
    width: 42px;
    height: 42px;
    flex-shrink: 0;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(255, 255, 255, .85);
}

.rp-meta {
    flex: 1 1 auto;
    min-width: 0;
}

.rp-meta strong {
    display: block;
    font-size: 15.5px;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.rp-meta span {
    display: block;
    font-size: 13px;
    opacity: .8;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.rp-profile {
    pointer-events: auto;
    flex-shrink: 0;
    background: #fff;
    color: #0F141B;
    border-radius: 8px;
    padding: 9px 15px;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
}

.rp-profile:hover {
    color: #0F141B;
    background: #A9C4FF;
}

@media (max-width: 767.98px) {
    .reel-stats {
        bottom: 56px;
    }

    .reel-avatar {
        width: 30px;
        height: 30px;
    }

    .reel-name {
        font-size: 13px;
    }

    .reel-count {
        right: 50px;
    }

    .rp-info img {
        width: 36px;
        height: 36px;
    }

    .rp-meta strong {
        font-size: 14px;
    }
}

.reels-page {
    margin-bottom: 70px;
}

.reels-grid .reel {
    width: 100%;
}

.reels-track .reel {
    width: 206px;
}

.reels-block {
    margin-bottom: 8px;
}

.reels-window {
    display: flex;
    align-items: center;
    gap: 11px;
    background: #F6F9FF;
    border: 1px solid #DDE9FF;
    border-radius: 12px;
    padding: 13px 16px;
    margin: 20px 0 18px;
    font-size: 13.5px;
    color: #3B4452;
}

.reels-window i {
    color: #1E63E9;
    flex-shrink: 0;
}

.pf-reels {
    margin-top: 42px;
}

.pf-reels .reels-arrow.l {
    left: -14px;
}

.pf-reels .reels-arrow.r {
    right: -14px;
}

@media (max-width: 767.98px) {
    .reels-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 12px;
    }

    .reels-track .reel {
        width: 168px;
    }

    .reels-window {
        align-items: flex-start;
        font-size: 12.5px;
    }
}

@media (max-width: 400px) {
    .reels-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.reels-page {
    margin-bottom: 70px;
}

.reels-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
    gap: 24px;
}

.reels-grid .reel {
    width: 100%;
}

.reels-track .reel {
    width: 206px;
}

.reels-block {
    margin-bottom: 8px;
}

.reels-window {
    display: flex;
    align-items: center;
    gap: 11px;
    background: #F6F9FF;
    border: 1px solid #DDE9FF;
    border-radius: 12px;
    padding: 13px 16px;
    margin: 20px 0 18px;
    font-size: 13.5px;
    color: #3B4452;
}

.reels-window i {
    color: #1E63E9;
    flex-shrink: 0;
}

.pf-reels {
    margin-top: 42px;
}

.pf-reels .reels-arrow.l {
    left: -14px;
}

.pf-reels .reels-arrow.r {
    right: -14px;
}

@media (max-width: 767.98px) {
    .reels-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 12px;
    }

    .reels-track .reel {
        width: 168px;
    }

    .reels-window {
        align-items: flex-start;
        font-size: 12.5px;
    }
}

@media (max-width: 400px) {
    .reels-grid {
        grid-template-columns: 1fr 1fr;
    }
}