﻿.login-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f3f4f6;
}

.login-card {
    width: 360px;
    background: white;
    border-radius: 12px;
    padding: 32px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    text-align: center;
}

.login-title {
    margin-bottom: 24px;
    font-size: 20px;
    font-weight: 600;
}

.login-input {
    width: 100%;
    padding: 12px;
    font-size: 18px;
    text-align: center;
    border-radius: 6px;
    border: 1px solid #ccc;
    margin-bottom: 16px;
}

.login-button {
    width: 100%;
    padding: 12px;
    background: #2563eb;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    cursor: pointer;
}

    .login-button:hover {
        background: #1e40af;
    }

.login-loading {
    margin-top: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: #555;
    font-size: 14px;
}

/* jednoduchý spinner */
.spinner {
    width: 16px;
    height: 16px;
    border: 2px solid #ccc;
    border-top-color: #2563eb;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}








/* přebije defaultní .top-row z šablony */
.top-row.top-bar {
    display: grid !important;
    grid-template-columns: 1fr auto 1fr !important;
    align-items: center !important;
    height: 3.5rem;
    border-bottom: 1px solid #ddd;
}

    .top-row.top-bar .top-title {
        text-align: left;
        font-weight: 600;
        font-size: 0.9rem;
    }

    .top-row.top-bar .top-user {
        justify-self: end;
    }





    /* matches */
.matches-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.match-row {
    all: unset;
    cursor: pointer;
    display: grid;
    grid-template-columns: 140px 1fr 120px 1fr;
    gap: 12px;
    align-items: center;
    padding: 12px 14px;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    background: #fff;
}

    .match-row:hover {
        background: #f8fafc;
    }

.match-left {
    display: flex;
    flex-direction: column;
    gap: 4px;
    color: #334155;
    font-size: 0.95rem;
}

.match-tip {
    color: #0f766e;
    font-weight: 600;
    font-size: 0.9rem;
}

.team {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.flag {
    width: 3em !important;
    height: 3em !important;
    object-fit: contain;
}

svg[blazicon].flag-xl {
    width: 3em;
    height: 3em;
    object-fit: contain;
}

.team-name {
    font-size: 0.95rem;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 180px;
}

.score {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    font-size: 2rem;
    font-weight: 700;
}

.score-sep {
    opacity: 0.6;
}






/* detail zapasu */
.page-title {
    margin: 18px 0 14px;
}

.detail-card {
    max-width: 980px;
}

.match-row.detail {
    cursor: default;
    border: 1px solid #e6e8ef;
    border-radius: 12px;
    padding: 14px 12px;
    background: #fff;
}

.match-row {
    display: grid;
    grid-template-columns: 90px 1fr auto 1fr;
    align-items: center;
    gap: 8px;
    padding: 8px 10px; /* ⬅ menší padding */
    margin-bottom: 8px;
    border-radius: 10px;
    background: #fff;
}

.match-col.time .date {
    font-size: 13px;
}

.match-col.time .clock {
    font-size: 14px;
    font-weight: 600;
}

.mybet {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 10px;
    opacity: .95;
}

    .mybet img {
        width: 18px;
        height: 18px;
    }

.match-col.team {
    display: grid;
    justify-items: center;
    gap: 8px;
}

.flag-wrap {
    width: 54px;
    height: 36px;
    display: grid;
    place-items: center;
}

.match-col.team .flag {
    width: 32px;
    height: 22px;
}

.team-name {
    font-size: 13px;
    line-height: 1.2;
}

.match-col.score {
    display: grid;
    justify-items: center;
}

.score-big {
    font-size: 42px;
    font-weight: 700;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    gap: 10px;
}

    .score-big .colon {
        opacity: .6;
    }

.detail-actions {
    display: flex;
    align-items: center;
    gap: 14px;
    margin: 14px 0 10px;
}

.detail-info {
    color: #b42318;
    font-weight: 600;
}

.detail-panels {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin: 10px 0 18px;
}

.panel {
    border: 1px solid #e6e8ef;
    border-radius: 12px;
    background: #fff;
    padding: 12px 14px;
}

.panel-title {
    font-weight: 700;
    margin-bottom: 8px;
}

.panel-value {
    display: flow;
    align-items: baseline;
    gap: 8px;
}

    .panel-value .big {
        font-size: 34px;
        font-weight: 800;
    }

    .panel-value .colon {
        opacity: .6;
    }

.muted {
    opacity: .65;
}

.others {
    margin-top: 10px;
}

.others-title {
    font-size: 22px;
    font-weight: 800;
    margin: 6px 0 10px;
}

.bets-table {
    border: 1px solid #e6e8ef;
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
}

.bets-head, .bets-row {
    display: grid;
    grid-template-columns: 1fr 140px 90px;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
}

.bets-head {
    background: #f6f7fb;
    font-weight: 800;
}

.bets-row {
    border-top: 1px solid #eef0f6;
}

.c-user {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.ok-ico {
    width: 18px;
    height: 18px;
    flex: 0 0 auto;
}

.user-name {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.c-tip, .c-pts {
    text-align: center;
    font-weight: 700;
}

.tip {
    font-size: 18px;
}

.pts {
    font-size: 18px;
}


/* ostatni tipy v detailu zapasu */
/* OSTATNÍ TIPY */
.bets-list {
    display: grid;
    gap: 10px;
}

.bets-header {
    display: grid;
    grid-template-columns: 1fr 140px 90px;
    gap: 10px;
    padding: 6px 2px;
    font-weight: 800;
    opacity: .75;
}

    .bets-header .h-tip,
    .bets-header .h-pts {
        text-align: center;
    }

.bet-row {
    display: grid;
    grid-template-columns: 1fr 100px 90px;
    gap: 10px;
    align-items: center;
    /* "match-row" vibe */
    background: #fff;
    border: 1px solid #e6e8ef;
    border-radius: 12px;
    padding: 10px 12px;
}

.bet-user {
    display: flex;
    align-items: center;
    gap: 10px;
}

.ok-ico {
    width: 18px;
    height: 18px;
    flex: 0 0 auto;
}

.user-name {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.bet-tip, .bet-pts {
    text-align: center;
    font-weight: 800;
}

    .bet-tip .tip, .bet-pts .pts {
        font-size: 18px;
    }

    .bet-tip .colon {
        opacity: .6;
        margin: 0 6px;
    }


   /* šipka zpět */
.detail-header {
    margin-bottom: 10px;
}

.detail-header-warning {
    color: red;
    font-style: italic;
    font-size: small;
}

.back-btn {
    background: none;
    border: none;
    color: #2563eb; /* modrá jako odkazy */
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    padding: 4px 0;
}

    .back-btn:hover {
        text-decoration: underline;
    }





@media (max-width: 600px) {
    .match-row {
        grid-template-columns: 70px 1fr auto 1fr;
        gap: 6px;
        padding: 6px 8px;
    }

    .team-name {
        font-size: 12px;
    }

    .score-big {
        font-size: 20px;
    }

    .match-col.team .flag {
        width: 28px;
        height: 20px;
    }
}




.bet-edit {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.bet-input {
    width: 64px;
    padding: 6px 8px;
    font-size: 20px;
    font-weight: 700;
    text-align: center;
    border-radius: 10px;
    border: 1px solid #dcdcdc;
}

.bet-edit-actions {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 12px;
}





/* pas progress tipovacky */
.matches-list {
    padding-bottom: 110px;
}

.tips-progress-footer {
    position: sticky;
    left: 232px;
    right: 0;
    bottom: 0;
    background: #ffffff;
    padding: 14px 24px;
    z-index: 9999;
    box-shadow: 0 -4px 18px rgba(0, 0, 0, 0.14);
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 10px;
}

.tips-progress-content {
    height: 58px;
    display: grid;
    grid-template-columns: 260px 1fr 90px;
    align-items: center;
    gap: 28px;
}

.tips-progress-label {
    font-size: 16px;
    color: #111827;
    white-space: nowrap;
}

    .tips-progress-label strong {
        font-weight: 800;
    }

.tips-progress-bar {
    position: relative;
    height: 18px;
    background: #e5e7eb;
    border-radius: 999px;
    overflow: hidden;
}

.tips-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #22c55e, #4ade80);
    border-radius: 999px;
    transition: width 0.35s ease;
}

.tips-progress-value {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 700;
    color: #111827;
}

.tips-progress-percent {
    font-size: 18px;
    font-weight: 800;
    color: #111827;
    text-align: right;
}


@media (max-width: 640px) {

    .tips-progress-content {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
        height: auto;
    }

    .tips-progress-footer {
        left: 0 !important;
        padding: 12px 16px;
    }

    .tips-progress-label {
        font-size: 15px;
    }

    .tips-progress-percent {
        display: none;
    }

    .tips-progress-bar {
        width: 100%;
        height: 16px;
    }
}






/* rozdelene zapasy */
.matches-section-title {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 28px 0 14px;
    font-size: 16px;
    font-weight: 800;
    letter-spacing: .3px;
}

    .matches-section-title::after {
        content: "";
        flex: 1;
        height: 1px;
        background: #d6dce5;
    }

    .matches-section-title.played {
        color: #16a34a;
    }

    .matches-section-title.upcoming {
        color: #2563eb;
    }

.played-match {
    background: linear-gradient(90deg, rgba(34, 197, 94, .10), rgba(34, 197, 94, .04));
    border-color: rgba(34, 197, 94, .22);
}

    .played-match:hover {
        background: linear-gradient(90deg, rgba(34, 197, 94, .14), rgba(34, 197, 94, .06));
    }

.upcoming-match {
    background: #fff;
}









/* horni lista seznam zapasu */
.matches-dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 18px;
    margin-bottom: 24px;
}

.matches-dashboard-left {
    display: flex;
    align-items: center;
    gap: 16px;
}

.matches-dashboard-icon {
    width: 68px;
    height: 68px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    color: white;
    background: linear-gradient(135deg, #4338ca, #7c3aed);
    box-shadow: 0 6px 18px rgba(79, 70, 229, .22);
}

.matches-dashboard-subtitle {
    font-size: 13px;
    font-weight: 700;
    color: #6b7280;
    margin-bottom: 4px;
}

.matches-dashboard-title {
    font-size: 42px;
    line-height: 1;
    font-weight: 900;
    color: #111827;
    letter-spacing: -0.8px;
}

.matches-dashboard-stats {
    display: flex;
    gap: 12px;
}

.matches-stat-card {
    width: 118px;
    background: white;
    border-radius: 14px;
    padding: 14px 10px;
    text-align: center;
    border: 1px solid #e5e7eb;
    box-shadow: 0 2px 10px rgba(0,0,0,.04);
}

.matches-stat-icon {
    font-size: 22px;
    margin-bottom: 6px;
}

    .matches-stat-icon.purple {
        color: #7c3aed;
    }

    .matches-stat-icon.green {
        color: #16a34a;
    }

    .matches-stat-icon.blue {
        color: #2563eb;
    }

.matches-stat-value {
    font-size: 32px;
    line-height: 1;
    font-weight: 900;
    color: #111827;
    margin-bottom: 4px;
}

.matches-stat-label {
    font-size: 13px;
    color: #6b7280;
}

@media (max-width: 1100px) {

    .matches-dashboard-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }

    .matches-dashboard-stats {
        width: 100%;
        justify-content: space-between;
    }

    .matches-stat-card {
        flex: 1;
        width: auto;
    }
}

@media (max-width: 640px) {

    .matches-dashboard-header {
        gap: 14px;
        margin-bottom: 18px;
    }

    .matches-dashboard-left {
        gap: 12px;
    }

    .matches-dashboard-icon {
        width: 52px;
        height: 52px;
        font-size: 24px;
    }

    .matches-dashboard-title {
        font-size: 28px;
        letter-spacing: -0.4px;
    }

    .matches-dashboard-subtitle {
        font-size: 11px;
    }

    .matches-dashboard-stats {
        gap: 8px;
    }

    .matches-stat-card {
        padding: 10px 8px;
        border-radius: 12px;
    }

    .matches-stat-icon {
        font-size: 18px;
        margin-bottom: 4px;
    }

    .matches-stat-value {
        font-size: 24px;
    }

    .matches-stat-label {
        font-size: 11px;
    }
}









/* horni lista celkove poradi */
.summary-dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 18px;
    margin-bottom: 24px;
}

.summary-dashboard-left {
    display: flex;
    align-items: center;
    gap: 16px;
}

.summary-dashboard-icon {
    width: 68px;
    height: 68px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    color: white;
    background: linear-gradient(135deg, #4338ca, #7c3aed);
    box-shadow: 0 6px 18px rgba(79, 70, 229, .22);
    flex-shrink: 0;
}

.summary-dashboard-subtitle {
    font-size: 13px;
    font-weight: 700;
    color: #6b7280;
    margin-bottom: 4px;
}

.summary-dashboard-title {
    font-size: 32px;
    line-height: 1;
    font-weight: 900;
    color: #111827;
    letter-spacing: -0.5px;
}

.summary-dashboard-stats {
    display: flex;
    gap: 12px;
    align-items: stretch;
}

.summary-stat-card {
    width: 140px;
    background: white;
    border-radius: 16px;
    padding: 14px 10px;
    text-align: center;
    border: 1px solid #e5e7eb;
    box-shadow: 0 3px 12px rgba(0,0,0,.05);
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.summary-stat-icon {
    min-width: 74px;
    height: 38px;
    padding: 0 14px;
    margin: 0 auto 10px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 13px;
    color: white;
    line-height: 1;
    white-space: nowrap;
}

    .summary-stat-icon.black {
        background: #374151;
    }

    .summary-stat-icon.bronze {
        background: #b45309;
    }

    .summary-stat-icon.silver {
        background: #64748b;
    }

    .summary-stat-icon.gold {
        background: #ca8a04;
    }

.summary-stat-value {
    font-size: 34px;
    line-height: 1;
    font-weight: 900;
    color: #111827;
    margin-bottom: 6px;
}

.summary-stat-label {
    font-size: 12px;
    color: #6b7280;
    line-height: 1.2;
}

@media (max-width: 1100px) {
    .summary-dashboard-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }

    .summary-dashboard-stats {
        width: 100%;
    }
}

@media (max-width: 640px) {
    .summary-dashboard-header {
        flex-direction: column;
        align-items: stretch;
        gap: 16px;
        margin-bottom: 18px;
    }

    .summary-dashboard-left {
        gap: 10px;
        align-items: center;
    }

    .summary-dashboard-icon {
        width: 50px;
        height: 50px;
        font-size: 22px;
    }

    .summary-dashboard-title {
        font-size: 23px;
        line-height: 1;
        letter-spacing: -0.4px;
    }

    .summary-dashboard-subtitle {
        font-size: 10px;
        margin-bottom: 2px;
    }

    .summary-dashboard-stats {
        display: flex;
        flex-wrap: nowrap;
        gap: 6px;
        width: 100%;
    }

    .summary-stat-card {
        flex: 1 1 0;
        width: 0;
        min-width: 0;
        padding: 8px 3px;
        border-radius: 13px;
    }

    .summary-stat-icon {
        width: 100%;
        max-width: 70px;
        min-width: 0;
        height: 28px;
        padding: 0 4px;
        margin: 0 auto 7px;
        font-size: 9px;
    }

    .summary-stat-value {
        font-size: 24px;
        margin-bottom: 3px;
    }

    .summary-stat-label {
        font-size: 9px;
        line-height: 1.15;
    }
}
























/* aktualni uzivatel */
.rank-row-current {
    position: relative;
    background: linear-gradient( 90deg, rgba(124, 58, 237, .14), rgba(124, 58, 237, .05) ) !important;
    border: 1px solid rgba(124, 58, 237, .20);
    box-shadow: 0 4px 14px rgba(124, 58, 237, .08);
}

    .rank-row-current::before {
        content: "";
        position: absolute;
        left: 0;
        top: 8px;
        bottom: 8px;
        width: 4px;
        border-radius: 999px;
        background: linear-gradient( 180deg, #4338ca, #7c3aed );
    }

/* badge TY */
.current-user-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-left: 10px;
    padding: 3px 9px;
    border-radius: 999px;
    background: #7c3aed;
    color: white;
    font-size: 11px;
    font-weight: 800;
    line-height: 1;
}

/* medaile */
.rank-medal {
    margin-right: 8px;
    font-size: 20px;
}

    .rank-medal.gold {
        filter: drop-shadow(0 2px 4px rgba(234,179,8,.35));
    }

    .rank-medal.silver {
        filter: drop-shadow(0 2px 4px rgba(148,163,184,.35));
    }

    .rank-medal.bronze {
        filter: drop-shadow(0 2px 4px rgba(180,83,9,.35));
    }