/*
 * Project: Video Sharing Platform
 * Year: 2026
 * Developed by: Molla Samser (Founder of RSK World)
 * Designer & Tester: Rima Khatun
 * Website: https://rskworld.in
 * Contact: +91 93305 39277 | hello@rskworld.in | support@rskworld.in
 * 
 * Premium Design System with Glassmorphism and Fluid Animations.
 */

:root {
    --primary-gradient: linear-gradient(135deg, #ff416c, #ff4b2b);
    --secondary-gradient: linear-gradient(135deg, #6a11cb, #2575fc);
    --glass-bg: rgba(255, 255, 255, 0.08);
    --glass-border: rgba(255, 255, 255, 0.15);
    --accent-color: #ff4b2b;
    --text-main: #ffffff;
    --text-muted: #b0b0b0;
    --bg-main: #0a0a0c;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', 'Outfit', sans-serif;
}

body {
    background-color: var(--bg-main);
    color: var(--text-main);
    overflow-x: hidden;
}

.app-container {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Premium Navbar */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 5%;
    background: rgba(10, 10, 12, 0.8);
    backdrop-filter: blur(20px);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--glass-border);
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -1px;
}

.search-bar {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    padding: 0.6rem 1.5rem;
    border-radius: 50px;
    width: 400px;
    display: flex;
    align-items: center;
    transition: 0.3s;
}

.search-bar:focus-within {
    border-color: var(--accent-color);
    box-shadow: 0 0 15px rgba(255, 75, 43, 0.2);
}

.search-bar input {
    background: transparent;
    border: none;
    color: white;
    width: 100%;
    outline: none;
    padding-left: 10px;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--bg-main);
}
::-webkit-scrollbar-thumb {
    background: var(--glass-border);
    border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.3);
}

.app-wrapper {
    display: flex;
    height: 100vh;
    overflow: hidden;
}

/* Sidebar Styling */
.sidebar {
    width: 260px;
    background: #0d0d0f;
    padding: 1.5rem 0.8rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    border-right: 1px solid var(--glass-border);
    transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.sidebar-item {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    padding: 0.8rem 1rem;
    border-radius: 12px;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: 0.2s;
}

.sidebar-item i {
    font-size: 1.1rem;
    width: 24px;
    text-align: center;
}

.sidebar-item:hover, .sidebar-item.active {
    background: var(--glass-bg);
    color: var(--text-main);
}

.sidebar-item.active i {
    color: var(--accent-color);
}

.sidebar-divider {
    border: none;
    border-top: 1px solid var(--glass-border);
    margin: 0.5rem 0;
}

.sidebar-footer {
    margin-top: auto;
    padding: 1rem;
    font-size: 0.75rem;
    color: #444;
}

/* Main Body Layout */
.main-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    min-height: 100vh;
}

.content-view {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Ensure footer is always at the bottom of each view */
.app-footer {
    margin-top: auto;
    text-align: center;
    padding: 2rem;
    color: var(--text-muted);
    border-top: 1px solid var(--glass-border);
}

.top-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.8rem 2rem;
    background: rgba(10, 10, 12, 0.8);
    backdrop-filter: blur(20px);
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid var(--glass-border);
}

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

.menu-toggle {
    background: none;
    border: none;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
}

.search-container {
    flex: 0 1 600px;
}

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

.btn-icon {
    background: none;
    border: none;
    color: white;
    font-size: 1.1rem;
    padding: 10px;
    cursor: pointer;
    border-radius: 50%;
    transition: 0.2s;
}

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

/* Chips UX */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.filter-chips {
    display: flex;
    gap: 0.8rem;
}

.chip {
    padding: 6px 16px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 50px;
    font-size: 0.85rem;
    cursor: pointer;
    transition: 0.2s;
}

.chip:hover, .chip.active {
    background: white;
    color: black;
}

/* Player Overlay UX */
.player-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 2000;
    display: none;
    justify-content: center;
    align-items: center;
    padding: 2rem;
    backdrop-filter: blur(10px);
}

.player-container {
    width: 100%;
    max-width: 1200px;
    position: relative;
    background: #111;
    border-radius: 24px;
    overflow: hidden;
    border: 1px solid var(--glass-border);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.8);
}

.close-player {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
}

.video-wrapper {
    width: 100%;
    aspect-ratio: 16/9;
    background: black;
}

.mock-player {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    background: linear-gradient(45deg, #000, #111);
}

.play-indicator i {
    font-size: 4rem;
    color: var(--accent-color);
    filter: drop-shadow(0 0 20px var(--accent-color));
}

.player-details {
    padding: 2rem;
}

.player-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1rem;
}

.btn-subscribe {
    background: white;
    color: black;
    border: none;
    padding: 0.7rem 1.5rem;
    border-radius: 50px;
    font-weight: 700;
    cursor: pointer;
}

.live-viewer-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 0, 0, 0.2);
    border: 1px solid rgba(255, 0, 0, 0.4);
    padding: 5px 15px;
    border-radius: 50px;
    font-size: 0.9rem;
    color: #ff4b2b;
    margin-top: 1rem;
    backdrop-filter: blur(10px);
}

/* Skeleton Loader */
@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

.skeleton-box {
    background: linear-gradient(90deg, #1a1a1e 25%, #2a2a2e 50%, #1a1a1e 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite linear;
}

.skeleton-line {
    height: 12px;
    border-radius: 4px;
    background: linear-gradient(90deg, #1a1a1e 25%, #2a2a2e 50%, #1a1a1e 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite linear;
}

/* Video Grid & Cards */
.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.5rem;
    padding: 1rem;
}

.video-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(10px);
}

.video-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(255, 75, 43, 0.15);
    border-color: rgba(255, 75, 43, 0.3);
}

.video-thumbnail {
    position: relative;
    aspect-ratio: 16/9;
    overflow: hidden;
}

.video-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.video-card:hover .video-thumbnail img {
    transform: scale(1.05);
}

.duration-tag {
    position: absolute;
    bottom: 8px;
    right: 8px;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
}

.video-info {
    display: flex;
    gap: 12px;
    padding: 12px;
}

.creator-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--secondary-gradient);
    flex-shrink: 0;
}

.video-details h3 {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 4px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.video-details p {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 2px;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    color: var(--text-muted);
}

.empty-state i {
    font-size: 4rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.empty-state h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--text-main);
}

/* Premium Hero Section */
.premium-hero {
    text-align: center;
    padding: 4rem 2rem;
    background: linear-gradient(135deg, rgba(255, 65, 108, 0.1), rgba(106, 17, 203, 0.1));
    border-radius: 24px;
    margin: 2rem;
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
}

.premium-hero h1 {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 1rem;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.premium-hero p {
    font-size: 1.2rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto;
}

/* Stats Overview */
.stats-overview {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin: 2rem;
}

.stat-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 1.5rem;
    backdrop-filter: blur(10px);
    transition: transform 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-2px);
}

.stat-card h3 {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.stat-val {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.stat-trend {
    font-size: 0.85rem;
    padding: 4px 8px;
    border-radius: 50px;
    background: rgba(255, 75, 43, 0.1);
    color: var(--accent-color);
}

.stat-trend.positive {
    background: rgba(34, 197, 94, 0.1);
    color: #22c55e;
}

/* Chart Container */
.chart-container {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 2rem;
    margin: 2rem;
    height: 400px;
    backdrop-filter: blur(10px);
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .sidebar {
        position: fixed;
        left: -260px;
        top: 0;
        height: 100vh;
        z-index: 1001;
        transition: left 0.3s ease;
    }
    
    .sidebar.open {
        left: 0;
    }
    
    .sidebar.collapsed {
        width: 260px;
    }
    
    .main-body {
        margin-left: 0;
    }
    
    .top-nav {
        padding: 0.8rem 1rem;
    }
    
    .search-container {
        flex: 1;
        max-width: 300px;
    }
    
    .search-bar {
        width: 100%;
    }
    
    .search-bar input {
        font-size: 0.9rem;
    }
    
    .nav-right .btn-icon {
        padding: 8px;
        font-size: 1rem;
    }
    
    .premium-hero {
        margin: 1rem;
        padding: 2rem 1rem;
    }
    
    .premium-hero h1 {
        font-size: 2rem;
    }
    
    .premium-hero p {
        font-size: 1rem;
    }
    
    .video-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
        padding: 1rem;
    }
    
    .stats-overview {
        grid-template-columns: 1fr;
        margin: 1rem;
    }
    
    .chart-container {
        margin: 1rem;
        padding: 1rem;
        height: 300px;
    }
    
    .section-header {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }
    
    .filter-chips {
        flex-wrap: wrap;
        gap: 0.5rem;
    }
    
    .chip {
        font-size: 0.8rem;
        padding: 4px 12px;
    }
    
    .player-overlay {
        padding: 1rem;
    }
    
    .player-container {
        border-radius: 16px;
    }
    
    .player-details {
        padding: 1rem;
    }
    
    .player-meta {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }
    
    .player-actions {
        flex-wrap: wrap;
        gap: 0.5rem;
    }
    
    .btn-action, .btn-subscribe {
        font-size: 0.9rem;
        padding: 0.5rem 1rem;
    }
}

@media (max-width: 480px) {
    .logo {
        font-size: 1.2rem;
    }
    
    .nav-left {
        gap: 1rem;
    }
    
    .search-container {
        order: 3;
        flex-basis: 100%;
        margin-top: 0.5rem;
    }
    
    .nav-right {
        gap: 0.5rem;
    }
    
    .premium-hero h1 {
        font-size: 1.5rem;
    }
    
    .video-info {
        padding: 8px;
    }
    
    .creator-avatar {
        width: 32px;
        height: 32px;
    }
    
    .video-details h3 {
        font-size: 0.85rem;
    }
    
    .video-details p {
        font-size: 0.75rem;
    }
}

/* Tablet Responsiveness */
@media (min-width: 769px) and (max-width: 1024px) {
    .video-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    }
    
    .sidebar {
        width: 220px;
    }
    
    .search-bar {
        width: 350px;
    }
}

/* Focus States for Accessibility */
.sidebar-item:focus,
.btn-icon:focus,
.chip:focus,
.video-card:focus {
    outline: 2px solid var(--accent-color);
    outline-offset: 2px;
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    :root {
        --glass-bg: rgba(255, 255, 255, 0.15);
        --glass-border: rgba(255, 255, 255, 0.3);
        --text-muted: #e0e0e0;
    }
}

/* Theme Toggle */
.theme-toggle {
    background: none;
    border: none;
    color: var(--text-main);
    font-size: 1.1rem;
    padding: 10px;
    cursor: pointer;
    border-radius: 50%;
    transition: 0.2s;
    margin-right: 8px;
}

.theme-toggle:hover {
    background: var(--glass-bg);
}

/* Notification System */
.notification-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 3000;
    pointer-events: none;
}

.notification {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 1rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 1rem;
    backdrop-filter: blur(10px);
    max-width: 400px;
    transform: translateX(100%);
    opacity: 0;
    transition: all 0.3s ease;
    pointer-events: all;
}

.notification.show {
    transform: translateX(0);
    opacity: 1;
}

.notification.hide {
    transform: translateX(100%);
    opacity: 0;
}

.notification.success {
    border-color: rgba(34, 197, 94, 0.5);
    background: rgba(34, 197, 94, 0.1);
}

.notification.error {
    border-color: rgba(239, 68, 68, 0.5);
    background: rgba(239, 68, 68, 0.1);
}

.notification.warning {
    border-color: rgba(245, 158, 11, 0.5);
    background: rgba(245, 158, 11, 0.1);
}

.notification-close {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 4px;
    margin-left: auto;
}

/* Comments Section */
.comments-section {
    position: fixed;
    right: 0;
    top: 0;
    width: 400px;
    height: 100vh;
    background: var(--bg-main);
    border-left: 1px solid var(--glass-border);
    z-index: 2001;
    overflow-y: auto;
    transform: translateX(100%);
    transition: transform 0.3s ease;
}

.comments-section.open {
    transform: translateX(0);
}

.comments-container {
    padding: 2rem 1rem;
}

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

.comments-header h3 {
    font-size: 1.2rem;
    font-weight: 600;
}

.sort-select {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    color: var(--text-main);
    padding: 0.5rem;
    border-radius: 8px;
    font-size: 0.9rem;
}

.add-comment {
    display: flex;
    gap: 12px;
    margin-bottom: 2rem;
}

.comment-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
}

.comment-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.verified-badge {
    position: absolute;
    bottom: -2px;
    right: -2px;
    width: 16px;
    height: 16px;
    background: var(--accent-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 0.7rem;
}

.comment-input-container {
    flex: 1;
}

.comment-input {
    width: 100%;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    color: var(--text-main);
    padding: 0.8rem;
    border-radius: 12px;
    resize: none;
    font-family: inherit;
    font-size: 0.95rem;
    line-height: 1.4;
    min-height: 44px;
    max-height: 120px;
    transition: 0.2s;
}

.comment-input:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 2px rgba(255, 75, 43, 0.2);
}

.comment-input-container.focused .comment-actions {
    display: flex;
}

.comment-actions {
    display: none;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.btn-cancel, .btn-comment {
    padding: 0.5rem 1rem;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    font-size: 0.9rem;
    transition: 0.2s;
}

.btn-cancel {
    background: var(--glass-bg);
    color: var(--text-main);
}

.btn-comment {
    background: var(--accent-color);
    color: white;
}

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

.comments-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.comment {
    display: flex;
    gap: 12px;
}

.comment-content {
    flex: 1;
}

.comment-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.comment-user {
    font-weight: 600;
    color: var(--text-main);
}

.comment-time {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.comment-text {
    color: var(--text-main);
    line-height: 1.5;
    margin-bottom: 0.5rem;
}

.comment-actions {
    display: flex;
    gap: 1rem;
}

.btn-like, .btn-reply, .btn-share {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    padding: 4px 8px;
    border-radius: 4px;
    transition: 0.2s;
}

.btn-like:hover, .btn-reply:hover, .btn-share:hover {
    background: var(--glass-bg);
    color: var(--text-main);
}

.comment-replies {
    margin-top: 1rem;
    padding-left: 1rem;
    border-left: 2px solid var(--glass-border);
}

.comment-reply {
    margin-bottom: 1rem;
}

/* Upload Modal */
.upload-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 3000;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
}

.upload-container {
    background: var(--bg-main);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    width: 90%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    backdrop-filter: blur(20px);
}

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

.upload-header h2 {
    font-size: 1.5rem;
    font-weight: 700;
}

.close-upload {
    background: none;
    border: none;
    color: var(--text-main);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    transition: 0.2s;
}

.close-upload:hover {
    background: var(--glass-bg);
}

.upload-content {
    padding: 2rem;
}

.upload-area {
    text-align: center;
    padding: 4rem 2rem;
    border: 2px dashed var(--glass-border);
    border-radius: 16px;
    transition: 0.2s;
}

.upload-area:hover {
    border-color: var(--accent-color);
    background: var(--glass-bg);
}

.upload-area i {
    font-size: 4rem;
    color: var(--accent-color);
    margin-bottom: 1rem;
}

.upload-area h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.upload-area p {
    color: var(--text-muted);
    margin-bottom: 2rem;
}

.btn-select-files {
    background: var(--accent-color);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 12px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    transition: 0.2s;
}

.btn-select-files:hover {
    opacity: 0.9;
    transform: translateY(-2px);
}

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

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-weight: 600;
    color: var(--text-main);
}

.form-group input,
.form-group textarea,
.form-group select {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    color: var(--text-main);
    padding: 0.8rem;
    border-radius: 8px;
    font-family: inherit;
    font-size: 0.95rem;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 2px rgba(255, 75, 43, 0.2);
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.checkbox-group label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
}

.checkbox-group input[type="checkbox"] {
    width: auto;
}

.upload-progress {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 1.5rem;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: var(--glass-border);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 1rem;
}

.progress-fill {
    height: 100%;
    background: var(--accent-color);
    width: 0%;
    transition: width 0.3s ease;
}

.progress-text {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
}

.form-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    margin-top: 2rem;
}

.btn-cancel-upload,
.btn-submit-upload {
    padding: 0.8rem 2rem;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    transition: 0.2s;
}

.btn-cancel-upload {
    background: var(--glass-bg);
    color: var(--text-main);
}

.btn-submit-upload {
    background: var(--accent-color);
    color: white;
}

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

/* Profile Styles */
.profile-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

.profile-cover {
    position: relative;
    height: 400px;
    background: var(--secondary-gradient);
    border-radius: 24px;
    overflow: hidden;
    margin-bottom: 2rem;
}

.cover-gradient {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, transparent, rgba(0, 0, 0, 0.8));
}

.profile-info {
    position: absolute;
    bottom: 2rem;
    left: 2rem;
    right: 2rem;
    display: flex;
    align-items: flex-end;
    gap: 2rem;
}

.profile-avatar-container {
    position: relative;
}

.profile-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 4px solid var(--bg-main);
    object-fit: cover;
}

.verified-badge.large {
    width: 32px;
    height: 32px;
    font-size: 0.9rem;
}

.profile-details {
    flex: 1;
    color: white;
}

.profile-name {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.verified-icon {
    color: var(--accent-color);
}

.profile-username {
    font-size: 1.1rem;
    opacity: 0.9;
    margin-bottom: 1rem;
}

.profile-bio {
    font-size: 1rem;
    line-height: 1.5;
    margin-bottom: 1.5rem;
    max-width: 600px;
}

.profile-stats {
    display: flex;
    gap: 2rem;
    margin-bottom: 1.5rem;
}

.stat-item {
    text-align: center;
}

.stat-value {
    display: block;
    font-size: 1.5rem;
    font-weight: 800;
}

.stat-label {
    font-size: 0.9rem;
    opacity: 0.8;
}

.profile-actions {
    display: flex;
    gap: 1rem;
}

.btn-subscribe {
    background: white;
    color: black;
    border: none;
    padding: 0.8rem 2rem;
    border-radius: 50px;
    font-weight: 700;
    cursor: pointer;
    transition: 0.2s;
}

.btn-subscribe.subscribed {
    background: var(--accent-color);
    color: white;
}

.btn-bell,
.btn-share,
.btn-more {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.2s;
}

.btn-bell:hover,
.btn-share:hover,
.btn-more:hover {
    background: rgba(255, 255, 255, 0.3);
}

.profile-tabs {
    display: flex;
    gap: 2rem;
    border-bottom: 1px solid var(--glass-border);
    margin-bottom: 2rem;
}

.tab-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    padding: 1rem 0;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    position: relative;
    transition: 0.2s;
}

.tab-btn.active {
    color: var(--text-main);
}

.tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--accent-color);
}

.tab-content {
    min-height: 400px;
}

.tab-pane {
    display: none;
}

.tab-pane.active {
    display: block;
}

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

.profile-video-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    transition: 0.2s;
}

.profile-video-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.about-section {
    max-width: 800px;
}

.about-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 2rem;
}

.about-details {
    margin: 2rem 0;
}

.detail-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    color: var(--text-muted);
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-link {
    width: 48px;
    height: 48px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-main);
    text-decoration: none;
    transition: 0.2s;
}

.social-link:hover {
    background: var(--accent-color);
    color: white;
}

.analytics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.analytics-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 2rem;
}

.analytics-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-top: 1rem;
}

.analytics-stat {
    text-align: center;
}

.analytics-value {
    display: block;
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--accent-color);
}

.analytics-label {
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* Shorts Grid */
.shorts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
    padding: 1rem;
    flex: 1;
    margin-bottom: auto;
}

.short-card {
    aspect-ratio: 9/16;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    position: relative;
    transition: 0.2s;
}

.short-card:hover {
    transform: scale(1.05);
}

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

.short-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1rem;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    color: white;
}

.short-title {
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.short-views {
    font-size: 0.8rem;
    opacity: 0.8;
}

/* Additional view layouts */
.subscription-feed,
.library-content,
.history-content {
    flex: 1;
    padding: 2rem;
    margin-bottom: auto;
}

.library-sections {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.library-section h3 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: var(--text-main);
}

.history-timeline {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.history-item {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.history-time {
    font-size: 0.9rem;
    color: var(--text-muted);
    font-weight: 600;
}

/* Mobile responsiveness for new components */
@media (max-width: 768px) {
    .comments-section {
        width: 100%;
        right: 0;
    }
    
    .upload-container {
        width: 95%;
        margin: 1rem;
    }
    
    .profile-info {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 1rem;
    }
    
    .profile-stats {
        gap: 1rem;
    }
    
    .profile-actions {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .profile-tabs {
        overflow-x: auto;
        gap: 1rem;
    }
    
    .videos-grid {
        grid-template-columns: 1fr;
    }
    
    .shorts-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }
}
