/* ==========================================================================
   TYMY.CSS
   ========================================================================== */

a.team-card {
    text-decoration: none;
    color: inherit;
}

.squad-hero {
    background-color: #f0f2f5;
    padding: 130px 0 40px 0;
}

.squad-hero-title {
    font-family: 'Oswald', sans-serif;
    font-size: 70px;
    line-height: 1.1;
    text-transform: uppercase;
    margin-top: 10px;
}

.squad-main {
    background-color: #f0f2f5;
    padding: 40px 0 80px 0;
}

/* ZÁLOŽKY */
.squad-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 50px;
    flex-wrap: wrap;
}

.squad-tab {
    font-family: 'Oswald', sans-serif;
    font-size: 14px;
    font-weight: 700;
    padding: 10px 24px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    background-color: #379967;
    color: #fff;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
    letter-spacing: 0.5px;
}

.squad-tab.active { background-color: #0b2429; }

.squad-tab:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.tab-content { width: 100%; }
.tab-hidden { display: none !important; }

/* SKUPINA POZIC */
.position-group { margin-bottom: 50px; }

.position-title {
    font-family: 'Oswald', sans-serif;
    font-size: 26px;
    font-weight: 700;
    color: #0b2429;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #379967;
    display: inline-block;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* GRID HRÁČŮ */
.squad-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

/* KARTA HRÁČE */
.player-card {
    background-color: #e3e8ed;
    border-radius: 8px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    display: block;
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.player-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.12);
}

.player-card:hover .player-photo { transform: scale(1.04); }

.player-number {
    position: absolute;
    top: 12px;
    left: 12px;
    font-family: 'Oswald', sans-serif;
    font-size: 38px;
    font-weight: 700;
    color: #379967;
    line-height: 1;
    z-index: 2;
    text-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.player-photo {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    object-position: top;
    display: block;
    transition: transform 0.4s ease;
    background-color: #cbd5e1;
}

.player-info {
    padding: 12px 15px;
    background-color: #e3e8ed;
    text-align: center;
}

.player-name {
    font-family: 'Oswald', sans-serif;
    font-size: 15px;
    font-weight: 700;
    color: #0b2429;
    line-height: 1.3;
}

/* ==========================================================================
   STATISTIKY CAROUSEL
   ========================================================================== */
.stats-header { margin-bottom: 30px; }

.stats-carousel-wrapper {
    width: 100%;
    overflow: hidden;
    border-radius: 12px;
    -webkit-mask-image: linear-gradient(to right, transparent 0%, black 5%, black 95%, transparent 100%);
    mask-image: linear-gradient(to right, transparent 0%, black 5%, black 95%, transparent 100%);
}

.stats-carousel-track {
    display: flex;
    gap: 20px;
    width: max-content;
    animation: stats-scroll 30s linear infinite;
    will-change: transform;
}

.stats-carousel-track:hover { animation-play-state: paused; }

@keyframes stats-scroll {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}

.stats-card {
    position: relative;
    width: 280px;
    height: 380px;
    border-radius: 10px;
    overflow: hidden;
    flex-shrink: 0;
    cursor: pointer;
}

.stats-card-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
    display: block;
    transition: transform 0.4s ease;
}

.stats-card:hover .stats-card-photo { transform: scale(1.05); }

.stats-card-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px;
    background: linear-gradient(to top, rgba(11, 36, 41, 0.95) 0%, rgba(11, 36, 41, 0.6) 60%, transparent 100%);
    color: #fff;
}

.stats-card-number {
    position: absolute;
    top: -250px;
    right: 0;
    font-family: 'Oswald', sans-serif;
    font-size: 120px;
    font-weight: 700;
    color: rgba(55, 153, 103, 0.35);
    line-height: 1;
    pointer-events: none;
}

.stats-card-name { margin-bottom: 15px; }

.stats-card-first {
    display: block;
    font-family: 'Oswald', sans-serif;
    font-size: 14px;
    font-weight: 500;
    color: #59a673;
    letter-spacing: 1px;
    line-height: 1;
}

.stats-card-last {
    display: block;
    font-family: 'Oswald', sans-serif;
    font-size: 24px;
    font-weight: 700;
    color: #fff;
    line-height: 1.1;
    text-transform: uppercase;
}

.stats-card-numbers {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
}

.stats-card-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: rgba(255,255,255,0.1);
    border-radius: 5px;
    padding: 6px 4px;
}

.stats-card-val {
    font-family: 'Oswald', sans-serif;
    font-size: 20px;
    font-weight: 700;
    color: #fff;
    line-height: 1;
}

.stats-card-lbl {
    font-size: 9px;
    font-weight: 700;
    color: #a0b0b2;
    letter-spacing: 0.5px;
    margin-top: 2px;
}

/* ==========================================================================
   ZÁPASY LIST
   ========================================================================== */
.matches-season-header { margin-bottom: 30px; }

.matches-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.match-row-label {
    text-align: center;
    font-size: 13px;
    font-weight: 700;
    color: #506070;
    letter-spacing: 0.5px;
    padding: 20px 0 10px 0;
    border-top: 1px solid #dde2e8;
}

.match-row-label:first-child {
    border-top: none;
    padding-top: 0;
}

.match-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: #e3e8ed;
    border-radius: 10px;
    padding: 20px 30px;
    margin-bottom: 12px;
}

.match-row-home,
.match-row-away {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 28%;
}

.match-row-away { justify-content: flex-end; }

.match-row-logo {
    width: 70px;
    height: 70px;
    object-fit: contain;
}

.match-row-name {
    font-family: 'Oswald', sans-serif;
    font-size: 15px;
    line-height: 1.3;
    color: #0b2429;
}

.match-row-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 40%;
    text-align: center;
}

.match-row-venue {
    font-size: 11px;
    color: #888;
    margin-bottom: 2px;
}

.match-row-score {
    font-family: 'Oswald', sans-serif;
    font-size: 38px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: 2px;
}

.text-green-score { color: #16a34a !important; }
.text-red-score { color: #dc2626 !important; }
.text-draw-score { color: #64748b !important; }

.match-row-date {
    font-size: 11px;
    color: #666;
    margin-bottom: 8px;
}

.match-row-btns { display: flex; gap: 8px; }

/* ==========================================================================
   RESPONSIVITA
   ========================================================================== */
@media (max-width: 1024px) {
    .squad-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 850px) {
    .stats-carousel-track { animation: none; }
    .stats-carousel-wrapper {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        -webkit-mask-image: none;
        mask-image: none;
    }
    .squad-hero { padding: 110px 0 30px 0; }
    .squad-hero-title { font-size: 45px; }
    .squad-grid { grid-template-columns: repeat(3, 1fr); gap: 12px; }
    .match-row { padding: 15px 12px; }
    .match-row-name { font-size: 13px; }
    .match-row-logo { width: 45px; height: 45px; }
    .match-row-score { font-size: 28px; }
}

@media (max-width: 600px) {
    .squad-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .squad-tabs { gap: 6px; }
    .squad-tab { font-size: 11px; padding: 8px 10px; }

    .match-row {
        display: grid;
        grid-template-columns: 1fr auto 1fr;
        grid-template-rows: auto auto;
        padding: 16px 12px;
        gap: 8px;
        align-items: center;
    }

    .match-row-home {
        grid-column: 1;
        grid-row: 1;
        width: auto;
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 6px;
    }

    .match-row-center {
        grid-column: 2;
        grid-row: 1;
        width: auto;
        padding: 0 12px;
    }

    .match-row-away {
        grid-column: 3;
        grid-row: 1;
        width: auto;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        text-align: center;
        gap: 6px;
    }

    .match-row-btns {
        grid-column: 1 / -1;
        grid-row: 2;
        justify-content: center;
        margin-top: 4px;
    }

    .match-row-logo { width: 55px; height: 55px; }
    .match-row-name { font-size: 11px; }
    .match-row-score { font-size: 32px; letter-spacing: 1px; }
    .match-row-venue { font-size: 9px; }
    .match-row-date { font-size: 9px; margin-bottom: 4px; }
}