/* ====== RESET & BASICS ====== */
html, body {
    background: #000;
    color: #eee;
    font-family: 'Segoe UI', Arial, sans-serif;
    margin: 0 !important;
    padding: 0 !important;
    width: 100%;
    min-height: 100vh;
    height: 100%;
    overflow-x: hidden !important;
    /* DO NOT SET overflow-y here! */
    box-sizing: border-box;
}

/* ====== MAIN LAYOUT ====== */
.main-layout {
    display: flex;
    height: 100vh;
    width: 100vw;
    overflow: hidden; /* Prevents double scrollbars */
}

/* ====== SIDEBAR ====== */
.sidebar {
    width: 72px;
    min-width: 60px;
    background: #181818;
    height: 100vh;
    overflow-y: auto;
    border-right: 1px solid #222;
    padding-top: 12px;
    box-sizing: border-box;
}
.sidebar img {
    width: 100%;
    display: block;
    margin-bottom: 16px;
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.12);
    transition: transform 0.15s;
}
.sidebar img:hover {
    transform: scale(1.08);
    cursor: pointer;
}

/* ====== MAIN CONTENT ====== */
.main-content {
    flex: 1;
    min-width: 0;
    background: #141414;
    overflow-y: auto;
    height: 100vh;
    box-sizing: border-box;
}
.container {
    max-width: 100%;
    margin: auto;
    padding: 16px 12px 16px 12px;
    box-sizing: border-box;
}

/* ====== CAROUSEL/ROWS ====== */
.zone-title {
    margin: 20px 0 12px 0;
    font-size: 1.15em;
    font-weight: bold;
    letter-spacing: 0.01em;
}
.content-row {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    padding-bottom: 4px;
    margin-bottom: 2px;
    scrollbar-width: thin;
    scrollbar-color: #303030 #1a1a1a;
}
.content-card {
    background: #222;
    border-radius: 12px;
    min-width: 180px;
    max-width: 180px;
    padding: 10px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.18);
    transition: transform 0.15s;
}
.content-card:hover {
    transform: scale(1.04);
    background: #262626;
}
.content-card img {
    width: 150px;
    height: 150px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 6px;
    background: #111;
}
.content-card div {
    margin-top: 3px;
    font-size: 1em;
    color: #f2f2f2;
    word-break: break-word;
}

/* ====== SCROLLBAR STYLES (Webkit browsers) ====== */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
    background: #181818;
}
::-webkit-scrollbar-thumb {
    background: #262626;
    border-radius: 8px;
}
::-webkit-scrollbar-thumb:hover {
    background: #303030;
}

/* ====== RESPONSIVE ====== */
@media (max-width: 900px) {
    .sidebar {
        width: 48px;
        min-width: 44px;
    }
    .container {
        padding: 8px 2vw 8px 2vw;
    }
    .content-card {
        min-width: 110px;
        max-width: 110px;
        padding: 4px;
    }
    .content-card img {
        width: 80px;
        height: 80px;
    }
    .zone-title {
        font-size: 1.06em;
        margin: 15px 0 3px 0;
    }
    .content-row {
        gap: 7px;
        padding-bottom: 3px;
        margin-bottom: 1px;
    }
}

@media (max-width: 600px) {
    .main-layout {
        flex-direction: column;
    }
    .sidebar {
        width: 100vw;
        height: 48px;
        border-right: none;
        border-bottom: 1px solid #222;
        display: flex;
        flex-direction: row;
        overflow-x: auto;
        overflow-y: hidden;
        padding-top: 0;
    }
    .sidebar img {
        width: 40px;
        height: 40px;
        min-width: 40px;
        margin: 4px 6px;
    }
    .main-content {
        height: calc(100vh - 48px);
    }
}

@media (max-width: 420px) {
    .container { padding: 3px 0 4px 0; }
    .zone-title { font-size: 0.95em; }
}

