:root {
    --bg-main: #0f1123;
    --bg-panel: #15172e;
    --bg-card: #1c1f3a;
    --text-main: #ffffff;
    --text-muted: #9aa0c3;
    --accent: #7c5cff;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html, body {
    height: 100%;
    background: var(--bg-main);
    color: var(--text-main);
    font-family: system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
}

/* ================= HEADER ================= */

.app-header {
    height: 56px;
    background: var(--bg-panel);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 16px;
    position: sticky;
    top: 0;
    z-index: 10;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.menu-btn {
    font-size: 20px;
    background: none;
    border: none;
    color: var(--text-main);
    cursor: pointer;
    display: inline-block;
}

.logo {
    font-weight: 700;
    font-size: 18px;
}
.logo span {
    color: var(--accent);
}

.header-center input {
    width: 260px;
    padding: 8px 12px;
    border-radius: 6px;
    border: none;
    outline: none;
    background: var(--bg-card);
    color: var(--text-main);
}

.login-btn {
    background: var(--accent);
    border: none;
    color: white;
    padding: 6px 14px;
    border-radius: 6px;
    cursor: pointer;
}

/* ================= LAYOUT ================= */

.app-layout {
    display: flex;
    height: calc(100vh - 56px);
}

/* ================= SIDEBAR ================= */
/* ================= SIDEBAR ================= */

.sidebar {
    width: 240px;
    background: linear-gradient(180deg, #0d0f22, #0a0b18);
    height: 100%;
    overflow: hidden;
}

.sidebar-scroll {
    height: 100%;
    overflow-y: auto;
    padding: 12px;
}

/* Hide scrollbar (still scrollable) */
.sidebar-scroll::-webkit-scrollbar {
    width: 6px;
}
.sidebar-scroll::-webkit-scrollbar-thumb {
    background: #2a2d55;
    border-radius: 6px;
}

.sidebar-header {
    padding: 12px 8px;
    margin-bottom: 8px;
}

.sidebar-nav {
    display: flex;
    flex-direction: column;
}

.sidebar-nav a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    color: #cfd3ff;
    text-decoration: none;
    border-radius: 8px;
    font-size: 14px;
}

.sidebar-nav a:hover {
    background: #1c1f3a;
    color: #fff;
}

.sidebar-nav .icon {
    width: 22px;
    text-align: center;
    opacity: 0.9;
}

.sidebar-btn {
    display: block;
    margin: 12px 0;
    padding: 10px;
    text-align: center;
    background: #7c5cff;
    color: white;
    border-radius: 10px;
    text-decoration: none;
}

.sidebar-footer {
    font-size: 12px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    color: #9aa0c3;
}

.divider {
    height: 1px;
    background: #2a2d55;
    margin: 10px 0;
}


/* ================= CONTENT ================= */

.content {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
}

.section {
    margin-bottom: 24px;
}

.section-title {
    margin-bottom: 12px;
    font-size: 18px;
}

/* ================= GAME GRID ================= */

.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 12px;
}

.game-card {
    background: var(--bg-card);
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
    transition: transform .15s ease, box-shadow .15s ease;
}

.game-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0,0,0,.3);
}

.game-card img {
    width: 100%;
    height: 120px;
    object-fit: cover;
    display: block;
}

.game-card .title {
    padding: 8px;
    font-size: 14px;
    text-align: center;
}

.game-card .media {
    position: relative;
    height: 120px;
    overflow: hidden;
}

.game-card video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: none;
    pointer-events: none;
}

/* ================= FOOTER ================= */

.app-footer {
    text-align: center;
    padding: 12px;
    font-size: 12px;
    color: var(--text-muted);
}
