/* Kanal listesi stilleri - MOBÄ°L UYUMLU */
    .channel-list {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 20px;
        padding: 20px;
        pointer-events: auto;
        position: relative;
        z-index: 1;
    }

    .channel-card {
        background: #fff;
        border: 1px solid #eee;
        border-radius: 8px;
        padding: 0;
        box-shadow: 0 2px 5px rgba(0,0,0,0.05);
        text-align: left;
        transition: all 0.3s ease;
        position: relative;
        cursor: pointer;
        user-select: none;
        -webkit-user-select: none;
        -moz-user-select: none;
        -ms-user-select: none;
        will-change: transform;
        backface-visibility: hidden;
        transform: translateZ(0);
        display: block;
        overflow: hidden;
        min-height: 150px;
        text-decoration: none;
        color: inherit;
        pointer-events: auto;
        z-index: 2;
    }

    .channel-card:hover {
        transform: translateY(-5px) translateZ(0);
        box-shadow: 0 8px 16px rgba(0,0,0,0.15);
        border-color: #007bff;
    }

    .channel-card:active {
        transform: translateY(-2px) translateZ(0);
        box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    }

    /* Arka plan resmi olan kartlar iÃ§in optimizasyon */
    .channel-card[style*="background-image"] {
        background-size: cover !important;
        background-position: center !important;
        background-repeat: no-repeat !important;
        /* Lazy loading iÃ§in blur efekti */
        background-color: #f8f9fa;
    }

    .channel-card[style*="background-image"]::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: linear-gradient(
            180deg,
            rgba(0, 0, 0, 0.58) 0%,
            rgba(0, 0, 0, 0.12) 42%,
            rgba(0, 0, 0, 0.12) 58%,
            rgba(0, 0, 0, 0.62) 100%
        );
        opacity: 1;
        transition: none;
        z-index: 1;
        border-radius: inherit;
        pointer-events: none;
    }

    .channel-card[style*="background-image"]:hover::before {
        opacity: 1;
    }

    .channel-card-name {
        position: absolute;
        top: 12px;
        left: 14px;
        right: 52px;
        z-index: 2;
        margin: 0;
        color: #333;
        font-size: 1.65rem;
        font-weight: 700;
        line-height: 1.2;
        text-align: left;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .channel-card-desc {
        position: absolute;
        left: 14px;
        bottom: 12px;
        right: 42%;
        z-index: 2;
        color: #666;
        margin: 0;
        font-size: 0.9rem;
        line-height: 1.35;
        text-align: left;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .channel-view-access {
        position: absolute;
        right: 12px;
        bottom: 12px;
        z-index: 2;
        max-width: 48%;
        margin: 0;
        font-size: 0.72rem;
        font-weight: 600;
        line-height: 1.25;
        text-align: right;
        color: #666;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    /* Online users badge — sağ üst, modern pill */
    .online-users-badge {
        position: absolute;
        top: 10px;
        right: 10px;
        z-index: 2;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 6px;
        width: auto;
        height: 28px;
        min-width: 0;
        padding: 0 10px;
        border-radius: 999px;
        background: rgba(15, 23, 42, 0.55);
        border: 1px solid rgba(255, 255, 255, 0.22);
        color: #fff;
        font-weight: 700;
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        box-shadow: 0 4px 14px rgba(0, 0, 0, 0.22);
    }

    .online-users-badge .online-icon {
        display: none;
    }

    .online-users-badge .online-count {
        font-size: 12px;
        font-weight: 700;
        line-height: 1;
        color: #fff;
        font-variant-numeric: tabular-nums;
    }

    .online-live-dot {
        width: 8px;
        height: 8px;
        border-radius: 50%;
        flex-shrink: 0;
        background: #22c55e;
        box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.55);
        animation: online-dot-pulse 1.8s ease-out infinite;
    }

    .channel-header {
        display: none;
    }

    /* EriÅŸim kÄ±sÄ±tlamasÄ± gÃ¶stergesi stilleri */
    .access-restrictions-badge {
        display: inline-flex;
        align-items: center;
        gap: 4px;
        background: rgba(255, 255, 255, 0.9);
        backdrop-filter: blur(8px);
        -webkit-backdrop-filter: blur(8px);
        color: #dc3545;
        padding: 4px 8px;
        border-radius: 12px;
        font-size: 0.8rem;
        font-weight: 500;
        border: 1px solid rgba(220, 53, 69, 0.3);
        margin-left: 8px;
        cursor: help;
        transition: all 0.2s ease;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    }

    .access-restrictions-badge:hover {
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
        transform: scale(1.05);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    }

    .access-restrictions-badge .restriction-icon {
        font-size: 0.7rem;
    }

    .access-restrictions-badge .blocked-roles {
        font-size: 0.8rem;
        font-weight: 600;
    }

    /* WEB — YouTube thumbnail grid (yan yana, sabit 16:9)
       Önceki width:100% + kolon sayısı yetmedi: kartlar içerikle dikey uzuyordu;
       CF/SW aynı ?v= ile eski CSS tutuyordu. aspect-ratio + cache-bust şart. */
    body.channel-list-page .container.main-content,
    .container.main-content.channel-list-page {
        width: 100% !important;
        max-width: 100% !important;
        align-items: stretch !important;
    }

    .channel-list,
    body.channel-list-page .channel-list,
    html.channel-list-page .channel-list {
        display: grid !important;
        width: 100% !important;
        max-width: 1280px !important;
        margin-left: auto !important;
        margin-right: auto !important;
        box-sizing: border-box !important;
        align-self: stretch !important;
        min-width: 0 !important;
    }

    @media (min-width: 768px) {
        body.channel-list-page .channel-list,
        html.channel-list-page .channel-list,
        .channel-list {
            grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
            gap: 20px !important;
            padding: 24px !important;
            overflow-y: auto !important;
            height: calc(100vh - 80px) !important;
            align-content: start !important;
        }

        body.channel-list-page .channel-card,
        .channel-list .channel-card,
        a.channel-card {
            display: block !important;
            aspect-ratio: 16 / 9 !important;
            width: 100% !important;
            height: auto !important;
            min-height: 0 !important;
            padding: 0 !important;
            border-radius: 12px !important;
            box-shadow: 0 4px 12px rgba(0,0,0,0.1) !important;
            overflow: hidden !important;
            box-sizing: border-box !important;
            text-decoration: none !important;
            color: inherit !important;
            background-size: cover !important;
            background-position: center !important;
            background-repeat: no-repeat !important;
            transition: all 0.3s ease !important;
        }

        body.channel-list-page .channel-card[style*="background-image"],
        a.channel-card[style*="background-image"] {
            background-size: cover !important;
            background-position: center !important;
            min-height: 0 !important;
            aspect-ratio: 16 / 9 !important;
        }

        body.channel-list-page .channel-card:hover {
            transform: translateY(-8px) !important;
            box-shadow: 0 12px 24px rgba(0,0,0,0.15) !important;
        }

        body.channel-list-page .channel-card .channel-card-name,
        .channel-list .channel-card .channel-card-name {
            font-size: 1.5rem !important;
        }

        body.channel-list-page .channel-card .channel-card-desc,
        .channel-list .channel-card .channel-card-desc {
            font-size: 0.85rem !important;
        }

        body.channel-list-page .online-users-badge {
            width: 34px !important;
            height: 34px !important;
            padding: 0 !important;
            border-radius: 50% !important;
        }
    }

    @media (min-width: 1024px) {
        body.channel-list-page .channel-list,
        html.channel-list-page .channel-list,
        .channel-list {
            grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
        }
    }

    @media (min-width: 1280px) {
        body.channel-list-page .channel-list,
        html.channel-list-page .channel-list,
        .channel-list {
            grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
        }
    }

    /* MOBÄ°L BÄ°LEÅENLER STÄ°LLERÄ° */
    /* Mobil stilleri player.php'ye taÅŸÄ±ndÄ± */

    /* HEADER SABÄ°T TUTMA - Desktop iÃ§in */
    body.channel-list-page {
        display: flex !important;
        flex-direction: column !important;
        height: 100vh !important;
        overflow: hidden !important;
    }
    
    body.channel-list-page header {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        z-index: 1000 !important;
        background: white !important;
        box-shadow: 0 2px 4px rgba(0,0,0,0.1) !important;
        height: auto !important;
    }
    
    body.channel-list-page .container.main-content {
        flex: 1 !important;
        min-height: 0 !important; /* flex child scroll için şart */
        overflow: hidden !important;
        display: flex !important;
        flex-direction: column !important;
        margin-top: 60px !important; /* Header yÃ¼ksekliÄŸi kadar margin */
    }

    /* Kanal listesi scroll alanı (desktop + mobil) — body overflow:hidden pin'ini aş */
    body.channel-list-page .channel-list,
    html.channel-list-page .channel-list {
        flex: 1 1 auto !important;
        min-height: 0 !important;
        overflow-y: auto !important;
        overflow-x: hidden !important;
        -webkit-overflow-scrolling: touch !important;
        overscroll-behavior: contain;
        align-content: start !important;
    }
    
    /* MOBİL RESPONSIVE - Tüm 767px altı cihazlar için */
    @media (max-width: 767px) {
        /* Ana sayfa kanal listesi iÃ§in Ã¶zel ayarlar - header sabit kalacak */
        body.channel-list-page,
        html.channel-list-page {
            height: 100vh !important;
            height: 100dvh !important;
            overflow: hidden !important;
        }
        
        body.channel-list-page .container.main-content {
            flex: 1 !important;
            min-height: 0 !important;
            overflow: hidden !important;
            display: flex !important;
            flex-direction: column !important;
            margin-top: 60px !important; /* Header yÃ¼ksekliÄŸi kadar margin */
        }
        
        body.channel-list-page .channel-list {
            grid-template-columns: 1fr !important;
            gap: 15px !important;
            padding: 15px !important;
            padding-bottom: 60px !important; /* Ekstra alt boÅŸluk - mobil */
            flex: 1 1 auto !important;
            min-height: 0 !important;
            overflow-y: auto !important;
            -webkit-overflow-scrolling: touch !important;
        }
        
        .channel-card,
        a.channel-card {
            padding: 20px 15px;
            margin-bottom: 0;
            aspect-ratio: auto !important;
            height: auto !important;
            min-height: 150px;
        }
        
        .channel-header h3 {
            font-size: 1.1rem;
            margin-bottom: 8px;
        }
        
        .online-users-badge {
            width: 26px;
            height: 26px;
            min-width: 26px;
            padding: 0;
        }
        
        .online-users-badge .online-icon {
            display: none;
        }
        
        .online-users-badge .online-count {
            font-size: 20px;
        }
        
        /* Mobil iÃ§in eriÅŸim gÃ¶stergesi */
        .access-restrictions-badge {
            padding: 2px 5px;
            font-size: 0.65rem;
            margin-left: 4px;
            background: rgba(255, 255, 255, 0.9);
            backdrop-filter: blur(8px);
            -webkit-backdrop-filter: blur(8px);
            box-shadow: 0 1px 4px rgba(0, 0, 0, 0.15);
        }

        .access-restrictions-badge .restriction-icon {
            font-size: 0.55rem;
        }

        .access-restrictions-badge .blocked-roles {
            font-size: 0.6rem;
        }
        
        .channel-card p {
            font-size: 0.85rem;
            margin-bottom: 0;
        }
        
        .channel-card:active {
            transform: scale(0.98);
        }
        
        .channel-list::-webkit-scrollbar {
            width: 6px;
        }
        
        .channel-list::-webkit-scrollbar-track {
            background: #f1f1f1;
            border-radius: 3px;
        }
        
        .channel-list::-webkit-scrollbar-thumb {
            background: #c1c1c1;
            border-radius: 3px;
        }
        
        .channel-list::-webkit-scrollbar-thumb:hover {
            background: #a8a8a8;
        }
        
        /* iOS Safari iÃ§in Ã¶zel dÃ¼zeltme */
        @supports (-webkit-touch-callout: none) {
            body.channel-list-page .channel-list {
                -webkit-overflow-scrolling: touch !important;
            }
        }
    }

    @media (max-width: 480px) {
        /* Ana sayfa kanal listesi iÃ§in Ã¶zel ayarlar - kÃ¼Ã§Ã¼k ekranlar, header sabit */
        body.channel-list-page,
        html.channel-list-page {
            height: 100vh !important;
            height: 100dvh !important;
            overflow: hidden !important;
        }
        
        body.channel-list-page .container.main-content {
            flex: 1 !important;
            min-height: 0 !important;
            overflow: hidden !important;
            display: flex !important;
            flex-direction: column !important;
            margin-top: 60px !important; /* Header yÃ¼ksekliÄŸi kadar margin */
        }
        
        body.channel-list-page .channel-list {
            padding: 10px !important;
            gap: 10px !important;
            padding-bottom: 60px !important; /* Ekstra alt boÅŸluk - kÃ¼Ã§Ã¼k ekran */
            flex: 1 1 auto !important;
            min-height: 0 !important;
            overflow-y: auto !important;
            -webkit-overflow-scrolling: touch !important;
        }
        
        .channel-card {
            padding: 15px 12px;
        }
        
        .channel-card h3 {
            font-size: 1.1rem;
        }
        
        .channel-card p {
            font-size: 0.8rem;
        }
        
        .channel-list::-webkit-scrollbar {
            width: 4px;
        }
        
        .channel-list::-webkit-scrollbar-track {
            background: #f1f1f1;
            border-radius: 2px;
        }
        
        .channel-list::-webkit-scrollbar-thumb {
            background: #c1c1c1;
            border-radius: 2px;
        }
        
        .channel-list::-webkit-scrollbar-thumb:hover {
            background: #a8a8a8;
        }
    }

    /* ÅARKI Ä°STE SOL PANEL STÄ°LLERÄ° */
    .song-request-side-panel {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        width: 100vw !important;
        height: 100vh !important;
        background: transparent !important;
        z-index: 9999 !important;
        display: none !important; /* BaÅŸlangÄ±Ã§ta tamamen gizli */
        align-items: stretch !important;
        justify-content: flex-start !important;
        padding: 0 !important;
        margin: 0 !important;
        pointer-events: none !important;
    }
    
    /* Modal aÃ§Ä±k olduÄŸunda gÃ¶ster ve etkileÅŸimi aÃ§ */
    .song-request-side-panel[style*="block"] {
        display: flex !important;
        pointer-events: all !important;
    }
    
    .song-request-side-panel .modal-overlay {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.5);
        z-index: 1;
        cursor: pointer;
        opacity: 0;
        transition: opacity 0.3s ease;
    }
    
    /* Modal aÃ§Ä±k olduÄŸunda overlay gÃ¶rÃ¼nÃ¼r */
    .song-request-side-panel[style*="block"] .modal-overlay {
        opacity: 1;
    }
    
    .song-request-panel-content {
        position: relative !important;
        z-index: 2 !important; /* EkranÄ±n Ã¼Ã§te 1'i */
        width: 33.333vw !important;
        height: 100vh !important;
        background: white !important;
        box-shadow: 2px 0 20px rgba(0, 0, 0, 0.3) !important;
        padding: 0 !important;
        margin: 0 !important;
        border-radius: 0 !important;
        max-width: none !important;
        max-height: none !important;
        transform: translateX(-100%) !important; /* BaÅŸlangÄ±Ã§ta gizli */
        transition: transform 0.3s ease !important;
    }
    
    /* Modal aÃ§Ä±k olduÄŸunda panel gÃ¶rÃ¼nÃ¼r */
    .song-request-side-panel[style*="block"] .song-request-panel-content {
        transform: translateX(0) !important;
    }
    
    /* GEÃ‡MÄ°Å ÅARKILAR SOL PANEL STÄ°LLERÄ° */
    .song-history-side-panel {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        width: 100vw !important;
        height: 100vh !important;
        background: transparent !important;
        z-index: 9999 !important;
        display: none !important; /* BaÅŸlangÄ±Ã§ta tamamen gizli */
        align-items: stretch !important;
        justify-content: flex-start !important;
        padding: 0 !important;
        margin: 0 !important;
        pointer-events: none !important;
    }
    
    /* Modal aÃ§Ä±k olduÄŸunda gÃ¶ster ve etkileÅŸimi aÃ§ */
    .song-history-side-panel[style*="block"] {
        display: flex !important;
        pointer-events: all !important;
    }
    
    .song-history-side-panel .modal-overlay {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.5);
        z-index: 1;
        cursor: pointer;
        opacity: 0;
        transition: opacity 0.3s ease;
    }
    
    /* Modal aÃ§Ä±k olduÄŸunda overlay gÃ¶rÃ¼nÃ¼r */
    .song-history-side-panel[style*="block"] .modal-overlay {
        opacity: 1;
    }
    
    .song-history-panel-content {
        position: relative !important;
        z-index: 2 !important; /* EkranÄ±n Ã¼Ã§te 1'i */
        width: 33.333vw !important;
        height: 100vh !important;
        background: white !important;
        box-shadow: 2px 0 20px rgba(0, 0, 0, 0.3) !important;
        padding: 0 !important;
        margin: 0 !important;
        border-radius: 0 !important;
        max-width: none !important;
        max-height: none !important;
        transform: translateX(-100%) !important; /* BaÅŸlangÄ±Ã§ta gizli */
        transition: transform 0.3s ease !important;
    }
    
    /* Modal aÃ§Ä±k olduÄŸunda panel gÃ¶rÃ¼nÃ¼r */
    .song-history-side-panel[style*="block"] .song-history-panel-content {
        transform: translateX(0) !important;
    }
    
    /* OTOMATÄ°K LÄ°STE SOL PANEL STÄ°LLERÄ° */
    .auto-playlist-side-panel {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        width: 100vw !important;
        height: 100vh !important;
        background: transparent !important;
        z-index: 9999 !important;
        display: none !important; /* BaÅŸlangÄ±Ã§ta tamamen gizli */
        align-items: stretch !important;
        justify-content: flex-start !important;
        padding: 0 !important;
        margin: 0 !important;
        pointer-events: none !important;
    }
    
    /* Ana CSS'teki modal stillerini override et */
    #autoPlaylistModal.auto-playlist-side-panel {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        width: 100vw !important;
        height: 100vh !important;
        background: transparent !important;
        z-index: 10001 !important;
        display: none !important;
        align-items: stretch !important;
        justify-content: flex-start !important;
        padding: 0 !important;
        margin: 0 !important;
        pointer-events: none !important;
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
    }
    
    /* Modal aÃ§Ä±k olduÄŸunda gÃ¶ster ve etkileÅŸimi aÃ§ */
    .auto-playlist-side-panel[style*="block"],
    #autoPlaylistModal.auto-playlist-side-panel[style*="block"] {
        display: flex !important;
        pointer-events: all !important;
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
    }
    
    .auto-playlist-side-panel .modal-overlay {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.5);
        z-index: 1;
        cursor: pointer;
        opacity: 0;
        transition: opacity 0.3s ease;
    }
    
    /* Modal aÃ§Ä±k olduÄŸunda overlay gÃ¶rÃ¼nÃ¼r */
    .auto-playlist-side-panel[style*="block"] .modal-overlay,
    #autoPlaylistModal.auto-playlist-side-panel[style*="block"] .modal-overlay {
        opacity: 1;
    }
    
    .auto-playlist-panel-content {
        position: relative !important;
        z-index: 2 !important; /* EkranÄ±n Ã¼Ã§te 1'i */
        width: 33.333vw !important;
        height: 100vh !important;
        background: white !important;
        box-shadow: 2px 0 20px rgba(0, 0, 0, 0.3) !important;
        padding: 0 !important;
        margin: 0 !important;
        border-radius: 0 !important;
        max-width: none !important;
        max-height: none !important;
        transform: translateX(-100%) !important; /* BaÅŸlangÄ±Ã§ta gizli */
        transition: transform 0.3s ease !important;
    }
    
    /* Modal aÃ§Ä±k olduÄŸunda panel gÃ¶rÃ¼nÃ¼r */
    .auto-playlist-side-panel[style*="block"] .auto-playlist-panel-content,
    #autoPlaylistModal.auto-playlist-side-panel[style*="block"] .auto-playlist-panel-content {
        transform: translateX(0) !important;
    }
    
    /* YASAKLI LÄ°STE ESKÄ° STÄ°LLER KALDIRILDI */
    
    /* TÃœM MODALLER Ä°Ã‡Ä°N SOL PANEL SÄ°STEMÄ° */
    #blacklistModal,
    #autoPlaylistModal,
    #songHistoryModal,
    #songRequestModal,
    #channelInfoPanelModal {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        width: 100vw !important;
        height: 100vh !important;
        background: transparent !important;
        z-index: 10001 !important;
        display: none !important;
        align-items: stretch !important;
        justify-content: flex-start !important;
        padding: 0 !important;
        margin: 0 !important;
    }
    
    #blacklistModal[style*="block"],
    #autoPlaylistModal[style*="block"],
    #songHistoryModal[style*="block"],
    #songRequestModal[style*="block"],
    #channelInfoPanelModal[style*="block"] {
        display: flex !important;
        background: transparent !important;
    }
    
    /* Modal overlay - mobil tam saydam, web'de gri */
    #blacklistModal .modal-overlay,
    #autoPlaylistModal .modal-overlay,
    #songHistoryModal .modal-overlay,
    #songRequestModal .modal-overlay,
    #channelInfoPanelModal .modal-overlay {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: transparent;
        z-index: 1;
    }
    
    /* Modal content - mobil tam geniÅŸlik, web'de %33 */
    #blacklistModal .modal-content,
    #autoPlaylistModal .modal-content,
    #songHistoryModal .modal-content,
    #songRequestModal .modal-content,
    #channelInfoPanelModal .modal-content {
        position: relative;
        width: 100%;
        height: 100%;
        max-width: none !important;
        max-height: none !important;
        padding: 0 !important;
        margin: 0 !important;
        background: transparent !important;
        border-radius: 0 !important;
        box-shadow: none !important;
        z-index: 2;
    }
    
    /* Mobil gÃ¶rÃ¼nÃ¼mde tam ekran */
    @media (max-width: 767px) {
        #blacklistModal .modal-overlay,
        #autoPlaylistModal .modal-overlay,
        #songHistoryModal .modal-overlay,
        #songRequestModal .modal-overlay,
        #channelInfoPanelModal .modal-overlay {
            display: none !important; /* Mobilde overlay yok */
        }
        
        #blacklistModal .modal-content,
        #autoPlaylistModal .modal-content,
        #songHistoryModal .modal-content,
        #songRequestModal .modal-content,
        #channelInfoPanelModal .modal-content {
            width: 100vw !important;
            height: 100vh !important;
            position: fixed !important;
            top: 0 !important;
            left: 0 !important;
            right: 0 !important;
            bottom: 0 !important;
        }
    }

    /* Web gÃ¶rÃ¼nÃ¼mde sol panel */
    @media (min-width: 768px) {
        #blacklistModal .modal-overlay,
        #autoPlaylistModal .modal-overlay,
        #songHistoryModal .modal-overlay,
        #songRequestModal .modal-overlay,
        #channelInfoPanelModal .modal-overlay {
            background: rgba(0,0,0,0.3);
        }
        
        #blacklistModal .modal-content,
        #autoPlaylistModal .modal-content,
        #songHistoryModal .modal-content,
        #songRequestModal .modal-content,
        #channelInfoPanelModal .modal-content {
            width: 33.333vw;
            box-shadow: 2px 0 10px rgba(0,0,0,0.1);
        }
    }

    /* YanÄ±tlama sistemi stilleri kaldÄ±rÄ±ldÄ± */

    .channel-header {
        display: none;
    }

    .online-users-badge {
        position: absolute;
        top: 10px;
        right: 10px;
        z-index: 2;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 6px;
        width: auto;
        height: 28px;
        min-width: 0;
        background: rgba(15, 23, 42, 0.55);
        border: 1px solid rgba(255, 255, 255, 0.22);
        border-radius: 999px;
        padding: 0 10px;
        color: #fff;
        font-weight: 700;
        backdrop-filter: blur(10px);
    }

    .online-users-badge .online-icon {
        display: none;
    }

    .online-users-badge .online-count {
        font-size: 12px;
        font-weight: 700;
        line-height: 1;
        color: #fff;
    }

    /* Arka plan resmi olan kartlarda da aynı pill */
    .channel-card[style*="background-image"] .online-users-badge {
        background: rgba(15, 23, 42, 0.55);
        border: 1px solid rgba(255, 255, 255, 0.22);
        color: #fff;
        text-shadow: none;
    }

    /* Kanal Arka Plan Sekmesi Stilleri */
    .channel-background {
        padding: 16px;
        max-width: 100%;
        box-sizing: border-box;
        overflow-x: hidden;
    }

    .channel-background > h3 {
        margin: 0 0 12px;
        font-size: 1.15rem;
    }

    .background-upload-section,
    .background-preview-section {
        background: #f8f9fa;
        border-radius: 12px;
        padding: 16px;
        border: 1px solid #e9ecef;
        margin-bottom: 16px;
        max-width: 100%;
        box-sizing: border-box;
    }

    .background-upload-section h4,
    .background-preview-section h4 {
        margin: 0 0 6px 0;
        color: #333;
        font-size: 1.05rem;
        font-weight: 600;
    }

    .bg-preview-hint {
        margin: 0 0 12px;
        font-size: 0.85rem;
        color: #6b7280;
        line-height: 1.4;
    }

    /* Tek tutarlı önizleme: kanal kartı ile aynı 16:9 */
    .bg-preview-frame {
        position: relative;
        width: 100%;
        max-width: 100%;
        aspect-ratio: 16 / 9;
        border-radius: 12px;
        border: 1px solid #d1d5db;
        background: #eef1f5;
        overflow: hidden;
        box-sizing: border-box;
    }

    .bg-preview-frame.has-media {
        border-color: #c5cdd8;
        box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.04);
    }

    .bg-preview-media {
        display: block;
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center;
        border-radius: 11px;
    }

    .bg-preview-empty {
        position: absolute;
        inset: 0;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 8px;
        color: #9ca3af;
        pointer-events: none;
    }

    .bg-preview-empty i {
        font-size: 2rem;
        color: #cbd5e1;
    }

    .bg-preview-empty p {
        margin: 0;
        font-size: 0.9rem;
    }

    .bg-preview-actions {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        gap: 8px;
        margin-top: 12px;
    }

    .bg-action-btn {
        display: inline-flex;
        align-items: center;
        gap: 6px;
        border: none;
        border-radius: 8px;
        padding: 10px 16px;
        font-size: 0.9rem;
        font-weight: 600;
        cursor: pointer;
        transition: background 0.2s ease, transform 0.15s ease;
    }

    .bg-action-btn:disabled {
        opacity: 0.6;
        cursor: not-allowed;
    }

    .bg-action-primary {
        background: #007bff;
        color: #fff;
    }

    .bg-action-primary:hover:not(:disabled) {
        background: #0056b3;
    }

    .bg-action-danger {
        background: #dc3545;
        color: #fff;
    }

    .bg-action-danger:hover:not(:disabled) {
        background: #c82333;
    }

    .bg-action-meta {
        flex: 1 1 100%;
        font-size: 0.8rem;
        color: #888;
    }

    .upload-area {
        border: 2px dashed #007bff;
        border-radius: 12px;
        padding: 40px 20px;
        text-align: center;
        background: rgba(0, 123, 255, 0.05);
        transition: all 0.3s ease;
        cursor: pointer;
    }

    .upload-area:hover {
        border-color: #0056b3;
        background: rgba(0, 123, 255, 0.1);
    }

    .upload-area.dragover {
        border-color: #28a745;
        background: rgba(40, 167, 69, 0.1);
        transform: scale(1.02);
    }

    .upload-content {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }

    .upload-content i {
        font-size: 3rem;
        color: #007bff;
        margin-bottom: 10px;
    }

    .upload-content p {
        margin: 0;
        color: #666;
        font-size: 0.95rem;
    }

    .upload-content .upload-info {
        font-size: 0.85rem;
        color: #888;
        margin-top: 5px;
    }

    .upload-btn {
        background: #007bff;
        color: white;
        border: none;
        padding: 12px 24px;
        border-radius: 8px;
        font-size: 0.95rem;
        font-weight: 500;
        cursor: pointer;
        transition: all 0.3s ease;
        display: inline-flex;
        align-items: center;
        gap: 8px;
        margin-top: 10px;
    }

    .upload-btn:hover {
        background: #0056b3;
        transform: translateY(-2px);
    }

    .preview-container {
        display: flex;
        flex-direction: column;
        gap: 15px;
    }

    .preview-area,
    .background-preview-area {
        width: 100%;
        aspect-ratio: 16 / 9;
        height: auto;
        min-height: 0;
        border: 1px solid #d1d5db;
        border-radius: 12px;
        display: flex;
        align-items: center;
        justify-content: center;
        background: #eef1f5;
        overflow: hidden;
        position: relative;
        box-sizing: border-box;
    }

    .preview-area.has-background,
    .background-preview-area.has-background {
        border-color: #c5cdd8;
    }

    .preview-area img,
    .preview-area video,
    .background-preview-area img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        border-radius: 11px;
    }

    .no-background,
    .no-background-preview {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 10px;
        color: #888;
    }

    .no-background i,
    .no-background-preview i {
        font-size: 2.5rem;
        color: #ccc;
    }

    .no-background p,
    .no-background-preview p {
        margin: 0;
        font-size: 0.9rem;
    }

    .preview-controls {
        display: flex;
        justify-content: center;
    }

    .remove-btn {
        background: #dc3545;
        color: white;
        border: none;
        padding: 10px 20px;
        border-radius: 8px;
        font-size: 0.9rem;
        font-weight: 500;
        cursor: pointer;
        transition: all 0.3s ease;
        display: inline-flex;
        align-items: center;
        gap: 8px;
    }

    .remove-btn:hover {
        background: #c82333;
        transform: translateY(-2px);
    }

    .hidden {
        display: none !important;
    }

    /* Mobil: aynı oran, taşma yok — sabit px yükseklik yok */
    @media (max-width: 768px) {
        .channel-background {
            padding: 12px;
        }

        .background-upload-section,
        .background-preview-section {
            padding: 12px;
        }

        .upload-area {
            padding: 24px 12px;
        }

        .upload-content i {
            font-size: 2rem;
        }

        .bg-preview-frame,
        .preview-area,
        .background-preview-area {
            aspect-ratio: 16 / 9;
            height: auto;
            min-height: 0;
        }

        .bg-preview-actions {
            gap: 8px;
        }

        .bg-action-btn {
            flex: 1 1 auto;
            justify-content: center;
            min-height: 42px;
        }

        .bg-action-meta {
            text-align: center;
        }
    }
    