/* Vertical Video Feed - TikTok Style */

* {
    -webkit-tap-highlight-color: transparent;
}

/* Main Container */
.vvf-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: #000;
    z-index: 99999;
    overflow: hidden;
}

.vvf-feed {
    position: relative;
    width: 100%;
    height: 100%;
    overflow-y: scroll;
    scroll-snap-type: y mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none; /* Firefox */
}

.vvf-feed::-webkit-scrollbar {
    display: none; /* Chrome, Safari */
}

/* Video Item */
.vvf-video-item {
    position: relative;
    width: 100%;
    height: 100vh;
    scroll-snap-align: start;
    scroll-snap-stop: always;
}

.vvf-video-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    background: #000;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Video Element */
.vvf-video {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #000;
}

.vvf-video.portrait {
    object-fit: cover;
}

/* Video Overlay */
.vvf-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 80px;
    padding: 20px;
    background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, transparent 100%);
    color: white;
    z-index: 10;
}

/* Author Info */
.vvf-author {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.vvf-author-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid #fff;
    object-fit: cover;
}

.vvf-author-name {
    font-size: 16px;
    font-weight: 700;
    color: #fff;
}

.vvf-follow-btn {
    margin-left: auto;
    padding: 6px 20px;
    background: #fe2c55;
    border: none;
    border-radius: 4px;
    color: #fff;
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
}

/* Video Info */
.vvf-video-title {
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 8px 0;
    line-height: 1.4;
}

.vvf-video-description {
    font-size: 14px;
    line-height: 1.5;
    margin: 0;
    opacity: 0.9;
}

.vvf-video-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 8px;
}

.vvf-tag {
    color: #69c9d0;
    font-weight: 600;
    font-size: 14px;
}

/* Action Buttons (Right Side) */
.vvf-actions {
    position: absolute;
    right: 12px;
    bottom: 80px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    z-index: 10;
}

.vvf-action-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    background: none;
    border: none;
    color: #fff;
    cursor: pointer;
    transition: transform 0.2s;
}

.vvf-action-btn:active {
    transform: scale(0.9);
}

.vvf-action-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(255,255,255,0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    backdrop-filter: blur(10px);
}

.vvf-action-btn.liked .vvf-action-icon {
    background: #fe2c55;
}

.vvf-action-count {
    font-size: 12px;
    font-weight: 600;
}

/* Close Button */
.vvf-close-btn {
    position: fixed;
    top: 20px;
    left: 20px;
    width: 40px;
    height: 40px;
    background: rgba(0,0,0,0.5);
    border: none;
    border-radius: 50%;
    color: #fff;
    font-size: 24px;
    cursor: pointer;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
}

/* Progress Indicator */
.vvf-progress {
    position: fixed;
    top: 10px;
    right: 20px;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    background: rgba(0,0,0,0.5);
    padding: 8px 16px;
    border-radius: 20px;
    z-index: 20;
    backdrop-filter: blur(10px);
}

/* Loading Spinner */
.vvf-loading {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 50px;
    height: 50px;
    border: 4px solid rgba(255,255,255,0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: vvf-spin 1s linear infinite;
}

@keyframes vvf-spin {
    to { transform: translate(-50%, -50%) rotate(360deg); }
}

/* Muted Indicator */
.vvf-muted-indicator {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0,0,0,0.7);
    color: #fff;
    padding: 16px 24px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    backdrop-filter: blur(10px);
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s;
}

.vvf-muted-indicator.show {
    opacity: 1;
}

/* Sound Button */
.vvf-sound-btn {
    position: fixed;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    background: rgba(0,0,0,0.5);
    border: none;
    border-radius: 50%;
    color: #fff;
    font-size: 20px;
    cursor: pointer;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
}

/* Swipe Indicator */
.vvf-swipe-indicator {
    position: fixed;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    color: #fff;
    font-size: 14px;
    opacity: 0.7;
    animation: vvf-bounce 2s infinite;
    z-index: 15;
}

@keyframes vvf-bounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(-10px); }
}

/* Comments Section (Hidden by default) */
.vvf-comments {
    position: fixed;
    bottom: -100%;
    left: 0;
    right: 0;
    height: 70%;
    background: #fff;
    border-radius: 16px 16px 0 0;
    z-index: 30;
    transition: bottom 0.3s;
    overflow: hidden;
}

.vvf-comments.show {
    bottom: 0;
}

.vvf-comments-header {
    padding: 16px 20px;
    border-bottom: 1px solid #eee;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.vvf-comments-title {
    font-size: 16px;
    font-weight: 700;
}

.vvf-comments-close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
}

.vvf-comments-list {
    padding: 20px;
    height: calc(100% - 120px);
    overflow-y: auto;
}

/* Responsive */
@media (min-width: 768px) {
    .vvf-container {
        max-width: 500px;
        left: 50%;
        transform: translateX(-50%);
        box-shadow: 0 0 40px rgba(0,0,0,0.5);
    }
}

/* Video Playing State */
.vvf-video-item.playing .vvf-video {
    /* Add any playing state styles */
}

.vvf-video-item.paused .vvf-overlay::after {
    content: '▶';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -150%);
    font-size: 80px;
    opacity: 0.8;
    animation: vvf-pulse 1s infinite;
}

@keyframes vvf-pulse {
    0%, 100% { opacity: 0.8; transform: translate(-50%, -150%) scale(1); }
    50% { opacity: 1; transform: translate(-50%, -150%) scale(1.1); }
}

/* Share Menu */
.vvf-share-menu {
    position: fixed;
    bottom: -100%;
    left: 0;
    right: 0;
    background: #fff;
    border-radius: 16px 16px 0 0;
    padding: 20px;
    z-index: 30;
    transition: bottom 0.3s;
}

.vvf-share-menu.show {
    bottom: 0;
}

.vvf-share-options {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-top: 20px;
}

.vvf-share-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    background: none;
    border: none;
    cursor: pointer;
}

.vvf-share-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
}

/* Fade in animation */
.vvf-fade-in {
    animation: vvf-fadeIn 0.3s;
}

@keyframes vvf-fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}
