:root {
    --bg-main: #0c0c0c;
    --bg-panel: #141414;
    --bg-input: #1a1a1a;
    --primary-glow: #f2d367;
    --success-glow: #f2d367;
    --secondary-glow: #d4b552;
    --warning-glow: #ffae00;
    --text-light: #ffffff;
    --text-muted: #888888;
    --border-color: #2a2a2a;
    --accent-green: #f2d367;
    --accent-cyan: #f2d367;
    --bg-deep: #050505;
}

body {
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    background-color: transparent !important; /* Důležité pro viditelnost obrázků na pozadí */
    background-image: transparent;
    color: var(--text-light);
    margin: 0;
    min-height: 100vh;
}

/* --- NAVIGACE --- */
.navbar {
    background: rgba(12, 12, 12, 0.95);
    border-bottom: 1px solid var(--border-color);
    padding: 15px 0;
    display: flex;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(10px);
}
.nav-content { display: flex; flex-direction: column; align-items: center; width: 100%; max-width: 1200px; }
.logo { font-size: 1.8rem; font-weight: 900; text-transform: uppercase; margin-bottom: 15px; text-align: center; letter-spacing: 1px; -webkit-user-select:none; -moz-user-select:none; user-select:none; }
.logo span { color: var(--primary-glow); text-shadow: 0 0 15px rgba(242, 211, 103, 0.4); -webkit-user-select:none; -moz-user-select:none; user-select:none; }

/* NAVIGAČNÍ MENU - BUBLINY */
.menu { list-style: none; display: flex; gap: 10px; padding: 0; margin: 0; flex-wrap: wrap; justify-content: center; }
.menu li { 
    padding: 8px 20px; 
    border-radius: 20px; 
    cursor: pointer; 
    color: rgba(255, 255, 255, 0.6); 
    transition: all 0.3s ease; 
    font-weight: 600; 
    font-size: 0.95rem; 
    border: 1px solid transparent; 
}
.menu li:hover { background: rgba(255, 255, 255, 0.05); color: #ffffff; }
.menu li.active { 
    background: var(--primary-glow) !important; 
    color: #0c0c0c !important; 
    border: 1px solid var(--primary-glow) !important; 
    box-shadow: 0 0 15px rgba(242, 211, 103, 0.5) !important; 
    transform: scale(1.05); 
}
.menu li.admin-link { border: 1px solid rgba(255, 255, 255, 0.1); }

/* --- Layout --- */
.container { max-width: 1500px; margin: 40px auto; padding: 0 25px; }
.content-section { animation: fadeIn 0.4s ease-out; }
.hidden { display: none !important; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(15px); } to { opacity: 1; transform: translateY(0); } }

/* Záchrana pro starší nadpisy H2, pokud někde zůstaly */
h2:not(.section-title) { font-size: 2rem; border-bottom: 4px solid var(--primary-glow); display: inline-block; padding-bottom: 10px; margin-bottom: 35px; text-transform: uppercase; letter-spacing: 1px; color: white; text-shadow: 0 0 20px rgba(242, 211, 103, 0.3); }

/* --- LEAGUE HUB --- */
.hub-content { display: flex; flex-direction: column; align-items: center; gap: 20px !important; padding: 20px; width: 100%; max-width: 900px; }
.hero-tagline { color: var(--text-muted); font-size: 1rem; letter-spacing: 4px; text-transform: uppercase; font-weight: 700; margin-bottom: -10px; }
.hub-title { font-size: 4.5rem !important; margin: 0; font-weight: 900; text-transform: uppercase; line-height: 1; text-align: center; }
.hub-title span { color: var(--primary-glow); display: block; font-size: 0.5em; letter-spacing: 8px; margin-top: 10px; text-shadow: 0 0 30px rgba(242, 211, 103, 0.6); }

.prizepool-display {
    background: linear-gradient(90deg, rgba(242,211,103,0.1), transparent, rgba(242,211,103,0.1));
    border-top: 1px solid var(--primary-glow);
    border-bottom: 1px solid var(--primary-glow);
    padding: 15px 40px; text-align: center; margin: 20px 0; width: 100%; box-sizing: border-box;
}
.prizepool-label { color: white; font-size: 0.9rem; letter-spacing: 3px; text-transform: uppercase; margin-bottom: 5px; }
.prizepool-amount { font-size: 4rem; font-weight: 800; color: white; font-family: 'Impact', sans-serif; letter-spacing: 2px; text-shadow: 0 0 20px rgba(255,255,255,0.5); }

.hub-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px !important; width: 100%; margin-top: 20px; }
.hub-card { 
    padding: 25px !important; border: 1px solid var(--border-color); background: rgba(26, 26, 26, 0.6); backdrop-filter: blur(5px);
    border-radius: 12px; transition: 0.3s; cursor: pointer; text-align: center; position: relative; overflow: hidden;
}
.hub-card:hover { background: rgba(242, 211, 103, 0.05); border-color: var(--primary-glow); transform: translateY(-5px); box-shadow: 0 10px 30px rgba(0,0,0,0.3); }
.hub-card::before { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 3px; background: var(--primary-glow); transform: scaleX(0); transition: 0.3s; }
.hub-card:hover::before { transform: scaleX(1); }
.hub-card i { font-size: 2rem !important; margin-bottom: 15px; display: block; color: white; }
.hub-card h3 { color: white; font-size: 1.3rem; margin: 5px 0; text-transform: uppercase; letter-spacing: 1px; }
.hub-card p { color: var(--text-muted); font-size: 0.85rem; margin: 0; }

.hub-teams-section { margin-top: 30px !important; width: 100%; text-align: center; }
.hub-teams-display { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.hub-team-pill { background: rgba(255, 255, 255, 0.03); border: 1px solid var(--border-color); padding: 8px 20px; border-radius: 4px; display: flex; align-items: center; gap: 10px; cursor: pointer; transition: 0.3s; color: var(--text-muted); font-weight: 600; font-size: 0.85rem; }
.hub-team-pill:hover { background: rgba(242, 211, 103, 0.1); border-color: var(--primary-glow); color: white; }
.hub-team-pill img { width: 20px; height: 20px; object-fit: contain; }

.hub-social-flex { display: flex; justify-content: center; gap: 20px; margin-top: 10px !important; }
.social-card-mini { color: var(--text-muted); text-decoration: none; font-size: 1.2rem; transition: 0.3s; }
.social-card-mini:hover { color: white; transform: scale(1.1); }

/* Schová navigaci vždy, když je aktivní domovská stránka (#home) */
body:has(#home:not(.hidden)) .navbar { 
    display: none !important; 
}
.fa-discord { color: #5865F2; } .fa-twitch { color: #9146FF; } .fa-tiktok { color: #EE1D52; }

/* --- LOGIN --- */
.login-overlay { display: flex; justify-content: center; align-items: center; min-height: 50vh; }
.login-card-styled { background: var(--bg-panel); padding: 40px; border-radius: 16px; box-shadow: 0 15px 35px rgba(0,0,0,0.3); width: 100%; max-width: 420px; text-align: center; border-top: 4px solid var(--primary-glow); }
.login-header { display: flex; align-items: center; justify-content: center; gap: 12px; margin-bottom: 10px; color: white; }
.login-header i { color: var(--primary-glow); font-size: 1.4rem; }
.login-header h3 { margin: 0; font-size: 1.5rem; font-weight: 700; }
.login-subtext { color: var(--text-muted); margin-bottom: 30px; font-size: 0.95rem; }
.login-input { background: #141414 !important; border: 1px solid var(--border-color); padding: 15px !important; font-size: 1rem !important; margin-bottom: 15px !important; color: white; }
.btn-login {
    background: #5865F2;
    color: #ffffff;
    font-size: 1rem;
    font-weight: 700;
    padding: 14px 24px;
    margin-top: 10px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(88, 101, 242, 0.4);
    transition: all 0.2s ease;
    border: none;
    cursor: pointer;
    width: auto;
    min-width: 260px;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-left: auto;
    margin-right: auto;
}
.btn-login:hover {
    background: #4752C4;
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(88, 101, 242, 0.55);
    text-decoration: none;
}
.btn-login, .btn-login:visited, .btn-login:focus { text-decoration: none; }

/* --- ADMIN --- */
.admin-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(350px, 1fr)); gap: 30px; }
.admin-card { background: var(--bg-panel); padding: 30px; border-radius: 16px; border: 1px solid var(--border-color); box-shadow: 0 4px 15px rgba(0,0,0,0.1); transition: transform 0.3s ease, box-shadow 0.3s ease; }
.admin-card:hover { transform: translateY(-5px); box-shadow: 0 8px 25px rgba(0,0,0,0.2); border-color: rgba(242, 211, 103, 0.3); }
.admin-card h3 { margin-top: 0; margin-bottom: 25px; display: flex; align-items: center; gap: 10px; font-size: 1.3rem; color: white; border-bottom: 1px solid var(--border-color); padding-bottom: 15px; }
.admin-card h3 i { color: var(--primary-glow); }
.form-group { margin-bottom: 20px; }
label { display: block; margin-bottom: 8px; font-weight: 600; font-size: 0.9rem; color: var(--text-muted); }
input, select { width: 100%; padding: 12px 15px; background: var(--bg-input); border: 1px solid var(--border-color); color: white; border-radius: 8px; box-sizing: border-box; font-size: 0.95rem; transition: border-color 0.3s, box-shadow 0.3s; appearance: none; }
select { background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23888888' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e"); background-repeat: no-repeat; background-position: right 15px center; background-size: 16px; padding-right: 40px; }
input:focus, select:focus { outline: none; border-color: var(--primary-glow); box-shadow: 0 0 0 3px rgba(242, 211, 103, 0.1); }
input[type="file"] { padding: 10px; border: 1px dashed var(--border-color); background: rgba(0,0,0,0.1); cursor: pointer; }
button { width: 100%; padding: 12px; border: none; border-radius: 8px; cursor: pointer; font-weight: 700; font-size: 1rem; transition: all 0.2s; }
.btn-primary { background: var(--primary-glow); color: #0c0c0c; }
.btn-primary:hover { background: white; }
.btn-secondary { background: transparent; border: 2px solid var(--border-color); color: var(--text-muted); }
.btn-secondary:hover { border-color: var(--text-light); color: var(--text-light); }
.btn-danger { background: rgba(255, 51, 51, 0.1); color: var(--secondary-glow); border: 1px solid var(--secondary-glow); }
.btn-danger:hover { background: var(--secondary-glow); color: white; }
.btn-warning { background: var(--warning-glow); color: #141414; }
.btn-logout { background: transparent; color: var(--secondary-glow); border: 2px solid var(--secondary-glow); width: auto; padding: 8px 20px; font-size: 0.9rem; }
.btn-logout:hover { background: var(--secondary-glow); color: white; }
.btn-group { display: flex; gap: 10px; }
.admin-divider { border: 0; border-top: 1px solid var(--border-color); margin: 25px 0; }

.match-inputs { display: flex; align-items: center; gap: 10px; margin-bottom: 20px; }
.match-inputs span { font-weight: bold; color: var(--primary-glow); }
.score-inputs-large { display: flex; align-items: center; gap: 10px; margin-bottom: 20px; justify-content: center; }
.score-inputs-large input { width: 80px; text-align: center; font-size: 1.5rem; padding: 10px; font-weight: bold; }
.admin-list-container { max-height: 250px; overflow-y: auto; margin-top: 20px; background: rgba(0,0,0,0.1); border-radius: 8px; padding: 5px; }
.admin-list-item { display: flex; justify-content: space-between; align-items: center; padding: 12px; border-bottom: 1px solid var(--border-color); font-size: 0.95em; background: var(--bg-panel); margin-bottom: 2px; border-radius: 6px;}
.admin-list-info strong { color: white; }
.btn-icon { width: 36px; height: 36px; padding: 0; display: flex; align-items: center; justify-content: center; margin-left: 5px; border-radius: 50%; background: var(--bg-input); border: 1px solid var(--border-color); color: var(--text-muted); }
.btn-icon:hover { background: var(--primary-glow); color: #0c0c0c; border-color: var(--primary-glow); }
.btn-icon.delete:hover { background: var(--secondary-glow); border-color: var(--secondary-glow); color: white; }

.stats-inputs-row { display: flex; gap: 15px; margin-bottom: 20px; }
.stats-inputs-row div { flex: 1; text-align: center; }
.stats-inputs-row input { text-align: center; font-weight: bold; font-size: 1.1rem; }
.transfer-label { color: var(--warning-glow); font-weight: bold; margin-top: 20px; display: block; font-size: 1.1rem; }
.transfer-group { display: flex; gap: 10px; margin-bottom: 10px; }

/* --- Tables & Lists --- */
.table-wrapper { background: var(--bg-panel); border-radius: 16px; border: 1px solid var(--border-color); overflow: hidden; box-shadow: 0 10px 30px rgba(0,0,0,0.2); margin-bottom: 20px; }
table { width: 100%; border-collapse: collapse; }
th { background: #141414; padding: 18px; text-align: left; color: white; font-weight: 700; text-transform: uppercase; font-size: 0.9rem; letter-spacing: 0.5px; }
td { padding: 18px; border-bottom: 1px solid var(--border-color); color: var(--text-muted); font-weight: 500; }
tr:nth-child(even) { background: rgba(255,255,255,0.015); }
tr:hover { background: rgba(242, 211, 103, 0.05); color: white; }
td strong { color: white; font-weight: 700; }

th.sortable { cursor: pointer; position: relative; transition: background 0.2s, color 0.2s; }
th.sortable:hover { background: var(--primary-glow); color: #0c0c0c; }
th.sortable::after { content: '↕'; font-size: 0.7em; margin-left: 5px; opacity: 0.5; }
.stat-leader { color: #ffd700; font-weight: 900; text-shadow: 0 0 10px rgba(255, 215, 0, 0.4); font-size: 1.1em; }

.stats-grid-layout { display: flex; gap: 30px; }
@media (max-width: 900px) { .stats-grid-layout { flex-direction: column; } }
.transfers-container { background: var(--bg-panel); border: 1px solid var(--border-color); border-radius: 16px; padding: 20px; max-height: 600px; overflow-y: auto; }
.transfer-item { background: rgba(255,255,255,0.03); padding: 15px; border-radius: 10px; margin-bottom: 12px; border-left: 4px solid var(--warning-glow); display: flex; flex-direction: column; }
.transfer-arrow { color: var(--warning-glow); margin: 0 8px; }
.transfer-date { font-size: 0.8em; color: #666; margin-bottom: 5px; }
.transfer-item strong { color: white; font-size: 1.1rem; }

.standings-split-layout { display: flex; gap: 30px; }
.standings-group { flex: 1; }
@media (max-width: 900px) { .standings-split-layout { flex-direction: column; } }

/* --- TEAM DASHBOARD --- */
.team-banner-header { background: linear-gradient(90deg, #1a1a1a 0%, #141414 100%); padding: 30px; border-radius: 16px; margin-bottom: 25px; border-bottom: 4px solid var(--primary-glow); box-shadow: 0 10px 30px rgba(0,0,0,0.3); }
.banner-content { display: flex; align-items: center; gap: 30px; }
.team-header-logo { width: 90px; height: 90px; background: white; border-radius: 50%; padding: 5px; box-shadow: 0 0 15px rgba(255,255,255,0.2); }
.team-header-text h1 { margin: 0; font-size: 2.8rem; text-transform: uppercase; letter-spacing: 2px; text-shadow: 0 2px 10px rgba(0,0,0,0.5); }
.team-dashboard-grid { display: grid; grid-template-columns: 350px 1fr; gap: 25px; }
@media (max-width: 900px) { .team-dashboard-grid { grid-template-columns: 1fr; } }
.dashboard-card { background: #1a1a1a; border: 1px solid var(--border-color); border-radius: 12px; padding: 20px; margin-bottom: 25px; box-shadow: 0 4px 15px rgba(0,0,0,0.2); }
.dashboard-card h3 { margin-top: 0; border-bottom: 1px solid var(--border-color); padding-bottom: 15px; margin-bottom: 15px; font-size: 1.1rem; color: #aab2c0; text-transform: uppercase; letter-spacing: 1px; }
.mini-standings-table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
.mini-standings-table td { padding: 10px 5px; border-bottom: 1px solid var(--border-color); }
.mini-standings-table tr.active-team-row { background: rgba(242, 211, 103, 0.1); border-left: 3px solid var(--primary-glow); }
.pos-num { font-weight: bold; color: #aab2c0; width: 30px; }
.team-name-mini { font-weight: 600; color: white; }
.team-pts-mini { font-weight: 800; color: var(--primary-glow); text-align: right; }
.mini-transfers-list { max-height: 200px; overflow-y: auto; }
.mini-transfer-item { font-size: 0.85rem; padding: 8px 0; border-bottom: 1px dashed var(--border-color); color: #ccc; }
.mini-transfer-item strong { color: white; }
.styled-roster-table { width: 100%; border-collapse: separate; border-spacing: 0 5px; }
.styled-roster-table th { background: transparent; color: #aab2c0; font-size: 0.8rem; padding: 10px; border: none; }
.styled-roster-table td { background: rgba(255,255,255,0.03); padding: 15px; border: none; font-weight: 500; }
.styled-roster-table tr:hover td { background: rgba(255,255,255,0.07); transform: scale(1.01); transition: 0.2s; }
.styled-roster-table tr td:first-child { border-radius: 8px 0 0 8px; color: white; font-weight: 700; font-size: 1.1rem; }
.styled-roster-table tr td:last-child { border-radius: 0 8px 8px 0; }
.text-center { text-align: center; }
.highlight-col { color: #ffae00; }

/* COMPACT HORIZONTAL TEAMS GRID */
.teams-grid-container {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
    margin-bottom: 40px;
    padding: 10px;
}

.team-btn-card {
    width: 140px;
    height: 160px;
    background: linear-gradient(145deg, #1a1a1a, #0d0d0d);
    clip-path: polygon(50% 0%, 95% 25%, 95% 75%, 50% 100%, 5% 75%, 5% 25%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    cursor: pointer;
    border: none;
    border-radius: 0;
    box-shadow: none;
    position: relative;
    transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1), filter 0.3s ease;
    overflow: visible;
    text-align: center;
}

.team-btn-card:hover {
    transform: scale(1.12) translateY(-5px);
    filter: brightness(1.4);
    border: none;
    box-shadow: none;
}

.team-btn-card.active {
    filter: brightness(1.3);
    transform: scale(1.08);
}

.btn-team-logo {
    width: 58px;
    height: 58px;
    object-fit: contain;
    background: white;
    border-radius: 50%;
    padding: 6px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.5);
    flex-shrink: 0;
    margin-bottom: 0;
}

.team-info-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    line-height: 1.2;
    padding: 0 12px;
}

.team-info-wrap .stars-display {
    font-size: 0.55rem;
    letter-spacing: 1px;
    margin-top: 1px;
}

#free-agents-container { width: 100%; display: flex; justify-content: center; margin-bottom: 40px; }
.free-agents-card { background: var(--bg-panel); border: 1px solid var(--border-color); border-left: 5px solid var(--success-glow); display: inline-flex; align-items: center; justify-content: center; gap: 25px; padding: 20px 50px; border-radius: 50px; cursor: pointer; transition: all 0.3s ease; box-shadow: 0 4px 15px rgba(0,0,0,0.2); }
.free-agents-card:hover { transform: translateY(-3px); background: #222222; box-shadow: 0 8px 20px rgba(242, 211, 103, 0.2); }
.free-agents-card.active { background: linear-gradient(135deg, var(--success-glow), #b39b4b); color: #0c0c0c; border-color: transparent; }
.free-agents-card h3 { margin: 0; font-size: 1.4rem; font-weight: 800; text-transform: uppercase; color: white; letter-spacing: 1px; }
.free-agents-card img { width: 55px; height: 55px; object-fit: contain; background: white; border-radius: 50%; padding: 4px; }

.stars-display { color: #ffd700; font-size: 1em; letter-spacing: 3px; filter: drop-shadow(0 0 3px rgba(255, 215, 0, 0.3)); }
.large-stars { font-size: 1.5rem; margin-top: 15px; }

::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg-main); }
::-webkit-scrollbar-thumb { background: var(--border-color); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--primary-glow); }

/* --- TOAST --- */
.toast-notification { position: fixed; bottom: 30px; right: 30px; background: linear-gradient(135deg, #f2d367, #b39b4b); color: #0c0c0c; padding: 15px 25px; border-radius: 8px; font-weight: 800; text-transform: uppercase; box-shadow: 0 5px 15px rgba(242, 211, 103, 0.4); z-index: 10000; animation: slideIn 0.3s ease-out forwards; display: flex; align-items: center; gap: 10px; }
.toast-notification i { font-size: 1.2rem; }
@keyframes slideIn { from { transform: translateX(100%); opacity: 0; } to { transform: translateX(0); opacity: 1; } }
.toast-out { animation: slideOut 0.3s ease-in forwards; }
@keyframes slideOut { from { transform: translateX(0); opacity: 1; } to { transform: translateX(100%); opacity: 0; } }

.salary-cap-wrapper { background: rgba(0, 0, 0, 0.3); padding: 15px; border-radius: 12px; margin-top: 20px; border: 1px solid rgba(255, 255, 255, 0.1); }
.salary-header { display: flex; justify-content: space-between; margin-bottom: 8px; font-weight: 700; font-size: 0.9rem; color: #aab2c0; letter-spacing: 1px; }
#salary-numbers { color: white; font-family: 'Courier New', monospace; }
.salary-track { width: 100%; height: 12px; background: #141414; border-radius: 6px; overflow: hidden; position: relative; border: 1px solid var(--border-color); }
.salary-fill { height: 100%; background: linear-gradient(90deg, #b39b4b, #f2d367); width: 0%; transition: width 0.5s ease; box-shadow: 0 0 10px rgba(242, 211, 103, 0.5); }
.salary-fill.over-cap { background: linear-gradient(90deg, #cc0000, #ff3333); box-shadow: 0 0 10px rgba(255, 51, 51, 0.5); }
.salary-warning { color: #ff3333; font-weight: bold; font-size: 0.85rem; margin-top: 8px; text-align: right; animation: pulse 2s infinite; }
.player-value-tag { background: rgba(242, 211, 103, 0.1); color: var(--primary-glow); padding: 2px 6px; border-radius: 4px; font-size: 0.75em; font-weight: bold; border: 1px solid rgba(242, 211, 103, 0.3); margin-left: 8px; vertical-align: middle; }

.playoff-full-wrapper { display: flex; justify-content: center; align-items: center; gap: 40px; padding: 20px; overflow-x: auto; }
.bracket-side { display: flex; flex-direction: column; gap: 20px; }
.bracket-center { display: flex; flex-direction: column; justify-content: center; margin-top: 50px; }
.bracket-title { text-align: center; color: #aab2c0; font-size: 0.9rem; text-transform: uppercase; letter-spacing: 2px; margin-bottom: 10px; font-weight: bold; border-bottom: 1px solid #333; padding-bottom: 5px; }
.bracket-match-card { background: #1a1a1a; width: 260px; border-radius: 6px; border: 1px solid var(--border-color); margin-bottom: 15px; position: relative; box-shadow: 0 4px 10px rgba(0,0,0,0.2); }
.bracket-match-card .match-header { background: rgba(255,255,255,0.05); padding: 5px; font-size: 0.75rem; text-align: center; color: #666; text-transform: uppercase; }
.bracket-match-card .team-row { display: flex; justify-content: space-between; padding: 10px; border-bottom: 1px solid rgba(255,255,255,0.05); align-items: center; }
.bracket-match-card .team-row:last-child { border-bottom: none; }
.bracket-match-card .team-name { display: flex; align-items: center; gap: 8px; font-weight: 600; color: #ccc; }
.bracket-match-card .team-name img { width: 20px; height: 20px; object-fit: contain; }
.bracket-match-card .team-score { font-weight: bold; color: #666; }
.team-row.winner { background: linear-gradient(90deg, rgba(242, 211, 103, 0.1), transparent); }
.team-row.winner .team-name { color: #fff; }
.team-row.winner .team-score { color: var(--primary-glow); }
.team-row.loser { opacity: 0.5; }
.bracket-center .bracket-match-card { border: 2px solid #ffd700; box-shadow: 0 0 20px rgba(255, 215, 0, 0.2); transform: scale(1.1); }
.bracket-center .match-header { color: #ffd700; font-weight: bold; }

.admin-visual-bracket { display: flex; justify-content: center; gap: 20px; margin-top: 20px; padding-bottom: 20px; overflow-x: auto; }
.av-col { display: flex; flex-direction: column; gap: 15px; align-items: center; }
.av-slot { width: 200px; background: #141414; border: 1px dashed #444; padding: 15px; text-align: center; cursor: pointer; border-radius: 6px; transition: 0.2s; position: relative; }
.av-slot:hover { border-color: var(--primary-glow); background: #222222; }
.av-slot.has-match { border-style: solid; border-color: var(--border-color); background: #1a1a1a; }
.av-slot-title { font-size: 0.8rem; color: #666; text-transform: uppercase; margin-bottom: 5px; }
.av-slot-teams { font-size: 0.9rem; font-weight: bold; color: #fff; }
.av-slot-score { color: var(--primary-glow); margin-top: 5px; }
.av-slot.final { border-color: #ffd700; }

/* --- UPDATED SCHEDULE MATCH CARD --- */
.matches-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; }
.match-card {
    background: var(--bg-panel);
    padding: 15px 20px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    display: flex;
    flex-direction: column;
    gap: 12px;
    transition: 0.3s;
}
.match-card:hover { border-color: var(--primary-glow); transform: translateY(-3px); }

.match-date {
    color: var(--text-muted); font-size: 0.85rem; text-transform: uppercase; letter-spacing: 1px;
    border-bottom: 1px solid rgba(255,255,255,0.05); padding-bottom: 5px; margin-bottom: 5px; text-align: center;
}

.match-teams-row {
    display: flex; justify-content: space-between; align-items: center; padding: 0 10px;
}

.match-team {
    display: flex; align-items: center; gap: 15px; 
    font-weight: 700; color: white;
}

.score-series {
    background: #141414; padding: 6px 14px; border-radius: 6px;
    font-size: 1.4rem; font-weight: 800; color: #666;
    border: 1px solid var(--border-color);
}

.score-series.win {
    color: var(--primary-glow); border-color: var(--primary-glow);
    background: rgba(242, 211, 103, 0.05);
}

.match-footer {
    font-size: 0.9rem; color: var(--text-muted);
    text-align: center; margin-top: 5px;
    background: rgba(255,255,255,0.03); padding: 5px; border-radius: 4px;
}

/* --- TOP CAP LINEUPS STYLES --- */
.top-lineups-list { padding-right: 5px; }
.lineup-card {
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--border-color);
    padding: 10px;
    margin-bottom: 8px;
    border-radius: 6px;
    font-size: 0.85rem;
    transition: 0.2s;
}
.lineup-card:hover { border-color: var(--primary-glow); background: rgba(242, 211, 103, 0.02); }
.lineup-header {
    display: flex; justify-content: space-between;
    font-weight: bold;
    color: var(--primary-glow);
    margin-bottom: 5px;
    border-bottom: 1px dashed rgba(255,255,255,0.1);
    padding-bottom: 3px;
}
.lineup-value { color: var(--primary-glow); font-weight: 800; }
.lineup-players { color: #aab2c0; line-height: 1.4; font-size: 0.8em; }

/* NEW STYLE FOR RATING BADGE */
.player-rating-badge {
    display: inline-block;
    background: #2a2a2a; /* Dark background instead of blue */
    color: var(--primary-glow);
    font-weight: bold;
    font-size: 0.8em;
    padding: 2px 6px;
    border-radius: 4px;
    margin-right: 8px;
    min-width: 20px;
    text-align: center;
    border: 1px solid var(--primary-glow);
}
/* --- MODERN HUB DESIGN (CENTRAL ARENA - COMPACT) --- */

/* ================= HOME SCREEN FINAL (ANIMOVANÝ E-SPORTS HUB) ================= */

.hub-container {
    position: fixed;
    top: 0; left: 0; width: 100vw; height: 100vh;
    /* 👈 Úplné zprůhlednění, aby byl vidět tvůj bg-glow.png z index.html */
    background: transparent !important; 
    display: flex; flex-direction: column; justify-content: center; align-items: center;     
    z-index: 999; overflow: hidden;
}

/* Staré černé pozadí úplně vypneme */
.cyber-grid-bg { display: none !important; }

.home-main-layout {
    z-index: 10; width: 85%; max-width: 1700px; 
    display: flex; flex-direction: column; gap: 80px; margin-top: -50px; 
}

.hero-split {
    display: flex; justify-content: center; align-items: center; width: 100%; gap: 150px;
}

/* --- LOGO S LEVITACÍ A ZÁŘÍ --- */
.brand-left {
    display: flex; align-items: center; position: relative;
    /* Animace nástupu zespodu + neustálé levitace */
    opacity: 0;
    transform: translateY(40px);
    animation: heroPopUp 1s cubic-bezier(0.2, 0.8, 0.2, 1) forwards, floatLogo 6s ease-in-out infinite 1s;
}

/* Extrémní svítící koule přímo za logem na home page */
.brand-left::before {
    content: '';
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 350px; height: 350px;
    background: radial-gradient(circle, rgba(232, 185, 67, 0.25) 0%, transparent 60%);
    z-index: -1;
    filter: blur(30px);
    animation: pulseLogoGlow 4s infinite alternate;
}

.brand-logo-full {
    height: auto; width: 500px; max-width: 100%;
    filter: drop-shadow(0 0 40px rgba(232, 185, 67, 0.15)); 
}

/* --- PRAVÁ STRANA S TEXTY (Příjezd zprava) --- */
.info-right {
    display: flex; flex-direction: column; align-items: flex-end; text-align: right;
    /* Animace příjezdu */
    opacity: 0;
    transform: translateX(50px);
    animation: heroSlideLeft 1s cubic-bezier(0.2, 0.8, 0.2, 1) 0.3s forwards;
}

.season-badge-pill {
    border: 1px solid var(--accent-green); color: var(--accent-green);
    background: rgba(232, 185, 67, 0.05); padding: 6px 18px; border-radius: 50px;
    font-size: 0.85rem; font-weight: 700; letter-spacing: 2px;
    display: inline-flex; align-items: center; gap: 8px; margin-bottom: 25px;
}
.dot { width: 6px; height: 6px; background: var(--accent-green); border-radius: 50%; box-shadow: 0 0 8px var(--accent-green); }
.hero-headline { color: white; font-size: 2rem; font-weight: 600; line-height: 1.2; margin: 0 0 30px 0; text-transform: uppercase; letter-spacing: 1px; }

/* Sociální sítě */
.socials-row { display: flex; gap: 12px; }
.socials-row a {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    padding: 10px 22px; border-radius: 8px;
    color: #ccc; text-decoration: none; font-size: 0.9rem;
    display: flex; align-items: center; gap: 8px; transition: 0.3s;
    font-weight: 600;
}
.socials-row a:hover { border-color: var(--accent-green); color: #0c0c0c; background: var(--accent-green); }

/* --- 3 KARTY DOLE (Kaskádový nástup) --- */
.nav-cards-row {
    display: flex; justify-content: center; gap: 30px; width: 100%; padding-left: 0; margin-top: 20px;
}

.nav-glass-card {
    background: rgba(20, 20, 20, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    padding: 22px 30px;
    width: 280px;
    display: flex;
    align-items: center;
    gap: 18px;
    cursor: pointer;
    opacity: 0;
    translate: 0 50px;
    transition: 
        transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1),
        box-shadow 0.5s ease,
        border-color 0.4s ease,
        background 0.4s ease;
}

.nav-glass-card:nth-child(1) { animation: navCardIn 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275) 0.6s forwards; }
.nav-glass-card:nth-child(2) { animation: navCardIn 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275) 0.75s forwards; }
.nav-glass-card:nth-child(3) { animation: navCardIn 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275) 0.9s forwards; }

.nav-glass-card:hover {
    border-color: var(--accent-green);
    background: rgba(25, 25, 25, 0.95);
    transform: translateY(-6px);
    box-shadow: 
        0 15px 30px rgba(232, 185, 67, 0.15),
        0 0 0 1px rgba(232, 185, 67, 0.2);
}

/* 👇 Zlatá barva ikon zachována */
.card-icon { 
    font-size: 1.6rem; 
    color: var(--accent-green);
    transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* Ikona se při hoveru mírně pohne nahoru */
.nav-glass-card:hover .card-icon {
    transform: translateY(-3px);
}

@keyframes navCardIn {
    from { opacity: 0; translate: 0 50px; }
    to   { opacity: 1; translate: 0 0; }
}


/* RESPONSIVITA */
@media (max-width: 1400px) {
    .home-main-layout { width: 95%; padding: 0 20px; }
    .brand-logo-img { width: 400px; } 
    .hero-split { gap: 80px; }
}

@media (max-width: 1100px) {
    .hero-split { flex-direction: column; gap: 50px; text-align: center; }
    .brand-logo-img { width: 350px; margin: 0 auto; }
    .info-right { align-items: center; text-align: center; }
    .nav-cards-row { justify-content: center; flex-wrap: wrap; }
}

/* ==========================================================================
   KLÍČOVÉ ANIMACE PRO HOME PAGE
   ========================================================================== */
@keyframes heroPopUp { to { opacity: 1; transform: translateY(0); } }
@keyframes heroSlideLeft { to { opacity: 1; transform: translateX(0); } }
@keyframes floatLogo { 0% { transform: translateY(0); } 50% { transform: translateY(-15px); } 100% { transform: translateY(0); } }
@keyframes pulseLogoGlow { 0% { transform: translate(-50%, -50%) scale(0.8); opacity: 0.4; } 100% { transform: translate(-50%, -50%) scale(1.2); opacity: 1; } }

/* --- TICKER --- */
.teams-ticker-wrapper {
    position: fixed; bottom: 0; left: 0; width: 100%; height: 50px; 
    background: #141414; border-top: 1px solid var(--primary-glow);
    display: flex; align-items: center; z-index: 100;
}
.ticker-label {
    background: var(--primary-glow); color: black; font-weight: 800;
    padding: 0 15px; height: 100%; display: flex; align-items: center;
    font-size: 0.75rem; letter-spacing: 1px; z-index: 2;
    box-shadow: 5px 0 15px rgba(0,0,0,0.5);
}
.ticker-track {
    flex: 1; overflow: hidden; position: relative; height: 100%;
    display: flex; align-items: center;
    mask-image: linear-gradient(to right, transparent, black 2%, black 98%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 2%, black 98%, transparent);
}
.ticker-content {
    display: flex; gap: 40px; width: max-content; position: absolute; left: 0;
    animation: ticker-scroll 45s linear infinite;
}
.ticker-content:hover { animation-play-state: paused; }
@keyframes ticker-scroll {
    0% { transform: translateX(100vw); }
    100% { transform: translateX(-100%); }
}

/* --- MODERN STATS LAYOUT --- */
.stats-tabs {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
}

.stat-tab {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    color: var(--text-muted);
    padding: 12px 30px;
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    width: auto;
}

.stat-tab:hover {
    background: rgba(242, 211, 103, 0.1);
    color: white;
}

.stat-tab.active {
    background: var(--primary-glow);
    color: #0c0c0c;
    border-color: var(--primary-glow);
    box-shadow: 0 0 15px rgba(242, 211, 103, 0.4);
}

.transfers-container-modern {
    display: flex;
    flex-direction: column;
    gap: 15px;
    max-height: 800px;
    overflow-y: auto;
    padding-right: 5px;
}

.sidebar-title {
    margin-top: 0;
    margin-bottom: 20px;
    font-size: 1.2rem;
    color: white;
    border-left: 4px solid var(--primary-glow);
    padding-left: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.transfer-card-modern {
    background: var(--bg-panel);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 20px;
    position: relative;
    transition: transform 0.2s, border-color 0.2s;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.transfer-card-modern:hover {
    border-color: var(--primary-glow);
    transform: translateX(5px);
    background: #222222;
}

.transfer-card-modern::before {
    content: '';
    position: absolute;
    left: 0; top: 15px; bottom: 15px;
    width: 4px;
    background: var(--primary-glow);
    border-radius: 0 4px 4px 0;
}

.tc-date {
    font-size: 0.75rem;
    color: #666;
    margin-bottom: 8px;
    font-family: monospace;
}

.tc-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

.tc-player-name {
    font-size: 1.2rem;
    font-weight: 800;
    color: white;
}

.badge {
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 800;
}

.badge-rating {
    background: #2a2a2a; 
    color: var(--primary-glow);
    border: 1px solid var(--primary-glow);
    box-shadow: 0 0 10px rgba(242, 211, 103, 0.3);
}

.badge-value {
    background: rgba(242, 211, 103, 0.1);
    color: var(--primary-glow);
    border: 1px solid rgba(242, 211, 103, 0.3);
}

.tc-movement {
    display: flex;
    flex-direction: column;
    gap: 5px;
    font-size: 0.9rem;
    background: rgba(0,0,0,0.2);
    padding: 10px;
    border-radius: 8px;
}

.tc-row {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-muted);
}

.tc-arrow {
    color: var(--warning-glow);
    font-size: 0.8rem;
    margin-left: 2px;
}

.tc-team-highlight {
    color: white;
    font-weight: 600;
}

/* --- NEW LINK STYLE --- */
.link {
    display: flex;
    align-items: center;
    justify-content: center; 
    width: 60px;
    height: 50px;
    border-radius: 16px;
    color: var(--text-muted); 
    text-decoration: none;
    font-weight: 500;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.03); 
    border: 1px solid transparent;
    cursor: pointer;
}

.link:hover {
    background: rgba(242, 211, 103, 0.1); 
    color: white;
    border-color: var(--primary-glow);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(242, 211, 103, 0.2);
}

.link.active {
    background: var(--primary-glow);
    color: #0c0c0c;
    box-shadow: 0 0 15px rgba(242, 211, 103, 0.4);
}

.scanlines {
    z-index: 1; 
    opacity: 0.3; 
    pointer-events: none;
}

.central-hub-wrapper {
    position: relative; 
    z-index: 10;        
}

.season-badge-top {
    position: relative;
    z-index: 20;        
    background: rgba(12, 12, 12, 0.8); 
}

.hub-socials-center {
    position: relative;
    z-index: 20;
}
.social-links-modern a {
    background: rgba(12, 12, 12, 0.8); 
    border: 1px solid rgba(255, 255, 255, 0.1);
}

#team-info {
    position: relative;
    z-index: 1;
    padding: 20px 0;
}

/* NAHRAĎ ZA: */
#team-info::before {
    content: '';
    position: fixed; 
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: 
        radial-gradient(ellipse 80% 80% at 50% 50%, var(--active-team-color) 0%, transparent 65%);
    opacity: 0.1;
    z-index: -2; 
    pointer-events: none;
    transition: background 1s ease-in-out;
    filter: blur(60px);
}

/* --- TÝMOVÉ BARVY --- */
.team-schlongtastics {
    background: linear-gradient(90deg, #ff007f, #8e44ad); 
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 8px rgba(255, 0, 127, 0.5)); 
    font-weight: 800;
}

.team-skogfjall {
    background: linear-gradient(90deg, #f1c40f, #e67e22);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 8px rgba(241, 196, 15, 0.5));
    font-weight: 800;
}

.team-kahawa {
    background: linear-gradient(90deg, #e74c3c, #3498db);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 8px rgba(231, 76, 60, 0.5));
    font-weight: 800;
}

.team-fa {
    color: #bdc3c7;
    font-weight: 600;
}

/* --- CSS PRO POST-MATCH DETAILS A VOD TLAČÍTKA --- */
.modal-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.85); z-index: 2000; display: flex; justify-content: center; align-items: center; backdrop-filter: blur(5px); }
.modal-content { background: linear-gradient(145deg, #1a1a1a, #111111); border: 1px solid var(--border-color); border-radius: 12px; padding: 25px; width: 95%; max-width: 700px; max-height: 90vh; overflow-y: auto; position: relative; box-shadow: 0 10px 40px rgba(0,0,0,0.7); }
.close-modal { position: absolute; top: 15px; right: 20px; font-size: 1.8rem; color: #888; cursor: pointer; transition: 0.3s; }
.close-modal:hover { color: #ff3333; }
.md-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 25px; padding-bottom: 20px; border-bottom: 1px solid rgba(255,255,255,0.1); }
.md-team { text-align: center; flex: 1; font-weight: bold; font-size: 1.3rem; }
.md-team img { width: 60px; height: 60px; object-fit: contain; margin-bottom: 10px; filter: drop-shadow(0 0 10px rgba(255,255,255,0.1)); }
.md-score { font-size: 3rem; font-weight: 900; color: var(--primary-glow); text-shadow: 0 0 20px rgba(242, 211, 103, 0.5); padding: 0 20px; }
.md-body { display: flex; flex-direction: column; gap: 25px; }
.md-team-stats h4 { margin: 0 0 10px 0; color: #aab2c0; font-size: 1.1rem; text-transform: uppercase; letter-spacing: 1px; border-left: 3px solid var(--primary-glow); padding-left: 10px;}

.match-time-badge { background: rgba(0,0,0,0.4); padding: 4px 10px; border-radius: 6px; font-size: 0.8rem; color: #aab2c0; display: inline-flex; align-items: center; gap: 6px; margin-bottom: 12px; border: 1px solid rgba(255,255,255,0.05);}
.match-streamer { font-size: 0.8rem; color: var(--primary-glow); margin-top: 8px; font-weight: 600; display: flex; align-items: center; gap: 5px;}
.match-vod-btn { display: inline-flex; align-items: center; gap: 5px; margin-top: 8px; padding: 5px 12px; background: rgba(242, 211, 103, 0.1); border: 1px solid var(--primary-glow); color: var(--primary-glow); border-radius: 6px; font-size: 0.8rem; text-decoration: none; transition: 0.3s; font-weight: bold;}
.match-vod-btn:hover { background: var(--primary-glow); color: #0c0c0c; box-shadow: 0 0 15px rgba(242, 211, 103, 0.6); transform: translateY(-1px); }
.match-card.clickable { cursor: pointer; transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s; position: relative;}
.match-card.clickable:hover { transform: translateY(-3px); box-shadow: 0 8px 25px rgba(0,0,0,0.4); border-color: rgba(242, 211, 103, 0.4); }
.match-click-hint { font-size: 0.75rem; color: #666; text-align: center; margin-top: 12px; font-style: italic; opacity: 0.7;}
.match-card.clickable:hover .match-click-hint { color: var(--primary-glow); opacity: 1; }

/* --- FULL PAGE MATCH REPORT & VOD PLAYER --- */
.report-header-wrapper {
    position: relative;
    padding: 40px 20px;
    border-radius: 12px;
    margin-bottom: 30px;
    border: 1px solid rgba(255,255,255,0.05);
    background-color: #111111; 
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}
.report-header-content {
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.btn-back-schedule {
    display: inline-block;
    margin-bottom: 20px;
    padding: 8px 16px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    color: #aab2c0;
    border-radius: 6px;
    cursor: pointer;
    transition: 0.2s;
    font-weight: 600;
}
.btn-back-schedule:hover {
    background: rgba(255,255,255,0.1);
    color: #fff;
}
.video-responsive-container {
    position: relative;
    width: 100%;
    max-width: 900px;
    margin: 30px auto;
    aspect-ratio: 16 / 9;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0,0,0,0.6);
    border: 1px solid rgba(255,255,255,0.1);
    background: #000;
}
.video-responsive-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}
.report-stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-top: 30px;
}
@media (max-width: 900px) {
    .report-stats-grid { grid-template-columns: 1fr; }
}

/* ==========================================================================
   TOURNAMENT BRACKET (EPICKÝ E-SPORTS REDESIGN)
   ========================================================================== */
.tournament-bracket {
    display: flex; flex-direction: row; justify-content: center;
    align-items: center; gap: 50px; margin-top: 40px;
    overflow-x: auto; padding: 40px 20px;
}
.bracket-column { display: flex; flex-direction: column; gap: 30px; }
.qf-column { justify-content: space-between; }
.sf-column { justify-content: space-around; gap: 80px; }
.final-column { justify-content: center; gap: 80px; }

.bracket-match {
    background: rgba(18, 18, 18, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px; width: 260px; padding: 0;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    position: relative; box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    backdrop-filter: blur(10px); overflow: hidden; cursor: pointer;
    opacity: 0; transform: scale(0.9) translateX(-30px);
    animation: bracketPopIn 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

/* Kaskádové vykreslení pavouka zleva doprava */
.qf-column .bracket-match:nth-child(1) { animation-delay: 0.1s; }
.qf-column .bracket-match:nth-child(2) { animation-delay: 0.2s; }
.qf-column .bracket-match:nth-child(3) { animation-delay: 0.3s; }
.qf-column .bracket-match:nth-child(4) { animation-delay: 0.4s; }
.sf-column .bracket-match:nth-child(1) { animation-delay: 0.6s; }
.sf-column .bracket-match:nth-child(2) { animation-delay: 0.7s; }
.final-column .bracket-match:nth-child(1) { animation-delay: 1.0s; } /* Grand Final */
.final-column .bracket-match:nth-child(2) { animation-delay: 1.1s; } /* 3rd Place */

@keyframes bracketPopIn { to { opacity: 1; transform: scale(1) translateX(0); } }

.bracket-match:hover {
    border-color: var(--primary-glow);
    box-shadow: 0 15px 35px rgba(232, 185, 67, 0.25), inset 0 0 20px rgba(232, 185, 67, 0.05);
    transform: translateY(-5px) scale(1.03);
}
.bracket-match::before {
    content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 4px;
    background: var(--primary-glow); opacity: 0.3; transition: 0.3s;
}
.bracket-match:hover::before { opacity: 1; box-shadow: 0 0 15px var(--primary-glow); }

.match-title {
    background: rgba(0, 0, 0, 0.5); color: var(--primary-glow);
    font-size: 0.75rem; padding: 10px 15px; font-weight: 800;
    text-align: center; text-transform: uppercase;
    letter-spacing: 2px; border-bottom: 1px solid rgba(255,255,255,0.05);
}
.match-team-row {
    display: flex; justify-content: space-between; align-items: center;
    padding: 12px 15px; font-size: 1rem; font-weight: 600;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03); background: transparent; transition: background 0.3s;
}
.match-team-row:last-child { border-bottom: none; }
.match-team-row:hover { background: rgba(255, 255, 255, 0.03); }

/* --- GRAND FINAL EXKLUZIVNÍ VZHLED --- */
.final-column .bracket-match:first-child {
    border: 2px solid var(--primary-glow); box-shadow: 0 0 30px rgba(232, 185, 67, 0.15);
    transform: scale(1.1);
    animation: bracketPopInFinal 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards, grandFinalPulse 2s infinite alternate 1.6s;
}
@keyframes bracketPopInFinal {
    0% { opacity: 0; transform: scale(0.9) translateX(-30px); }
    100% { opacity: 1; transform: scale(1.1) translateX(0); }
}
@keyframes grandFinalPulse {
    0% { box-shadow: 0 0 20px rgba(232, 185, 67, 0.15); }
    100% { box-shadow: 0 0 40px rgba(232, 185, 67, 0.5); border-color: #fff; }
}
.final-column .bracket-match:first-child:hover { transform: scale(1.15) translateY(-5px); }


/* ==========================================================================
   Nové animované pozadí s obrázky
   ========================================================================== */
.gpm-image-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    pointer-events: none;
    overflow: hidden;
    background-color: #0c0c0c;
}

.bg-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.base-layer {
    opacity: 0.8;
}

.glow-layer {
    opacity: 0.5;
    mix-blend-mode: screen; 
    animation: pulseVibrant 4s ease-in-out infinite alternate;
}

@keyframes pulseVibrant {
    0% {
        opacity: 0.2;
        filter: brightness(1) saturate(100%);
    }
    100% {
        opacity: 0.9;
        filter: brightness(1.5) saturate(200%);
    }
}

main, .content-section, #home, #teams, #stats, #standings, #transfers, .hero {
    background-color: transparent !important;
}

/* ==========================================================================
   VYCENTROVANÉ NADPISY SE ZLATÝM RÁMEČKEM (BUBLINA)
   ========================================================================== */
.section-header { 
    position: relative; 
    margin-bottom: 30px; 
    z-index: 1;
    display: flex;
    justify-content: center; 
    align-items: center;
}

.section-header::before {
    content: '';
    position: absolute;
    top: -30px;
    left: 50%;
    transform: translateX(-50%) rotate(-30deg); 
    width: 350px;
    height: 120px;
    background: rgba(232, 185, 67, 0.15); 
    filter: blur(45px); 
    z-index: -1;
    pointer-events: none; 
}

.title-underline { display: none !important; } /* Zruší původní vodorovnou čáru */

.section-title { 
    display: inline-block; 
    background: rgba(18, 18, 18, 0.9); 
    padding: 15px 45px; 
    border-radius: 20px; 
    border: 2px solid transparent; 
    backdrop-filter: blur(12px); 
    -webkit-backdrop-filter: blur(12px);
    font-size: 2.2rem; 
    font-weight: 900; 
    text-transform: uppercase; 
    color: #ffffff; 
    margin: 0; 
    letter-spacing: 2px; 
    text-shadow: 0 4px 15px rgba(0, 0, 0, 0.5); 
    animation: borderGlow 1.2s ease-out forwards;
    animation-delay: 0.1s;
}

@keyframes borderGlow {
    0% { border-color: rgba(232, 185, 67, 0); box-shadow: 0 0 0 rgba(232, 185, 67, 0); }
    100% { border-color: rgba(232, 185, 67, 1); box-shadow: 0 0 20px rgba(232, 185, 67, 0.35), inset 0 0 10px rgba(232, 185, 67, 0.15); }
}

/* ==========================================================================
   HLAVNÍ NADPISY: SKLENĚNÉ BUBLINY SE ZLATÝM OKRAJEM (VLEVO S HOVER ANIMACÍ)
   ========================================================================== */
.section-header { 
    position: relative; 
    margin-bottom: 30px; 
    z-index: 1;
    display: flex;
    justify-content: flex-start; /* 👈 Vrátí bublinu zpět doleva */
    align-items: center;
}

/* Světelný paprsek za bublinou (vrácen doleva) */
.section-header::before {
    content: '';
    position: absolute;
    top: -60px;
    left: -80px; /* 👈 Vrátí záři zpět za text */
    transform: rotate(-30deg); /* 👈 Zrušeno centrování */
    width: 350px;
    height: 120px;
    background: rgba(232, 185, 67, 0.15); 
    filter: blur(45px); 
    z-index: -1;
    pointer-events: none; 
}

.title-underline { display: none !important; }

.section-title { 
    display: inline-block; 
    background: rgba(18, 18, 18, 0.9); 
    padding: 15px 45px; 
    border-radius: 20px; 
    border: 2px solid transparent; 
    backdrop-filter: blur(12px); 
    -webkit-backdrop-filter: blur(12px);
    font-size: 2.2rem; 
    font-weight: 900; 
    text-transform: uppercase; 
    color: #ffffff; 
    margin: 0; 
    letter-spacing: 2px; 
    text-shadow: 0 4px 15px rgba(0, 0, 0, 0.5); 
    
    /* 👈 Přidána tranzice pro plynulý hover efekt */
    transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1), box-shadow 0.3s ease, border-color 0.3s ease, color 0.3s ease;
    
    animation: borderGlow 1.2s ease-out forwards;
    animation-delay: 0.1s;
}

/* 👈 NOVÁ HOVER ANIMACE (Při najetí myší) */
.section-title:hover {
    transform: translateY(-4px) scale(1.03); /* Bublina mírně vyskočí a zvětší se */
    border-color: #ffffff !important; /* Rámeček se rozsvítí zářivě bíle */
    color: var(--primary-glow); /* Text zezlátne */
    box-shadow: 0 10px 35px rgba(232, 185, 67, 0.5), inset 0 0 15px rgba(232, 185, 67, 0.3) !important; /* Silnější zlatá záře */
}

@keyframes borderGlow {
    0% { border-color: rgba(232, 185, 67, 0); box-shadow: 0 0 0 rgba(232, 185, 67, 0); }
    100% { border-color: rgba(232, 185, 67, 1); box-shadow: 0 0 20px rgba(232, 185, 67, 0.35), inset 0 0 10px rgba(232, 185, 67, 0.15); }
}
/* ==========================================================================
   PŘEPÍNACÍ ZÁLOŽKY (MENŠÍ PRŮHLEDNÉ BUBLINY VEDLE SEBE)
   ========================================================================== */
.gpm-tabs { 
    display: flex !important; 
    flex-direction: row !important; /* Vrátí bubliny vedle sebe */
    flex-wrap: wrap !important; 
    gap: 15px !important; 
    margin-bottom: 30px !important; 
    justify-content: flex-start !important; /* Zarovná je doleva */
}

.tab-btn {
    display: inline-flex !important; 
    align-items: center !important; 
    justify-content: center !important;
    gap: 8px !important; 
    padding: 10px 24px !important; 
    border-radius: 10px !important;
    font-family: 'Segoe UI', Roboto, sans-serif !important; 
    font-weight: 700 !important; 
    font-size: 0.95rem !important; 
    text-transform: uppercase !important; 
    letter-spacing: 1px !important; 
    cursor: pointer !important;
    width: auto !important; /* Zabrání roztažení přes celou obrazovku */
    
    /* Původní průhledný vzhled */
    background: rgba(255, 255, 255, 0.05) !important; 
    border: 1px solid rgba(255, 255, 255, 0.15) !important; 
    color: rgba(255, 255, 255, 0.5) !important;
    
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1) !important; 
}

/* Animace a barvy při najetí myší */
.tab-btn:hover { 
    background: rgba(255, 255, 255, 0.1) !important; 
    color: #ffffff !important; 
    transform: translateY(-3px) scale(1.02) !important; 
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4) !important; 
}

.tab-btn i, .tab-btn svg { 
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275); 
    display: block; 
}
.tab-btn:hover i, .tab-btn:hover svg { 
    transform: translateY(-2px) scale(1.1); 
}

/* Aktivní (vybraná) zlatá bublina */
.tab-btn.active { 
    background: var(--primary-glow) !important; 
    border: 1px solid var(--primary-glow) !important; 
    color: #0c0c0c !important; 
    animation: breathingGlow 2s infinite alternate !important; 
}
.tab-btn.active:hover { 
    transform: translateY(-1px) !important; 
}

@keyframes breathingGlow { 
    0% { box-shadow: 0 0 10px rgba(232, 185, 67, 0.3); } 
    100% { box-shadow: 0 0 25px rgba(232, 185, 67, 0.7); } 
}

/* ==========================================================================
   ANIMACE TABULEK (POSTUPNÝ NÁJEZD) A DETAILU TÝMU
   ========================================================================== */
.animate-row {
    opacity: 0;
    transform: translateY(15px);
    animation: fadeInRow 0.4s ease-out forwards;
}

@keyframes fadeInRow {
    to { 
        opacity: 1; 
        transform: translateY(0); 
    }
}

@keyframes slideUpFadeTeam {
    0% { 
        opacity: 0; 
        transform: translateY(40px) scale(0.98); 
    }
    100% { 
        opacity: 1; 
        transform: translateY(0) scale(1); 
    }
}
.card-text h3 { 
    margin: 0; 
    color: white; 
    font-size: 1rem; 
    font-weight: 800; 
    letter-spacing: 1px; 
    line-height: 1;
}
.card-text span { 
    color: #7a8490; 
    font-size: 0.8rem; 
    text-transform: uppercase;
    margin-top: 2px;
    display: block;
    line-height: 1;
}
.team-btn-card .team-info-wrap span:not(.stars-display) {
    font-size: 0.62rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: white;
    text-align: center;
}

/* ==========================================================================
   MOBILE RESPONSIVE IMPROVEMENTS
   ========================================================================== */

@media (max-width: 768px) {
    /* Nav */
    .main-nav { flex-wrap: wrap; gap: 4px; padding: 8px; }
    .main-nav li { font-size: 0.75rem; padding: 6px 10px; }

    /* Section padding */
    .content-section { padding: 15px 10px; }

    /* Section title */
    .section-title { font-size: 1.4rem; }

    /* Tables – horizontal scroll */
    .stats-table-wrapper, .table-responsive { overflow-x: auto; -webkit-overflow-scrolling: touch; }
    .stats-table { min-width: 600px; font-size: 0.8rem; }
    .stats-table th, .stats-table td { padding: 8px 10px; }

    /* Team dashboard grid – single column */
    .team-dashboard-grid { grid-template-columns: 1fr !important; gap: 12px; }
    .dashboard-card { padding: 15px; }

    /* Hero */
    .hero-split { flex-direction: column; gap: 30px; text-align: center; }
    .brand-logo-img { width: 220px; margin: 0 auto; }
    .home-main-layout { padding: 0 12px; }

    /* Standings */
    .standings-split-layout { flex-direction: column; }

    /* GM panel */
    .gm-grid { grid-template-columns: 1fr !important; }
    #gm-sim-players { max-height: 200px; }

    /* Admin grid */
    .admin-grid { grid-template-columns: 1fr !important; }

    /* Login card */
    .login-card-styled { padding: 24px 16px; }

    /* Bracket */
    .tournament-bracket { flex-direction: column; gap: 20px; overflow-x: auto; }
    .bracket-column { flex-direction: row; flex-wrap: wrap; justify-content: center; gap: 12px; }
    .bracket-match { width: 200px; }

    /* Ticker */
    .teams-ticker-wrapper { height: 40px; }

    /* Top lineups */
    .top-lineups-list { max-height: none; }

    /* Nav cards */
    .nav-cards-row { flex-direction: column; gap: 10px; }
    .nav-card { width: 100%; }

    /* Transfers */
    .mini-transfer-item { font-size: 0.8rem; padding: 6px 8px; }

    /* Match detail */
    .match-score-big { font-size: 2.5rem; }

    /* Modals */
    .modal-content { padding: 20px 14px; margin: 10px; max-height: 90vh; overflow-y: auto; }
}

@media (max-width: 480px) {
    .main-nav li { font-size: 0.68rem; padding: 5px 7px; }
    .section-title { font-size: 1.2rem; }
    .stats-table { min-width: 500px; font-size: 0.72rem; }
    .brand-logo-img { width: 170px; }
    .bracket-match { width: 170px; font-size: 0.8rem; }
}