:root {
    --color-bg-dark:       #080c17;
    --color-bg-navy:       #0d1225;
    --color-bg-card:       #0f1520;
    --color-bg-card-alt:   #111827;
    --color-bg-header:     #1a2035;
    --color-bg-header-alt: #1e2640;
    --color-accent:        #2a3a6e;
    --color-accent-blue:   #1e3a8a;
    --color-border:        #1e2a45;
    --color-border-light:  #2a3a60;
    --color-text-white:    #ffffff;
    --color-text-light:    #c8d4e8;
    --color-text-muted:    #7a8aaa;
    --color-crown-gold:    #f0a020;
    --color-crown-silver:  #a0b0c8;
    --color-crown-bronze:  #c07840;
    --font-main:           'Segoe UI', 'Arial', sans-serif;
    --radius-sm:           6px;
    --radius-md:           10px;
    --radius-lg:           14px;
}

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    background-color: var(--color-bg-dark);
    color: var(--color-text-white);
    min-height: 100vh;
    overflow-x: hidden;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    display: block;
    max-width: 100%;
}

.site-background {
    background-image: url('../assets/site_background.png');
    background-size: cover;
    background-position: center top;
    background-repeat: no-repeat;
    width: 100%;
    position: relative;
}

.content-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px 60px;
}

.content-wrapper--tight,
.content-wrapper--ranking {
    padding: 0;
    margin: 0 auto;
}

.main-layout {
    display: grid;
    grid-template-columns: 310px 1fr;
    gap: 24px;
    align-items: start;
}

.main-left {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.main-right {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.widget {
    border-radius: var(--radius-lg);
    overflow: hidden;
    position: relative;
}

.widget-header {
    background: var(--color-bg-header);
    padding: 12px 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--color-text-light);
    border-bottom: 1px solid var(--color-border);
}

.widget-header-icon {
    width: 18px;
    height: 18px;
    object-fit: contain;
    opacity: 0.8;
}

.widget-body {
    background-image: url('../assets/ranking/background.png');
    background-size: cover;
    background-position: center;
    padding: 14px;
}

.btn-tab {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 7px 18px;
    border-radius: var(--radius-md);
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    border: none;
    transition: background 0.2s, color 0.2s;
    background: transparent;
    color: var(--color-text-muted);
}

.btn-tab.active {
    background: var(--color-accent);
    color: var(--color-text-white);
}

.btn-tab img {
    width: 16px;
    height: 16px;
    object-fit: contain;
}

.views-container {
    display: none;
    width: 100%;
}

.views-container.active {
    display: block;
}

::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--color-bg-dark); }
::-webkit-scrollbar-thumb { background: var(--color-accent); border-radius: 3px; }
