html {
    background-color: #0b0f15; /* Even darker outside the mobile container */
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

body {
    background-color: var(--bg-main);
    color: var(--text-primary);
    font-family: var(--font-sans);
    font-size: var(--fs-sm);
    line-height: 1.4;
    overflow-x: hidden;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    max-width: 500px;
    margin: 0 auto;
    border-left: 1px solid var(--border-color);
    border-right: 1px solid var(--border-color);
    box-shadow: 0 0 24px rgba(0, 0, 0, 0.5);
    position: relative;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
::-webkit-scrollbar-track {
    background: var(--bg-main);
}
::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: var(--radius-sm);
}
::-webkit-scrollbar-thumb:hover {
    background: var(--primary);
}

.container {
    width: 100%;
    padding: 0 12px;
    margin: 0 auto;
}

/* Navbar (Sofascore Header Style) */
.navbar {
    background: var(--bg-header);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 100;
    padding: 8px 0;
}

.navbar.navbar-home {
    padding: 4px 0;
}

.navbar .nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-back-button {
    position: absolute;
    left: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    transition: all var(--transition-fast);
    padding: 6px;
    border-radius: 50%;
    text-decoration: none;
}

.nav-back-button:hover {
    color: var(--secondary);
    transform: translateX(-3px);
    background: rgba(255, 255, 255, 0.05);
}

.nav-brand {
    font-size: var(--fs-lg);
    font-weight: 800;
    text-decoration: none;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 6px;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 12px;
    align-items: center;
}

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 600;
    font-size: var(--fs-sm);
    transition: var(--transition-fast);
    padding: 4px 8px;
    border-radius: var(--radius-sm);
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--text-primary);
    background: var(--border-color);
}



/* Main Content */
main {
    flex: 1;
    padding: 12px 0;
}

/* Grids: Collapsed for mobile-only view */
.grid-cols-2,
.grid-cols-3,
.grid-cols-1-3 {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* Footer */
footer {
    background: var(--bg-header);
    border-top: 1px solid var(--border-color);
    padding: 12px 0;
    text-align: center;
    color: var(--text-muted);
    font-size: var(--fs-xs);
}


