/* Modern & Premium TV Design - Ultimate Edition */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
    /* Daha akıcı font render */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

:root {
    /* Brand Colors - Vivid */
    --brand-yellow: #FFC90E;
    --brand-pink: #FF6B9C;
    --brand-orange: #FF8F00;
    
    /* Backgrounds - Deep & Soft */
    --bg-main: #0F1115;
    --bg-surface: #181B21;
    --bg-surface-hover: #22262E;
    --bg-glass: rgba(24, 27, 33, 0.85);
    --bg-glass-light: rgba(255, 255, 255, 0.03);
    
    /* Text */
    --text-primary: #FFFFFF;
    --text-secondary: #B0B5C0;
    --text-tertiary: #6B7280;
    
    /* Borders & Effects */
    --border-glass: rgba(255, 255, 255, 0.06);
    --border-active: rgba(255, 201, 14, 0.4);
    --shadow-soft: 0 10px 40px -10px rgba(0,0,0,0.5);
    --glow-primary: 0 0 25px rgba(255, 201, 14, 0.25);
    
    /* Gradients */
    --gradient-brand: linear-gradient(135deg, var(--brand-pink), var(--brand-orange), var(--brand-yellow));
}

/* Yumuşak Kaydırma */
html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, sans-serif;
    background: url('images/saltarka.png') no-repeat center top fixed;
    background-size: cover;
    background-color: var(--bg-main); /* Resim yüklenmezse fallback */
    color: var(--text-primary);
    min-height: 100vh;
    line-height: 1.5;
    overflow-x: hidden;
    position: relative;
}

/* Tıklanabilir Arka Plan */
.bg-clickable {
    position: fixed;
    inset: 0;
    z-index: 0;
    cursor: pointer;
    display: block;
}

/* Background Animation - Subtle Movement */
.animated-bg {
    position: fixed;
    inset: 0;
    z-index: -1;
    overflow: hidden;
    background: transparent; /* Arka plan resmi body'den geldiği için şeffaf */
}

.bg-circle {
    position: absolute;
    border-radius: 50%;
    filter: blur(140px);
    opacity: 0.15;
    will-change: transform;
    animation: float 25s ease-in-out infinite;
}

.circle-1 { width: 40vw; height: 40vw; background: var(--brand-yellow); top: -10%; left: -10%; }
.circle-2 { width: 35vw; height: 35vw; background: var(--brand-pink); bottom: -10%; right: -10%; animation-delay: -5s; }
.circle-3 { width: 25vw; height: 25vw; background: var(--brand-orange); top: 40%; left: 40%; animation-delay: -12s; }

@keyframes float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(30px, -40px) scale(1.05); }
    66% { transform: translate(-20px, 20px) scale(0.95); }
}

.container {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Header */
header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(15, 17, 21, 0.9);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-bottom: 1px solid var(--border-glass);
    padding: 16px 0;
    transition: all 0.3s ease;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
}

.logo-image {
    height: 80px; /* 44px'den 60px'e çıkarıldı */
    width: auto;
    filter: drop-shadow(0 0 15px rgba(255, 201, 14, 0.15));
    transition: transform 0.3s ease;
}

.logo:hover .logo-image {
    transform: scale(1.05) rotate(-2deg);
}

/* Header Banner */
.header-banner {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 50px;
    max-height: 70px;
    height: auto;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid var(--border-glass);
    background: var(--bg-surface);
    padding: 8px;
}

.header-banner:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 201, 14, 0.15);
    border-color: var(--border-active);
}

.header-banner img {
    width: 100%;
    height: 100%;
    max-height: 60px;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.header-banner:hover img {
    transform: scale(1.02);
}

.header-info {
    display: flex;
    align-items: center;
    gap: 20px;
}

.live-indicator {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 68, 68, 0.1);
    padding: 6px 14px;
    border-radius: 100px;
    border: 1px solid rgba(255, 68, 68, 0.2);
    color: #FF4444;
    font-weight: 600;
    font-size: 0.8rem;
    letter-spacing: 0.5px;
    transition: all 0.3s;
}

.live-indicator:hover {
    background: rgba(255, 68, 68, 0.15);
    box-shadow: 0 0 15px rgba(255, 68, 68, 0.2);
}

.pulse-dot {
    width: 6px;
    height: 6px;
    background: currentColor;
    border-radius: 50%;
    box-shadow: 0 0 10px currentColor;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.2); }
    100% { opacity: 1; transform: scale(1); }
}

/* Menu Toggle - shown on tablet/mobile for channel drawer */
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
    background: none;
    border: none;
    padding: 8px;
    cursor: pointer;
    z-index: 2001;
    min-width: 44px;
    min-height: 44px;
}

.menu-toggle span {
    width: 28px;
    height: 2px;
    background: var(--text-primary);
    border-radius: 4px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.menu-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(6px, 6px); }
.menu-toggle.active span:nth-child(2) { opacity: 0; width: 0; }
.menu-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* Main Layout */
main {
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    bottom: 0;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 24px 0;
    z-index: 1;
}

/* Safe area for notched phones */
@supports (padding: env(safe-area-inset-top)) {
    body {
        padding-left: env(safe-area-inset-left);
        padding-right: env(safe-area-inset-right);
        padding-bottom: env(safe-area-inset-bottom);
    }
    header {
        padding-top: max(16px, env(safe-area-inset-top));
    }
}

.content-wrapper {
    display: grid;
    grid-template-columns: 1fr 400px;
    column-gap: 32px;
    row-gap: 0;
    align-items: start;
}

/* Welcome Banner */
.welcome-banner {
    background: linear-gradient(135deg, rgba(20, 20, 20, 0.95) 0%, rgba(15, 17, 21, 0.95) 100%);
    border: 1px solid var(--border-glass);
    border-radius: 20px;
    padding: 24px 32px;
    margin-bottom: 32px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-soft);
}

.welcome-banner::before {
    content: '';
    position: absolute;
    left: 0; top: 0; bottom: 0;
    width: 4px;
    background: var(--gradient-brand);
}

.welcome-content h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 6px;
    background: linear-gradient(90deg, #fff, #ccc);
    -webkit-background-clip: text;
    background-clip: text; /* Standart özellik eklendi */
    -webkit-text-fill-color: transparent;
}

.welcome-content p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.close-banner {
    background: var(--bg-glass-light);
    border: 1px solid var(--border-glass);
    color: var(--text-secondary);
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.close-banner:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
    transform: rotate(90deg) scale(1.1);
}

/* Site Banner */
/* Sponsors Carousel */
.sponsors-carousel {
    width: 100%;
    max-width: 728px;
    margin: 0 auto 32px;
    position: relative;
}

.carousel-container {
    position: relative;
    width: 100%;
    padding-bottom: 12.36%; /* 90/728 = 0.1236 -> aspect ratio 728:90 */
    overflow: hidden;
}

.carousel-item {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.6s ease;
    pointer-events: none;
}

.carousel-item.active {
    opacity: 1;
    pointer-events: auto;
}

.carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
    transition: transform 0.3s ease;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border-glass);
}

.carousel-item:hover img {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.4);
}

.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 16px;
}

.promo-strip-banner {
    display: block;
    width: min(95%, 980px);
    margin: 0 auto 16px;
    padding: 14px 20px;
    border-radius: 14px;
    text-align: center;
    text-decoration: none;
    color: #e9f3ff;
    font-weight: 700;
    font-size: 1rem;
    letter-spacing: 0.2px;
    background: linear-gradient(90deg, rgba(4, 37, 58, 0.85) 0%, rgba(10, 32, 54, 0.88) 45%, rgba(6, 49, 46, 0.85) 100%);
    border: 1px solid rgba(84, 214, 177, 0.28);
    box-shadow: 0 10px 26px rgba(0, 0, 0, 0.25);
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.promo-strip-banner:hover {
    transform: translateY(-1px);
    border-color: rgba(84, 214, 177, 0.45);
}

/* Dismissible Inline Ad Banner */
.inline-ad-banner {
    position: fixed;
    left: 50%;
    bottom: 10px;
    transform: translateX(-50%);
    width: min(95vw, 760px);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    background: rgba(10, 12, 18, 0.92);
    overflow: hidden;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.35);
    z-index: 2500;
}

.inline-ad-link {
    display: block;
    line-height: 0;
    padding-right: 0;
    text-decoration: none;
}

.inline-ad-image {
    width: 100%;
    height: auto;
    max-height: none;
    object-fit: contain;
    display: block;
}

.inline-ad-close {
    position: absolute;
    top: 6px;
    right: 6px;
    transform: none;
    width: 30px;
    height: 30px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.45);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.inline-ad-close:hover {
    background: rgba(0, 0, 0, 0.7);
    border-color: rgba(255, 255, 255, 0.45);
}

body.is-video-fullscreen .inline-ad-banner {
    display: none !important;
}

body.is-video-fullscreen {
    overflow: hidden !important;
}

body.is-video-fullscreen header {
    display: none !important;
}

body.is-video-fullscreen .sponsors-carousel,
body.is-video-fullscreen .promo-strip-banner {
    display: none !important;
}

body.has-inline-ad .toast {
    bottom: 110px;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.dot:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.2);
}

.dot.active {
    background: var(--brand-yellow);
    box-shadow: 0 0 12px rgba(255, 201, 14, 0.6);
    width: 28px;
    border-radius: 5px;
    border-color: var(--brand-yellow);
}

/* Video Section */
.video-section {
    background: #000;
    border-radius: 24px 24px 12px 12px;
    overflow: hidden;
    box-shadow: none;
    border: 1px solid var(--border-glass);
    position: relative;
    margin-bottom: 0;
    padding-bottom: 0;
}
@media (max-width: 768px) {
    .video-section {
        border-radius: 16px 16px 10px 10px;
    }
}

.video-container {
    position: relative;
    padding-top: 56.25%;
    background: #000;
    isolation: isolate;
}

/* Video Overlay Banners */
.video-overlay-banner {
    position: absolute;
    z-index: 30;
    transition: all 0.3s ease;
    opacity: 0;
    pointer-events: none;
}

.video-overlay-banner.show {
    opacity: 1;
    pointer-events: auto;
}

/* Default Başlangıç Değerleri (JS devreye girene kadar) */
.video-overlay-banner.bottom-left {
    bottom: 0;
    left: 40px;
    width: 150px;
}

.video-overlay-banner.top-right {
    top: 55px;
    right: 40px;
    width: 100px;
}

.video-overlay-banner img {
    width: 100%;
    height: auto;
    display: block;
    box-shadow: none;
    transition: transform 0.3s ease;
}

.video-overlay-banner:hover img {
    transform: scale(1.02);
}

/* Custom Video Controls */
.custom-controls {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(to top, rgba(0,0,0,0.9), transparent);
    padding: 20px 15px;
    z-index: 25;
    opacity: 0;
    transition: opacity 0.3s ease;
    display: none; /* JS ile açılacak */
}

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

.controls-bottom {
    display: flex;
    align-items: center;
    gap: 15px;
}

.control-btn {
    background: none;
    border: none;
    color: #fff;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    transition: background 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.control-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

.volume-container {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 0; /* Hover ile açılacak */
    overflow: hidden;
    transition: width 0.3s ease;
}

.volume-container:hover,
.control-btn:hover + .volume-container,
.volume-container:focus-within {
    width: 140px;
}

#volumeSlider {
    width: 100px;
    height: 4px;
    -webkit-appearance: none;
    background: rgba(255,255,255,0.3);
    border-radius: 2px;
    cursor: pointer;
}

#volumeSlider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 12px;
    height: 12px;
    background: #fff;
    border-radius: 50%;
}

.live-status {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #fff;
    font-weight: 700;
    font-size: 14px;
    margin-left: 10px;
}

.live-status .live-dot {
    width: 8px;
    height: 8px;
    background: #FF0000;
    border-radius: 50%;
    box-shadow: 0 0 10px #FF0000;
}

/* Bannerlar için güncelleme - Mobilde çakışmasın */
.video-overlay-banner.bottom-left {
    bottom: 60px; /* Kontrollerin üstünde */
}

@media (max-width: 768px) {
    .custom-controls {
        opacity: 1; /* Mobilde hep görünsün veya dokununca */
        padding: 10px;
    }
    
    .volume-container {
        display: none; /* Mobilde ses slider'ı gizle */
    }

}

/* Fullscreen support for banners */
.video-container.is-fullscreen {
    width: 100vw;
    height: 100dvh;
    padding: 0;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #000;
}

.video-container.is-fullscreen video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-container.is-fullscreen .video-overlay-banner {
    position: fixed !important;
    z-index: 2147483647 !important;
}

/* Fullscreen support for banners - Container Based */
/* JS ile yönetildiği için buradaki pozisyon kuralları kaldırıldı */
.video-container.is-fullscreen .video-overlay-banner {
    /* Sadece z-index ve position garantilemek için */
    position: fixed !important; 
    z-index: 2147483647 !important;
}

/* iOS / Mobile Pseudo Fullscreen */
.video-container.is-fullscreen-ios {
    position: fixed !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    max-width: none !important;
    max-height: none !important;
    z-index: 99999 !important;
    background: #000 !important;
    padding: 0 !important;
    margin: 0 !important;
    border-radius: 0 !important;
    border: none !important;
    transform: none !important;
}

.video-container.is-fullscreen-ios video {
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important;
}

.ios-exit-fs {
    position: absolute;
    top: max(20px, env(safe-area-inset-top, 20px));
    left: max(20px, env(safe-area-inset-left, 20px));
    z-index: 100000;
    background: rgba(0,0,0,0.6);
    color: white;
    border: 1px solid rgba(255,255,255,0.6);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.video-placeholder {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #000;
    padding: 0;
}

.placeholder-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Sağ menüye yönlendiren ok */
.menu-arrow-hint {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    gap: 4px;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 8px 14px;
    border-radius: 20px;
    border: 1px solid rgba(255, 201, 14, 0.3);
    color: var(--brand-yellow);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    cursor: pointer;
    animation: arrowPulse 2s ease-in-out infinite;
    z-index: 5;
    transition: all 0.3s ease;
}

.menu-arrow-hint:hover {
    background: rgba(255, 201, 14, 0.15);
    border-color: var(--brand-yellow);
    transform: translateY(-50%) translateX(3px);
}

.menu-arrow-hint svg {
    animation: arrowBounce 1.5s ease-in-out infinite;
}

@keyframes arrowPulse {
    0%, 100% { opacity: 0.8; }
    50% { opacity: 1; }
}

@keyframes arrowBounce {
    0%, 100% { transform: translateX(0); }
    50% { transform: translateX(4px); }
}

/* Mobilde ok aşağıyı göstersin */
@media (max-width: 768px) {
    .menu-arrow-hint {
        right: auto;
        bottom: 16px;
        top: auto;
        left: 50%;
        transform: translateX(-50%);
    }
    .menu-arrow-hint:hover {
        transform: translateX(-50%) translateY(3px);
    }
    .menu-arrow-hint svg {
        transform: rotate(90deg);
        animation: arrowBounceDown 1.5s ease-in-out infinite;
    }
    @keyframes arrowBounceDown {
        0%, 100% { transform: rotate(90deg) translateX(0); }
        50% { transform: rotate(90deg) translateX(4px); }
    }
}

/* Eski placeholder stilleri kaldırıldı */
.stat-number {
    font-size: 2rem;
    font-weight: 800;
    background: var(--gradient-brand);
    -webkit-background-clip: text;
    background-clip: text; /* Standart özellik eklendi */
    -webkit-text-fill-color: transparent;
    line-height: 1.1;
}

.stat-label {
    font-size: 0.75rem;
    color: var(--text-tertiary);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

.video-overlay {
    position: absolute;
    inset: 0;
    background: rgba(5, 5, 5, 0.9);
    backdrop-filter: blur(10px);
    display: none;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 20px;
    z-index: 20;
}

.video-overlay.active { display: flex; }

.spinner {
    width: 56px;
    height: 56px;
    border: 3px solid rgba(255,255,255,0.1);
    border-top-color: var(--brand-yellow);
    border-radius: 50%;
    animation: spin 0.8s cubic-bezier(0.5, 0.1, 0.4, 0.9) infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

/* Now Playing Bar */
/* Sunucu Seçici */
.server-selector-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 20px;
    background: rgba(15, 17, 21, 0.95);
    border-top: 1px solid var(--border-glass);
    position: relative;
    z-index: 2;
}

.server-label {
    font-size: 0.75rem;
    color: var(--text-tertiary);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.server-selector {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.server-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-secondary);
    font-size: 0.72rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
}

.server-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
    color: var(--text-primary);
}

.server-btn.active {
    background: rgba(76, 175, 80, 0.15);
    border-color: rgba(76, 175, 80, 0.4);
    color: #4CAF50;
}

.server-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transition: all 0.2s ease;
}

.server-btn.active .server-dot {
    background: #4CAF50;
    box-shadow: 0 0 8px rgba(76, 175, 80, 0.5);
}

.now-playing {
    background: var(--bg-surface);
    padding: 24px 32px;
    border-top: 1px solid var(--border-glass);
    position: relative;
    z-index: 2;
}

.now-playing-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Sponsor Banners Grid */
.sponsor-banners-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin: 32px 0;
}

.sponsor-banner-item {
    position: relative;
    display: block;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--border-glass);
    transition: all 0.3s ease;
    aspect-ratio: 1 / 1;
    background: rgba(255, 255, 255, 0.02);
}

.sponsor-banner-item::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255, 201, 14, 0.1), rgba(255, 107, 156, 0.1));
    opacity: 0;
    transition: opacity 0.3s;
    z-index: 1;
}

.sponsor-banner-item:hover {
    transform: translateY(-5px);
    border-color: var(--border-active);
    box-shadow: 0 15px 40px rgba(255, 201, 14, 0.2);
}

.sponsor-banner-item:hover::before {
    opacity: 1;
}

.sponsor-banner-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.sponsor-banner-item:hover img {
    transform: scale(1.05);
}

.channel-badge {
    display: flex;
    align-items: center;
    gap: 16px;
}

.live-dot {
    width: 8px;
    height: 8px;
    background: #FF4444;
    border-radius: 50%;
    box-shadow: 0 0 15px #FF4444;
}

.channel-badge span:last-child {
    font-weight: 600;
    font-size: 1.2rem;
    color: var(--text-primary);
}

.quality-badge {
    background: rgba(255, 201, 14, 0.05);
    color: var(--brand-yellow);
    padding: 6px 14px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.8rem;
    border: 1px solid rgba(255, 201, 14, 0.2);
    letter-spacing: 1px;
    box-shadow: 0 0 15px rgba(255, 201, 14, 0.05);
}

/* Channels Sidebar */
/* Menu overlay - for mobile drawer backdrop (blur kaldırıldı - mobilde bulanıklık yok) */
.menu-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 1998;
    opacity: 0;
    transition: opacity 0.3s ease;
}
.menu-overlay.active {
    display: block;
    opacity: 1;
}

.channels-section {
    background: var(--bg-glass);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    border-radius: 24px;
    border: 1px solid var(--border-glass);
    padding: 24px;
    display: flex;
    flex-direction: column;
    height: calc(100vh - 40px);
    position: sticky;
    top: 16px;
    box-shadow: var(--shadow-soft);
}

    .channels-header {
        flex-shrink: 0;
        margin-bottom: 24px;
    }

    /* Mobil Menü Kapatma Butonu */
    .close-menu-mobile {
        background: transparent;
        border: none;
        color: var(--text-secondary);
        cursor: pointer;
        padding: 4px;
        display: none; /* Varsayılan gizli */
        transition: all 0.3s;
    }

    .close-menu-mobile:hover {
        color: var(--text-primary);
        transform: rotate(90deg);
    }

    @media (max-width: 768px) {
        .close-menu-mobile {
            display: flex !important; /* Mobilde göster */
        }
        /* Mobilde kanallar panelinde blur kapatıldı */
        .channels-section {
            backdrop-filter: none;
            -webkit-backdrop-filter: none;
        }
    }

.header-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.header-title h3 {
    font-size: 1.2rem;
    font-weight: 700;
    padding-left: 14px;
    border-left: 3px solid var(--brand-yellow);
    color: var(--text-primary);
}

.channel-count {
    font-size: 0.75rem;
    font-weight: 600;
    background: rgba(255,255,255,0.05);
    padding: 4px 12px;
    border-radius: 100px;
    color: var(--text-secondary);
    border: 1px solid var(--border-glass);
}

/* Search Box */
.search-box {
    position: relative;
    margin-bottom: 20px;
}

.search-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-tertiary);
    transition: color 0.3s;
    pointer-events: none;
}

.search-box input {
    width: 100%;
    background: var(--bg-glass-light);
    border: 1px solid var(--border-glass);
    padding: 14px 14px 14px 48px;
    border-radius: 14px;
    color: var(--text-primary);
    font-family: inherit;
    font-size: 0.95rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.search-box input:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 201, 14, 0.4);
    box-shadow: 0 0 0 4px rgba(255, 201, 14, 0.08);
    transform: translateY(-1px);
}

.search-box input:focus + .search-icon {
    color: var(--brand-yellow);
}

.clear-search {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--text-tertiary);
    cursor: pointer;
    padding: 6px;
    display: flex;
    border-radius: 50%;
    transition: all 0.2s;
}

.clear-search:hover {
    background: rgba(255,255,255,0.1);
    color: var(--text-primary);
}

/* Filter Tabs */
.filter-tabs {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 4px;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}

.filter-tabs::-webkit-scrollbar { display: none; }

.filter-tab {
    background: transparent;
    border: 1px solid var(--border-glass);
    color: var(--text-secondary);
    padding: 8px 18px;
    border-radius: 100px;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.3s;
}

.filter-tab:hover {
    background: rgba(255,255,255,0.05);
    color: var(--text-primary);
    border-color: rgba(255,255,255,0.2);
}

.filter-tab.active {
    background: var(--brand-yellow);
    color: #0F1115;
    border-color: var(--brand-yellow);
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(255, 201, 14, 0.25);
}

/* Channels List */
.channels-list {
    flex: 1;
    overflow-y: auto;
    padding-right: 6px;
    /* Custom Scrollbar */
    scrollbar-width: thin;
    scrollbar-color: rgba(255,255,255,0.1) transparent;
}

.channels-list::-webkit-scrollbar {
    width: 6px;
}

.channels-list::-webkit-scrollbar-track {
    background: transparent;
}

.channels-list::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,0.1);
    border-radius: 10px;
}

.channels-list::-webkit-scrollbar-thumb:hover {
    background: rgba(255,255,255,0.2);
}

.channel-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    margin-bottom: 4px;
    border-radius: 8px;
    cursor: pointer;
    border: 1px solid rgba(255, 255, 255, 0.06);
    background: rgba(20, 22, 28, 0.8);
    transition: all 0.2s ease;
    animation: fadeInSlide 0.3s ease-out backwards;
    position: relative;
    overflow: hidden;
}

/* Staggered Animation */
.channel-item:nth-child(1) { animation-delay: 0.03s; }
.channel-item:nth-child(2) { animation-delay: 0.06s; }
.channel-item:nth-child(3) { animation-delay: 0.09s; }
.channel-item:nth-child(4) { animation-delay: 0.12s; }
.channel-item:nth-child(5) { animation-delay: 0.15s; }
.channel-item:nth-child(n+6) { animation-delay: 0.18s; }

@keyframes fadeInSlide {
    from { opacity: 0; transform: translateX(20px); }
    to { opacity: 1; transform: translateX(0); }
}

.channel-item:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.1);
}

.channel-item.active {
    background: rgba(255, 201, 14, 0.08);
    border-color: rgba(255, 201, 14, 0.2);
}

/* Play Butonu */
.channel-play-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--text-secondary);
    transition: all 0.2s ease;
}

.channel-play-btn svg {
    margin-left: 2px;
}

.channel-item:hover .channel-play-btn {
    background: rgba(255, 255, 255, 0.12);
    color: var(--text-primary);
}

.channel-item.active .channel-play-btn {
    background: var(--brand-yellow);
    border-color: var(--brand-yellow);
    color: #0F1115;
}

/* CANLI Badge */
.channel-live-badge {
    background: #E50914;
    color: #fff;
    font-size: 0.6rem;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 4px;
    letter-spacing: 0.5px;
    flex-shrink: 0;
    text-transform: uppercase;
}

/* Sağdaki Kanal Logosu */
.channel-logo-right {
    width: 80px;
    height: 45px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    overflow: hidden;
}

.channel-logo-right img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    opacity: 0.85;
    transition: opacity 0.2s ease;
}

.channel-item:hover .channel-logo-right img {
    opacity: 1;
}

.channel-item.active .channel-logo-right img {
    opacity: 1;
    filter: drop-shadow(0 0 6px rgba(255, 201, 14, 0.3));
}

/* Kanal Listesi İçi Reklam Banner */
.channel-ad-banner {
    display: block;
    width: 100%;
    margin: 8px 0;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(255, 201, 14, 0.15);
    transition: all 0.3s ease;
    opacity: 0.9;
}

.channel-ad-banner img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

.channel-ad-banner:hover {
    opacity: 1;
    border-color: rgba(255, 201, 14, 0.4);
    transform: scale(1.02);
    box-shadow: 0 4px 16px rgba(255, 201, 14, 0.15);
}

.channel-info {
    flex: 1;
    min-width: 0;
}

.channel-name {
    font-weight: 700;
    font-size: 0.8rem;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    letter-spacing: 0.3px;
    transition: color 0.2s;
}

.channel-item.active .channel-name {
    color: var(--brand-yellow);
}

/* Toast */
.toast {
    position: fixed;
    bottom: 40px;
    right: 40px;
    background: rgba(24, 27, 33, 0.95);
    backdrop-filter: blur(16px);
    padding: 16px 24px;
    border-radius: 16px;
    border: 1px solid rgba(255, 201, 14, 0.2);
    border-left: 4px solid var(--brand-yellow);
    display: flex;
    align-items: center;
    gap: 16px;
    z-index: 3000;
    transform: translateY(100px);
    opacity: 0;
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 20px 50px -10px rgba(0,0,0,0.5);
}

.toast.show {
    transform: translateY(0);
    opacity: 1;
}

.toast-icon {
    color: var(--brand-yellow);
    display: flex;
    filter: drop-shadow(0 0 10px rgba(255, 201, 14, 0.4));
}

.toast-message {
    font-size: 0.95rem;
    font-weight: 500;
}

/* Startup Popup */
.startup-popup-overlay {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

.startup-popup-overlay.show {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.startup-popup {
    position: relative;
    width: min(92vw, 540px);
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.55);
    transform: translateY(10px) scale(0.98);
    transition: transform 0.25s ease;
}

.startup-popup-overlay.show .startup-popup {
    transform: translateY(0) scale(1);
}

.startup-popup-image {
    width: 100%;
    height: auto;
    display: block;
}

.startup-popup-close {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 34px;
    height: 34px;
    border: none;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.55);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
    z-index: 1;
}

.startup-popup-close:hover {
    background: rgba(0, 0, 0, 0.8);
    transform: scale(1.06);
}

/* Vertical Banners Section */
.vertical-banners-section {
    display: grid;
    grid-template-columns: 1fr 1fr; /* PC: 2 sütun yan yana */
    gap: 8px;
    margin: 12px 0 0 0;
    padding-top: 0;
    width: 100%;
    grid-column: 1; /* Desktop: sadece video sütununda */
}

.vertical-banner-item {
    display: block;
    width: 100%;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--border-glass);
    background: var(--bg-surface);
    position: relative;
    transition: all 0.3s ease;
}

.vertical-banner-item img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.vertical-banner-item:hover {
    transform: translateY(-3px);
    border-color: var(--border-active);
    box-shadow: 0 8px 25px rgba(0,0,0,0.3);
}

.vertical-banner-item:hover img {
    transform: scale(1.02);
}

/* Tablet & Mobile Adjustments */
@media (max-width: 1024px) {
    .vertical-banners-section {
        gap: 12px;
    }
}

@media (max-width: 768px) {
    .vertical-banners-section {
        grid-template-columns: 1fr; /* Mobilde tek sütun - alt alta */
        gap: 10px;
        margin-top: 12px;
    }
    
    .vertical-banner-item {
        aspect-ratio: auto; /* Mobilde resmin doğal oranı */
    }
}

/* Footer */
footer {
    border-top: 1px solid var(--border-glass);
    background: #0B0C0F;
    padding: 48px 0 32px;
    margin-top: 80px;
    position: relative;
    z-index: 1;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-logo img {
    height: 40px;
    opacity: 0.6;
    filter: grayscale(100%);
    transition: all 0.4s ease;
    margin-bottom: 12px;
}

.footer-logo:hover img {
    opacity: 1;
    filter: none;
    transform: translateY(-2px);
}

.footer-info p {
    color: var(--text-tertiary);
    font-size: 0.9rem;
    margin-bottom: 8px;
}

.footer-bottom {
    text-align: center;
    padding-top: 24px;
    border-top: 1px solid var(--border-glass);
    color: var(--text-tertiary);
    font-size: 0.85rem;
}

/* Responsive */
@media (max-width: 1024px) {
    main {
        top: 62px;
    }
    .content-wrapper {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    .video-section {
        order: 1;
    }
    .channels-section {
        order: 2;
        height: auto;
        max-height: 500px;
        position: static;
        padding: 20px;
    }
    .vertical-banners-section {
        order: 3;
    }
    .channels-list {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: 12px;
        padding-right: 0;
    }
    .sponsor-banners-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 16px;
        margin: 24px 0;
    }
}

@media (max-width: 768px) {
    /* Header daha kompakt */
    header {
        padding: 10px 0;
    }
    header .container {
        flex-wrap: nowrap;
        gap: 10px;
    }

    /* Mobilde logoyu küçült */
    .logo-image {
        height: 48px !important;
        max-height: 48px;
    }
    .logo {
        flex-shrink: 0;
    }

    /* Mobilde header banner - taşmayı önle */
    .header-banner {
        min-height: 36px;
        max-height: 48px;
        padding: 6px 8px;
        flex: 1;
        min-width: 0;
    }
    .header-banner img {
        max-height: 36px;
        object-fit: contain;
    }

    /* Main alanı: mobil header yüksekliğine göre (logo ~48px + padding) */
    main {
        top: 52px;
        padding: 16px 0;
        -webkit-overflow-scrolling: touch;
    }

    /* Mobilde menü toggle göster (hamburger) - tıklanabilir olsun */
    .menu-toggle {
        display: flex !important;
        position: relative;
        z-index: 2001;
        cursor: pointer;
        touch-action: manipulation;
    }
    .now-playing {
        position: relative;
        z-index: 100;
    }

    /* Mobilde kanallar drawer: varsayılan gizli, .active ile açılır */
    .channels-section {
        position: fixed;
        top: 0;
        right: 0;
        width: min(100%, 360px);
        max-width: 100%;
        height: 100vh;
        height: 100dvh;
        max-height: none;
        z-index: 1999;
        border-radius: 0;
        padding: 16px;
        margin: 0;
        border-left: 1px solid var(--border-glass);
        box-shadow: -10px 0 40px rgba(0, 0, 0, 0.5);
        transform: translateX(100%);
        transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        overflow: hidden;
        display: flex;
        flex-direction: column;
        background: var(--bg-surface);
    }
    .channels-section.active {
        transform: translateX(0);
    }
    .channels-section .channels-header {
        padding-top: env(safe-area-inset-top);
    }

    .channels-section .channels-list {
        display: block;
        padding-right: 4px;
        max-height: none;
        flex: 1;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    /* Mobilde kapatma butonu göster */
    .close-menu-mobile {
        display: flex !important;
        align-items: center;
        justify-content: center;
        min-width: 44px;
        min-height: 44px;
    }

    .welcome-banner {
        flex-direction: column;
        text-align: center;
        gap: 16px;
        padding: 16px 20px;
        margin-bottom: 20px;
    }
    .welcome-content h2 {
        font-size: 1.25rem;
    }
    .welcome-content p {
        font-size: 0.875rem;
    }

    .stats {
        display: none;
    }

    /* Now playing bar - mobilde tek satır, taşma önle */
    .now-playing {
        padding: 12px 16px;
    }
    .now-playing-content {
        flex-wrap: wrap;
        gap: 10px;
    }
    .channel-badge {
        min-width: 0;
        flex: 1;
    }
    .channel-badge span:last-child {
        font-size: 0.95rem;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    /* Sunucu seçici - mobilde satır kaydırma veya wrap */
    .server-selector-bar {
        padding: 8px 12px;
        flex-wrap: wrap;
        gap: 8px;
    }
    .server-label {
        width: 100%;
        font-size: 0.7rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    footer {
        padding: 32px 0 24px;
        margin-top: 48px;
    }

    .toast {
        left: 16px;
        right: 16px;
        bottom: max(24px, env(safe-area-inset-bottom));
        justify-content: center;
    }

    /* Video Overlay Banners - Mobil Ayarları */
    .video-overlay-banner.bottom-left {
        bottom: 55px !important;
        left: 8px !important;
        width: 90px !important;
        z-index: 30 !important;
    }
    .video-overlay-banner.top-right {
        top: 8px !important;
        right: 8px !important;
        width: 80px !important;
        z-index: 30 !important;
    }

    /* Container mobil padding */
    .container {
        padding: 0 16px;
    }

    /* Sponsors carousel mobil */
    .sponsors-carousel {
        margin-bottom: 20px;
    }

    .promo-strip-banner {
        width: 100%;
        font-size: 0.9rem;
        line-height: 1.35;
        padding: 11px 14px;
        margin-bottom: 12px;
    }

    .inline-ad-close {
        width: 28px;
        height: 28px;
    }

    /* Telegram overlay mobil */
    #tg-overlay > div {
        margin: 16px;
        padding: 24px 20px !important;
        max-width: 100%;
    }
    #tg-overlay h2 {
        font-size: 1.25rem !important;
    }
    #tg-overlay p {
        font-size: 0.9rem !important;
    }

    .startup-popup {
        width: min(95vw, 430px);
    }

    .startup-popup-close {
        width: 32px;
        height: 32px;
        top: 8px;
        right: 8px;
    }
}

/* Çok küçük ekranlar */
@media (max-width: 380px) {
    .header-banner {
        min-height: 32px;
        max-height: 40px;
    }
    .header-banner img {
        max-height: 30px;
    }
    .logo-image {
        height: 40px !important;
    }
    main {
        top: 40px;
    }
    .channels-section {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 12px;
    }
    main {
        padding: 12px 0;
    }
    
    /* Video Placeholder Mobil Düzenlemesi */
    .video-container {
        min-height: 240px; /* Yüksekliği biraz artırdık */
    }

    .placeholder-content {
        padding: 1.5rem 1rem;
    }

    .play-icon-wrapper svg {
        width: 48px;
        height: 48px;
    }

    /* Video Overlay Banners - Mobile */
    /* JS ile yönetiliyor */
    
    .placeholder-content h3 {
        font-size: 1.2rem;
        margin: 12px 0 6px;
    }

    .placeholder-content p {
        font-size: 0.85rem;
        margin-bottom: 0;
        line-height: 1.4;
        max-width: 280px;
    }
    
    /* Alt Bar Düzenlemesi */
    .now-playing {
        padding: 16px;
    }

    .channel-badge span:last-child {
        font-size: 1rem;
    }

    /* Sponsor Banners Grid - Mobile */
    .sponsor-banners-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 12px;
        margin: 20px 0;
    }

    .sponsor-banner-item {
        border-radius: 12px;
    }
    
    .channel-item {
        padding: 8px 10px;
        gap: 8px;
    }
    
    .channel-play-btn {
        width: 28px;
        height: 28px;
    }
    
    .channel-play-btn svg {
        width: 12px;
        height: 12px;
    }
    
    .channel-name {
        font-size: 0.7rem;
    }
    
    .channel-logo-right {
        width: 60px;
        height: 35px;
    }
    
    .channel-live-badge {
        font-size: 0.5rem;
        padding: 2px 6px;
    }
    
    .sponsors-carousel {
        margin-bottom: 24px;
        max-width: 100%;
        padding: 0 16px;
    }

    .promo-strip-banner {
        font-size: 0.76rem;
        letter-spacing: 0;
        padding: 10px 12px;
        margin: 0 8px 10px;
        width: auto;
    }

    .inline-ad-banner {
        border-radius: 10px;
        width: calc(100vw - 10px);
        bottom: 6px;
    }

    .inline-ad-close {
        width: 24px;
        height: 24px;
    }
    
    .carousel-container {
        padding-bottom: 12.36%; /* Aynı oran korunur */
    }
    
    .carousel-item img {
        border-radius: 8px;
    }
    
    .carousel-dots {
        margin-top: 12px;
        gap: 8px;
    }
    
    .dot {
        width: 8px;
        height: 8px;
    }
    
    .dot.active {
        width: 22px;
    }
}
