body {
    margin: 0;
    font-family: Arial, sans-serif;
    background: #111;
    color: #fff;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}
center img {
    max-width: 100%; /* Logonun responsive olmasını sağlar */
    height: auto;
    display: block; /* img'nin altında boşluk kalmaması için */
    margin: 10px auto; /* Ortalamak için */
}
h1 {
    text-align: center;
    color: #fff;
    margin: 10px 0;
    font-size: 24px;
}
main {
    flex: 1;
    display: flex;
    flex-direction: row;
}
.player-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    padding: 10px;
    position: relative; /* Video.js'in tam genişlikte çalışması için */
    width: 100%; /* Responsive durumlar için genişlik ayarı */
    max-width: 100%;
}
/* Video.js player ve responsive ayarları */
.video-js {
    width: 100%;
    height: 0;
    padding-top: 56.25%; /* 16:9 en boy oranı (9 / 16 * 100) */
    background: #000;
}
/* Player'ın içindeki video elemanını tam doldurmasını sağla */
.video-js .vjs-tech {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}
.vjs-error-display .vjs-modal-dialog-content {
    font-size: 18px;
    color: #fff;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    text-align: center;
    padding: 20px;
}
.now-playing {
    margin-top: 10px;
    font-size: 18px;
    text-align: center;
}
.now-playing img {
    width: 30px;
    height: 20px;
    vertical-align: middle;
    margin-left: 8px;
}
.sidebar {
    width: 300px;
    background: #1a1a1a;
    overflow-y: auto;
    padding: 10px;
    border-left: 2px solid #333;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.channel-list {
    flex: 1;
    overflow-y: auto;
    max-height: calc(100vh - 280px); /* Ülke menüsü ve search inputu için pay bırak */
    display: flex;
    flex-direction: column;
}
.channel {
    padding: 6px;
    border-bottom: 1px solid #333;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
}
.channel img {
    width: 24px;
    height: 16px;
}
.channel:hover {
    background: #333;
}
.channel.active {
    background: #444;
    font-weight: bold;
}
.empty-channel-list {
    text-align: center;
    padding: 20px;
    color: #aaa;
}
.country-info-display {
    text-align: center;
    padding: 10px 0;
    border-bottom: 1px solid #333;
}
.country-info-display img {
    width: 40px;
    height: 28px;
    vertical-align: middle;
    margin-right: 10px;
}
.country-info-display span {
    font-size: 16px;
    font-weight: bold;
}
.country-info-display p {
    font-size: 14px;
    margin: 5px 0 0;
}
.channel-submit-link {
    text-align: center;
    padding: 10px;
    margin-top: 10px;
    background: #007bff;
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: background 0.3s;
}
.channel-submit-link:hover {
    background: #0056b3;
}
#channelSearch {
    width: calc(100% - 20px);
    padding: 8px 10px;
    margin-bottom: 10px;
    border: 1px solid #333;
    background: #222;
    color: #fff;
    border-radius: 5px;
    box-sizing: border-box;
}
#channelSearch::placeholder {
    color: #888;
}
.social-share {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 15px;
}
.social-share a {
    color: #fff;
    font-size: 24px;
    transition: color 0.3s;
}
.social-share a:hover {
    opacity: 0.8;
}
.social-share a.x-twitter:hover {
    color: #000;
    background-color: #fff;
}
.social-share a.facebook:hover {
    color: #3b5998;
}
.social-share a.whatsapp:hover {
    color: #25d366;
}
.social-share a.telegram:hover {
    color: #0088cc;
}
.social-share a.share-button {
    padding: 10px 15px;
    background: #333;
    border-radius: 5px;
    text-decoration: none;
    font-size: 16px;
}
/* Yeni Ülke Menüsü Stil Ayarları */
.country-select-container {
    position: relative;
    padding: 10px;
    border-bottom: 1px solid #333;
    display: flex;
    flex-direction: column; /* İçindeki buton ve menüyü alt alta sırala */
    align-items: center;
    gap: 10px;
}
.country-select-container button#countryMenuBtn {
    width: 100%;
    padding: 10px;
    background: #222;
    color: #fff;
    border: 1px solid #444;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 16px;
    transition: background 0.3s;
}
.country-select-container button#countryMenuBtn:hover {
    background: #333;
}
.country-select-container button#countryMenuBtn img {
    margin-right: 10px;
}
.country-select-container button#countryMenuBtn i {
    transition: transform 0.3s;
}
/* JS tarafından eklenen 'show' sınıfı için */
.country-select-container button#countryMenuBtn.show i {
    transform: rotate(180deg);
}
#countryMenu {
    position: absolute;
    top: 100%; /* Butonun hemen altında başla */
    left: 0;
    width: 100%; /* Kapsayıcı genişliğini al */
    background: #2a2a2a;
    border: 1px solid #444;
    border-top: none;
    border-radius: 0 0 4px 4px;
    z-index: 10;
    display: none; /* Varsayılan olarak gizli */
    flex-direction: column;
    max-height: 400px; /* Maksimum yükseklik belirle */
    overflow-y: auto; /* İçerik taşarsa kaydırma çubuğu */
}
/* JS tarafından eklenen 'show' sınıfı ile menüyü göster */
#countryMenu.show {
    display: flex; /* Menü açıldığında flex olarak göster */
}
.country-link {
    padding: 8px 12px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: #fff;
    text-decoration: none;
    transition: background 0.2s;
}
.country-link:hover {
    background: #3a3a3a;
}
.country-link img {
    width: 20px;
    height: 14px;
}

/* Responsive Düzenlemeler */
@media(max-width: 768px) {
    main {
        flex-direction: column;
    }
    .player-container {
        width: 100%;
        padding: 0; /* Mobil görünümde kenar boşluklarını kaldır */
    }
    .sidebar {
        width: 100%;
        order: 2; /* Sidebar'ı player'ın altına taşı */
        border-left: none;
        border-top: 2px solid #333;
    }
    .channel-list {
        max-height: 40vh; /* Mobil cihazlarda kanal listesinin yüksekliğini kısıtla */
    }
}