.hltv-tournament-page {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}


.t-hero-section {
    position: relative;
    border-radius: 12px 12px 0 0;
    height: 280px;
    background-color: #1a252f;
    background-size: cover;
    background-position: center;
    overflow: hidden;
    display: flex;
    align-items: flex-end;
}

.t-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(15, 20, 25, 0.95) 0%, rgba(15, 20, 25, 0.4) 100%);
    z-index: 1;
}

.t-hero-content {
    position: relative;
    z-index: 2;
    width: 100%;
    padding: 30px;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    flex-wrap: wrap;
    gap: 20px;
}

.t-hero-main { display: flex; flex-direction: column; gap: 8px; }

.t-hero-badge {
    align-self: flex-start;
    padding: 4px 10px; border-radius: 6px; font-size: 11px; font-weight: 800; text-transform: uppercase;
}
.t-hero-badge.announcement { background: #9b59b6; color: #fff; }
.t-hero-badge.registration { background: #2ecc71; color: #000; }
.t-hero-badge.preparation { background: #f1c40f; color: #000; }
.t-hero-badge.active { background: #e74c3c; color: #fff; animation: pulse 2s infinite; }
.t-hero-badge.completed { background: #95a5a6; color: #fff; }

.t-hero-title { margin: 0; font-size: 36px; font-weight: 900; color: #fff; text-shadow: 0 2px 10px rgba(0,0,0,0.5); }
.t-hero-game { color: var(--accent-color, #2C8FFF); font-weight: 600; font-size: 15px; }

.t-hero-stats { display: flex; gap: 20px; }
.hero-stat-box {
    background: rgba(0,0,0,0.5); border: 1px solid rgba(255,255,255,0.1);
    padding: 12px 20px; border-radius: 8px; backdrop-filter: blur(5px);
    display: flex; flex-direction: column; align-items: flex-end;
}
.hero-stat-box .stat-label { font-size: 11px; color: #aaa; text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 4px; }
.hero-stat-box .stat-value { font-size: 18px; font-weight: 800; color: #fff; }
.hero-stat-box .stat-value.prize { color: #f1c40f; }


.t-nav-tabs {
    display: flex;
    background: var(--card-bg, #1F1F1F);
    border: 1px solid var(--border-color, #333);
    border-top: none;
    border-radius: 0 0 12px 12px;
    margin-bottom: 30px;
    overflow-x: auto;
}

.t-tab {
    padding: 18px 25px;
    color: #888;
    text-decoration: none;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    transition: 0.2s;
    border-bottom: 3px solid transparent;
    display: flex; align-items: center; gap: 8px;
    white-space: nowrap;
}

.t-tab:hover { color: #fff; background: rgba(255,255,255,0.02); }
.t-tab.active { color: var(--accent-color, #2C8FFF); border-bottom-color: var(--accent-color, #2C8FFF); background: rgba(44, 143, 255, 0.05); }


.light-theme .t-nav-tabs { background: #ffffff; border-color: var(--border-color, #2C8FFF); }
.light-theme .t-tab { color: #666; }
.light-theme .t-tab:hover { background: #f8f9fa; color: #333; }
.light-theme .t-tab.active { background: rgba(44, 143, 255, 0.05); color: var(--accent-color, #2C8FFF); }


.t-content-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 25px;
}

@media (max-width: 900px) {
    .t-content-grid { grid-template-columns: 1fr; }
    .t-hero-content { flex-direction: column; align-items: flex-start; }
    .hero-stat-box { align-items: flex-start; width: 100%; }
}


.hltv-box {
    background: var(--card-bg, #1F1F1F);
    border: 1px solid var(--border-color, #333);
    border-radius: 8px;
    margin-bottom: 25px;
    overflow: hidden;
}

.hltv-box .box-header {
    background: rgba(0,0,0,0.2);
    padding: 15px 20px;
    font-size: 15px;
    font-weight: 800;
    color: #fff;
    border-bottom: 1px solid var(--border-color, #333);
    text-transform: uppercase;
}

.hltv-box .box-body { padding: 20px; }
.hltv-box .box-body.no-padding { padding: 0; }
.hltv-box .box-body.t-description { color: #ccc; font-size: 14px; line-height: 1.6; white-space: pre-wrap; }

.text-center { text-align: center; }


.light-theme .hltv-box { background: #ffffff; border-color: var(--border-color, #2C8FFF); }
.light-theme .hltv-box .box-header { background: #f8f9fa; color: #333; border-bottom-color: var(--border-light, #dce1e6); }
.light-theme .hltv-box .box-body.t-description { color: #555; }


.hltv-table { width: 100%; border-collapse: collapse; }
.hltv-table th { background: rgba(0,0,0,0.1); padding: 12px 15px; text-align: left; font-size: 12px; color: #888; text-transform: uppercase; }
.hltv-table td { padding: 15px; border-top: 1px solid var(--border-color, #333); font-size: 14px; }
.hltv-table tr:hover td { background: rgba(255,255,255,0.02); }


.light-theme .hltv-table th { background: #f8f9fa; color: #666; }
.light-theme .hltv-table td { border-top-color: var(--border-light, #dce1e6); }
.light-theme .hltv-table td img { border-color: rgba(0,0,0,0.1) !important; }


.timer-box .box-header { color: var(--accent-color, #2C8FFF); }
.countdown-display { 
    font-size: 32px; font-weight: 900; color: #fff; 
    font-family: inherit; letter-spacing: 2px; margin-bottom: 5px; 
}
.light-theme .countdown-display { color: #333; }

.prize-text { font-weight: 600; color: #fff; }
.light-theme .prize-text { color: #333; }

.countdown-labels { display: flex; justify-content: center; gap: 20px; color: #888; font-size: 11px; text-transform: uppercase; font-weight: 700; }
.countdown-labels span { width: 40px; text-align: center; }
.light-theme .countdown-labels { color: #666; }

.format-details .detail-row { display: flex; justify-content: space-between; padding: 12px 0; border-bottom: 1px dashed var(--border-color, #333); }
.format-details .detail-row:last-child { border-bottom: none; padding-bottom: 0; }
.detail-row .d-label { color: #888; font-size: 13px; font-weight: 600; }
.detail-row .d-value { color: #fff; font-size: 13px; font-weight: 700; text-align: right; }


.light-theme .detail-row { border-bottom-color: var(--border-light, #dce1e6); }
.light-theme .detail-row .d-label { color: #666; }
.light-theme .detail-row .d-value { color: #333; }


.tournament-action-btn {
    padding: 10px 18px; border-radius: 10px; border: none;
    font-size: 14px; font-weight: 600; cursor: pointer;
    transition: all 0.2s; display: flex; align-items: center; justify-content: center; 
    gap: 8px; font-family: inherit;
}
.tournament-action-btn.primary { background: var(--accent-color, #2C8FFF); color: #fff; }
.tournament-action-btn.primary:not(:disabled):hover { opacity: 0.9; transform: translateY(-2px); }
.full-width-btn { width: 100%; padding: 14px; font-size: 16px; }


.registration-action-box {
    padding: 20px;
    background: linear-gradient(135deg, rgba(44, 143, 255, 0.1) 0%, rgba(30, 30, 30, 1) 100%) !important;
}

.t-reg-btn {
    width: 100%; padding: 16px; border-radius: 10px; border: none;
    font-size: 15px; font-weight: 800; text-transform: uppercase;
    cursor: pointer; transition: 0.3s;
    display: flex; align-items: center; justify-content: center; gap: 10px; font-family: inherit;
}
.t-reg-btn.primary { background: var(--accent-color, #2C8FFF); color: white; box-shadow: 0 4px 15px rgba(44, 143, 255, 0.3); }
.t-reg-btn.primary:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(44, 143, 255, 0.5); }
.t-reg-btn.joined { background: #2ecc71; color: white; cursor: default; }
.t-reg-btn.disabled { background: #333; color: #777; cursor: not-allowed; }
.t-reg-btn.outline { background: transparent; border: 2px solid var(--accent-color, #2C8FFF); color: var(--accent-color, #2C8FFF); box-shadow: none; }
.t-reg-btn.outline:hover { background: rgba(44, 143, 255, 0.1); }

.reg-hint { font-size: 11px; color: #888; text-align: center; margin-top: 10px; font-style: italic; }


.modal-overlay {
    position: fixed; inset: 0; background: rgba(0, 0, 0, 0.8);
    display: flex; justify-content: center; align-items: center;
    z-index: 9999; backdrop-filter: blur(5px);
}
.modal-content {
    background: var(--card-bg, #1F1F1F); border: 1px solid var(--border-color, #2C8FFF);
    border-radius: 20px; padding: 35px 40px; box-shadow: 0 10px 40px rgba(0,0,0,0.5);
    animation: modalFadeIn 0.3s ease; position: relative; width: 100%;
}
@keyframes modalFadeIn { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }

.modal-close-btn {
    position: absolute; top: 20px; right: 20px; background: transparent; border: none;
    color: #888; font-size: 24px; cursor: pointer; transition: all 0.2s;
    width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; border-radius: 50%;
}
.modal-close-btn:hover { color: #e74c3c; background: rgba(231, 76, 60, 0.1); transform: rotate(90deg); }

.modal-header { margin-bottom: 25px; text-align: left; }
.modal-title { margin: 0; font-size: 24px; font-weight: 800; color: var(--text-color, #fff); display: flex; align-items: center; gap: 10px;}
.modal-subtitle { color: #888; font-size: 13px; margin: 5px 0 0 0; line-height: 1.4; text-align: center; }


.reg-warning-box {
    background: rgba(243, 156, 18, 0.1); border: 1px dashed rgba(243, 156, 18, 0.5);
    border-radius: 12px; padding: 18px; display: flex; gap: 15px; color: #f39c12; margin-bottom: 25px;
}
.reg-warning-box i { font-size: 28px; margin-top: 2px; }
.reg-warning-box strong { display: block; margin-bottom: 5px; font-size: 15px; }
.reg-warning-box p { margin: 0; font-size: 13px; color: #ccc; line-height: 1.5; }


.modal-rules-checkbox {
    display: flex; align-items: flex-start; gap: 12px;
    margin-bottom: 25px; text-align: left; font-size: 13px;
    color: #aaa; background: rgba(0,0,0,0.2); padding: 15px;
    border-radius: 12px; border: 1px solid var(--border-light, #333);
    cursor: pointer; transition: 0.2s;
}
.modal-rules-checkbox:hover { border-color: var(--accent-color, #2C8FFF); }
.modal-rules-checkbox input { margin-top: 2px; cursor: pointer; width: 16px; height: 16px; accent-color: var(--accent-color, #2C8FFF); }
.modal-rules-checkbox a { color: var(--accent-color, #2C8FFF); text-decoration: none; font-weight: 600; }
.modal-rules-checkbox a:hover { text-decoration: underline; }


.admin-modal-input {
    width: 100%; padding: 14px 15px; border-radius: 12px;
    border: 1px solid var(--border-color, #333);
    background: rgba(0,0,0,0.2); color: var(--text-color, #fff);
    margin-bottom: 25px; margin-top: 15px; outline: none; font-size: 16px; font-family: inherit;
    font-weight: 600; text-align: center; transition: 0.2s;
}
.admin-modal-input:focus { border-color: var(--accent-color, #2C8FFF); background: rgba(0,0,0,0.4); }
.input-label { text-align: left; margin-bottom: -10px; color: #888; font-size: 12px; padding-left: 5px; font-weight: 600; }

.light-theme .admin-modal-input { background: #f8f9fa; color: #222; border-color: #ccc; }
.light-theme .admin-modal-input:focus { background: #fff; border-color: var(--accent-color, #2C8FFF); }


.team-link { color: #fff; font-weight: 800; text-decoration: none; font-size: 15px; transition: color 0.2s; }
.team-link:hover { color: var(--accent-color, #2C8FFF) !important; }

.captain-cell { color: #ccc; font-weight: 600; }

.player-tag {
    display: flex; align-items: center; gap: 6px;
    background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 4px 10px; border-radius: 6px; font-size: 12px; color: #ddd;
    font-weight: 500; text-decoration: none; transition: all 0.2s;
}
.player-tag:hover { border-color: var(--accent-color, #2C8FFF); color: #fff; transform: translateY(-1px); }
.player-tag img { width: 16px; height: 16px; border-radius: 3px; image-rendering: pixelated; }


.light-theme .team-link { color: #333; }
.light-theme .captain-cell { color: #666; }
.light-theme .player-tag { background: #f0f2f5; border: 1px solid #dce1e6; color: #444; }
.light-theme .player-tag:hover { border-color: var(--accent-color, #2C8FFF); color: var(--accent-color, #2C8FFF); background: #fff; }


.matches-list { display: flex; flex-direction: column; gap: 15px; }

.match-card {
    background: var(--card-bg, #1F1F1F); border: 1px solid var(--border-color, #333);
    border-radius: 12px; padding: 20px; display: flex;
    justify-content: space-between; align-items: center;
    transition: 0.2s; position: relative; overflow: hidden;
}
.match-card:hover { border-color: var(--accent-color, #2C8FFF); }

.match-status-line { position: absolute; left: 0; top: 0; bottom: 0; width: 4px; }
.match-card.upcoming .match-status-line { background: #888; }
.match-card.active .match-status-line { background: #e74c3c; box-shadow: 0 0 10px #e74c3c; }
.match-card.completed .match-status-line { background: #2ecc71; }

.match-team { display: flex; align-items: center; gap: 15px; width: 35%; }
.match-team.right { justify-content: flex-end; flex-direction: row-reverse; text-align: right; }
.match-team-logo { width: 40px; height: 40px; border-radius: 8px; object-fit: cover; border: 1px solid rgba(255,255,255,0.1); }
.match-team-name { font-size: 16px; font-weight: 800; color: #fff; text-decoration: none; transition: 0.2s; }
.match-team-name:hover { color: var(--accent-color, #2C8FFF); }
.match-team-name.tbd { color: #666; font-style: italic; font-weight: 600; pointer-events: none; }

.match-center { width: 30%; display: flex; flex-direction: column; align-items: center; text-align: center; }
.match-meta-top { font-size: 12px; color: #888; font-weight: 700; text-transform: uppercase; margin-bottom: 8px; letter-spacing: 0.5px; }

.match-score-board {
    display: flex; align-items: center; gap: 15px;
    background: rgba(0,0,0,0.2); padding: 8px 20px;
    border-radius: 10px; border: 1px solid rgba(255,255,255,0.05);
}
.match-score { font-size: 24px; font-weight: 900; color: #fff; width: 25px; text-align: center; }
.match-score.winner { color: #2ecc71; }
.match-score.loser { color: #e74c3c; }
.match-vs { font-size: 13px; color: #666; font-weight: 800; }
.match-time { font-size: 18px; font-weight: 800; color: #fff; letter-spacing: 1px; }

.match-staff { display: flex; gap: 10px; margin-top: 10px; }
.staff-badge { font-size: 11px; padding: 4px 8px; border-radius: 6px; background: rgba(255,255,255,0.05); color: #aaa; font-weight: 600; display: flex; align-items: center; gap: 5px; }
.staff-badge i.fa-video { color: #9b59b6; }
.staff-badge i.fa-user-shield { color: #f1c40f; }


.light-theme .match-card { background: #fff; border-color: #eee; }
.light-theme .match-team-name { color: #222; }
.light-theme .matches-header h3 { color: #2c3e50 !important; }
.light-theme .matches-header p { color: #7f8c8d !important; }
.light-theme .match-score-board { background: #f8f9fa; border-color: #eee; }
.light-theme .match-score { color: #333; }
.light-theme .match-time { color: #222; }
.light-theme .staff-badge { background: #f0f0f0; color: #555; }

.bracket-fullscreen-breakout {
    width: 100vw; margin-left: calc(-50vw + 50%); padding: 0 40px;
    box-sizing: border-box; overflow-x: hidden;
}
@media (max-width: 768px) { .bracket-fullscreen-breakout { padding: 0 15px; } }

.bracket-wrapper {
    display: flex; overflow-x: auto; padding: 20px 0 40px 0; gap: 40px;
    cursor: grab; user-select: none;
}
.bracket-wrapper::before, .bracket-wrapper::after { content: ''; margin: auto; }
.bracket-wrapper::-webkit-scrollbar { height: 12px; }
.bracket-wrapper::-webkit-scrollbar-track { background: rgba(0, 0, 0, 0.2); border-radius: 6px; }
.bracket-wrapper::-webkit-scrollbar-thumb { background: var(--border-color, #444); border-radius: 6px; cursor: pointer; }
.bracket-wrapper::-webkit-scrollbar-thumb:hover { background: var(--accent-color, #2C8FFF); }
.bracket-wrapper.grabbing { cursor: grabbing !important; }


.bracket-section-title {
    color: #fff; font-size: 22px; font-weight: 900;
    margin: 40px auto 20px auto; padding-bottom: 10px;
    text-align: center; border-bottom: 2px solid var(--border-color, #333);
    width: fit-content;
}

.bracket-column { display: flex; flex-direction: column; min-width: 220px; position: relative; }

.bracket-round-title {
    text-align: center; color: var(--accent-color, #2C8FFF); font-weight: 800;
    font-size: 14px; margin-bottom: 15px; text-transform: uppercase; letter-spacing: 1px;
}

.bracket-matches { display: flex; flex-direction: column; flex-grow: 1; gap: 0; }
.b-match-wrapper {
    position: relative; width: 220px; display: flex; flex-direction: column;
    justify-content: center; flex-grow: 1; padding: 15px 0;
}

.b-match-header {
    position: absolute; top: -18px; left: 0; width: 100%;
    text-align: center; font-size: 11px; color: #888;
    font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; pointer-events: none;
}


.b-match {
    background: var(--card-bg, #1F1F1F);
    border: 1px solid var(--border-color, #333);
    border-radius: 8px !important;
    overflow: hidden !important;
    transform: translateZ(0);
    display: flex; flex-direction: column; position: relative;
    transition: 0.2s; z-index: 2;
}


.b-match.admin-editable:hover { border-color: var(--accent-color, #2C8FFF); cursor: pointer; transform: translateY(-2px); box-shadow: 0 5px 15px rgba(0,0,0,0.3); }
.b-match.admin-locked { cursor: not-allowed; }
.b-match.admin-locked:hover { border-color: #e74c3c; box-shadow: 0 0 10px rgba(231, 76, 60, 0.2); }

.b-match.is-live { border: 2px solid #e74c3c; box-shadow: 0 0 15px rgba(231, 76, 60, 0.4); animation: liveMatchPulse 2s infinite; }
@keyframes liveMatchPulse {
    0% { box-shadow: 0 0 10px rgba(231, 76, 60, 0.2); }
    50% { box-shadow: 0 0 25px rgba(231, 76, 60, 0.6); }
    100% { box-shadow: 0 0 10px rgba(231, 76, 60, 0.2); }
}
.live-indicator { color: #e74c3c; font-weight: 900; letter-spacing: 1px; animation: textPulse 2s infinite; }
@keyframes textPulse { 0% { opacity: 0.7; } 50% { opacity: 1; text-shadow: 0 0 5px rgba(231,76,60,0.5); } 100% { opacity: 0.7; } }


.b-team { 
    display: flex; align-items: center; padding: 8px 10px; 
    border-bottom: 1px solid rgba(255,255,255,0.05); 
    background: rgba(0,0,0,0.1); min-height: 37px; transition: 0.2s;
}
.b-team:last-child { border-bottom: none; }
.b-team img { width: 20px; height: 20px; border-radius: 4px; margin-right: 10px; object-fit: cover; }
.b-team-name { flex-grow: 1; font-size: 13px; font-weight: 700; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.b-score { font-weight: 900; font-size: 14px; color: #fff; background: rgba(0,0,0,0.3); padding: 2px 8px; border-radius: 4px; }
.match-number-badge { position: absolute; left: 5px; color: var(--border-color, #444); font-weight: 900; font-size: 10px; }


.bracket-column:not(:first-child) .b-match-wrapper::before {
    content: ''; position: absolute; left: -20px; top: 50%; width: 20px; height: 2px;
    background: var(--border-color, #444); z-index: 1;
}
.bracket-column:not(:last-child) .b-match-wrapper.merge-connect:nth-child(odd):not(:last-child)::after {
    content: ''; position: absolute; right: -20px; top: 50%; width: 20px; height: 50%;
    border-top: 2px solid var(--border-color, #444); border-right: 2px solid var(--border-color, #444);
    border-top-right-radius: 4px; z-index: 1;
}
.bracket-column:not(:last-child) .b-match-wrapper.merge-connect:nth-child(even)::after {
    content: ''; position: absolute; right: -20px; top: 0; width: 20px; height: 50%;
    border-bottom: 2px solid var(--border-color, #444); border-right: 2px solid var(--border-color, #444);
    border-bottom-right-radius: 4px; z-index: 1;
}
.bracket-column:not(:last-child) .b-match-wrapper.straight-connect::after,
.bracket-column:not(:last-child) .b-match-wrapper.merge-connect:nth-child(odd):last-child::after {
    content: ''; position: absolute; right: -20px; top: 50%; width: 20px; height: 2px;
    background: var(--border-color, #444); border: none; border-radius: 0; z-index: 1;
}
.bracket-column.hide-connectors .b-match-wrapper::before,
.bracket-column.hide-connectors .b-match-wrapper::after { display: none !important; }



.b-team.winner { background: rgba(46, 204, 113, 0.1); border-left: 3px solid #2ecc71; padding-left: 7px; }
.b-team.winner .b-score { color: #2ecc71; }

.b-team.loser-eliminated { background: rgba(231, 76, 60, 0.05); border-left: 3px solid #e74c3c; padding-left: 7px; }
.b-team.loser-eliminated .b-team-name { color: #888; }
.b-team.loser-eliminated .b-score { background: rgba(231, 76, 60, 0.15); color: #e74c3c; }
.b-team.loser-eliminated img { opacity: 0.5; filter: grayscale(100%); }

.b-team.loser-dropped { background: rgba(241, 196, 15, 0.05); border-left: 3px solid #f1c40f; padding-left: 7px; }
.b-team.loser-dropped .b-team-name { color: #aaa; }
.b-team.loser-dropped .b-score { background: rgba(241, 196, 15, 0.15); color: #f1c40f; }


.rank-badge { margin-left: 8px; font-size: 10px; font-weight: 900; padding: 2px 6px; border-radius: 4px; text-transform: uppercase; box-shadow: 0 2px 5px rgba(0,0,0,0.2); }
.b-team.rank-1 .b-team-name { color: #f1c40f !important; text-shadow: 0 0 10px rgba(241, 196, 15, 0.3); }
.b-team.rank-1 .rank-badge { background: #f1c40f; color: #000; content: "TOP 1"; }
.b-team.rank-2 .b-team-name { color: #bdc3c7 !important; }
.b-team.rank-2 .rank-badge { background: #bdc3c7; color: #000; content: "TOP 2"; }
.b-team.rank-3 .b-team-name { color: #d35400 !important; }
.b-team.rank-3 .rank-badge { background: #d35400; color: #fff; content: "TOP 3"; }


.light-theme .bracket-fullscreen-breakout,
.light-theme .bracket-wrapper,
.light-theme .bracket-column { background: transparent !important; border: none !important; box-shadow: none !important; }

.light-theme .b-match {
    background: #ffffff !important;
    border: 1px solid var(--accent-color, #2C8FFF) !important;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}
.light-theme .b-match:hover { box-shadow: 0 6px 15px rgba(44, 143, 255, 0.25); }


.light-theme .b-match-wrapper::before,
.light-theme .b-match-wrapper::after,
.light-theme .straight-connect::before { border-color: var(--accent-color, #2C8FFF) !important; opacity: 1 !important; border-width: 2px !important; }
.light-theme .bracket-column .b-match-wrapper.merge-connect:nth-child(odd):not(:last-child)::after,
.light-theme .bracket-column .b-match-wrapper.merge-connect:nth-child(even)::after { border-color: var(--accent-color, #2C8FFF) !important; }


.light-theme .b-team { background: transparent !important; border-bottom: 1px solid #f0f0f0; color: #333; box-shadow: none !important; }
.light-theme .b-team:last-child { border-bottom: none; }
.light-theme .b-team-name { font-weight: 700; color: #2c3e50; }
.light-theme .b-score { background: #f1f3f5; color: #2c3e50; }
.light-theme .match-number-badge { color: #888; }
.light-theme .bracket-section-title { color: var(--accent-color, #2C8FFF) !important; border-bottom-color: var(--accent-color, #2C8FFF) !important; text-shadow: none !important; }
.light-theme .bracket-round-title { color: var(--accent-color, #2C8FFF) !important; text-shadow: none !important; font-weight: 700; }
.light-theme .b-match-header { color: #95a5a6; text-shadow: none; }


.light-theme .b-team.winner { background: rgba(46, 204, 113, 0.1) !important; border-left: 3px solid #2ecc71; }
.light-theme .b-team.winner .b-score { color: #27ae60; background: #d5f5e3; }

.light-theme .b-team.loser-eliminated { background: rgba(231, 76, 60, 0.08) !important; border-left: 3px solid #e74c3c; }
.light-theme .b-team.loser-eliminated .b-score { color: #c0392b; background: #fadbd8; }
.light-theme .b-team.loser-eliminated .b-team-name { color: #999; text-decoration: none; }

.light-theme .b-team.loser-dropped { background: rgba(241, 196, 15, 0.1) !important; border-left: 3px solid #f1c40f; }
.light-theme .b-team.loser-dropped .b-score { color: #d4ac0d; background: #fcf3cf; }


.bracket-filter-wrapper { position: relative; display: flex; align-items: center; }
.bracket-filter-wrapper::after {
    content: '\f107'; font-family: "Font Awesome 5 Free"; font-weight: 900;
    position: absolute; right: 12px; top: 50%; transform: translateY(-50%);
    color: var(--accent-color, #e67e22); pointer-events: none; font-size: 12px;
}

.bracket-filter-select {
    appearance: none; -webkit-appearance: none; -moz-appearance: none;
    background: var(--card-bg, #1F1F1F); color: #fff;
    border: 1px solid var(--border-color, #444); padding: 8px 35px 8px 15px;
    border-radius: 8px; font-size: 13px; font-weight: 600; font-family: inherit;
    cursor: pointer; outline: none; transition: 0.2s; box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}
.bracket-filter-select:hover { border-color: var(--accent-color, #e67e22); box-shadow: 0 4px 12px rgba(230, 126, 34, 0.2); }
.bracket-filter-select option { background: #1F1F1F; color: #fff; padding: 10px; }

.light-theme .bracket-filter-select { background: #fff; color: #333; border: 1px solid var(--accent-color, #2C8FFF); box-shadow: 0 2px 5px rgba(0,0,0,0.05); }
.light-theme .bracket-filter-wrapper::after { color: var(--accent-color, #2C8FFF); }




.winner-row-1 {
    background: linear-gradient(90deg, rgba(241, 196, 15, 0.15) 0%, rgba(241, 196, 15, 0.02) 100%) !important;
    border-left: 3px solid #f1c40f !important;
}


.winner-row-2 {
    background: linear-gradient(90deg, rgba(189, 195, 199, 0.15) 0%, rgba(189, 195, 199, 0.02) 100%) !important;
    border-left: 3px solid #bdc3c7 !important;
}


.winner-row-3 {
    background: linear-gradient(90deg, rgba(211, 84, 0, 0.15) 0%, rgba(211, 84, 0, 0.02) 100%) !important;
    border-left: 3px solid #d35400 !important;
}


.place-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    margin-right: 8px;
    font-size: 15px;
    filter: drop-shadow(0 0 5px rgba(0,0,0,0.5));
}


.stage-divider {
    display: flex;
    align-items: center;
    margin: 40px 0 20px 0;
    text-transform: uppercase;
    color: var(--accent-color, #e67e22);
    font-weight: 700;
    font-size: 14px;
    letter-spacing: 1.5px;
}
.stage-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, var(--accent-color, #e67e22), transparent);
    margin-left: 15px;
    opacity: 0.5;
}


.match-item::before {
    content: '';
    position: absolute;
    left: 0; top: 0; bottom: 0;
    width: 4px;
    border-radius: 6px 0 0 6px;
    background: #7f8c8d; 
}
.match-item.has-date::before { background: #2C8FFF; box-shadow: 0 0 8px rgba(44, 143, 255, 0.4); }
.match-item.live::before { background: #e74c3c; box-shadow: 0 0 8px rgba(231, 76, 60, 0.5); }
.match-item.completed::before { background: #2ecc71; }


.match-side { flex: 1; display: flex; align-items: center; gap: 15px; width: 40%; }
.match-side.left { justify-content: flex-end; text-align: right; }
.match-side.right { justify-content: flex-start; text-align: left; }

.match-side img { width: 32px; height: 32px; object-fit: contain; }

.team-name {
    font-weight: 700;
    color: #ecf0f1;
    font-size: 14px;
    text-decoration: none;
    transition: 0.2s;
}
.team-name:hover { color: var(--accent-color, #e67e22); }
.team-name.tbd { color: #7f8c8d; font-style: italic; font-weight: 400; }

.tbd-avatar {
    width: 32px; height: 32px;
    background: rgba(255,255,255,0.05);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: #666; font-weight: bold; font-size: 14px;
}


.match-center {
    flex: 0 0 120px;
    display: flex; flex-direction: column; align-items: center; margin: 0 15px;
}

.match-meta-top { font-size: 10px; color: #95a5a6; margin-bottom: 2px; display: flex; gap: 5px; align-items: center; }
.match-format { font-weight: 700; text-transform: uppercase; }
.live-badge { background: #e74c3c; color: #fff; padding: 1px 4px; border-radius: 3px; font-weight: 800; }

.match-score-box {
    font-family: 'Montserrat', sans-serif;
    font-size: 22px; font-weight: 800; color: #fff; letter-spacing: 1px;
}
.score.win { color: #2ecc71; }
.divider { color: #555; margin: 0 4px; }

.match-date { font-size: 11px; color: #7f8c8d; margin-top: 2px; }


.match-settings-btn {
    position: absolute; right: 10px; top: 10px;
    background: none; border: none; color: #444;
    cursor: pointer; font-size: 14px; transition: 0.2s;
}
.match-settings-btn:hover { color: #fff; }

.light-theme .team-name { color: #2c3e50; }
.light-theme .team-name.tbd { color: #95a5a6; }
.light-theme .tbd-avatar { background: #f0f2f5; color: #bdc3c7; }

.light-theme .match-score-box { color: #2c3e50; }
.light-theme .divider { color: #bdc3c7; }
.light-theme .match-date { color: #7f8c8d; }

.light-theme .match-settings-btn { color: #bdc3c7; }
.light-theme .match-settings-btn:hover { color: var(--accent-color, #2980b9); }

.modal-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.2s ease;
}

.modal-window {
    background: #2a2a2a; 
    width: 100%;
    max-width: 450px;
    border-radius: 12px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.08);
    animation: slideUp 0.3s ease;
}


.modal-header {
    background: rgba(0,0,0,0.2);
    padding: 15px 20px;
    display: flex; justify-content: space-between; align-items: center;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}
.modal-header h3 { margin: 0; font-size: 16px; color: #fff; font-weight: 600; }
.close-modal {
    cursor: pointer; font-size: 24px; color: #777; transition: 0.2s; line-height: 1;
}
.close-modal:hover { color: #fff; }


.modal-body { padding: 20px; }


.form-group { margin-bottom: 15px; }
.form-group label {
    display: block; font-size: 12px; color: #95a5a6; margin-bottom: 6px; font-weight: 600;
}
.form-row { display: flex; gap: 15px; }
.form-row .form-group { flex: 1; }

.hltv-input {
    width: 100%;
    background: #2a2a2a;
    border: 1px solid #333;
    color: #fff;
    padding: 10px 12px;
    border-radius: 6px;
    font-size: 14px;
    outline: none;
    transition: 0.2s;
}
.hltv-input:focus {
    border-color: var(--accent-color, #e67e22);
    box-shadow: 0 0 0 3px rgba(230, 126, 34, 0.1);
}


.modal-btn {
    border: none; padding: 12px; border-radius: 6px;
    font-weight: 700; cursor: pointer; text-transform: uppercase; font-size: 13px;
    transition: 0.2s;
}
.modal-btn.primary {
    background: var(--accent-color, #e67e22); color: #fff;
}
.modal-btn.primary:hover { filter: brightness(1.1); }
.modal-btn.full-width { width: 100%; margin-top: 10px; }


.light-theme .modal-window {
    background: #ffffff;
    border: 1px solid #e0e0e0;
    box-shadow: 0 20px 50px rgba(0,0,0,0.15);
}
.light-theme .modal-header { background: #f8f9fa; border-bottom-color: #eee; }
.light-theme .modal-header h3 { color: #333; }
.light-theme .hltv-input {
    background: #fff;
    border-color: #ddd;
    color: #333;
}
.light-theme .hltv-input:focus { border-color: var(--accent-color, #2980b9); }



@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes slideUp { from { transform: translateY(20px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }




.stage-divider {
    font-family: 'Montserrat', sans-serif; 
    display: flex;
    align-items: center;
    margin: 30px 0 15px 0;
    text-transform: uppercase;
    color: var(--accent-color, #e67e22);
    font-weight: 800;
    font-size: 14px;
    letter-spacing: 1px;
}
.stage-divider::after {
    content: '';
    flex: 1;
    height: 2px; 
    background: linear-gradient(90deg, var(--accent-color, #e67e22), transparent);
    margin-left: 15px;
    opacity: 0.3;
}


.match-item {
    font-family: inherit !important; 
    position: relative;
    background: #363636; 
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: 6px;
    padding: 12px 20px;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: all 0.2s ease;
}

.match-item:hover {
    background: #333333; 
    border-color: rgba(255,255,255,0.15);
    transform: translateY(-1px);
}


.match-score-box {
    font-family: 'Montserrat', sans-serif; 
    font-size: 22px; 
    font-weight: 800; 
    color: #fff; 
    letter-spacing: 1px;
}


.hltv-input, .modal-header h3, .form-group label {
    font-family: 'Montserrat', sans-serif;
}


.light-theme .match-item {
    background: #e0e0e0;
    border: 1px solid #e0e0e0;
}
.light-theme .match-item:hover {
    background: #f8f9fa;
}

.matches-list-container,
.stage-divider,
.match-item,
.team-name,
.match-score-box,
.match-meta-top,
.match-date,
.match-format,
.empty-state h3,
.empty-state p {
    font-family: inherit !important; 
}


.modal-window,
.modal-header h3,
.form-group label,
.hltv-input,
.modal-btn,
select,
input,
button,
textarea {
    font-family: inherit !important; 
}




#edit-match-modal .hltv-modal-box {
    width: 1000px !important;    
    max-width: 95vw;             
    display: flex;
    flex-direction: column;
}


#edit-match-modal select[multiple] {
    height: 250px !important;    
    background-color: #292929;   
    border: 1px solid #34495e;
    color: #ecf0f1;
    padding: 10px;
}

#edit-match-modal select[multiple] option {
    padding: 8px 12px;
    margin-bottom: 2px;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.2s;
}

#edit-match-modal select[multiple] option:checked {
    background: linear-gradient(90deg, #d35400, #e67e22) !important; 
    color: white;
    font-weight: bold;
}

#edit-match-modal select[multiple] option:hover {
    background-color: rgba(255, 255, 255, 0.05);
}


#edit-match-modal select[multiple]::-webkit-scrollbar {
    width: 8px;
}

#edit-match-modal select[multiple]::-webkit-scrollbar-track {
    background: #0f1419;
    border-radius: 4px;
}

#edit-match-modal select[multiple]::-webkit-scrollbar-thumb {
    background: #34495e;
    border-radius: 4px;
    border: 1px solid #0f1419;
}

#edit-match-modal select[multiple]::-webkit-scrollbar-thumb:hover {
    background: #e67e22; 
}


#edit-match-modal .modal-window {
    width: 900px !important; 
    max-width: 95vw;
}


#edit-match-modal select[multiple] {
    height: 250px !important; 
    padding: 10px;
    font-family: 'Montserrat', sans-serif;
}


#edit-match-modal select::-webkit-scrollbar {
    width: 8px;
}
#edit-match-modal select::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.1);
    border-radius: 4px;
}
#edit-match-modal select::-webkit-scrollbar-thumb {
    background: var(--accent-color);
    border-radius: 4px;
}


.modal-grid-row {
    display: grid; grid-template-columns: 1fr 1fr; gap: 15px; margin-bottom: 15px;
}

.vw-ids-wrapper {
    display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px;
    padding: 8px; background: rgba(0,0,0,0.2); border-radius: 6px; min-height: 40px;
}
.vw-id-tag {
    background: #2980b9; color: white; padding: 4px 8px;
    border-radius: 4px; font-size: 13px; display: flex; align-items: center; gap: 6px;
}
.vw-id-remove { cursor: pointer; color: #ffcccc; font-weight: bold; }
.vw-id-remove:hover { color: white; }


.save-btn {
    background: #27ae60; color: #fff; border: none; width: 100%;
    padding: 12px; font-weight: 700; font-size: 14px; text-transform: uppercase;
    border-radius: 6px; cursor: pointer; transition: background 0.2s;
    margin-top: 10px; letter-spacing: 0.5px;
}
.save-btn:hover { background: #219150; }


.match-id-copy-box {
    background: rgba(255, 255, 255, 0.05);
    border: 1px dashed rgba(255, 255, 255, 0.2);
    padding: 8px 12px;
    border-radius: 6px;
    margin-bottom: 20px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.2s;
}
.match-id-copy-box:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.4);
}
.match-id-copy-box span { font-family: monospace; color: #aaa; font-size: 14px; }
.match-id-copy-box strong { font-family: monospace; color: #fff; font-size: 15px; letter-spacing: 1px; }
.match-id-copy-box i { color: #aaa; font-size: 14px; }
.match-id-copy-box:active { transform: scale(0.98); }

.match-hero-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(to bottom, #1e2328, #15191d);
    padding: 30px;
    border-radius: 8px;
    margin-bottom: 20px;
    border: 1px solid rgba(255,255,255,0.05);
}

.mh-team {
    text-align: center;
    flex: 1;
}

.mh-team.winner .mh-score { color: #2ecc71; text-shadow: 0 0 15px rgba(46, 204, 113, 0.3); }
.mh-team.winner .mh-name { color: #fff; }

.mh-name {
    font-size: 18px;
    font-weight: 700;
    color: #bbb;
    margin-top: 5px;
}

.mh-score {
    font-size: 48px;
    font-weight: 800;
    line-height: 1;
    color: #fff;
}

.mh-info {
    text-align: center;
    padding: 0 40px;
}

.mh-vs {
    font-size: 24px;
    font-weight: 900;
    color: #444;
    margin: 5px 0;
}

.mh-status {
    background: #333;
    color: #aaa;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 11px;
    text-transform: uppercase;
    display: inline-block;
}

.mh-date, .mh-meta {
    color: #666;
    font-size: 13px;
    margin-top: 4px;
}


.watch-stream-btn {
    display: inline-block;
    background: #c4302b;
    color: white;
    padding: 10px 20px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: background 0.2s;
}
.watch-stream-btn:hover { background: #e03832; color: white; }


.game-card {
    margin-bottom: 30px;
    border: 1px solid rgba(255,255,255,0.05);
}

.game-header {
    background: #1a1e22;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.map-name { font-weight: 700; color: #fff; margin-right: 15px; }
.game-duration { color: #777; font-size: 13px; }
.winner-label { font-weight: 700; padding: 2px 6px; border-radius: 3px; font-size: 11px; }
.winner-label.red { color: #ff6b6b; background: rgba(255, 107, 107, 0.1); }
.winner-label.blue { color: #54a0ff; background: rgba(84, 160, 255, 0.1); }


.match-stats-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.match-stats-table th {
    background: #15181c;
    color: #6d7279;
    font-weight: 600;
    text-transform: uppercase;
    padding: 12px 15px;
    text-align: left;
    font-size: 11px;
    letter-spacing: 0.5px;
}

.match-stats-table td {
    padding: 10px 15px;
    border-bottom: 1px solid rgba(255,255,255,0.02);
    color: #ccc;
    vertical-align: middle;
}


.team-divider { font-weight: 700; font-size: 11px; letter-spacing: 1px; text-transform: uppercase; }
.team-divider td { padding: 8px 15px; background: rgba(0,0,0,0.2); }
.team-divider.red { color: #e74c3c; border-left: 3px solid #e74c3c; }
.team-divider.blue { color: #3498db; border-left: 3px solid #3498db; }


.player-row:hover { background: rgba(255,255,255,0.02); }
.player-row.red.winner-row { background: linear-gradient(90deg, rgba(231, 76, 60, 0.05) 0%, transparent 100%); }
.player-row.blue.winner-row { background: linear-gradient(90deg, rgba(52, 152, 219, 0.05) 0%, transparent 100%); }


.p-info { display: flex; align-items: center; gap: 10px; }
.p-avatar { width: 32px; height: 32px; border-radius: 4px; background: #111; }
.p-details { display: flex; flex-direction: column; }
.p-nick { color: #fff; font-weight: 600; text-decoration: none; font-size: 13px; }
.p-nick:hover { text-decoration: underline; }
.p-guild { font-size: 10px; color: #666; }


.col-kda { font-weight: 600; letter-spacing: 0.5px; font-family: monospace; font-size: 13px; }
.kills { color: #2ecc71; } 
.deaths { color: #e74c3c; }
.col-kd { color: #bbb; font-weight: 700; }


.res-icon { 
    display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 4px; 
}
.res-icon.gold { background: #f1c40f; }
.res-icon.iron { background: #bdc3c7; }
.res-icon.bronze { background: #d35400; }

.col-res { color: #ddd; font-variant-numeric: tabular-nums; }


.bed-icon.active { color: #2ecc71; font-weight: bold; }
.bed-icon { color: #444; }


.rank-badge { 
    font-size: 10px; padding: 2px 4px; border-radius: 3px; font-weight: bold; text-transform: uppercase;
    display: inline-block; min-width: 50px; text-align: center;
}
.rank-badge.PLAYER { color: #aaa; background: rgba(255,255,255,0.05); }
.rank-badge.VIP { color: #00be00; background: rgba(0, 190, 0, 0.1); }
.rank-badge.PREMIUM { color: #00dada; background: rgba(0, 218, 218, 0.1); }
.rank-badge.HOLY { color: #ffba2d; background: rgba(255, 186, 45, 0.1); }
.rank-badge.IMMORTAL { color: #e800d8; background: rgba(232, 0, 216, 0.1); }
.rank-badge.ADMIN, .rank-badge.CHIEF, .rank-badge.MODER { color: #00aaab; background: rgba(0, 170, 171, 0.1); }
.rank-badge.DEV { color: #00aaaa; text-shadow: 0 0 5px #00aaaa; }

.text-center { text-align: center; }

.match-center {
        flex: 0 1 auto !important;
        min-width: 150px;
        max-width: 250px;
    }


.match-item {
    overflow: visible !important;
}


.staff-side {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 6px;
    z-index: 10;
}


.staff-side.side-left {
    left: -38px;
}

.staff-side.side-right {
    right: -38px;
}


.staff-badge {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #1a252f;
    font-size: 11px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
    cursor: default;
}

.staff-badge:hover {
    transform: scale(1.15);
}


.staff-badge.org {
    border: 2px solid #1abc9c; 
    color: #1abc9c;
}
.staff-badge.org:hover {
    box-shadow: 0 0 10px rgba(26, 188, 156, 0.6);
    background: rgba(26, 188, 156, 0.15);
}


.staff-badge.streamer {
    border: 2px solid #e74c3c; 
    color: #e74c3c;
}
.staff-badge.streamer:hover {
    box-shadow: 0 0 10px rgba(231, 76, 60, 0.6);
    background: rgba(231, 76, 60, 0.15);
}


.match-staff-col {
    flex: 0 0 150px !important; 
    width: 150px !important;
    max-width: 160px !important;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    z-index: 2;
}


.match-staff-col.left {
    text-align: left;
    padding-left: 5px;
    margin-right: 10px; 
}
.match-staff-col.right {
    text-align: right;
    align-items: flex-end;
    padding-right: 45px; 
    margin-left: 10px;  
}


.staff-header {
    font-size: 10px;
    text-transform: uppercase;
    font-weight: 800;
    margin-bottom: 4px;
    letter-spacing: 0.5px;
}
.org-header { color: rgb(19, 127, 141); } 
.str-header { color: rgb(255, 0, 0); }  


.staff-name {
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis; 
    max-width: 100%;
    line-height: 1.4;
}
.org-name { color: #198ebd; } 
.str-name { color: #e74c3c; } 


.light-theme .org-header { color: rgb(26, 83, 188); }
.light-theme .str-header { color: rgb(255, 0, 0); }
.light-theme .org-name { color: #198ebd; }
.light-theme .str-name { color: #c0392b; }


.match-side { width: auto; }




.edit-bracket-btn {
    color: rgba(189, 195, 199, 0.5) !important; 
    background: transparent !important;
    border: none;
    transition: all 0.2s ease;
    cursor: pointer;
}


.edit-bracket-btn:hover {
    color: #ffffff !important; 
    transform: scale(1.15); 
}


.light-theme .edit-bracket-btn {
    color: rgba(127, 140, 141, 0.6) !important; 
}

.light-theme .edit-bracket-btn:hover {
    color: #2c3e50 !important; 
}


.light-theme .registration-action-box {
    background: linear-gradient(135deg, rgba(44, 143, 255, 0.05) 0%, #f0f2f5 100%) !important;
}

.light-theme .t-reg-btn.disabled {
    background: #e9ecef;
    color: #7f8c8d;
    border: 1px solid #dce1e6;
}

.light-theme .reg-hint {
    color: #7f8c8d;
}


.light-theme .match-stats-table th { 
    background: #f0f2f5; 
    color: #555; 
}
.light-theme .match-stats-table td { 
    color: #333; 
    border-bottom: 1px solid #eee; 
}
.light-theme .col-kd { 
    color: #555; 
}
.light-theme .col-res { 
    color: #444; 
}
.light-theme .bed-icon { 
    color: #95a5a6; 
}
.light-theme .p-nick { 
    color: #2c3e50; 
}


.light-theme .rank-color-player { 
    color: #7f8c8d !important; 
}


.light-theme .hltv-box.map-box .box-header {
    background: #e4e9f0 !important; 
    color: #2c3e50 !important;      
}


.light-theme .hltv-box.map-box .box-header strong {
    color: #222 !important; 
}


.light-theme .hltv-box.map-box .box-header span {
    color: #666 !important;
}


.light-theme .bed-icon.active {
    color: #2ecc71 !important; 
}


@keyframes fadeSlideUpTour {
    0% { opacity: 0; transform: translateY(20px); }
    100% { opacity: 1; transform: translateY(0); }
}


.tournament-action-btn:active, .t-reg-btn:active, .t-tab:active {
    transform: scale(0.96) !important;
}


.b-team img {
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.b-match:hover .b-team img {
    transform: scale(1.2) rotate(-5deg);
}


.t-reg-btn.primary { position: relative; overflow: hidden; }
.t-reg-btn.primary::after {
    content: ''; position: absolute; top: 0; left: -100%; width: 50%; height: 100%;
    background: linear-gradient(to right, rgba(255,255,255,0), rgba(255,255,255,0.2), rgba(255,255,255,0));
    transform: skewX(-25deg); transition: 0.5s;
}
.t-reg-btn.primary:hover::after { left: 150%; }


/* ── Дополнительные призы ─────────────────────────────────────────────── */
.extra-rewards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    padding: 16px;
}

.extra-reward-card {
    background: rgba(155, 89, 182, 0.05);
    border: 1px solid rgba(155, 89, 182, 0.2);
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: all 0.2s ease;
    position: relative;
}

.extra-reward-card:hover {
    border-color: rgba(155, 89, 182, 0.5);
    box-shadow: 0 6px 20px rgba(155, 89, 182, 0.15);
    transform: translateY(-2px);
}

/* Квадратная зона картинки */
.extra-reward-viewer {
    width: 100%;
    aspect-ratio: 1 / 1;
    background:
        radial-gradient(circle at center, rgba(155, 89, 182, 0.12), rgba(0, 0, 0, 0.4));
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.extra-reward-image {
    max-width: 85%;
    max-height: 85%;
    object-fit: contain;
    image-rendering: pixelated;
    image-rendering: -moz-crisp-edges;
    image-rendering: crisp-edges;
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.5));
}

/* Адаптив — на мобильных по 2 в ряд */
@media (max-width: 720px) {
    .extra-rewards-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
        padding: 12px;
    }
}

@media (max-width: 480px) {
    .extra-rewards-grid {
        grid-template-columns: 1fr;
    }
}

.extra-reward-info {
    padding: 12px 14px;
}

.extra-reward-title {
    margin: 0 0 6px 0;
    font-size: 14px;
    font-weight: 700;
    color: #fff;
    line-height: 1.3;
}

.extra-reward-desc {
    margin: 0;
    font-size: 12px;
    color: #aaa;
    line-height: 1.4;
}

.extra-reward-delete {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 28px;
    height: 28px;
    border-radius: 6px;
    border: none;
    background: rgba(231, 76, 60, 0.85);
    color: #fff;
    font-size: 11px;
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.2s;
    z-index: 5;
}

.extra-reward-card:hover .extra-reward-delete {
    opacity: 1;
}

.extra-reward-delete:hover {
    background: #e74c3c;
}

/* Светлая тема */
.light-theme .extra-reward-card {
    background: rgba(155, 89, 182, 0.04);
    border-color: rgba(155, 89, 182, 0.25);
}

.light-theme .extra-reward-title { color: #2c3e50; }
.light-theme .extra-reward-desc { color: #666; }
