.header-inner { padding: 0 var(--gap); }
.nav-menu { display: flex; align-items: center; gap: 2px; }
.nav-item { position: relative; }
.nav-link {
    color: #fff; text-decoration: none; padding: 14px;
    font-size: .92em; font-weight: 600; white-space: nowrap;
    display: flex; align-items: center; gap: 5px; transition: background .2s;
}
.nav-link:hover { background: rgba(255,255,255,.12); color: #fff; text-decoration: none; }
.nav-arrow { font-size: .6em; opacity: .6; }
.dropdown-panel {
    display: none; position: absolute; top: 100%; left: 0;
    background: #fff; border: 1px solid var(--border);
    border-radius: 0 0 var(--radius) var(--radius);
    min-width: 230px; padding: 6px 0;
    box-shadow: 0 8px 30px rgba(0,0,0,.12); z-index: 60;
}
.nav-item:hover .dropdown-panel { display: block; }
.dropdown-panel a {
    display: block; padding: 10px 18px; color: var(--text);
    text-decoration: none; font-size: .9em; font-weight: 500;
}
.dropdown-panel a:hover { background: var(--bg-blue); color: var(--primary-blue); }
.dropdown-sep { height: 1px; background: var(--border); margin: 5px 0; }
.dropdown-panel .link-all { color: var(--primary-blue); font-weight: 700; font-size: .85em; }
.dropdown-wide { min-width: 340px; padding: 14px; }
.dropdown-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; }
.dd-country { display: flex; align-items: center; gap: 8px; padding: 10px 12px !important; border-radius: 8px; }
.dd-flag { font-size: 1.3em; }
.dd-country.soon { opacity: .35; pointer-events: none; }
.dd-badge { font-size: .6em; background: var(--border); padding: 2px 6px; border-radius: 3px; margin-left: auto; color: var(--text-light); }
.nav-burger { display: none; background: none; border: none; color: #fff; font-size: 1.5em; cursor: pointer; padding: 6px; }
@media (max-width: 768px) {
    .nav-burger { display: block; }
    .nav-menu {
        display: none; flex-direction: column; align-items: stretch;
        position: absolute; top: 100%; left: 0; right: 0;
        background: var(--primary-blue); padding: 8px 0;
        box-shadow: 0 8px 20px rgba(0,0,0,.2); z-index: 55;
    }
    .nav-menu.open { display: flex; }
    .nav-link { padding: 12px 20px; }
    .dropdown-panel { position: static; box-shadow: none; border: none; border-radius: 0; background: rgba(255,255,255,.08); }
    .dropdown-panel a { color: #fff; padding: 10px 30px; }
    .dropdown-panel a:hover { background: rgba(255,255,255,.1); color: #fff; }
    .dropdown-sep { background: rgba(255,255,255,.15); }
    .dropdown-panel .link-all { color: #93c5fd; }
    .nav-item:hover .dropdown-panel { display: none; }
    .nav-item.mob-open .dropdown-panel { display: block; }
    .dropdown-wide { min-width: auto; padding: 8px; }
    .dropdown-grid { grid-template-columns: 1fr; }
}

                   .zone-legend {
                       display: flex; flex-wrap: wrap; gap: 14px; margin: 14px 0;
                       font-size: .85em; color: var(--text-light);
                   }
.zone-legend-item { display: flex; align-items: center; gap: 5px; }
.zone-dot { width: 12px; height: 12px; border-radius: 3px; }

/* ===== ЗОНЫ ТАБЛИЦЫ ===== */
.zone-champion td:first-child { border-left: 4px solid #ffd700; }
.zone-cl td:first-child { border-left: 4px solid #1e88e5; }
.zone-cl_qual td:first-child { border-left: 4px solid #42a5f5; }
.zone-el td:first-child { border-left: 4px solid #ff8f00; }
.zone-ecl td:first-child { border-left: 4px solid #66bb6a; }
.zone-uefa td:first-child { border-left: 4px solid #ff8f00; }
.zone-rel_play td:first-child { border-left: 4px solid #ff7043; }
.zone-relegation td:first-child { border-left: 4px solid #ef5350; }

/* Подсветка строки целиком */
.zone-champion { background: rgba(255,215,0,.06); }
.zone-cl { background: rgba(30,136,229,.06); }
.zone-cl_qual { background: rgba(66,165,245,.06); }
.zone-el { background: rgba(255,143,0,.06); }
.zone-ecl { background: rgba(102,187,106,.06); }
.zone-uefa { background: rgba(255,143,0,.06); }
.zone-rel_play { background: rgba(255,112,67,.06); }
.zone-relegation { background: rgba(239,83,80,.06); }

.form-badge {
    display: inline-block; width: 22px; height: 22px; line-height: 22px;
    text-align: center; border-radius: 4px; font-size: .7em;
    font-weight: bold; color: #fff; margin: 0 1px;
}
.form-W { background: #16a34a; }
.form-D { background: #ca8a04; }
.form-L { background: #dc2626; }

.gd-pos { color: #16a34a; }
.gd-neg { color: #dc2626; }
.gd-zero { color: var(--text-light); }

.tabs {
    display: flex; gap: 6px; flex-wrap: wrap; margin: 20px 0 16px;
    border-bottom: 2px solid var(--border); padding-bottom: 0;
}
.tab-btn {
    background: none; border: none; border-bottom: 3px solid transparent;
    padding: 10px 16px; cursor: pointer; font-size: .92em; font-weight: 600;
    color: var(--text-light); transition: all .2s;
}
.tab-btn:hover { color: var(--primary-blue); }
.tab-btn.active { color: var(--primary-blue); border-bottom-color: var(--primary-blue); }
.tab-content { display: none; }
.tab-content.active { display: block; }

.matrix-wrap { overflow-x: auto; margin: 16px 0; }
.matrix-table { border-collapse: collapse; font-size: .82em; }
.matrix-table th, .matrix-table td {
    padding: 6px 5px; border: 1px solid var(--border); text-align: center;
}
.matrix-table thead th {
    background: linear-gradient(135deg, var(--primary-blue), var(--secondary-blue));
    color: #fff; font-size: .75em; writing-mode: vertical-rl;
    transform: rotate(180deg); height: 90px; padding: 6px 3px;
}
.matrix-table td.m-home {
    text-align: left; font-weight: 600; white-space: nowrap;
    background: var(--bg-blue); padding: 6px 8px;
}
.matrix-table td.diagonal { background: #e5e7eb; }
.matrix-table td.score-w { background: rgba(22,163,74,.08); }
.matrix-table td.score-d { background: rgba(202,138,4,.08); }
.matrix-table td.score-l { background: rgba(220,38,38,.08); }

.rounds-grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: var(--gap);
}
.round-card {
    background: #fff; border: 1px solid var(--border);
    border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden;
}
.round-title {
    background: var(--bg-blue); padding: 10px 14px;
    font-weight: 700; color: var(--primary-blue); font-size: .95em;
    border-bottom: 1px solid var(--border);
}
.round-match {
    display: flex; align-items: center; padding: 8px 14px;
    border-bottom: 1px solid var(--border); font-size: .88em;
}
.round-match:last-child { border-bottom: none; }
.rm-date { color: var(--text-light); font-size: .8em; width: 50px; flex-shrink: 0; }
.rm-home { flex: 1; text-align: right; padding-right: 8px; }
.rm-score {
    font-weight: 700; background: var(--bg-blue); padding: 3px 8px;
    border-radius: 4px; min-width: 40px; text-align: center;
}
.rm-away { flex: 1; text-align: left; padding-left: 8px; }

.stats-row { display: flex; gap: 12px; flex-wrap: wrap; margin: 16px 0; }
.stats-card {
    background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
    padding: 16px 20px; box-shadow: var(--shadow); text-align: center; flex: 1; min-width: 130px;
}
.stats-card .sc-value { font-size: 1.6em; font-weight: 700; color: var(--primary-blue); }
.stats-card .sc-label { font-size: .8em; color: var(--text-light); margin-top: 4px; }

.round-filter { margin-bottom: 16px; text-align: center; }
.round-filter select {
    padding: 8px 14px; border: 1px solid var(--border); border-radius: 8px;
    background: #fff; font-size: .95em; color: var(--text); cursor: pointer;
}

.season-nav {
    display: flex; justify-content: space-between; align-items: center;
    padding: 12px 0; margin-bottom: 10px;
}
.season-link {
    color: var(--primary-blue); text-decoration: none; font-weight: 600; font-size: .95em;
}
.season-link:hover { text-decoration: underline; }
.season-current { font-weight: 700; font-size: 1.1em; }

@media (max-width: 640px) {
    .stats-row { flex-direction: column; }
    .stats-card { min-width: auto; }
    .matrix-table { font-size: .7em; }
    .matrix-table thead th { height: 60px; }
}

.mobile-emoji {
    display: none;
}

@media (max-width: 768px) {
    .mobile-emoji {
        display: inline;
    }
}