/* Sidebar Styles */
.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: 280px;
    height: 100vh;
    background: rgba(22, 24, 35, 0.95);
    backdrop-filter: blur(20px);
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    z-index: 1001;
}

.sidebar.show {
    transform: translateX(0);
}

.sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.sidebar-overlay.show {
    opacity: 1;
    pointer-events: all;
}

.sidebar-content {
    padding: 20px;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.sidebar-header h3 {
    color: #fe2c55;
    font-size: 24px;
    font-weight: bold;
    margin: 0;
}

.sidebar-close {
    background: none;
    border: none;
    color: #fff;
    font-size: 20px;
    cursor: pointer;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s;
}

.sidebar-close:hover {
    background: rgba(255, 255, 255, 0.1);
}

.sidebar-menu {
    flex: 1;
}

.menu-item {
    display: flex;
    align-items: center;
    padding: 15px 20px;
    margin: 5px 0;
    border-radius: 12px;
    text-decoration: none;
    color: #fff;
    transition: all 0.3s;
}

.menu-item:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateX(5px);
}

.menu-item i {
    width: 24px;
    margin-right: 15px;
    font-size: 20px;
}

/* Share Modal Styles */
.share-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.share-modal.show {
    opacity: 1;
    pointer-events: all;
}

.share-content {
    background: rgba(22, 24, 35, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    width: 90%;
    max-width: 500px;
    padding: 30px;
    transform: scale(0.9);
    transition: transform 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.share-modal.show .share-content {
    transform: scale(1);
}

.share-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.share-header h3 {
    color: #fff;
    font-size: 20px;
    font-weight: 600;
    margin: 0;
}

.share-close {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: #fff;
    font-size: 16px;
    cursor: pointer;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.share-close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg);
}

.share-options {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}

.share-option {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 16px;
    padding: 20px 15px;
    color: #fff;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    transition: all 0.3s;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.share-option:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.share-option i {
    font-size: 24px;
    margin-bottom: 2px;
}

.share-option span {
    font-size: 12px;
    font-weight: 500;
    text-align: center;
}

.share-option[data-platform="whatsapp"]:hover {
    background: rgba(37, 211, 102, 0.2);
    border-color: #25d366;
}

.share-option[data-platform="twitter"]:hover {
    background: rgba(29, 161, 242, 0.2);
    border-color: #1da1f2;
}

.share-option[data-platform="facebook"]:hover {
    background: rgba(59, 89, 152, 0.2);
    border-color: #3b5998;
}

.share-option[data-platform="telegram"]:hover {
    background: rgba(0, 136, 204, 0.2);
    border-color: #0088cc;
}

.share-option[data-platform="linkedin"]:hover {
    background: rgba(0, 119, 181, 0.2);
    border-color: #0077b5;
}

.share-option[data-platform="copy"]:hover {
    background: rgba(52, 152, 219, 0.2);
    border-color: #3498db;
}

/* Toast Notification */
.toast {
    position: fixed;
    bottom: 100px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.9);
    color: white;
    padding: 12px 20px;
    border-radius: 25px;
    z-index: 3000;
    font-size: 14px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    animation: toastSlideUp 0.3s ease, toastFadeOut 0.3s ease 2.7s forwards;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

@keyframes toastSlideUp {
    from {
        opacity: 0;
        transform: translate(-50%, 20px);
    }
    to {
        opacity: 1;
        transform: translate(-50%, 0);
    }
}

@keyframes toastFadeOut {
    from {
        opacity: 1;
        transform: translate(-50%, 0);
    }
    to {
        opacity: 0;
        transform: translate(-50%, -20px);
    }
}

/* Action button improvements */
.action-btn.liked i {
    color: #fe2c55;
    animation: heartPulse 0.3s ease;
}

@keyframes heartPulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

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

/* Mobile responsive improvements */
@media (max-width: 480px) {
    .share-content {
        width: 95%;
        padding: 25px 20px;
    }
    
    .share-options {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    
    .share-option {
        padding: 16px 12px;
    }
    
    .share-option i {
        font-size: 20px;
    }
    
    .share-option span {
        font-size: 11px;
    }
}

/* Sound Button Active State */
.sound-btn.active {
    color: #fe2c55;
}/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #000;
    color: #fff;
    overflow: hidden;
    position: relative;
    height: 100vh;
}

/* App Container */
.app-container {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
}

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

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

/* Video Item */
.video-item {
    position: relative;
    width: 100%;
    height: 100vh;
    scroll-snap-align: start;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #000;
}

.video-item video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    background: #000;
}

/* Video Overlay */
.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        to bottom,
        transparent 0%,
        transparent 70%,
        rgba(0,0,0,0.7) 100%
    );
    pointer-events: none;
}

/* Top Navigation */
.top-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 80px;
    background: linear-gradient(180deg, rgba(0,0,0,0.8) 0%, transparent 100%);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    z-index: 100;
    backdrop-filter: blur(10px);
}

.logo {
    font-size: 28px;
    font-weight: bold;
    color: #fe2c55;
    text-decoration: none;
}

.nav-icons {
    display: flex;
    gap: 20px;
}

.nav-icon {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

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

/* Side Actions */
.side-actions {
    position: absolute;
    right: 20px;
    bottom: 120px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    z-index: 50;
}

.action-btn {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    position: relative;
}

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

.action-btn i {
    font-size: 24px;
    margin-bottom: 2px;
}

.action-btn span {
    font-size: 12px;
    font-weight: 600;
}

.like-btn.liked {
    color: #fe2c55;
}

.share-btn.shared {
    color: #25d366;
}

/* Video Info */
.video-info {
    position: absolute;
    bottom: 20px;
    left: 20px;
    right: 90px;
    z-index: 50;
}

.video-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
    line-height: 1.4;
}

.video-description {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 12px;
    line-height: 1.4;
    max-height: 60px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
}

.video-meta {
    display: flex;
    gap: 15px;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.6);
}

.video-meta span {
    display: flex;
    align-items: center;
    gap: 4px;
}

/* Loading and Empty States */
.loading-state {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    z-index: 100;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top: 3px solid #fe2c55;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100vh;
    text-align: center;
    padding: 40px;
}

.empty-icon {
    font-size: 80px;
    color: #fe2c55;
    margin-bottom: 20px;
}

.empty-title {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 10px;
}

.empty-description {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 30px;
    line-height: 1.5;
}

.empty-button {
    background: #fe2c55;
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 25px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.empty-button:hover {
    background: #e0244a;
    transform: translateY(-2px);
}

/* Video Controls */
.video-controls {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 40;
}

.video-item:hover .video-controls {
    opacity: 1;
}

.play-pause-btn {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: #fff;
    font-size: 32px;
    cursor: pointer;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

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

/* Error Container */
.error-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100vh;
    text-align: center;
    padding: 20px;
}

.error-code {
    font-size: 120px;
    font-weight: bold;
    color: #fe2c55;
    margin-bottom: 20px;
}

.error-title {
    font-size: 32px;
    margin-bottom: 15px;
    color: #fff;
}

.error-message {
    font-size: 18px;
    color: #bbb;
    margin-bottom: 30px;
    max-width: 600px;
    line-height: 1.5;
}

.btn {
    display: inline-block;
    padding: 12px 24px;
    background: #fe2c55;
    color: white;
    text-decoration: none;
    border-radius: 25px;
    font-weight: 600;
    transition: all 0.3s;
}

.btn:hover {
    background: #e0244a;
    transform: translateY(-2px);
}

.home-link {
    margin-top: 20px;
}

.home-link a {
    color: #fe2c55;
    text-decoration: none;
}

.home-link a:hover {
    text-decoration: underline;
}

/* Mobile Optimizations */
@media (max-width: 768px) {
    .top-nav {
        height: 60px;
        padding: 0 15px;
    }

    .logo {
        font-size: 24px;
    }

    .nav-icon {
        width: 40px;
        height: 40px;
    }

    .side-actions {
        right: 15px;
        bottom: 100px;
        gap: 15px;
    }

    .action-btn {
        width: 48px;
        height: 48px;
    }

    .action-btn i {
        font-size: 20px;
    }

    .action-btn span {
        font-size: 10px;
    }

    .video-info {
        bottom: 15px;
        left: 15px;
        right: 75px;
    }

    .video-title {
        font-size: 16px;
    }

    .video-description {
        font-size: 13px;
    }
}

/* Landscape mobile orientation */
@media (orientation: landscape) and (max-height: 500px) {
    .top-nav {
        height: 50px;
    }
    
    .side-actions {
        bottom: 60px;
        gap: 10px;
    }
    
    .action-btn {
        width: 40px;
        height: 40px;
    }
    
    .video-info {
        bottom: 10px;
    }
}

/* Smooth scrolling for touch devices */
@media (pointer: coarse) {
    .video-container {
        scroll-behavior: smooth;
    }
}