* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: #000;
    overflow: hidden;
    color: white;
}

.app {
    height: 100vh;
    display: flex;
}

/* Sidebar */
.sidebar {
    width: 240px;
    background: rgba(22, 24, 35, 0.9);
    padding: 20px 0;
    display: flex;
    flex-direction: column;
    border-right: 1px solid rgba(255, 255, 255, 0.1);
}

.logo {
    display: flex;
    align-items: center;
    padding: 0 20px 30px;
    font-size: 24px;
    font-weight: bold;
}

.logo::before {
    content: "🎵";
    margin-right: 10px;
}

.nav-item {
    display: flex;
    align-items: center;
    padding: 12px 20px;
    cursor: pointer;
    transition: background 0.2s;
    color: rgba(255, 255, 255, 0.75);
}

.nav-item:hover {
    background: rgba(255, 255, 255, 0.05);
}

.nav-item.active {
    color: #fe2c55;
    background: rgba(254, 44, 85, 0.1);
}

.nav-item::before {
    margin-right: 15px;
    font-size: 20px;
}

.nav-item:nth-child(2)::before { content: "🏠"; }
.nav-item:nth-child(3)::before { content: "🔍"; }
.nav-item:nth-child(4)::before { content: "👥"; }
.nav-item:nth-child(5)::before { content: "💬"; }
.nav-item:nth-child(6)::before { content: "📺"; }

/* Main content */
.main-content {
    flex: 1;
    position: relative;
    overflow: hidden;
}

.refresh-btn {
    position: absolute;
    top: 20px;
    left: 20px;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    padding: 8px 12px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 14px;
    z-index: 100;
    backdrop-filter: blur(10px);
    transition: all 0.3s;
}

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

.video-container {
    height: 100vh;
    position: relative;
    transition: transform 0.5s ease;
}

.video-item {
    height: 100vh;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    background: #000;
}

.video-item video {
    width: 576px;
    height: 1024px;
    max-width: 100vw;
    max-height: 100vh;
    object-fit: cover;
    border-radius: 8px;
}

.video-item.placeholder {
    background: linear-gradient(45deg, #ff6b6b, #4ecdc4, #45b7d1, #f9ca24);
    background-size: 400% 400%;
    animation: gradientShift 8s ease-in-out infinite;
}

.video-item.placeholder:nth-child(2) {
    background: linear-gradient(45deg, #667eea, #764ba2, #f093fb, #f5576c);
    background-size: 400% 400%;
}

.video-item.placeholder:nth-child(3) {
    background: linear-gradient(45deg, #ffecd2, #fcb69f, #a8edea, #fed6e3);
    background-size: 400% 400%;
}

@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.video-content {
    text-align: center;
    z-index: 2;
}

.video-title {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.video-description {
    font-size: 16px;
    opacity: 0.9;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

/* Right sidebar controls */
.right-controls {
    position: absolute;
    right: 20px;
    bottom: 100px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    z-index: 10;
}

.control-btn {
    width: 48px;
    height: 48px;
    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.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

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

.like-count, .comment-count, .share-count {
    color: white;
    font-size: 12px;
    text-align: center;
    margin-top: 5px;
}

/* Bottom info */
.bottom-info {
    position: absolute;
    bottom: 20px;
    left: 20px;
    right: 80px;
    z-index: 10;
}

.creator-info {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(45deg, #fe2c55, #ff6b6b);
    margin-right: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

.username {
    font-weight: bold;
    font-size: 16px;
}

.description {
    font-size: 14px;
    opacity: 0.9;
    margin-bottom: 10px;
}

.hashtags {
    font-size: 14px;
    color: #fe2c55;
}

/* Crash screen */
.crash-screen {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #000;
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.crash-screen.active {
    display: flex;
}

.crash-icon {
    font-size: 80px;
    margin-bottom: 20px;
    opacity: 0.5;
}

.crash-message {
    font-size: 24px;
    margin-bottom: 10px;
    color: #ff4757;
}

.crash-submessage {
    font-size: 16px;
    opacity: 0.7;
    margin-bottom: 30px;
}

/* Navigation arrows */
.nav-arrows {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 20px;
    z-index: 20;
}

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

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

.nav-arrow:disabled {
    opacity: 0.3;
    cursor: not-allowed;
    transform: scale(0.9);
}

/* Scroll indicator */
.scroll-indicator {
    position: absolute;
    right: 60px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 8px;
    opacity: 0.6;
}

.scroll-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: white;
    transition: all 0.3s;
}

.scroll-dot.active {
    background: #fe2c55;
    transform: scale(1.5);
}

/* Like effect */
.like-effect {
    position: absolute;
    color: #fe2c55;
    font-size: 80px;
    pointer-events: none;
    z-index: 100;
    animation: likeAnimation 1.5s ease-out forwards;
}

@keyframes likeAnimation {
    0% {
        opacity: 1;
        transform: scale(0) rotate(0deg);
    }
    50% {
        opacity: 1;
        transform: scale(1.2) rotate(-10deg);
    }
    100% {
        opacity: 0;
        transform: scale(1.5) rotate(20deg) translateY(-100px);
    }
}

/* Double click overlay */
.double-click-area {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 15;
    cursor: pointer;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .sidebar {
        display: none;
    }
    
    .main-content {
        width: 100%;
    }
}

/* Chrome extension simulation */
.chrome-extension {
    position: fixed;
    top: 20px;
    right: 20px;
    width: 280px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
    z-index: 2000;
    display: none;
    overflow: hidden;
}

.chrome-extension.active {
    display: block;
    animation: slideIn 0.6s ease-out;
}

.extension-header {
    background: #4285f4;
    color: white;
    padding: 8px 12px;
    font-size: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.extension-logo {
    width: 16px;
    height: 16px;
    background: white;
    border-radius: 3px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    color: #4285f4;
    font-weight: bold;
}

.extension-body {
    padding: 16px;
    color: #333;
}

.extension-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 8px;
    color: #e74c3c;
    opacity: 1;
    transition: opacity 1s ease-in-out;
}

.extension-message {
    font-size: 14px;
    color: #666;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

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