:root {
    --header-bg: #181c28;
    --accent: #e10600;
    --accent-hover: #c40000;
    --bg: #f0f2f5;
    --card: #ffffff;
    --text: #111;
    --text-light: #555;
    --border: #e0e0e0;
    --live: #e10600;
    --finished: #2e7d32;
    --upcoming: #888;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: 'Inter', sans-serif; background: var(--bg); color: var(--text); line-height: 1.4; }
.top-bar {
    background: var(--header-bg);
    border-bottom: 2px solid var(--accent);
    position: sticky;
    top: 0;
    z-index: 100;
}
.header-content {
    max-width: 1300px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 60px;
    padding: 0 1.5rem;
}
.logo { font-size: 1.8rem; font-weight: 900; color: #fff; text-decoration: none; letter-spacing: -1px; }
.logo span { color: var(--accent); }
.main-nav { display: flex; gap: 2rem; }
.main-nav a {
    color: rgba(255,255,255,0.8); text-decoration: none; font-weight: 600;
    font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.5px; transition: 0.2s; position: relative;
}
.main-nav a:hover, .main-nav a.active { color: #fff; }
.main-nav a.active::after {
    content: ''; position: absolute; bottom: -6px; left: 0; width: 100%; height: 2px; background: var(--accent);
}
.menu-toggle { display: none; background: none; border: none; color: #fff; font-size: 1.8rem; cursor: pointer; }
.mobile-nav { display: none; flex-direction: column; background: var(--header-bg); position: absolute; top: 60px; left: 0; right: 0; padding: 1rem; gap: 1rem; z-index: 99; }
.mobile-nav a { color: #fff; text-decoration: none; font-weight: 600; padding: 0.5rem; font-size: 1rem; border-bottom: 1px solid rgba(255,255,255,0.1); }
.mobile-nav a.active { color: var(--accent); }

.container { max-width: 1100px; margin: 1.5rem auto; padding: 0 1.5rem; }
.back-link { display: inline-block; margin-bottom: 1rem; font-size: 0.85rem; color: var(--accent); text-decoration: none; font-weight: 600; }
.back-link:hover { text-decoration: underline; }

.match-card {
    background: var(--card);
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    box-shadow: 0 2px 6px rgba(0,0,0,0.04);
    border-left: 3px solid transparent;
}
.match-card.status-live { border-left-color: var(--live); }
.match-card.status-finished { border-left-color: var(--finished); }
.match-card.status-upcoming { border-left-color: var(--upcoming); }
.match-card .match-league {
    font-size: 0.7rem; text-transform: uppercase; color: var(--text-light); font-weight: 600; letter-spacing: 0.3px; margin-bottom: 1rem;
}
.match-card .match-teams {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 0.5rem;
}
.team-link {
    display: block;
    text-decoration: none;
    color: inherit;
    flex: 1;
    min-width: 0;
}
.team-link:hover .team-name {
    color: var(--accent);
    transition: color 0.2s;
}
.team {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    flex: 1;
}
.team-logo, .team-logo-placeholder {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    object-fit: contain;
    flex-shrink: 0;
}
.team-logo-placeholder { background: #eee; }
.team-name { font-weight: 700; font-size: 1.1rem; text-align: center; }
.match-score {
    font-weight: 900;
    font-size: 1.8rem;
    text-align: center;
    min-width: 100px;
    flex-shrink: 0;
}
.match-status-badge {
    display: inline-block; padding: 2px 8px; border-radius: 4px; font-size: 0.7rem; font-weight: 700;
    text-transform: uppercase; color: #fff;
}
.match-status-badge.live { background: var(--live); }
.match-status-badge.finished { background: var(--finished); }
.match-card .match-meta {
    display: flex; justify-content: center; gap: 2rem; font-size: 0.85rem; color: var(--text-light);
    margin-top: 0.5rem; flex-wrap: wrap;
}
.match-meta .meta-item { display: flex; align-items: center; gap: 0.3rem; }
.match-meta .meta-item i { font-size: 0.8rem; }

/* ===== МЕТА-ИНФОРМАЦИЯ (ВАРИАНТ 2 – БЕЙДЖИ) ===== */
.match-details {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 0.8rem;
    padding-top: 0.8rem;
    border-top: 1px solid var(--border);
}
.detail-item {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    background: #f8fafc;
    padding: 0.2rem 0.8rem;
    border-radius: 20px;
    border: 1px solid var(--border);
    font-size: 0.85rem;
    color: var(--text-light);
}
.detail-item i {
    color: var(--accent);
    width: 1.2rem;
    text-align: center;
    font-size: 0.9rem;
}
.detail-item .label {
    font-weight: 600;
    color: var(--text);
    margin-right: 0.2rem;
}

/* ===== СЕРИЯ ПЕНАЛЬТИ (ВАРИАНТ 2 – КРАСНЫЙ ТЕКСТ) ===== */
.penalty-row {
    color: var(--accent);
    font-weight: 700;
    font-size: 1.05rem;
    margin: 0.5rem auto 0;
    text-align: center;
}
.penalty-row i {
    margin-right: 0.3rem;
}

.card {
    background: var(--card); border-radius: 8px; padding: 1.5rem; margin-bottom: 1.5rem;
    box-shadow: 0 2px 6px rgba(0,0,0,0.04);
}
.card h2 {
    font-size: 1.2rem; font-weight: 800; margin-bottom: 1rem; text-transform: uppercase; letter-spacing: 0.5px;
}
.preview-text { font-size: 0.95rem; color: var(--text-light); line-height: 1.6; }
.preview-label { font-weight: 700; color: var(--text); }

/* ===== ПРОГНОЗЫ – ОСНОВНАЯ СЕТКА ===== */
.prediction-grid {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}
.prediction-block {
    flex: 1;
    min-width: 200px;
    background: #f8f8f8;
    border-radius: 12px;
    padding: 1rem;
}
.prediction-block h3 {
    font-size: 0.9rem;
    font-weight: 700;
    margin-bottom: 0.8rem;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}
.prob-row {
    display: flex;
    justify-content: space-around;
    text-align: center;
    margin-bottom: 0.8rem;
}
.prob-row div { font-size: 0.9rem; }
.prob-row strong { font-size: 1.4rem; }
.ai-result {
    text-align: center; font-weight: 700; background: #fce4e4; padding: 0.5rem; border-radius: 4px; color: var(--accent);
}
.stats-prediction-detail {
    margin-top: 0.5rem;
    font-size: 0.85rem;
    text-align: center;
    background: #f0f0f0;
    padding: 0.2rem;
    border-radius: 4px;
}

/* ===== ПРОГНОЗЫ ПОЛЬЗОВАТЕЛЕЙ (компактно) ===== */
.user-prediction-block .prediction-item {
    margin-bottom: 0.8rem;
}
.user-prediction-block .prediction-item .label {
    font-weight: 600;
    font-size: 0.8rem;
    display: block;
    margin-bottom: 0.2rem;
    color: var(--text-light);
}
.user-prediction-block .prediction-options {
    display: flex;
    gap: 0.2rem;
    flex-wrap: wrap;
}
.user-prediction-block .pred-btn {
    flex: 1 1 30%;
    min-width: 45px;
    padding: 0.15rem 0.3rem;
    border: 2px solid var(--border);
    border-radius: 4px;
    background: var(--card);
    font-weight: 600;
    font-size: 0.7rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.15s;
}
.user-prediction-block .pred-btn:not(.disabled):not(.correct):not(.wrong):hover {
    border-color: var(--accent);
    background: #fff5f0;
}
.user-prediction-block .pred-btn .vote-percent {
    display: block;
    font-size: 0.9rem;
    font-weight: 800;
}
.user-prediction-block .pred-btn .vote-label {
    display: block;
    font-size: 0.65rem;
}
.user-prediction-block .pred-btn .vote-count {
    display: block;
    font-size: 0.55rem;
    opacity: 0.7;
}
.user-prediction-block .pred-btn.selected {
    border-color: var(--accent);
    background: var(--accent);
    color: #fff;
}
.user-prediction-block .pred-btn.correct {
    border-color: #2ecc71;
    background: #2ecc71;
    color: #fff;
}
.user-prediction-block .pred-btn.wrong {
    border-color: #e74c3c;
    background: #e74c3c;
    color: #fff;
}
.user-prediction-block .pred-btn.disabled {
    cursor: not-allowed;
}

.odds-row { display: flex; gap: 1rem; justify-content: space-around; }
.odd { text-align: center; }
.odd-val { font-size: 1.5rem; font-weight: 800; color: var(--accent); }

.table-wrapper { overflow-x: auto; margin: 0 -0.5rem; padding: 0 0.5rem; }
.table {
    width: 100%; border-collapse: collapse; min-width: 500px;
}
.table th, .table td {
    padding: 0.6rem 0.8rem; text-align: center; border-bottom: 1px solid #f0f0f0; font-size: 0.9rem;
}
.table th { background: #f8f8f8; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.5px; color: var(--text-light); font-weight: 600; }
.table tr:last-child td { border-bottom: none; }
.table .team-cell { text-align: center; font-weight: 500; }
.table .score-cell { font-weight: 700; }

.standings-mini tr.team-highlight {
    background-color: #fff3e0;
    font-weight: 600;
    border-left: 3px solid var(--accent);
}
.standings-mini tr.team-highlight td:first-child { border-left: none; }

.form-grid { display: flex; gap: 2rem; flex-wrap: wrap; }
.form-column { flex: 1; min-width: 250px; }
.form-column h3 { font-size: 1rem; margin-bottom: 0.8rem; }
.form-item {
    display: flex; align-items: center; gap: 0.8rem; padding: 0.5rem 0.8rem;
    border: 1px solid var(--border); border-radius: 6px; margin-bottom: 0.5rem;
}
.form-badge {
    width: 32px; height: 32px; border-radius: 50%; display: inline-flex;
    align-items: center; justify-content: center; font-weight: 800; color: white; font-size: 0.85rem;
}
.form-details { flex: 1; }
.form-details .opponent { font-weight: 600; }
.form-details .score { font-size: 0.85rem; color: var(--text-light); }
.form-date { font-size: 0.75rem; color: var(--text-light); }

.lineups-grid { display: flex; gap: 2rem; flex-wrap: wrap; }
.lineup-column { flex: 1; min-width: 250px; }
.lineup-column h3 { font-size: 1rem; margin-bottom: 0.8rem; }
.lineup-column .coach-name { font-size: 0.8rem; color: var(--text-light); margin-bottom: 0.5rem; }
.lineup-column h4 { font-size: 0.85rem; font-weight: 600; margin-bottom: 0.5rem; color: var(--text-light); }
.lineup-list { list-style: none; padding: 0; }
.lineup-list li {
    display: flex; align-items: center; padding: 0.3rem 0; border-bottom: 1px solid #f5f5f5; font-size: 0.9rem;
}
.lineup-list li:last-child { border-bottom: none; }
.lineup-num { width: 30px; font-weight: 700; color: var(--text-light); flex-shrink: 0; }
.lineup-name { flex: 1; font-weight: 500; }
.lineup-pos {
    width: 30px; text-align: right; color: var(--text-light); font-weight: 400; font-size: 0.8rem;
    text-transform: uppercase;
}

/* ===== ЛУЧШИЕ ИГРОКИ ===== */
.top-players-grid {
    display: grid;
    gap: 1rem;
}

/* Десктоп: 6 колонок, карточки компактнее */
@media (min-width: 769px) {
    .top-players-grid {
        grid-template-columns: repeat(6, 1fr);
    }
    .player-card {
        padding: 0.6rem 0.4rem;
    }
    .player-card .player-name {
        font-size: 0.85rem;
    }
    .player-card .player-rating {
        font-size: 1.2rem;
    }
    .player-card .player-stats {
        font-size: 0.7rem;
        gap: 0.4rem;
    }
}

/* Мобильные: 2 колонки */
@media (max-width: 768px) {
    .top-players-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.player-card {
    background: #f8fafc;
    border-radius: 8px;
    padding: 0.8rem;
    text-align: center;
    border: 1px solid var(--border);
    cursor: pointer;
    transition: 0.2s;
}
.player-card:hover {
    border-color: var(--accent);
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}
.player-card .player-name {
    font-weight: 700;
}
.player-card .player-team {
    font-size: 0.75rem;
    color: var(--text-light);
}
.player-card .player-rating {
    font-weight: 800;
    color: var(--accent);
    margin: 0.2rem 0;
}
.player-card .player-stats {
    display: flex;
    justify-content: center;
    gap: 0.8rem;
    font-size: 0.75rem;
    color: var(--text-light);
}
.player-card .player-stats span {
    display: flex;
    align-items: center;
    gap: 0.2rem;
}

/* ===== МОДАЛКА СТАТИСТИКИ ИГРОКА ===== */
.player-stats-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 999;
    justify-content: center;
    align-items: center;
}
.player-stats-modal .modal-content {
    background: #fff;
    border-radius: 12px;
    padding: 2rem;
    max-width: 500px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
}
.player-stats-modal .close-btn {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 1.5rem;
    cursor: pointer;
}
.player-stats-modal .stat-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
}
.player-stats-modal .stat-item {
    background: #f8fafc;
    padding: 0.3rem 0.6rem;
    border-radius: 4px;
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
}
.player-stats-modal .stat-item .label {
    color: var(--text-light);
}
.player-stats-modal .stat-item .value {
    font-weight: 700;
}

.news-list-horizontal {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.news-card-horizontal {
    background: var(--card);
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    transition: transform 0.2s, box-shadow 0.2s;
    min-height: 140px;
}
.news-card-horizontal:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}
.news-image {
    width: 120px;
    flex-shrink: 0;
    background: #e9ecef;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6c757d;
    font-size: 2rem;
    overflow: hidden;
}
.news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.news-image.no-image {
    background: #dee2e6;
}
.news-content {
    padding: 1rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
.news-title {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 0.4rem;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.news-meta {
    display: flex;
    gap: 1rem;
    font-size: 0.7rem;
    color: #6c757d;
    margin-bottom: 0.5rem;
    flex-wrap: wrap;
}
.news-source a {
    color: var(--accent);
    text-decoration: none;
    font-weight: 500;
}
.news-snippet {
    font-size: 0.8rem;
    line-height: 1.4;
    color: #444;
    margin-bottom: 0.5rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.read-more {
    align-self: flex-start;
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--accent);
    text-decoration: none;
    border: 1px solid var(--accent);
    padding: 0.15rem 0.6rem;
    border-radius: 20px;
    transition: 0.2s;
    margin-top: auto;
}
.read-more:hover {
    background: var(--accent);
    color: white;
}
.news-card-horizontal.no-image-card {
    border-left: 3px solid var(--accent);
}
.news-card-horizontal.no-image-card .news-image {
    display: none;
}
.news-card-horizontal.no-image-card .news-content {
    padding-left: 1rem;
}
.source-label {
    font-weight: 600;
    margin-right: 0.25rem;
    color: var(--text);
}

.editor-pick-badge {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.4rem 1rem;
    border-radius: 30px;
    background: #fff5f0;
    border: 1px solid var(--accent);
    color: var(--accent);
    width: 100%;
    box-sizing: border-box;
    font-size: 0.95rem;
}
.editor-pick-badge .pick-icon { font-size: 1rem; }
.editor-pick-badge .pick-text { font-weight: 600; }
.editor-pick-badge .pick-odds {
    font-weight: 700;
    padding: 0.1rem 0.5rem;
    border-radius: 20px;
    font-size: 0.85rem;
    background: var(--accent);
    color: #fff;
    margin-left: auto;
    white-space: nowrap;
}

/* ===== КОММЕНТАРИИ ===== */
.comments-section {
    background: var(--card);
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 2px 6px rgba(0,0,0,0.04);
}
.comments-section h2 {
    font-size: 1.2rem;
    font-weight: 800;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.comments-section .comment-count {
    font-size: 0.9rem;
    font-weight: 400;
    color: var(--text-light);
    text-transform: none;
}
.comment-form {
    margin-bottom: 1.5rem;
}
.comment-form textarea {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid var(--border);
    border-radius: 4px;
    font-family: inherit;
    font-size: 0.9rem;
    resize: vertical;
    min-height: 80px;
}
.comment-form textarea:focus {
    outline: none;
    border-color: var(--accent);
}
.comment-form .form-actions {
    display: flex;
    gap: 0.8rem;
    margin-top: 0.5rem;
    align-items: center;
}
.comment-form .form-actions .btn {
    padding: 0.5rem 1.2rem;
    border-radius: 4px;
    font-weight: 600;
    font-size: 0.9rem;
    border: none;
    cursor: pointer;
    transition: 0.2s;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-hover); }
.btn-outline { background: transparent; color: var(--text); border: 1px solid var(--border); }
.btn-outline:hover { border-color: var(--accent); color: var(--accent); }
.btn-sm { font-size: 0.8rem; padding: 0.3rem 0.8rem; }

.comment-thread {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}
.comment-item {
    display: flex;
    gap: 1rem;
}
.comment-item .comment-avatar {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    overflow: hidden;
    background: #f0f0f0;
}
.comment-item .comment-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.comment-item .comment-body {
    flex: 1;
    min-width: 0;
    overflow: hidden;
}
.comment-item .comment-header {
    display: flex;
    gap: 0.8rem;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 0.2rem;
}
.comment-item .comment-author { font-weight: 700; }
.comment-item .comment-date { font-size: 0.75rem; color: var(--text-light); }
.comment-item .comment-content {
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 0.3rem;
    word-wrap: break-word;
    overflow-wrap: break-word;
    word-break: break-word;
    max-width: 100%;
    white-space: pre-wrap;
}
.comment-item .comment-actions {
    display: flex;
    gap: 0.8rem;
    font-size: 0.8rem;
    align-items: center;
    flex-wrap: wrap;
}
.comment-item .comment-actions button {
    background: none;
    border: none;
    color: var(--text-light);
    cursor: pointer;
    font-weight: 500;
    padding: 0.1rem 0.2rem;
    transition: 0.2s;
}
.comment-item .comment-actions button:hover { color: var(--accent); }
.vote-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.2rem;
}
.vote-btn .voted { color: var(--accent); }
.vote-stats {
    font-size: 0.8rem;
    color: var(--text-light);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}
.comment-replies {
    margin-left: 2.5rem;
    margin-top: 1rem;
    border-left: 2px solid var(--border);
    padding-left: 1rem;
}
.comment-replies .comment-item { margin-bottom: 1rem; }
.comment-replies .comment-item:last-child { margin-bottom: 0; }

.login-to-comment {
    background: #f8f8f8;
    padding: 1rem;
    border-radius: 4px;
    text-align: center;
    color: var(--text-light);
}
.login-to-comment button {
    background: none;
    border: none;
    color: var(--accent);
    font-weight: 600;
    cursor: pointer;
    text-decoration: underline;
}
.login-to-comment button:hover {
    color: var(--accent-hover);
}

/* ===== ФОРМА ОТВЕТА ===== */
.reply-form {
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
    padding: 0.8rem;
    background: #f8fafc;
    border-radius: 6px;
    border: 1px solid var(--border);
    display: none;
    width: 100%;
    box-sizing: border-box;
}
.reply-form textarea {
    width: 100%;
    box-sizing: border-box;
    padding: 0.6rem 0.8rem;
    border: 1px solid var(--border);
    border-radius: 6px;
    font-family: inherit;
    font-size: 0.95rem;
    resize: vertical;
    min-height: 80px;
    background: #fff;
    transition: border-color 0.2s;
}
.reply-form textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(225, 6, 0, 0.1);
}
.reply-form .form-actions {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.5rem;
}
.reply-form .form-actions button {
    padding: 0.3rem 1rem;
    border-radius: 4px;
    font-weight: 600;
    font-size: 0.8rem;
    border: none;
    cursor: pointer;
    transition: 0.2s;
}
.reply-form .form-actions .btn-submit-reply {
    background: var(--accent);
    color: #fff;
}
.reply-form .form-actions .btn-submit-reply:hover {
    background: var(--accent-hover);
}
.reply-form .form-actions .btn-cancel-reply {
    background: transparent;
    color: var(--text);
    border: 1px solid var(--border);
}
.reply-form .form-actions .btn-cancel-reply:hover {
    border-color: var(--accent);
    color: var(--accent);
}

/* ===== ССЫЛКА "ВСЕ НОВОСТИ ПО ТЕМЕ" ===== */
.news-all-link {
    margin-top: 0.8rem;
    text-align: right;
}
.news-all-link a {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.3rem 1rem;
    background: var(--accent);
    color: #fff !important;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.8rem;
    text-decoration: none;
    transition: 0.2s;
    border: 1px solid var(--accent);
}
.news-all-link a:hover {
    background: var(--accent-hover);
    border-color: var(--accent-hover);
    text-decoration: none;
}
.news-all-link a i {
    font-size: 0.7rem;
}

.footer { text-align: center; padding: 2rem; color: #888; font-size: 0.8rem; border-top: 1px solid var(--border); margin-top: 2rem; }
.facts-list { list-style: disc; padding-left: 1.5rem; }
.facts-list li { margin-bottom: 0.5rem; }

/* ===== ДОБАВЛЕННЫЕ СТИЛИ ДЛЯ МОДАЛЬНОГО ОКНА И КАПТЧИ ===== */
.modal {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 1000;
    display: none;
    justify-content: center;
    align-items: center;
}
.modal-content {
    background: #fff;
    padding: 2rem;
    border-radius: 16px;
    max-width: 460px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 10px 40px rgba(0,0,0,0.3);
}
.modal-close {
    position: absolute;
    top: 10px;
    right: 20px;
    font-size: 1.8rem;
    cursor: pointer;
    color: #999;
}
.modal-close:hover {
    color: #000;
}

/* Стили форм в модалке */
.modal-auth-form {
    padding: 0.5rem 0;
}
.modal-auth-form .form-group {
    margin-bottom: 1rem;
}
.modal-auth-form .form-group label {
    font-weight: 600;
    display: block;
    margin-bottom: 0.3rem;
}
.modal-auth-form .form-group input[type="text"],
.modal-auth-form .form-group input[type="email"],
.modal-auth-form .form-group input[type="password"] {
    width: 100%;
    padding: 0.6rem 0.8rem;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 0.95rem;
}
.modal-auth-form .btn {
    width: 100%;
    padding: 0.7rem;
    background: var(--accent);
    color: #fff;
    border: none;
    border-radius: 6px;
    font-weight: 700;
    cursor: pointer;
}
.modal-auth-form .btn:hover {
    background: var(--accent-hover);
}

/* Стили каптчи (используются в модалке и на странице регистрации) */
.captcha-container {
    background: #f8f9fc;
    border-radius: 12px;
    padding: 1rem;
    border: 1px solid #e9edf2;
}
.captcha-question {
    font-weight: 700;
    font-size: 0.95rem;
    text-align: center;
    margin-bottom: 0.8rem;
}
.captcha-image-wrapper {
    text-align: center;
    margin-bottom: 0.8rem;
}
.captcha-image-wrapper img {
    max-width: 140px;
    max-height: 140px;
    border-radius: 10px;
    border: 2px solid #fff;
    padding: 4px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}
.captcha-options {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}
.captcha-option {
    display: flex;
    align-items: center;
    padding: 0.4rem 0.8rem;
    border: 2px solid #e2e6ec;
    border-radius: 6px;
    background: #fff;
    cursor: pointer;
    transition: 0.15s;
    gap: 0.6rem;
}
.captcha-option:hover {
    border-color: var(--accent);
    background: #fef6f4;
}
.captcha-option input[type="radio"] {
    display: none;
}
.captcha-option .option-text {
    font-weight: 500;
    font-size: 0.9rem;
    flex: 1;
}
.captcha-option.selected {
    border-color: var(--accent);
    background: #fff0ed;
    box-shadow: 0 0 0 3px rgba(225,6,0,0.08);
}
.captcha-option.selected .option-check {
    opacity: 1;
}
.captcha-option .option-check {
    opacity: 0;
    color: var(--accent);
    font-size: 1.1rem;
}
.captcha-error {
    color: #dc2626;
    font-size: 0.85rem;
    margin-top: 0.5rem;
    display: none;
    align-items: center;
    gap: 0.3rem;
}
.captcha-error.visible {
    display: flex;
}

    /* ===== АДАПТИВ ===== */
    @media (max-width: 768px) {
        .main-nav { display: none; }
        .menu-toggle { display: block; }
        .container { padding: 0 1rem; }
        .match-card { padding: 1rem; }
        .team-logo, .team-logo-placeholder { width: 40px; height: 40px; }
        .team-name { font-size: 0.9rem; }
        .match-score { font-size: 1.2rem; min-width: 60px; }
        .card { padding: 1rem; }
        .card h2 { font-size: 1rem; }
        .prediction-grid,
        .form-grid,
        .lineups-grid { flex-direction: column; }
        .prediction-block { min-width: auto; }
        .odd-val { font-size: 1.2rem; }
        .form-item { padding: 0.4rem; gap: 0.5rem; }
        .form-badge { width: 28px; height: 28px; font-size: 0.75rem; }
        .form-details .opponent { font-size: 0.85rem; }
        .form-date { font-size: 0.7rem; }
        .table-wrapper { overflow-x: visible; }
        .table { min-width: auto; width: 100%; font-size: 0.7rem; }
        .table th, .table td { padding: 0.3rem 0.2rem; font-size: 0.7rem; }
        .table th { font-size: 0.65rem; }
        .table .team-cell { max-width: 100px; word-break: break-word; }
        .standings-mini th:nth-child(3), .standings-mini td:nth-child(3),
        .standings-mini th:nth-child(8), .standings-mini td:nth-child(8) { display: none; }
        .standings-mini th, .standings-mini td { padding: 0.2rem 0.1rem; font-size: 0.65rem; }
        .preview-text { font-size: 0.85rem; }
        .news-card-horizontal { flex-direction: column; }
        .news-image { width: 100%; height: 140px; }
        .news-card-horizontal.no-image-card .news-image { display: none; }
        .news-card-horizontal.no-image-card .news-content { padding: 0.8rem; }
        .editor-pick-badge { font-size: 0.85rem; padding: 0.3rem 0.8rem; gap: 0.4rem; flex-wrap: wrap; }
        .editor-pick-badge .pick-icon { font-size: 0.85rem; }
        .editor-pick-badge .pick-odds { font-size: 0.75rem; padding: 0.05rem 0.4rem; margin-left: auto; }
        .comments-section { padding: 1rem; }
        .comment-item .comment-avatar { width: 32px; height: 32px; }
        .comment-replies { margin-left: 1.2rem; padding-left: 0.6rem; }
        .user-prediction-block .pred-btn {
            min-width: 40px;
            font-size: 0.65rem;
        }
        .user-prediction-block .pred-btn .vote-percent {
            font-size: 0.8rem;
        }
        .user-prediction-block .pred-btn .vote-label {
            font-size: 0.6rem;
        }
        .news-all-link a {
            font-size: 0.7rem;
            padding: 0.2rem 0.8rem;
        }
        .reply-form {
            padding: 0.5rem;
        }
        .reply-form textarea {
            min-height: 60px;
            font-size: 0.9rem;
        }
        .modal-content {
            padding: 1.5rem;
            max-width: 100%;
            width: 95%;
            border-radius: 12px;
        }
        /* Адаптив для лучших игроков */
        .top-players-grid {
            grid-template-columns: 1fr 1fr;
        }
        .player-stats-modal .modal-content {
            padding: 1.5rem;
            max-width: 400px;
        }
        /* Адаптив для мета-информации */
        .match-details {
            gap: 0.5rem;
            flex-direction: column;
            align-items: center;
        }
        .penalty-row {
            font-size: 0.95rem;
        }
    }

    /* ===== ИКОНКИ (работает на всех разрешениях) ===== */
    .detail-item i,
    .player-stats i,
    .coach-name i,
    .penalty-row i,
    .vote-btn i {
        display: inline-block !important;
        font-family: "Font Awesome 6 Free" !important;
        font-weight: 900 !important;
        font-style: normal !important;
        font-variant: normal !important;
        text-rendering: auto !important;
        -webkit-font-smoothing: antialiased !important;
    }