/* Genel Ayarlar */
* {
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f7f9fc;
    color: #333;
}

/* Header */
header {
    background-color: #000;
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

.logo img {
    height: 50px;
    width: auto;
}

.contact {
    display: flex;
    align-items: center;
}

.contact-btn {
    background: transparent;
    border: 2px solid #e10600;
    color: white;
    padding: 8px 14px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    text-decoration: none;
    transition: all 0.3s ease;
}

.contact-btn:hover {
    background-color: #e10600;
    color: white;
}

/* Ana Layout */
.main-wrapper {
    display: flex;
    justify-content: center;
    width: 100%;
}

.main-container {
    display: flex;
    justify-content: center;
    width: 100%;
    max-width: 1400px;
    margin: 20px auto;
    gap: 20px;
    padding: 0 10px;
}

/* İçerik Alanı */
.content-area {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: 100%;
}

.content-wrapper {
    display: flex;
    gap: 20px;
    width: 100%;
}

/* Oynatıcı Alanı */
.player-container {
    flex: 2;
    min-height: 300px; /* Daha küçük minimum yükseklik */
    padding: 10px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    gap: 10px;
    border-radius: 8px;
    width: 100%;
}

#stream-player {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    overflow: hidden;
    background: #000;
}

#stream-player iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.player-info {
    font-size: 15px;
    font-weight: bold;
    color: #333;
    text-align: center;
}

/* Yayın Listesi */
.stream-list {
    flex: 1;
    padding: 15px;
    max-height: 500px;
    overflow-y: auto;
    background: #fff;
    border-radius: 8px;
    width: 100%;
}

.sports {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 15px;
}

.sport-btn {
    background: transparent;
    border: 2px solid #e10600;
    color: #333;
    padding: 8px 14px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s ease;
}

.sport-btn:hover,
.sport-btn.active {
    background-color: #e10600;
    color: white;
}

/* Reklam Alanları */
.advertisement {
    width: 100%;
    max-width: 100%;
    margin: 10px 0;
    padding: 40px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    position: relative;
    overflow: hidden;
    min-height: 90px; /* Daha küçük minimum yükseklik */
}

.advertisement img {
    width: 100%;
    height: auto;
    max-height: 100%;
    object-fit: contain;
}

.mobile-ad {
    display: none;
}

.desktop-ad {
    max-height: 90px;
}

.ad-row {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    margin: 70px 0; /* Daha küçük margin */
}

.ad-item {
    flex: 1;
    height: 150px; /* Daha küçük yükseklik */
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
}

/* Maç Kartları */
.match {
    padding: 10px;
    margin-bottom: 10px;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.2s;
    background: white;
    border: 1px solid #eee;
}

.match:hover {
    background: #f5f5f5;
}

.match.active {
    background: #e3f2fd;
    border-left: 3px solid #2196F3;
}

.teams {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.team {
    display: flex;
    align-items: center;
    gap: 6px;
}

.team img {
    width: 25px;
    height: 25px;
    margin-right: 8px;
}

.vs {
    color: #f44336;
    font-weight: bold;
    margin: 0 10px;
    white-space: nowrap;
    user-select: none;
    flex-shrink: 0;
}

.match-info {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #666;
    margin-top: 5px;
}

/* Responsive Tasarım */
@media (max-width: 900px) {
    .header-container {
        flex-direction: column;
        align-items: center;
        gap: 10px;
        padding: 10px;
    }

    .content-wrapper {
        flex-direction: column;
    }

    .sports {
        justify-content: center;
        width: 100%;
        overflow-x: auto;
        padding-bottom: 10px;
    }

    .player-container {
        width: 100%;
        height: auto;
        flex: none;
        min-height: 250px;
    }

    #stream-player {
        height: 0;
        padding-bottom: 56.25%;
        position: relative;
        min-height: 200px;
    }

    .stream-list {
        width: 100%;
        flex: none;
        max-height: 350px;
        overflow-y: auto;
        margin-top: 10px;
    }

    .advertisement {
        min-height: 80px;
        margin: 15px 0;
    }

    .ad-row {
        display: none;
    }

    .ad-item {
        height: 100px;
        margin-bottom: 10px;
    }

    .player-info {
        padding: 10px;
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .player-container {
        min-height: 200px;
    }

    #stream-player {
        min-height: 180px;
        padding-bottom: 56.25%;
    }

    .advertisement {
        min-height: 70px;
        margin: 10px 0;
    }

    .stream-list {
        max-height: 300px;
    }

    .sport-btn {
        padding: 4px 8px;
        font-size: 11px;
    }

    .contact-btn {
        padding: 4px 8px;
        font-size: 11px;
    }

    .ad-item {
        height: 80px;
    }
}