/* Reels Widget on Feed - Facebook Style */
.tag_post_reels_widget {
    margin-bottom: 20px;
    background: #fff;
    border-radius: 8px;
    padding: 0;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

/* .tag_sidebar_widget_title {
    padding: 12px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
} */

.tag_reels_header {
    display: flex;
    align-items: center;
    gap: 8px;
}

.tag_reels_header svg {
    color: inherit;
}

/* .tag_sidebar_widget_title b {
    font-size: 17px;
    font-weight: 600;
    color: inherit;
    margin: 0;
}

.tag_sidebar_widget_title .refresh {
    color: #1877f2;
    font-size: 15px;
    text-decoration: none;
    font-weight: 500;
}

.tag_sidebar_widget_title .refresh:hover {
    text-decoration: underline;
} */

.tag_reels_grid {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: horizontal;
    -webkit-box-direction: normal;
    -ms-flex-direction: row;
    flex-direction: row;
    -ms-flex-wrap: nowrap;
    flex-wrap: nowrap;
    overflow-x: scroll;
    overflow-y: hidden;
    gap: 8px;
    padding: 16px;
    -webkit-overflow-scrolling: touch;
    scroll-behavior: smooth;
}

.tag_reels_grid::-webkit-scrollbar {
    display: none;
}

.tag_reel_item {
    position: relative;
    display: block;
    border-radius: 12px;
    overflow: hidden;
    min-width: 180px;
    max-width: 180px;
    width: 180px;
    height: 320px;
    text-decoration: none;
    transition: transform 0.2s;
    -webkit-flex-shrink: 0;
    -ms-flex-negative: 0;
    flex-shrink: 0;
    background: #000;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.tag_reel_item:hover {
    transform: scale(1.02);
}

.tag_reel_thumb {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    position: relative;
    background-color: #000;
}

.tag_reel_thumb video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.tag_reel_play {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 56px;
    height: 56px;
    background: rgba(0, 0, 0, 0.6);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.tag_reel_item:hover .tag_reel_play {
    background: rgba(0, 0, 0, 0.8);
    transform: translate(-50%, -50%) scale(1.1);
}

.tag_reel_play svg {
    margin-left: 3px;
}

.tag_reel_info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 12px 10px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.4) 70%, transparent 100%);
}

.tag_reel_title {
    color: white;
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 4px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.3;
}

.tag_reel_views {
    color: rgba(255, 255, 255, 0.9);
    font-size: 12px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.tag_reel_views svg {
    flex-shrink: 0;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .tag_reel_item {
        min-width: 160px;
        max-width: 160px;
        width: 160px;
        height: 280px;
    }

    .tag_reels_grid {
        padding: 12px;
        gap: 8px;
    }
}

/* Dark mode support */
body.night .tag_post_reels_widget {
    background: #242526;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

/* body.night .tag_sidebar_widget_title {
    border-bottom-color: #3a3b3c;
}*/

body.night .tag_reels_header svg {
    color: inherit;
}

body.night .tag_sidebar_widget_title b {
    color: inherit;
}

/* body.night .tag_sidebar_widget_title .refresh {
    color: #b0b3b8;
} */

body.night .tag_sidebar_widget_title .refresh:hover {
    color: inherit;
}
