/* ===== live-bidding block 1 ===== */
/* SportsProClub Brand Colors */
        :root {
            --sportspro-primary: #00c896;
            --sportspro-primary-dark: #00b389;
            --sportspro-secondary: #667eea;
            --sportspro-accent: #f59e0b;
            --sportspro-text-dark: #1a202c;
            --sportspro-text-light: #64748b;
            --sportspro-bg-light: #ffffff;
            --sportspro-bg-gray: #f8fafc;
        }
        
        body {
            background: linear-gradient(135deg, var(--sportspro-primary) 0%, var(--sportspro-primary-dark) 100%);
            min-height: 100vh;
            font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
            margin: 0;
            padding: 0;
            -webkit-font-smoothing: antialiased;
            -moz-osx-font-smoothing: grayscale;
            overflow-x: hidden;
        }
        
        * {
            -webkit-tap-highlight-color: transparent;
            box-sizing: border-box;
        }
        
        img {
            max-width: 100%;
            height: auto;
        }
        
        /* Prevent text overflow */
        h1, h2, h3, h4, h5, h6, p, span, div {
            word-wrap: break-word;
            overflow-wrap: break-word;
        }
        
        .live-bidding-container {
            max-width: 1600px;
            margin: 0 auto;
            padding: 2rem;
        }
        
        .header-section {
            background: white;
            border-radius: 20px;
            padding: 1rem 2rem;
            margin-bottom: 2rem;
            box-shadow: 0 10px 30px rgba(0,0,0,0.2);
        }
        
        .header-content {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 1rem;
            flex-wrap: nowrap;
        }
        
        .header-left {
            display: flex;
            align-items: center;
            flex: 0 0 auto;
        }
        
        .header-center {
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            flex: 1;
            text-align: center;
        }
        
        .header-right {
            display: flex;
            align-items: center;
            flex: 0 0 auto;
        }
        
        .sportsproclub-logo {
            width: 50px;
            height: 50px;
            border-radius: 12px;
            object-fit: contain;
            background: white;
            padding: 6px;
            box-shadow: 0 3px 10px rgba(0,0,0,0.15);
            flex-shrink: 0;
        }
        
        .auction-logo {
            width: 50px;
            height: 50px;
            border-radius: 12px;
            object-fit: cover;
            border: 2px solid var(--sportspro-primary);
            box-shadow: 0 3px 10px rgba(0,0,0,0.15);
            flex-shrink: 0;
        }
        
        .header-center .auction-title {
            font-size: 1.5rem;
            margin-bottom: 0.25rem;
        }
        
        .header-center .live-indicator {
            font-size: 0.9rem;
            padding: 0.4rem 1rem;
        }
        
        .auction-title {
            font-size: 2.5rem;
            font-weight: 800;
            font-family: 'Poppins', sans-serif;
            color: var(--sportspro-text-dark);
            margin-bottom: 0.5rem;
            text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
        }
        
        .live-indicator {
            display: inline-block;
            background: linear-gradient(135deg, #dc3545, #e74c3c);
            color: white;
            padding: 0.5rem 1.5rem;
            border-radius: 25px;
            font-weight: 700;
            font-size: 1.1rem;
            font-family: 'Poppins', sans-serif;
            animation: pulse 2s infinite;
        }
        
        @keyframes pulse {
            0% { transform: scale(1); }
            50% { transform: scale(1.05); }
            100% { transform: scale(1); }
        }
        
        .main-content {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 2rem;
            margin-bottom: 2rem;
        }
        
        .player-card {
            background: white;
            border-radius: 20px;
            padding: 2rem;
            box-shadow: 0 10px 30px rgba(0,0,0,0.2);
            text-align: center;
        }
        
        .player-image {
            width: 150px;
            height: 150px;
            border-radius: 50%;
            object-fit: cover;
            border: 4px solid #dee2e6;
            margin: 0 auto 1.5rem;
            display: block;
            background: #f0f0f0;
            transition: opacity 0.3s;
        }
        
        .player-image.loading {
            opacity: 0.5;
            background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
            background-size: 200% 100%;
            animation: shimmer 1.5s infinite;
        }
        
        .player-image.loaded {
            opacity: 1;
        }
        
        @keyframes shimmer {
            0% { background-position: 200% 0; }
            100% { background-position: -200% 0; }
        }
        
        /* Image optimization */
        img {
            image-rendering: -webkit-optimize-contrast;
            image-rendering: crisp-edges;
            will-change: opacity;
            content-visibility: auto;
        }
        
        /* Faster image loading with content-visibility */
        .player-image,
        .top-player-img,
        .team-logo,
        .auction-logo,
        .sportsproclub-logo {
            content-visibility: auto;
            contain-intrinsic-size: auto 150px;
        }
        
        /* Optimize image container rendering */
        .player-card,
        .top-player-card,
        .team-card {
            contain: layout style paint;
        }
        
        /* Reduce repaints during image load */
        img[loading="lazy"] {
            content-visibility: auto;
        }
        
        .player-name {
            font-size: 2rem;
            font-weight: 700;
            font-family: 'Poppins', sans-serif;
            color: var(--sportspro-text-dark);
            margin-bottom: 0.5rem;
            text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
        }
        
        .player-role {
            font-size: 1.3rem;
            color: var(--sportspro-text-light);
            margin-bottom: 0.5rem;
            font-weight: 600;
            font-family: 'Inter', sans-serif;
            text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
        }
        
        .player-info-badges {
            display: flex;
            justify-content: center;
            gap: 0.75rem;
            flex-wrap: wrap;
            margin-bottom: 1.5rem;
        }
        
        .info-badge {
            display: inline-flex;
            align-items: center;
            gap: 0.5rem;
            padding: 0.5rem 1rem;
            background: linear-gradient(135deg, var(--sportspro-primary), var(--sportspro-primary-dark));
            color: white;
            border-radius: 25px;
            font-size: 0.9rem;
            font-weight: 600;
            font-family: 'Inter', sans-serif;
            box-shadow: 0 3px 10px rgba(0, 200, 150, 0.3);
        }
        
        .info-badge.rank {
            background: linear-gradient(135deg, var(--sportspro-accent), #f59e0b);
        }
        
        .info-badge.grade {
            background: linear-gradient(135deg, var(--sportspro-secondary), #764ba2);
        }
        
        .info-badge.role {
            background: linear-gradient(135deg, var(--sportspro-primary), var(--sportspro-secondary));
        }
        
        .top-players-section {
            background: white;
            border-radius: 20px;
            padding: 2rem;
            box-shadow: 0 10px 30px rgba(0,0,0,0.2);
            margin-bottom: 2rem;
        }
        
        /* Top 5 tab content styling */
        #top5Tab .top-players-grid {
            margin-top: 1.5rem;
        }
        
        .top-players-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
            gap: 1.5rem;
            margin-top: 1.5rem;
        }
        
        .top-player-card {
            background: linear-gradient(135deg, var(--sportspro-primary) 0%, var(--sportspro-primary-dark) 100%);
            border-radius: 15px;
            padding: 1.5rem;
            color: white;
            text-align: center;
            position: relative;
            overflow: hidden;
            transition: all 0.3s;
            box-shadow: 0 5px 15px rgba(0, 200, 150, 0.3);
        }
        
        .top-player-card:hover {
            transform: translateY(-5px);
            box-shadow: 0 10px 25px rgba(102, 126, 234, 0.5);
        }
        
        .top-player-card::before {
            content: '';
            position: absolute;
            top: -50%;
            right: -50%;
            width: 200%;
            height: 200%;
            background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
            animation: shimmer 3s infinite;
        }
        
        @keyframes shimmer {
            0% { transform: rotate(0deg); }
            100% { transform: rotate(360deg); }
        }
        
        .top-player-rank {
            position: absolute;
            top: 0.5rem;
            left: 0.5rem;
            background: rgba(255,255,255,0.3);
            backdrop-filter: blur(10px);
            width: 40px;
            height: 40px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-weight: 800;
            font-size: 1.2rem;
            border: 2px solid rgba(255,255,255,0.5);
        }
        
        .top-player-img {
            width: 100px;
            height: 100px;
            border-radius: 50%;
            object-fit: cover;
            border: 4px solid rgba(255,255,255,0.3);
            margin: 0 auto 1rem;
            display: block;
            position: relative;
            z-index: 1;
        }
        
        .top-player-name {
            font-size: 1.2rem;
            font-weight: 700;
            margin-bottom: 0.5rem;
            position: relative;
            z-index: 1;
        }
        
        .top-player-price {
            font-size: 1.8rem;
            font-weight: 800;
            margin-bottom: 0.5rem;
            position: relative;
            z-index: 1;
        }
        
        .top-player-team {
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 0.5rem;
            font-size: 0.9rem;
            opacity: 0.9;
            position: relative;
            z-index: 1;
        }
        
        .top-player-team-logo {
            width: 30px;
            height: 30px;
            border-radius: 50%;
            object-fit: cover;
            border: 2px solid rgba(255,255,255,0.5);
        }
        
        .section-title {
            font-size: 1.8rem;
            font-weight: 700;
            font-family: 'Poppins', sans-serif;
            color: var(--sportspro-text-dark);
            margin-bottom: 1rem;
            display: flex;
            align-items: center;
            gap: 0.75rem;
        }
        
        .section-title i {
            color: var(--sportspro-primary);
        }
        
        /* Viewer Controls Styles */
        .viewer-controls {
            background: white;
            border-radius: 20px;
            padding: 1.5rem;
            margin-bottom: 2rem;
            box-shadow: 0 10px 30px rgba(0,0,0,0.2);
        }
        
        .viewer-controls-inner {
            display: flex;
            gap: 1rem;
            align-items: center;
            flex-wrap: wrap;
        }
        
        .search-input-wrapper {
            flex: 1;
            min-width: 300px;
        }
        
        .search-input {
            width: 100%;
            padding: 0.75rem 1rem;
            border: 2px solid #dee2e6;
            border-radius: 10px;
            font-size: 1rem;
            transition: border-color 0.3s;
        }
        
        .search-input:focus {
            outline: none;
            border-color: #667eea;
        }
        
        .btn-viewer {
            border: none;
            padding: 0.75rem 1.5rem;
            border-radius: 10px;
            font-weight: 600;
            cursor: pointer;
            white-space: nowrap;
            transition: all 0.3s;
            touch-action: manipulation;
            min-height: 44px;
        }
        
        .btn-viewer-primary {
            background: linear-gradient(135deg, var(--sportspro-primary), var(--sportspro-primary-dark));
            color: white;
            font-family: 'Inter', sans-serif;
        }
        
        .btn-viewer-primary:active {
            transform: scale(0.98);
        }
        
        .btn-text {
            display: inline;
        }
        
        .btn-count {
            display: inline;
        }
        
        .bid-increment-info {
            background: #f8f9fa;
            padding: 0.5rem 1rem;
            border-radius: 10px;
            white-space: nowrap;
        }
        
        .bid-card {
            background: white;
            border-radius: 20px;
            padding: 2rem;
            box-shadow: 0 10px 30px rgba(0,0,0,0.2);
        }
        
        .bid-amount {
            font-size: 4rem;
            font-weight: 800;
            font-family: 'Poppins', sans-serif;
            color: var(--sportspro-primary);
            text-align: center;
            margin-bottom: 1rem;
        }
        
        .team-logo {
            width: 40px;
            height: 40px;
            border-radius: 50%;
            object-fit: cover;
            margin-right: 1rem;
        }
        
        .teams-section {
            background: white;
            border-radius: 20px;
            padding: 2rem;
            box-shadow: 0 10px 30px rgba(0,0,0,0.2);
            margin-bottom: 2rem;
        }
        
        .teams-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
            gap: 1.5rem;
        }
        
        .team-card {
            background: #f8f9fa;
            border-radius: 15px;
            padding: 1.5rem;
            border: 2px solid #dee2e6;
            transition: all 0.3s;
        }
        
        .team-card.highest-bid {
            border-color: var(--sportspro-primary);
            background: rgba(0, 200, 150, 0.1);
            transform: scale(1.02);
        }
        
        .team-header {
            display: flex;
            align-items: center;
            margin-bottom: 1rem;
        }
        
        .team-logo-large {
            width: 50px;
            height: 50px;
            border-radius: 50%;
            object-fit: cover;
            margin-right: 1rem;
        }
        
        .team-name {
            font-size: 1.3rem;
            font-weight: 700;
            color: #2c3e50;
        }
        
        .team-stats {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 1rem;
        }
        
        .stat-item {
            text-align: center;
        }
        
        .stat-value {
            font-size: 1.5rem;
            font-weight: 700;
            color: #2c3e50;
        }
        
        .stat-label {
            font-size: 0.9rem;
            color: #6c757d;
        }
        
        .auction-stats {
            background: white;
            border-radius: 20px;
            padding: 2rem;
            box-shadow: 0 10px 30px rgba(0,0,0,0.2);
        }
        
        .stats-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
            gap: 1rem;
        }
        
        .stat-card {
            background: #f8f9fa;
            border-radius: 15px;
            padding: 1.5rem;
            text-align: center;
        }
        
        .stat-number {
            font-size: 2rem;
            font-weight: 800;
            color: #2c3e50;
            margin-bottom: 0.5rem;
        }
        
        .stat-title {
            font-size: 0.9rem;
            color: #6c757d;
            text-transform: uppercase;
            font-weight: 600;
        }
        
        .no-player {
            text-align: center;
            padding: 4rem 2rem;
            color: #6c757d;
        }
        
        .no-player i {
            font-size: 4rem;
            margin-bottom: 1rem;
        }
        
        .refresh-btn {
            position: fixed;
            bottom: 2rem;
            right: 2rem;
            background: linear-gradient(135deg, var(--sportspro-primary), var(--sportspro-primary-dark));
            color: white;
            border: none;
            border-radius: 50px;
            padding: 1rem 1.5rem;
            font-weight: 600;
            font-family: 'Inter', sans-serif;
            cursor: pointer;
            box-shadow: 0 5px 15px rgba(0, 200, 150, 0.3);
            transition: all 0.3s;
            z-index: 1000;
            touch-action: manipulation;
        }
        
        .refresh-btn:hover {
            transform: translateY(-2px);
            box-shadow: 0 8px 25px rgba(0,123,255,0.4);
        }
        
        .refresh-btn:active {
            transform: translateY(0);
        }
        
        /* Tab Styles */
        .tab-btn {
            padding: 1rem 1.5rem;
            background: transparent;
            border: none;
            border-bottom: 3px solid transparent;
            color: #6c757d;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.3s;
            font-size: 1rem;
            white-space: nowrap;
        }
        
        .tab-btn:hover {
            color: var(--sportspro-primary);
            border-bottom-color: var(--sportspro-primary);
        }
        
        .tab-btn.active {
            color: var(--sportspro-primary);
            border-bottom-color: var(--sportspro-primary);
            background: rgba(0, 200, 150, 0.1);
        }
        
        /* Team Sub-Tabs Styles */
        .team-sub-tab-btn {
            transition: all 0.3s;
        }
        
        .team-sub-tab-btn:hover {
            color: var(--sportspro-primary) !important;
            background: rgba(0, 200, 150, 0.05);
        }
        
        .team-sub-tab-btn.active {
            color: var(--sportspro-primary) !important;
            border-bottom-color: var(--sportspro-primary) !important;
            background: rgba(0, 200, 150, 0.1);
        }
        
        /* Table Styles */
        table {
            width: 100%;
        }
        
        table tbody tr:hover {
            background: #f8f9fa !important;
        }
        
        /* Mobile Footer Navigation */
        .mobile-footer-nav {
            display: none;
            position: fixed;
            bottom: 0;
            left: 0;
            right: 0;
            background: white;
            border-top: 2px solid var(--sportspro-primary);
            box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.1);
            z-index: 1000;
            padding: 0.5rem 0;
            backdrop-filter: blur(10px);
            -webkit-backdrop-filter: blur(10px);
        }
        
        .mobile-footer-nav-items {
            display: flex;
            justify-content: space-around;
            align-items: center;
            max-width: 100%;
            margin: 0 auto;
        }
        
        /* Adjust for 4 items - make items slightly smaller */
        @media (max-width: 480px) {
            .mobile-footer-nav-item {
                padding: 0.4rem 0.5rem;
            }
            
            .mobile-nav-icon {
                font-size: 1.3rem;
            }
            
            .mobile-nav-label {
                font-size: 0.65rem;
            }
        }
        
        .mobile-footer-nav-item {
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            padding: 0.5rem 0.75rem;
            cursor: pointer;
            transition: all 0.3s;
            flex: 1;
            min-width: 0;
            touch-action: manipulation;
            -webkit-tap-highlight-color: transparent;
        }
        
        .mobile-footer-nav-item:active {
            transform: scale(0.95);
        }
        
        .mobile-footer-nav-item.active {
            color: var(--sportspro-primary);
        }
        
        .mobile-footer-nav-item.active .mobile-nav-icon {
            color: var(--sportspro-primary);
            transform: scale(1.1);
        }
        
        .mobile-nav-icon {
            font-size: 1.5rem;
            margin-bottom: 0.25rem;
            color: #6c757d;
            transition: all 0.3s;
        }
        
        .mobile-nav-label {
            font-size: 0.7rem;
            font-weight: 600;
            color: #6c757d;
            text-align: center;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
            max-width: 100%;
            font-family: 'Inter', sans-serif;
        }
        
        .mobile-footer-nav-item.active .mobile-nav-label {
            color: var(--sportspro-primary);
        }
        
        .mobile-nav-badge {
            position: absolute;
            top: 0.25rem;
            right: 0.5rem;
            background: var(--sportspro-primary);
            color: white;
            border-radius: 10px;
            padding: 0.15rem 0.4rem;
            font-size: 0.65rem;
            font-weight: 700;
            min-width: 18px;
            text-align: center;
            line-height: 1.2;
        }
        
        .mobile-footer-nav-item {
            position: relative;
        }
        
        /* Add padding to body to prevent content from being hidden behind footer */
        body.mobile-footer-active {
            padding-bottom: 70px;
        }
        
        /* Smooth scroll behavior */
        html {
            scroll-behavior: smooth;
        }
        
        /* Ensure tabs section is accessible */
        .tabs-section {
            min-height: calc(100vh - 200px);
        }
        
        @media (max-width: 768px) {
            .tabs-section {
                min-height: calc(100vh - 300px);
            }
        }
        
        .tab-content {
            animation: fadeIn 0.3s ease-in-out;
        }
        
        @keyframes fadeIn {
            from { opacity: 0; transform: translateY(10px); }
            to { opacity: 1; transform: translateY(0); }
        }
        
        .player-card-small {
            transition: all 0.3s ease;
            cursor: pointer;
        }
        
        .player-card-small:hover {
            transform: translateY(-5px) scale(1.02);
            box-shadow: 0 8px 20px rgba(0,0,0,0.15);
        }
        
        @media (hover: none) {
            .player-card-small:hover {
                transform: none;
            }
            
            .team-section:hover {
                box-shadow: none;
            }
        }
        
        .team-section {
            transition: all 0.3s ease;
        }
        
        .team-section:hover {
            box-shadow: 0 8px 20px rgba(0,0,0,0.1);
        }
        
        /* Mobile Responsive Styles */
        @media (max-width: 992px) {
            .live-bidding-container {
                padding: 1rem;
            }
            
            .main-content {
                grid-template-columns: 1fr;
                gap: 1.5rem;
            }
            
            .header-section {
                padding: 1.5rem;
                margin-bottom: 1.5rem;
            }
            
            .header-section {
                padding: 1rem 1.5rem;
            }
            
            .header-content {
                gap: 0.75rem;
            }
            
            .header-center .auction-title {
                font-size: 1.3rem;
            }
            
            .header-center .live-indicator {
                font-size: 0.85rem;
                padding: 0.35rem 0.85rem;
            }
            
            .sportsproclub-logo {
                width: 45px;
                height: 45px;
            }
            
            .auction-logo {
                width: 45px;
                height: 45px;
            }
            
            .auction-title {
                font-size: 1.8rem;
            }
            
            .live-indicator {
                font-size: 0.95rem;
                padding: 0.4rem 1.2rem;
            }
        }
        
        @media (max-width: 768px) {
            .live-bidding-container {
                padding: 0.75rem;
            }
            
            .main-content {
                grid-template-columns: 1fr;
                gap: 1rem;
            }
            
            .teams-grid {
                grid-template-columns: 1fr;
                gap: 1rem;
            }
            
            .header-section {
                padding: 1rem;
                margin-bottom: 1rem;
                border-radius: 15px;
            }
            
            .header-section {
                padding: 0.75rem 1rem;
            }
            
            .header-content {
                gap: 0.5rem;
            }
            
            .header-center .auction-title {
                font-size: 1.1rem;
            }
            
            .header-center .live-indicator {
                font-size: 0.75rem;
                padding: 0.3rem 0.75rem;
            }
            
            .sportsproclub-logo {
                width: 40px;
                height: 40px;
            }
            
            .auction-logo {
                width: 40px;
                height: 40px;
            }
            
            .header-left > div {
                width: 40px !important;
                height: 40px !important;
            }
            
            .auction-title {
                font-size: 1.5rem;
                line-height: 1.3;
            }
            
            .live-indicator {
                font-size: 0.85rem;
                padding: 0.4rem 1rem;
            }
            
            .viewer-controls {
                padding: 1rem !important;
                margin-bottom: 1rem !important;
                border-radius: 15px !important;
            }
            
            .viewer-controls-inner {
                flex-direction: column !important;
                gap: 0.75rem !important;
            }
            
            .search-input-wrapper {
                min-width: 100% !important;
                width: 100% !important;
            }
            
            .search-input {
                width: 100% !important;
                font-size: 0.9rem !important;
                padding: 0.7rem 1rem !important;
            }
            
            .btn-viewer {
                width: 100% !important;
                font-size: 0.9rem !important;
                padding: 0.7rem 1rem !important;
            }
            
            .bid-increment-info {
                width: 100% !important;
                text-align: center !important;
            }
            
            .player-card {
                padding: 1.5rem 1rem;
                border-radius: 15px;
            }
            
            .player-image {
                width: 120px;
                height: 120px;
                margin-bottom: 1rem;
            }
            
            .player-name {
                font-size: 1.5rem;
                line-height: 1.3;
            }
            
            .player-role {
                font-size: 1rem;
                margin-bottom: 0.75rem;
            }
            
            .player-info-badges {
                gap: 0.5rem;
                justify-content: center;
                flex-wrap: wrap;
            }
            
            .info-badge {
                font-size: 0.8rem;
                padding: 0.4rem 0.8rem;
                white-space: nowrap;
            }
            
            .bid-card {
                padding: 1.5rem 1rem;
                border-radius: 15px;
            }
            
            .bid-amount {
                font-size: 2.5rem;
                line-height: 1.2;
            }
            
            .team-logo {
                width: 35px;
                height: 35px;
                margin-right: 0.5rem;
            }
            
            .top-players-section {
                padding: 1.5rem 1rem;
                margin-bottom: 1rem;
                border-radius: 15px;
            }
            
            .section-title {
                font-size: 1.4rem;
                flex-wrap: wrap;
            }
            
            .top-players-grid {
                grid-template-columns: 1fr;
                gap: 1rem;
            }
            
            .top-player-card {
                padding: 1rem;
            }
            
            .top-player-rank {
                width: 35px;
                height: 35px;
                font-size: 1rem;
            }
            
            .top-player-img {
                width: 80px;
                height: 80px;
            }
            
            .top-player-name {
                font-size: 1.1rem;
            }
            
            .top-player-price {
                font-size: 1.5rem;
            }
            
            .top-player-team {
                font-size: 0.85rem;
            }
            
            .top-player-team-logo {
                width: 25px;
                height: 25px;
            }
            
            .tabs-section {
                padding: 1rem;
                margin-bottom: 1rem;
                border-radius: 15px;
            }
            
            /* Hide desktop tab navigation on mobile */
            .tab-navigation {
                display: none !important;
            }
            
            /* Show mobile footer navigation */
            .mobile-footer-nav {
                display: block !important;
            }
            
            /* Add padding to tabs section to prevent content from being hidden */
            .tabs-section {
                padding-bottom: 80px !important;
            }
            
            /* Adjust refresh button position on mobile */
            .refresh-btn {
                bottom: 5rem !important;
            }
            
            #updateIndicator {
                bottom: 5.5rem !important;
            }
            
            /* Ensure content doesn't get hidden behind footer */
            .live-bidding-container {
                padding-bottom: 80px !important;
            }
            
            .stats-grid {
                grid-template-columns: repeat(2, 1fr);
                gap: 0.75rem;
            }
            
            .stat-card {
                padding: 1rem;
            }
            
            .stat-number {
                font-size: 1.5rem;
            }
            
            .stat-title {
                font-size: 0.8rem;
            }
            
            .team-section {
                padding: 1rem;
                border-radius: 12px;
            }
            
            .team-section > div:first-child {
                flex-direction: column !important;
                align-items: flex-start !important;
                gap: 1rem !important;
            }
            
            .team-section > div:first-child > div:last-child {
                width: 100% !important;
                text-align: left !important;
            }
            
            .team-section > div:last-child {
                grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)) !important;
                gap: 0.75rem !important;
            }
            
            .players-grid {
                grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)) !important;
                gap: 0.75rem !important;
            }
            
            .player-card-small {
                padding: 0.75rem !important;
            }
            
            .player-card-small img {
                width: 60px !important;
                height: 60px !important;
            }
            
            .player-card-small h5 {
                font-size: 0.9rem !important;
            }
            
            .player-card-small p {
                font-size: 0.8rem !important;
            }
            
            #updateIndicator {
                bottom: 5.5rem !important;
                left: 0.75rem !important;
                right: auto !important;
                font-size: 0.8rem !important;
                padding: 0.5rem 0.75rem !important;
                max-width: calc(100% - 1.5rem);
            }
            
            .refresh-btn {
                font-size: 0.85rem;
                padding: 0.75rem 1rem;
                bottom: 0.75rem;
                right: 0.75rem;
                min-width: 44px;
                min-height: 44px;
            }
            
            .no-player {
                padding: 2rem 1rem;
            }
            
            .no-player i {
                font-size: 3rem;
            }
            
            .no-player h3 {
                font-size: 1.2rem;
            }
            
            .no-player p {
                font-size: 0.9rem;
            }
        }
        
        /* Responsive Players Table */
        .players-table-wrapper {
            overflow-x: auto;
            -webkit-overflow-scrolling: touch;
            width: 100%;
        }
        
        .players-table {
            width: 100%;
            table-layout: auto;
        }
        
        .players-table th,
        .players-table td {
            padding: 0.75rem;
        }
        
        @media (max-width: 768px) {
            .players-table-wrapper {
                overflow-x: visible;
                width: 100%;
            }
            
            .players-table {
                display: table;
                width: 100%;
                table-layout: auto;
                border-collapse: separate;
                border-spacing: 0 0.5rem;
            }
            
            .players-table thead {
                display: none;
            }
            
            .players-table tbody {
                display: table-row-group;
                width: 100%;
            }
            
            .players-table tr {
                display: table-row;
                background: white;
                border-radius: 8px;
                box-shadow: 0 2px 8px rgba(0,0,0,0.1);
                border: 1px solid #e0e0e0;
            }
            
            .players-table td {
                display: table-cell;
                vertical-align: middle;
                padding: 0.7rem 0.5rem;
                border: none;
                white-space: normal;
                text-align: center;
                word-wrap: break-word;
                overflow-wrap: break-word;
            }
            
            /* Player Number */
            .players-table td:first-child {
                width: 8%;
                min-width: 35px;
                font-size: 0.9rem;
                font-weight: 700;
                color: var(--sportspro-primary);
                padding-left: 0.5rem;
            }
            
            .players-table td:first-child:before {
                display: none;
            }
            
            /* Player Info - Takes most space */
            .players-table td:nth-child(2) {
                width: 45%;
                padding: 0.7rem 0.5rem;
            }
            
            .players-table td:nth-child(2):before {
                display: none;
            }
            
            .players-table td:nth-child(2) > div {
                display: flex;
                flex-direction: column;
                align-items: center;
                justify-content: center;
                gap: 0.4rem;
                width: 100%;
            }
            
            .players-table td:nth-child(2) > div > img {
                width: 50px !important;
                height: 50px !important;
                border-radius: 50% !important;
                object-fit: cover !important;
                border: 2px solid var(--sportspro-primary) !important;
                display: block;
            }
            
            .players-table td:nth-child(2) > div > div {
                width: 100%;
                text-align: center;
            }
            
            .players-table td:nth-child(2) > div > div > div:first-child {
                font-weight: 700;
                color: #2c3e50;
                font-size: 0.9rem;
                margin-bottom: 0.15rem;
                word-wrap: break-word;
                overflow-wrap: break-word;
                white-space: normal;
                line-height: 1.3;
            }
            
            .players-table td:nth-child(2) > div > div > div:last-child {
                font-size: 0.8rem;
                color: #6c757d;
                display: flex;
                align-items: center;
                justify-content: center;
                gap: 0.25rem;
                white-space: nowrap;
            }
            
            /* Role */
            .players-table td:nth-child(3) {
                width: 22%;
                font-size: 0.85rem;
                color: #6c757d;
                white-space: normal;
                padding: 0.7rem 0.4rem;
                word-wrap: break-word;
            }
            
            .players-table td:nth-child(3):before {
                display: none;
            }
            
            /* Price */
            .players-table td:nth-child(4) {
                width: 25%;
                padding: 0.7rem 0.5rem;
                white-space: normal;
                padding-right: 0.5rem;
            }
            
            .players-table td:nth-child(4):before {
                display: none;
            }
            
            .players-table td:nth-child(4) > span {
                font-size: 0.95rem;
                font-weight: 700;
                color: var(--sportspro-primary);
                word-wrap: break-word;
            }
        }
        
        @media (max-width: 480px) {
            .players-table {
                border-spacing: 0 0.4rem;
            }
            
            .players-table td {
                padding: 0.6rem 0.4rem;
            }
            
            .players-table td:first-child {
                width: 8%;
                min-width: 30px;
                font-size: 0.85rem;
                padding-left: 0.4rem;
            }
            
            .players-table td:nth-child(2) {
                width: 42%;
                padding: 0.6rem 0.4rem;
            }
            
            .players-table td:nth-child(2) > div {
                gap: 0.35rem;
            }
            
            .players-table td:nth-child(2) > div > img {
                width: 45px !important;
                height: 45px !important;
            }
            
            .players-table td:nth-child(2) > div > div > div:first-child {
                font-size: 0.85rem;
                margin-bottom: 0.1rem;
            }
            
            .players-table td:nth-child(2) > div > div > div:last-child {
                font-size: 0.75rem;
            }
            
            .players-table td:nth-child(3) {
                width: 25%;
                font-size: 0.8rem;
                padding: 0.6rem 0.3rem;
            }
            
            .players-table td:nth-child(4) {
                width: 25%;
                padding: 0.6rem 0.4rem;
                padding-right: 0.4rem;
            }
            
            .players-table td:nth-child(4) > span {
                font-size: 0.9rem;
            }
        }
        
        @media (max-width: 360px) {
            .players-table {
                border-spacing: 0 0.35rem;
            }
            
            .players-table td {
                padding: 0.55rem 0.3rem;
            }
            
            .players-table td:first-child {
                width: 8%;
                min-width: 28px;
                font-size: 0.8rem;
                padding-left: 0.3rem;
            }
            
            .players-table td:nth-child(2) {
                width: 40%;
                padding: 0.55rem 0.3rem;
            }
            
            .players-table td:nth-child(2) > div > img {
                width: 42px !important;
                height: 42px !important;
            }
            
            .players-table td:nth-child(2) > div > div > div:first-child {
                font-size: 0.8rem;
            }
            
            .players-table td:nth-child(3) {
                width: 26%;
                font-size: 0.75rem;
                padding: 0.55rem 0.25rem;
            }
            
            .players-table td:nth-child(4) {
                width: 26%;
                padding: 0.55rem 0.3rem;
                padding-right: 0.3rem;
            }
            
            .players-table td:nth-child(4) > span {
                font-size: 0.85rem;
            }
        }
        
        @media (max-width: 480px) {
            .live-bidding-container {
                padding: 0.5rem;
            }
            
            .header-section {
                padding: 0.75rem;
            }
            
            .header-section {
                padding: 0.5rem 0.75rem;
            }
            
            .header-content {
                gap: 0.4rem;
            }
            
            .header-center .auction-title {
                font-size: 1rem;
            }
            
            .header-center .live-indicator {
                font-size: 0.7rem;
                padding: 0.25rem 0.65rem;
            }
            
            .sportsproclub-logo {
                width: 35px;
                height: 35px;
            }
            
            .auction-logo {
                width: 35px;
                height: 35px;
            }
            
            .header-left > div {
                width: 35px !important;
                height: 35px !important;
            }
            
            .auction-title {
                font-size: 1.2rem;
            }
            
            .live-indicator {
                font-size: 0.75rem;
                padding: 0.35rem 0.85rem;
            }
            
            .viewer-controls {
                padding: 0.75rem !important;
            }
            
            .search-input {
                font-size: 0.85rem !important;
                padding: 0.6rem 0.85rem !important;
            }
            
            .btn-viewer {
                font-size: 0.85rem !important;
                padding: 0.6rem 0.85rem !important;
            }
            
            .btn-count {
                display: inline;
            }
            
            .player-card,
            .bid-card,
            .top-players-section,
            .tabs-section {
                padding: 1rem 0.75rem;
            }
            
            .player-image {
                width: 100px;
                height: 100px;
            }
            
            .player-name {
                font-size: 1.2rem;
            }
            
            .player-role {
                font-size: 0.95rem;
            }
            
            .info-badge {
                font-size: 0.75rem;
                padding: 0.35rem 0.7rem;
            }
            
            .bid-amount {
                font-size: 2rem;
            }
            
            .section-title {
                font-size: 1.2rem;
            }
            
            .top-player-img {
                width: 70px;
                height: 70px;
            }
            
            .top-player-name {
                font-size: 1rem;
            }
            
            .top-player-price {
                font-size: 1.3rem;
            }
            
            .tab-btn {
                padding: 0.65rem 0.85rem;
                font-size: 0.8rem;
            }
            
            .stats-grid {
                grid-template-columns: 1fr;
            }
            
            .stat-number {
                font-size: 1.3rem;
            }
            
            .team-section > div:last-child,
            .players-grid {
                grid-template-columns: 1fr !important;
            }
            
            .refresh-btn {
                font-size: 0.8rem;
                padding: 0.65rem 0.85rem;
                bottom: 0.5rem;
                right: 0.5rem;
            }
            
            #updateIndicator {
                bottom: 5rem !important;
                left: 0.5rem !important;
                font-size: 0.75rem !important;
                padding: 0.4rem 0.65rem !important;
            }
        }
        
        @media (max-width: 360px) {
            .auction-title {
                font-size: 1rem;
            }
            
            .player-name {
                font-size: 1.1rem;
            }
            
            .bid-amount {
                font-size: 1.75rem;
            }
            
            .info-badge {
                font-size: 0.7rem;
                padding: 0.3rem 0.6rem;
            }
            
            .live-bidding-container {
                padding: 0.5rem;
            }
            
            .header-section,
            .player-card,
            .bid-card,
            .top-players-section,
            .tabs-section,
            .viewer-controls {
                padding: 0.75rem 0.5rem !important;
            }
        }
        
        /* Landscape mobile optimization */
        @media (max-width: 768px) and (orientation: landscape) {
            .live-bidding-container {
                padding: 0.75rem;
            }
            
            .header-section {
                padding: 1rem;
            }
            
            .auction-title {
                font-size: 1.3rem;
            }
            
            .main-content {
                grid-template-columns: 1fr 1fr;
                gap: 1rem;
            }
            
            .player-image {
                width: 100px;
                height: 100px;
            }
            
            .bid-amount {
                font-size: 2rem;
            }
        }
        
        /* Modal Mobile Styles */
        @media (max-width: 768px) {
            .modal-content {
                margin: 5% auto !important;
                padding: 1.5rem !important;
                max-width: 95% !important;
                border-radius: 15px !important;
            }
            
            .close {
                font-size: 24px !important;
                top: 0.5rem !important;
                right: 0.5rem !important;
            }
            
            .search-results-grid,
            .players-list-grid {
                grid-template-columns: 1fr !important;
                gap: 0.75rem !important;
            }
            
            .player-result-card {
                padding: 0.75rem !important;
            }
            
            .player-result-img {
                width: 50px !important;
                height: 50px !important;
            }
            
            .player-details-img {
                width: 120px !important;
                height: 120px !important;
            }
            
            .player-details-modal h3 {
                font-size: 1.5rem !important;
            }
            
            .player-details-grid {
                grid-template-columns: 1fr !important;
            }
        }

/* ===== live-bidding block 2 ===== */
.close:hover, .close:focus { color: #000; }
        .search-results-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
            gap: 1rem;
            margin-top: 1.5rem;
        }
        .player-result-card {
            background: #f8f9fa;
            border-radius: 15px;
            padding: 1rem;
            display: flex;
            align-items: center;
            gap: 1rem;
            cursor: pointer;
            transition: all 0.3s;
        }
        .player-result-card:hover {
            background: #e9ecef;
            transform: translateY(-2px);
            box-shadow: 0 5px 15px rgba(0,0,0,0.2);
        }
        .player-result-img {
            width: 60px;
            height: 60px;
            border-radius: 50%;
            object-fit: cover;
        }
        .player-result-info h4 {
            margin: 0 0 0.25rem 0;
            font-size: 1.1rem;
            color: #2c3e50;
        }
        .player-result-info p {
            margin: 0 0 0.5rem 0;
            font-size: 0.9rem;
            color: #6c757d;
        }
        .status-badge {
            display: inline-block;
            padding: 0.25rem 0.75rem;
            border-radius: 20px;
            font-size: 0.8rem;
            font-weight: 600;
        }
        .status-available { background: #d4edda; color: #155724; }
        .status-sold { background: #cce5ff; color: #004085; }
        .status-unsold { background: #f8d7da; color: #721c24; }
        .players-list-container { margin-top: 1.5rem; }
        .players-stats {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 1rem;
            margin-bottom: 1.5rem;
        }
        .stat-box {
            background: #f8f9fa;
            padding: 1rem;
            border-radius: 10px;
            text-align: center;
            font-weight: 600;
        }
        .stat-available { color: var(--sportspro-primary); }
        .stat-sold { color: var(--sportspro-secondary); }
        .stat-unsold { color: #dc3545; }
        .players-list-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
            gap: 0.75rem;
            margin-top: 0.75rem;
        }
        .player-list-item {
            background: #f8f9fa;
            border-radius: 10px;
            padding: 0.75rem;
            display: flex;
            align-items: center;
            gap: 0.75rem;
            cursor: pointer;
            transition: all 0.3s;
        }
        .player-list-item:hover {
            background: #e9ecef;
            transform: scale(1.02);
        }
        .player-list-item img {
            width: 50px;
            height: 50px;
            border-radius: 50%;
            object-fit: cover;
        }
        .player-list-item strong {
            display: block;
            color: #2c3e50;
            margin-bottom: 0.25rem;
        }
        .player-list-item p {
            margin: 0;
            font-size: 0.85rem;
            color: #6c757d;
        }
        .player-details-modal { text-align: center; }
        .player-details-img {
            width: 150px;
            height: 150px;
            border-radius: 50%;
            object-fit: cover;
            border: 5px solid #dee2e6;
            margin: 0 auto 1.5rem;
        }
        .player-details-modal h3 {
            font-size: 2rem;
            font-weight: 700;
            color: #2c3e50;
            margin-bottom: 1.5rem;
        }
        .player-details-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
            gap: 1rem;
            text-align: left;
        }
        .detail-item {
            background: #f8f9fa;
            padding: 1rem;
            border-radius: 10px;
        }
        .detail-item strong {
            display: block;
            color: #6c757d;
            font-size: 0.85rem;
            margin-bottom: 0.5rem;
        }

