:root {
    --primary: #6366f1;
    --primary-hover: #4f46e5;
    --accent: #8b5cf6;
    --bg: #0b0f1a;
    --card-bg: rgba(23, 32, 53, 0.6);
    --text: #f1f5f9;
    --text-muted: #94a3b8;
    --glass: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.08);
    --border: rgba(255, 255, 255, 0.1);
}

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

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--bg);
    color: var(--text);
    overflow: hidden;
    height: 100vh;
}

.background-blobs {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    filter: blur(120px);
    opacity: 0.4;
    background: radial-gradient(circle at 50% 50%, #0f172a 0%, #0b0f1a 100%);
}

.blob {
    position: absolute;
    border-radius: 50%;
    animation: move 20s infinite alternate cubic-bezier(0.45, 0, 0.55, 1);
}

.blob-1 {
    width: 600px;
    height: 600px;
    background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
    top: -200px;
    right: -100px;
}

.blob-2 {
    width: 500px;
    height: 500px;
    background: linear-gradient(135deg, #7c3aed 0%, #ec4899 100%);
    bottom: -150px;
    left: -100px;
    animation-delay: -5s;
}

.blob-3 {
    width: 400px;
    height: 400px;
    background: linear-gradient(135deg, #0ea5e9 0%, #22d3ee 100%);
    top: 40%;
    left: 20%;
    animation-delay: -10s;
}

@keyframes move {
    from { transform: translate(0, 0) scale(1); }
    to { transform: translate(100px, 50px) scale(1.1); }
}

.navbar {
    height: 80px;
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-content {
    max-width: 1400px;
    margin: 0 auto;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 1.5rem;
}

.nav-left {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.mobile-menu-btn {
    display: none;
}

.nav-link {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    transition: color 0.3s;
}

.nav-link:hover {
    color: var(--primary);
}

.upload-btn-container {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.6rem;
    font-weight: 800;
    background: linear-gradient(to right, #818cf8, #c084fc, #f472b6);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -0.02em;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    color: white;
    border: none;
    padding: 12px 28px;
    border-radius: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 10px 20px -5px rgba(99, 102, 241, 0.4);
}

.btn-primary:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(99, 102, 241, 0.5);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-secondary-outline {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text-muted);
    padding: 12px 24px;
    border-radius: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.btn-secondary-outline:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.2);
    color: white;
    transform: translateY(-2px);
}

.btn-secondary-outline:active {
    transform: translateY(0);
}


/* YouTube Channel Badge */
.yt-channel-badge {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.05);
    padding: 6px 14px;
    border-radius: 100px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: background 0.3s;
}
.yt-channel-badge:hover {
    background: rgba(255, 255, 255, 0.1);
}
.channel-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid rgba(255, 255, 255, 0.2);
}
.channel-name {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text);
}
.channel-label {
    font-size: 0.65rem;
    color: #ef4444;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 4rem 2rem;
}

.gallery-header {
    text-align: center;
    margin-bottom: 4rem;
}

.gallery-header h1 {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 1rem;
    letter-spacing: -0.025em;
}

.gallery-header p {
    color: var(--text-muted);
    font-size: 1.1rem;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
    gap: 1.5rem;
}

.card {
    background: var(--card-bg);
    border: 1px solid var(--glass-border);
    border-radius: 28px;
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    cursor: pointer;
}

.card:hover {
    transform: translateY(-12px) scale(1.02);
    border-color: rgba(99, 102, 241, 0.4);
    box-shadow: 0 30px 60px -15px rgba(0, 0, 0, 0.5);
    background: rgba(30, 41, 59, 0.8);
}

.card-preview {
    width: 100%;
    aspect-ratio: 16/9;
    background: #1e293b;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    cursor: pointer;
    overflow: hidden;
}

.preview-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(2px);
    z-index: 2;
}

.preview-overlay i {
    color: white;
    font-size: 3.5rem;
    transform: scale(0.8);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    opacity: 1; /* Override parent i opacity */
}

.card:hover .preview-overlay {
    opacity: 1;
}

.card:hover .preview-overlay i {
    transform: scale(1);
}

.card:hover .card-preview img {
    transform: scale(1.1);
}

.card-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.card-preview i {
    font-size: 3rem;
    color: var(--primary);
    opacity: 0.5;
}

.card-info {
    padding: 1.2rem;
}

.card-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.card-meta {
    font-size: 0.85rem;
    color: var(--text-muted);
    display: flex;
    justify-content: space-between;
}

.card-actions {
    position: absolute;
    top: 1rem;
    right: 1rem;
    display: flex;
    gap: 8px;
    opacity: 0;
    transition: opacity 0.3s;
}

.card:hover .card-actions {
    opacity: 1;
}

.btn-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: rgba(15, 23, 42, 0.7);
    backdrop-filter: blur(5px);
    border: 1px solid var(--border);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-icon:hover {
    background: white;
    color: var(--bg);
}

.btn-delete:hover {
    background: #ef4444;
    color: white;
    border-color: #ef4444;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
}

.modal-content {
    width: 95%;
    max-width: none;
    height: calc(100% - 180px); /* Leave space for header/footer */
    margin: 80px auto 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 10;
}

.modal-card {
    background: #1e293b;
    width: 90%;
    max-width: 500px;
    margin: 5% auto;
    padding: 2.5rem;
    border-radius: 24px;
    border: 1px solid var(--border);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.modal-card.wide-modal {
    max-width: 850px;
}

.modal-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
}

@media (max-width: 768px) {
    .modal-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
}

.modal-card h2 {
    margin-bottom: 2rem;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    gap: 12px;
}

.modal-card h2 i {
    color: #ff0000;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.form-group input, .form-group textarea, .form-group select {
    width: 100%;
    padding: 12px 16px;
    background: rgba(15, 23, 42, 0.5);
    border: 1px solid var(--border);
    border-radius: 10px;
    color: white;
    font-family: inherit;
    font-size: 0.95rem;
}

.form-group input:focus, .form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    background: rgba(15, 23, 42, 0.8);
}

/* Studio Input Group Styles */
.studio-input-group {
    margin-bottom: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.studio-input-group label {
    display: block;
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 600;
}

.studio-input-group input, 
.studio-input-group textarea, 
.studio-input-group select {
    width: 100%;
    padding: 12px 16px;
    background: rgba(15, 23, 42, 0.45);
    border: 1px solid var(--border);
    border-radius: 10px;
    color: white;
    font-family: inherit;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.studio-input-group input::placeholder, 
.studio-input-group textarea::placeholder {
    color: rgba(255, 255, 255, 0.3);
}

.studio-input-group input:focus, 
.studio-input-group textarea:focus, 
.studio-input-group select:focus {
    outline: none;
    border-color: var(--primary);
    background: rgba(15, 23, 42, 0.8);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.25);
}

.studio-input-group select option {
    background-color: var(--bg);
    color: var(--text);
}


.close-modal {
    position: absolute;
    top: 25px;
    right: 35px;
    color: white;
    font-size: 28px;
    background: rgba(255, 255, 255, 0.15);
    width: 54px;
    height: 54px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    cursor: pointer;
    z-index: 1010;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.close-publish, .close-upload {
    position: absolute;
    top: 30px;
    right: 50px;
    color: white;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    z-index: 1001;
}

.close-modal:hover {
    background: #ef4444;
    transform: rotate(90deg) scale(1.1);
    border-color: transparent;
}

.modal-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    color: white;
    width: 70px;
    height: 120px;
    font-size: 30px;
    cursor: pointer;
    z-index: 1005;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 20px;
    backdrop-filter: blur(5px);
}

.modal-nav-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    width: 90px;
    color: var(--primary);
}

.modal-nav-btn.prev { left: 30px; }
.modal-nav-btn.next { right: 30px; }

.modal-footer {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(to top, rgba(0,0,0,0.95) 0%, rgba(0,0,0,0.8) 50%, transparent 100%);
    padding: 50px 60px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1003;
}

.modal-info h3 {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: white;
    letter-spacing: -0.01em;
}

/* Toast Notifications */
.toast-container {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 12px;
    pointer-events: none;
}

.toast {
    background: rgba(15, 23, 42, 0.9);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
    padding: 16px 24px;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    min-width: 300px;
    max-width: 450px;
    display: flex;
    align-items: center;
    gap: 12px;
    pointer-events: auto;
    animation: toast-in 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

.toast i {
    font-size: 1.2rem;
}

.toast.success i { color: #10b981; }
.toast.error i { color: #ef4444; }
.toast.info i { color: #3b82f6; }

@keyframes toast-in {
    from { transform: translateX(120%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

@keyframes toast-out {
    from { transform: translateX(0); opacity: 1; }
    to { transform: translateX(120%); opacity: 0; }
}

.toast.hide {
    animation: toast-out 0.4s cubic-bezier(0.4, 0, 1, 1) forwards;
}

.modal-actions {
    display: flex;
    gap: 15px;
}

.badge {
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.badge-youtube {
    background: rgba(255, 0, 0, 0.1);
    color: #ff4d4d;
    border: 1px solid rgba(255, 0, 0, 0.2);
}

.badge-ratio {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
    font-family: 'Outfit', sans-serif;
    letter-spacing: 0.05em;
}

.badge-shorts {
    background: rgba(239, 68, 68, 0.1);
    color: #f87171;
    border: 1px solid rgba(239, 68, 68, 0.2);
}

.badge-long {
    background: rgba(59, 130, 246, 0.1);
    color: #60a5fa;
    border: 1px solid rgba(59, 130, 246, 0.2);
}

.badge-publishing {
    background: rgba(99, 102, 241, 0.1);
    color: #818cf8;
    border: 1px solid rgba(99, 102, 241, 0.2);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.5; }
    100% { opacity: 1; }
}

.btn-publish {
    background: #ff0000;
}
.btn-publish:hover {
    background: #cc0000;
    box-shadow: 0 4px 15px rgba(255, 0, 0, 0.3);
}

video, img {
    max-width: 100%;
    max-height: 100%;
    border-radius: 12px;
    box-shadow: 0 0 50px rgba(0,0,0,0.5);
}

/* Loader */
.loader-container {
    grid-column: 1 / -1;
    display: flex;
    justify-content: center;
    padding: 4rem;
}

/* 3-Pane App Layout */
.app-layout {
    display: flex;
    height: calc(100vh - 80px); /* Subtract navbar height */
    overflow: hidden;
    position: relative;
    width: 100vw;
}

/* Left Sidebar */
.left-sidebar {
    width: 260px;
    border-right: 1px solid var(--border);
    background: rgba(15, 23, 42, 0.45);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    overflow-y: auto;
    padding: 1.8rem 1.2rem;
    display: flex;
    flex-direction: column;
    gap: 2rem;
    flex-shrink: 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    z-index: 50;
}

.left-sidebar.collapsed {
    width: 80px;
    padding: 1.8rem 0.8rem;
}

.left-sidebar.collapsed .sidebar-section h3 span,
.left-sidebar.collapsed .menu-item span,
.left-sidebar.collapsed .menu-item .badge-count,
.left-sidebar.collapsed .tags-cloud {
    display: none;
}

.left-sidebar.collapsed .sidebar-section h3 {
    justify-content: center;
}

.left-sidebar.collapsed .menu-item {
    justify-content: center;
    padding: 12px;
}

.sidebar-toggle-desktop {
    position: absolute;
    top: 1rem;
    right: -12px;
    width: 24px;
    height: 24px;
    background: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    cursor: pointer;
    z-index: 60;
    font-size: 0.7rem;
    border: 2px solid var(--bg);
    transition: transform 0.3s;
}

.left-sidebar.collapsed .sidebar-toggle-desktop {
    transform: rotate(180deg);
}

.sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    z-index: 1000;
    display: none;
    opacity: 0;
    transition: opacity 0.3s;
}

.sidebar-section h3 {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 0.8rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.sidebar-menu {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.menu-item {
    display: flex;
    align-items: center;
    padding: 10px 14px;
    border-radius: 10px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-muted);
    transition: all 0.2s ease;
    gap: 12px;
    border: 1px solid transparent;
}

.menu-item i {
    font-size: 1rem;
    width: 20px;
    text-align: center;
    transition: transform 0.2s;
}

.menu-item:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text);
}

.menu-item:hover i {
    transform: scale(1.1);
}

.menu-item.active {
    background: rgba(99, 102, 241, 0.12);
    color: white;
    border: 1px solid rgba(99, 102, 241, 0.25);
    font-weight: 600;
}

.menu-item.active i {
    color: var(--primary);
}

.badge-count {
    margin-left: auto;
    background: rgba(255, 255, 255, 0.08);
    padding: 2px 8px;
    border-radius: 20px;
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 600;
}

.menu-item.active .badge-count {
    background: var(--primary);
    color: white;
}

.tags-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 4px;
}

.tag-badge {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border);
    color: var(--text-muted);
    padding: 6px 12px;
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 4px;
}

.tag-badge:hover {
    background: rgba(99, 102, 241, 0.08);
    border-color: rgba(99, 102, 241, 0.3);
    color: white;
    transform: translateY(-1px);
}

.tag-badge.active {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    border-color: transparent;
    color: white;
    box-shadow: 0 4px 10px rgba(99, 102, 241, 0.3);
}

.empty-text {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-style: italic;
    opacity: 0.6;
    padding: 4px;
}

/* Main Content Area */
.main-content {
    flex: 1;
    overflow-y: auto;
    padding: 2.5rem 3rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

.content-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border);
    padding-bottom: 1.5rem;
}

.header-left h1 {
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 0.4rem;
    background: linear-gradient(to right, #ffffff, #94a3b8);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -0.02em;
}

.header-left p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.search-bar-container {
    position: relative;
    width: 320px;
}

.search-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 0.9rem;
}

.search-bar-container input {
    width: 100%;
    padding: 12px 16px 12px 42px;
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid var(--border);
    border-radius: 12px;
    color: white;
    font-family: inherit;
    font-size: 0.9rem;
    transition: all 0.2s;
}

.search-bar-container input:focus {
    outline: none;
    border-color: var(--primary);
    background: rgba(15, 23, 42, 0.9);
    box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.2);
}

/* Right Sidebar */
.right-sidebar {
    width: 600px;
    border-left: 1px solid var(--border);
    background: rgba(15, 23, 42, 0.93);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), margin-right 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    flex-shrink: 0;
}

.right-sidebar.collapsed {
    margin-right: -600px;
    transform: translateX(100%);
    border-left-color: transparent;
}

.sidebar-header {
    padding: 0.8rem 1.5rem;
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(10px);
    z-index: 10;
}

.header-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-arrows {
    display: flex;
    gap: 8px;
}

.sidebar-header-title h2 {
    font-size: 1.3rem;
    font-weight: 700;
    color: white;
    letter-spacing: -0.01em;
}

.sidebar-body {
    flex: 1;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.preview-section {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.link-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 4px;
}

.link-row a {
    flex: 1;
    color: var(--primary);
    text-decoration: none;
    font-size: 0.85rem;
    word-break: break-all;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    padding: 8px 12px;
    background: rgba(0, 0, 0, 0.25);
    border-radius: 6px;
    border: 1px solid var(--border);
}

.link-row a:hover {
    text-decoration: underline;
    color: #818cf8;
}

.btn-copy-link {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border);
    color: var(--text-muted);
    width: 36px;
    height: 36px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-copy-link:hover {
    background: white;
    color: var(--bg);
}

.form-section {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.checkbox-group {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 4px 0;
}

.checkbox-group input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: var(--primary);
}

.checkbox-group label {
    margin-bottom: 0 !important;
    font-size: 0.9rem !important;
    font-weight: 600 !important;
    color: var(--text) !important;
    cursor: pointer;
}

.yt-status-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.yt-status-header span {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.btn-youtube-publish {
    width: 100%;
    background: #ff0000 !important;
    box-shadow: 0 8px 20px -4px rgba(255, 0, 0, 0.4) !important;
    justify-content: center;
}

.btn-youtube-publish:hover {
    background: #cc0000 !important;
    box-shadow: 0 8px 25px rgba(255, 0, 0, 0.5) !important;
}

.sidebar-footer {
    padding: 1.5rem;
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    bottom: 0;
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(10px);
    z-index: 10;
}

.action-group {
    display: flex;
    gap: 10px;
}

.btn-delete-action {
    background: transparent;
    border: 1px solid rgba(239, 68, 68, 0.35);
    color: #ef4444;
    padding: 12px 20px;
    border-radius: 14px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}

.btn-delete-action:hover {
    background: #ef4444;
    color: white;
    border-color: transparent;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(239, 68, 68, 0.4);
}

.btn-delete-action:active {
    transform: translateY(0);
}

.file-card-preview {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.3);
    color: white;
    gap: 1rem;
    padding: 2rem;
    text-align: center;
}

.file-card-preview i {
    font-size: 4rem;
    color: var(--primary);
}

.file-card-preview span {
    font-size: 0.95rem;
    font-weight: 600;
    word-break: break-all;
    max-width: 80%;
}

.card.selected {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.3), 0 30px 60px -15px rgba(0, 0, 0, 0.5);
    background: rgba(99, 102, 241, 0.1);
}

.card-checkbox {
    position: absolute;
    top: 1.2rem;
    left: 1.2rem;
    z-index: 6;
    width: 24px;
    height: 24px;
    cursor: pointer;
    accent-color: var(--primary);
    opacity: 0;
    transition: opacity 0.3s;
}

.selection-order {
    position: absolute;
    top: 1.2rem;
    left: 3.2rem;
    background: var(--primary);
    color: white;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 800;
    z-index: 5;
    box-shadow: 0 4px 10px rgba(99, 102, 241, 0.5);
    opacity: 0;
    transform: scale(0.5);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.card.selected .selection-order {
    opacity: 1;
    transform: scale(1);
}

.card:hover .card-checkbox, .card.selected .card-checkbox {
    opacity: 1;
}

.selection-bar {
    position: fixed;
    bottom: -100px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(15, 23, 42, 0.9);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 16px 32px;
    display: flex;
    align-items: center;
    gap: 40px;
    z-index: 1500;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    transition: bottom 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    min-width: 600px;
}

.selection-bar.show {
    bottom: 40px;
}

.selection-info {
    font-weight: 600;
    font-size: 1.1rem;
    color: white;
}

.selection-actions {
    display: flex;
    align-items: center;
    gap: 15px;
    flex: 1;
    justify-content: flex-end;
}

/* Custom Video Controls styling */
.video-player-container {
    position: relative;
    width: 100%;
    max-width: 100%;
    max-height: 80vh;
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 20px 50px rgba(0,0,0,0.8);
}

.custom-video-controls {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(transparent, rgba(11, 15, 26, 0.95));
    padding: 20px 25px;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 100;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.video-player-container:hover .custom-video-controls {
    opacity: 1;
}

.timeline-container {
    width: 100%;
    height: 10px;
    display: flex;
    align-items: center;
    cursor: pointer;
}

.timeline {
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 2px;
    position: relative;
    transition: height 0.1s;
}

.timeline-container:hover .timeline {
    height: 6px;
}

.play-progress {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    border-radius: 2px;
    width: 0%;
    position: relative;
}

.play-progress::after {
    content: '';
    position: absolute;
    right: -6px;
    top: 50%;
    transform: translateY(-50%) scale(0);
    width: 12px;
    height: 12px;
    background: white;
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(99, 102, 241, 0.8);
    transition: transform 0.1s;
}

.timeline-container:hover .play-progress::after {
    transform: translateY(-50%) scale(1);
}

.controls-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.left-controls, .right-controls {
    display: flex;
    align-items: center;
    gap: 16px;
}

.control-btn {
    background: transparent;
    border: none;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background 0.2s, color 0.2s;
}

.control-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    color: var(--primary);
}

.time-display {
    font-size: 0.85rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.8);
    font-family: 'Outfit', sans-serif;
}

.volume-container {
    display: flex;
    align-items: center;
    gap: 8px;
}

.volume-slider {
    width: 0;
    opacity: 0;
    transition: width 0.3s ease, opacity 0.3s ease;
    height: 4px;
    accent-color: var(--primary);
    cursor: pointer;
}

.volume-container:hover .volume-slider {
    width: 80px;
    opacity: 1;
}

/* Media Queries for Responsiveness */
@media (max-width: 1200px) {
    .right-sidebar {
        width: 500px;
    }
    .right-sidebar.collapsed {
        margin-right: -500px;
    }
}

@media (max-width: 1024px) {
    .left-sidebar {
        width: 240px;
    }
    .left-sidebar.collapsed {
        width: 80px;
    }
    .main-content {
        padding: 2rem;
    }
}

@media (max-width: 768px) {
    body {
        overflow: auto;
        height: auto;
    }

    .app-layout {
        height: auto;
        flex-direction: column;
        overflow: visible;
    }

    .navbar {
        height: 70px;
    }

    .mobile-menu-btn {
        display: flex;
    }

    .hide-mobile {
        display: none !important;
    }

    .left-sidebar {
        position: fixed;
        left: -280px;
        top: 0;
        height: 100vh;
        width: 280px;
        z-index: 1100;
        background: rgba(15, 23, 42, 0.98);
        box-shadow: 20px 0 50px rgba(0,0,0,0.5);
    }

    .left-sidebar.active {
        left: 0;
    }

    .left-sidebar.collapsed {
        width: 280px; /* Disable collapse style on mobile */
    }

    .left-sidebar.collapsed .sidebar-section h3 span,
    .left-sidebar.collapsed .menu-item span,
    .left-sidebar.collapsed .menu-item .badge-count,
    .left-sidebar.collapsed .tags-cloud {
        display: block;
    }

    .sidebar-toggle-desktop {
        display: none;
    }

    .main-content {
        padding: 1.5rem;
        width: 100%;
        overflow: visible;
    }

    .content-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1.5rem;
    }

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

    .right-sidebar {
        position: fixed;
        right: -100%;
        top: 0;
        width: 100%;
        height: 100vh;
        z-index: 1200;
        border-left: none;
    }

    .right-sidebar:not(.collapsed) {
        right: 0;
        margin-right: 0;
        transform: none;
    }

    .selection-bar {
        width: 90%;
        min-width: 0;
        flex-direction: column;
        gap: 20px;
        padding: 20px;
        bottom: -200px;
    }

    .selection-bar.show {
        bottom: 20px;
    }

    .selection-actions {
        width: 100%;
        justify-content: center;
        flex-wrap: wrap;
    }

    .selection-bar .studio-input-group {
        width: 100% !important;
    }

    .sidebar-overlay.active {
        display: block;
        opacity: 1;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
        gap: 1rem;
    }

    .card-title {
        font-size: 0.9rem;
    }

    .modal-card {
        padding: 1.5rem;
        width: 95%;
    }
}

/* Animated Audio Wave */
.audio-wave-container .wave-bar {
    width: 4px;
    height: 8px;
    background: var(--primary);
    border-radius: 2px;
    transition: height 0.2s ease;
}

.audio-wave-container.playing .wave-bar {
    animation: bounce 1s ease-in-out infinite alternate;
}

.audio-wave-container.playing .wave-bar:nth-child(1) { animation-duration: 0.4s; animation-delay: 0.1s; }
.audio-wave-container.playing .wave-bar:nth-child(2) { animation-duration: 0.6s; animation-delay: 0.2s; }
.audio-wave-container.playing .wave-bar:nth-child(3) { animation-duration: 0.3s; animation-delay: 0.15s; }
.audio-wave-container.playing .wave-bar:nth-child(4) { animation-duration: 0.5s; animation-delay: 0.3s; }
.audio-wave-container.playing .wave-bar:nth-child(5) { animation-duration: 0.7s; animation-delay: 0.05s; }
.audio-wave-container.playing .wave-bar:nth-child(6) { animation-duration: 0.4s; animation-delay: 0.25s; }
.audio-wave-container.playing .wave-bar:nth-child(7) { animation-duration: 0.6s; animation-delay: 0.12s; }
.audio-wave-container.playing .wave-bar:nth-child(8) { animation-duration: 0.3s; animation-delay: 0.22s; }
.audio-wave-container.playing .wave-bar:nth-child(9) { animation-duration: 0.5s; animation-delay: 0.08s; }
.audio-wave-container.playing .wave-bar:nth-child(10) { animation-duration: 0.4s; animation-delay: 0.18s; }

@keyframes bounce {
    0% {
        height: 5px;
    }
    100% {
        height: 35px;
    }
}

/* Drag and Drop Zone */
.drop-zone {
    border: 2px dashed rgba(255, 255, 255, 0.15);
    border-radius: 16px;
    padding: 3.5rem 2rem;
    text-align: center;
    background: rgba(255, 255, 255, 0.02);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    margin-bottom: 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
}
.drop-zone:hover, .drop-zone.dragover {
    border-color: var(--primary);
    background: rgba(99, 102, 241, 0.06);
    box-shadow: 0 0 20px rgba(99, 102, 241, 0.1);
}
.drop-zone-icon {
    color: var(--primary);
    margin-bottom: 0.5rem;
    transition: transform 0.3s;
}
.drop-zone:hover .drop-zone-icon, .drop-zone.dragover .drop-zone-icon {
    transform: translateY(-5px);
}
.drop-zone h3 {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text);
}
.drop-zone-sub {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* Bulk Settings */
.bulk-settings-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 12px 16px;
    margin-bottom: 1rem;
    transition: all 0.2s;
}
.bulk-settings-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    color: var(--text);
}
.bulk-settings-header:hover {
    color: var(--primary);
}

/* Upload Queue */
.upload-queue {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-height: 350px;
    overflow-y: auto;
    padding-right: 5px;
}
/* Scrollbar for upload queue */
.upload-queue::-webkit-scrollbar {
    width: 6px;
}
.upload-queue::-webkit-scrollbar-track {
    background: transparent;
}
.upload-queue::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
}
.upload-queue::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.2);
}

.upload-queue-item {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 14px;
    transition: all 0.2s ease;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.upload-queue-item.success {
    border-color: rgba(16, 185, 129, 0.3);
    background: rgba(16, 185, 129, 0.02);
}
.upload-queue-item.error {
    border-color: rgba(239, 68, 68, 0.3);
    background: rgba(239, 68, 68, 0.02);
}
.upload-queue-item.retrying {
    border-color: rgba(245, 158, 11, 0.3);
    background: rgba(245, 158, 11, 0.02);
}
.upload-queue-item.paused {
    border-color: rgba(148, 163, 184, 0.3);
    background: rgba(148, 163, 184, 0.02);
}
.queue-item-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}
.queue-item-info {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
    min-width: 0;
}
.queue-item-icon {
    font-size: 1.6rem;
    color: var(--primary);
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.04);
    border-radius: 8px;
}
.queue-item-details {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.queue-item-name {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.queue-item-size {
    font-size: 0.75rem;
    color: var(--text-muted);
}
.queue-item-status-badge {
    font-size: 0.75rem;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.05);
    white-space: nowrap;
}
.queue-item-status-badge.pending {
    color: var(--text-muted);
}
.queue-item-status-badge.uploading {
    background: rgba(59, 130, 246, 0.15);
    color: #3b82f6;
}
.queue-item-status-badge.success {
    background: rgba(16, 185, 129, 0.15);
    color: #10b981;
}
.queue-item-status-badge.error {
    background: rgba(239, 68, 68, 0.15);
    color: #ef4444;
}
.queue-item-status-badge.retrying {
    background: rgba(245, 158, 11, 0.15);
    color: #f59e0b;
}
.queue-item-status-badge.paused {
    background: rgba(148, 163, 184, 0.15);
    color: #94a3b8;
}

.queue-item-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}
.queue-item-actions button {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border);
    color: var(--text-muted);
    cursor: pointer;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}
.queue-item-actions button:hover {
    color: var(--text);
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
}
.queue-item-actions button.remove-btn:hover {
    color: #ef4444;
    background: rgba(239, 68, 68, 0.1);
    border-color: rgba(239, 68, 68, 0.2);
}

.queue-item-form-toggle {
    display: none;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    padding-top: 14px;
    border-top: 1px solid var(--border);
    animation: fadeIn 0.2s ease;
}
.queue-item-form-toggle.expanded {
    display: grid;
}

.queue-item-form-toggle .form-group {
    margin-bottom: 0;
}
.queue-item-form-toggle .form-group.full-width {
    grid-column: span 2;
}

.queue-item-progress-bar {
    height: 4px;
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 2px;
    overflow: hidden;
    margin-top: 6px;
}
.queue-item-progress-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    transition: width 0.1s linear;
}

.btn-text {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 0.85rem;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: opacity 0.2s;
}
.btn-text:hover {
    opacity: 0.8;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-5px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Pagination Styling */
.pagination-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin: 2.5rem 0;
    flex-wrap: wrap;
}

.pagination-btn {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
    color: var(--text-muted);
    min-width: 40px;
    height: 40px;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 0 14px;
    font-size: 0.9rem;
}

.pagination-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
    color: white;
    transform: translateY(-2px);
}

.pagination-btn.active {
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    color: white;
    border: none;
    box-shadow: 0 4px 15px -3px rgba(99, 102, 241, 0.4);
}

.pagination-btn.active:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.5);
}

.pagination-btn:disabled {
    opacity: 0.3;
    pointer-events: none;
    transform: none;
}

