html {
    scroll-behavior: smooth;
}

:root {
    --bg: #0f172a;            /* tmavé pozadí */
    --card: #0b1225;          /* barva karet */
    --muted: #94a3b8;         /* šedý text */
    --text: #e2e8f0;          /* světlý text */
    --brand: #22d3ee;         /* tyrkysová */
    --brand-2: #34d399;       /* zelená */
    --ring: #7dd3fc;          /* světle modrá */
}

* {
    box-sizing: border-box;
}

html, body {
    height: 100%;
}

body {
    margin: 0;
    font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Arial, sans-serif;
    background:
            radial-gradient(1200px 800px at 15% -10%, rgba(34, 211, 238, .15), transparent 60%) no-repeat,
            radial-gradient(900px 600px at 100% 0%, rgba(52, 211, 153, .12), transparent 50%) no-repeat,
            var(--bg);
    background-attachment: fixed;
    color: var(--text);
}

a {
    color: var(--brand);
}
/* ==========================================================
   STRÁNKA TÝMY & VIZITKY HRÁČŮ
   ========================================================== */

/* Společný velký banner týmu */
.team-banner-card {
    max-width: 900px;
    margin: 0 auto 30px auto;
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid rgba(148, 163, 184, 0.18);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
}

.team-banner-card img {
    width: 100%;
    height: auto;
    display: block;
}

.team-section-header {
    text-align: center;
    margin: 30px auto 26px auto;
}

.team-section-header h2 {
    font-size: 30px;
    margin: 10px 0 6px 0;
    color: var(--text);
    letter-spacing: -0.5px;
}

/* Mřížka hráčů (pružná, responzivní: 4 -> 3 -> 2 sloupce podle šířky) */
.players-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
    max-width: 960px;
    margin: 0 auto;
}

/* Karta jednotlivého hráče */
.player-card {
    background: linear-gradient(180deg, rgba(148, 163, 184, 0.08), rgba(11, 18, 37, 0.65));
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: 16px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 16px;
    text-align: center;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.player-card:hover {
    transform: translateY(-4px);
    border-color: var(--ring);
    box-shadow: 0 12px 30px rgba(34, 211, 238, 0.18);
}

/* Kruhový portrét hráče */
.player-photo-wrap {
    width: 130px;
    height: 130px;
    border-radius: 50%;
    margin: 6px auto 14px auto;
    position: relative;
    overflow: hidden;
    border: 3px solid rgba(125, 211, 252, 0.3);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
    background: rgba(15, 23, 42, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
}

.player-photo-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Fallback: pokud fotka chybí, zobrazí se stylové iniciály */
.player-initials {
    display: none;
    font-size: 28px;
    font-weight: 700;
    color: var(--brand);
}

.player-photo-wrap.no-img img {
    display: none;
}

.player-photo-wrap.no-img .player-initials {
    display: block;
}

/* Texty hráče */
.player-info h4 {
    margin: 0 0 4px 0;
    font-size: 17px;
    font-weight: 600;
    color: var(--text);
}

.player-role {
    display: inline-block;
    font-size: 13px;
    color: var(--brand);
    font-weight: 500;
    letter-spacing: 0.3px;
}

/* Karta mládeže */
.youth-card {
    padding: 24px;
}

.youth-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(148, 163, 184, 0.15);
    padding-bottom: 14px;
    margin-bottom: 16px;
}

.youth-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.youth-item {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(11, 18, 37, 0.6);
    border: 1px solid rgba(148, 163, 184, 0.14);
    padding: 10px 14px;
    border-radius: 10px;
    font-size: 15px;
}

.youth-bullet {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--brand-2);
}

/* Mobilní optimalizace */
@media (max-width: 600px) {
    .players-grid {
        grid-template-columns: repeat(2, 1fr); /* 2 karty vedle sebe na mobilu */
        gap: 12px;
    }

    .player-photo-wrap {
        width: 100px;
        height: 100px;
    }

    .player-info h4 {
        font-size: 15px;
    }

    .team-section-header h2 {
        font-size: 24px;
    }
}

header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: linear-gradient(180deg, rgba(15, 23, 42, .95), rgba(15, 23, 42, .7));
    backdrop-filter: saturate(140%) blur(8px);
    border-bottom: 1px solid rgba(148, 163, 184, .15);
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 20px;
}

.brand {
    display: flex;
    gap: 12px;
    align-items: center;
}

.brand-logo {
    height: 50px;
}

.brand-title {
    font-weight: 700;
    font-size: 18px;
}

nav {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 12px;
}

.tab {
    display: inline-block;
    padding: 10px 14px;
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, .25);
    color: var(--text);
    text-decoration: none;
    cursor: pointer;
    background: rgba(11, 18, 37, .8);
}

.tab:hover {
    border-color: var(--ring);
}

.tab.active {
    border-color: var(--ring);
    box-shadow: 0 0 0 3px rgba(125, 211, 252, .22);
}

/* ==========================================================
   FOTOGALERIE – BEZ BÍLÉHO POZADÍ, PŘÍMO NA POZADÍ STRÁNKY
   ========================================================== */
#fotky {
    padding: 20px 0 60px;
}

.gallery-wrapper {
    max-width: 900px;
    margin: 0 auto 60px;
    background: transparent;
    border: none;
    box-shadow: none;
}

.gallery-header {
    text-align: center;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(148, 163, 184, .15);
}

.gallery-title {
    margin: 0;
    font-size: 28px;
    font-weight: 700;
    color: var(--brand); /* Tyrkysový nadpis ladící s designem */
    letter-spacing: -0.5px;
}

/* Slider kontejner */
.slider-box {
    position: relative;
    width: 100%;
    overflow: hidden;
    touch-action: pan-y;
    user-select: none;
}

.slider-track {
    display: flex;
    transition: transform 0.35s cubic-bezier(0.25, 1, 0.5, 1);
    width: 100%;
}

.slide {
    min-width: 100%;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0 8px;
}

/* Texty k fotce */
.slide-caption {
    text-align: center;
    margin-bottom: 18px;
    min-height: 52px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.slide-caption h3 {
    font-size: 21px;
    font-weight: 700;
    margin: 0 0 6px;
    color: var(--text);
}

.slide-caption .slide-desc {
    font-size: 15px;
    color: var(--muted);
    margin: 3px 0;
    line-height: 1.45;
}

/* Fotka */
.slide-img-wrap {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.slide img.team-photo {
    max-height: 540px;
    width: auto;
    max-width: 90%;
    border-radius: 16px;
    object-fit: contain;
    border: 1px solid rgba(148, 163, 184, .2);
    box-shadow: 0 16px 40px rgba(0, 0, 0, .45);
    display: block;
}

/* Šipky */
.nav-arrow {
    position: absolute;
    top: 55%;
    transform: translateY(-50%);
    background: rgba(11, 18, 37, 0.75);
    color: var(--text);
    border: 1px solid rgba(148, 163, 184, .3);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    transition: all 0.2s ease;
    z-index: 10;
    backdrop-filter: blur(8px);
}

.nav-arrow:hover {
    background: rgba(15, 23, 42, 0.95);
    border-color: var(--ring);
    color: var(--brand);
    transform: translateY(-50%) scale(1.08);
}

.nav-arrow.prev {
    left: 10px;
}

.nav-arrow.next {
    right: 10px;
}

/* Tečky indikátorů */
.slider-dots {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    padding: 20px 10px 0;
    flex-wrap: wrap;
}

.dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: rgba(148, 163, 184, 0.35);
    cursor: pointer;
    transition: all 0.25s ease;
}

.dot.active {
    background: var(--brand);
    transform: scale(1.35);
    box-shadow: 0 0 10px rgba(34, 211, 238, 0.5);
}

/* ==========================================================
   OSTATNÍ PRVKY WEBU
   ========================================================== */
.grid {
    display: grid;
    gap: 16px;
}

@media (min-width: 800px) {
    .grid-3 { grid-template-columns: repeat(3, 1fr); }
    .grid-2 { grid-template-columns: repeat(2, 1fr); }
}

.card {
    background: linear-gradient(180deg, rgba(148, 163, 184, .05), rgba(148, 163, 184, .02));
    border: 1px solid rgba(148, 163, 184, .18);
    border-radius: 18px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, .25);
    padding: 18px;
}

.card h3 {
    margin: 0 0 8px 0;
}

.pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 10px;
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, .25);
    font-size: 12px;
    color: var(--muted);
}

.hero {
    display: grid;
    gap: 18px;
    align-items: center;
    padding: 34px 0;
}

@media (min-width: 900px) {
    .hero {
        grid-template-columns: 1.3fr .7fr;
    }
}

.hero-visual {
    border-radius: 22px;
    background:
            radial-gradient(600px 400px at 30% 0%, rgba(34, 211, 238, .15), transparent 60%),
            radial-gradient(600px 400px at 70% 100%, rgba(52, 211, 153, .15), transparent 60%),
            linear-gradient(160deg, rgba(15, 23, 42, 1), rgba(11, 18, 37, 1));
    border: 1px solid rgba(148, 163, 184, .18);
    box-shadow: 0 20px 60px rgba(0, 0, 0, .35);
    min-height: 220px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.list {
    display: grid;
    gap: 12px;
}

.item {
    padding: 12px;
    border-radius: 14px;
    border: 1px solid rgba(148, 163, 184, .2);
    background: rgba(11, 18, 37, .6);
}

a.item {
    display: block;
    text-decoration: none;
    color: inherit;
    padding: 8px 12px;
    transition: background-color 0.2s, color 0.2s;
}

a.item:hover {
    background-color: #f0f0f0;
    color: #000;
    font-weight: 600;
    cursor: pointer;
}

.footer {
    margin-top: 30px;
    padding: 22px 0;
    color: var(--muted);
    border-top: 1px solid rgba(148, 163, 184, .2);
}

.footer-container {
    padding: 0;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    border-radius: 12px;
    border: 1px solid rgba(148, 163, 184, .25);
    background: rgba(11, 18, 37, .8);
    color: var(--text);
    text-decoration: none;
}

.btn:hover {
    border-color: var(--ring);
}

.muted {
    color: var(--muted);
}

/* Karty a zarovnání */
#novinky .grid,
#media .grid {
    align-items: stretch;
}

#novinky .card,
#media .card {
    display: flex;
    flex-direction: column;
}

.card-content {
    flex-grow: 1;
}

/* Fotky obecně */
.team-photo {
    display: block;
    width: 50%;
    height: auto;
    margin: 20px auto;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.fotky-vedle-sebe {
    display: flex;
    justify-content: center;
    gap: 10px;
    max-width: 800px;
    margin: 20px auto;
}

.fotky-vedle-sebe .team-photo {
    width: 50%;
    margin: 0;
}

/* Responzivita pro menší obrazovky a mobily */
@media (max-width: 768px) {
    .team-photo {
        width: 100%;
        margin-bottom: 15px;
    }

    .fotky-vedle-sebe {
        flex-direction: column;
    }

    .fotky-vedle-sebe .team-photo {
        width: 100%;
    }

    .card iframe {
        height: 250px;
    }

    /* Úpravy slideru na telefonu */
    #fotky {
        padding: 10px 0 40px;
    }

    .gallery-wrapper {
        margin-bottom: 40px;
    }

    .gallery-title {
        font-size: 22px;
    }

    .slide {
        padding: 0 4px;
    }

    .slide-caption h3 {
        font-size: 18px;
    }

    .slide-caption .slide-desc {
        font-size: 13px;
    }

    .slide img.team-photo {
        max-height: 330px;
        max-width: 100%;
        border-radius: 10px;
    }

    .nav-arrow {
        width: 38px;
        height: 38px;
        font-size: 17px;
    }

    .nav-arrow.prev {
        left: 4px;
    }

    .nav-arrow.next {
        right: 4px;
    }
}