/* ===== CLEAN MODERN STYLE ===== */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700;800&display=swap');

:root {
    --primary: #ff900a;
    --primary-hover: #e67d00;
    --primary-dark: #1585d1;
    --secondary: #64748b;
    --accent: #ff900a;
    --success: #ff900a;
    --danger: #ef4444;
    --bg-primary: #0a0a0a;
    --bg-secondary: #1a1a1a;
    --bg-card: #242424;
    --bg-hover: #2a2a2a;
    --border: rgba(255, 255, 255, 0.1);
    --text: #f0f0f0;
    --text-dim: #c0c0c0;
    --text-muted: #a0a0a0;
    --radius: 12px;
    --radius-sm: 8px;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.3), 0 2px 4px -2px rgba(0, 0, 0, 0.2);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.3), 0 4px 6px -4px rgba(0, 0, 0, 0.2);
}

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

body {
    font-family: 'Poppins', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--bg-primary);
    background-image: url('https://picsum.photos/1920/1080');
    background-size: 100% 100%;
    background-position: center center;
    background-attachment: fixed;
    background-repeat: no-repeat;
    color: var(--text);
    line-height: 1.6;
    min-height: 100vh;
}

/* ===== HEADER ===== */
.cyber-header {
    background: rgba(26, 26, 26, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
    padding: 1rem 2rem;
    margin: 0;
    max-width: 100%;
    position: sticky;
    top: 0;
    z-index: 1000;
    border-radius: 0;
    box-shadow: var(--shadow);
}

.cyber-logo {
    text-align: center;
    margin-bottom: 1rem;
}

.cyber-logo h1 {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--text);
    letter-spacing: 1px;
    text-transform: uppercase;
}

.cyber-logo h1 span {
    color: var(--primary);
}

.cyber-nav {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.cyber-nav-item {
    padding: 0.6rem 1.2rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.875rem;
    transition: all 0.3s ease;
}

.cyber-nav-item:hover {
    background: rgba(255, 144, 10, 0.1);
    border-color: var(--primary);
    color: var(--primary);
}

.cyber-nav-item i {
    margin-right: 0.25rem;
}

.social-telegram:hover {
    background: #0088cc;
    border-color: #0088cc;
    color: white;
}

/* ===== MAIN CONTAINER ===== */
.cyber-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 1.5rem;
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 1.5rem;
    min-height: calc(100vh - 150px);
}

/* ===== VIDEO PLAYER ===== */
.cyber-player-section {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1rem;
    box-shadow: var(--shadow);
}

.cyber-player-title {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-dim);
    margin-bottom: 0.75rem;
    padding: 0 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.cyber-video-container {
    position: relative;
    width: 100%;
    aspect-ratio: 16/9;
    background: var(--bg-card);
    border-radius: var(--radius-sm);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
}

.cyber-video-container iframe {
    width: 100%;
    height: 100%;
    border: none;
    /* Mobil performans iyileştirmeleri */
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    box-sizing: border-box;
}

.cyber-video-container.active {
    border: 2px solid var(--primary);
    box-shadow: 0 0 20px rgba(255, 144, 10, 0.2);
}

.cyber-video-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-card);
}

.cyber-placeholder-content {
    text-align: center;
    padding: 2rem;
}

.cyber-placeholder-content h3 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-dim);
    margin-bottom: 0.5rem;
}

.cyber-placeholder-content p {
    font-size: 0.875rem;
    color: var(--text-muted);
}

/* ===== SIDEBAR ===== */
.cyber-sidebar {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* ===== TAB NAVIGATION ===== */
.cyber-tab-nav {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.5rem;
}

.cyber-tab-btn {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 0.75rem 0.5rem;
    color: var(--text-dim);
    font-family: inherit;
    font-size: 0.75rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
}

.cyber-tab-btn:hover {
    background: var(--bg-hover);
    color: var(--text);
}

.cyber-tab-btn.active {
    background: linear-gradient(90deg, var(--primary), var(--primary-dark));
    border-color: var(--primary);
    color: white;
}

.cyber-tab-btn i {
    font-size: 1rem;
}

/* ===== SEARCH BAR ===== */
.cyber-search-bar {
    position: relative;
    margin-bottom: 0.75rem;
}

.cyber-search-bar input {
    width: 100%;
    padding: 0.75rem 1rem 0.75rem 2.5rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text);
    font-family: inherit;
    font-size: 0.875rem;
    outline: none;
    transition: all 0.2s ease;
}

.cyber-search-bar input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(255, 144, 10, 0.1);
}

.cyber-search-bar input::placeholder {
    color: var(--text-muted);
}

.cyber-search-bar i {
    position: absolute;
    left: 0.875rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 0.875rem;
}

/* ===== TAB CONTENT ===== */
.cyber-tab-content {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1rem;
    box-shadow: var(--shadow);
    min-height: 500px;
}

.cyber-tab-panel {
    display: none;
    height: 100%;
}

.cyber-tab-panel.active {
    display: block;
}

/* ===== MATCHES LIST ===== */
.cyber-matches-list {
    max-height: 450px;
    overflow-y: auto;
}

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

.cyber-matches-list::-webkit-scrollbar-track {
    background: var(--bg-card);
    border-radius: 3px;
}

.cyber-matches-list::-webkit-scrollbar-thumb {
    background: var(--secondary);
    border-radius: 3px;
}

.cyber-match-item {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 0.875rem;
    margin-bottom: 0.5rem;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
}

.cyber-match-item:hover {
    background: rgba(255, 144, 10, 0.1);
    border-color: var(--primary);
}

.cyber-match-item.active {
    background: linear-gradient(90deg, rgba(255, 144, 10, 0.2), transparent);
    border-left: 3px solid var(--primary);
}

.cyber-match-item.live {
    border-left: 3px solid var(--danger);
}

.cyber-match-teams {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
    gap: 0.5rem;
}

.cyber-team {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex: 1;
    font-size: 0.875rem;
    font-weight: 500;
}

.cyber-team:first-child {
    justify-content: flex-end;
    text-align: right;
}

.cyber-team:last-child {
    justify-content: flex-start;
}

.cyber-team-logo {
    width: 24px;
    height: 24px;
    object-fit: contain;
    border-radius: 4px;
    background: var(--bg-secondary);
}

.cyber-vs {
    font-weight: 600;
    color: var(--text-muted);
    font-size: 0.75rem;
    min-width: 30px;
    text-align: center;
}

.cyber-match-time {
    font-size: 0.8rem;
    color: var(--text-dim);
    text-align: center;
    margin-bottom: 0.25rem;
}

.cyber-match-league {
    font-size: 0.7rem;
    color: var(--text-muted);
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.cyber-live-indicator {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    background: #ff0000;
    color: white;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-size: 0.65rem;
    font-weight: 800;
    text-transform: uppercase;
    animation: blinker 1.5s linear infinite;
}

@keyframes blinker {
    50% {
        opacity: 0;
    }
}

/* ===== SCOREBOARD ===== */
.cyber-scoreboard-content {
    height: 450px;
    overflow: hidden;
    border-radius: var(--radius-sm);
    background: var(--bg-card);
}

.cyber-scoreboard-content iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* ===== CHANNELS LIST ===== */
.cyber-channels-table {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    max-height: 450px;
    overflow-y: auto;
}

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

.cyber-channels-table::-webkit-scrollbar-track {
    background: var(--bg-card);
    border-radius: 3px;
}

.cyber-channels-table::-webkit-scrollbar-thumb {
    background: var(--secondary);
    border-radius: 3px;
}

.cyber-channel-item {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 0.75rem;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.cyber-channel-item:hover {
    background: rgba(255, 144, 10, 0.1);
    border-color: var(--primary);
}

.cyber-channel-item.active {
    background: linear-gradient(90deg, rgba(255, 144, 10, 0.2), transparent);
    border-left: 3px solid var(--primary);
}

.cyber-channel-logo {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-sm);
    object-fit: contain;
    background: var(--bg-secondary);
    padding: 4px;
    flex-shrink: 0;
}

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

.cyber-channel-name {
    font-weight: 600;
    font-size: 0.875rem;
    color: var(--text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.cyber-channel-desc {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.cyber-channel-status {
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    flex-shrink: 0;
}

.cyber-channel-status.live {
    background: #ff0000;
    color: white;
    animation: blinker 1.5s linear infinite;
}

.cyber-channel-status.offline {
    background: var(--secondary);
    color: white;
}

/* ===== CHAT ===== */
.cyber-chat-messages {
    height: 350px;
    overflow-y: auto;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 0.75rem;
    margin-bottom: 0.75rem;
}

.cyber-chat-messages::-webkit-scrollbar {
    width: 6px;
}

.cyber-chat-messages::-webkit-scrollbar-track {
    background: var(--bg-secondary);
    border-radius: 3px;
}

.cyber-chat-messages::-webkit-scrollbar-thumb {
    background: var(--secondary);
    border-radius: 3px;
}

.cyber-chat-message {
    background: var(--bg-secondary);
    border-radius: var(--radius-sm);
    padding: 0.625rem;
    margin-bottom: 0.5rem;
}

.cyber-chat-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.25rem;
}

.cyber-chat-nickname {
    color: var(--primary);
    font-weight: 600;
    font-size: 0.8rem;
}

.cyber-chat-time {
    color: var(--text-muted);
    font-size: 0.7rem;
}

.cyber-chat-content {
    color: var(--text);
    font-size: 0.85rem;
    word-wrap: break-word;
}

.cyber-chat-actions {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.cyber-like-btn, .cyber-dislike-btn {
    background: var(--bg-card);
    border: 1px solid var(--border);
    color: var(--text-dim);
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.75rem;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.cyber-like-btn:hover {
    background: var(--success);
    border-color: var(--success);
    color: white;
}

.cyber-dislike-btn:hover {
    background: var(--danger);
    border-color: var(--danger);
    color: white;
}

.cyber-chat-input {
    display: flex;
    gap: 0.5rem;
}

.cyber-chat-input input {
    flex: 1;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 0.75rem;
    color: var(--text);
    font-family: inherit;
    font-size: 0.875rem;
}

.cyber-chat-input input:focus {
    outline: none;
    border-color: var(--primary);
}

.cyber-chat-input input::placeholder {
    color: var(--text-muted);
}

.cyber-chat-input button {
    background: var(--primary);
    color: white;
    border: none;
    border-radius: var(--radius-sm);
    padding: 0.75rem 1.25rem;
    font-family: inherit;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.cyber-chat-input button:hover {
    background: var(--primary-hover);
}

/* ===== LOADING ===== */
.cyber-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    color: var(--text-muted);
    font-size: 0.875rem;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1200px) {
    .cyber-container {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .cyber-player-section {
        order: 1;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }
    
    .cyber-sidebar {
        order: 2;
    }
    
    .cyber-video-container {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }
    
    .cyber-video-container iframe {
        width: 100%;
        height: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }
}

@media (max-width: 768px) {
    .cyber-header {
        padding: 0.75rem 1rem;
    }
    
    .cyber-logo h1 {
        font-size: 1.25rem;
    }
    
    .cyber-nav {
        gap: 0.5rem;
    }
    
    .cyber-nav-item {
        padding: 0.5rem 0.75rem;
        font-size: 0.75rem;
    }
    
    .cyber-container {
        padding: 1rem;
        display: flex;
        flex-direction: column;
    }
    
    .cyber-player-section {
        order: 1;
        width: 100%;
        max-width: 100%;
        padding: 0;
        margin: 0;
        box-sizing: border-box;
    }
    
    .cyber-player-title {
        padding: 0.75rem 0.5rem 0.5rem;
        margin-bottom: 0.5rem;
        font-size: 0.75rem;
    }
    
    .cyber-sidebar {
        order: 2;
    }
    
    .cyber-video-container {
        width: 100%;
        max-width: 100%;
        aspect-ratio: 16/9;
        min-height: 0;
        box-sizing: border-box;
        padding: 0;
        margin: 0;
        border-radius: 0;
    }
    
    .cyber-video-container iframe {
        width: 100%;
        height: 100%;
        max-width: 100%;
        box-sizing: border-box;
        -webkit-transform: translateZ(0);
        transform: translateZ(0);
        -webkit-backface-visibility: hidden;
        backface-visibility: hidden;
    }
    
    .cyber-tab-nav {
        grid-template-columns: repeat(4, 1fr);
        gap: 0.25rem;
    }
    
    .cyber-tab-btn {
        padding: 0.5rem 0.25rem;
        font-size: 0.65rem;
    }
    
    .cyber-tab-btn i {
        font-size: 0.875rem;
    }
    
    .cyber-tab-content {
        min-height: 400px;
        padding: 0.75rem;
    }
    
    .cyber-matches-list,
    .cyber-channels-table,
    .cyber-scoreboard-content {
        max-height: 350px;
    }
    
    .cyber-chat-messages {
        height: 280px;
    }
}

@media (max-width: 480px) {
    .cyber-header {
        padding: 0.5rem 0.75rem;
    }
    
    .cyber-logo {
        margin-bottom: 0.5rem;
    }
    
    .cyber-logo h1 {
        font-size: 1.1rem;
    }
    
    .cyber-logo p {
        font-size: 0.7rem;
        margin: 0;
    }
    
    .cyber-nav-item {
        padding: 0.4rem 0.6rem;
        font-size: 0.7rem;
    }
    
    .cyber-container {
        padding: 0.5rem;
        display: flex;
        flex-direction: column;
    }
    
    .cyber-player-section {
        order: 1;
        border-radius: 0;
        padding: 0;
        width: 100%;
        max-width: 100%;
        margin: 0;
        box-sizing: border-box;
    }
    
    .cyber-player-title {
        padding: 0.5rem;
        margin-bottom: 0.5rem;
        font-size: 0.7rem;
    }
    
    .cyber-sidebar {
        order: 2;
    }
    
    .cyber-video-container {
        width: 100%;
        max-width: 100%;
        aspect-ratio: 16/9;
        min-height: 0;
        box-sizing: border-box;
        padding: 0;
        margin: 0;
        border-radius: 0;
    }
    
    .cyber-video-container iframe {
        width: 100%;
        height: 100%;
        max-width: 100%;
        box-sizing: border-box;
        -webkit-transform: translateZ(0);
        transform: translateZ(0);
        -webkit-backface-visibility: hidden;
        backface-visibility: hidden;
    }
    
    .cyber-tab-content {
        min-height: 350px;
    }
}

/* ===== SCROLLBAR GLOBAL ===== */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-secondary);
}

::-webkit-scrollbar-thumb {
    background: var(--secondary);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--text-muted);
}
