/*
 * 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;
        }

        /* ─── 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%); }
        .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);
        }

        /* ─── TOURNAMENT INFO ─── */
        .tournament-info {
            background: white;
            border-radius: 16px;
            padding: 28px 32px;
            margin: -36px auto 36px;
            max-width: 900px;
            box-shadow: var(--card-shadow);
            position: relative;
            z-index: 2;
        }
        .tournament-info .row { align-items: center; }
        .tournament-info .stat {
            text-align: center;
            padding: 8px;
        }
        .tournament-info .stat .num {
            font-family: 'Bebas Neue', sans-serif;
            font-size: 2rem;
            color: var(--pp-felt);
            line-height: 1;
        }
        .tournament-info .stat .label {
            font-size: 0.72rem;
            text-transform: uppercase;
            letter-spacing: 0.5px;
            color: #999;
            margin-top: 2px;
        }
        .tournament-info .stat .num.live { color: #28a745; }
        .tournament-info .stat .num.completed { color: #888; }
        .tournament-info .stat .num.upcoming { color: var(--pp-gold); }

        /* ─── TOURNAMENT CARDS ─── */
        .tournament-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
            gap: 16px;
            margin-bottom: 32px;
        }
        .tournament-card {
            background: white;
            border-radius: 14px;
            padding: 20px;
            box-shadow: var(--card-shadow);
            cursor: pointer;
            transition: all .25s;
            position: relative;
            overflow: hidden;
        }
        .tournament-card:hover {
            transform: translateY(-3px);
            box-shadow: var(--card-shadow-hover);
        }
        .tournament-card:active { transform: scale(0.97); }
        .tournament-card .card-badge {
            display: inline-block;
            padding: 3px 12px;
            border-radius: 6px;
            font-size: 0.68rem;
            font-weight: 600;
            text-transform: uppercase;
            letter-spacing: 0.3px;
            margin-bottom: 10px;
        }
        .card-badge.live { background: #e6f7ed; color: #0d7a4a; }
        .card-badge.upcoming { background: #fef7e7; color: #b8860b; }
        .card-badge.completed { background: #f0f0f0; color: #777; }
        .tournament-card .card-name {
            font-family: 'Bebas Neue', sans-serif;
            font-size: 1.35rem;
            color: var(--pp-dark);
            margin-bottom: 10px;
            line-height: 1.15;
        }
        .tournament-card .card-stats {
            display: flex;
            flex-wrap: wrap;
            gap: 14px;
            font-size: 0.8rem;
            color: #777;
        }
        .tournament-card .card-stats i { color: var(--pp-felt); width: 14px; }
        .tournament-card .card-stats span {
            display: inline-flex;
            align-items: center;
            gap: 4px;
        }
        .tournament-card .card-arrow {
            position: absolute;
            bottom: 16px;
            right: 18px;
            color: var(--pp-felt);
            font-size: 1rem;
            opacity: 0;
            transition: opacity .25s;
        }
        .tournament-card:hover .card-arrow { opacity: 1; }

        /* ─── 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 ─── */
        .pp-tabs {
            border-bottom: 1.5px solid #e0e0e0;
            display: flex;
            margin-bottom: 24px;
            overflow-x: auto;
        }
        .pp-tabs .tab-link {
            padding: 10px 22px;
            font-weight: 600;
            font-size: 0.82rem;
            color: #999;
            cursor: pointer;
            border-bottom: 2.5px solid transparent;
            margin-bottom: -1.5px;
            transition: all .25s;
            white-space: nowrap;
            background: none;
            border-top: none;
            border-left: none;
            border-right: none;
        }
        .pp-tabs .tab-link:hover { color: var(--pp-felt); }
        .pp-tabs .tab-link.active { color: var(--pp-felt); border-bottom-color: var(--pp-felt); }
        .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); } }

        /* ─── 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; }

        .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 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-block;
            padding: 2px 10px;
            border-radius: 6px;
            font-size: 0.7rem;
            font-weight: 600;
        }
        .status-badge.complete { background: #e6f7ed; color: #0d7a4a; }
        .status-badge.live { background: #fef7e7; color: #b8860b; }
        .status-badge.pending { background: #f0f0f0; color: #888; }
        .status-badge.in_progress { background: #e6f0ff; color: #0055cc; }
        .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: #6b7280; }
        .challonge-game.awaiting .challonge-game-inner { border-color: #d4a017; background: #2d2815; }
        .challonge-game.reinstated .challonge-game-inner { border-color: #8e24aa; }
        .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; }

        /* ─── 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; }

        /* 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) {
            .pp-tabs { display: none !important; }
            .mobile-bottom-nav {
                display: flex; position: fixed; bottom: 0; left: 0; right: 0;
                background: white; border-top: 1px solid #eee;
                z-index: 1050; padding-bottom: env(safe-area-inset-bottom, 0);
            }
            .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: #aaa;
                font-size: 0.58rem; 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-felt); }
            .m-nav-link.active i { color: var(--pp-felt); }
            .m-nav-link.active::after {
                content: ''; position: absolute; top: 3px; left: 50%; transform: translateX(-50%);
                width: 18px; height: 3px; background: var(--pp-felt); 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; }

            .tournament-info { margin: -24px 12px 24px; padding: 20px 16px; }
            .tournament-info .stat .num { font-size: 1.4rem !important; }
            .tournament-info .stat .label { font-size: 0.65rem; letter-spacing: 0; }

            .tournament-grid { grid-template-columns: 1fr; gap: 12px; }
            .skeleton-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
            .tournament-card { padding: 16px; }
            .tournament-card .card-name { font-size: 1.2rem; }
            .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; }

            .tournament-info { margin: -18px 10px 18px; padding: 14px 10px; }
            .tournament-info .stat .num { font-size: 1.15rem !important; }
            .tournament-info .stat .label { font-size: 0.58rem; }

            .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; }

            .tournament-card { padding: 14px; }
            .tournament-card .card-name { font-size: 1.05rem; }
            .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; }
        }
