/* ============================================
   Brazilian Dynasty — Public Bracket Viewer Styles
   Matches the main tournament site design
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=Outfit:wght@400;500;600;700;800;900&display=swap');

:root {
    --bg-primary: #0a0e1c;
    --bg-secondary: #0f1428;
    --bg-tertiary: #141a30;
    --bg-card: rgba(15, 20, 40, 0.85);
    --bg-card-hover: rgba(20, 26, 48, 0.95);
    --accent-coral: #ff4d4d;
    --accent-coral-hover: #ff6b6b;
    --accent-gold: #d4a017;
    --accent-gold-light: #f0c040;
    --accent-gold-dim: rgba(212, 160, 23, 0.15);
    --accent-green: #34d399;
    --text-primary: #ffffff;
    --text-secondary: #b0b8d0;
    --text-muted: #6b7394;
    --border-subtle: rgba(255, 255, 255, 0.06);
    --border-gold: rgba(212, 160, 23, 0.3);
    --shadow-card: 0 8px 32px rgba(0, 0, 0, 0.4);
    --shadow-glow: 0 0 40px rgba(212, 160, 23, 0.1);
    --transition-fast: 0.2s ease;
    --transition-medium: 0.3s ease;
}

/* ---- Light Mode Theme Override ---- */
body.light-mode {
    --bg-primary: #f0f2f5;
    --bg-secondary: #ffffff;
    --bg-tertiary: #e8eaef;
    --bg-card: rgba(255, 255, 255, 0.92);
    --bg-card-hover: rgba(245, 246, 250, 0.98);
    --accent-coral: #e63946;
    --accent-coral-hover: #ff4d5a;
    --accent-gold: #b8860b;
    --accent-gold-light: #daa520;
    --accent-gold-dim: rgba(184, 134, 11, 0.1);
    --accent-green: #059669;
    --text-primary: #1a1a2e;
    --text-secondary: #2a2a40;
    --text-muted: #555570;
    --border-subtle: rgba(0, 0, 0, 0.08);
    --border-gold: rgba(184, 134, 11, 0.25);
    --shadow-card: 0 4px 20px rgba(0, 0, 0, 0.08);
    --shadow-glow: 0 0 30px rgba(184, 134, 11, 0.06);
}

body.light-mode .site-nav {
    background: rgba(255, 255, 255, 0.95);
    border-bottom-color: rgba(0, 0, 0, 0.06);
}

body.light-mode .nav-left h1 {
    background: linear-gradient(135deg, var(--accent-gold-light), var(--accent-gold));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

body.light-mode .nav-link { color: var(--text-secondary); }
body.light-mode .nav-link:hover { color: var(--accent-gold); }

body.light-mode .lang-switcher-btn,
body.light-mode #langBtn { color: var(--text-primary) !important; border-color: rgba(0,0,0,0.12) !important; }
body.light-mode #langDropdown { background: #fff !important; border-color: rgba(0,0,0,0.1) !important; }
body.light-mode .lang-option { color: var(--text-primary) !important; }
body.light-mode .lang-option:hover { background: rgba(0,0,0,0.04) !important; }
body.light-mode .lang-option.active { background: rgba(184,134,11,0.08) !important; color: var(--accent-gold) !important; }

body.light-mode .results-ticker-wrapper::before { background: linear-gradient(90deg, var(--bg-primary), transparent); }
body.light-mode .results-ticker-wrapper::after { background: linear-gradient(270deg, var(--bg-primary), transparent); }

body.light-mode .sim-modal-overlay { background: rgba(0, 0, 0, 0.4); }
body.light-mode .sim-modal-box { background: var(--bg-secondary); }

body.light-mode .share-modal-overlay { background: rgba(0, 0, 0, 0.5); }
body.light-mode .share-modal-box { background: var(--bg-secondary); }

/* Upcoming Matches Panel */
body.light-mode .upcoming-schedule-wrapper {
    background: var(--bg-secondary);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

/* Bracket sections */
body.light-mode .all-bracket-section {
    background: var(--bg-secondary);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

body.light-mode .all-bracket-header {
    color: var(--text-primary);
}

/* Page hero */
body.light-mode .page-hero {
    background: linear-gradient(180deg, rgba(184, 134, 11, 0.06) 0%, transparent 100%);
}

/* Bracket match cards */
body.light-mode .bracket-match {
    background: var(--bg-card);
    border-color: var(--border-subtle);
}

/* Score modal */
body.light-mode .sim-score-btn {
    background: var(--bg-tertiary);
    color: var(--text-primary);
    border-color: var(--border-subtle);
}

/* Scroll buttons */
body.light-mode .upcoming-scroll-btn {
    background: var(--bg-secondary);
    color: var(--text-secondary);
    border-color: var(--border-subtle);
}

/* Footer */
body.light-mode .bracket-footer {
    background: var(--bg-secondary);
    border-top-color: var(--border-subtle);
}
body.light-mode .bracket-footer a { color: var(--accent-gold); }

/* Draw date badge */
body.light-mode .draw-date {
    background: var(--accent-gold-dim);
    color: var(--accent-gold);
}

/* Champion/qualified cards */
body.light-mode .champion-card {
    background: var(--bg-secondary);
    border-color: var(--border-gold);
}

/* Seeding cards in light mode */
body.light-mode .seeding-table td,
body.light-mode .player-list-item {
    border-color: var(--border-subtle);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
}

a { color: var(--accent-coral); text-decoration: none; transition: color var(--transition-fast); }
a:hover { color: var(--accent-coral-hover); }

/* ---- Navigation ---- */
.site-nav {
    background: rgba(10, 14, 28, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-subtle);
    padding: 0 24px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 100%;
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-left {
    display: flex;
    align-items: center;
    gap: 16px;
}

.nav-left img {
    height: 40px;
    width: auto;
}

.nav-left h1 {
    font-family: 'Outfit', sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--accent-gold-light), var(--accent-gold));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

.nav-link {
    color: var(--text-secondary);
    font-size: 0.85rem;
    font-weight: 500;
    transition: color var(--transition-fast);
    display: flex;
    align-items: center;
    gap: 6px;
}

.nav-link:hover { color: var(--text-primary); }

/* ---- Page Hero ---- */
.page-hero {
    text-align: center;
    padding: 60px 24px 40px;
    position: relative;
}

.page-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 30% 50%, rgba(212, 160, 23, 0.06) 0%, transparent 60%),
        radial-gradient(ellipse at 70% 30%, rgba(255, 77, 77, 0.04) 0%, transparent 50%);
    z-index: 0;
}

.page-hero > * { position: relative; z-index: 1; }

.page-hero h1 {
    font-family: 'Outfit', sans-serif;
    font-size: 2.5rem;
    font-weight: 900;
    letter-spacing: 3px;
    text-transform: uppercase;
    background: linear-gradient(135deg, var(--accent-gold-light), var(--accent-gold), #b8860b);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 8px;
}

.page-hero p {
    color: var(--text-secondary);
    font-size: 1rem;
    max-width: 600px;
    margin: 0 auto;
}

.page-hero .draw-date {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 16px;
    padding: 8px 16px;
    background: var(--accent-gold-dim);
    border: 1px solid var(--border-gold);
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--accent-gold);
}

/* ---- Bracket Tabs ---- */
.bracket-nav {
    display: flex;
    justify-content: center;
    gap: 8px;
    padding: 0 24px 24px;
    flex-wrap: wrap;
}

.bracket-nav-btn {
    padding: 12px 32px;
    font-family: 'Outfit', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 2px;
    color: var(--text-muted);
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 10px;
    cursor: pointer;
    transition: all var(--transition-medium);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.bracket-nav-btn:hover {
    border-color: var(--border-gold);
    color: var(--text-secondary);
    transform: translateY(-2px);
}

.bracket-nav-btn.active {
    background: var(--accent-gold-dim);
    border-color: var(--accent-gold);
    color: var(--accent-gold);
    box-shadow: 0 4px 20px rgba(212, 160, 23, 0.2);
}

/* ---- Bracket Container ---- */
.bracket-container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 24px 80px;
}

.bracket-panel {
    display: none;
    animation: fadeSlideIn 0.4s ease;
}

.bracket-panel.active {
    display: block;
}

@keyframes fadeSlideIn {
    from { opacity: 0; transform: translateY(16px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ---- Bracket Tree Layout ---- */
.bracket-tree {
    display: flex;
    gap: 24px;
    overflow-x: auto;
    padding: 16px 0;
}

/* ---- All Brackets View ---- */
.all-bracket-section {
    margin-bottom: 32px;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 12px;
    padding: 20px;
    animation: fadeSlideIn 0.4s ease;
}

.all-bracket-header {
    font-family: 'Outfit', sans-serif;
    font-size: 1.1rem;
    font-weight: 800;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--accent-gold);
    margin-bottom: 8px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border-gold);
    display: flex;
    align-items: center;
    gap: 10px;
}

.all-bracket-header i {
    font-size: 0.95rem;
}

.bracket-tree-compact {
    gap: 16px;
    padding: 8px 0 0;
}

.bracket-tree-compact .bracket-round {
    min-width: 185px;
}

.bracket-tree-compact .round-title {
    font-size: 0.65rem;
    letter-spacing: 1.5px;
    margin-bottom: 10px;
    padding-bottom: 6px;
}

.bracket-tree-compact .match-slot {
    padding: 5px 10px;
}

.bracket-tree-compact .slot-name {
    font-size: 0.75rem;
}

.bracket-tree-compact .slot-seed {
    display: none;
}

.bracket-tree-compact .champion-card {
    padding: 20px;
    margin-top: 12px;
}

.bracket-tree-compact .champion-card .crown {
    font-size: 1.6rem;
    margin-bottom: 6px;
}

.bracket-tree-compact .champion-card .champion-name {
    font-size: 1.1rem;
}

.bracket-round {
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    justify-content: stretch;
    min-width: 220px;
}

.round-title {
    text-align: center;
    font-family: 'Outfit', sans-serif;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--accent-gold);
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border-gold);
}

.round-format {
    font-weight: 500;
    font-size: 0.65rem;
    color: var(--text-muted);
    letter-spacing: 1px;
}

.bracket-match {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 8px;
    margin: 8px 0; /* slight vertical pad within flex bounds */
    transition: all var(--transition-fast);
}

.bracket-match:hover {
    border-color: var(--border-gold);
    box-shadow: var(--shadow-glow);
}

.bracket-match.completed {
    border-color: rgba(52, 211, 153, 0.2);
}

.match-slot {
    display: flex;
    align-items: center;
    padding: 8px 12px;
    gap: 8px;
    border-bottom: 1px solid var(--border-subtle);
    transition: background var(--transition-fast);
}

.match-slot:last-child {
    border-bottom: none;
}

.bracket-match.has-games .slot-name {
    padding-right: 16px;
}

.match-slot.winner {
    background: rgba(52, 211, 153, 0.06);
}

.match-slot.winner .slot-name {
    color: var(--accent-green);
    font-weight: 700;
}

.slot-seed {
    font-size: 0.65rem;
    font-weight: 800;
    min-width: 28px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    font-family: 'Outfit', sans-serif;
    flex-shrink: 0;
}

.slot-seed.tier-1 { background: linear-gradient(135deg, #ffd700, #b8860b); color: #0a0e1c; }
.slot-seed.tier-2 { background: linear-gradient(135deg, #c0c0c0, #808080); color: #0a0e1c; }
.slot-seed.tier-3 { background: linear-gradient(135deg, #cd7f32, #8b5e3c); color: #fff; }
.slot-seed.tier-4 { background: rgba(100, 140, 180, 0.15); color: #7cafc4; border: 1px solid rgba(100, 140, 180, 0.15); }
.slot-seed.tier-5 { background: var(--accent-gold-dim); color: var(--accent-gold); border: 1px solid rgba(212, 160, 23, 0.15); }

.slot-name {
    flex: 1;
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.slot-name.tbd {
    color: var(--text-muted);
    font-style: italic;
}

.slot-score {
    font-family: 'Outfit', sans-serif;
    font-size: 0.85rem;
    font-weight: 800;
    min-width: 24px;
    text-align: center;
    color: var(--accent-gold);
}

.match-magnifier {
    position: absolute;
    right: 38px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.8rem;
    color: var(--text-muted);
    opacity: 0.4;
    transition: all var(--transition-fast);
    pointer-events: none; /* Let clicks pass through to the bracket box */
}

.bracket-match.has-games:hover .match-magnifier {
    opacity: 1;
    color: var(--accent-gold);
    transform: translateY(-50%) scale(1.1);
}

.slot-flag {
    font-size: 0.85rem;
    line-height: 1;
    flex-shrink: 0;
    width: 18px;
    height: 14px;
    border-radius: 2px;
    background-size: cover;
    box-shadow: 0 0 2px rgba(0,0,0,0.3);
}

.player-flag {
    font-size: 0.9rem;
    margin-right: 2px;
}

/* ---- Player List (alternate view) ---- */
.player-list-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 8px;
    margin-bottom: 32px;
}

.player-list-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 8px;
    transition: all var(--transition-fast);
}

.player-list-item:hover {
    border-color: var(--border-gold);
    background: var(--bg-card-hover);
}

.player-list-item .position {
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--text-muted);
    min-width: 20px;
}

.player-list-item .seed-badge {
    font-size: 0.65rem;
    font-weight: 800;
    padding: 2px 6px;
    border-radius: 3px;
    font-family: 'Outfit', sans-serif;
}

.player-list-item .name {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text-primary);
}

/* ---- No Draw State ---- */
.no-draw {
    text-align: center;
    padding: 80px 24px;
}

.no-draw .icon {
    font-size: 4rem;
    margin-bottom: 20px;
    opacity: 0.4;
}

.no-draw h2 {
    font-family: 'Outfit', sans-serif;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.no-draw p {
    color: var(--text-muted);
    font-size: 0.9rem;
    max-width: 400px;
    margin: 0 auto;
}

/* ---- Footer ---- */
.bracket-footer {
    text-align: center;
    padding: 40px 24px;
    border-top: 1px solid var(--border-subtle);
    color: var(--text-muted);
    font-size: 0.8rem;
}

.bracket-footer a {
    color: var(--accent-gold);
}

/* ---- Section Divider ---- */
.section-divider {
    text-align: center;
    margin: 24px 0;
    padding: 0 24px;
}

.section-divider h2 {
    font-family: 'Outfit', sans-serif;
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.section-divider p {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* ---- View Toggle ---- */
.view-toggle {
    display: flex;
    justify-content: center;
    gap: 4px;
    margin-bottom: 24px;
    border: 1px solid var(--border-subtle);
    border-radius: 8px;
    overflow: hidden;
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
}

.view-toggle-btn {
    padding: 8px 16px;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-muted);
    background: var(--bg-tertiary);
    border: none;
    cursor: pointer;
    transition: all var(--transition-fast);
    font-family: inherit;
    display: flex;
    align-items: center;
    gap: 6px;
}

.view-toggle-btn:hover { color: var(--text-secondary); }

.view-toggle-btn.active {
    background: var(--accent-gold-dim);
    color: var(--accent-gold);
}


/* ---- Bracket Connector Lines ---- */
.bracket-round {
    position: relative;
}

.bracket-round .bracket-match {
    position: relative;
}

/* Match pair wraps two adjacent matches with a vertical connector between them */
.match-pair, .match-single {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    flex: 1;
}

/* The vertical bar on the right side of pair, spanning exactly from M1 center to M2 center */
.match-pair::after {
    content: '';
    position: absolute;
    right: -13px;
    top: 25%;
    bottom: 25%;
    width: 1px;
    background: var(--border-subtle);
}

/* Horizontal stubs going right from each match center to the vertical bar */
.match-pair .bracket-match::after {
    content: '';
    position: absolute;
    right: -13px;
    top: 50%;
    width: 13px;
    height: 1px;
    background: var(--border-subtle);
}

/* Horizontal stubs going left into each match from the previous round's vertical bar */
.bracket-round:not(:first-child) .bracket-match::before {
    content: '';
    position: absolute;
    left: -12px;
    top: 50%;
    width: 12px;
    height: 1px;
    background: var(--border-subtle);
}

/* Hide right connectors from the last round (Qualified column) */
.bracket-round:last-child .match-pair::after,
.bracket-round:last-child .bracket-match::after {
    display: none;
}

/* ---- Qualified Badge ---- */
.champion-card {
    text-align: center;
    padding: 32px;
    background: linear-gradient(135deg, rgba(212, 160, 23, 0.1), rgba(212, 160, 23, 0.02));
    border: 1px solid var(--border-gold);
    border-radius: 12px;
    margin-top: 24px;
    box-shadow: var(--shadow-glow);
}

.champion-card.qualified-card {
    background: linear-gradient(135deg, rgba(52, 211, 153, 0.08), rgba(212, 160, 23, 0.05));
    border-color: rgba(52, 211, 153, 0.3);
    box-shadow: 0 0 40px rgba(52, 211, 153, 0.1);
}

.champion-card .crown { font-size: 2.2rem; margin-bottom: 10px; }

.champion-card .champion-label {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--accent-green);
    margin-bottom: 4px;
}

.champion-card .champion-name {
    font-family: 'Outfit', sans-serif;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-primary);
}

.champion-card .qualified-sub {
    font-size: 0.65rem;
    font-weight: 600;
    color: var(--text-muted);
    margin-top: 6px;
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* ---- Bracket Nav Divider ---- */
.bracket-nav-divider {
    width: 1px;
    height: 24px;
    background: var(--border-subtle);
    align-self: center;
    margin: 0 4px;
}

/* ---- Seeding Button ---- */
.bracket-nav-btn.seeding-btn {
    background: linear-gradient(135deg, rgba(212, 160, 23, 0.05), rgba(255, 77, 77, 0.03));
    border-color: rgba(212, 160, 23, 0.12);
}

.bracket-nav-btn.seeding-btn.active {
    background: linear-gradient(135deg, rgba(212, 160, 23, 0.15), rgba(255, 77, 77, 0.08));
    border-color: var(--accent-gold);
    color: var(--accent-gold);
}

/* ---- Seeding View ---- */
.seeding-wrapper {
    max-width: 700px;
    margin: 0 auto;
    animation: fadeSlideIn 0.4s ease;
}

.seeding-header {
    text-align: center;
    margin-bottom: 32px;
}

.seeding-header h2 {
    font-family: 'Outfit', sans-serif;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.seeding-header h2 i {
    color: var(--accent-gold);
    font-size: 1.2rem;
}

.seeding-header p {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-top: 6px;
}

/* ---- Tier Groups ---- */
.seeding-tier-group {
    margin-bottom: 28px;
}

.seeding-tier-label {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    border-radius: 10px 10px 0 0;
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 0.85rem;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.seeding-tier-label.tier-1 {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.12), rgba(184, 134, 11, 0.06));
    border-bottom: 2px solid rgba(255, 215, 0, 0.3);
    color: #ffd700;
}

.seeding-tier-label.tier-2 {
    background: linear-gradient(135deg, rgba(192, 192, 192, 0.1), rgba(128, 128, 128, 0.05));
    border-bottom: 2px solid rgba(192, 192, 192, 0.25);
    color: #c0c0c0;
}

.seeding-tier-label.tier-3 {
    background: linear-gradient(135deg, rgba(205, 127, 50, 0.1), rgba(139, 94, 60, 0.05));
    border-bottom: 2px solid rgba(205, 127, 50, 0.25);
    color: #cd7f32;
}

.seeding-tier-label.tier-4 {
    background: linear-gradient(135deg, rgba(100, 140, 180, 0.1), rgba(70, 100, 140, 0.05));
    border-bottom: 2px solid rgba(100, 140, 180, 0.25);
    color: #7cafc4;
}

.seeding-tier-label.tier-5 {
    background: linear-gradient(135deg, rgba(212, 160, 23, 0.06), rgba(107, 115, 148, 0.04));
    border-bottom: 2px solid rgba(212, 160, 23, 0.12);
    color: var(--text-muted);
}

.tier-icon {
    font-size: 1.1rem;
}

.tier-text {
    flex: 1;
}

.tier-range {
    font-size: 0.65rem;
    font-weight: 500;
    opacity: 0.6;
    letter-spacing: 0;
    text-transform: none;
}

/* ---- Seeding Table ---- */
.seeding-table {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-top: none;
    border-radius: 0 0 10px 10px;
    overflow: hidden;
}

.seeding-table-header {
    display: flex;
    align-items: center;
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.02);
    border-bottom: 1px solid var(--border-subtle);
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--text-muted);
}

.seeding-row {
    display: flex;
    align-items: center;
    padding: 10px 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.02);
    transition: all var(--transition-fast);
}

.seeding-row:last-child {
    border-bottom: none;
}

.seeding-row.even {
    background: rgba(255, 255, 255, 0.015);
}

.seeding-row:hover {
    background: rgba(212, 160, 23, 0.04);
}

.col-seed {
    width: 50px;
    flex-shrink: 0;
}

.col-name {
    flex: 1;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.col-name .slot-flag {
    margin-right: 8px;
}

.col-bracket {
    width: 70px;
    flex-shrink: 0;
    text-align: center;
}

.seeding-row .seed-badge {
    font-size: 0.65rem;
    font-weight: 800;
    min-width: 28px;
    height: 22px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    font-family: 'Outfit', sans-serif;
}

.bracket-tag {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: 'Outfit', sans-serif;
    font-size: 0.75rem;
    font-weight: 700;
    min-width: 28px;
    height: 24px;
    padding: 0 8px;
    border-radius: 6px;
    background: var(--accent-gold-dim);
    color: var(--accent-gold);
    border: 1px solid rgba(212, 160, 23, 0.15);
    letter-spacing: 1px;
}

.bracket-tag.unassigned {
    background: rgba(107, 115, 148, 0.1);
    color: var(--text-muted);
    border-color: rgba(107, 115, 148, 0.1);
    font-weight: 400;
}

/* ---- Responsive ---- */
@media (max-width: 768px) {
    .page-hero { padding: 40px 16px 24px; }
    .page-hero h1 { font-size: 1.8rem; letter-spacing: 2px; }
    .bracket-nav { gap: 6px; padding: 0 16px 16px; }
    .bracket-nav-btn { padding: 10px 20px; font-size: 0.85rem; }
    .bracket-container { padding: 0 16px 60px; }
    .bracket-tree { gap: 16px; }
    .bracket-round { min-width: 180px; }
    .player-list-grid { grid-template-columns: 1fr 1fr; }
    .site-nav { padding: 0 16px; height: 60px; }
    .nav-left img { height: 32px; }
    .nav-left h1 { font-size: 0.95rem; }
    .bracket-nav-divider { display: none; }
    .seeding-wrapper { padding: 0 4px; }
    .seeding-header h2 { font-size: 1.25rem; }
}

@media (max-width: 480px) {
    .page-hero h1 { font-size: 1.4rem; }
    .bracket-nav-btn { padding: 8px 16px; font-size: 0.75rem; }
    .bracket-round { min-width: 160px; }
    .player-list-grid { grid-template-columns: 1fr; }
    .seeding-row { padding: 8px 12px; }
    .col-name { font-size: 0.8rem; }
    .col-bracket { width: 55px; }
}

/* simulator-style.css - Overrides and additions for Pick'em interactive mode */
.sim-mode .match-slot {
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.sim-mode .match-slot::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(212, 160, 23, 0);
    transition: background var(--transition-fast);
    z-index: 1;
    pointer-events: none;
}

.sim-mode .match-slot:hover::before {
    background: rgba(212, 160, 23, 0.08);
}

.sim-mode .match-slot.winner {
    background: rgba(212, 160, 23, 0.1) !important;
    border-left: 2px solid var(--accent);
}

/* Ensure empty/TBD slots without a real player are NOT clickable */
.sim-mode .match-slot.tbd {
    cursor: not-allowed;
}
.sim-mode .match-slot.tbd:hover::before {
    background: transparent;
}

/* Make sure text is above hover layer */
.sim-mode .match-slot > * {
    position: relative;
    z-index: 2;
}

.sim-reset-btn {
    background: rgba(255, 60, 60, 0.1);
    color: #ff5e5e;
    border: 1px solid rgba(255, 60, 60, 0.2);
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 0.85rem;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-right: 16px;
}

.sim-reset-btn:hover {
    background: rgba(255, 60, 60, 0.2);
    transform: translateY(-1px);
}

/* --- Score Modal --- */
.sim-modal-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(8, 11, 24, 0.85);
    backdrop-filter: blur(4px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.15s ease-out;
}

.sim-modal-box {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 12px;
    width: 90%;
    max-width: 320px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.5), 0 0 0 1px rgba(212, 160, 23, 0.2);
    overflow: hidden;
    animation: scaleUp 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.sim-modal-header {
    background: rgba(255,255,255,0.02);
    padding: 12px 16px;
    border-bottom: 1px solid var(--border-subtle);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.sim-modal-header h3 {
    margin: 0;
    font-size: 1.1rem;
    color: var(--accent-gold);
    font-family: 'Outfit', sans-serif;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.sim-modal-close {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1.2rem;
    cursor: pointer;
    padding: 4px;
    transition: color var(--transition-fast);
}

.sim-modal-close:hover {
    color: #ff9999;
}

.sim-modal-body {
    padding: 24px 20px;
    text-align: center;
}

.sim-modal-text {
    margin-bottom: 20px;
    font-size: 0.95rem;
    line-height: 1.4;
}

.sim-score-btn {
    background: #111425;
    border: 1px solid var(--border-subtle);
    color: var(--text-primary);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 1.2rem;
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.sim-score-btn:hover {
    border-color: var(--accent-gold);
    color: var(--accent-gold);
    background: rgba(212, 160, 23, 0.1);
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 4px 12px rgba(212, 160, 23, 0.2);
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes scaleUp {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}

/* ---- Match Schedule Tooltip ---- */
.match-info-icon {
    position: absolute;
    right: -24px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 0.8rem;
    cursor: pointer;
    transition: color var(--transition-fast);
    padding: 4px;
    z-index: 5;
}

.match-info-icon:hover {
    color: var(--accent-gold);
}

.schedule-tooltip {
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(-10px);
    background: var(--bg-card-hover);
    border: 1px solid var(--border-gold);
    border-radius: 8px;
    padding: 12px 16px;
    min-width: 280px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.8), 0 0 20px rgba(212,160,23,0.1);
    z-index: 100;
    pointer-events: none;
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    text-align: center;
}

.match-info-icon:hover .schedule-tooltip {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(-8px);
}

.schedule-tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border-width: 6px;
    border-style: solid;
    border-color: var(--border-gold) transparent transparent transparent;
}

.schedule-tooltip.flipped::after {
    top: auto;
    bottom: 100%;
    border-color: transparent transparent var(--border-gold) transparent;
}

/* Match Statistics Tooltip */
.games-tooltip {
    min-width: 320px;
    padding: 16px;
    background: linear-gradient(180deg, var(--bg-card-hover) 0%, rgba(26,30,54,0.98) 100%);
}
.bracket-match.has-games:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(212, 160, 23, 0.15);
}


.games-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 12px;
}

.game-row {
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 6px;
    padding: 8px 12px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.game-map {
    font-family: Outfit, sans-serif;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-primary);
    text-align: left;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    padding-bottom: 4px;
}

.game-civs {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.game-civs .civ {
    display: flex;
    align-items: center;
    gap: 6px;
    flex: 1;
}

.game-civs .civ:last-child {
    justify-content: flex-end;
    text-align: right;
}

.game-civs .civ.winner {
    color: var(--accent-gold);
    font-weight: 600;
}

.game-civs .vs {
    font-size: 0.7rem;
    color: var(--text-muted);
    padding: 0 10px;
    font-weight: 700;
}

.schedule-tooltip-date {
    font-size: 0.75rem;
    color: var(--text-secondary);
    margin-bottom: 6px;
    font-weight: 600;
    white-space: nowrap;
    background: rgba(0,0,0,0.3);
    padding: 4px 8px;
    border-radius: 4px;
    display: inline-block;
}

.schedule-tooltip-countdown {
    display: inline-block;
    background: var(--accent-gold-dim);
    color: var(--accent-gold);
    padding: 4px 8px;
    border-radius: 4px;
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 0.75rem;
    margin-left: 8px;
}

.schedule-tooltip-matchup {
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid var(--border-subtle);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.schedule-tooltip-player {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-primary);
    flex: 1;
}

.schedule-tooltip-vs {
    font-size: 0.65rem;
    color: var(--text-muted);
    font-weight: 800;
    text-transform: uppercase;
}



/* ---- Upcoming Matches Panel ---- */
.upcoming-schedule-wrapper {
    margin: 30px auto 40px auto;
    max-width: 1200px;
    padding: 20px;
    background: rgba(26, 30, 54, 0.6);
    border-radius: 12px;
    border: 1px solid var(--border-subtle);
    box-shadow: inset 0 2px 20px rgba(0,0,0,0.2), 0 4px 15px rgba(0,0,0,0.3);
}

.upcoming-header {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--accent-gold);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.upcoming-carousel-container {
    position: relative;
    display: flex;
    align-items: center;
}

.upcoming-scroll-btn {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    color: var(--accent-gold);
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    position: absolute;
    z-index: 10;
    box-shadow: 0 4px 10px rgba(0,0,0,0.5);
    transition: all var(--transition-fast);
}

.upcoming-scroll-btn:hover {
    background: var(--accent-gold-dim);
    border-color: var(--accent-gold);
    transform: scale(1.1);
}

.scroll-left { left: -18px; }
.scroll-right { right: -18px; }

.upcoming-grid {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    scroll-behavior: smooth;
    gap: 15px;
    padding: 10px 0;
    width: 100%;
    scrollbar-width: none; /* Firefox */
}

.upcoming-grid::-webkit-scrollbar {
    display: none; /* Chrome/Safari */
}

.upcoming-card {
    flex: 0 0 calc(33.333% - 10px);
    min-width: 230px;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 8px;
    padding: 12px;
    position: relative;
    transition: all var(--transition-fast);
}

@media (max-width: 900px) {
    .upcoming-card { flex: 0 0 calc(50% - 10px); min-width: 260px; }
}
@media (max-width: 600px) {
    .upcoming-card { flex: 0 0 100%; min-width: 100%; }
}

.upcoming-card:hover {
    border-color: var(--border-gold);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(212, 160, 23, 0.15);
}

.uc-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    flex-wrap: nowrap;
    white-space: nowrap;
}

.uc-top .schedule-tooltip-date {
    background: none;
    padding: 0;
    margin: 0;
    white-space: nowrap;
}

.uc-top .schedule-tooltip-countdown {
    white-space: nowrap;
}

.uc-round-row {
    text-align: center;
    margin-bottom: 8px;
}

.uc-round-badge {
    font-size: 0.65rem;
    color: var(--text-muted);
    background: rgba(0,0,0,0.3);
    padding: 3px 6px;
    border-radius: 4px;
    margin-right: 8px;
    font-weight: 700;
}

.uc-vs {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.uc-player {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-primary);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.uc-streams {
    display: flex;
    gap: 10px;
}

.watch-link {
    color: var(--text-muted);
    font-size: 1rem;
    transition: all var(--transition-fast);
}

.watch-link:hover {
    color: var(--text-primary);
    transform: scale(1.1);
}

.watch-link .fa-twitch:hover {
    color: #9146FF;
}

.watch-link .fa-youtube:hover {
    color: #FF0000;
}

.uc-vs-badge {
    font-size: 0.65rem;
    color: var(--text-muted);
    font-weight: 800;
}

@media (max-width: 600px) {
    /* Fix for header nav overlapping */
    .site-nav {
        flex-direction: column;
        height: auto;
        padding: 12px 10px;
        gap: 10px;
    }
    .nav-left h1 {
        font-size: 0.9rem;
    }
    .nav-link {
        font-size: 0.75rem;
    }
    
    /* Fix for upcoming matches countdown overflowing */
    .uc-top {
        flex-wrap: wrap;
        white-space: normal;
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    .uc-top > div {
        flex-wrap: wrap;
    }
    .schedule-tooltip-date {
        white-space: normal !important;
        font-size: 0.8rem;
    }
}

/* ============================================
   Nav Row Styling (2 rows)
   ============================================ */
.bracket-nav-row1 {
    padding-bottom: 6px;
}

.bracket-nav-row2 {
    padding-top: 0;
    padding-bottom: 24px;
}

.bracket-nav-row2 .bracket-nav-btn {
    padding: 8px 20px;
    font-size: 0.85rem;
}

/* ============================================
   FEATURE: Results Ticker (news-bar style)
   ============================================ */
.results-ticker-wrapper {
    max-width: 1300px;
    margin: 0 auto 16px auto;
    padding: 0 24px;
    overflow: hidden;
    position: relative;
    height: 36px;
}

.results-ticker-wrapper::before,
.results-ticker-wrapper::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 60px;
    z-index: 2;
    pointer-events: none;
}

.results-ticker-wrapper::before {
    left: 0;
    background: linear-gradient(90deg, var(--bg-primary), transparent);
}

.results-ticker-wrapper::after {
    right: 0;
    background: linear-gradient(270deg, var(--bg-primary), transparent);
}

.ticker-track {
    display: flex;
    align-items: center;
    gap: 0;
    white-space: nowrap;
    animation: tickerScroll var(--ticker-duration, 30s) linear infinite;
    width: max-content;
    height: 36px;
}

.ticker-track:hover {
    animation-play-state: paused;
}

@keyframes tickerScroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.ticker-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 0 24px;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--text-secondary);
    border-right: 1px solid var(--border-subtle);
    height: 36px;
    flex-shrink: 0;
}

.ticker-item .ticker-winner {
    color: var(--accent-green);
    font-weight: 700;
}

.ticker-item .ticker-score {
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    color: var(--accent-gold);
    font-size: 0.82rem;
}

.ticker-item .ticker-loser {
    color: var(--text-muted);
}

.ticker-item .ticker-bracket {
    font-size: 0.6rem;
    font-weight: 700;
    color: var(--accent-gold);
    background: var(--accent-gold-dim);
    padding: 1px 5px;
    border-radius: 3px;
    letter-spacing: 0.5px;
}

/* ============================================
   FEATURE: Tournament Statistics Panel (Tab)
   ============================================ */
.stats-page-wrapper {
    animation: fadeSlideIn 0.4s ease;
}

.stats-page-header {
    text-align: center;
    margin-bottom: 32px;
}

.stats-page-header h2 {
    font-family: 'Outfit', sans-serif;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.stats-page-header h2 i {
    color: var(--accent-gold);
    font-size: 1.2rem;
}

.stats-page-header p {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-top: 6px;
}

.stats-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 12px;
    max-width: 900px;
    margin: 0 auto;
}

.stat-highlight-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 10px;
    padding: 16px;
    position: relative;
    overflow: hidden;
    transition: all var(--transition-fast);
}

.stat-highlight-card:hover {
    border-color: var(--border-gold);
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(212, 160, 23, 0.12);
}

.stat-highlight-card .shc-icon { font-size: 1.4rem; margin-bottom: 8px; }
.stat-highlight-card .shc-label { font-size: 0.65rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1.5px; color: var(--text-muted); margin-bottom: 4px; }
.stat-highlight-card .shc-value { font-family: 'Outfit', sans-serif; font-size: 1.3rem; font-weight: 800; color: var(--text-primary); line-height: 1.2; }
.stat-highlight-card .shc-sub { font-size: 0.72rem; color: var(--text-muted); margin-top: 4px; line-height: 1.3; }

.stat-highlight-card.accent-green { border-left: 3px solid var(--accent-green); }
.stat-highlight-card.accent-gold { border-left: 3px solid var(--accent-gold); }
.stat-highlight-card.accent-coral { border-left: 3px solid var(--accent-coral); }
.stat-highlight-card.accent-blue { border-left: 3px solid #60a5fa; }

@media (max-width: 600px) {
    .stats-cards-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ============================================
   FEATURE: Share My Picks Button (nav-style)
   ============================================ */
.bracket-nav-btn.share-picks-btn {
    color: #fff !important;
    background: linear-gradient(135deg, #1da1f2, #0d8bd9);
    border-color: rgba(29, 161, 242, 0.3);
    box-shadow: 0 2px 8px rgba(29, 161, 242, 0.2);
}

.bracket-nav-btn.share-picks-btn:hover {
    box-shadow: 0 4px 16px rgba(29, 161, 242, 0.35);
    transform: translateY(-2px);
}

/* Share image modal */
.share-modal-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(8, 11, 24, 0.9);
    backdrop-filter: blur(8px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.15s ease-out;
}

.share-modal-box {
    background: var(--bg-secondary);
    border: 1px solid var(--border-gold);
    border-radius: 16px;
    max-width: 90vw;
    max-height: 90vh;
    overflow: auto;
    box-shadow: 0 20px 60px rgba(0,0,0,0.6), 0 0 40px rgba(212, 160, 23, 0.08);
    animation: scaleUp 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.share-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-subtle);
}

.share-modal-header h3 {
    font-family: 'Outfit', sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--accent-gold);
    letter-spacing: 1px;
}

.share-modal-close {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1.3rem;
    cursor: pointer;
    padding: 4px;
    transition: color 0.2s;
}
.share-modal-close:hover { color: #ff9999; }

.share-modal-body { padding: 20px; text-align: center; }
.share-modal-body img { max-width: 100%; border-radius: 8px; border: 1px solid var(--border-subtle); }

.share-modal-actions {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 16px;
    padding-bottom: 4px;
}

.share-action-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 20px;
    font-family: 'Inter', sans-serif;
    font-size: 0.82rem;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    border: 1px solid transparent;
}

.share-action-btn.download { background: var(--accent-gold-dim); color: var(--accent-gold); border-color: var(--border-gold); }
.share-action-btn.download:hover { background: rgba(212, 160, 23, 0.25); transform: translateY(-1px); }
.share-action-btn.copy { background: rgba(52, 211, 153, 0.1); color: var(--accent-green); border-color: rgba(52, 211, 153, 0.2); }
.share-action-btn.copy:hover { background: rgba(52, 211, 153, 0.2); transform: translateY(-1px); }

/* ============================================
   FEATURE: Theme Toggle Button
   ============================================ */
.theme-toggle-btn {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-muted);
    width: 36px;
    height: 36px;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    transition: all var(--transition-fast);
    margin-left: 12px;
}

.theme-toggle-btn:hover {
    border-color: var(--accent-gold);
    color: var(--accent-gold);
    background: var(--accent-gold-dim);
    transform: scale(1.08);
}

body.light-mode .theme-toggle-btn {
    border-color: rgba(0, 0, 0, 0.12);
    color: var(--text-muted);
}

body.light-mode .theme-toggle-btn:hover {
    border-color: var(--accent-gold);
    color: var(--accent-gold);
    background: var(--accent-gold-dim);
}

/* ============================================
   FEATURE: Bracket Progress Bars
   ============================================ */
.bracket-nav-btn {
    position: relative;
    flex-direction: column;
}

.bracket-progress {
    display: none;
    width: 100%;
    height: 3px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 2px;
    margin-top: 4px;
    position: relative;
    overflow: hidden;
}

.bracket-progress.visible {
    display: block;
}

.bracket-progress::after {
    content: '';
    position: absolute;
    top: 0; left: 0;
    height: 100%;
    width: var(--progress, 0%);
    background: linear-gradient(90deg, var(--accent-green), #4ade80);
    border-radius: 2px;
    transition: width 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.bracket-progress[data-complete="true"]::after {
    background: linear-gradient(90deg, var(--accent-gold), var(--accent-gold-light));
}

body.light-mode .bracket-progress {
    background: rgba(0, 0, 0, 0.06);
}

