body {
    font-family: Arial, sans-serif;
    background-color: #f0f2f5;
    margin: 0;
    color: #333;
}
/* ÜST MENÜ STİLİ */
.top-nav {
    background-color: #337ab7;
    padding: 10px 0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-links {
    display: flex;
    justify-content: center;
    list-style: none;
    margin: 0;
    padding: 0;
    flex-wrap: wrap;
}

.nav-links li {
    margin: 0 10px;
}

.nav-links a {
    color: white;
    text-decoration: none;
    font-weight: bold;
    padding: 8px 12px;
    border-radius: 4px;
    transition: background-color 0.3s;
}

.nav-links a:hover {
    background-color: #286090;
}

.container {
    display: flex;
    max-width: 1200px;
    margin: 20px auto;
    background: #fff;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
    border-radius: 8px;
    overflow: hidden;
}
.main-content {
    flex: 3;
    padding: 20px; /* İçerik ile kenarlar arasındaki boşluk */
    
    /* --- YENİ EKLENEN ÖZELLİKLER --- */
    background-color: #f2f2f2; /* Sağdaki menü ile aynı, temiz bir gri tonu */
    border: 1px solid #666666; /* Etrafına ince ve şık bir kenarlık */
    border-radius: 8px; /* Köşeleri yuvarlatarak modern bir görünüm kazandırır */
    box-shadow: 0 4px 8px rgba(0,0,0,0.05); /* (İsteğe bağlı ama önerilir) Hafif bir gölge ile derinlik katmak için */
}
.sidebar {
    flex: 1;
    background-color: #f8f9fa;
    padding: 20px;
    border-left: 1px solid #ddd;
    max-height: 90vh;
    overflow-y: auto;
}
.player-box {
    background-color: #000;
    color: #fff;
    height: 400px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 8px;
}
.player-box video, .player-box audio, .player-box iframe {
    width: 100%;
    height: 100%;
    border-radius: 8px;
}
#info-wrapper {
    padding-top: 20px;
}
#info-wrapper h2 {
    margin-top: 0;
}
#playlist .playlist-item {
    display: flex;
    align-items: center;
    padding: 10px;
    margin-bottom: 10px;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
}
#playlist .playlist-item:hover, #playlist .playlist-item.active {
    background-color: #e9ecef;
}
#playlist .playlist-item img {
    width: 80px;
    height: 45px;
    object-fit: cover;
    margin-right: 10px;
    border-radius: 4px;
}
/* --- YENİ EKLENEN STİLLER --- */

.filter-menu {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
    border-bottom: 2px solid #ddd;
    padding-bottom: 10px;
}

.filter-btn {
    flex: 1;
    padding: 8px 10px;
    border: 1px solid #ccc;
    background-color: #fff;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.3s, color 0.3s;
    text-align: center;
    margin: 0 2px;
}

.filter-btn:first-child { margin-left: 0; }
.filter-btn:last-child { margin-right: 0; }

.filter-btn:hover {
    background-color: #f0f0f0;
}

/* Aktif butonun stili */
.filter-btn.active {
    background-color: #337ab7;
    color: #fff;
    border-color: #2e6da4;
}

/* JavaScript ile gizlenecek playlist item'ları için stil */
.playlist-item.hidden {
    display: none;
}
/* --- YENİ EKLENEN SIRALAMA STİLLERİ --- */

.sort-container {
    margin-bottom: 15px;
}

.sort-btn {
    width: 100%;
    padding: 10px;
    background-color: #6c757d;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.3s;
}

.sort-btn:hover {
    background-color: #5a6268;
}

/* item-title için ek stil (isteğe bağlı) */
.playlist-item .item-title {
    /* Başlığın geri kalanını kaplamasını sağlar */
    flex-grow: 1; 
}
/* Alt filtre menüsü için stiller */
#sub-filter-container {
    flex-wrap: wrap; /* Butonlar sığmazsa alt satıra geçsin */
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #ddd;
}

.sub-filter-btn {
    padding: 6px 10px;
    border: 1px solid #ccc;
    background-color: #fff;
    cursor: pointer;
    font-size: 12px;
    transition: background-color 0.3s, color 0.3s;
}
/* MOBİL UYUMLULUK */
@media (max-width: 768px) {
    .container {
        flex-direction: column; /* Öğeleri alt alta sırala */
    }

    .sidebar {
        border-left: none; /* Aradaki çizgiyi kaldır */
        border-top: 2px solid #ddd; /* Üste çizgi ekle */
        max-height: none; /* Yükseklik limitini kaldır */
    }

    .player-box {
        height: 250px; /* Mobil için oynatıcı yüksekliğini azalt */
    }
}
/* --- SINIF FİLTRESİ İÇİN YENİ STİLLER --- */
#sub-filter-container {
    flex-wrap: wrap; /* Butonlar sığmazsa alt satıra geçsin */
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #ddd;
    justify-content: flex-start; /* Butonları sola yasla */
    margin-bottom: 0;
}

.sub-filter-btn {
    flex-grow: 1; /* Butonların esnek büyümesini sağlar */
    flex-basis: 22%; /* Yaklaşık 4 buton sığacak şekilde ayarla */
    padding: 6px 8px;
    border: 1px solid #ccc;
    background-color: #fff;
    cursor: pointer;
    font-size: 12px;
    transition: background-color 0.3s, color 0.3s;
    margin: 3px;
    border-radius: 4px;
    text-align: center;
}

.sub-filter-btn.active {
    background-color: #28a745; /* Aktif sınıf için yeşil renk */
    color: #fff;
    border-color: #28a745;
}