/* ========================================
   JAVZONE - DESKTOP CSS (768px+)
   Professional, Spacious, High-Performance
   ======================================== */

/* Base Desktop Styles */
@media (min-width: 768px) {
    
    /* Layout Container */
    .container {
        max-width: 1400px;
        margin: 0 auto;
        padding: 0 20px;
    }
    
    /* Header */
    .header {
        padding: 16px 20px;
        background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    }
    
    .header-content {
        max-width: 1400px;
        margin: 0 auto;
    }
    
    .logo img {
        height: 40px;
    }
    
    .logo span {
        font-size: 22px;
    }
    
    /* Navigation */
    .nav {
        gap: 16px;
    }
    
    .nav a {
        padding: 10px 16px;
        font-size: 14px;
    }
    
    /* Search */
    .search-container {
        margin: 20px auto;
        max-width: 600px;
    }
    
    .search-input {
        padding: 14px 20px;
        font-size: 16px;
    }
    
    .search-btn {
        padding: 14px 24px;
        font-size: 16px;
    }
    
    /* Main Layout */
    .main-layout {
        display: grid;
        grid-template-columns: 1fr 300px;
        gap: 24px;
        max-width: 1400px;
        margin: 0 auto;
        padding: 0 20px;
    }
    
    .main-content {
        padding: 0;
    }
    
    /* Sidebar */
    .sidebar {
        display: block;
        position: sticky;
        top: 100px;
        height: fit-content;
    }
    
    /* Video Grid - Responsive Columns */
    .video-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }
    
    .video-item {
        min-height: 280px;
    }
    
    .video-thumbnail {
        height: 200px;
    }
    
    .video-info {
        padding: 16px;
    }
    
    .video-title {
        font-size: 15px;
        margin-bottom: 8px;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
        text-overflow: ellipsis;
        max-height: 2.6em;
        line-height: 1.3;
    }
    
    .video-meta {
        font-size: 13px;
    }
    
    /* Trending Carousel */
    .trending-section {
        margin-bottom: 32px;
    }
    
    .section-title {
        font-size: 20px;
        margin-bottom: 16px;
    }
    
    .trending-list {
        gap: 16px;
        padding: 12px 0;
    }
    
    .trending-item {
        flex: 0 0 180px;
    }
    
    .trending-thumbnail {
        height: 120px;
    }
    
    .trending-info {
        padding: 12px;
    }
    
    .trending-title {
        font-size: 14px;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
        text-overflow: ellipsis;
        max-height: 2.6em;
        line-height: 1.3;
    }
    
    .trending-meta {
        font-size: 12px;
    }
    
    /* Categories */
    .category-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    
    .category-card {
        padding: 16px;
    }
    
    .category-name {
        font-size: 14px;
    }
    
    .category-count {
        font-size: 12px;
    }
    
    /* Sidebar Widgets */
    .sidebar-widget {
        background: #1a1a1a;
        border-radius: 12px;
        padding: 20px;
        margin-bottom: 24px;
        border: 1px solid #333;
    }
    
    .widget-title {
        font-size: 16px;
        font-weight: 700;
        margin-bottom: 16px;
        color: #fff;
        display: flex;
        align-items: center;
    }
    
    .widget-title .icon {
        margin-right: 8px;
        color: #ff6b35;
    }
    
    /* Sidebar Video List */
    .sidebar-video-list {
        display: flex;
        flex-direction: column;
        gap: 12px;
    }
    
    .sidebar-video-item {
        display: flex;
        gap: 12px;
        padding: 8px;
        border-radius: 8px;
        transition: background 0.2s ease;
    }
    
    .sidebar-video-item:hover {
        background: #222;
    }
    
    .sidebar-video-thumbnail {
        width: 60px;
        height: 45px;
        border-radius: 6px;
        overflow: hidden;
        flex-shrink: 0;
    }
    
    .sidebar-video-thumbnail img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
    
    .sidebar-video-info {
        flex: 1;
        min-width: 0;
    }
    
    .sidebar-video-title {
        font-size: 13px;
        font-weight: 600;
        color: #fff;
        line-height: 1.3;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
        text-overflow: ellipsis;
        max-height: 2.6em;
        margin-bottom: 4px;
    }
    
    .sidebar-video-meta {
        font-size: 11px;
        color: #999;
    }
    
    /* Pagination */
    .pagination {
        margin: 32px 0;
        gap: 12px;
    }
    
    .pagination a,
    .pagination span {
        padding: 10px 16px;
        font-size: 14px;
    }
    
    /* Footer */
    .footer {
        padding: 32px 20px;
        margin-top: 60px;
    }
    
    .footer-content {
        max-width: 1400px;
        margin: 0 auto;
    }
    
    .footer-links {
        gap: 24px;
        margin-bottom: 16px;
    }
    
    .footer-links a {
        font-size: 14px;
    }
    
    .footer-text {
        font-size: 12px;
    }
    
    /* Ad Slots */
    .ad-slot {
        padding: 20px;
        margin: 24px 0;
        border-radius: 12px;
    }
    
    .ad-slot-banner {
        min-height: 90px;
    }
    
    .ad-slot-large {
        min-height: 250px;
    }
    
    /* Hover Effects */
    .video-item:hover {
        transform: translateY(-4px);
        box-shadow: 0 8px 25px rgba(0,0,0,0.3);
    }
    
    .trending-item:hover {
        transform: translateY(-3px);
        box-shadow: 0 6px 20px rgba(0,0,0,0.2);
    }
    
    .category-card:hover {
        transform: translateY(-3px);
        box-shadow: 0 6px 20px rgba(0,0,0,0.2);
    }
    
    /* Enhanced Typography */
    body {
        font-size: 15px;
    }
    
    h1, h2, h3, h4, h5, h6 {
        font-weight: 700;
        line-height: 1.2;
    }
    
    /* Enhanced Scrollbars */
    ::-webkit-scrollbar {
        width: 8px;
        height: 8px;
    }
    
    ::-webkit-scrollbar-track {
        background: #1a1a1a;
        border-radius: 4px;
    }
    
    ::-webkit-scrollbar-thumb {
        background: #ff6b35;
        border-radius: 4px;
    }
    
    ::-webkit-scrollbar-thumb:hover {
        background: #f7931e;
    }
    
}

/* Large Desktop (1024px+) */
@media (min-width: 1024px) {
    
    .video-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .video-thumbnail {
        height: 220px;
    }
    
    .video-item {
        min-height: 300px;
    }
    
    .trending-item {
        flex: 0 0 200px;
    }
    
    .trending-thumbnail {
        height: 140px;
    }
    
    .sidebar {
        width: 320px;
    }
    
    .sidebar-widget {
        padding: 24px;
    }
    
}

/* Extra Large Desktop (1280px+) */
@media (min-width: 1280px) {
    
    .video-grid {
        grid-template-columns: repeat(5, 1fr);
    }
    
    .video-thumbnail {
        height: 260px;
    }
    
    .video-item {
        min-height: 340px;
    }
    
    .trending-item {
        flex: 0 0 220px;
    }
    
    .trending-thumbnail {
        height: 160px;
    }
    
    .main-layout {
        grid-template-columns: 1fr 350px;
        gap: 32px;
    }
    
    .sidebar {
        width: 350px;
    }
    
}

/* Ultra Wide (1600px+) */
@media (min-width: 1600px) {
    
    .video-grid {
        grid-template-columns: repeat(6, 1fr);
    }
    
    .video-thumbnail {
        height: 280px;
    }
    
    .video-item {
        min-height: 360px;
    }
    
    .container {
        max-width: 1600px;
    }
    
    .main-layout {
        max-width: 1600px;
    }
    
}

/* Video Player Page Specific */
.video-player-container {
    background: #000;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 24px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.3);
}

.video-player {
    width: 100%;
    height: auto;
    min-height: 400px;
}

.video-info-section {
    background: #1a1a1a;
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 24px;
}

.video-title-large {
    font-size: 24px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 12px;
    line-height: 1.3;
}

.video-meta-large {
    display: flex;
    gap: 24px;
    margin-bottom: 16px;
    font-size: 14px;
    color: #999;
}

.video-description {
    font-size: 15px;
    line-height: 1.6;
    color: #ccc;
}

.related-videos-section {
    margin-top: 32px;
}

.related-videos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-top: 16px;
}

/* Sticky Share Bar (Hidden on Desktop) */
.sticky-share-bar {
    display: none;
}

/* Enhanced Loading States */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #333;
    border-top: 4px solid #ff6b35;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Print Styles */
@media print {
    .sidebar,
    .ad-slot,
    .header,
    .footer {
        display: none;
    }
    
    .main-layout {
        grid-template-columns: 1fr;
    }
    
    .video-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}