:root {
    --bg-main: #050a14;
    --bg-panel: #0f1623;
    --bg-input: #0a0f1d;
    --primary-glow: #00f2ea;
    --success-glow: #00f2ea;
    --secondary-glow: #ff0055;
    --warning-glow: #ffd700;
    --text-light: #ffffff;
    --text-muted: #8a9bb8;
    --border-color: #1f2a40;
}

body {
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    background-color: var(--bg-main);
    background-image: linear-gradient(135deg, #050a14 0%, #0a152b 100%);
    color: var(--text-light);
    margin: 0;
    min-height: 100vh;
}

/* --- NAVIGACE --- */
.navbar {
    background: rgba(5, 10, 20, 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(0, 242, 234, 0.4); -webkit-user-select:none; -moz-user-select:none; user-select:none; }
.menu { list-style: none; display: flex; gap: 10px; padding: 0; margin: 0; flex-wrap: wrap; justify-content: center; }
.menu li { padding: 10px 18px; border-radius: 8px; cursor: pointer; color: var(--text-muted); transition: all 0.3s ease; font-weight: 600; font-size: 0.95rem; }
.menu li:hover, .menu li.active { background: rgba(0, 242, 234, 0.1); color: var(--primary-glow); }
.menu li.active { box-shadow: 0 0 15px rgba(0, 242, 234, 0.2); }
.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); } }

h2 { 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(0, 242, 234, 0.3); }

/* --- LEAGUE HUB --- */
.hub-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle at 100% 0%, #0a2e38 0%, var(--bg-main) 50%);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
}

.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(0, 242, 234, 0.6); }

.prizepool-display {
    background: linear-gradient(90deg, rgba(0,242,234,0.1), transparent, rgba(0,242,234,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(15, 22, 35, 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(0, 242, 234, 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(0, 242, 234, 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); }

#home:not(.hidden) ~ .navbar { display: none; }
.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: #0a0f1d !important; border: 1px solid var(--border-color); padding: 15px !important; font-size: 1rem !important; margin-bottom: 15px !important; color: white; }
.btn-login { background: var(--primary-glow); color: #050a14; font-size: 1.1rem; font-weight: 800; text-transform: uppercase; letter-spacing: 1px; padding: 15px; margin-top: 10px; box-shadow: 0 4px 15px rgba(0, 242, 234, 0.3); }
.btn-login:hover { background: white; transform: translateY(-2px); }

/* --- 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(0, 242, 234, 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='%238a9bb8' 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(0, 242, 234, 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: #050a14; }
.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: #121826; }
.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: #050a14; 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: #0a0f1d; 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(0, 242, 234, 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: #050a14; }
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, #0f1623 0%, #0a0f1d 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: #0f1623; 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(0, 242, 234, 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: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 15px; margin-bottom: 40px; }
.team-btn-card { background: var(--bg-panel); border: 1px solid var(--border-color); color: var(--text-light); padding: 12px 18px; border-radius: 12px; text-align: left; cursor: pointer; transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1); font-weight: 700; text-transform: uppercase; box-shadow: 0 4px 10px rgba(0,0,0,0.1); display: flex; flex-direction: row; align-items: center; justify-content: flex-start; gap: 15px; position: relative; overflow: hidden; }
.team-btn-card:hover { background: #131b2e; transform: translateY(-3px); box-shadow: 0 8px 20px rgba(0, 242, 234, 0.2); border-color: var(--primary-glow); }
.team-btn-card.active { background: linear-gradient(135deg, rgba(0,242,234,0.1), rgba(0,153,153,0.2)); color: #fff; border-color: var(--primary-glow); box-shadow: 0 0 20px rgba(0, 242, 234, 0.3); }
.btn-team-logo { width: 45px; height: 45px; object-fit: contain; background: white; border-radius: 50%; padding: 4px; box-shadow: 0 4px 10px rgba(0,0,0,0.2); margin-bottom: 0; flex-shrink: 0; }
.team-info-wrap { display: flex; flex-direction: column; line-height: 1.2;}
.team-info-wrap .stars-display { margin-top: 4px; font-size: 0.75rem; }

#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: #131b2e; box-shadow: 0 8px 20px rgba(0, 242, 234, 0.2); }
.free-agents-card.active { background: linear-gradient(135deg, var(--success-glow), #009999); color: #050a14; 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, #00f2ea, #009999); color: #050a14; padding: 15px 25px; border-radius: 8px; font-weight: 800; text-transform: uppercase; box-shadow: 0 5px 15px rgba(0, 242, 234, 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: #0a0f1d; border-radius: 6px; overflow: hidden; position: relative; border: 1px solid var(--border-color); }
.salary-fill { height: 100%; background: linear-gradient(90deg, #009999, #00f2ea); width: 0%; transition: width 0.5s ease; box-shadow: 0 0 10px rgba(0, 242, 234, 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(0, 242, 234, 0.1); color: #00f2ea; padding: 2px 6px; border-radius: 4px; font-size: 0.75em; font-weight: bold; border: 1px solid rgba(0, 242, 234, 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: #0f1623; 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(0,242,234,0.1), transparent); }
.team-row.winner .team-name { color: #fff; }
.team-row.winner .team-score { color: #00f2ea; }
.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: #0a0f1d; border: 1px dashed #444; padding: 15px; text-align: center; cursor: pointer; border-radius: 6px; transition: 0.2s; position: relative; }
.av-slot:hover { border-color: #00f2ea; background: #131b2e; }
.av-slot.has-match { border-style: solid; border-color: var(--border-color); background: #0f1623; }
.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: #00f2ea; 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; /* Mezera mezi skóre a jménem */
    font-weight: 700; color: white;
}

.score-series {
    background: #0a0f1d; 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(0, 242, 234, 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 { max-height: 400px; overflow-y: auto; 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(0, 242, 234, 0.02); }
.lineup-header {
    display: flex; justify-content: space-between;
    font-weight: bold;
    color: #00a8ff;
    margin-bottom: 5px;
    border-bottom: 1px dashed rgba(255,255,255,0.1);
    padding-bottom: 3px;
}
.lineup-value { color: #00ff88; 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: #007bff; /* Blue background */
    color: white;
    font-weight: bold;
    font-size: 0.8em;
    padding: 2px 6px;
    border-radius: 4px;
    margin-right: 8px;
    min-width: 20px;
    text-align: center;
}
/* --- MODERN HUB DESIGN (CENTRAL ARENA - COMPACT) --- */
/* =========================================
   NEW DESIGN: ASYMMETRICAL SPLIT (UPDATED)
   ========================================= */

/* ================= HOME SCREEN FINAL (IMAGE ONLY LOGO) ================= */

:root {
    --accent-green: #00ffaa;
    --accent-cyan: #00f2ea;
    --bg-deep: #020408;
    --text-white: #ffffff;
}

/* 1. HLAVNÍ KONTEJNER - PŘES CELOU OBRAZOVKU */
.hub-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: #020408;
    display: flex;
    flex-direction: column;
    justify-content: center; /* Vertikální centrování */
    align-items: center;     /* Horizontální centrování obsahu */
    z-index: 999;
    overflow: hidden;
}

/* Pozadí */
.cyber-grid-bg {
    position: absolute; width: 100%; height: 100%;
    background: radial-gradient(circle at 50% 50%, #0a1520 0%, #020408 80%);
    z-index: 0;
}

/* 2. LAYOUT OBSAHU - ŠIROKÝ ROZPTYL */
.home-main-layout {
    z-index: 10;
    width: 85%; /* Roztáhne obsah do šířky, aby to nebylo namáčklé uprostřed */
    max-width: 1700px; /* Maximální šířka pro velké monitory */
    display: flex;
    flex-direction: column;
    gap: 80px; /* Mezera mezi vrškem (logo/info) a kartami */
    margin-top: -50px; /* Optické vyvážení středu */
}

/* --- HORNÍ ČÁST (LOGO vs INFO) --- */
.hero-split {
    display: flex;
    justify-content: center; /* Změna z space-between na center */
    align-items: center;
    width: 100%;
    gap: 150px;
}

/* LEVÁ STRANA: POUZE OBRÁZEK LOGA */
.brand-left {
    display: flex;
    align-items: center;
}

/* Styl pro logo (které obsahuje P i Text) */
.brand-logo-full {
    height: auto;
    width: 500px; /* Nastavíme velkou šířku, aby to bylo čitelné */
    max-width: 100%;
    filter: drop-shadow(0 0 40px rgba(0, 255, 170, 0.15)); /* Zelená záře */
}

/* PRAVÁ STRANA: INFO */
.info-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end; /* Zarovnání textu doprava */
    text-align: right;
}

.season-badge-pill {
    border: 1px solid var(--accent-green);
    color: var(--accent-green);
    background: rgba(0, 255, 170, 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; /* Velikost nadpisu */
    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: white; background: rgba(0, 255, 170, 0.05); }
.fa-discord { color: #5865F2; } 
.fa-twitch { color: #9146FF; } 
.fa-tiktok { color: #EE1D52; }

/* --- SPODNÍ ČÁST: KARTY --- */
.nav-cards-row {
    display: flex;
    justify-content: center; /* Karty zarovnané na střed */
    gap: 30px;
    width: 100%;
    padding-left: 0;
    margin-top: 20px;
}

.nav-glass-card {
    background: rgba(12, 18, 25, 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; transition: 0.3s;
}

.nav-glass-card:hover {
    border-color: var(--accent-green);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 255, 170, 0.1);
}

.card-icon { font-size: 1.6rem; color: var(--accent-green); }
.card-text h3 { margin: 0; color: white; font-size: 1rem; font-weight: 800; letter-spacing: 1px; }
.card-text span { color: #7a8490; font-size: 0.8rem; text-transform: uppercase; }

/* --- TICKER --- */
.teams-ticker-wrapper {
    position: absolute; bottom: 0; left: 0; width: 100%; height: 45px;
    background: #020408; border-top: 1px solid rgba(255,255,255,0.1);
    display: flex; align-items: center; z-index: 100;
}
.ticker-label {
    background: var(--accent-green); color: #000; font-weight: 900;
    padding: 0 25px; height: 100%; display: flex; align-items: center;
    font-size: 0.8rem; letter-spacing: 1px; z-index: 2;
}

/* RESPONSIVITA (Pro menší obrazovky) */
@media (max-width: 1400px) {
    .home-main-layout { width: 95%; padding: 0 20px; }
    .brand-logo-img { width: 400px; } /* Zmenšit logo na menších monitorech */
    .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; }
}

/* --- TICKER ZŮSTÁVÁ STEJNÝ --- */
.teams-ticker-wrapper {
    position: fixed; bottom: 0; left: 0; width: 100%; height: 50px; /* Zmenšeno z 60px */
    background: #0a0f1d; 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-grid-layout {
    display: grid;
    grid-template-columns: 2fr 1fr; /* Tabulka širší, transfery užší */
    gap: 30px;
    align-items: start;
}

@media (max-width: 1000px) {
    .stats-grid-layout { grid-template-columns: 1fr; }
}

/* Tabs (Přepínače) */
.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; /* Přepsání defaultního width: 100% z button */
}

.stat-tab:hover {
    background: rgba(0, 242, 234, 0.1);
    color: white;
}

.stat-tab.active {
    background: var(--primary-glow);
    color: #050a14;
    border-color: var(--primary-glow);
    box-shadow: 0 0 15px rgba(0, 242, 234, 0.4);
}

/* Moderní Transfery (Karty) */
.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: #131b2e;
}

/* Barevný proužek vlevo podle typu transferu (dovnitř/ven je řešeno ikonou, tady jen estetika) */
.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;
}

/* Odznaky (Badges) */
.badge {
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 800;
}

.badge-rating {
    background: #007bff; /* Modrá jako na obrázku */
    color: white;
    box-shadow: 0 0 10px rgba(0, 123, 255, 0.3);
}

.badge-value {
    background: rgba(0, 242, 234, 0.1);
    color: var(--primary-glow);
    border: 1px solid rgba(0, 242, 234, 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; /* Změnil jsem na center, aby ikona byla uprostřed */
    width: 60px;
    height: 50px;
    border-radius: 16px;
    color: #8a9bb8; /* Upraveno, aby ladilo s tvým --text-muted */
    text-decoration: none;
    font-weight: 500;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.03); /* Lehké pozadí */
    border: 1px solid transparent;
    cursor: pointer;
}

/* Efekt při najetí myší (Hover) */
.link:hover {
    background: rgba(0, 242, 234, 0.1); /* Neon tyrkysová */
    color: white;
    border-color: var(--primary-glow);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 242, 234, 0.2);
}

/* Aktivní stav (pokud bys to použil pro menu) */
.link.active {
    background: var(--primary-glow);
    color: #050a14;
    box-shadow: 0 0 15px rgba(0, 242, 234, 0.4);
}

/* --- OPRAVA VRSTVENÍ (Aby byl text čitelný nad mřížkou) --- */
.scanlines {
    z-index: 1; /* Nejnižší vrstva (ale nad úplným pozadím body) */
    opacity: 0.3; /* Jemnější, aby to nerušilo text */
    pointer-events: none;
}

.central-hub-wrapper {
    position: relative; /* Nutné, aby fungoval z-index */
    z-index: 10;        /* Vyšší číslo než scanlines (10 > 1) */
}

.season-badge-top {
    position: relative;
    z-index: 20;        /* Ještě vyšší, pro jistotu */
    background: rgba(5, 10, 20, 0.8); /* Jemné černé pozadí pod textem pro čitelnost */
}

.hub-socials-center {
    position: relative;
    z-index: 20;
}
.social-links-modern a {
    background: rgba(5, 10, 20, 0.8); /* Tmavší pozadí tlačítek pro lepší kontrast */
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* --- ZMENA: GLOW EFEKT NA CELÚ OBRAZOVKU PRE TEAM INFO --- */
#team-info {
    position: relative;
    z-index: 1;
    padding: 20px 0;
}

#team-info::before {
    content: '';
    position: fixed; /* Vďaka tomuto sa farba zafixuje na celú obrazovku */
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    /* Farbu si to berie automaticky z JS bota */
    background: radial-gradient(circle at 50% 50%, var(--active-team-color) 0%, transparent 70%);
    opacity: 0.15; /* Sila žiary. Ak chceš výraznejšiu, zmeň na 0.25 */
    z-index: -2; /* Skryje efekt až za tabuľky a texty */
    pointer-events: none;
    transition: background 0.8s ease-in-out;
}