:root {
    --line: #22262b;
    --text: #e2e4e8;
    --muted: #8a8e96;
    --accent: #7aa2ff;
}
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
html {
    scrollbar-width: none;
}
body {
    -ms-overflow-style: none;
}
::-webkit-scrollbar {
    width: 0;
    background: transparent;
    display: none;
}
body {
    background: #0b0e12;
    font-family: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    color: #e2e4e8;
    line-height: 1.5;
    padding: 1.5rem 1rem;
}
.konteyner {
    max-width: 950px;
    margin: 0 auto;
}
.zagolovok-oblast {
    margin-bottom: 28px;
    border-bottom: 1px solid #22262b;
    padding-bottom: 16px;
}
.zagolovok-oblast h1 {
    font-size: 1.6rem;
    font-weight: 600;
    letter-spacing: -0.3px;
    color: #f0f2f5;
    margin-bottom: 4px;
}
.zagolovok-oblast .podzagolovok {
    font-size: 0.75rem;
    color: #8a8e96;
}
.date-control {
    background: rgba(255,255,255,0.02);
    border: 1px solid #333a44;
    border-radius: 999px;
    padding: 6px 12px;
    padding-right: 32px;
    color: #b0b4bc;
    font-family: 'Manrope', sans-serif;
    font-size: 12px;
    font-weight: 400;
    line-height: 1.2;
    cursor: pointer;
    transition: 0.18s ease;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M19 3h-1V1h-2v2H8V1H6v2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm0 16H5V9h14v10zM7 11h5v5H7v-5z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 14px;
    appearance: none;
    -webkit-appearance: none;
    color-scheme: dark;
    position: relative;
}
.date-control::-webkit-calendar-picker-indicator {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    opacity: 0;
    cursor: pointer;
    background: transparent;
    z-index: 1;
}
.date-control::-moz-calendar-picker-indicator {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    opacity: 0;
    cursor: pointer;
    background: transparent;
    z-index: 1;
}
.capt-card {
    background: #13161c;
    border: 1px solid #282d34;
    border-radius: 16px;
    margin-bottom: 20px;
    overflow: hidden;
}
.capt-header {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    padding: 12px 16px;
    background: #0e1116;
    border-bottom: 1px solid #282d34;
    gap: 12px;
}
.capt-attacker {
    font-weight: 600;
    font-size: 0.85rem;
    text-align: left;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.capt-time {
    background: rgba(122,162,255,0.12);
    border-radius: 20px;
    padding: 4px 12px;
    font-size: 0.75rem;
    font-weight: 500;
    color: #7aa2ff;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.capt-defender {
    font-weight: 600;
    font-size: 0.85rem;
    text-align: right;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.teams-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}
.team-col {
    padding: 12px;
    background: #0e1116;
    min-width: 280px;
}
.team-col:first-child {
    border-right: 1px solid #282d34;
}
.team-title {
    display: none;
}
.team-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    background: #0b0e12;
    padding: 8px;
    border-radius: 12px;
    margin-bottom: 12px;
    font-size: 0.7rem;
    text-align: center;
}
.team-stat {
    display: flex;
    flex-direction: column;
}
.team-stat-value {
    font-weight: 700;
    font-size: 1rem;
}
.players-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.player-row {
    display: grid;
    grid-template-columns: minmax(0,1fr) 36px 36px 50px 48px;
    gap: 6px;
    padding: 6px 8px;
    background: #0b0e12;
    border-radius: 10px;
    font-size: 0.75rem;
    align-items: center;
}
.player-name {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.player-num {
    text-align: center;
}
.tablitsa-obvertka {
    overflow-x: auto;
    margin-bottom: 1.5rem;
}
table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0 8px;
}
td {
    padding: 0.7rem 0.5rem 0.7rem 12px;
    vertical-align: middle;
    background: #13161c;
    border: 1px solid #282d34;
    font-size: 0.85rem;
}
tr td:first-child {
    border-top-left-radius: 14px;
    border-bottom-left-radius: 14px;
}
tr td:last-child {
    border-top-right-radius: 14px;
    border-bottom-right-radius: 14px;
    padding-right: 12px;
}
tr:hover td {
    background: #1a1f28;
    border-color: #3a4050;
}
tr.stroka-otkaz td {
    background: #2a1a1e;
    border-left-color: #ff6b6b;
}
tr.stroka-otkaz:hover td {
    background: #352228;
}
.vremya-kolonka {
    white-space: nowrap;
    font-family: monospace;
    font-size: 0.8rem;
    color: #b0b4bc;
}
.sobytie-tekst {
    font-size: 0.85rem;
    line-height: 1.4;
}
.znachok-default {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 500;
    margin: 0 2px;
    background: rgba(255,255,255,0.06);
    color: #aaa;
}
.znachok-mvp {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 500;
    margin: 0 2px;
    background: rgba(218, 165, 32, 0.12);
    color: #c9a03d;
}
.znachok-score-rm {
    background: rgba(0, 102, 102, 0.12);
    border-radius: 20px;
    padding: 2px 8px;
    font-size: 0.7rem;
    font-weight: 500;
    color: #009999;
    display: inline-block;
    margin-left: 6px;
    white-space: nowrap;
}
.znachok-score-lcn {
    background: rgba(170, 102, 255, 0.12);
    border-radius: 20px;
    padding: 2px 8px;
    font-size: 0.7rem;
    font-weight: 500;
    color: #aa66ff;
    display: inline-block;
    margin-left: 6px;
    white-space: nowrap;
}
.znachok-score-ykz {
    background: rgba(204, 51, 51, 0.12);
    border-radius: 20px;
    padding: 2px 8px;
    font-size: 0.7rem;
    font-weight: 500;
    color: #cc3333;
    display: inline-block;
    margin-left: 6px;
    white-space: nowrap;
}
.znachok-advokati {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 500;
    margin: 0 2px;
    background: rgba(255,255,255,0.06);
    color: #aaa;
}
.empty,
.pusto-sostoyanie {
    text-align: center;
    padding: 3rem 1rem;
    color: #8a8e96;
    font-size: 0.9rem;
    border: 1px solid #22262b;
    border-radius: 12px;
    background: #0e1116;
}
.bez-kategorii {
    text-align: center;
    padding: 3rem 1rem;
    color: #8a8e96;
    font-size: 0.9rem;
    border: 1px solid #22262b;
    border-radius: 12px;
    background: #0e1116;
}
footer {
    text-align: center;
    font-size: 0.7rem;
    color: #5a5e66;
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid #22262b;
}
@media (max-width: 680px) {
    .capt-header {
        grid-template-columns: 1fr;
        gap: 8px;
        text-align: center;
    }
    .capt-attacker, .capt-defender {
        text-align: center;
        white-space: normal;
    }
    .capt-time {
        justify-self: center;
    }
    .teams-grid {
        grid-template-columns: 1fr;
        overflow-x: visible;
    }
    .team-col {
        min-width: auto;
    }
    .team-col:first-child {
        border-right: none;
        border-bottom: 1px solid #282d34;
    }
    .player-row {
        grid-template-columns: minmax(0,1fr) 32px 32px 42px 42px;
    }
}
@media (max-width: 640px) {
    body {
        padding: 1rem;
    }
    td {
        padding-left: 8px;
        padding-right: 8px;
    }
}
.header-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 28px;
    border-bottom: 1px solid #22262b;
    padding-bottom: 16px;
}
.title-area {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0 8px;
}
.title-area h1 {
    font-size: 1.6rem;
    font-weight: 600;
    letter-spacing: -0.3px;
    color: #f0f2f5;
    margin: 0;
}
.title-area .podzagolovok {
    font-size: 0.75rem;
    color: #8a8e96;
    width: 100%;
    margin-top: 2px;
    line-height: 1.3;
}
.right-controls {
    display: flex;
    gap: 12px;
    align-items: center;
}
.calendar-wrapper {
    display: inline-block;
}
.tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 24px;
    border-bottom: 1px solid #22262b;
    padding-bottom: 8px;
}

.tab-btn {
    background: transparent;
    border: none;
    padding: 8px 16px;
    font-family: 'Manrope', sans-serif;
    font-weight: 500;
    font-size: 0.85rem;
    color: #b0b4bc;
    border-radius: 20px;
    cursor: pointer;
    transition: 0.2s;
}
.tab-btn:hover {
    background: #1a1f28;
    color: #e2e4e8;
}
.tab-btn.active {
    background: #1e2532;
    color: #fff;
}
a.tab-btn {
    display: inline-block;
    text-decoration: none;
    cursor: pointer;
}
.tab-btn,
a.tab-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 36px;          /* фиксированная высота, подберите под ваш дизайн */
    padding: 0 16px;
    box-sizing: border-box;
    line-height: 1;
    margin: 0;
    vertical-align: middle;
}
.main-layout {
    display: flex;
    justify-content: center;
    gap: 0;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 16px;
}
.sidebar {
    flex-shrink: 0;
    position: sticky;
    background: transparent;
    border: none;
    padding: 0;
    margin: 0;
    margin-top: 168px;
    padding-right: 16px;
    border-right: 1px solid #22262b;
}
.sidebar .menu-item {
    display: block;
    width: 100%;
    padding: 6px 12px;
    margin: 0;
    background: transparent;
    border: none;
    border-radius: 8px;
    color: #b0b4bc;
    font-family: 'Manrope', sans-serif;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    text-align: left;
    white-space: nowrap;
}
.sidebar .menu-item:hover {
    background: #1a1f28;
    color: #f0f2f5;
}
.sidebar .menu-item.active {
    background: #1e2532;
    color: #fff;
}
.main-layout .konteyner {
    margin: 0;
    width: 100%;
    max-width: 950px;
    padding-left: 24px;
}
@media (max-width: 800px) {
    .main-layout {
        flex-direction: column;
        gap: 16px;
    }
    .sidebar {
        position: static;
        display: flex;
        flex-wrap: nowrap;
        overflow-x: auto;
        gap: 8px;
        padding: 8px 0;
        border-right: none;
        border-bottom: 1px solid #22262b;
        margin-top: 0;
    }
    .sidebar > div:not(.menu-item),
    .sidebar > hr {
        display: none;
    }
    .sidebar .menu-item {
        display: inline-block;
        width: auto;
        flex-shrink: 0;
        white-space: nowrap;
        padding: 4px 12px;
        font-size: 0.8rem;
    }
    .main-layout .konteyner {
        padding-left: 0;
    }
}
.top-month-table-wrapper {
    overflow-x: auto;
    margin-bottom: 1rem;
}
.top-month-table-wrapper .team {
    background: transparent;
    border-radius: 16px;
    border: 1px solid #282d34;
    overflow: hidden;
}
.top-month-table-wrapper .team__head {
    display: grid;
    grid-template-columns: 40px minmax(150px,1fr) 50px 50px 60px 70px 60px;
    gap: 8px;
    align-items: center;
    padding: 10px 16px;
    background: transparent;
    border-bottom: 1px solid #282d34;
    font-weight: 700;
    font-size: 0.8rem;
    color: #b0b4bc;
}
.top-month-table-wrapper .row {
    display: grid;
    grid-template-columns: 40px minmax(150px,1fr) 50px 50px 60px 70px 60px;
    gap: 8px;
    align-items: center;
    padding: 8px 16px;
    border-bottom: 1px solid rgba(255,255,255,0.04);
    font-size: 0.85rem;
}
.top-month-table-wrapper .row:hover {
    background: rgba(255,255,255,0.02);
}
.top-month-table-wrapper .name {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.top-month-table-wrapper .num, 
.top-month-table-wrapper .muted {
    text-align: center;
}
.badge--acc {
    background: rgba(255,255,255,0.08);
    padding: 2px 8px;
    border-radius: 20px;
    font-size: 0.7rem;
    margin-left: 8px;
    color: #aaa;
}
@media (max-width: 760px) {
    .top-month-table-wrapper .team__head,
    .top-month-table-wrapper .row {
        grid-template-columns: 35px minmax(120px,1fr) 40px 40px 50px 55px 50px;
        gap: 6px;
        font-size: 0.75rem;
    }
}
.month-strip {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: flex-end;
    align-items: center;
    margin-bottom: 16px;
}
.month {
    background: rgba(255,255,255,0.02);
    border: 1px solid #333a44;
    border-radius: 999px;
    padding: 6px 12px;
    font-size: 12px;
    line-height: 1.2;
    color: #b0b4bc;
    cursor: pointer;
    transition: 0.18s ease;
    display: inline-block;
    text-align: center;
    vertical-align: middle;
    margin: 0;
}
.month:hover {
    background: rgba(255,255,255,0.04);
    border-color: #3a4050;
}
.month.active {
    background: rgba(122,162,255,0.15);
    color: #fff;
    border-color: rgba(122,162,255,0.3);
}
.month.disabled {
    opacity: 0.4;
    cursor: not-allowed;
    pointer-events: none;
}
.month:hover:not(.disabled) {
    background: rgba(255,255,255,0.04);
    border-color: #3a4050;
}
.controls {
    display: flex;
    gap: 8px;
    align-items: center;
}
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 20px;
}
.stat {
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 12px 16px;
}
.stat__label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--muted);
}
.stat__value {
    font-size: 15px;
    font-weight: 700;
    margin-top: 6px;
}
@media (max-width: 760px) {
    .stats-grid {
        grid-template-columns: 1fr 1fr;
    }
}
.account-input {
    background: rgba(0,0,0,0.3);
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 6px 12px;
    color: var(--text);
    font-size: 13px;
    width: 140px;
    -moz-appearance: textfield;
}
.account-input::-webkit-outer-spin-button,
.account-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}
.btn {
    background: rgba(122,162,255,0.15);
    border: 1px solid rgba(122,162,255,0.3);
    border-radius: 8px;
    padding: 6px 14px;
    color: var(--text);
    cursor: pointer;
    transition: 0.2s;
}
.btn:hover {
    background: rgba(122,162,255,0.25);
}
.panel .team {
    margin-top: 20px;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--line);
    background: rgba(255,255,255,0.02);
    display: block;
    overflow-x: auto;
}
.panel .team .team__head {
    background: rgba(255,255,255,0.04);
    padding: 12px 16px;
    font-weight: 700;
    font-size: 12px;
    color: var(--muted);
    border-bottom: 1px solid var(--line);
}
.panel .team .row {
    padding: 10px 16px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    transition: background 0.1s ease;
}
.panel .team .row:hover {
    background: rgba(255,255,255,0.03);
}
.panel .team .team__head,
.panel .team .row {
    display: grid;
    grid-template-columns: 140px minmax(160px, 1fr) minmax(160px, 1fr) 48px 48px 60px 70px 60px;
    gap: 8px;
    align-items: center;
    padding: 10px 16px;
}
.panel .team .team__head {
    background: rgba(255,255,255,0.04);
    font-weight: 700;
    color: var(--muted);
    border-bottom: 1px solid var(--line);
}
.panel .team .row {
    border-bottom: 1px solid rgba(255,255,255,0.05);
}
.panel .team .row:hover {
    background: rgba(255,255,255,0.02);
}
.panel .team .name {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: var(--text);
}
.panel .team .num {
    text-align: center;
    font-weight: 600;
}
.panel .team .muted {
    text-align: center;
    color: var(--muted);
}
.panel .team .row,
.panel .team .row .name,
.panel .team .row .num,
.panel .team .row .muted {
    font-size: 13px;
}
.panel .team .team__head {
    font-size: 12px;
}
.panel .team .row span {
    font-size: 13px;
}
.panel .team .row span.name:nth-child(2) {
    text-align: center;
}
@media (max-width: 760px) {
    .panel .team .team__head,
    .panel .team .row {
        grid-template-columns: 110px 1fr 1fr 36px 36px 42px 50px 42px !important;
        gap: 6px;
        font-size: 11px;
        padding: 8px 12px;
    }
}
.badge {
    font-size: 13px;
    padding: 2px 6px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-left: 6px;
    border-radius: 999px;
    font-weight: normal;
    vertical-align: middle;
	line-height: 1.2;
}
.badge--nick-ballas {
    background: rgba(192,132,252,0.15);
    color: #c084fc;
    border: 1px solid rgba(192,132,252,0.35);
}
.badge--nick-vagos {
    background: rgba(241,198,90,0.15);
    color: #f1c65a;
    border: 1px solid rgba(241,198,90,0.35);
}
.badge--nick-grove {
    background: rgba(49,196,109,0.15);
    color: #31c46d;
    border: 1px solid rgba(49,196,109,0.35);
}
.badge--nick-aztecas {
    background: rgba(113,231,255,0.15);
    color: #71e7ff;
    border: 1px solid rgba(113,231,255,0.35);
}
.badge--nick-rifa {
    background: rgba(122,162,255,0.15);
    color: #7aa2ff;
    border: 1px solid rgba(122,162,255,0.35);
}
.badge--nick-default {
    background: rgba(255,255,255,0.06);
    color: #ccc;
    border: 1px solid rgba(255,255,255,0.12);
}

#personalStatsRows .row.no-data {
    display: block;
    text-align: center;
    padding: 10px 16px;
    color: var(--muted);
    background: rgba(255,255,255,0.02);
    border-bottom: 1px solid rgba(255,255,255,0.05);
}
.load-more-wrap {
    text-align: center;
    padding: 12px 0;
}
.btn--load-more {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 30px;
    padding: 4px 16px;
    font-size: 12px;
    font-weight: 500;
    color: #e2e4e8;
    cursor: pointer;
}
.btn--load-more:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.3);
}
#personalControls .account-input,
#personalControls .btn {
    background: rgba(255,255,255,0.02);
    border: 1px solid #333a44;
    border-radius: 999px;
    padding: 6px 12px;
    font-size: 12px;
    line-height: 1.2;
    color: #b0b4bc;
    cursor: pointer;
    transition: 0.18s ease;
}
#personalControls .btn {
    padding: 6px 20px;
}
#personalControls .account-input:hover,
#personalControls .btn:hover {
    background: rgba(255,255,255,0.04);
    border-color: #3a4050;
}
#personalControls .account-input::-webkit-outer-spin-button,
#personalControls .account-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}
#personalControls .account-input {
    -moz-appearance: textfield;
    width: 140px;
}