/* TikTok Parody - Feed & Video Player Styles */

.feed-view {
    background: var(--primary-bg);
}

/* Video Container */
.video-container {
    width: 100%;
    height: 100%;
    overflow-y: scroll;
    scroll-snap-type: y mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.video-container::-webkit-scrollbar {
    display: none;
}

/* Video Item */
.video-item {
    width: 100%;
    height: 100vh;
    height: 100dvh;
    position: relative;
    scroll-snap-align: start;
    scroll-snap-stop: always;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-bg);
}

/* Video Element */
.video-player {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: var(--primary-bg);
}

/* Video Overlay */
.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    display: flex;
}

/* Left Side (tap to pause/play) */
.video-tap-area {
    flex: 1;
    pointer-events: all;
    cursor: pointer;
}

/* Right Side Actions */
.video-actions {
    position: absolute;
    right: 12px;
    bottom: 170px;
    display: flex;
    flex-direction: column;
    gap: 24px;
    align-items: center;
    pointer-events: all;
}

.action-btn {
    background: none;
    border: none;
    color: var(--text-primary);
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 0;
    transition: transform var(--transition);
}

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

.action-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
}

.action-btn svg {
    width: 32px;
    height: 32px;
    filter: drop-shadow(0 0 4px rgba(0, 0, 0, 0.8));
}

.action-count {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-primary);
    text-shadow: 0 0 4px rgba(0, 0, 0, 0.8);
}

/* Profile Picture Button */
.profile-btn {
    position: relative;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid var(--text-primary);
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.profile-btn img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-avatar-emoji {
    font-size: 24px;
    line-height: 1;
}

.profile-plus {
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 20px;
    background: var(--accent-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: bold;
    border: 2px solid var(--primary-bg);
}

/* Like Button Animation */
.like-btn.liked .action-icon {
    animation: heartBeat 0.5s ease;
    color: var(--accent-color);
}

@keyframes heartBeat {
    0%, 100% {
        transform: scale(1);
    }
    25% {
        transform: scale(1.3);
    }
    50% {
        transform: scale(1.1);
    }
}

/* Mute Button */
.mute-btn .action-icon svg {
    width: 28px;
    height: 28px;
}

/* Bottom Info */
.video-info {
    position: absolute;
    bottom: 70px;
    left: 0;
    right: 80px;
    padding: 20px 12px;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.6));
    pointer-events: none;
}

.video-username {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-primary);
    text-shadow: 0 0 4px rgba(0, 0, 0, 0.8);
}

.video-caption {
    font-size: 14px;
    color: var(--text-primary);
    line-height: 1.4;
    max-height: 60px;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    text-shadow: 0 0 4px rgba(0, 0, 0, 0.8);
}

.video-audio {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 12px;
    font-size: 13px;
    color: var(--text-primary);
    text-shadow: 0 0 4px rgba(0, 0, 0, 0.8);
}

.audio-icon {
    font-size: 14px;
}

/* Video Loading State */
.video-loading {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

/* Pause Indicator */
.pause-indicator {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    width: 80px;
    height: 80px;
    background: rgba(0, 0, 0, 0.6);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    opacity: 0;
    transition: all 0.2s ease;
}

.pause-indicator.show {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
}

.pause-indicator svg {
    width: 40px;
    height: 40px;
    color: white;
}

/* Video Controls (hidden by default, TikTok style) */
.video-player::-webkit-media-controls {
    display: none !important;
}

.video-player::-webkit-media-controls-enclosure {
    display: none !important;
}

/* Progress Bar (subtle at top) */
.video-progress {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: rgba(255, 255, 255, 0.3);
    z-index: 10;
}

.video-progress-fill {
    height: 100%;
    background: var(--text-primary);
    width: 0%;
    transition: width 0.1s linear;
}

/* Mobile Adjustments */
@media (max-width: 768px) {
    .video-actions {
        right: 8px;
        bottom: 150px;
        gap: 20px;
    }
    
    .action-icon {
        width: 40px;
        height: 40px;
        font-size: 28px;
    }
    
    .action-btn svg {
        width: 28px;
        height: 28px;
    }
    
    .profile-btn {
        width: 40px;
        height: 40px;
    }
    
    .video-info {
        right: 60px;
        padding: 16px 8px;
        bottom: 70px;
    }
    
    .video-username {
        font-size: 15px;
    }
    
    .video-caption {
        font-size: 13px;
    }
}

/* Navigation Arrows (Desktop) */
.nav-arrow {
    position: fixed;
    left: 24px;
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 50;
    transition: all var(--transition);
    opacity: 0.7;
}

.nav-arrow:hover {
    background: rgba(255, 255, 255, 0.25);
    opacity: 1;
    transform: scale(1.1);
}

.nav-arrow:active {
    transform: scale(0.95);
}

.nav-arrow.disabled {
    opacity: 0.3;
    cursor: not-allowed;
    pointer-events: none;
}

.nav-arrow-up {
    top: 50%;
    transform: translateY(-60px);
}

.nav-arrow-down {
    top: 50%;
    transform: translateY(12px);
}

.nav-arrow-up:hover {
    transform: translateY(-60px) scale(1.1);
}

.nav-arrow-down:hover {
    transform: translateY(12px) scale(1.1);
}

.nav-arrow svg {
    width: 24px;
    height: 24px;
}

/* Hide arrows on mobile */
@media (max-width: 768px) {
    .nav-arrow {
        display: none;
    }
}

/* Landscape Mode */
@media (orientation: landscape) and (max-height: 500px) {
    .video-actions {
        right: 8px;
        bottom: 90px;
        gap: 16px;
    }
    
    .video-info {
        bottom: 70px;
        padding: 12px;
    }
    
    .nav-arrow {
        left: 12px;
    }
    
    .nav-arrow-up {
        top: 50%;
        transform: translateY(-40px);
    }
    
    .nav-arrow-down {
        top: 50%;
        transform: translateY(8px);
    }
}
