*{
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body{
    padding-bottom: 80px; /* Ruimte voor de vaste footer */
    font-family: sans-serif;
    background-color: #000;
    color: white;
}

/* De hoofdlayout: Zijbalk | Muziek Grid | Advertentie */
#grid-container {
    display: grid;
    grid-template-columns: 240px 1fr 120px; /* Advertentiekolom is 120px breed */
    min-height: 100vh;
}

/* Header (test0) - over de hele breedte */
.header-box {
    grid-column: 1 / -1;
    height: 80px;
    border-bottom: 1px solid #222;
    padding: 20px;
    background-color: #030303;
}

.wally-header{
    float: left;
}

.wally-header a{
    text-decoration: none;
    color: #aaa;
    display: block;
    padding: 12px 20px;
    font-weight: bold;
    transition: 0.2s;
}

.wally-header ul{
    list-style: none;
    margin-bottom: 10px;
    border-radius: 6px;
    overflow: hidden;
}

.wally-header ul:hover{
    background-color: #222;
}

.wally-header ul:hover a{
    color: white;
}

.login{
    float: right;
}

.login a{
    text-decoration: none;
    color: #aaa;
    display: block;
    padding: 12px 20px;
    font-weight: bold;
    transition: 0.2s;
}

.login ul{
    list-style: none;
    margin-bottom: 10px;
    border-radius: 6px;
    overflow: hidden;
}

.login ul:hover{
    background-color: #222;
}

.login ul:hover a{
    color: white;
}

/* Zijbalk / Navigatie */
.sidebar-box {
    padding: 20px;
    background-color: #030303;
    border-right: 1px solid #222;
}

nav ul {
    list-style: none;
    margin-bottom: 10px;
    border-radius: 6px;
    overflow: hidden;
}

nav a {
    text-decoration: none;
    color: #aaa;
    display: block;
    padding: 12px 20px;
    font-weight: bold;
    transition: 0.2s;
}

nav ul:hover {
    background-color: #222;
}
nav ul:hover a {
    color: white;
}

/* --- MIDDELSTE KOLOM: MUZIEK GRID (300px x 300px) --- */
.main-content {
    padding: 20px;
    display: grid;
    /* Vult de rij automatisch aan met blokken van exact 300px breed */
    grid-template-columns: repeat(auto-fill, 300px); 
    /* Dwingt de hoogte van de rijen op exact 300px */
    grid-auto-rows: 300px; 
    gap: 20px;
    justify-content: center;
}

.boxMusic {
    border: 1px solid #222;
    border-radius: 6px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    background-color: #161616;
    cursor: pointer;
    transition: transform 0.2s;
}

.boxMusic:hover {
    transform: scale(1.02);
    border-color: #aaa;
}

.Image {
    width: 100%;
    height: 80%;
}

.Image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.Text {
    width: 100%;
    height: 20%;
    background-color: #161616;
    color: white;
    padding: 10px;
    font-weight: bold;
    display: flex;
    align-items: center;
}

/* --- RECHTERKOLOM: ADVERTENTIE --- */
.ad-sidebar {
    background-color: #030303;
    border-left: 1px solid #222;
    padding: 20px;
    text-align: center;
    color: #666;
    font-size: 14px;
}

/* Vaste Footer onderaan */
footer {
    width: 100%;
    height: 65px;
    position: fixed;
    bottom: 0;
    left: 0;
    background-color: #212121;
    border-top: 1px solid #333;
    z-index: 100;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* --- RESPONSIVE VOOR TABLET/MOBIEL --- */
@media (max-width: 1024px) {
    #grid-container {
        /* Verberg de advertentie-zijbalk op kleinere schermen zodat muziek de ruimte krijgt */
        grid-template-columns: 200px 1fr;
    }
    .ad-sidebar {
        display: none; 
    }
}

@media (max-width: 768px) {
    #grid-container {
        grid-template-columns: 1fr; /* Alles onder elkaar op mobiel */
    }
    
    .sidebar-box {
        border-right: none;
        border-bottom: 1px solid #222;
    }

    nav {
        display: flex;
        flex-wrap: wrap;
        gap: 10px;
    }

    nav ul {
        flex: 1;
        min-width: 130px;
        background-color: #161616;
    }
}

/* CSS Tweede pagina */
/* ==========================================
   SPECIFIEKE STIJLEN VOOR PAGINA 2 (YT MUSIC)
   ========================================== */

/* Unieke hoofdlayout voor pagina 2 */
#grid-container {
    display: grid;
    grid-template-columns: 240px 1fr 140px; 
    grid-template-rows: 80px 1fr;
    min-height: 100vh;
}

/* Unieke Topbar */
.ym-header-box {
    grid-column: 1 / -1;
    height: 80px;
    border-bottom: 1px solid #222;
    padding: 0 20px;
    background-color: #030303;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.ym-wally-header {
    display: flex;
    align-items: center;
    gap: 15px;
}

.ym-wally-header ul, .ym-login ul {
    list-style: none;
    border-radius: 6px;
    overflow: hidden;
}

.ym-wally-header a, .ym-login a {
    text-decoration: none;
    color: #aaa;
    display: block;
    padding: 12px 20px;
    font-weight: bold;
    transition: 0.2s;
}

.ym-wally-header ul:hover, .ym-login ul:hover {
    background-color: #222;
}

.ym-wally-header ul:hover a, .ym-login ul:hover a {
    color: white;
}

.ym-search-section input {
    width: 450px;
    padding: 12px 20px;
    border-radius: 8px;
    border: none;
    background-color: #212121;
    color: white;
    font-size: 15px;
}

/* Unieke Zijbalk */
.ym-sidebar-box {
    padding: 20px;
    background-color: #030303;
    border-right: 1px solid #222;
}

.ym-sidebar-box ul {
    list-style: none;
    margin-bottom: 10px;
    border-radius: 6px;
    overflow: hidden;
}

.ym-sidebar-box a {
    text-decoration: none;
    color: #aaa;
    display: block;
    padding: 12px 20px;
    font-weight: bold;
    transition: 0.2s;
}

.ym-sidebar-box ul:hover {
    background-color: #222;
}
.ym-sidebar-box ul:hover a {
    color: white;
}

.ym-nav-divider {
    border: 0;
    height: 1px;
    background: #222;
    margin: 15px 0;
}

/* Unieke Middenkolom & Horizontale Scroll */
.ym-main-content {
    padding: 30px;
    background: linear-gradient(to bottom, #141414 0%, #000000 40%);
    overflow-y: auto;
}

.ym-music-section {
    margin-bottom: 40px;
}

.ym-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.ym-section-header h2 {
    font-size: 24px;
    font-weight: bold;
}

.ym-horizontal-scroll {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    padding-bottom: 15px;
}

.ym-horizontal-scroll::-webkit-scrollbar {
    height: 6px;
}
.ym-horizontal-scroll::-webkit-scrollbar-thumb {
    background: #333;
    border-radius: 3px;
}

.ym-horizontal-scroll {
    display: flex;
    gap: 20px;
    overflow-x: auto; /* Zorgt voor de horizontale scrollbalk wanneer nodig */
    padding-bottom: 15px;
}

/* Unieke Muziek Boxen (300px bij 300px onaangetast) */
.ym-boxMusic {
    width: 300px;
    height: 300px;
    flex-shrink: 0; 
    border: 1px solid #222;
    border-radius: 6px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    background-color: #161616;
    cursor: pointer;
    transition: transform 0.2s;
}

.ym-boxMusic:hover {
    transform: scale(1.02);
    border-color: #aaa;
}

.ym-Image {
    width: 100%;
    height: 75%;
}

.ym-Image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ym-Text {
    width: 100%;
    height: 25%;
    background-color: #161616;
    color: white;
    padding: 10px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
}

.ym-Text .ym-title {
    font-weight: bold;
    font-size: 14px;
    margin-bottom: 2px;
}

.ym-Text .ym-subtitle {
    color: #aaa;
    font-size: 12px;
}

/* Unieke Advertentie zijbalk */
.ym-ad-sidebar {
    background-color: #030303;
    border-left: 1px solid #222;
    padding: 20px;
    text-align: center;
    color: #666;
    font-size: 14px;
}

/* Unieke Mediaspeler Footer */
.ym-footer {
    width: 100%;
    height: 85px;
    position: fixed;
    bottom: 0;
    left: 0;
    background-color: #212121;
    border-top: 1px solid #333;
    z-index: 100;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
}

.ym-player-left {
    display: flex;
    align-items: center;
    gap: 15px;
}

.ym-player-center {
    display: flex;
    align-items: center;
    gap: 15px;
    width: 40%;
}

.ym-mini-cover {
    width: 45px;
    height: 45px;
    border-radius: 4px;
    overflow: hidden;
}

.ym-mini-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ym-track-info {
    display: flex;
    flex-direction: column;
}

.ym-track-title {
    font-weight: bold;
    font-size: 14px;
}

.ym-track-artist {
    color: #aaa;
    font-size: 12px;
}

/* --- RESPONSIVE MEDIA QUERIES --- */
@media (max-width: 1024px) {
    #ym-grid-container {
        grid-template-columns: 200px 1fr;
    }
    .ym-ad-sidebar {
        display: none; 
    }
}

@media (max-width: 768px) {
    #ym-grid-container {
        grid-template-columns: 1fr;
        grid-template-rows: auto auto 1fr;
    }
    .ym-sidebar-box { display: none; }
    .ym-search-section input { width: 100%; }
}

/* ==========================================
   STIJLEN VOOR REGISTRATIE / INLOGGEN (AUTH)
   ========================================== */

.auth-body {
    background-color: #030303;
    font-family: sans-serif;
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    margin: 0;
}

.auth-container {
    background-color: #161616;
    border: 1px solid #222;
    border-radius: 8px;
    padding: 40px;
    width: 100%;
    max-width: 450px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
}

.auth-logo {
    font-size: 24px;
    font-weight: bold;
    text-align: center;
    margin-bottom: 20px;
}

.auth-container h2 {
    font-size: 22px;
    text-align: center;
    margin-bottom: 8px;
}

.auth-subtitle {
    color: #aaa;
    font-size: 14px;
    text-align: center;
    margin-bottom: 30px;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.auth-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.auth-group label {
    font-size: 14px;
    color: #fff;
    font-weight: bold;
}

.auth-group input {
    padding: 12px 16px;
    border-radius: 6px;
    border: 1px solid #333;
    background-color: #212121;
    color: white;
    font-size: 15px;
    transition: border-color 0.2s;
}

.auth-group input:focus {
    outline: none;
    border-color: #aaa;
}

.auth-btn {
    margin-top: 10px;
    padding: 14px;
    border-radius: 25px;
    border: none;
    background-color: #fff;
    color: #000;
    font-weight: bold;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.auth-btn:hover {
    background-color: #e6e6e6;
}

.auth-footer {
    margin-top: 25px;
    text-align: center;
    font-size: 14px;
    color: #aaa;
}

.auth-footer a {
    color: #fff;
    text-decoration: none;
    font-weight: bold;
}

.auth-footer a:hover {
    text-decoration: underline;
}