*{
    box-sizing:border-box;
}

body{
    margin:0;
    font-family:Arial, sans-serif;
    background:#121212;
    color:white;
    display:flex;
    min-height:100vh;
}

/* =========================
   SIDEBAR
========================= */

.sidebar{
    width:230px;
    background:#000;
    padding:20px;
    position:fixed;
    top:0;
    left:0;
    bottom:0;
    overflow:auto;
}

.sidebar h2{
    color:#1db954;
    margin-top:0;
}

.sidebar a{
    display:block;
    padding:12px;
    margin:10px 0;
    border-radius:8px;
    text-decoration:none;
    background:#1e1e1e;
    color:#eee;
    font-weight:bold;
    transition:0.2s;
}

.sidebar a:hover{
    background:#1db954;
    color:black;
}

/* =========================
   MAIN
========================= */

.main{
    margin-left:230px;
    padding:20px;
    flex:1;
}

/* =========================
   GRID (episodes/index)
========================= */

.grid{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(250px,1fr));
    gap:20px;
}

.card{
    background:#181818;
    padding:18px;
    border-radius:14px;
    transition:0.2s;
}

.card:hover{
    transform:translateY(-3px);
    background:#222;
}

.card h3{
    margin-top:0;
}

.card p{
    color:#bbb;
}

/* =========================
   BUTTONS / LINKS
========================= */

.play-link{
    display:inline-block;
    background:#1db954;
    color:black;
    padding:12px 20px;
    border-radius:30px;
    text-decoration:none;
    font-weight:bold;
    transition:0.2s;
}

.play-link:hover{
    opacity:0.9;
    transform:scale(1.03);
}

/* =========================
   PLAYER PAGE
========================= */

.player-card{
    max-width:700px;
    margin:auto;
    background:#181818;
    padding:30px;
    border-radius:20px;
}

.back-btn{
    display:inline-block;
    background:#1db954;
    color:black;
    padding:10px 18px;
    border-radius:30px;
    text-decoration:none;
    font-weight:bold;
    margin-bottom:20px;
}

.back-btn:hover{
    opacity:0.9;
}

/* =========================
   CHAT
========================= */

.chat-box{
    max-width:900px;
    height:420px;
    overflow-y:auto;
    background:#0f0f0f;
    padding:15px;
    border-radius:15px;
    margin-bottom:15px;
}

.message{
    background:#1b1b1b;
    padding:12px;
    border-radius:12px;
    margin-bottom:10px;
    border-left:3px solid #1db954;
}

.msg-header{
    display:flex;
    justify-content:space-between;
    margin-bottom:5px;
}

.msg-header strong{
    color:#1db954;
}

.msg-header span{
    color:#888;
    font-size:12px;
}

.msg-body{
    color:#eee;
    word-break:break-word;
}

/* CHAT FORM */

.chat-form{
    max-width:900px;
}

.chat-form input,
.chat-form textarea{
    width:100%;
    padding:12px;
    margin-bottom:10px;
    border:none;
    border-radius:10px;
    background:#1e1e1e;
    color:white;
}

.chat-form textarea{
    min-height:100px;
}

/* BUTTON GLOBAL */
button{
    background:#1db954;
    color:black;
    border:none;
    padding:12px 20px;
    border-radius:30px;
    font-weight:bold;
    cursor:pointer;
}

button:hover{
    opacity:0.9;
}

/* ONLINE */
.online-box{
    background:#1e1e1e;
    padding:10px 15px;
    border-radius:10px;
    margin-bottom:10px;
    color:#1db954;
    font-weight:bold;
}

/* =========================
   RESPONSIVE
========================= */

@media(max-width:768px){

    body{
        flex-direction:column;
    }

    .sidebar{
        position:relative;
        width:100%;
        display:flex;
        gap:10px;
        align-items:center;
    }

    .sidebar a{
        margin:0;
        white-space:nowrap;
    }

    .main{
        margin-left:0;
    }

    .chat-box{
        height:350px;
    }

    .grid{
        grid-template-columns:1fr;
    }
}