@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&family=Space+Grotesk:wght@300;400;500;600;700&display=swap');

:root {
    --lv-accent: #FF3B3B; /* Crimson Red */
    --lv-accent-glow: rgba(255, 59, 59, 0.5);
    --lv-black: #080808;
    --lv-deep-space: #0F0000;
    --lv-surface: rgba(20, 20, 20, 0.8);
    --lv-text: #FFFFFF;
    --lv-text-muted: #A0A0A0;
    --lv-border: rgba(255, 59, 59, 0.15);
    --glass-bg: rgba(15, 0, 0, 0.85);
    --glass-border: rgba(255, 255, 255, 0.05);
    --gradient-cosmic: linear-gradient(135deg, #FF3B3B 0%, #660000 100%);
}

body {
    background: radial-gradient(circle at 50% 50%, #1a0000 0%, var(--lv-black) 100%);
    background-attachment: fixed;
    color: var(--lv-text);
    font-family: 'Outfit', sans-serif;
    margin: 0;
    overflow-x: hidden;
}

/* Red Starfield Effect */
body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(#ff0000, rgba(255,0,0,.1) 1px, transparent 40px),
        radial-gradient(#ffffff, rgba(255,255,255,.05) 1px, transparent 30px);
    background-size: 400px 400px, 300px 300px;
    background-position: 0 0, 50px 50px;
    opacity: 0.2;
    z-index: -1;
    pointer-events: none;
    animation: drift 100s linear infinite;
}

@keyframes drift {
    from { background-position: 0 0; }
    to { background-position: 400px 400px; }
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Space Grotesk', sans-serif;
}

/* Navbar - Universal Style */
.navbar {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--lv-border);
    padding: 1rem 2rem;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar-brand {
    font-size: 1.6rem;
    font-weight: 700;
    letter-spacing: -0.5px;
    background: linear-gradient(to right, #fff, var(--lv-accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: flex;
    align-items: center;
}

.navbar-brand i {
    font-size: 1.8rem;
    -webkit-text-fill-color: var(--lv-accent);
    margin-right: 12px;
    filter: drop-shadow(0 0 10px var(--lv-accent-glow));
}

.search-bar-container {
    max-width: 500px;
    width: 100%;
}

.search-bar {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--lv-border);
    border-radius: 12px;
    color: white;
    padding: 0.7rem 1.2rem;
    width: 100%;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.search-bar:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--lv-accent);
    box-shadow: 0 0 20px rgba(255, 59, 59, 0.2);
}

/* Floating Sidebar - Unique Layout */
.sidebar {
    width: 260px;
    height: calc(100vh - 120px);
    position: fixed;
    left: 20px;
    top: 100px;
    background: var(--lv-surface);
    backdrop-filter: blur(10px);
    border-radius: 24px;
    padding: 1.5rem 1rem;
    overflow-y: auto;
    border: 1px solid var(--lv-border);
    transition: all 0.3s ease;
}

.sidebar-item {
    display: flex;
    align-items: center;
    padding: 0.85rem 1.2rem;
    color: var(--lv-text-muted);
    text-decoration: none;
    border-radius: 14px;
    margin-bottom: 0.5rem;
    transition: all 0.2s;
    font-weight: 500;
}

.sidebar-item:hover {
    background-color: rgba(255, 59, 59, 0.08);
    color: var(--lv-text);
    transform: translateX(5px);
}

.sidebar-item.active {
    background: var(--gradient-cosmic);
    color: #fff;
    box-shadow: 0 4px 15px rgba(255, 59, 59, 0.3);
}

.sidebar-item i {
    margin-right: 1rem;
    font-size: 1.2rem;
    width: 24px;
    text-align: center;
}

/* Main Content */
.main-wrapper {
    margin-left: 300px;
    padding: 2rem 3rem 5rem 1rem;
}

/* Section Titles */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.section-title {
    font-size: 1.8rem;
    font-weight: 700;
    position: relative;
    padding-left: 1rem;
}

.section-title::before {
    content: "";
    position: absolute;
    left: 0;
    top: 20%;
    height: 60%;
    width: 4px;
    background: var(--lv-accent);
    border-radius: 2px;
    box-shadow: 0 0 10px var(--lv-accent-glow);
}

/* Shorts Grid - Vertical Layout */
.shorts-grid {
    display: flex;
    gap: 1.5rem;
    overflow-x: auto;
    padding-bottom: 1.5rem;
    margin-bottom: 3rem;
    scrollbar-width: thin;
    scrollbar-color: var(--lv-border) transparent;
}

.short-card {
    min-width: 200px;
    aspect-ratio: 9/16;
    background: #111;
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    border: 1px solid var(--lv-border);
    transition: all 0.3s ease;
    cursor: pointer;
}

.short-card:hover {
    transform: scale(1.03);
    border-color: var(--lv-accent);
    box-shadow: 0 0 20px rgba(255, 59, 59, 0.2);
}

.short-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1.5rem 1rem;
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
}

.short-title {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 0.3rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Video Cards - Polished */
.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}

.video-card {
    background: rgba(255, 255, 255, 0.02);
    border-radius: 24px;
    overflow: hidden;
    border: 1px solid var(--glass-border);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.video-card:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--lv-border);
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
}

.thumbnail-container {
    position: relative;
    aspect-ratio: 16/9;
}

.thumbnail-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.duration-badge {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: rgba(0,0,0,0.8);
    backdrop-filter: blur(5px);
    padding: 2px 8px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
}

.video-meta {
    padding: 1.2rem;
}

.video-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.6rem;
    line-height: 1.3;
    color: #fff;
}

/* Action Buttons */
.action-btn {
    background: var(--lv-surface);
    border: 1px solid var(--lv-border);
    color: var(--lv-text);
    padding: 0.6rem 1.2rem;
    border-radius: 12px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    transition: all 0.3s;
}

.action-btn:hover {
    background: var(--gradient-cosmic);
    border-color: var(--lv-accent);
    box-shadow: 0 0 15px var(--lv-accent-glow);
}

.upload-btn {
    background: var(--gradient-cosmic);
    color: white;
    border: none;
    padding: 0.7rem 1.5rem;
    border-radius: 14px;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(255, 59, 59, 0.3);
}

/* Category Pill - Red */
.category-badge {
    background: rgba(255, 59, 59, 0.05);
    color: var(--lv-text-muted);
    padding: 0.6rem 1.4rem;
    border-radius: 30px;
    white-space: nowrap;
    cursor: pointer;
    border: 1px solid var(--lv-border);
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.3s;
}

.category-badge:hover, .category-badge.active {
    background: var(--lv-accent);
    color: #fff;
    border-color: var(--lv-accent);
    box-shadow: 0 0 15px var(--lv-accent-glow);
}

@media (max-width: 992px) {
    .sidebar {
        display: none;
    }
    .main-wrapper {
        margin-left: 0;
        padding: 1.5rem;
    }
}