@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;600;700&display=swap');

html, body {
    height: 100%;
    margin: 0;
}

body {
    font-family: 'Montserrat', 'Segoe UI', Arial, sans-serif;
    background: #f4f6fa;
    color: #28426b;
    font-size: 13px; /* как в detail.css */
}

/* Страница */

.player-page {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    padding: 32px 16px;
    box-sizing: border-box;
}

.container {
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 4px 32px 0 rgb(40 66 107 / 9%);
    padding: 24px 24px 32px 24px;
    box-sizing: border-box;
    max-width: 1500px;
    width: 100%;
    display: flex;
    flex-direction: column;
}

/* Общие ссылки — цвета как в detail.css */

a {
    color: #4285f4;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* Хлебные крошки как в detail.css (.breadcrumbs) */

.breadcrumb {
    font-size: 0.8rem;
    color: #7a86a8;
    margin-bottom: 10px;
}

.breadcrumb a {
    color: #4285f4;
    text-decoration: none;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

.breadcrumb span {
    color: #7a86a8;
}

/* если используешь разделитель символом, можно дополнительно: */
.breadcrumb-sep {
    margin: 0 4px;
    opacity: 0.6;
}

/* HERO */

.hero {
    display: flex;
    gap: 20px;
    align-items: stretch;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.hero-main {
    flex: 1 1 320px;
    background: #f7fbff;
    border-radius: 16px;
    padding: 18px 20px;
    display: flex;
    gap: 16px;
    align-items: center;
}

.hero-avatar {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: linear-gradient(135deg, #28426b, #3a7bd5);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 700;
    font-size: 26px;
    text-transform: uppercase;
    flex-shrink: 0;
}

.hero-text {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.hero-name {
    font-size: 1.6rem;
    font-weight: 700;
    color: #222;
}

.hero-clan {
    font-size: 0.98rem;
    color: #444;
}

.hero-tag {
    font-size: 0.9rem;
    color: #777;
}

.hero-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 6px;
}

.hero-badge {
    padding: 4px 10px;
    border-radius: 999px;
    background: #e5efff;
    font-size: 0.78rem;
    color: #28426b;
}

/* Фильтр */

.filter-daterange {
    display: flex;
    align-items: center;
}

.filter-form {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.filter-daterange label {
    font-weight: 600;
    font-size: 14px;
    white-space: nowrap;
}

.filter-daterange select {
    padding: 6px 14px;
    font-size: 14px;
    border: 2px solid #d1d7e0;
    border-radius: 8px;
    cursor: pointer;
    background: #fafbfc;
    transition: border-color 0.3s ease;
    outline-offset: 2px;
}

.filter-daterange select:hover,
.filter-daterange select:focus {
    border-color: #1469cc;
    outline: none;
    background: #ffffff;
}

.filter-daterange-inline {
    margin-top: 6px;
    margin-bottom: 20px;
    justify-content: flex-start;
}

/* Горизонтальная сводка */

.player-summary-row {
    margin-bottom: 22px;
}

.player-summary-block {
    background: #fafbfc;
    border-radius: 16px;
    box-shadow: 0 4px 18px rgba(20, 60, 110, 0.08);
    padding: 14px 18px;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    box-sizing: border-box;
}

.summary-column {
    font-size: 0.86rem;
    color: #444;
}

.summary-label {
    font-size: 0.78rem; /* как summary-label в detail.css */
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #757b90;
    margin-bottom: 4px;
}

.summary-value {
    font-size: 0.98rem;
    font-weight: 600;
    color: #283044;
    margin-bottom: 2px;
}

.summary-sub {
    font-size: 0.83rem;
    color: #4a5670;
}

/* Сетка графиков 2x2 */

.charts-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-rows: 1fr;
    gap: 20px;
}

/* Карточка графика */

.chart-wrapper {
    background: #fafbfc;
    border-radius: 16px;
    box-shadow: 0 5px 15px rgba(20, 60, 110, 0.08);
    padding: 14px 18px 22px 18px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
}

.chart-wrapper h3 {
    margin: 0 0 8px;
    font-size: 1.05rem;
    font-weight: 700;
    color: #222;
}

.chart-summary {
    background: #f8f9ff;
    padding: 8px 12px;
    border-radius: 8px;
    margin-bottom: 10px;
    font-size: 13px;
    color: #444;
}

.chart-summary-green {
    background: #c8e6c9; /* пастельный зелёный */
    color: #1b5e20;
}

/* Обёртка канваса, чтобы Chart.js брал высоту из CSS */

.chart-canvas-wrap {
    position: relative;
    width: 100%;
    height: 220px;
}

.chart-canvas-wrap .canvas-small {
    height: 190px !important;
}

.canvas-large,
.canvas-small {
    width: 100% !important;
    height: 100% !important;
}

/* Футер — как в detail.css */

.page-footer {
    background-color: #222;
    color: #ccc;
    padding: 20px 0;
    font-size: 0.9rem;
    text-align: center;
    margin-top: 26px;
}

.footer-container {
    max-width: 900px;
    margin: 0 auto;
}

.footer-nav {
    margin: 10px 0;
}

.footer-nav a {
    color: #79c784;
    text-decoration: none;
    margin: 0 12px;
    font-weight: 500;
}

.footer-nav a:hover {
    text-decoration: underline;
}

.footer-note {
    margin-top: 12px;
    font-style: italic;
}

/* Адаптив */

@media (max-width: 1200px) {
    .player-summary-block {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 900px) {
    .charts-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 700px) {
    .hero {
        flex-direction: column;
    }

    .container {
        padding: 20px 14px 26px;
        margin: 10px auto;
    }

    .player-summary-block {
        grid-template-columns: 1fr;
    }

    .chart-canvas-wrap {
        height: 200px;
    }
}

@media (max-width: 480px) {
    .filter-daterange label {
        font-size: 13px;
    }

    .filter-daterange select {
        font-size: 13px;
        padding: 5px 10px;
    }

    .hero-avatar {
        width: 60px;
        height: 60px;
        font-size: 22px;
    }
}
