/* Video Preview Styles */
.short-video-preview {
    position: fixed;
    z-index: 1000;
    cursor: pointer;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    /* No transitions to prevent any position shift */
}

/* Hover effect completely disabled to prevent position shift */
.short-video-preview:hover {
    /* No changes on hover - stays completely static */
}

/* Active/click feedback - only subtle opacity change, no position shift */
.short-video-preview:active {
    opacity: 0.9;
}

.short-video-preview video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.preview-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.6);
    color: white;
    padding: 8px;
    border-radius: 50%;
    font-size: 18px;
    pointer-events: none;
}

.reels-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: #000;
  z-index: 99999;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
}

.reels-modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  z-index: 100001;
  background: rgba(255, 255, 255, 0.2);
  border: none;
  color: white;
  font-size: 24px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  transition: background 0.2s ease;
}
.reels-modal-close:hover {
  background: rgba(255, 255, 255, 0.4);
}

.reels-video-container {
  width: 100%;
  height: 100%;
  max-width: 500px; /* Typical phone width */
  max-height: 100vh;
  position: relative;
}

.reels-video-slider {
  height: 100%;
  transition: transform 0.4s ease-in-out;
}

.reels-video-slide {
  width: 100%;
  height: 100vh;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
}

.reels-video-slide video {
  width: 100%;
  height: 100%;
  object-fit: contain; /* Contain to see whole video */
}

.reels-video-info {
  position: absolute;
  bottom: 80px;
  left: 20px;
  right: 20px;
  color: white;
  text-shadow: 0 1px 4px rgba(0,0,0,0.7);
  z-index: 1;
}
.reels-video-info h3 {
  margin: 0 0 5px;
  font-size: 1.2rem;
}
.reels-video-info p {
  margin: 0;
  font-size: 0.9rem;
}

.reels-audio-toggle {
  position: absolute;
  bottom: 20px;
  right: 20px;
  background: rgba(0, 0, 0, 0.5);
  color: white;
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: 50%;
  width: 44px;
  height: 44px;
  z-index: 1;
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 18px;
}

/* Modal Styles */
.video-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.98);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    touch-action: pan-y;
}

/* TikTok-style fullscreen mode */
.video-modal-overlay.tiktok-style {
    background: #000;
}

/* Force fullscreen fallback */
.video-modal-overlay.force-fullscreen {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    z-index: 999999 !important;
    background: #000 !important;
}

.video-modal-overlay.force-fullscreen .video-modal-content {
    width: 100vw !important;
    height: 100vh !important;
    max-width: none !important;
    max-height: none !important;
    margin: 0 !important;
    border-radius: 0 !important;
}

.video-modal-overlay.force-fullscreen .tiktok-video-container {
    width: 100vw !important;
    height: 100vh !important;
}

.video-modal-overlay.force-fullscreen .tiktok-video {
    width: 100vw !important;
    height: 100vh !important;
    object-fit: cover !important;
}

.video-modal-overlay.fullscreen-mode {
    background: #000;
}

.video-modal-overlay.fullscreen-mode .video-modal-content {
    width: 100vw;
    height: 100vh;
    max-width: none;
    max-height: none;
    margin: 0;
    border-radius: 0;
}

.tiktok-video-container {
    width: 100vw;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #000;
}

.tiktok-video {
    width: 100vw;
    height: 100vh;
    object-fit: cover;
    cursor: pointer;
}

/* TikTok-style controls overlay */
.video-modal-overlay.tiktok-style .modal-close-btn {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 10002;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.video-modal-overlay.tiktok-style .video-info {
    position: fixed;
    bottom: 100px;
    left: 20px;
    right: 20px;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
    backdrop-filter: blur(5px);
    border-radius: 0;
    padding: 20px;
    z-index: 10001;
}

.video-modal-overlay.tiktok-style .fullscreen-controls {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10001;
}

.video-modal-content {
    position: relative;
    width: 90%;
    max-width: 400px;
    height: 90%;
    max-height: 700px;
    display: flex;
    flex-direction: column;
}

.modal-close-btn {
    position: absolute;
    top: -40px;
    right: 0;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    font-size: 24px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease;
    z-index: 10001;
}

.modal-close-btn:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* Improved Loading and Error States */
.short-video-loading,
.short-video-error {
    position: fixed;
    bottom: 20px;
    right: 20px;
    padding: 12px 16px;
    border-radius: 8px;
    z-index: 1000;
    font-size: 12px;
    font-weight: 500;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    animation: slideInFromRight 0.3s ease;
    max-width: 200px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.short-video-loading {
    background: rgba(0, 0, 0, 0.8);
    color: white;
}

.short-video-error {
    background: rgba(220, 38, 38, 0.9);
    color: white;
}

.loading-spinner {
    color: white;
    text-align: center;
    padding: 40px;
    font-size: 18px;
}

.no-videos {
    color: white;
    text-align: center;
    padding: 40px;
    font-size: 18px;
}

@keyframes slideInFromRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.video-container {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.video-wrapper {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #000;
    border-radius: 12px;
    overflow: hidden;
}

.modal-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
}

.video-info {
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 15px;
    border-radius: 0 0 12px 12px;
    margin-top: -5px;
}

.video-info h3 {
    margin: 0 0 8px 0;
    font-size: 18px;
    font-weight: 600;
}

.video-info p {
    margin: 0 0 8px 0;
    font-size: 14px;
    line-height: 1.4;
}

.video-info small {
    font-size: 12px;
    opacity: 0.8;
}

.video-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    color: white;
}

/* Enhanced Full-Screen Controls */
.fullscreen-controls {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 15px;
    background: rgba(0, 0, 0, 0.8);
    padding: 12px 24px;
    border-radius: 25px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.fullscreen-nav-btn {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 16px;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.fullscreen-nav-btn:hover:not(:disabled) {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

.fullscreen-nav-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.video-progress {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 10px;
    color: white;
    font-size: 14px;
}

.progress-bar {
    flex: 1;
    height: 4px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 2px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: #ff6b6b;
    border-radius: 2px;
    transition: width 0.1s ease;
}

/* Enhanced TikTok-style UI */
.tiktok-style .video-info h3 {
    font-size: 18px;
    margin-bottom: 8px;
    color: white;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
}

.tiktok-style .video-info p {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8);
}

.tiktok-style .video-info small {
    color: rgba(255, 255, 255, 0.7);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8);
}

/* Side navigation indicators */
.video-side-nav {
    position: fixed;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 20px;
    z-index: 10001;
}

.side-nav-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    font-size: 20px;
    cursor: pointer;
    backdrop-filter: blur(10px);
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.side-nav-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

.side-nav-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

/* Video transition effects */
.video-transition {
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.video-transition.changing {
    transform: scale(0.95);
    opacity: 0.7;
}

.nav-btn {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    padding: 10px 15px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 5px;
}

.nav-btn:hover:not(:disabled) {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-1px);
}

.nav-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.video-counter {
    color: white;
    font-size: 14px;
    font-weight: 500;
}

/* TikTok-style mobile optimizations */
@media (max-width: 768px) {
    /* Ensure floating preview is visible on mobile */
    .short-video-preview {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        pointer-events: auto !important;
        box-shadow: 0 2px 15px rgba(0, 0, 0, 0.4) !important;
    }
    
    /* Mobile tap feedback without position shift */
    .short-video-preview:active {
        filter: brightness(0.85) !important;
        box-shadow: 0 1px 10px rgba(0, 0, 0, 0.5) !important;
    }
    
    .tiktok-video {
        width: 100vw;
        height: 100vh;
        object-fit: cover;
    }
    
    .video-side-nav {
        right: 10px;
    }
    
    .side-nav-btn {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }
    
    .tiktok-style .video-info {
        bottom: 60px;
        left: 10px;
        right: 10px;
        padding: 15px;
    }
    
    .video-modal-content {
        width: 95%;
        height: 95%;
    }
    
    .modal-close-btn {
        top: -35px;
        right: 0;
        width: 35px;
        height: 35px;
        font-size: 18px;
    }
    
    .video-info h3 {
        font-size: 16px;
    }
    
    .video-info p {
        font-size: 14px;
    }
    
    .nav-btn {
        padding: 8px 12px;
        font-size: 12px;
    }
    
    .video-counter {
        font-size: 12px;
    }
    
    .fullscreen-controls {
        bottom: 20px;
    }
    
    .fullscreen-nav-btn {
        width: 35px;
        height: 35px;
        font-size: 14px;
    }
    
    .video-progress {
        font-size: 12px;
    }
    
    .progress-bar {
        height: 3px;
    }
}

/* Landscape Mobile */
@media (max-width: 768px) and (orientation: landscape) {
    .video-modal-content {
        max-width: 600px;
        height: 85%;
    }
    
    .video-info {
        padding: 10px 15px;
    }
    
    .video-controls {
        padding: 10px 0;
    }
}

/* Very Small Screens */
@media (max-width: 480px) {
    .preview-overlay {
        font-size: 14px;
        padding: 6px;
    }
    
    .fullscreen-controls {
        bottom: 15px;
        padding: 5px 10px;
    }
    
    .fullscreen-nav-btn {
        width: 30px;
        height: 30px;
        font-size: 12px;
    }
}

/* Animation for smooth transitions */
.video-modal-overlay {
    animation: fadeIn 0.3s ease;
}

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

/* Custom scrollbar for webkit browsers */
.video-modal-content::-webkit-scrollbar {
    display: none;
}

.video-modal-content {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* Enhanced Focus states for accessibility */
.nav-btn:focus,
.fullscreen-nav-btn:focus,
.reels-audio-toggle:focus,
.modal-close-btn:focus,
.reels-modal-close:focus,
.short-video-preview:focus {
    outline: 2px solid #ffffff;
    outline-offset: 2px;
    box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.3);
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .short-video-preview {
        border: 2px solid white;
    }
    
    .reels-audio-toggle,
    .fullscreen-nav-btn,
    .reels-modal-close {
        border: 2px solid white;
        background: rgba(0, 0, 0, 0.9);
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    .short-video-preview,
    .reels-audio-toggle,
    .fullscreen-nav-btn,
    .reels-modal-close,
    .short-video-loading,
    .short-video-error {
        transition: none;
        animation: none;
    }
} 

/* Audio Controls */
.audio-control {
    position: absolute;
    top: 8px;
    right: 8px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    border: none;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    font-size: 12px;
    transition: all 0.3s ease;
}

.audio-control:hover {
    background: rgba(0, 0, 0, 0.9);
    transform: scale(1.1);
}

.short-video-preview .audio-control {
    width: 20px;
    height: 20px;
    font-size: 10px;
    top: 4px;
    right: 4px;
}

/* Story Position Options */
.reels-story-right-center {
    justify-content: flex-end;
    align-items: center;
}

.reels-story-left-center {
    justify-content: flex-start;
    align-items: center;
}

.reels-story-center {
    justify-content: center;
    align-items: center;
}

.reels-story-right-center .reels-video-container {
    margin-right: 20px;
    margin-left: auto;
    max-width: 400px;
}

.reels-story-left-center .reels-video-container {
    margin-left: 20px;
    margin-right: auto;
    max-width: 400px;
}

.reels-story-center .reels-video-container {
    margin: 0 auto;
    max-width: 400px;
}

/* Legacy story position classes for backward compatibility */
.short-video-story-right-center {
    justify-content: flex-end;
    align-items: center;
}

.short-video-story-left-center {
    justify-content: flex-start;
    align-items: center;
}

.short-video-story-center {
    justify-content: center;
    align-items: center;
}

.short-video-story-right-center .short-video-modal-content {
    margin-right: 20px;
    margin-left: auto;
}

.short-video-story-left-center .short-video-modal-content {
    margin-left: 20px;
    margin-right: auto;
}

.short-video-story-center .short-video-modal-content {
    margin: 0 auto;
}

/* Enhanced Header with Audio Button */
.short-video-header {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    background: linear-gradient(to bottom, rgba(0,0,0,0.8) 0%, transparent 100%);
    z-index: 20;
}

.audio-button {
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.audio-button:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.05);
}

.audio-button i {
    font-size: 14px;
}

/* Video Info Styling */
.video-info {
    text-align: center;
    color: white;
    text-shadow: 0 1px 3px rgba(0,0,0,0.8);
}

.video-info h3 {
    margin: 0 0 5px 0;
    font-size: 18px;
    font-weight: 600;
}

.video-info p {
    margin: 0;
    font-size: 14px;
    opacity: 0.9;
    line-height: 1.4;
}

/* Responsive Audio Controls */
@media (max-width: 768px) {
    .audio-control {
        width: 28px;
        height: 28px;
        font-size: 14px;
    }
    
    .short-video-preview .audio-control {
        width: 24px;
        height: 24px;
        font-size: 12px;
    }
    
    .audio-button {
        width: 40px;
        height: 40px;
    }
    
    .audio-button i {
        font-size: 16px;
    }
}

/* Audio Control Animation */
.audio-control i,
.audio-button i {
    transition: transform 0.2s ease;
}

.audio-control:active i,
.audio-button:active i {
    transform: scale(0.9);
}

/* Muted State Visual Feedback */
.short-video-preview.muted .audio-control,
.short-video-modal.muted .audio-button {
    background: rgba(255, 0, 0, 0.7);
}

.short-video-preview.muted .audio-control:hover,
.short-video-modal.muted .audio-button:hover {
    background: rgba(255, 0, 0, 0.9);
} 

/* ============================================
   Preview Size Options - 16 sizes available
   All sizes use 9:16 aspect ratio (vertical video)
   ============================================ */

/* Tiny Sizes */
.short-video-preview-tiny {
    width: 30px !important;
    height: 53px !important;
}

.short-video-preview-micro {
    width: 40px !important;
    height: 71px !important;
}

/* Small Sizes */
.short-video-preview-extra-small {
    width: 45px !important;
    height: 80px !important;
}

.short-video-preview-small {
    width: 55px !important;
    height: 98px !important;
}

.short-video-preview-compact {
    width: 60px !important;
    height: 107px !important;
}

/* Medium Sizes */
.short-video-preview-medium {
    width: 70px !important;
    height: 124px !important;
}

.short-video-preview-standard {
    width: 80px !important;
    height: 142px !important;
}

.short-video-preview-regular {
    width: 90px !important;
    height: 160px !important;
}

/* Large Sizes */
.short-video-preview-large {
    width: 100px !important;
    height: 178px !important;
}

.short-video-preview-big {
    width: 110px !important;
    height: 196px !important;
}

.short-video-preview-extra-large {
    width: 120px !important;
    height: 213px !important;
}

/* Extra Large Sizes */
.short-video-preview-huge {
    width: 140px !important;
    height: 249px !important;
}

.short-video-preview-massive {
    width: 160px !important;
    height: 284px !important;
}

.short-video-preview-giant {
    width: 180px !important;
    height: 320px !important;
}

/* Optimized Sizes */
.short-video-preview-mobile-optimized {
    width: 65px !important;
    height: 116px !important;
}

.short-video-preview-desktop-optimized {
    width: 95px !important;
    height: 169px !important;
}

/* ============================================
   Responsive adjustments for all sizes
   Scales down on smaller screens
   ============================================ */

@media (max-width: 1024px) {
    /* 
     * REMOVED: Responsive size overrides for smaller screens
     * Now the backend size settings are respected on all screen sizes
     * Users can choose appropriate sizes for their needs
     */
}

@media (max-width: 768px) {
    /* 
     * REMOVED: Responsive size overrides for tablets/mobile
     * Now the backend size settings are respected on all screen sizes
     * Users can choose "Mobile Optimized" size if they want smaller previews on mobile
     */
}

@media (max-width: 480px) {
    /* Ensure preview is always visible on mobile */
    .short-video-preview {
        z-index: 9999 !important;
        position: fixed !important;
    }
    
    /* 
     * REMOVED: Responsive size overrides for mobile
     * Now the backend size settings are respected on all screen sizes
     * Users can choose "Mobile Optimized" size if they want smaller previews on mobile
     */
} 

/* Preview Position Options - Updated to work with new class system */
.short-video-preview.bottom-right,
.short-video-preview-bottom-right {
    bottom: 20px;
    right: 20px;
    top: auto;
    left: auto;
}

.short-video-preview.bottom-left,
.short-video-preview-bottom-left {
    bottom: 20px;
    left: 20px;
    top: auto;
    right: auto;
}

.short-video-preview.bottom-center,
.short-video-preview-bottom-center {
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    top: auto;
    right: auto;
}

.short-video-preview.top-right,
.short-video-preview-top-right {
    top: 20px;
    right: 20px;
    bottom: auto;
    left: auto;
}

.short-video-preview.top-left,
.short-video-preview-top-left {
    top: 20px;
    left: 20px;
    bottom: auto;
    right: auto;
}

.short-video-preview.top-center,
.short-video-preview-top-center {
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    bottom: auto;
    right: auto;
}

.short-video-preview.right-center,
.short-video-preview-right-center {
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    bottom: auto;
    left: auto;
}

.short-video-preview.left-center,
.short-video-preview-left-center {
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    bottom: auto;
    right: auto;
}

.short-video-preview.center,
.short-video-preview-center {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    bottom: auto;
    right: auto;
}

/* Responsive adjustments for center positions */
@media (max-width: 768px) {
    .short-video-preview.bottom-center,
    .short-video-preview-bottom-center,
    .short-video-preview.top-center,
    .short-video-preview-top-center {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .short-video-preview.right-center,
    .short-video-preview-right-center,
    .short-video-preview.left-center,
    .short-video-preview-left-center {
        top: 50%;
        transform: translateY(-50%);
    }
    
    .short-video-preview.center,
    .short-video-preview-center {
        transform: translate(-50%, -50%);
    }
}

@media (max-width: 480px) {
    .short-video-preview.bottom-center,
    .short-video-preview-bottom-center,
    .short-video-preview.top-center,
    .short-video-preview-top-center {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .short-video-preview.right-center,
    .short-video-preview-right-center,
    .short-video-preview.left-center,
    .short-video-preview-left-center {
        top: 50%;
        transform: translateY(-50%);
    }
    
    .short-video-preview.center,
    .short-video-preview-center {
        transform: translate(-50%, -50%);
    }
} 

/* Fullscreen Button */
.fullscreen-button {
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    margin-left: 10px;
}

.fullscreen-button:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.05);
}

.fullscreen-button i {
    font-size: 14px;
}

/* Fullscreen Modal Styles */
.short-video-modal.fullscreen-mode {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    z-index: 999999 !important;
    background: #000 !important;
    border-radius: 0 !important;
}

.short-video-modal.fullscreen-mode .short-video-modal-content {
    width: 100vw !important;
    height: 100vh !important;
    max-width: none !important;
    max-height: none !important;
    margin: 0 !important;
    border-radius: 0 !important;
}

.short-video-modal.fullscreen-mode .short-video-container {
    width: 100vw !important;
    height: 100vh !important;
}

.short-video-modal.fullscreen-mode video {
    width: 100vw !important;
    height: 100vh !important;
    object-fit: cover !important;
}

/* Enhanced Header with Audio and Fullscreen Buttons */
.short-video-header {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    background: linear-gradient(to bottom, rgba(0,0,0,0.8) 0%, transparent 100%);
    z-index: 20;
}

.short-video-header .controls-right {
    display: flex;
    align-items: center;
    gap: 10px;
} 

/* Preview audio toggle button */
.reels-audio-toggle.preview-audio-toggle {
    position: absolute;
    bottom: 8px;
    right: 8px;
    width: 28px;
    height: 28px;
    font-size: 12px;
    background: rgba(0, 0, 0, 0.7);
    border: 1px solid rgba(255,255,255,0.3);
}

/* Preview close/dismiss button */
.preview-close-btn {
    position: absolute;
    top: 4px;
    right: 4px;
    width: 20px;
    height: 20px;
    font-size: 14px;
    font-weight: bold;
    background: rgba(0, 0, 0, 0.7);
    border: none;
    border-radius: 50%;
    color: white;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 11;
    line-height: 1;
    padding: 0;
    transition: background 0.2s ease;
}

.preview-close-btn:hover {
    background: rgba(255, 0, 0, 0.8);
}

.preview-close-btn:focus {
    outline: 2px solid white;
    outline-offset: 1px;
}

/* Responsive adjustments for preview buttons */
@media (max-width: 480px) {
    .preview-close-btn {
        width: 18px;
        height: 18px;
        font-size: 12px;
        top: 3px;
        right: 3px;
    }
    
    .reels-audio-toggle.preview-audio-toggle {
        width: 24px;
        height: 24px;
        font-size: 10px;
        bottom: 6px;
        right: 6px;
    }
} 