/*
 * seasonal.css
 * Page-specific styles for the root seasonal.php (seasonal tournament standings page)
 * Extracted from the inline <style> block in the page markup.
 *
 * NOTE: the original markup had a stray duplicate </style> closing tag
 * right after the real one (harmless in browsers, but invalid HTML).
 * Extracting to a single external stylesheet resolves it.
 */

        :root {
            --pp-dark: #0a1a17;
            --pp-dark-2: #112922;
            --pp-felt: #0d7a4a;
            --pp-felt-light: #15a060;
            --pp-gold: #d4a843;
            --pp-gold-light: #e6c06a;
            --pp-cream: #f4efe3;
            --pp-cream-dark: #e8dfcd;
            --pp-red: #b71c1c;
            --pp-bg: #f5f3ef;
            --card-shadow: 0 2px 12px rgba(0,0,0,0.06);
            --card-shadow-hover: 0 8px 30px rgba(0,0,0,0.1);
        }
        * { box-sizing: border-box; }
        html, body { overflow-x: hidden; max-width: 100%; }
        html { overflow-y: scroll; scrollbar-width: none; -ms-overflow-style: none; }
        html::-webkit-scrollbar { display: none; width: 0; background: transparent; }
        body {
            font-family: 'Poppins', system-ui, sans-serif;
            color: #222;
            background: var(--pp-bg);
            margin: 0;
            padding-top: 60px;
            line-height: 1.6;
            -webkit-font-smoothing: antialiased;
            display: flex;
            flex-direction: column;
            min-height: 100vh;
        }

        /* ─── NAVBAR ─── */
        .pp-navbar {
            background: var(--pp-dark);
            padding: 12px 0;
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            z-index: 1030;
            transition: transform .3s ease;
        }
        .pp-navbar.nav-hidden { transform: translateY(-100%); }

        /* ─── BREADCRUMB HEADER (replaces the old full nav bar) ─── */
        .breadcrumb-bar {
            background: linear-gradient(120deg, #0d211d 0%, #14372c 100%);
            border: 1px solid rgba(212,168,67,0.12);
            border-radius: 12px;
            box-shadow: 0 2px 12px rgba(0,0,0,0.08);
            padding: 10px 0;
            margin-bottom: 22px;
        }
        .breadcrumb-inner {
            display: flex;
            align-items: center;
            gap: 14px;
            padding: 0 40px;
        }
        .breadcrumb-back {
            flex-shrink: 0;
            width: 38px;
            height: 38px;
            border-radius: 10px;
            border: 1px solid rgba(244,239,227,0.22);
            background: rgba(244,239,227,0.06);
            color: var(--pp-cream);
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 0.95rem;
            cursor: pointer;
            transition: all .2s;
        }
        .breadcrumb-back:hover { border-color: var(--pp-gold); color: var(--pp-gold-light); }
        .breadcrumb-title {
            flex: 1;
            min-width: 0;
            margin: 0;
            color: var(--pp-cream);
            font-family: 'Bebas Neue', sans-serif;
            font-size: 1.3rem;
            letter-spacing: 0.4px;
            text-align: right;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }
        .pp-navbar .navbar-brand {
            color: var(--pp-cream);
            font-weight: 700;
            font-size: 1.35rem;
            display: flex;
            align-items: center;
            gap: 10px;
        }
        .pp-navbar .navbar-brand img { height: 36px; width: 36px; border-radius: 8px; object-fit: cover; }
        .pp-navbar .navbar-brand span { color: var(--pp-gold); }
        .pp-navbar .nav-link {
            color: rgba(244,239,227,0.7) !important;
            font-weight: 500;
            font-size: 0.9rem;
            padding: 6px 14px !important;
            border-radius: 8px;
            transition: all .25s;
        }
        .pp-navbar .nav-link:hover, .pp-navbar .nav-link.active { color: var(--pp-cream) !important; background: rgba(255,255,255,0.06); }
        .btn-pp {
            background: var(--pp-gold);
            color: var(--pp-dark);
            border: none;
            font-weight: 600;
            font-size: 0.85rem;
            padding: 8px 20px;
            border-radius: 8px;
            transition: all .25s;
            text-decoration: none;
            display: inline-flex;
            align-items: center;
            gap: 6px;
        }
        .btn-pp:hover { background: var(--pp-gold-light); color: var(--pp-dark); transform: translateY(-1px); }

        .btn-pp-outline {
            background: transparent;
            color: var(--pp-cream);
            border: 1.5px solid rgba(244,239,227,0.25);
            font-weight: 500;
            font-size: 0.85rem;
            padding: 8px 18px;
            border-radius: 8px;
            transition: all .25s;
            text-decoration: none;
            display: inline-flex;
            align-items: center;
            gap: 6px;
        }
        .btn-pp-outline:hover { border-color: var(--pp-cream); color: var(--pp-cream); }

        /* ─── HERO ─── */
        .hero {
            background: linear-gradient(160deg, #0a1a17 0%, #0d3d2a 60%, #0f5538 100%);
            color: var(--pp-cream);
            padding: 90px 0 70px;
            text-align: center;
            position: relative;
            overflow: hidden;
        }
        .hero::before {
            content: '';
            position: absolute;
            inset: 0;
            background: radial-gradient(ellipse at 30% 50%, rgba(212,168,67,0.08) 0%, transparent 60%),
                        radial-gradient(ellipse at 70% 80%, rgba(13,122,74,0.2) 0%, transparent 50%);
            pointer-events: none;
        }
        .hero h1 {
            font-family: 'Bebas Neue', sans-serif;
            font-size: clamp(2.5rem, 6vw, 4rem);
            letter-spacing: 1.5px;
            margin-bottom: 8px;
            position: relative;
        }
        .hero h1 span { color: var(--pp-gold); }
        .hero p { font-size: 1rem; color: rgba(244,239,227,0.7); max-width: 520px; margin: 0 auto; position: relative; }
        .hero-badge {
            display: inline-flex;
            align-items: center;
            gap: 6px;
            background: rgba(212,168,67,0.12);
            color: var(--pp-gold);
            padding: 6px 18px;
            border-radius: 20px;
            font-weight: 600;
            font-size: 0.78rem;
            letter-spacing: 0.5px;
            margin-bottom: 18px;
            position: relative;
        }

        /* ─── SECTION TITLE ─── */
        .section-title {
            text-align: center;
            margin-bottom: 32px;
        }
        .section-title .eyebrow {
            color: var(--pp-felt);
            font-weight: 600;
            text-transform: uppercase;
            letter-spacing: 1.5px;
            font-size: 0.78rem;
            display: inline-block;
            margin-bottom: 6px;
        }
        .section-title h2 {
            font-family: 'Bebas Neue', sans-serif;
            font-size: clamp(1.8rem, 3.5vw, 2.6rem);
            color: var(--pp-dark);
        }

        /* ─── DETAIL HERO BANNER (full viewport width, bleeds past container padding) ─── */
        .detail-hero {
            position: relative;
            width: 100vw;
            margin-left: calc(50% - 50vw);
            min-height: 280px;
            display: flex;
            flex-direction: column;
            justify-content: flex-end;
            overflow: hidden;
            background: linear-gradient(160deg, #0a1a17 0%, #0d3d2a 60%, #0f5538 100%);
        }
        .detail-hero-img {
            position: absolute;
            inset: 0;
            width: 100%;
            height: 100%;
            object-fit: cover;
        }
        .detail-hero-fallback {
            position: absolute;
            inset: 0;
            display: none;
            align-items: center;
            justify-content: center;
            font-size: 6rem;
            color: rgba(212,168,67,0.08);
        }
        .detail-hero.no-image .detail-hero-fallback { display: flex; }
        .detail-hero-overlay {
            position: absolute;
            inset: 0;
            background: linear-gradient(180deg, rgba(10,26,23,0.35) 0%, rgba(10,26,23,0.55) 45%, rgba(10,26,23,0.95) 100%);
        }
        .detail-hero-inner {
            position: relative;
            z-index: 2;
            padding: 20px 40px 22px;
            color: var(--pp-cream);
        }
        .detail-hero-badge {
            display: inline-flex;
            align-items: center;
            gap: 6px;
            margin: 16px 0 10px;
        }
        .detail-hero-badge .card-badge { position: static; }
        .detail-hero-title {
            font-family: 'Bebas Neue', sans-serif;
            font-size: clamp(1.9rem, 4.5vw, 3rem);
            line-height: 1.1;
            margin-bottom: 8px;
            /* long tournament names wrap onto a second line instead of
               overflowing or squashing the hero */
            display: -webkit-box;
            -webkit-line-clamp: 2;
            -webkit-box-orient: vertical;
            overflow: hidden;
        }
        .detail-hero-tags {
            display: flex;
            flex-wrap: wrap;
            gap: 8px;
        }
        .detail-hero-tags .tag {
            background: rgba(244,239,227,0.1);
            border: 1px solid rgba(244,239,227,0.2);
            color: rgba(244,239,227,0.85);
            font-size: 0.75rem;
            font-weight: 500;
            padding: 4px 12px;
            border-radius: 20px;
            display: inline-flex;
            align-items: center;
            gap: 5px;
        }
        .detail-hero-tags .tag i { color: var(--pp-gold-light); }
        .detail-hero-tags a.tag-link { text-decoration: none; cursor: pointer; transition: background .15s, border-color .15s; }
        .detail-hero-tags a.tag-link:hover,
        .detail-hero-tags a.tag-link:focus-visible { background: rgba(244,239,227,0.2); border-color: var(--pp-gold-light); color: #fff; }

        .detail-hero-share {
            position: absolute;
            top: 18px;
            right: 20px;
            z-index: 3;
            display: inline-flex;
            align-items: center;
            gap: 8px;
            padding: 8px 16px;
            border: 1px solid rgba(244,239,227,0.35);
            background: rgba(10,26,23,0.55);
            color: var(--pp-cream);
            border-radius: 20px;
            font-size: 0.78rem;
            font-weight: 600;
            cursor: pointer;
            white-space: nowrap;
            backdrop-filter: blur(4px);
            transition: all 0.2s ease;
        }
        .detail-hero-share:hover,
        .detail-hero-share.copied {
            background: var(--pp-gold);
            border-color: var(--pp-gold);
            color: var(--pp-dark);
        }

        /* stat strip — a full-width footer bar anchored to the bottom of
           the hero card, so it always uses the full width of the card
           and reads as one connected unit at any screen size */
        .detail-hero-stats {
            position: relative;
            z-index: 2;
            display: grid;
            grid-template-columns: repeat(4, 1fr);
            background: var(--pp-dark);   /* solid: the tournament photo must not show through the stat strip */
            border-top: 1px solid rgba(244,239,227,0.14);
        }
        .detail-hero-stats .stat {
            text-align: center;
            padding: 16px 10px;
            border-left: 1px solid rgba(244,239,227,0.1);
        }
        .detail-hero-stats .stat:first-child { border-left: none; }
        .detail-hero-stats .stat .num {
            font-family: 'Bebas Neue', sans-serif;
            font-size: 1.5rem;
            color: var(--pp-cream);
            line-height: 1;
        }
        .detail-hero-stats .stat .label {
            font-size: 0.62rem;
            text-transform: uppercase;
            letter-spacing: 0.6px;
            color: rgba(244,239,227,0.55);
            margin-top: 5px;
        }
        .detail-hero-stats .stat .num.live { color: var(--pp-felt-light); }
        .detail-hero-stats .stat .num.completed { color: rgba(244,239,227,0.6); }
        .detail-hero-stats .stat .num.upcoming { color: var(--pp-gold-light); }

        /* ─── COUNTY / CONSTITUENCY FILTERS ─── */
        .seasonal-filters {
            background: #fff;
            border: 1px solid #e8e3d9;
            border-radius: 8px;
            box-shadow: var(--card-shadow);
            padding: 14px 16px 12px;
            margin-bottom: 22px;
        }
        .seasonal-filters-top {
            display: flex;
            gap: 12px;
            align-items: center;
            flex-wrap: wrap;
        }
        .seasonal-search {
            position: relative;
            flex: 1 1 260px;
            min-width: 200px;
        }
        .seasonal-search i {
            position: absolute;
            left: 12px;
            top: 50%;
            transform: translateY(-50%);
            color: #a8a094;
            font-size: 0.85rem;
            pointer-events: none;
        }
        .seasonal-search input {
            width: 100%;
            height: 40px;
            padding: 0 12px 0 34px;
            border: 1px solid #e0dad0;
            border-radius: 6px;
            font-size: 0.9rem;
            font-family: inherit;
            color: #2b2b2b;
            background: #fbfaf7;
        }
        .seasonal-search input:focus {
            outline: none;
            border-color: var(--pp-felt-light);
            background: #fff;
        }
        .seasonal-constituency-select {
            flex: 0 1 300px;
            min-width: 180px;
            height: 40px;
            padding: 0 10px;
            border: 1px solid #e0dad0;
            border-radius: 6px;
            font-size: 0.9rem;
            font-family: inherit;
            color: #2b2b2b;
            background: #fbfaf7;
            cursor: pointer;
        }
        .seasonal-constituency-select:focus {
            outline: none;
            border-color: var(--pp-felt-light);
            background: #fff;
        }
        .seasonal-chips {
            display: flex;
            flex-wrap: wrap;
            gap: 7px;
            margin-top: 12px;
        }
        .seasonal-chip {
            display: inline-flex;
            align-items: center;
            gap: 6px;
            padding: 6px 12px;
            border: 1px solid #e0dad0;
            border-radius: 999px;
            background: #fbfaf7;
            color: #5a544a;
            font-size: 0.8rem;
            font-family: inherit;
            cursor: pointer;
            transition: background .15s ease, border-color .15s ease, color .15s ease;
        }
        .seasonal-chip:hover {
            border-color: var(--pp-felt-light);
            color: var(--pp-felt);
        }
        .seasonal-chip.active {
            background: var(--pp-felt);
            border-color: var(--pp-felt);
            color: #fff;
        }
        .seasonal-chip .chip-count {
            font-size: 0.72rem;
            padding: 1px 6px;
            border-radius: 999px;
            background: rgba(0, 0, 0, 0.07);
            color: inherit;
        }
        .seasonal-chip.active .chip-count { background: rgba(255, 255, 255, 0.22); }
        .seasonal-filter-status {
            display: flex;
            align-items: center;
            gap: 12px;
            flex-wrap: wrap;
            margin-top: 10px;
            font-size: 0.78rem;
            color: #8a8377;
        }
        .seasonal-filter-status:empty { display: none; }
        .seasonal-clear {
            border: none;
            background: none;
            padding: 0;
            font-family: inherit;
            font-size: 0.78rem;
            color: var(--pp-felt);
            text-decoration: underline;
            cursor: pointer;
        }
        .seasonal-clear:hover { color: var(--pp-dark); }
        .tournament-card .card-place {
            display: flex;
            align-items: center;
            gap: 5px;
            font-size: 0.74rem;
            color: var(--pp-felt);
            margin: -6px 0 10px;
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
        }
        .tournament-card .card-place i { flex: none; font-size: 0.72rem; }

        /* ─── TOURNAMENT CARDS (match-card style, with cover images) ─── */
        .tournament-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
            gap: 20px;
            margin-bottom: 32px;
        }
        .tournament-card {
            background: white;
            border-radius: 16px;
            box-shadow: var(--card-shadow);
            cursor: pointer;
            transition: transform .25s, box-shadow .25s;
            position: relative;
            overflow: hidden;
            display: flex;
            flex-direction: column;
        }
        .tournament-card:hover {
            transform: translateY(-4px);
            box-shadow: var(--card-shadow-hover);
        }
        .tournament-card:active { transform: scale(0.98); }

        /* cover image */
        .card-media {
            position: relative;
            height: 148px;
            overflow: hidden;
            background: linear-gradient(135deg, var(--pp-dark) 0%, var(--pp-dark-2) 45%, var(--pp-felt) 150%);
            flex-shrink: 0;
        }
        .card-media img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            display: block;
            transition: transform .5s ease;
        }
        .tournament-card:hover .card-media img { transform: scale(1.07); }
        .card-media-fallback {
            position: absolute;
            inset: 0;
            display: none;
            align-items: center;
            justify-content: center;
            font-size: 2.6rem;
            color: rgba(244,239,227,0.16);
        }
        .tournament-card.no-image .card-media-fallback { display: flex; }
        .card-media-overlay {
            position: absolute;
            inset: 0;
            background: linear-gradient(180deg, rgba(10,26,23,0.05) 0%, rgba(10,26,23,0.15) 55%, rgba(10,26,23,0.82) 100%);
        }
        .card-media .card-badge {
            position: absolute;
            top: 12px;
            left: 12px;
            margin: 0;
            z-index: 2;
            backdrop-filter: blur(6px);
            -webkit-backdrop-filter: blur(6px);
            box-shadow: 0 2px 8px rgba(0,0,0,0.18);
        }
        .card-game-chip {
            position: absolute;
            top: 12px;
            right: 12px;
            z-index: 2;
            background: rgba(10,26,23,0.55);
            backdrop-filter: blur(6px);
            -webkit-backdrop-filter: blur(6px);
            color: var(--pp-cream);
            font-size: 0.66rem;
            font-weight: 600;
            padding: 4px 10px;
            border-radius: 20px;
            letter-spacing: 0.2px;
            display: inline-flex;
            align-items: center;
            gap: 5px;
        }
        .card-game-chip i { color: var(--pp-gold-light); font-size: 0.68rem; }
        .card-media-name {
            position: absolute;
            left: 16px;
            right: 16px;
            bottom: 10px;
            z-index: 2;
            font-family: 'Bebas Neue', sans-serif;
            font-size: 1.3rem;
            letter-spacing: 0.3px;
            color: var(--pp-cream);
            line-height: 1.15;
            text-shadow: 0 2px 8px rgba(0,0,0,0.4);
        }

        /* badges — shared by card media, detail hero, and the spotlight */
        .card-badge {
            display: inline-flex;
            align-items: center;
            gap: 5px;
            padding: 4px 11px;
            border-radius: 20px;
            font-size: 0.66rem;
            font-weight: 700;
            text-transform: uppercase;
            letter-spacing: 0.4px;
        }
        .card-badge.live { background: rgba(40,167,69,0.92); color: #fff; }
        .card-badge.upcoming { background: rgba(244,239,227,0.92); color: #8a6d1f; }
        .card-badge.completed { background: rgba(30,30,30,0.62); color: #eee; }
        .live-dot {
            width: 6px; height: 6px;
            border-radius: 50%;
            background: #fff;
            display: inline-block;
            box-shadow: 0 0 0 rgba(255,255,255,0.6);
            animation: livePulse 1.6s infinite;
        }
        @keyframes livePulse {
            0%   { box-shadow: 0 0 0 0 rgba(255,255,255,0.65); }
            70%  { box-shadow: 0 0 0 7px rgba(255,255,255,0); }
            100% { box-shadow: 0 0 0 0 rgba(255,255,255,0); }
        }

        /* body */
        .card-body {
            padding: 14px 18px 16px;
            flex: 1;
            display: flex;
            flex-direction: column;
        }
        .tournament-card .card-stats {
            display: flex;
            flex-wrap: wrap;
            gap: 13px;
            font-size: 0.78rem;
            color: #777;
            margin-bottom: 12px;
        }
        .tournament-card .card-stats i { color: var(--pp-felt); width: 14px; }
        .tournament-card .card-stats span {
            display: inline-flex;
            align-items: center;
            gap: 4px;
        }
        .card-progress-row {
            margin-top: auto;
            display: flex;
            align-items: center;
            gap: 8px;
        }
        .card-progress-bar {
            flex: 1;
            height: 5px;
            background: #eef0ee;
            border-radius: 3px;
            overflow: hidden;
        }
        .card-progress-bar .fill {
            height: 100%;
            border-radius: 3px;
            background: linear-gradient(90deg, var(--pp-felt), var(--pp-felt-light));
            transition: width .6s ease;
        }
        .card-progress-row .pct-label {
            font-size: 0.68rem;
            font-weight: 700;
            color: var(--pp-felt);
            flex-shrink: 0;
            min-width: 30px;
            text-align: right;
        }
        .tournament-card .card-arrow {
            position: absolute;
            bottom: 16px;
            right: 16px;
            color: var(--pp-felt);
            font-size: 1rem;
            opacity: 0;
            transition: opacity .25s;
        }
        .tournament-card:hover .card-arrow { opacity: 1; }

        /* ─── SPOTLIGHT (featured live tournament) ─── */
        .spotlight-wrap { margin-bottom: 28px; }
        .spotlight-wrap .eyebrow {
            color: #dc3545;
            font-weight: 700;
            text-transform: uppercase;
            letter-spacing: 1.5px;
            font-size: 0.75rem;
            display: inline-flex;
            align-items: center;
            gap: 6px;
            margin-bottom: 12px;
        }
        .spotlight-card {
            position: relative;
            border-radius: 18px;
            overflow: hidden;
            cursor: pointer;
            min-height: 220px;
            display: flex;
            align-items: flex-end;
            background: linear-gradient(135deg, var(--pp-dark) 0%, var(--pp-dark-2) 45%, var(--pp-felt) 160%);
            box-shadow: var(--card-shadow-hover);
            transition: transform .25s;
        }
        .spotlight-card:hover { transform: translateY(-3px); }
        .spotlight-card img {
            position: absolute;
            inset: 0;
            width: 100%;
            height: 100%;
            object-fit: cover;
        }
        .spotlight-card .spotlight-fallback {
            position: absolute;
            inset: 0;
            display: none;
            align-items: center;
            justify-content: center;
            font-size: 5rem;
            color: rgba(244,239,227,0.12);
        }
        .spotlight-card.no-image .spotlight-fallback { display: flex; }
        .spotlight-card .spotlight-overlay {
            position: absolute;
            inset: 0;
            background: linear-gradient(90deg, rgba(10,26,23,0.92) 15%, rgba(10,26,23,0.55) 55%, rgba(10,26,23,0.25) 100%);
        }
        .spotlight-content {
            position: relative;
            z-index: 2;
            padding: 26px 30px;
            color: var(--pp-cream);
            width: 100%;
        }
        .spotlight-content .card-badge { margin-bottom: 12px; }
        .spotlight-content h3 {
            font-family: 'Bebas Neue', sans-serif;
            font-size: clamp(1.6rem, 3.2vw, 2.3rem);
            margin-bottom: 8px;
            max-width: 640px;
        }
        .spotlight-content .spotlight-stats {
            display: flex;
            flex-wrap: wrap;
            gap: 18px;
            font-size: 0.85rem;
            color: rgba(244,239,227,0.8);
            margin-bottom: 16px;
        }
        .spotlight-content .spotlight-stats i { color: var(--pp-gold-light); margin-right: 5px; }
        .spotlight-content .btn-pp { font-size: 0.8rem; }

        /* ─── BACK BTN ─── */
        .back-btn {
            display: inline-flex;
            align-items: center;
            gap: 6px;
            background: white;
            border: 1.5px solid #e0e0e0;
            border-radius: 10px;
            padding: 9px 18px;
            font-weight: 500;
            font-size: 0.85rem;
            color: #555;
            cursor: pointer;
            transition: all .25s;
            margin-bottom: 20px;
        }
        .back-btn:hover { border-color: var(--pp-felt); color: var(--pp-felt); }

        /* ─── TABS (pill / segmented, score-app style) ─── */
        .pp-tabs {
            display: flex;
            gap: 4px;
            margin: 24px auto;
            padding: 5px;
            background: rgba(13,122,74,0.08);
            border: 1px solid rgba(13,122,74,0.14);
            border-radius: 12px;
            width: fit-content;
            max-width: 100%;
            overflow-x: auto;
            justify-content: center;
        }
        .pp-tabs .tab-link {
            padding: 9px 20px;
            font-weight: 600;
            font-size: 0.82rem;
            color: #6b7280;
            cursor: pointer;
            border: none;
            border-radius: 8px;
            transition: all .2s;
            white-space: nowrap;
            background: none;
        }
        .pp-tabs .tab-link:hover { color: var(--pp-felt); }
        .pp-tabs .tab-link.active {
            color: #fff;
            background: var(--pp-felt);
            box-shadow: 0 2px 8px rgba(13,122,74,0.28);
        }
        .tab-pane { display: none; }
        .tab-pane.active { display: block; animation: fadeIn .3s ease; }
        @keyframes fadeIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }
        @media (min-width: 769px) {
            #viewDetail .tab-pane.active { padding-bottom: 48px; }
        }

        /* ─── STANDINGS TABLE ─── */
        .standings-wrapper {
            background: white;
            border-radius: 14px;
            box-shadow: var(--card-shadow);
            overflow: hidden;
            overflow-x: auto;
        }
        .standings-table {
            width: 100%;
            border-collapse: collapse;
            font-size: 0.9rem;
        }
        .standings-table thead th {
            background: var(--pp-dark);
            color: var(--pp-cream);
            padding: 12px 10px;
            font-weight: 600;
            font-size: 0.78rem;
            text-transform: uppercase;
            letter-spacing: 0.3px;
            white-space: nowrap;
        }
        .standings-table thead th:first-child { padding-left: 18px; }
        .standings-table tbody tr {
            border-bottom: 1px solid #f0f0f0;
            transition: background .15s;
        }
        .standings-table tbody tr:hover { background: #f8f9fa; }
        .standings-table tbody tr:last-child { border-bottom: none; }
        .standings-table tbody td {
            padding: 12px 10px;
            vertical-align: middle;
        }
        .standings-table tbody td:first-child { padding-left: 18px; }

        .col-pos { width: 44px; text-align: center; font-weight: 700; }
        .col-player { min-width: 180px; }
        .col-num { width: 44px; text-align: center; }
        .col-pct { width: 60px; text-align: center; }
        .col-pts { width: 52px; text-align: center; font-weight: 700; }
        .col-winpct { width: 56px; white-space: nowrap; }

        .rank-badge {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            width: 30px; height: 30px;
            border-radius: 8px;
            font-weight: 700;
            font-size: 0.82rem;
        }
        .rank-1 { background: linear-gradient(135deg, #ffd700, #edc000); color: #5a4500; }
        .rank-2 { background: linear-gradient(135deg, #d0d0d0, #b8b8b8); color: #444; }
        .rank-3 { background: linear-gradient(135deg, #cd7f32, #b8702a); color: #fff; }
        .rank-rest { background: #f0f0f0; color: #999; }

        .player-name-cell {
            font-weight: 600;
            color: var(--pp-dark);
            display: flex;
            align-items: center;
            gap: 8px;
        }
        .player-avatar {
            width: 30px; height: 30px;
            border-radius: 50%;
            object-fit: cover;
            background: var(--pp-felt);
            flex-shrink: 0;
        }
        .player-avatar-placeholder {
            width: 30px; height: 30px;
            border-radius: 50%;
            background: linear-gradient(135deg, var(--pp-felt), var(--pp-felt-light));
            color: white;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 12px;
            font-weight: 600;
            flex-shrink: 0;
        }

        .form-dot {
            width: 8px; height: 8px;
            border-radius: 50%;
            display: inline-block;
        }
        .form-dot.win { background: #28a745; }
        .form-dot.loss { background: #dc3545; }

        .player-bar-wrapper {
            display: flex;
            align-items: center;
            gap: 10px;
        }
        .player-bar {
            flex: 1;
            height: 5px;
            background: #eee;
            border-radius: 3px;
            overflow: hidden;
            min-width: 80px;
        }
        .player-bar .fill {
            height: 100%;
            border-radius: 3px;
            transition: width .6s ease;
        }
        .player-bar .fill.fill-win { background: linear-gradient(90deg, var(--pp-felt), var(--pp-felt-light)); }

        /* ─── MATCHES TABLE ─── */
        .matches-table {
            width: 100%;
            border-collapse: collapse;
            font-size: 0.85rem;
        }
        .matches-table thead th {
            background: var(--pp-dark);
            color: var(--pp-cream);
            padding: 10px 12px;
            font-weight: 600;
            font-size: 0.75rem;
            text-transform: uppercase;
            letter-spacing: 0.3px;
            white-space: nowrap;
        }
        .matches-table tbody tr {
            border-bottom: 1px solid #f0f0f0;
            transition: background .15s;
        }
        .matches-table tbody tr:hover { background: #f8f9fa; }
        .matches-table tbody tr.live-row { background: #fefcf5; }
        .matches-table tbody tr.awaiting-row { background: #f9f9f9; opacity: 0.85; }
        .matches-table tbody td { padding: 10px 12px; vertical-align: middle; }
        .matches-table .match-score {
            color: var(--pp-felt);
            font-weight: 700;
            text-align: center;
        }
        .matches-table .match-winner { color: #28a745; font-weight: 600; }
        .status-badge {
            display: inline-flex;
            align-items: center;
            gap: 5px;
            padding: 2px 10px;
            border-radius: 6px;
            font-size: 0.7rem;
            font-weight: 600;
        }
        .status-badge.complete { background: #e6f7ed; color: #0d7a4a; }
        .status-badge.live,
        .status-badge.in_progress { background: rgba(40,167,69,0.92); color: #fff; }
        .status-badge.pending { background: #f0f0f0; color: #888; }
        .status-badge.awaiting { background: #fef3e2; color: #b8860b; }

        /* ─── PARTICIPANTS ─── */
        .participant-list {
            list-style: none;
            padding: 0;
            margin: 0;
        }
        .participant-item {
            display: flex;
            align-items: center;
            gap: 12px;
            padding: 12px 16px;
            border-bottom: 1px solid #f0f0f0;
            transition: background .15s;
        }
        .participant-item:last-child { border-bottom: none; }
        .participant-item:hover { background: #f8f9fa; }
        .participant-seed {
            width: 28px; height: 28px;
            border-radius: 8px;
            background: linear-gradient(135deg, var(--pp-felt), var(--pp-felt-light));
            color: white;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 0.72rem;
            font-weight: 700;
            flex-shrink: 0;
        }
        .participant-item .name { font-weight: 500; color: var(--pp-dark); flex: 1; }
        .participant-item .stats { font-size: 0.78rem; color: #999; }

        /* ─── EMPTY / ERROR / LOADING ─── */
        .empty-state {
            text-align: center;
            padding: 60px 20px;
            color: #999;
        }
        .empty-state i { font-size: 3rem; color: #ddd; margin-bottom: 16px; display: block; }
        .empty-state h3 { color: #666; font-size: 1.2rem; margin-bottom: 8px; }
        .empty-state p { max-width: 380px; margin: 0 auto; font-size: 0.9rem; }
        .error-state {
            text-align: center;
            padding: 50px 20px;
            color: var(--pp-red);
        }
        .error-state i { font-size: 2.5rem; margin-bottom: 12px; }
        .error-state p { font-size: 0.9rem; }

        /* ─── SKELETON ─── */
        .skeleton-card { pointer-events: none; }
        .skeleton-grid {
            display: grid;
            grid-template-columns: repeat(4, 1fr);
            gap: 16px;
            margin-bottom: 32px;
        }
        .skeleton {
            background: linear-gradient(90deg, #f0f0f0 25%, #e5e5e5 50%, #f0f0f0 75%);
            background-size: 200% 100%;
            animation: shimmer 1.4s infinite;
            border-radius: 8px;
            display: inline-block;
            vertical-align: middle;
        }
        .skeleton-badge { width: 70px; height: 20px; margin-bottom: 10px; display: block; }
        .skeleton-title { width: 65%; height: 24px; margin-bottom: 12px; display: block; }
        .skeleton-stat { width: 44px; height: 12px; }
        .skeleton-icon { color: #e8e8e8; margin-right: 2px; }

        .skeleton-rank { width: 30px; height: 30px; border-radius: 8px; display: inline-block; }
        .skeleton-pname { width: 140px; height: 14px; border-radius: 6px; display: inline-block; vertical-align: middle; }
        .skeleton-pstat { width: 32px; height: 14px; border-radius: 4px; display: inline-block; }
        .skeleton-pbar { width: 80px; height: 10px; border-radius: 5px; display: inline-block; vertical-align: middle; }
        .skeleton-round { width: 50px; height: 14px; border-radius: 4px; display: inline-block; }
        .skeleton-score { width: 60px; height: 14px; border-radius: 4px; display: inline-block; }
        .skeleton-seed { width: 28px; height: 28px; border-radius: 8px; display: inline-block; vertical-align: middle; }

        .skeleton-row { display: flex; align-items: center; gap: 12px; padding: 12px 10px; border-bottom: 1px solid #f0f0f0; }
        .skeleton-row:last-child { border-bottom: none; }
        .skeleton-row .sk-flex { display: flex; align-items: center; gap: 8px; flex: 1; min-width: 0; }
        .skeleton-row .sk-flex .skeleton-pname { width: 100%; max-width: 160px; }
        .skeleton-row .sk-gap { display: flex; gap: 10px; align-items: center; margin-left: auto; }
        @keyframes shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }

        /* ─── BRACKET ─── */
        .challonge-bracket {
            display: flex;
            gap: 50px;
            overflow-x: auto;
            padding: 30px 20px 50px;
            position: relative;
            align-items: stretch;
            background: #1a1d23;
            border-radius: 8px;
            box-shadow: 0 2px 12px rgba(0,0,0,0.15);
        }
        .challonge-round {
            display: flex;
            flex-direction: column;
            justify-content: space-around;
            min-width: 170px;
            position: relative;
            flex: 1;
        }
        .challonge-round .round-label {
            text-align: center;
            font-size: 11px;
            font-weight: 700;
            text-transform: uppercase;
            letter-spacing: 0.1em;
            color: #9aa0a6;
            margin-bottom: 8px;
            padding-bottom: 4px;
            border-bottom: 1px solid #2d3139;
        }
        .challonge-game {
            position: relative;
            padding: 7px 0;
            display: flex;
            align-items: center;
            flex: 1 1 auto;
        }
        .challonge-game-inner {
            width: 100%;
            background: #2d3139;
            border: 1px solid #3d424c;
            border-radius: 4px;
            overflow: hidden;
            box-shadow: 0 1px 3px rgba(0,0,0,0.2);
        }
        .challonge-game-inner:hover { border-color: #5f6775; }
        .challonge-player {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 5px 12px;
            font-size: 13px;
            line-height: 1.6;
            min-height: 30px;
            color: #e8eaed;
        }
        .challonge-player + .challonge-player { border-top: 1px solid #3d424c; }
        .challonge-player .pname { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; flex: 1; }
        .challonge-player .pscore { font-weight: 700; color: #8ab4f8; margin-left: 10px; flex-shrink: 0; min-width: 20px; text-align: right; animation: scorePop 0.4s ease-out; }
        .challonge-player.winner { font-weight: 700; }
        .challonge-player.winner .pname { color: #81c995; }
        .challonge-player.winner .pscore { color: #81c995; }
        .challonge-game.completed .challonge-game-inner { border-color: #3d5247; background: #24282e; }
        .challonge-game.live .challonge-game-inner { border-color: #34a853; background: #1e2a22; }
        .challonge-game.pending .challonge-game-inner { border-color: #3d424c; background: #262a30; }
        .challonge-game.pending .challonge-player { color: #e8eaed; }
        .challonge-game.awaiting .challonge-game-inner { border-color: #d4a017; background: #2d2815; }
        .reinstated-badge { color: #ce93d8; margin-right: 4px; font-size: 14px; }
        .challonge-round:last-child .challonge-game-inner { border-color: #d4a017; background: #2d2815; }
        .challonge-round:last-child .round-label { color: #d4a017; border-bottom-color: #d4a017; }
        .bracket-lines-svg {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            pointer-events: none;
            z-index: 0;
            animation: linesFadeIn 0.5s ease-out;
        }
        @keyframes linesFadeIn { 0% { opacity: 0; } 100% { opacity: 1; } }
        @keyframes scorePop {
            0% { transform: scale(1.5); opacity: 0.3; }
            60% { transform: scale(1.1); opacity: 0.8; }
            100% { transform: scale(1); opacity: 1; }
        }
        .challonge-bracket, .challonge-round, .challonge-game { z-index: 1; }

        /* ── Bracket view options: light / dark background and full screen ── */
        .bracket-toolbar { display: flex; justify-content: flex-end; gap: 8px; margin-bottom: 10px; }
        .bracket-tool {
            display: inline-flex; align-items: center; gap: 6px;
            border: 1px solid var(--pp-cream-dark); background: #fff; color: var(--pp-dark);
            border-radius: 999px; padding: 6px 14px; font-size: 13px; font-weight: 600; cursor: pointer;
        }
        .bracket-tool:hover { border-color: var(--pp-felt); color: var(--pp-felt); }
        .bracket-tool[hidden] { display: none; }

        #tabBracket.bracket-fs { background: #11141a; padding: 20px; overflow: auto; }
        #tabBracket.bracket-fs .challonge-bracket { min-height: calc(100vh - 140px); }
        #tabBracket.bracket-fs.bracket-light { background: #eef1f5; }

        /* Light background */
        #tabBracket.bracket-light .challonge-bracket,
        #tabBracket.bracket-light .third-place-panel { background: #f7f8fa; box-shadow: 0 2px 12px rgba(15, 23, 42, 0.08); border: 1px solid #e3e6eb; }
        #tabBracket.bracket-light .challonge-round .round-label { color: #5f6672; border-bottom-color: #dfe3e8; }
        #tabBracket.bracket-light .challonge-game-inner { background: #fff; border-color: #d5dae1; box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06); }
        #tabBracket.bracket-light .challonge-game-inner:hover { border-color: #9aa3af; }
        #tabBracket.bracket-light .challonge-player { color: #1f2933; }
        #tabBracket.bracket-light .challonge-player + .challonge-player { border-top-color: #e3e6eb; }
        #tabBracket.bracket-light .challonge-player .pscore { color: #1a73e8; }
        #tabBracket.bracket-light .challonge-player.winner .pname,
        #tabBracket.bracket-light .challonge-player.winner .pscore { color: #137333; }
        #tabBracket.bracket-light .challonge-game.completed .challonge-game-inner { background: #fbfcfd; border-color: #c6dccd; }
        #tabBracket.bracket-light .challonge-game.live .challonge-game-inner { background: #eef8f1; border-color: #34a853; }
        #tabBracket.bracket-light .challonge-game.pending .challonge-game-inner { background: #fafbfc; border-color: #dfe3e8; }
        #tabBracket.bracket-light .challonge-game.pending .challonge-player { color: #1f2933; }
        #tabBracket.bracket-light .challonge-game.awaiting .challonge-game-inner,
        #tabBracket.bracket-light .challonge-round:last-child .challonge-game-inner { background: #fdf7e6; border-color: #d4a017; }
        #tabBracket.bracket-light .challonge-round:last-child .round-label { color: #a87c0c; border-bottom-color: #d4a017; }
        #tabBracket.bracket-light .third-place-panel .third-place-note { color: #6b7280; }
        #tabBracket.bracket-light .bracket-lines-svg line { stroke: rgba(15, 23, 42, 0.28); }
        #tabBracket.bracket-light .challonge-player .player-link:hover,
        #tabBracket.bracket-light .challonge-player .player-link:focus { color: #1a73e8; }

        /* ─── PRIZE ─── */
        .prize-pool {
            text-align: center;
            padding: 50px 0;
            background: white;
        }
        .prize-card {
            background: linear-gradient(160deg, var(--pp-dark), #0d3d2a);
            color: var(--pp-cream);
            border-radius: 18px;
            padding: 36px 32px;
            max-width: 680px;
            margin: 0 auto;
            position: relative;
            overflow: hidden;
        }
        .prize-card::before {
            content: '\f091';
            font-family: 'Font Awesome 6 Free';
            font-weight: 900;
            position: absolute;
            top: -10px; right: -10px;
            font-size: 7rem;
            opacity: 0.05;
            color: var(--pp-gold);
        }
        .prize-card h3 { font-family: 'Bebas Neue', sans-serif; font-size: 2.2rem; color: var(--pp-gold); margin-bottom: 6px; }
        .prize-card .amount { font-size: 2.8rem; font-weight: 800; color: white; }
        .prize-card .amount span { color: var(--pp-gold); }
        .prize-card p { color: rgba(244,239,227,0.7); font-size: 0.9rem; margin: 12px 0 0; }

        /* ─── FOOTER ─── */
        .footer {
            background: var(--pp-dark);
            color: rgba(244,239,227,0.6);
            padding: 32px 0;
            text-align: center;
        }
        .footer a { color: rgba(244,239,227,0.6); text-decoration: none; }
        .footer a:hover { color: var(--pp-gold); }

        /* ─── BOTTOM NAV ─── */
        .mobile-bottom-nav { display: none; }
        .view-detail { display: none; }
        .view-list { display: block; }
        #mainContent {
            padding-top: 32px;
            max-width: 100%;
            padding-left: 40px;
            padding-right: 40px;
            flex: 1 0 auto;
            width: 100%;
        }
        .footer { flex-shrink: 0; }

        /* hide scrollbars in overflow containers */
        .standings-wrapper,
        .pp-tabs,
        .participant-list {
            -ms-overflow-style: none;
            scrollbar-width: none;
        }
        .standings-wrapper::-webkit-scrollbar,
        .pp-tabs::-webkit-scrollbar,
        .participant-list::-webkit-scrollbar { display: none; }

        /* ─── RESPONSIVE: ≤768px ─── */
        @media (max-width: 768px) {
            #mainContent { padding-left: 16px; padding-right: 16px; }
            .pp-footer { display: none; }
            .breadcrumb-bar { border-radius: 10px; margin-bottom: 16px; }
            .breadcrumb-inner { padding: 0 16px; }
            .breadcrumb-title { font-size: 1.1rem; }
            .pp-tabs { display: none !important; }
            .mobile-bottom-nav {
                display: flex; position: fixed; bottom: 0; left: 0; right: 0;
                background: rgba(14, 31, 28, 0.95);
                border-top: 1px solid rgba(224, 182, 89, 0.15);
                box-shadow: 0 -4px 20px rgba(0,0,0,0.35);
                z-index: 1050; padding-bottom: env(safe-area-inset-bottom, 0);
                backdrop-filter: blur(10px);
                -webkit-backdrop-filter: blur(10px);
            }
            .m-nav-link {
                flex: 1; display: flex; flex-direction: column; align-items: center;
                justify-content: center; gap: 1px; padding: 10px 0 8px;
                background: none; border: none; color: rgba(245,239,225,0.65);
                font-size: 0.58rem; font-weight: 600; cursor: pointer; transition: color .2s;
                position: relative;
            }
            .m-nav-link i { font-size: 1.15rem; margin-bottom: 1px; }
            .m-nav-link.active { color: var(--pp-gold); }
            .m-nav-link.active i { color: var(--pp-gold); }
            .m-nav-link.active::after {
                content: ''; position: absolute; top: 3px; left: 50%; transform: translateX(-50%);
                width: 18px; height: 3px; background: var(--pp-gold); border-radius: 2px;
            }
            #viewDetail.view-detail { padding-bottom: 60px; }

            .hero { padding: 70px 0 50px; }
            .hero h1 { font-size: 2.2rem; }
            .hero p { font-size: 0.9rem; }
            .hero-badge { font-size: 0.7rem; padding: 5px 14px; }


            .detail-hero { min-height: 220px; margin-bottom: 16px; }
            .detail-hero-inner { padding: 12px 16px 18px; }
            .detail-hero-tags { gap: 6px; }
            .detail-hero-tags .tag { font-size: 0.68rem; padding: 3px 10px; }
            .detail-hero-stats .stat { padding: 12px 6px; }
            .detail-hero-stats .stat .num { font-size: 1.25rem; }
            .detail-hero-stats .stat .label { font-size: 0.58rem; }

            .spotlight-card { min-height: 170px; }
            .spotlight-content { padding: 20px; }
            .spotlight-content .spotlight-stats { gap: 12px; font-size: 0.78rem; }

            .tournament-grid { grid-template-columns: 1fr; gap: 12px; }
            .skeleton-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
            .card-media-name { font-size: 1.1rem; }
            .card-body { padding: 12px 16px 14px; }
            .tournament-card .card-stats { gap: 10px; font-size: 0.75rem; }
            .tournament-card .card-arrow { display: none; }

            .back-btn { width: 100%; justify-content: center; }
            .section-title { margin-bottom: 20px; }
            .section-title h2 { font-size: 1.8rem; }

            .standings-table { font-size: 0.78rem; }
            .standings-table thead th,
            .standings-table tbody td { padding: 10px 6px; }
            .standings-table tbody td:first-child,
            .standings-table thead th:first-child { padding-left: 10px; }
            .col-pos { width: 34px; }
            .col-player { min-width: 120px; }
            .col-num { width: 30px; font-size: 0.75rem; }
            .col-pts { width: 38px; }
            .col-pct { width: 46px; }
            .player-bar { min-width: 50px; }
            .player-avatar { width: 26px; height: 26px; }
            .player-avatar-placeholder { width: 26px; height: 26px; font-size: 10px; }
            .rank-badge { width: 24px; height: 24px; font-size: 0.7rem; border-radius: 6px; }
            .standings-wrapper { border-radius: 10px; }

            .skeleton-rank { width: 24px; height: 24px; }
            .skeleton-pname { width: 100px; height: 12px; }
            .skeleton-pstat { width: 26px; height: 12px; }
            .skeleton-pbar { width: 50px; height: 8px; }
            .skeleton-round { width: 40px; height: 12px; }
            .skeleton-score { width: 46px; height: 12px; }
            .skeleton-seed { width: 24px; height: 24px; }
            .skeleton-row { padding: 10px 8px; gap: 8px; }
            .skeleton-row .sk-gap { gap: 6px; }

            .matches-table { font-size: 0.75rem; }
            .matches-table thead th,
            .matches-table tbody td { padding: 8px 6px; }
            .matches-table thead th { font-size: 0.68rem; }

            .pp-tabs .tab-link { padding: 8px 14px; font-size: 0.75rem; }
            .participant-item { padding: 10px 12px; gap: 8px; }
            .participant-seed { width: 24px; height: 24px; font-size: 0.65rem; border-radius: 6px; }
            .participant-item .name { font-size: 0.82rem; }
            .participant-item .stats { font-size: 0.7rem; }

            .prize-card { padding: 24px 20px; }
            .prize-card h3 { font-size: 1.8rem; }
            .prize-card .amount { font-size: 2rem; }
            .prize-pool { padding: 36px 0; }

            .empty-state { padding: 40px 16px; }
            .empty-state i { font-size: 2.4rem; }
        }

        /* ─── RESPONSIVE: ≤576px ─── */
        @media (max-width: 576px) {
            .hero { padding: 56px 0 40px; }
            .hero h1 { font-size: 1.8rem; }
            .hero p { font-size: 0.82rem; }
            .hero-badge { font-size: 0.62rem; padding: 4px 12px; margin-bottom: 12px; }

            .detail-hero-stats { grid-template-columns: repeat(2, 1fr); }
            .detail-hero-stats .stat { border-top: 1px solid rgba(244,239,227,0.1); }
            .detail-hero-stats .stat:nth-child(-n+2) { border-top: none; }
            .detail-hero-stats .stat:nth-child(odd) { border-left: none; }
            .detail-hero-stats .stat .num { font-size: 1.2rem; }

            .col-num { width: 26px; font-size: 0.68rem; }
            .col-pts { width: 34px; }
            .col-pct { display: none; }
            .col-player { min-width: 100px; }
            .rank-badge { width: 20px; height: 20px; font-size: 0.6rem; }
            .player-avatar-placeholder { width: 22px; height: 22px; font-size: 9px; }
            .skeleton-grid { grid-template-columns: 1fr; }
            .skeleton-rank { width: 20px; height: 20px; }
            .skeleton-pname { width: 80px; height: 10px; }
            .skeleton-pstat { width: 22px; height: 10px; }
            .skeleton-pbar { width: 40px; height: 7px; }
            .skeleton-round { width: 32px; height: 10px; }
            .skeleton-score { width: 38px; height: 10px; }
            .skeleton-seed { width: 22px; height: 22px; }
            .skeleton-row { padding: 8px 6px; gap: 6px; }

            .matches-table { font-size: 0.68rem; }
            .matches-table thead th,
            .matches-table tbody td { padding: 6px 4px; }
            .matches-table thead th { font-size: 0.6rem; letter-spacing: 0; }
            .matches-table tbody td { font-size: 0.65rem; }

            .pp-tabs .tab-link { padding: 6px 10px; font-size: 0.68rem; }
            .participant-item { padding: 8px 10px; gap: 6px; }
            .participant-item .name { font-size: 0.78rem; }
            .participant-item .stats { font-size: 0.62rem; }
            .participant-seed { width: 22px; height: 22px; font-size: 0.6rem; }

            .card-media { height: 130px; }
            .card-media-name { font-size: 1rem; }
            .tournament-card .card-stats { font-size: 0.7rem; gap: 8px; }

            .back-btn { padding: 8px 14px; font-size: 0.78rem; }
            .section-title h2 { font-size: 1.4rem; }
            .section-title { margin-bottom: 14px; }

            .prize-card { padding: 18px 16px; }
            .prize-card h3 { font-size: 1.5rem; }
            .prize-card .amount { font-size: 1.6rem; }
            .prize-card p { font-size: 0.8rem; }

            .m-nav-link { font-size: 0.52rem !important; padding: 8px 0 6px !important; }
            .m-nav-link i { font-size: 1rem !important; }
            .m-nav-link.active::after { width: 14px; height: 2px; top: 2px; }

            .standings-table { font-size: 0.7rem; }
            .standings-table thead th,
            .standings-table tbody td { padding: 7px 4px; }
            .standings-table thead th { font-size: 0.6rem; letter-spacing: 0; }
            .player-name-cell { gap: 5px; }

            .detail-hero-share { top: 12px; right: 12px; padding: 7px 10px; }
            .detail-hero-share .pp-share-label { display: none; }
        }

/* ─── Player names that link to the player's profile ─── */
.player-link { color: inherit; text-decoration: none; }
.player-link:hover,
.player-link:focus { color: var(--pp-felt); text-decoration: underline; }
.challonge-player .player-link:hover,
.challonge-player .player-link:focus { color: #8ab4f8; }


/* ─── PARTICIPANTS AS PLAYER CARDS (same look as the Players roster) ─── */
.participant-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 22px;
}
@media (min-width: 992px) {
    .participant-grid { grid-template-columns: repeat(5, 1fr); }
}
@media (max-width: 576px) {
    .participant-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
}
.participant-grid .player-card {
    display: block;
    background: white;
    border-radius: 14px;
    box-shadow: var(--card-shadow);
    overflow: hidden;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    transition: transform .2s, box-shadow .2s;
}
.participant-grid .player-card:hover { transform: translateY(-4px); box-shadow: var(--card-shadow-hover); }
.participant-grid .player-card-photo-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: var(--pp-cream-dark);
}
.participant-grid .player-card-photo { width: 100%; height: 100%; object-fit: cover; display: block; }
.participant-grid .player-card-body { padding: 20px 16px 24px; text-align: center; }
.participant-grid .player-card-name {
    font-weight: 700;
    color: var(--pp-dark);
    font-size: 1.05rem;
    margin-bottom: 12px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.participant-grid .player-card-rate { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.participant-grid .pc-rate-num {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.15rem;
    line-height: 1;
    color: var(--pp-gold);
    flex-shrink: 0;
}
.participant-grid .pc-rate-bar { flex: 1; height: 6px; border-radius: 999px; background: var(--pp-cream-dark); overflow: hidden; }
.participant-grid .pc-rate-fill {
    display: block;
    height: 100%;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--pp-gold), var(--pp-gold-light));
}
.participant-grid .player-card-stats {
    display: flex;
    justify-content: space-around;
    padding: 10px 0;
    margin-bottom: 14px;
    border-top: 1px solid #f0f0f0;
    border-bottom: 1px solid #f0f0f0;
}
.participant-grid .pc-stat { display: flex; flex-direction: column; align-items: center; gap: 3px; }
.participant-grid .pc-num {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.35rem;
    line-height: 1;
    color: var(--pp-dark);
}
.participant-grid .pc-num.pc-wins   { color: var(--pp-felt); }
.participant-grid .pc-num.pc-losses { color: var(--pp-red); }
.participant-grid .pc-label {
    font-size: 0.58rem;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: #999;
}
.participant-grid .player-card-btn {
    display: inline-block;
    background: var(--pp-felt);
    color: #fff;
    padding: 10px 26px;
    border-radius: 999px;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.6px;
    text-transform: uppercase;
    transition: background .2s;
}
.participant-grid .player-card:hover .player-card-btn { background: var(--pp-dark); }
@media (max-width: 576px) {
    .participant-grid .player-card-body { padding: 14px 10px 16px; }
    .participant-grid .player-card-name { font-size: 0.92rem; margin-bottom: 10px; }
    .participant-grid .player-card-btn { padding: 8px 16px; font-size: 0.62rem; }
    .participant-grid .pc-num { font-size: 1.15rem; }
}

/* Round robin fixtures (/seasonal/<slug> → Fixtures tab): one card per round,
   3 columns on large screens, 2 on tablets, 1 on phones. */
.rr-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    align-items: start;
}
@media (min-width: 768px) {
    .rr-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1200px) {
    .rr-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
.rr-grid .rr-round { margin: 0; overflow: hidden; }
.rr-round-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    padding: 10px 14px;
    font-weight: 600;
    background: var(--pp-dark);
    color: var(--pp-cream);
}
.rr-round-head .status-badge { margin-left: 6px; font-size: 0.7rem; }
.rr-rest { font-weight: normal; font-size: 12px; opacity: 0.75; }
.rr-table { table-layout: fixed; }
.rr-table tbody td { padding: 9px 10px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rr-table td.rr-p1 { width: 42%; text-align: right; }
.rr-table td.match-score { width: 16%; white-space: nowrap; }
.rr-table td.rr-p2 { width: 42%; text-align: left; }

/* Standings + Matches side by side on large screens: the Matches tab is
   hidden and both panes show under Standings (seasonal.js toggles .split-on). */
.pp-split-title { display: none; }
@media (min-width: 1200px) {
    .pp-tabs .tab-link[data-tab="matches"] { display: none; }
    .pp-split.split-on {
        display: grid;
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
        gap: 24px;
        align-items: start;
    }
    .pp-split.split-on > .tab-pane { display: block; min-width: 0; }
    .pp-split.split-on .pp-split-title {
        display: block;
        margin: 0 0 12px;
        font-size: 1rem;
        font-weight: 700;
        color: var(--pp-dark);
    }
    .pp-split.split-on .standings-wrapper { overflow-x: auto; }
}

        /* Knockout time estimates (assets/css/knockout-eta.css) in the site's colours */
        .ko-eta-banner {
            --ko-eta-accent: var(--pp-felt);
            background: #fff;
            border-color: var(--pp-cream-dark);
        }

        /* ── 3rd place match: its own panel under the bracket ── */
        .third-place-panel {
            background: #1a1d23;
            border-radius: 8px;
            box-shadow: 0 2px 12px rgba(0,0,0,0.15);
            padding: 16px 20px 14px;
            margin-top: 12px;
            max-width: 320px;
        }
        .third-place-panel .round-label {
            text-align: center;
            font-size: 11px;
            font-weight: 700;
            text-transform: uppercase;
            letter-spacing: 0.1em;
            color: #cd7f32;
            margin-bottom: 8px;
            padding-bottom: 4px;
            border-bottom: 1px solid #cd7f32;
        }
        .third-place-panel .challonge-game-inner {
            border-color: #cd7f32;
        }
        .third-place-panel .third-place-note {
            margin-top: 4px;
            font-size: 11px;
            color: #9aa0a6;
            text-align: center;
        }

        /* ── Staking from this page (assets/js/seasonal-stakes.js) ── */
        /* "Stake" button on the bottom edge of a bracket box that is open for staking */
        .challonge-game-inner.has-stake { position: relative; overflow: visible; }
        .challonge-game .stake-tag {
            position: absolute;
            bottom: -10px;
            right: 10px;
            z-index: 3;
            border: 0;
            border-radius: 10px;
            padding: 1px 9px;
            font-size: 10px;
            font-weight: 700;
            line-height: 16px;
            white-space: nowrap;
            background: var(--pp-gold);
            color: #1a1d23;
            cursor: pointer;
            box-shadow: 0 1px 4px rgba(0,0,0,0.35);
        }
        .challonge-game .stake-tag:hover { background: var(--pp-gold-light); }
        /* Stake dialog */
        .ss-modal .modal-title { font-weight: 700; color: var(--pp-dark); }
        .ss-sub { font-size: 13px; color: #6b7280; }
        .ss-players { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 12px; }
        .ss-player {
            border: 2px solid var(--pp-cream-dark);
            background: #fff;
            border-radius: 10px;
            padding: 10px 12px;
            text-align: left;
            min-width: 0;
            cursor: pointer;
        }
        .ss-player .n { display: block; font-weight: 700; color: var(--pp-dark); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
        .ss-player .a { display: block; font-size: 12px; color: #6b7280; }
        .ss-player:hover { border-color: var(--pp-felt-light); }
        .ss-player.picked { border-color: var(--pp-felt); background: #eef8f2; }
        .ss-label { font-weight: 600; font-size: 14px; margin-bottom: 4px; }
        .ss-quick { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
        .ss-quick button { border: 1px solid #d5d9df; background: #fff; border-radius: 14px; padding: 3px 12px; font-size: 12px; color: #374151; }
        .ss-quick button:hover { border-color: var(--pp-felt); color: var(--pp-felt); }
        .ss-meta { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; font-size: 12px; color: #6b7280; margin-top: 10px; }
        .ss-label-gap { display: block; margin-top: 14px; }
        .ss-optional { font-weight: 400; color: #8a8f98; }
        .ss-hint { font-size: 12px; color: #6b7280; margin-top: 4px; }
        .ss-error { margin-top: 10px; font-size: 13px; color: var(--pp-red); }
        .ss-done { font-size: 15px; color: var(--pp-felt); padding: 8px 0; }
        /* Cheers summary of a finished match */
        .ss-summary { color: var(--pp-dark); }
        .ss-sum-pot { display: flex; justify-content: space-between; align-items: baseline; padding-bottom: 10px; margin-bottom: 12px; border-bottom: 1px solid var(--pp-cream-dark); }
        .ss-sum-pot span { font-size: 13px; color: #6b7280; }
        .ss-sum-pot b { font-size: 1.4rem; color: var(--pp-felt); font-variant-numeric: tabular-nums; }
        .ss-sum-players { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
        .ss-sum-player { border: 1px solid var(--pp-cream-dark); border-radius: 10px; padding: 10px 12px; background: #fff; }
        .ss-sum-player.won { border-color: var(--pp-felt); background: #f2faf5; }
        .ss-sum-name { font-weight: 700; font-size: 14px; }
        .ss-sum-name .fa-trophy { color: var(--pp-gold); }
        .ss-sum-amt { font-size: 1.1rem; font-weight: 700; margin-top: 4px; font-variant-numeric: tabular-nums; }
        .ss-sum-backers { font-size: 12px; color: #6b7280; }
        .ss-sum-top { font-size: 12px; color: #4b5563; margin-top: 6px; line-height: 1.5; }
        .ss-sum-outcome { font-size: 13px; color: #374151; margin-top: 12px; }
        .challonge-game .stake-tag.stake-tag-done { background: #e8eaed; color: #1a1d23; }
        .challonge-game .stake-tag.stake-tag-done:hover { background: #fff; }
        .ss-done .ss-done-sub { font-size: 13px; color: #6b7280; margin-top: 6px; }
        .ss-done.ss-done-pending,
        .ss-done.ss-done-unknown { color: var(--pp-dark); }
        .ss-done.ss-done-failed { color: var(--pp-red); }
        .ss-submit { background: var(--pp-felt); color: #fff; font-weight: 600; border: 0; }
        .ss-submit:hover, .ss-submit:focus { background: var(--pp-felt-light); color: #fff; }

/* ==========================================================================
   Standings view: leaderboard + match cards
   --------------------------------------------------------------------------
   Large screens: a centred two-column board. The leaderboard stays in view
   on the left while the match cards (with their stakes) scroll on the right.
   Small screens: the same pieces, one tab each, stacked.
   The one flourish is the rank marker, drawn as a numbered pool ball.
   ========================================================================== */
.pp-split { max-width: 1360px; margin-inline: auto; }
@media (min-width: 1200px) {
    .pp-split.split-on {
        grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
        gap: 32px;
    }
    .pp-split.split-on > #tabStandings { position: sticky; top: 84px; }
    /* Matches column is never taller than Standings: it takes no height of its
       own (contain: size), stretches to the row Standings sets, and scrolls inside. */
    .pp-split.split-on > #tabMatches {
        align-self: stretch;
        contain: size;
        display: flex;
        flex-direction: column;
        min-height: 320px;
    }
    .pp-split.split-on > #tabMatches > #matchesContent {
        flex: 1 1 auto;
        min-height: 0;
        overflow-y: auto;
        padding-right: 6px;
        scrollbar-width: thin;
    }
    .pp-split.split-on .pp-split-title {
        font-family: 'Bebas Neue', sans-serif;
        font-size: 1.7rem;
        font-weight: 400;
        letter-spacing: 0.03em;
        line-height: 1;
        margin: 0 0 14px;
    }
}

/* ---- Leaderboard ---- */
.lb {
    --lb-cols: 34px minmax(0, 1fr) 30px 30px 30px 96px 44px;
    background: #fff;
    border: 1px solid var(--pp-cream-dark);
    border-radius: 14px;
    overflow: hidden;
}
.lb-head,
.lb-row {
    display: grid;
    grid-template-columns: var(--lb-cols);
    align-items: center;
    column-gap: 10px;
    padding: 0 16px;
}
.lb-head {
    height: 38px;
    background: var(--pp-dark);
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.72rem;
    font-weight: 500;
}
.lb-head span:nth-child(n+3) { text-align: center; }
.lb-head span:last-child { text-align: right; color: var(--pp-gold); }
.lb-row {
    min-height: 58px;
    border-top: 1px solid #f1ece0;
}
.lb-row:nth-child(2) { border-top: 0; }
.lb-row:hover { background: #fbf9f4; }

/* The pool ball */
.pball {
    --ball: #f2c230;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background:
        radial-gradient(circle at 32% 26%, rgba(255, 255, 255, 0.6), rgba(255, 255, 255, 0) 44%),
        var(--ball);
    box-shadow: inset -2px -3px 5px rgba(0, 0, 0, 0.28), 0 1px 2px rgba(0, 0, 0, 0.25);
}
.pball b {
    width: 17px;
    height: 17px;
    border-radius: 50%;
    background: #fff;
    color: #14181d;
    font-size: 10px;
    font-weight: 700;
    line-height: 17px;
    text-align: center;
}
.pball-1 { --ball: #f2c230; }
.pball-2 { --ball: #1f4fbf; }
.pball-3 { --ball: #d2302c; }
.pball-4 { --ball: #5b2a86; }
.pball-5 { --ball: #f07f1b; }
.pball-6 { --ball: #0d7a4a; }
.pball-7 { --ball: #7a1f1f; }
.pball-8 { --ball: #14181d; }
.pball-stripe {
    background:
        radial-gradient(circle at 32% 26%, rgba(255, 255, 255, 0.6), rgba(255, 255, 255, 0) 44%),
        linear-gradient(#fbfaf6 0 22%, var(--ball) 22% 78%, #fbfaf6 78%);
}
.pball-plain {
    background: #ece6d8;
    box-shadow: inset -2px -3px 5px rgba(0, 0, 0, 0.12);
}
.pball-plain b { background: transparent; color: #55524a; font-size: 11px; }

.lb-player { display: flex; align-items: center; gap: 10px; min-width: 0; }
.lb-avatar {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}
.lb-avatar-ph {
    display: grid;
    place-items: center;
    background: #e3efe8;
    color: var(--pp-felt);
    font-size: 12px;
    font-weight: 600;
}
.lb-who { min-width: 0; }
.lb-name {
    display: block;
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--pp-dark);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.lb-name a { color: inherit; text-decoration: none; }
.lb-name a:hover { color: var(--pp-felt); text-decoration: underline; }
.lb-tag {
    margin-left: 8px;
    padding: 1px 8px;
    border-radius: 9px;
    font-size: 0.68rem;
    font-weight: 600;
    background: #eef1f4;
    color: #4b5563;
    vertical-align: 1px;
}
.lb-tag-1 { background: var(--pp-gold); color: #2a2206; }
.lb-sub {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.74rem;
    color: #8a8f98;
    margin-top: 1px;
}
.lb-record { display: none; }            /* the columns say it on wide screens */
.lb-form { display: inline-flex; gap: 3px; }
.lb-dot { width: 7px; height: 7px; border-radius: 50%; background: #b9bec6; }
.lb-dot.w { background: var(--pp-felt-light); }
.lb-dot.l { background: #d2302c; }
.lb-num { text-align: center; font-size: 0.9rem; color: #4b5563; font-variant-numeric: tabular-nums; }
.lb-w { color: var(--pp-felt); font-weight: 600; }
.lb-rate { display: flex; align-items: center; gap: 8px; }
.lb-rate-bar { flex: 1; height: 5px; border-radius: 3px; background: #efeadf; overflow: hidden; }
.lb-rate-bar i { display: block; height: 100%; background: var(--pp-felt); border-radius: 3px; }
.lb-rate em { font-style: normal; font-size: 0.78rem; color: #6b7280; width: 38px; text-align: right; font-variant-numeric: tabular-nums; }
.lb-pts {
    text-align: right;
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.7rem;
    line-height: 1;
    color: var(--pp-dark);
}
.lb-idle .lb-pts,
.lb-idle .lb-num { color: #b9bec6; }

/* ---- Stakes summary under the leaderboard ---- */
.sk-strip {
    margin-top: 18px;
    padding: 18px 20px;
    border-radius: 14px;
    background: var(--pp-dark);
    color: rgba(255, 255, 255, 0.8);
}
.sk-strip-title {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.4rem;
    font-weight: 400;
    letter-spacing: 0.03em;
    line-height: 1;
    color: #fff;
    margin: 0 0 12px;
}
.sk-strip-figs { display: flex; flex-wrap: wrap; gap: 14px 32px; }
.sk-strip-figs b {
    display: block;
    font-family: 'Bebas Neue', sans-serif;
    font-size: 2rem;
    font-weight: 400;
    line-height: 1;
    color: var(--pp-gold);
}
.sk-strip-figs span { font-size: 0.8rem; }
.sk-strip-figs a { color: #fff; }
.sk-strip-go {
    margin-top: 14px;
    width: 100%;
    border: 0;
    border-radius: 10px;
    padding: 11px 14px;
    font-weight: 600;
    font-size: 0.92rem;
    background: var(--pp-gold);
    color: #1c1705;
}
/* Side by side, the open matches are already on screen. */
.pp-split.split-on .sk-strip-go { display: none; }

/* ---- Match cards ---- */
.mc-group + .mc-group { margin-top: 26px; }
.mc-group-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 10px;
}
.mc-group-head h4 { margin: 0; font-size: 1rem; font-weight: 700; color: var(--pp-dark); }
.mc-group-head span { font-size: 0.8rem; color: #8a8f98; }
.mc {
    background: #fff;
    border: 1px solid var(--pp-cream-dark);
    border-radius: 14px;
    padding: 12px 18px 16px;
    margin-bottom: 12px;
}
.mc.is-live { border-color: var(--pp-felt-light); box-shadow: 0 0 0 3px rgba(21, 160, 96, 0.12); }
.mc.is-wait { background: #fbf9f4; }
.mc-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 22px; }
.mc-status { font-size: 0.74rem; font-weight: 600; color: #8a8f98; }
.mc-status.live { color: var(--pp-felt); display: inline-flex; align-items: center; gap: 6px; }
.mc-status.next { color: #9a7412; }
.mc-table { font-size: 0.74rem; color: #8a8f98; }
.mc-top-right { display: inline-flex; align-items: center; gap: 10px; }
.mc-watch {
    display: inline-flex; align-items: center; gap: 5px;
    padding: 3px 10px; border-radius: 999px;
    background: #d6332f; color: #fff !important;
    font-size: 0.72rem; font-weight: 700; text-decoration: none !important;
    white-space: nowrap;
}
.mc-watch:hover, .mc-watch:focus { background: #b8221f; }
.mc-watch-group { display: inline-flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px; }
.mc-watch.board { background: #1f2937; }
.mc-watch.board:hover, .mc-watch.board:focus { background: #111827; }
.mc-watch.operator { background: #fff; color: #1f2937 !important; border: 1px solid #d1d5db; }
.mc-watch.operator:hover, .mc-watch.operator:focus { background: #f3f4f6; }
.match-score .mc-watch { margin-top: 4px; }
.mc-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    align-items: center;
    gap: 14px;
    padding: 6px 0 2px;
}
.mc-p {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--pp-dark);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.mc-p.right { text-align: right; }
.mc-p a { color: inherit; text-decoration: none; }
.mc-p a:hover { color: var(--pp-felt); text-decoration: underline; }
.mc-p.win { color: var(--pp-felt); }
.mc-p.lost { color: #8a8f98; font-weight: 500; }
.mc-tbd { font-style: italic; font-weight: 400; color: #a3a8b0; padding-right: 3px; }
.mc-score {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: 'Bebas Neue', sans-serif;
    font-size: 2.2rem;
    line-height: 1;
    color: var(--pp-dark);
}
.mc-score b { font-weight: 400; min-width: 0.6em; text-align: center; color: #9aa0a8; }
.mc-score b.win { color: var(--pp-dark); }
.mc.is-live .mc-score b { color: var(--pp-dark); }
.mc-score i { font-style: normal; color: #c9cdd3; font-size: 1.4rem; }
.mc-vs { font-family: 'Poppins', system-ui, sans-serif; font-size: 0.8rem; font-weight: 500; color: #a3a8b0; padding: 0 6px; }

/* The stake block inside a card */
.mc-stake { margin-top: 12px; padding-top: 12px; border-top: 1px dashed #e4dccb; }
.mc-stake-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    align-items: end;
    gap: 14px;
}
.mc-stake-side .amt { display: block; font-weight: 700; font-size: 1rem; color: var(--pp-felt); font-variant-numeric: tabular-nums; }
.mc-stake-side.right { text-align: right; }
.mc-stake-side.right .amt { color: #9a7412; }
.mc-stake-side .bk { font-size: 0.74rem; color: #8a8f98; }
.mc-pot { text-align: center; }
.mc-pot span { display: block; font-size: 0.7rem; color: #8a8f98; }
.mc-pot b { display: block; font-family: 'Bebas Neue', sans-serif; font-weight: 400; font-size: 1.5rem; line-height: 1.05; color: var(--pp-dark); }
.mc-pot em { display: block; font-style: normal; font-size: 0.7rem; color: var(--pp-felt); }
.mc-bar { height: 6px; border-radius: 3px; background: var(--pp-gold); margin-top: 8px; overflow: hidden; }
.mc-bar i { display: block; height: 100%; background: var(--pp-felt); transition: width 0.3s ease; }
.mc-bar.empty { background: #efeadf; }
.mc-bar.empty i { background: transparent; }
.mc-stake-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 12px; }
.mc-back {
    border: 0;
    border-radius: 10px;
    padding: 10px 12px;
    font-weight: 600;
    font-size: 0.88rem;
    color: #fff;
    background: var(--pp-felt);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    cursor: pointer;
}
.mc-back.right { background: var(--pp-gold); color: #1c1705; }
.mc-back:hover { filter: brightness(1.08); }
.mc-back:focus-visible,
.sk-strip-go:focus-visible { outline: 3px solid rgba(13, 122, 74, 0.45); outline-offset: 2px; }
.mc-stake-note { margin-top: 10px; font-size: 0.82rem; color: #6b7280; }
.mc-stake-note.paid { color: var(--pp-felt); font-weight: 600; }
.mc-mine { margin-top: 10px; }
.mc-mine-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 8px 12px;
    border-radius: 10px;
    background: #fdf8ea;
    font-size: 0.84rem;
    color: #4b4530;
}
.mc-mine-row + .mc-mine-row { margin-top: 6px; }
.mc-mine-row.is-cancelled,
.mc-mine-row.is-refunded { background: #f4f4f2; color: #8a8f98; }
.mc-mine-row.is-cancelled strong,
.mc-mine-row.is-refunded strong { text-decoration: line-through; font-weight: 500; }
.mc-mine-status { font-size: 0.76rem; color: #8a8f98; white-space: nowrap; }

/* ---- Small screens ---- */
@media (max-width: 767px) {
    .lb { --lb-cols: 30px minmax(0, 1fr) 40px; border-radius: 12px; }
    .lb-head { display: none; }
    .lb-row { padding: 0 12px; min-height: 60px; }
    .lb-row:nth-child(2) { border-top: 0; }
    .lb-num, .lb-rate { display: none; }
    .lb-record { display: inline; }
    .lb-avatar { width: 32px; height: 32px; }
    .lb-pts { font-size: 1.6rem; }
    .pball { width: 28px; height: 28px; }
    .sk-strip { padding: 16px; }
    .sk-strip-figs b { font-size: 1.7rem; }
    .mc { padding: 10px 14px 14px; border-radius: 12px; }
    .mc-row { gap: 10px; }
    .mc-p { font-size: 0.95rem; white-space: normal; overflow-wrap: anywhere; line-height: 1.25; }
    .mc-score { font-size: 1.9rem; gap: 6px; }
    .mc-pot b { font-size: 1.3rem; }
    .mc-mine-row { flex-wrap: wrap; }
    .mc-back { white-space: normal; line-height: 1.25; padding: 9px 8px; }
}
@media (min-width: 768px) and (max-width: 1199px) {
    .lb { --lb-cols: 34px minmax(0, 1fr) 34px 34px 34px 130px 48px; }
}
@media (prefers-reduced-motion: reduce) {
    .mc-bar i { transition: none; }
}

/* Green / red apple tallies next to a player's name */
.apple-tally { white-space: nowrap; font-size: 0.78rem; font-weight: 600; color: #6b7280; margin-left: 6px; }
.apple-tally span + span { margin-left: 5px; }
.lb-sub .apple-tally { margin-left: 0; }


/* About this tournament (description) — after the bracket, before the footer */
.detail-about {
    max-width: 1360px;
    margin: 28px auto 36px;
    padding: 22px 26px;
    background: #fff;
    border: 1px solid var(--pp-cream-dark, #e8dfcd);
    border-left: 4px solid var(--pp-gold, #d4a843);
    border-radius: 14px;
}
.detail-about[hidden] { display: none; }
.detail-about-title {
    margin: 0 0 10px;
    font-size: 1rem;
    font-weight: 700;
    color: var(--pp-dark, #0a1a17);
    display: flex; align-items: center; gap: 8px;
}
.detail-about-title i { color: var(--pp-gold, #d4a843); }
.detail-about-text {
    white-space: pre-line;
    line-height: 1.65;
    color: #3d4541;
    font-size: 0.95rem;
    overflow-wrap: anywhere;
}
.detail-about-text a { color: var(--pp-felt, #0d7a4a); text-decoration: underline; }
@media (max-width: 600px) {
    .detail-about { margin: 20px 12px 28px; padding: 16px 18px; }
}


/* Join this tournament: Get Started Free / Sign In, or Join Tournament (seasonal.php #detailJoin) */
.detail-join {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 14px;
    margin: 22px 0 6px;
}
.detail-join[hidden] { display: none; }
.detail-join .detail-join-btn {
    min-height: 50px;
    padding: 0 28px;
    border-radius: 999px;
    font-size: 1rem;
    font-weight: 600;
    gap: 10px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}
.detail-join .btn-pp { box-shadow: 0 5px 0 #a9822f, 0 12px 26px rgba(224, 182, 89, .25); }
.detail-join .btn-pp:disabled { opacity: .7; cursor: default; transform: none; }
.detail-join .btn-pp-outline {
    background: var(--pp-dark);
    color: var(--pp-cream);
    border: 2px solid var(--pp-dark);
}
.detail-join .btn-pp-outline:hover { background: transparent; color: var(--pp-dark); }
.detail-join-msg { flex-basis: 100%; text-align: center; margin: 4px 0 0; font-size: .9rem; min-height: 1em; }
.detail-join-msg.ok { color: #1f7a4d; }
.detail-join-msg.err { color: #b3261e; }
.detail-join-msg a { color: inherit; font-weight: 600; text-decoration: underline; }
@media (max-width: 480px) {
    .detail-join .detail-join-btn { flex: 1 1 100%; }
}
