/* MyToolsSuite Scoreboard - styles de l'éditeur (extraits de index.html + interface à onglets) */
        
        :root {
            --bg-dark: #020617;
            --sidebar-bg: #0f172a;
            --accent-purple: #8b5cf6;
            --accent-blue: #3b82f6;
            --glass-bg: rgba(15, 23, 42, 0.8);
            --glass-border: rgba(255, 255, 255, 0.05);
        }

        body { font-family: 'Inter', sans-serif; background-color: var(--bg-dark); color: #f8fafc; margin: 0; display: flex; height: 100vh; overflow: hidden; }
        .rajdhani { font-family: 'Rajdhani', sans-serif; }

        /* --- UI COMPONENTS --- */
        .sidebar { width: 280px; background-color: var(--sidebar-bg); border-right: 1px solid rgba(255, 255, 255, 0.05); display: flex; flex-direction: column; flex-shrink: 0; z-index: 50; }
        .sidebar-item { padding: 12px 20px; margin: 2px 12px; border-radius: 12px; color: #94a3b8; font-size: 0.75rem; font-weight: 700; display: flex; align-items: center; gap: 12px; transition: all 0.2s; cursor: pointer; text-transform: uppercase; letter-spacing: 0.02em; text-decoration: none; }
        .sidebar-item:hover { background: rgba(255, 255, 255, 0.03); color: white; }
        .sidebar-item.active { background: rgba(139, 92, 246, 0.1); color: var(--accent-purple); }

        .main-content { flex-grow: 1; overflow-y: auto; display: flex; flex-direction: column; scroll-behavior: smooth; }
		
        .nav-glass { background: rgba(15, 23, 42, 0.95); backdrop-filter: blur(15px); border-bottom: 1px solid var(--glass-border); z-index: 1000; }
        .nav-link { padding: 10px 15px; font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.1em; color: #94a3b8; transition: all 0.3s; cursor: pointer; display: flex; align-items: center; gap: 5px; }
        .nav-link:hover { color: white; }
        .dropdown-menu { position: absolute; top: 100%; left: 0; min-width: 240px; background: rgba(15, 23, 42, 0.98); backdrop-filter: blur(25px); border: 1px solid rgba(255, 255, 255, 0.08); border-radius: 16px; padding: 12px; display: none; opacity: 0; transform: translateY(10px); transition: all 0.3s; box-shadow: 0 20px 50px rgba(0,0,0,0.8); z-index: 2000; }
        .nav-item:hover .dropdown-menu { display: block; opacity: 1; transform: translateY(0); }
        .dropdown-item { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 10px; font-size: 11px; font-weight: 600; color: #94a3b8; transition: all 0.2s; white-space: nowrap; text-decoration: none; }
        .dropdown-item:hover:not(.opacity-40) { background: rgba(255, 255, 255, 0.05); color: white; padding-left: 18px; }
        .page-shell { position: relative; }
        .page-shell::before {
            content: "";
            position: absolute;
            inset: 0 0 auto 0;
            height: 220px;
            background: radial-gradient(circle at center, rgba(139, 92, 246, 0.18) 0%, transparent 68%);
            pointer-events: none;
            filter: blur(10px);
        }
        .nav-btn-local {
            width: 42px;
            height: 42px;
            border-radius: 15px;
            background: rgba(30, 41, 59, 0.42);
            backdrop-filter: blur(14px);
            transition: all 0.2s ease;
        }
        .nav-btn-local:hover {
            background: rgba(139, 92, 246, 0.16);
            border-color: rgba(139, 92, 246, 0.35);
        }
        .scoreboard-topbar {
            display: flex;
            justify-content: space-between;
            align-items: center;
            gap: 1rem;
            margin-bottom: 1.1rem;
            padding: 0.85rem 1.2rem;
            border-radius: 1.65rem;
            border: 1px solid rgba(255, 255, 255, 0.06);
            background: linear-gradient(180deg, rgba(12, 17, 32, 0.92) 0%, rgba(15, 23, 42, 0.88) 100%);
            box-shadow: 0 18px 40px rgba(2, 6, 23, 0.28);
            backdrop-filter: blur(14px);
        }
        .scoreboard-topbar-main {
            display: flex;
            align-items: center;
            gap: 1rem;
            min-width: 0;
        }
        .scoreboard-topbar-copy {
            min-width: 0;
        }
        .scoreboard-topbar-btn {
            display: flex;
            align-items: center;
            justify-content: center;
            background: rgba(15, 23, 42, 0.82) !important;
            border: 1px solid rgba(255, 255, 255, 0.08) !important;
            box-shadow: 0 10px 24px rgba(2, 6, 23, 0.22);
            color: #f8fafc !important;
        }
        .scoreboard-topbar-btn i {
            color: #f8fafc !important;
        }
        .scoreboard-topbar-title {
            color: #f8fafc !important;
        }
        .scoreboard-topbar-meta {
            color: #cbd5e1 !important;
        }
        .scoreboard-topbar-streamers {
            color: #e2e8f0 !important;
        }
        .scoreboard-topbar-streamers i {
            color: #c4b5fd !important;
        }
        .section-shell {
            background: linear-gradient(180deg, rgba(30, 41, 59, 0.42) 0%, rgba(15, 23, 42, 0.58) 100%);
            border: 1px solid rgba(255, 255, 255, 0.06);
            border-radius: 1.5rem;
            backdrop-filter: blur(12px);
            box-shadow: 0 16px 36px rgba(2, 6, 23, 0.22);
        }
        .hero-shell {
            display: flex;
            align-items: flex-start;
            justify-content: space-between;
            gap: 1.5rem;
            padding: 1.75rem 1.9rem;
            background: linear-gradient(180deg, rgba(19, 26, 46, 0.72) 0%, rgba(10, 15, 30, 0.42) 100%);
            border: 1px solid rgba(255, 255, 255, 0.06);
            border-radius: 2rem;
            backdrop-filter: blur(14px);
            box-shadow: 0 20px 50px rgba(2, 6, 23, 0.25);
        }
        .hero-kicker {
            display: inline-flex;
            align-items: center;
            gap: 0.55rem;
            padding: 0.45rem 0.75rem;
            border-radius: 999px;
            background: rgba(139, 92, 246, 0.1);
            border: 1px solid rgba(139, 92, 246, 0.2);
            color: #c4b5fd;
            font-size: 10px;
            font-weight: 900;
            letter-spacing: 0.18em;
            text-transform: uppercase;
        }
        .hero-copy {
            max-width: 780px;
            display: flex;
            flex-direction: column;
            gap: 0.75rem;
        }
        .hero-summary {
            color: #94a3b8;
            font-size: 14px;
            line-height: 1.7;
            max-width: 58ch;
        }
        .hero-metrics {
            display: flex;
            flex-wrap: wrap;
            gap: 0.75rem;
        }
        .hero-metric {
            display: inline-flex;
            align-items: center;
            gap: 0.55rem;
            padding: 0.6rem 0.85rem;
            border-radius: 14px;
            background: rgba(15, 23, 42, 0.55);
            border: 1px solid rgba(255, 255, 255, 0.06);
            color: #cbd5e1;
            font-size: 11px;
            font-weight: 700;
        }
        .hero-rail {
            min-width: 220px;
            display: flex;
            flex-direction: column;
            gap: 0.8rem;
        }
        .hero-note {
            padding: 0.95rem 1rem;
            border-radius: 18px;
            background: rgba(15, 23, 42, 0.55);
            border: 1px solid rgba(255, 255, 255, 0.06);
            color: #94a3b8;
            font-size: 11px;
            line-height: 1.6;
        }
        .hero-note strong {
            display: block;
            margin-bottom: 0.35rem;
            color: #f8fafc;
            text-transform: uppercase;
            letter-spacing: 0.08em;
            font-size: 10px;
        }
        .panel-note { font-size: 10px; line-height: 1.55; color: #94a3b8; }
        .insight-card {
            display: flex;
            flex-direction: column;
            gap: 0.95rem;
            min-height: 100%;
            position: relative;
            overflow: hidden;
        }
        .insight-card::before {
            content: "";
            position: absolute;
            inset: 0;
            background: radial-gradient(circle at top right, rgba(139, 92, 246, 0.08), transparent 42%);
            pointer-events: none;
        }
        .insight-card > * { position: relative; z-index: 1; }
        .insight-copy {
            color: #94a3b8;
            font-size: 12px;
            line-height: 1.7;
        }
        .insight-list {
            display: grid;
            gap: 0.7rem;
            color: #cbd5e1;
            font-size: 12px;
        }
        .insight-list li {
            display: flex;
            align-items: center;
            gap: 0.65rem;
        }
        .insight-cta {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            gap: 0.55rem;
            width: fit-content;
            padding: 0.8rem 1rem;
            border-radius: 14px;
            background: rgba(139, 92, 246, 0.12);
            border: 1px solid rgba(139, 92, 246, 0.28);
            color: #ddd6fe;
            font-size: 10px;
            font-weight: 900;
            letter-spacing: 0.12em;
            text-transform: uppercase;
            transition: all 0.2s ease;
            text-decoration: none;
        }
        .insight-cta:hover {
            background: rgba(139, 92, 246, 0.95);
            color: white;
        }
        .suite-grid {
            display: grid;
            grid-template-columns: repeat(2, minmax(0, 1fr));
            gap: 0.6rem;
        }
        .suite-link-card {
            display: flex;
            flex-direction: column;
            gap: 0.3rem;
            padding: 0.85rem;
            border-radius: 14px;
            background: rgba(15, 23, 42, 0.72);
            border: 1px solid rgba(255, 255, 255, 0.05);
            color: #cbd5e1;
            font-size: 11px;
            text-decoration: none;
            transition: all 0.2s ease;
        }
        .suite-link-card:hover {
            border-color: rgba(139, 92, 246, 0.35);
            background: rgba(76, 29, 149, 0.22);
            color: white;
        }
        .suite-link-card span:last-child {
            color: #64748b;
            font-size: 10px;
            line-height: 1.4;
        }

        /* --- SCOREBOARD STYLES --- */
        .scoreboard-card { background: linear-gradient(180deg, rgba(15, 23, 42, 0.96) 0%, rgba(17, 24, 39, 0.92) 100%); border: 1px solid rgba(139, 92, 246, 0.16); border-radius: 26px; box-shadow: 0 26px 72px rgba(2, 6, 23, 0.56); overflow: hidden; width: 100%; max-width: 960px; position: relative; transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1); }
        .team-container { display: flex; align-items: center; justify-content: space-between; padding: 16px 18px; position: relative; background-image: radial-gradient(circle at center, rgba(139,92,246,0.07) 0%, transparent 68%); flex: 1; min-width: 0; transition: all 0.4s ease; }
        .scoreboard-team-name {
            color: #ffffff !important;
            opacity: 1 !important;
            text-shadow: 0 2px 12px rgba(15, 23, 42, 0.45);
        }
        .scoreboard-team-meta {
            color: #cbd5e1 !important;
            opacity: 1 !important;
            text-shadow: 0 1px 8px rgba(15, 23, 42, 0.35);
        }
        .team-logo-slot { width: 64px; height: 64px; border-radius: 13px; background: rgba(0,0,0,0.3); border: 2px dashed rgba(255,255,255,0.1); display: flex; align-items: center; justify-content: center; overflow: hidden; flex-shrink: 0; transition: all 0.3s ease; }
        .team-logo-slot img { width: 100%; height: 100%; object-fit: contain; }
        .color-block { width: 100%; height: 100%; }
        
        .score-number { font-variant-numeric: tabular-nums; transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275); display: inline-block; }
        .score-number.pop { transform: scale(1.3); }
        .score-big { font-weight: 900; line-height: 1; font-family: 'Rajdhani', sans-serif; text-shadow: 0 0 30px rgba(139, 92, 246, 0.3); }

        /* --- ELITE PRO TOURNAMENT THEME --- */
        .theme-elite-pro .scoreboard-card {
            background: linear-gradient(135deg, #050505 0%, #111827 100%);
            border: 2px solid #d97706; /* amber-600 */
            box-shadow: 0 25px 80px rgba(217, 119, 6, 0.25);
            border-radius: 12px; /* Plus broadcast/carré */
        }
        .theme-elite-pro .team-container {
            background-image: linear-gradient(90deg, rgba(217,119,6,0.05) 0%, transparent 100%);
        }
        .theme-elite-pro .score-number {
            text-shadow: 0 0 40px currentColor;
        }
        .theme-elite-pro .team-logo-slot {
            border: 1px solid rgba(217,119,6,0.3);
            border-radius: 8px;
        }
        .theme-elite-pro #free-branding { display: none !important; }

        .control-panel {
            background: linear-gradient(180deg, rgba(28, 35, 58, 0.72) 0%, rgba(18, 24, 43, 0.92) 100%);
            backdrop-filter: blur(12px);
            border: 1px solid rgba(255, 255, 255, 0.07);
            border-radius: 2rem;
            box-shadow: inset 0 1px 0 rgba(255,255,255,0.04), 0 18px 36px rgba(2, 6, 23, 0.18);
        }
        .sport-btn { padding: 8px 16px; border-radius: 10px; font-size: 10px; font-weight: 800; text-transform: uppercase; background: rgba(15, 23, 42, 0.5); border: 1px solid rgba(255,255,255,0.1); color: #64748b; transition: all 0.2s; white-space: nowrap; cursor: pointer; }
        .sport-btn.active { background: var(--accent-purple); color: white; border-color: var(--accent-purple); }

        .control-btn { width: 32px; height: 32px; display: flex; align-items: center; justify-content: center; border-radius: 8px; background: rgba(51, 65, 85, 0.96); border: 1px solid rgba(255,255,255,0.08); color: #f8fafc; font-weight: bold; transition: all 0.2s; flex-shrink: 0; box-shadow: inset 0 1px 0 rgba(255,255,255,0.04); }
        .control-btn:hover { background: white; color: black; }
        .control-btn-red { background: rgba(136, 19, 55, 0.72); border-color: rgba(244, 63, 94, 0.22); color: #fda4af; }
        .control-btn-red:hover { background: #f43f5e; color: white; }
        .control-value {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            min-width: 1.75rem;
            padding: 0 0.2rem;
            color: #f8fafc;
            font-weight: 900;
            text-align: center;
            letter-spacing: 0.01em;
        }
        .control-value-score {
            font-size: 1.125rem;
            line-height: 1;
        }
        .control-value-meta {
            font-size: 0.78rem;
            line-height: 1;
        }

        .input-pro { background: rgba(15, 23, 42, 0.78) !important; border: 1px solid rgba(255, 255, 255, 0.08); color: white; padding: 8px 12px; border-radius: 8px; width: 100%; font-size: 12px; font-weight: bold; outline: none; text-transform: uppercase; transition: border-color 0.2s, background-color 0.2s, box-shadow 0.2s; box-shadow: inset 0 1px 0 rgba(255,255,255,0.03); }
        .input-pro:focus { border-color: var(--accent-purple); }
        .input-pro:disabled { opacity: 0.5; cursor: not-allowed; }
        .input-pro::placeholder { color: #94a3b8; }
        #players-inputs .control-panel > div:nth-of-type(2),
        #players-inputs .control-panel > div:nth-of-type(3) {
            background: rgba(10, 14, 28, 0.58);
            border-color: rgba(255, 255, 255, 0.07);
            box-shadow: inset 0 1px 0 rgba(255,255,255,0.03);
        }
        #players-inputs .control-panel .input-pro,
        #named-preset-input,
        #session-link-input,
        #input-tourney-name,
        #input-tourney-round {
            background: rgba(15, 23, 42, 0.72) !important;
            color: #f8fafc !important;
        }
        #btn-copy-session-link,
        #btn-open-remote,
        #btn-open-qr,
        #undo-btn,
        button[onclick="copyOBS()"],
        button[onclick="resetAll()"],
        button[onclick="swapTeams()"] {
            background: rgba(15, 23, 42, 0.82);
            border-color: rgba(255, 255, 255, 0.06);
            color: #e2e8f0;
        }
        #btn-copy-session-link:hover,
        #btn-open-remote:hover,
        #btn-open-qr:hover,
        button[onclick="copyOBS()"]:hover,
        button[onclick="resetAll()"]:hover,
        button[onclick="swapTeams()"]:hover {
            background: rgba(30, 41, 59, 0.92);
        }
        #undo-btn[disabled] {
            background: rgba(15, 23, 42, 0.7);
            color: #64748b;
            opacity: 0.55;
        }
        #elite-lock-overlay {
            background: linear-gradient(180deg, rgba(15, 23, 42, 0.5) 0%, rgba(15, 23, 42, 0.66) 100%);
            border: 1px solid rgba(245, 158, 11, 0.18);
            backdrop-filter: blur(1px);
        }
        .section-shell {
            background: linear-gradient(180deg, rgba(27, 34, 57, 0.72) 0%, rgba(18, 24, 43, 0.92) 100%);
            border: 1px solid rgba(255, 255, 255, 0.06);
        }

        .branding-footer { width: 100%; background: rgba(2, 6, 23, 0.92); color: #94a3b8; text-align: center; font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.2em; padding: 4px 0; border-top: 1px solid rgba(255,255,255,0.08); }
        #display-match-input {
            background: transparent !important;
            color: #f8fafc !important;
            font-weight: 900;
            letter-spacing: 0.18em;
            border: none !important;
            box-shadow: none !important;
        }
        #display-match-input:hover,
        #display-match-input:focus {
            background: transparent !important;
        }
        #display-match-input::placeholder { color: #94a3b8; }
        .player-count-label {
            color: #f8fafc !important;
            opacity: 1 !important;
            letter-spacing: 0.12em;
            font-size: 8px;
        }
        .player-count-btn {
            width: 2rem;
            height: 2rem;
            border-radius: 0.75rem;
            background: rgba(51, 65, 85, 0.92) !important;
            border: 1px solid rgba(255,255,255,0.08) !important;
            color: #f8fafc !important;
            font-size: 10px;
            font-weight: 800;
            transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
        }
        .player-count-btn:hover {
            background: rgba(124, 58, 237, 0.82) !important;
            border-color: rgba(196, 181, 253, 0.5) !important;
        }
        .player-count-btn.is-active {
            background: #9333ea !important;
            border-color: #a855f7 !important;
            color: #ffffff !important;
        }
        .preset-chip {
            padding: 0.45rem 0.7rem;
            border-radius: 0.75rem;
            background: rgba(51, 65, 85, 0.92) !important;
            border: 1px solid rgba(255,255,255,0.08) !important;
            color: #e2e8f0 !important;
            font-size: 10px;
            font-weight: 800;
            text-transform: uppercase;
            transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
        }
        .preset-chip:hover {
            background: rgba(71, 85, 105, 0.98) !important;
            color: #ffffff !important;
        }
        .timer-minute-editor {
            display: inline-flex;
            align-items: center;
            gap: 0;
            padding: 0.25rem 0.35rem;
            border-radius: 0.85rem;
            background: rgba(10, 14, 28, 0.94) !important;
            border: 1px solid rgba(255,255,255,0.12) !important;
            box-shadow: inset 0 1px 0 rgba(255,255,255,0.04);
        }
        .timer-minute-input {
            width: 2.45rem;
            height: 1.6rem;
            border: 0;
            background: transparent !important;
            color: #ffffff !important;
            text-align: center;
            font-size: 12px;
            font-weight: 900;
            outline: none;
            -moz-appearance: textfield;
        }
        .timer-minute-input + .timer-minute-input {
            margin-left: 0.05rem;
        }
        .timer-minute-input:focus {
            background: rgba(255,255,255,0.04) !important;
            border-radius: 0.45rem;
        }
        .timer-minute-input::-webkit-outer-spin-button,
        .timer-minute-input::-webkit-inner-spin-button {
            opacity: 0;
            transition: opacity 0.15s ease;
        }
        .timer-minute-input:hover::-webkit-outer-spin-button,
        .timer-minute-input:hover::-webkit-inner-spin-button,
        .timer-minute-input:focus::-webkit-outer-spin-button,
        .timer-minute-input:focus::-webkit-inner-spin-button {
            opacity: 1;
        }
        .seo-copy,
        .seo-copy p,
        .seo-copy .faq-answer {
            color: #dbe7ff !important;
            opacity: 1 !important;
        }
        .faq-card {
            background: linear-gradient(180deg, rgba(28, 35, 58, 0.78) 0%, rgba(18, 24, 43, 0.94) 100%) !important;
            border: 1px solid rgba(255, 255, 255, 0.07) !important;
            box-shadow: inset 0 1px 0 rgba(255,255,255,0.03), 0 14px 30px rgba(2, 6, 23, 0.14);
        }
        .faq-card h3 {
            color: #f8fafc !important;
            opacity: 1 !important;
        }
        .faq-card p,
        .faq-card .faq-answer {
            color: #dbe7ff !important;
            opacity: 1 !important;
        }
        .seo-copy .text-slate-500,
        .seo-copy .text-slate-400,
        .seo-copy .text-slate-300 {
            color: #dbe7ff !important;
            opacity: 1 !important;
        }
        .seo-copy h2 {
            color: #f8fafc !important;
            opacity: 1 !important;
            text-shadow: 0 2px 10px rgba(15, 23, 42, 0.35);
        }
        .seo-copy strong,
        .seo-copy em {
            color: #f8fafc;
        }
        .insight-pro-card h3,
        .studio-upgrade-card h3 {
            color: #f8fafc !important;
        }
        .insight-pro-card ul,
        .insight-pro-card li,
        .studio-upgrade-card ul,
        .studio-upgrade-card li {
            color: #e2e8f0 !important;
        }
        .insight-pro-card i.text-blue-500\/50,
        .studio-upgrade-card i.text-amber-500\/50 {
            opacity: 0.95;
        }
        .studio-upgrade-card a {
            color: #fef08a !important;
            border-color: rgba(250, 204, 21, 0.55) !important;
            background: rgba(250, 204, 21, 0.08) !important;
            box-shadow: inset 0 1px 0 rgba(255,255,255,0.05);
        }
        .studio-upgrade-card a:hover {
            color: #111827 !important;
            background: rgba(245, 158, 11, 0.95) !important;
        }
        .streaming-suite-card h3,
        .streaming-suite-card p,
        .streaming-suite-card a {
            color: #e2e8f0 !important;
            opacity: 1 !important;
        }
        .streaming-suite-link {
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            gap: 0.35rem;
            padding: 0.65rem 0.5rem;
            border-radius: 0.75rem;
            background: rgba(30, 41, 59, 0.96) !important;
            border: 1px solid rgba(255, 255, 255, 0.08) !important;
            color: #e2e8f0 !important;
            text-align: center;
            font-size: 10px;
            font-weight: 700;
            line-height: 1.25;
            box-shadow: inset 0 1px 0 rgba(255,255,255,0.03);
            transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
        }
        .streaming-suite-link:hover {
            background: rgba(124, 58, 237, 0.92) !important;
            border-color: rgba(196, 181, 253, 0.55) !important;
            color: #ffffff !important;
            transform: translateY(-1px);
        }
        .streaming-suite-link i {
            color: #a855f7 !important;
        }
        .streaming-suite-link:hover i {
            color: #ffffff !important;
        }
        .session-live-card p,
        .session-live-card .text-slate-300,
        .session-live-card .text-slate-400 {
            color: #e2e8f0 !important;
            opacity: 1 !important;
        }
        .session-live-card #session-status-badge {
            color: #f8fafc !important;
        }
        .session-live-card .session-kicker {
            color: #f8fafc !important;
        }
        .sb-session-badge {
            padding: 0.25rem 0.5rem;
            border-radius: 999px;
            font-size: 9px;
            font-weight: 900;
            text-transform: uppercase;
            letter-spacing: 0.08em;
            border: 1px solid rgba(255,255,255,0.06);
        }
        .sb-session-badge.is-local {
            background: rgba(15, 23, 42, 0.88) !important;
            color: #f8fafc !important;
        }
        .sb-session-badge.is-live {
            background: rgba(16, 185, 129, 0.14) !important;
            border-color: rgba(16, 185, 129, 0.24) !important;
            color: #d1fae5 !important;
        }
        .sb-session-toggle {
            flex: 1;
            padding: 0.625rem 0.75rem;
            border-radius: 0.75rem;
            font-size: 10px;
            font-weight: 900;
            text-transform: uppercase;
            letter-spacing: 0.08em;
            transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
            color: #f8fafc !important;
        }
        .sb-session-toggle.is-create {
            background: #9333ea !important;
        }
        .sb-session-toggle.is-create:hover {
            background: #a855f7 !important;
        }
        .sb-session-toggle.is-live {
            background: #e11d48 !important;
        }
        .sb-session-toggle.is-live:hover {
            background: #f43f5e !important;
        }
        .sb-secondary-btn {
            padding: 0.625rem 0.75rem;
            border-radius: 0.75rem;
            border: 1px solid rgba(255,255,255,0.06) !important;
            background: rgba(15, 23, 42, 0.88) !important;
            color: #e2e8f0 !important;
            font-size: 10px;
            font-weight: 900;
            text-transform: uppercase;
            letter-spacing: 0.08em;
            transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, opacity 0.2s ease;
        }
        .sb-secondary-btn:hover {
            background: rgba(30, 41, 59, 0.94) !important;
            color: #f8fafc !important;
        }
        .sb-secondary-btn.is-disabled,
        .sb-secondary-btn:disabled {
            background: rgba(30, 41, 59, 0.88) !important;
            color: #cbd5e1 !important;
            border-color: rgba(255,255,255,0.08) !important;
            cursor: not-allowed;
            opacity: 0.92 !important;
        }
        .sb-secondary-btn.is-disabled:hover,
        .sb-secondary-btn:disabled:hover {
            background: rgba(30, 41, 59, 0.88) !important;
            color: #cbd5e1 !important;
        }
        .sb-secondary-btn.full-width {
            width: 100%;
        }
        .sb-secondary-btn.flex-fill {
            flex: 1;
        }
        .scoreboard-shortcuts {
            background: rgba(15, 23, 42, 0.86) !important;
            border: 1px solid rgba(255, 255, 255, 0.08) !important;
            box-shadow: inset 0 1px 0 rgba(255,255,255,0.03);
        }
        .scoreboard-shortcuts-title {
            color: #f8fafc !important;
            opacity: 1 !important;
        }
        .scoreboard-shortcuts-grid {
            color: #e2e8f0 !important;
            opacity: 1 !important;
        }
        .scoreboard-shortcuts-grid span {
            color: #e2e8f0 !important;
        }
        #players-inputs .control-panel {
            padding: 1rem;
            border-radius: 1.75rem;
        }
        .timer-panel-title {
            color: #f8fafc !important;
        }
        .timer-panel-help {
            color: #e2e8f0 !important;
        }
        kbd { background: rgba(51, 65, 85, 0.9); color: #e2e8f0; border: 1px solid rgba(255,255,255,0.08); }

        /* --- MODE OVERLAY (bouton "Mode overlay" ou URL OBS ?mode=overlay) --- */
        body.overlay-mode .ui-element,
        body.overlay-mode .sidebar,
        body.overlay-mode nav.nav-glass,
        body.overlay-mode #toolSuggestionToast,
        body.overlay-mode .mts-cluster-subnav { display: none !important; }
        /* sélecteurs renforcés : header.js injecte un fond en !important sur body[data-mts-cluster] */
        html.overlay-mode,
        html.overlay-mode body.overlay-mode,
        html.overlay-mode body.overlay-mode[data-mts-cluster],
        html.overlay-mode body.overlay-mode[data-mts-cluster] .main-content { background: transparent !important; }
        body.overlay-mode .page-shell::before { display: none !important; }
        body.overlay-mode .page-shell { padding: 0 !important; }
        body.overlay-mode .main-content { padding: 0; margin: 0; max-width: none; height: 100vh; display: flex; align-items: center; justify-content: center; background: transparent !important; }
        /* Dans OBS : aucun élément d'interface (toasts, paywall) ne doit apparaître à l'écran */
        html.obs-overlay #toast,
        html.obs-overlay #saas-paywall,
        html.obs-overlay #remote-qr-modal,
        html.obs-overlay #scoreboard-presets-modal { display: none !important; }
        html.obs-overlay #display-match-input { pointer-events: none; }
        .upload-btn { position: relative; overflow: hidden; cursor: pointer; }
        .upload-btn input { position: absolute; opacity: 0; top: 0; left: 0; width: 100%; height: 100%; cursor: pointer; }

        @media (max-width: 1024px) {
            .sidebar { display: none; }
            .hero-shell { flex-direction: column; }
            .hero-rail { min-width: 0; width: 100%; }
        }

/* =============================================================================
 * Nouvelle interface de l'éditeur (aperçu fidèle + onglets)
 * ========================================================================== */

/* Isolation : creator-theme.css (injecté par header.js) force en !important un
   fond blanc sur tous les champs et une bordure claire sur tous les boutons. */
.sb-editor input.sb-input, .sb-editor select.sb-input, .sb-editor textarea.sb-input {
    background: rgba(15,23,42,.78) !important; color: #fff !important; border-color: rgba(255,255,255,.1) !important; box-shadow: none !important;
}
.sb-editor input.sb-input:focus, .sb-editor select.sb-input:focus, .sb-editor textarea.sb-input:focus { border-color: #8b5cf6 !important; }
.sb-editor .sb-preset input { background: transparent !important; color: #fff !important; border-color: transparent !important; box-shadow: none !important; }
.sb-editor input[type="color"], .sb-editor input[type="range"], .sb-editor input[type="checkbox"] { background: transparent !important; border-color: transparent !important; box-shadow: none !important; }
.sb-editor input::placeholder, .sb-editor textarea::placeholder { color: #64748b !important; }
.sb-editor select.sb-input option { background: #0f172a; color: #fff; }
.sb-editor button { border-color: rgba(255,255,255,.08) !important; }
.sb-editor .sb-btn-plus { border-color: rgba(196,181,253,.3) !important; }
.sb-editor .sb-btn-minus, .sb-editor .sb-btn-danger { border-color: rgba(244,63,94,.28) !important; }
.sb-editor .sb-btn-accent, .sb-editor .sb-sport.is-active, .sb-editor .sb-theme.is-active { border-color: #a78bfa !important; }
.sb-editor .sb-btn-go { border-color: #34d399 !important; }
.sb-editor .sb-btn-warn { border-color: #fbbf24 !important; }
.sb-editor .sb-btn-studio { border-color: rgba(250,204,21,.45) !important; }
.sb-editor .sb-logo-btn { border-color: rgba(255,255,255,.18) !important; }
.sb-editor .sb-tabs { background: rgba(15,23,42,.88) !important; border-color: rgba(255,255,255,.07) !important; }
.sb-editor .rajdhani { color: inherit !important; }
.sb-editor { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 22px; align-items: start; }
.sb-left { position: sticky; top: 140px; display: flex; flex-direction: column; gap: 12px; }
.sb-right { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
@media (max-width: 1100px) {
    .sb-editor { grid-template-columns: minmax(0, 1fr); }
    .sb-left { position: relative; top: 0; }
}

.sb-preview-card { background: linear-gradient(180deg, rgba(28,35,58,.72), rgba(18,24,43,.92)); border: 1px solid rgba(255,255,255,.07); border-radius: 22px; padding: 12px; box-shadow: 0 18px 36px rgba(2,6,23,.25); }
.sb-preview-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 10px; flex-wrap: wrap; }
.sb-preview-title { font-family: 'Rajdhani', sans-serif; font-weight: 700; font-size: 15px; text-transform: uppercase; letter-spacing: .08em; color: #f8fafc; display: flex; align-items: center; gap: 8px; }
.sb-preview-title small { font-family: 'Inter', sans-serif; font-size: 10px; color: #94a3b8; letter-spacing: .04em; text-transform: none; font-weight: 600; }
.sb-quickbar { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 6px; }
.sb-quickbar .sb-btn { flex-direction: column; gap: 3px; padding: 9px 4px; font-size: 9px; }
.sb-quickbar .sb-btn i { font-size: 14px; }
@media (max-width: 520px) {
    .sb-quickbar { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .sb-preview-title small { display: none; }
    .sb-obs-cta { flex-direction: column; align-items: stretch; }
}
.sb-obs-cta { display: flex; align-items: center; gap: 10px; background: rgba(15,23,42,.8); border: 1px solid rgba(139,92,246,.25); border-radius: 16px; padding: 10px 12px; }
.sb-obs-cta p { margin: 0; font-size: 11px; color: #cbd5e1; line-height: 1.4; flex: 1; }

.sb-chip { display: inline-flex; align-items: center; gap: 5px; padding: 3px 9px; border-radius: 999px; font-size: 9px; font-weight: 900; text-transform: uppercase; letter-spacing: .08em; background: rgba(15,23,42,.9); color: #e2e8f0; border: 1px solid rgba(255,255,255,.08); white-space: nowrap; }
.sb-chip.is-live { background: rgba(16,185,129,.15); color: #a7f3d0; border-color: rgba(16,185,129,.3); }
.sb-chip.is-live::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #10b981; box-shadow: 0 0 8px #10b981; }

.sb-tabs { display: flex; gap: 4px; padding: 5px; background: rgba(15,23,42,.85); border: 1px solid rgba(255,255,255,.07); border-radius: 16px; overflow-x: auto; position: sticky; top: 128px; z-index: 30; backdrop-filter: blur(12px); }
.sb-tab { flex: 1; display: flex; align-items: center; justify-content: center; gap: 7px; padding: 10px 12px; border-radius: 12px; font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: #94a3b8; white-space: nowrap; transition: background .2s, color .2s; }
.sb-tab:hover { color: #fff; background: rgba(255,255,255,.04); }
.sb-tab.is-active { background: #7c3aed; color: #fff; box-shadow: 0 8px 20px rgba(124,58,237,.35); }
@media (max-width: 1100px) { .sb-tabs { top: 120px; } .sb-tab span { display: none; } .sb-tab { padding: 11px; } }
@media (min-width: 1101px) and (max-width: 1350px) { .sb-tab span { font-size: 10px; } .sb-tab { gap: 5px; padding: 10px 6px; } }

.sb-panel { display: flex; flex-direction: column; gap: 14px; }
.sb-card { background: linear-gradient(180deg, rgba(28,35,58,.72), rgba(18,24,43,.92)); border: 1px solid rgba(255,255,255,.07); border-radius: 20px; padding: 16px; display: flex; flex-direction: column; gap: 12px; }
.sb-card-title { font-family: 'Rajdhani', sans-serif; font-weight: 700; font-size: 14px; text-transform: uppercase; letter-spacing: .06em; color: #f8fafc; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.sb-card-title > i:first-child { color: #a78bfa; }
.sb-help { font-size: 11px; line-height: 1.55; color: #cbd5e1; margin: 0; }
.sb-help code { font-size: 10px; background: rgba(0,0,0,.35); padding: 1px 5px; border-radius: 5px; color: #ddd6fe; word-break: break-word; }
.sb-label { font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; color: #e2e8f0; }
.sb-lock { color: #fbbf24; font-size: 10px; margin-left: 4px; }
.sb-grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.sb-grid2.sb-card { display: grid; }
.sb-span2 { grid-column: span 2; }
@media (max-width: 640px) { .sb-grid2 { grid-template-columns: minmax(0, 1fr); } .sb-span2 { grid-column: auto; } }
.sb-stack { display: flex; flex-direction: column; gap: 12px; }
.sb-inline { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.sb-inline .sb-input { flex: 1; min-width: 140px; }
.sb-wrap { display: flex; gap: 6px; flex-wrap: wrap; }
.sb-field { display: flex; flex-direction: column; gap: 6px; }
.sb-field-inline { display: flex; align-items: center; gap: 8px; }

.sb-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 9px 14px; border-radius: 11px; font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; color: #f8fafc; background: rgba(51,65,85,.92); border: 1px solid rgba(255,255,255,.08); transition: background .15s, transform .1s, opacity .15s; white-space: nowrap; cursor: pointer; }
.sb-btn:hover { background: rgba(71,85,105,.98); }
.sb-btn:active { transform: scale(.97); }
.sb-btn:disabled { opacity: .45; cursor: not-allowed; }
.sb-btn-sm { padding: 7px 11px; font-size: 10px; border-radius: 9px; }
.sb-btn-xs { padding: 5px 8px; font-size: 9px; border-radius: 8px; }
.sb-btn-wide { flex: 1; }
.sb-btn-plus { background: rgba(124,58,237,.85); border-color: rgba(196,181,253,.3); min-width: 46px; }
.sb-btn-plus:hover { background: #8b5cf6; }
.sb-btn-minus { background: rgba(136,19,55,.72); border-color: rgba(244,63,94,.25); color: #fecdd3; min-width: 40px; }
.sb-btn-minus:hover { background: #e11d48; color: #fff; }
.sb-btn-accent { background: #7c3aed; border-color: #a78bfa; }
.sb-btn-accent:hover { background: #8b5cf6; }
.sb-btn-go { background: #059669; border-color: #34d399; }
.sb-btn-go:hover { background: #10b981; }
.sb-btn-warn { background: #d97706; border-color: #fbbf24; }
.sb-btn-warn:hover { background: #f59e0b; }
.sb-btn-danger { background: rgba(136,19,55,.6); border-color: rgba(244,63,94,.3); color: #fecdd3; }
.sb-btn-danger:hover { background: #e11d48; color: #fff; }
.sb-btn-ghost { background: rgba(15,23,42,.7); }
.sb-btn-studio { background: rgba(250,204,21,.1); color: #fef08a; border-color: rgba(250,204,21,.45); align-self: flex-start; }
.sb-btn-studio:hover { background: #f59e0b; color: #111827; }

.sb-input { background: rgba(15,23,42,.78); border: 1px solid rgba(255,255,255,.1); color: #fff; padding: 9px 12px; border-radius: 10px; font-size: 12px; font-weight: 700; outline: none; width: 100%; transition: border-color .2s; font-family: inherit; }
.sb-input:focus { border-color: #8b5cf6; }
.sb-input:disabled { opacity: .5; cursor: not-allowed; }
.sb-input::placeholder { color: #64748b; font-weight: 600; }
textarea.sb-input { resize: vertical; font-weight: 600; line-height: 1.5; }
select.sb-input { cursor: pointer; }
.sb-color { width: 34px; height: 34px; border: none; background: transparent; cursor: pointer; padding: 0; flex-shrink: 0; }
.sb-color-lg { width: 100%; height: 38px; }

.sb-seg { display: inline-flex; background: rgba(15,23,42,.8); border: 1px solid rgba(255,255,255,.08); border-radius: 10px; padding: 3px; gap: 2px; }
.sb-seg button { padding: 6px 10px; border-radius: 8px; font-size: 10px; font-weight: 900; color: #94a3b8; }
.sb-seg button.is-active { background: #7c3aed; color: #fff; }

.sb-sports { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.sb-sport { display: flex; flex-direction: column; align-items: center; gap: 5px; padding: 10px 4px; border-radius: 12px; background: rgba(15,23,42,.7); border: 1px solid rgba(255,255,255,.07); color: #cbd5e1; font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; transition: all .15s; }
.sb-sport i { font-size: 16px; color: #a78bfa; }
.sb-sport:hover { border-color: rgba(167,139,250,.4); color: #fff; }
.sb-sport.is-active { background: #7c3aed; border-color: #a78bfa; color: #fff; }
.sb-sport.is-active i { color: #fff; }
.sb-options { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; }

.sb-players { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
@media (max-width: 640px) { .sb-players { grid-template-columns: minmax(0, 1fr); } }
.sb-player { border-top: 3px solid var(--team); gap: 10px; }
.sb-player.is-winner { box-shadow: 0 0 0 2px #22c55e inset; }
.sb-player-head { display: flex; align-items: center; gap: 8px; }
.sb-name-input { flex: 1; min-width: 0; text-transform: uppercase; }
.sb-logo-btn { width: 38px; height: 38px; border-radius: 10px; background: rgba(15,23,42,.85); border: 1px dashed rgba(255,255,255,.18); display: flex; align-items: center; justify-content: center; overflow: hidden; color: #cbd5e1; flex-shrink: 0; }
.sb-logo-btn img { width: 100%; height: 100%; object-fit: contain; }
.sb-logo-btn .fa-lock { color: #fbbf24; font-size: 11px; }
.sb-x { color: #94a3b8; font-size: 11px; padding: 2px 4px; }
.sb-x:hover { color: #fb7185; }
.sb-scoreline { display: flex; align-items: center; gap: 6px; background: rgba(10,14,28,.6); border: 1px solid rgba(255,255,255,.06); padding: 8px; border-radius: 14px; }
.sb-score-val { flex: 1; min-width: 44px; text-align: center; font-family: 'Rajdhani', sans-serif; font-weight: 700; font-size: 34px; line-height: 1; color: var(--team); }
.sb-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.sb-row-ctrl { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.sb-val { min-width: 30px; text-align: center; font-weight: 900; font-size: 15px; color: #fff; }
.sb-val-wide { min-width: 70px; font-size: 13px; text-transform: uppercase; }
.sb-mini { font-size: 10px; color: #a5b4fc; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; }
.sb-cardchip { min-width: 24px; height: 30px; border-radius: 4px; display: inline-flex; align-items: center; justify-content: center; font-weight: 900; font-size: 13px; color: #111; }
.sb-cardchip.is-y { background: #facc15; }
.sb-cardchip.is-r { background: #ef4444; color: #fff; }
.sb-bonus { background: #f97316; color: #111; padding: 1px 6px; border-radius: 4px; font-size: 9px; }
.sb-shot-val { font-size: 20px; color: #fbbf24; font-family: 'Rajdhani', sans-serif; }

.sb-clock-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.sb-clock { font-family: 'Rajdhani', monospace; font-weight: 700; font-size: 40px; color: #c4b5fd; min-width: 120px; font-variant-numeric: tabular-nums; line-height: 1; }
.sb-presets { display: flex; gap: 8px; flex-wrap: wrap; }
.sb-preset { display: inline-flex; align-items: center; background: rgba(10,14,28,.7); border: 1px solid rgba(255,255,255,.08); border-radius: 10px; padding: 2px 2px 2px 6px; gap: 4px; }
.sb-preset input { width: 40px; background: transparent; border: none; color: #fff; font-weight: 900; font-size: 12px; text-align: center; outline: none; }

.sb-themes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
@media (max-width: 640px) { .sb-themes { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.sb-theme { display: flex; flex-direction: column; gap: 6px; padding: 10px; border-radius: 14px; background: rgba(15,23,42,.7); border: 1px solid rgba(255,255,255,.07); text-align: left; transition: border-color .15s; }
.sb-theme:hover { border-color: rgba(167,139,250,.45); }
.sb-theme.is-active { border-color: #a78bfa; box-shadow: 0 0 0 2px rgba(167,139,250,.35); }
.sb-theme-name { font-size: 11px; font-weight: 900; text-transform: uppercase; color: #fff; letter-spacing: .04em; }
.sb-theme-desc { font-size: 10px; color: #94a3b8; line-height: 1.35; }
.sb-theme-thumb { height: 42px; border-radius: 8px; background: #0b1220; position: relative; overflow: hidden; display: block; }
.sb-theme-thumb i { position: absolute; display: block; }
.sb-thumb-classic i:nth-child(1) { left: 10%; right: 10%; top: 14%; height: 72%; background: #1e293b; border-radius: 6px; border: 1px solid #6d28d9; }
.sb-thumb-classic i:nth-child(2) { left: 16%; top: 48%; width: 18%; height: 26%; background: #8b5cf6; border-radius: 3px; }
.sb-thumb-classic i:nth-child(3) { right: 16%; top: 48%; width: 18%; height: 26%; background: #3b82f6; border-radius: 3px; }
.sb-thumb-compact i:nth-child(1) { left: 8%; top: 12%; width: 38%; height: 76%; background: #1e293b; border-radius: 5px; }
.sb-thumb-compact i:nth-child(2) { left: 8%; top: 40%; width: 4%; height: 18%; background: #8b5cf6; }
.sb-thumb-compact i:nth-child(3) { left: 8%; top: 64%; width: 4%; height: 18%; background: #3b82f6; }
.sb-thumb-tvbar i:nth-child(1) { left: 12%; width: 30%; top: 32%; height: 36%; background: #8b5cf6; }
.sb-thumb-tvbar i:nth-child(2) { left: 42%; width: 16%; top: 32%; height: 36%; background: #000; }
.sb-thumb-tvbar i:nth-child(3) { left: 58%; width: 30%; top: 32%; height: 36%; background: #3b82f6; }
.sb-thumb-esport i:nth-child(1) { left: 10%; width: 32%; top: 30%; height: 40%; background: #0f0f24; border-bottom: 3px solid #ec4899; transform: skewX(-14deg); }
.sb-thumb-esport i:nth-child(2) { left: 43%; width: 14%; top: 30%; height: 40%; background: #a78bfa; transform: skewX(-14deg); }
.sb-thumb-esport i:nth-child(3) { left: 58%; width: 32%; top: 30%; height: 40%; background: #0f0f24; border-bottom: 3px solid #22d3ee; transform: skewX(-14deg); }
.sb-thumb-minimal i:nth-child(1) { left: 18%; width: 22%; top: 40%; height: 18%; background: #fff; border-radius: 3px; opacity: .9; }
.sb-thumb-minimal i:nth-child(2) { left: 45%; width: 10%; top: 36%; height: 26%; background: #a78bfa; border-radius: 3px; }
.sb-thumb-minimal i:nth-child(3) { left: 60%; width: 22%; top: 40%; height: 18%; background: #fff; border-radius: 3px; opacity: .9; }
.sb-thumb-gold i:nth-child(1) { left: 10%; right: 10%; top: 14%; height: 72%; background: #111; border: 2px solid #d97706; border-radius: 4px; }
.sb-thumb-gold i:nth-child(2) { left: 10%; right: 10%; top: 14%; height: 18%; background: #f59e0b; }
.sb-thumb-gold i:nth-child(3) { left: 40%; width: 20%; top: 52%; height: 22%; background: #f59e0b; border-radius: 3px; opacity: .7; }

.sb-posgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; aspect-ratio: 16 / 9; background: rgba(10,14,28,.7); border: 1px solid rgba(255,255,255,.08); border-radius: 12px; padding: 8px; max-width: 280px; }
.sb-pos { border-radius: 6px; background: rgba(51,65,85,.5); border: 1px solid rgba(255,255,255,.06); transition: background .15s; }
.sb-pos:hover { background: rgba(124,58,237,.45); }
.sb-pos.is-active { background: #7c3aed; box-shadow: 0 0 12px rgba(124,58,237,.6); }
.sb-range { display: flex; flex-direction: column; gap: 6px; font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; color: #e2e8f0; }
.sb-range span { display: flex; justify-content: space-between; }
.sb-range b { color: #c4b5fd; }
.sb-range input { accent-color: #8b5cf6; width: 100%; }
.sb-range input:disabled { opacity: .4; }
.sb-toggles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
@media (max-width: 640px) { .sb-toggles { grid-template-columns: minmax(0, 1fr); } }
.sb-toggle { display: flex; align-items: center; gap: 10px; font-size: 11px; font-weight: 700; color: #e2e8f0; cursor: pointer; }
.sb-toggle input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.sb-toggle span { width: 34px; height: 20px; border-radius: 999px; background: #334155; position: relative; flex-shrink: 0; transition: background .2s; }
.sb-toggle span::after { content: ""; position: absolute; top: 3px; left: 3px; width: 14px; height: 14px; border-radius: 50%; background: #fff; transition: transform .2s; }
.sb-toggle input:checked + span { background: #7c3aed; }
.sb-toggle input:checked + span::after { transform: translateX(14px); }
.sb-toggle input:focus-visible + span { outline: 2px solid #a78bfa; outline-offset: 2px; }
.sb-toggle input:disabled + span { opacity: .4; }

.sb-steps { display: flex; flex-direction: column; gap: 12px; }
.sb-step { display: flex; gap: 12px; align-items: flex-start; }
.sb-step > div { display: flex; flex-direction: column; gap: 6px; align-items: flex-start; }
.sb-step-n { width: 28px; height: 28px; border-radius: 50%; background: rgba(124,58,237,.25); color: #ddd6fe; display: flex; align-items: center; justify-content: center; font-weight: 900; font-size: 12px; flex-shrink: 0; border: 1px solid rgba(167,139,250,.4); }
.sb-step.is-done .sb-step-n { background: #059669; color: #fff; border-color: #34d399; }
.sb-step-title { font-size: 12px; font-weight: 900; color: #fff; text-transform: uppercase; letter-spacing: .04em; }
.sb-sources { display: flex; flex-direction: column; gap: 6px; }
.sb-source { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 10px; border-radius: 10px; background: rgba(10,14,28,.55); border: 1px solid rgba(255,255,255,.05); font-size: 11px; font-weight: 700; color: #e2e8f0; }

.sb-upsell { border-color: rgba(250,204,21,.25); background: linear-gradient(180deg, rgba(66,32,6,.45), rgba(18,24,43,.92)); }
.sb-check { display: inline-flex; align-items: center; gap: 6px; padding: 5px 9px; border-radius: 9px; background: rgba(15,23,42,.8); border: 1px solid rgba(255,255,255,.08); font-size: 10px; font-weight: 800; text-transform: uppercase; color: #e2e8f0; cursor: pointer; }
.sb-check span { width: 10px; height: 10px; border-radius: 3px; }
.sb-check input { accent-color: #8b5cf6; }
.sb-trn-current { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; background: rgba(10,14,28,.6); border: 1px solid rgba(124,58,237,.3); border-radius: 14px; padding: 12px; }
.sb-trn-vs { font-family: 'Rajdhani', sans-serif; font-weight: 700; font-size: 20px; text-transform: uppercase; color: #fff; }
.sb-trn-vs small, .sb-trn-match small { color: #94a3b8; font-size: 11px; margin: 0 4px; }
.sb-trn-list { display: flex; flex-direction: column; gap: 12px; max-height: 520px; overflow-y: auto; padding-right: 4px; }
.sb-trn-round { display: flex; flex-direction: column; gap: 5px; }
.sb-trn-match { display: flex; align-items: center; gap: 8px; justify-content: space-between; padding: 7px 10px; border-radius: 10px; background: rgba(10,14,28,.5); border: 1px solid rgba(255,255,255,.05); font-size: 12px; font-weight: 700; color: #e2e8f0; text-transform: uppercase; }
.sb-trn-match > span:first-child { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sb-trn-match.is-done { opacity: .75; }
.sb-trn-match.is-live { border-color: #10b981; }
.sb-champion { background: linear-gradient(90deg, #b45309, #f59e0b); color: #1c1003; font-weight: 900; text-transform: uppercase; padding: 10px 14px; border-radius: 12px; font-family: 'Rajdhani', sans-serif; font-size: 18px; }
.sb-team-list { display: flex; flex-direction: column; gap: 6px; max-height: 420px; overflow-y: auto; }
.sb-team-row { display: flex; align-items: center; gap: 8px; padding: 7px 10px; border-radius: 10px; background: rgba(10,14,28,.5); border: 1px solid rgba(255,255,255,.05); }
.sb-team-logo { width: 28px; height: 28px; border-radius: 7px; overflow: hidden; flex-shrink: 0; display: flex; }
.sb-team-logo img { width: 100%; height: 100%; object-fit: contain; background: rgba(255,255,255,.9); }
.sb-team-name { flex: 1; min-width: 0; font-size: 12px; font-weight: 800; color: #fff; text-transform: uppercase; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sb-team-name small { color: #94a3b8; font-weight: 600; text-transform: none; margin-left: 6px; }
.sb-kbd-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; font-size: 11px; color: #e2e8f0; }
.sb-kbd-grid kbd { background: rgba(51,65,85,.9); color: #e2e8f0; border: 1px solid rgba(255,255,255,.1); border-radius: 5px; padding: 1px 6px; font-size: 10px; font-family: 'Inter', sans-serif; }

/* bouton masqué (ex. « retirer ma photo » sans photo perso) */
.sb-btn.hidden { display: none !important; }

/* Kits de stream : vignettes Verre et Rétro */
.sb-thumb-glass { background: linear-gradient(135deg, #312e81, #0e7490); }
.sb-thumb-glass i:nth-child(1) { left: 10%; right: 10%; top: 16%; height: 68%; background: rgba(255,255,255,.18); border: 1px solid rgba(255,255,255,.5); border-radius: 6px; }
.sb-thumb-glass i:nth-child(2) { left: 22%; width: 18%; top: 40%; height: 22%; background: #fff; border-radius: 3px; opacity: .85; }
.sb-thumb-glass i:nth-child(3) { right: 22%; width: 18%; top: 40%; height: 22%; background: #fff; border-radius: 3px; opacity: .85; }
.sb-thumb-retro { background: #000; }
.sb-thumb-retro i:nth-child(1) { left: 10%; right: 10%; top: 14%; height: 72%; border: 3px solid #facc15; }
.sb-thumb-retro i:nth-child(2) { left: 24%; width: 14%; top: 40%; height: 24%; background: #fde047; box-shadow: 2px 2px 0 #b91c1c; }
.sb-thumb-retro i:nth-child(3) { right: 24%; width: 14%; top: 40%; height: 24%; background: #fde047; box-shadow: 2px 2px 0 #b91c1c; }
