/* =========================================================
   HLAVNÍ STYLY & OVLÁDACÍ PRVKY
   ========================================================= */
.leaderboards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.2rem;
    margin-bottom: 2.5rem;
}

.leader-card {
    background: linear-gradient(145deg, #161616 0%, #0d0d0d 100%);
    border: 1px solid #262626;
    border-top: 3px solid #ff4b0b;
    border-radius: 6px;
    padding: 1.2rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.leader-card:hover {
    transform: translateY(-3px);
    border-color: #ff4b0b;
}

.leader-icon-badge {
    width: 48px;
    height: 48px;
    border-radius: 6px;
    background: rgba(255, 75, 11, 0.1);
    border: 1px solid rgba(255, 75, 11, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.leader-info {
    flex-grow: 1;
    overflow: hidden;
}

.leader-category {
    font-size: 0.72rem;
    color: #888;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.1rem;
}

.leader-name {
    font-family: 'Teko', sans-serif;
    font-size: 1.6rem;
    line-height: 1;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.leader-team-tag {
    font-size: 0.75rem;
    color: #ff4b0b;
    font-weight: 600;
}

.leader-value {
    font-family: 'Teko', sans-serif;
    font-size: 2rem;
    line-height: 0.9;
    color: #fff;
    text-align: right;
}

/* VYHLEDÁVACÍ A FILTRAČNÍ LIŠTA */
.controls-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: space-between;
    align-items: center;
    background: #111111;
    border: 1px solid #222222;
    padding: 0.8rem 1.2rem;
    border-radius: 6px;
    margin-bottom: 2rem;
}

.search-box {
    position: relative;
    flex: 1;
    min-width: 250px;
}

.search-input {
    width: 100%;
    background: #181818;
    border: 1px solid #333333;
    color: #ffffff;
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    padding: 0.6rem 1rem 0.6rem 2.2rem;
    border-radius: 4px;
    outline: none;
    transition: border-color 0.2s ease;
}

.search-input:focus {
    border-color: #ff4b0b;
}

.search-icon-svg {
    position: absolute;
    left: 0.8rem;
    top: 50%;
    transform: translateY(-50%);
    color: #666;
    font-size: 0.9rem;
}

.filter-buttons {
    display: flex;
    gap: 0.4rem;
    flex-wrap: wrap;
    align-items: center;
}

.filter-btn {
    background: #181818;
    border: 1px solid #2b2b2b;
    color: #888888;
    font-family: 'Teko', sans-serif;
    font-size: 1.15rem;
    letter-spacing: 0.5px;
    padding: 0.2rem 0.7rem;
    border-radius: 3px;
    cursor: pointer;
    transition: all 0.15s ease;
}

.filter-btn:hover {
    color: #ffffff;
    border-color: #444;
}

.filter-btn.active {
    background: #ff4b0b;
    border-color: #ff4b0b;
    color: #000000;
    font-weight: bold;
}

.compare-trigger-btn {
    background: rgba(255, 75, 11, 0.15);
    border: 1px solid #ff4b0b;
    color: #ff4b0b;
    font-family: 'Teko', sans-serif;
    font-size: 1.15rem;
    letter-spacing: 0.5px;
    padding: 0.2rem 0.8rem;
    border-radius: 3px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.compare-trigger-btn:hover {
    background: #ff4b0b;
    color: #000;
}

/* MŘÍŽKA TÝMŮ */
.teams-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
}

.team-card {
    background: #101010;
    border: 1px solid #222222;
    border-top: 3px solid var(--team-color, #ff4b0b);
    border-radius: 6px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.team-card:hover {
    transform: translateY(-4px);
    border-color: var(--team-color, #ff4b0b);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5), 0 0 15px color-mix(in srgb, var(--team-color) 25%, transparent);
}

.team-card.hidden {
    display: none !important;
}

.team-banner {
    position: relative;
    height: 160px;
    background: #080808;
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 1px solid #1f1f1f;
    overflow: hidden;
    cursor: pointer;
}

.team-banner-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    filter: blur(14px) opacity(0.22);
    transform: scale(1.2);
    transition: opacity 0.3s ease;
}

.team-banner:hover .team-banner-bg {
    opacity: 0.35;
}

.team-logo-img {
    position: relative;
    z-index: 2;
    height: 125px;
    width: auto;
    max-width: 85%;
    object-fit: contain;
    filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.8));
    transition: transform 0.3s ease;
}

.team-banner:hover .team-logo-img {
    transform: scale(1.08);
}

.team-banner-badge {
    position: absolute;
    bottom: 8px;
    right: 10px;
    background: rgba(0, 0, 0, 0.75);
    border: 1px solid #333;
    color: var(--team-color, #ff4b0b);
    font-size: 0.68rem;
    font-weight: bold;
    padding: 0.15rem 0.45rem;
    border-radius: 3px;
    z-index: 3;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: border-color 0.2s;
}

.team-banner:hover .team-banner-badge {
    border-color: var(--team-color, #ff4b0b);
}

.team-body {
    padding: 1.4rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    justify-content: space-between;
}

.team-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.team-name {
    font-family: 'Teko', sans-serif;
    font-size: 2.2rem;
    line-height: 0.9;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 0;
}

.team-tag {
    background: color-mix(in srgb, var(--team-color) 12%, #141414);
    color: var(--team-color, #ff4b0b);
    font-family: 'Teko', sans-serif;
    font-size: 1.15rem;
    padding: 0.1rem 0.55rem;
    border: 1px solid var(--team-color, #ff4b0b);
    border-radius: 3px;
    letter-spacing: 1px;
}

.roster-list {
    list-style: none;
    padding: 0;
    margin: 0 0 0.8rem 0;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.roster-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #161616;
    border-left: 2px solid #2d2d2d;
    padding: 0.4rem 0.7rem;
    border-radius: 2px;
    cursor: pointer;
    transition: background 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}

.roster-row:hover {
    background: color-mix(in srgb, var(--team-color) 15%, #181818);
    border-left-color: var(--team-color, #ff4b0b);
    transform: translateX(3px);
}

.roster-row.captain {
    border-left: 3px solid var(--team-color, #ff4b0b);
    background: color-mix(in srgb, var(--team-color) 12%, #161616);
}

.roster-left {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.role-icon-img {
    width: 18px;
    height: 18px;
    object-fit: contain;
}

.roster-role {
    color: var(--team-color, #ff4b0b);
    font-size: 0.75rem;
    font-weight: bold;
    width: 32px;
    text-transform: uppercase;
}

.roster-name {
    color: #ffffff;
    font-family: 'Teko', sans-serif;
    font-size: 1.3rem;
    line-height: 1;
    letter-spacing: 0.5px;
}

.captain-badge {
    background: var(--team-color, #ff4b0b);
    color: #000000;
    font-size: 0.65rem;
    font-weight: bold;
    padding: 0.1rem 0.35rem;
    border-radius: 2px;
    margin-left: 0.3rem;
    vertical-align: middle;
}

.roster-right {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.roster-rank {
    color: #777;
    font-size: 0.82rem;
    font-weight: 600;
    text-transform: uppercase;
}

.stats-hint {
    font-size: 0.65rem;
    color: var(--team-color, #ff4b0b);
    opacity: 0;
    transition: opacity 0.15s ease;
}

.roster-row:hover .stats-hint {
    opacity: 1;
}

.subs-box {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 0.8rem;
}

.sub-pill {
    flex: 1;
    background: #131313;
    border: 1px dashed #282828;
    padding: 0.35rem 0.55rem;
    font-size: 0.75rem;
    color: #777;
    border-radius: 3px;
    display: flex;
    justify-content: space-between;
    cursor: pointer;
    transition: border-color 0.15s ease, background 0.15s ease;
}

.sub-pill:hover {
    border-color: var(--team-color, #ff4b0b);
    background: color-mix(in srgb, var(--team-color) 8%, #131313);
}

.sub-pill strong {
    color: #aaa;
    font-weight: 600;
}

.team-footer {
    border-top: 1px solid #1f1f1f;
    padding-top: 0.6rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
    color: #777;
    text-transform: uppercase;
}

.team-footer strong {
    color: var(--team-color, #ff4b0b);
    font-family: 'Teko', sans-serif;
    font-size: 1.25rem;
    letter-spacing: 1px;
}

/* =========================================================
   SPOLEČNÝ STYL PRO MODÁLNÍ OKNA (POP-UP)
   ========================================================= */
.modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
    padding: 1.5rem;
}

.modal-backdrop.active {
    opacity: 1;
    pointer-events: auto;
}

.modal-box {
    background: #0d0d0d;
    border: 1px solid #282828;
    border-top: 4px solid var(--modal-color, #ff4b0b);
    border-radius: 8px;
    width: 100%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 20px 40px rgba(0,0,0,0.8), 0 0 25px color-mix(in srgb, var(--modal-color) 20%, transparent);
    padding: 2rem;
    transform: scale(0.95);
    transition: transform 0.25s ease;
}

.modal-backdrop.active .modal-box {
    transform: scale(1);
}

.modal-close-btn {
    position: absolute;
    top: 1.2rem;
    right: 1.2rem;
    background: #181818;
    border: 1px solid #333;
    color: #aaa;
    font-size: 1.2rem;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.2s;
}

.modal-close-btn:hover {
    background: #ff4b0b;
    color: #fff;
    border-color: #ff4b0b;
}

.modal-header-badges {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    margin-bottom: 0.6rem;
}

.modal-badge {
    background: #181818;
    border: 1px solid #333;
    color: #ccc;
    font-size: 0.75rem;
    padding: 0.2rem 0.55rem;
    border-radius: 3px;
    font-weight: 600;
    text-transform: uppercase;
    
    /* Vlastnosti pridané pre podporu COL coinu */
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

/* Štýl priamo pre obrázok COL Coinu vo vnútri odznaku */
.modal-badge img {
    height: 16px;
    width: auto;
    display: block;
}

.modal-badge.primary-badge {
    border-color: var(--modal-color, #ff4b0b);
    color: var(--modal-color, #ff4b0b);
}

.modal-main-title {
    font-family: 'Teko', sans-serif;
    font-size: 3rem;
    line-height: 0.9;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 0;
}

.modal-subtitle {
    color: var(--modal-color, #ff4b0b);
    font-size: 0.95rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1.5rem;
}

.modal-strip {
    background: #141414;
    border: 1px solid #222;
    border-radius: 6px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    padding: 1rem 0.5rem;
    text-align: center;
    margin-bottom: 1.4rem;
}

.strip-item strong {
    font-family: 'Teko', sans-serif;
    font-size: 1.8rem;
    line-height: 1;
    display: block;
    color: #ffffff;
}

.strip-item span {
    font-size: 0.72rem;
    color: #777;
    text-transform: uppercase;
    font-weight: 600;
}

.modal-sec-title {
    color: var(--modal-color, #ff4b0b);
    font-family: 'Teko', sans-serif;
    font-size: 1.3rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin: 1.4rem 0 0.6rem;
}

.modal-stats-grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.6rem;
    margin-bottom: 1.2rem;
}

.modal-stats-grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.6rem;
    margin-bottom: 1.2rem;
}

.stat-box {
    background: #141414;
    border: 1px solid #222;
    padding: 0.8rem 0.6rem;
    border-radius: 4px;
    text-align: center;
}

.stat-box strong {
    font-family: 'Teko', sans-serif;
    font-size: 1.8rem;
    line-height: 1;
    color: #fff;
    display: block;
}

.stat-box span {
    font-size: 0.72rem;
    color: #777;
    text-transform: uppercase;
    font-weight: 600;
}

.modal-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.modal-list-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #141414;
    border: 1px solid #202020;
    padding: 0.45rem 0.8rem;
    border-radius: 4px;
}

.item-left {
    display: flex;
    align-items: center;
    gap: 0.7rem;
}

.item-icon {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 1px solid var(--modal-color, #ff4b0b);
    object-fit: cover;
}

.item-name {
    font-weight: 600;
    font-size: 0.92rem;
    color: #fff;
}

.item-right {
    font-size: 0.85rem;
    color: #888;
}

.item-right strong {
    color: var(--modal-color, #ff4b0b);
    margin-left: 0.5rem;
}

/* =========================================================
   3. HEAD-TO-HEAD SROVNÁNÍ (COMPARE MODAL)
   ========================================================= */
.compare-switch-row {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.switch-btn {
    flex: 1;
    background: #161616;
    border: 1px solid #333;
    color: #888;
    font-family: 'Teko', sans-serif;
    font-size: 1.2rem;
    padding: 0.35rem;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.switch-btn.active {
    background: #ff4b0b;
    color: #000;
    font-weight: bold;
    border-color: #ff4b0b;
}

.selectors-grid {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.compare-col {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.compare-sublabel {
    font-size: 0.68rem;
    color: #666;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 0.5px;
    margin-bottom: -0.2rem;
}

.vs-circle {
    font-family: 'Teko', sans-serif;
    font-size: 1.4rem;
    color: #ff4b0b;
    background: #161616;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #333;
    margin-top: 1rem;
}

.compare-select {
    width: 100%;
    background: #161616;
    border: 1px solid #333;
    color: #fff;
    padding: 0.55rem 0.6rem;
    border-radius: 4px;
    font-family: 'Inter', sans-serif;
    font-size: 0.85rem;
    outline: none;
}

.compare-select:focus {
    border-color: #ff4b0b;
}

.compare-table {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}

.compare-row {
    display: grid;
    grid-template-columns: 1fr 140px 1fr;
    align-items: center;
    background: #141414;
    border: 1px solid #202020;
    padding: 0.5rem 0.8rem;
    border-radius: 4px;
    text-align: center;
}

.compare-val-left {
    font-family: 'Teko', sans-serif;
    font-size: 1.5rem;
    text-align: left;
    color: #ccc;
}

.compare-label {
    font-size: 0.72rem;
    color: #777;
    font-weight: 700;
    text-transform: uppercase;
}

.compare-val-right {
    font-family: 'Teko', sans-serif;
    font-size: 1.5rem;
    text-align: right;
    color: #ccc;
}

.compare-winner {
    color: #22c55e !important;
    font-weight: bold;
}