/* style.css */
/* Modern design system for VM-Tippning 2026 */

:root {
    --bg-dark: #0b0f19;
    --bg-card: rgba(22, 28, 45, 0.7);
    --bg-card-hover: rgba(30, 41, 59, 0.85);
    --border-color: rgba(255, 255, 255, 0.08);
    --border-focus: rgba(16, 185, 129, 0.5);
    
    --primary: #10b981;
    --primary-hover: #059669;
    --primary-glow: rgba(16, 185, 129, 0.3);
    
    --secondary: #6366f1;
    --accent: #f59e0b; /* Gold */
    --accent-silver: #94a3b8;
    --accent-bronze: #b45309;
    
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --text-success: #34d399;
    --text-danger: #f87171;
    --text-warning: #fbbf24;
    
    --font-sans: 'Outfit', 'Inter', system-ui, -apple-system, sans-serif;
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-sans);
    background-color: var(--bg-dark);
    color: var(--text-main);
    line-height: 1.5;
    background-image: 
        radial-gradient(at 0% 0%, rgba(16, 185, 129, 0.1) 0px, transparent 50%),
        radial-gradient(at 100% 100%, rgba(99, 102, 241, 0.08) 0px, transparent 50%);
    background-attachment: fixed;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Container */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 24px 16px;
    flex: 1;
}

/* Header & Navigation */
header {
    background: rgba(11, 15, 25, 0.8);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 100;
    transition: var(--transition-smooth);
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}

.logo-link {
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-text {
    font-size: 22px;
    font-weight: 800;
    background: linear-gradient(135deg, #10b981 0%, #3b82f6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -0.5px;
}

.logo-badge {
    background: var(--primary);
    color: #0b0f19;
    font-size: 11px;
    font-weight: 800;
    padding: 2px 6px;
    border-radius: 4px;
    text-transform: uppercase;
}

nav {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-link {
    color: var(--text-muted);
    text-decoration: none;
    padding: 8px 16px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    transition: var(--transition-smooth);
    border: 1px solid transparent;
}

.nav-link:hover, .nav-link.active {
    color: var(--text-main);
    background: rgba(255, 255, 255, 0.05);
}

.nav-link.active {
    border-color: rgba(16, 185, 129, 0.2);
    background: rgba(16, 185, 129, 0.1);
    color: var(--primary);
}

.user-menu {
    display: flex;
    align-items: center;
    gap: 12px;
}

.user-info {
    font-size: 13px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    padding: 6px 12px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.user-points {
    color: var(--primary);
    font-weight: 800;
}

.btn-logout {
    color: var(--text-danger);
    font-size: 13px;
    text-decoration: none;
    font-weight: 600;
    padding: 6px 12px;
    border-radius: 6px;
    transition: var(--transition-smooth);
}

.btn-logout:hover {
    background: rgba(248, 113, 113, 0.1);
}

/* Main layouts */
.grid-container {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 24px;
}

@media (max-width: 900px) {
    .grid-container {
        grid-template-columns: 1fr;
    }
}

/* Glass Cards */
.card {
    background: var(--bg-card);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    transition: var(--transition-smooth);
    margin-bottom: 24px;
}

.card:hover {
    border-color: rgba(255, 255, 255, 0.12);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}

.card-title {
    font-size: 18px;
    font-weight: 800;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 12px;
}

.card-title-badge {
    font-size: 12px;
    font-weight: 600;
    padding: 4px 8px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-muted);
}

/* Forms */
.form-group {
    margin-bottom: 18px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

@media (max-width: 480px) {
    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }
}

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 6px;
}

.form-control {
    width: 100%;
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 10px 14px;
    color: var(--text-main);
    font-family: var(--font-sans);
    font-size: 15px;
    transition: var(--transition-smooth);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-glow);
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-hover) 100%);
    color: #0b0f19;
    border: none;
    border-radius: 8px;
    padding: 12px 20px;
    font-size: 15px;
    font-weight: 800;
    cursor: pointer;
    transition: var(--transition-smooth);
    width: 100%;
    display: block;
    text-align: center;
    text-decoration: none;
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 15px var(--primary-glow);
    filter: brightness(1.1);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-main);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 12px 20px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-smooth);
    text-align: center;
    text-decoration: none;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.12);
}

.alert {
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 20px;
    border: 1px solid transparent;
}

.alert-success {
    background: rgba(16, 185, 129, 0.1);
    color: var(--text-success);
    border-color: rgba(16, 185, 129, 0.2);
}

.alert-danger {
    background: rgba(248, 113, 113, 0.1);
    color: var(--text-danger);
    border-color: rgba(248, 113, 113, 0.2);
}

.alert-warning {
    background: rgba(251, 191, 36, 0.1);
    color: var(--text-warning);
    border-color: rgba(251, 191, 36, 0.2);
}

/* Leaderboard Table */
.leaderboard-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 8px;
}

.leaderboard-table th {
    text-align: left;
    padding: 12px 16px;
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    color: var(--text-muted);
    border-bottom: 1px solid var(--border-color);
}

.leaderboard-table td {
    padding: 14px 16px;
    font-size: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.leaderboard-table tr:last-child td {
    border-bottom: none;
}

.leaderboard-table tr:hover td {
    background: rgba(255, 255, 255, 0.01);
}

.rank-cell {
    width: 48px;
    text-align: center;
}

.rank-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    font-weight: 800;
    font-size: 13px;
}

.rank-1 .rank-badge {
    background: linear-gradient(135deg, #fef08a 0%, #eab308 100%);
    color: #451a03;
    box-shadow: 0 0 10px rgba(234, 179, 8, 0.4);
}

.rank-2 .rank-badge {
    background: linear-gradient(135deg, #e2e8f0 0%, #94a3b8 100%);
    color: #0f172a;
    box-shadow: 0 0 8px rgba(148, 163, 184, 0.3);
}

.rank-3 .rank-badge {
    background: linear-gradient(135deg, #ffedd5 0%, #c2410c 100%);
    color: #fff;
    box-shadow: 0 0 6px rgba(194, 65, 12, 0.3);
}

.rank-other .rank-badge {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-muted);
}

.username-cell {
    font-weight: 600;
}

.points-cell {
    font-weight: 800;
    color: var(--primary);
    text-align: right;
    font-size: 16px;
}

.stat-cell {
    color: var(--text-muted);
    font-size: 13px;
    text-align: center;
}

/* Match list and cards */
.match-filters {
    display: flex;
    gap: 12px;
    margin-bottom: 24px;
    overflow-x: auto;
    padding-bottom: 8px;
}

.filter-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    color: var(--text-muted);
    padding: 8px 16px;
    border-radius: 20px;
    cursor: pointer;
    font-weight: 600;
    font-size: 13px;
    white-space: nowrap;
    transition: var(--transition-smooth);
}

.filter-btn:hover, .filter-btn.active {
    color: var(--text-main);
    background: rgba(255, 255, 255, 0.1);
}

.filter-btn.active {
    border-color: var(--primary);
    background: rgba(16, 185, 129, 0.1);
    color: var(--primary);
}

.group-section {
    margin-bottom: 32px;
}

.group-header {
    font-size: 20px;
    font-weight: 800;
    color: var(--text-main);
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.group-header::after {
    content: '';
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.1) 0%, transparent 100%);
}

.match-card {
    background: rgba(22, 28, 45, 0.5);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 16px 20px;
    margin-bottom: 12px;
    display: grid;
    grid-template-columns: 2fr 3fr 2fr;
    align-items: center;
    gap: 16px;
    transition: var(--transition-smooth);
    cursor: pointer;
}

.match-card:hover {
    border-color: rgba(255, 255, 255, 0.12);
    background: rgba(30, 41, 59, 0.4);
}

@media (max-width: 600px) {
    .match-card {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 12px;
    }
}

.match-info-side {
    font-size: 12px;
    color: var(--text-muted);
}

.match-date-time {
    font-weight: 600;
    color: var(--text-main);
}

.match-venue {
    margin-top: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.match-teams-score {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
}

.team-container {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 10px;
}

.team-container.home {
    justify-content: flex-end;
    text-align: right;
}

.team-container.away {
    justify-content: flex-start;
    text-align: left;
}

.team-name {
    font-weight: 600;
    font-size: 15px;
}

.team-badge {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 10px;
    color: var(--text-muted);
    flex-shrink: 0;
}

.score-display {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 800;
    font-size: 18px;
}

.score-box {
    background: rgba(15, 23, 42, 0.8);
    border: 1px solid var(--border-color);
    padding: 6px 12px;
    border-radius: 6px;
    min-width: 38px;
    text-align: center;
}

.score-divider {
    color: var(--text-muted);
}

.prediction-inputs {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.pred-input {
    width: 44px;
    text-align: center;
    background: rgba(15, 23, 42, 0.9);
    border: 1px solid var(--border-color);
    color: white;
    padding: 8px 4px;
    border-radius: 6px;
    font-family: var(--font-sans);
    font-weight: 800;
    font-size: 16px;
    transition: var(--transition-smooth);
}

.pred-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 2px var(--primary-glow);
}

.pred-input:disabled {
    opacity: 0.7;
    background: rgba(15, 23, 42, 0.4);
    cursor: not-allowed;
}

.match-prediction-side {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.pred-status-badge {
    font-size: 11px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 4px;
    text-transform: uppercase;
}

.pred-status-pending {
    background: rgba(251, 191, 36, 0.15);
    color: var(--text-warning);
}

.pred-status-saved {
    background: rgba(16, 185, 129, 0.15);
    color: var(--text-success);
}

.points-result-badge {
    font-size: 12px;
    font-weight: 800;
    padding: 4px 8px;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.points-result-2 {
    background: rgba(16, 185, 129, 0.2);
    color: var(--text-success);
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.points-result-1 {
    background: rgba(99, 102, 241, 0.2);
    color: #a5b4fc;
    border: 1px solid rgba(99, 102, 241, 0.3);
}

.points-result-0 {
    background: rgba(248, 113, 113, 0.1);
    color: var(--text-danger);
    border: 1px solid rgba(248, 113, 113, 0.2);
}

/* Prediction tooltip or expanded list of other users' predictions */
.other-preds-link {
    font-size: 11px;
    color: var(--text-muted);
    text-decoration: none;
    transition: var(--transition-smooth);
    cursor: pointer;
    margin-top: 4px;
}

.other-preds-link:hover {
    color: var(--primary);
    text-decoration: underline;
}

/* Group Standings Table */
.group-tables-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.group-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.group-table th {
    color: var(--text-muted);
    font-weight: 700;
    padding: 6px 8px;
    text-align: center;
    border-bottom: 1px solid var(--border-color);
}

.group-table th.team-th {
    text-align: left;
}

.group-table td {
    padding: 8px 8px;
    text-align: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.02);
}

.group-table td.team-td {
    text-align: left;
    font-weight: 600;
}

.group-table tr:nth-child(1) td.team-td,
.group-table tr:nth-child(2) td.team-td {
    color: var(--primary);
}

.group-table tr:last-child td {
    border-bottom: none;
}

.highlight-row {
    background: rgba(16, 185, 129, 0.05);
}

.group-title {
    font-size: 16px;
    font-weight: 800;
    margin-bottom: 10px;
    padding-bottom: 6px;
    border-bottom: 1px solid var(--border-color);
    color: var(--primary);
}

/* Admin Dashboard styles */
.admin-row {
    background: rgba(22, 28, 45, 0.5);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 12px 16px;
    margin-bottom: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.admin-match-meta {
    font-size: 12px;
    color: var(--text-muted);
}

.admin-match-teams {
    font-weight: 600;
    width: 250px;
}

.admin-score-form {
    display: flex;
    align-items: center;
    gap: 8px;
}

.admin-score-input {
    width: 50px;
    text-align: center;
    background: #0f172a;
    border: 1px solid var(--border-color);
    color: white;
    padding: 6px;
    border-radius: 6px;
    font-weight: 700;
}

.btn-save-score {
    background: var(--primary);
    color: #0b0f19;
    border: none;
    padding: 6px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 700;
    transition: var(--transition-smooth);
}

.btn-save-score:hover {
    background: var(--primary-hover);
}

/* Modal for other predictions */
.modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.modal-content {
    background: #0f172a;
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 24px;
    max-width: 500px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 12px;
}

.modal-close {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 24px;
    cursor: pointer;
}

.modal-close:hover {
    color: white;
}

.modal-list {
    list-style: none;
}

.modal-list-item {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.modal-list-item:last-child {
    border-bottom: none;
}

/* Footer styling */
footer {
    border-top: 1px solid var(--border-color);
    padding: 24px;
    text-align: center;
    color: var(--text-muted);
    font-size: 13px;
    margin-top: 40px;
}

footer a {
    color: var(--primary);
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
}

/* Tabs for groups list */
.group-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 24px;
}

.group-tab-btn {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    color: var(--text-muted);
    padding: 6px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    font-size: 13px;
    transition: var(--transition-smooth);
}

.group-tab-btn:hover, .group-tab-btn.active {
    background: rgba(16, 185, 129, 0.1);
    color: var(--primary);
    border-color: rgba(16, 185, 129, 0.2);
}

/* Prispott & Countdown banners */
.pot-banner {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.15) 0%, rgba(251, 191, 36, 0.05) 100%);
    border: 1px solid rgba(245, 158, 11, 0.3);
    border-radius: 16px;
    padding: 18px 24px;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 4px 20px rgba(245, 158, 11, 0.1);
    transition: var(--transition-smooth);
}

.pot-banner-title {
    margin: 0;
    color: var(--text-warning);
    font-size: 14px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

.pot-banner-desc {
    margin: 4px 0 0 0;
    font-size: 13px;
    color: var(--text-muted);
    font-family: var(--font-sans);
}

.pot-banner-value {
    text-align: right;
}

.pot-banner-amount {
    font-size: 28px;
    font-weight: 800;
    color: var(--text-warning);
    text-shadow: 0 0 10px rgba(245, 158, 11, 0.3);
}

.pot-banner-sub {
    font-size: 12px;
    color: var(--text-muted);
    font-weight: 600;
    margin-top: 2px;
}

.countdown-banner {
    background: rgba(30, 41, 59, 0.7);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 18px 24px;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

.countdown-banner-title {
    margin: 0;
    font-size: 14px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: var(--text-main);
}

.countdown-banner-desc {
    margin: 4px 0 0 0;
    font-size: 13px;
    color: var(--text-muted);
    font-family: var(--font-sans);
}

.countdown-display {
    display: flex;
    gap: 12px;
    font-family: var(--font-sans);
    font-weight: 800;
    font-size: 18px;
    color: var(--primary);
}

/* Hide number input spinners globally */
input[type=number]::-webkit-inner-spin-button, 
input[type=number]::-webkit-outer-spin-button { 
    -webkit-appearance: none; 
    margin: 0; 
}
input[type=number] {
    -moz-appearance: textfield;
}

/* Mobile and Tablet Responsive Enhancements */

/* Hide elements on mobile */
@media (max-width: 600px) {
    .hide-mobile {
        display: none !important;
    }
    .mobile-only-stats {
        display: block !important;
    }
}

/* Header & Navigation on Mobile */
@media (max-width: 600px) {
    .header-container {
        display: flex;
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: space-between;
        align-items: center;
        padding: 10px 12px;
        gap: 10px;
    }
    
    .logo-link {
        flex: 1 1 auto;
    }
    
    .logo-text {
        font-size: 18px;
    }
    
    .user-menu {
        flex: 0 0 auto;
        width: auto;
        justify-content: flex-end;
        gap: 6px;
    }
    
    .user-info {
        padding: 4px 8px;
        font-size: 11px;
    }
    
    .btn-logout {
        padding: 4px 8px;
        font-size: 11px;
    }
    
    nav {
        width: 100%;
        order: 3;
        justify-content: flex-start;
        overflow-x: auto;
        padding-bottom: 6px;
        gap: 4px;
        scrollbar-width: none; /* Hide scrollbar on Firefox */
        -webkit-overflow-scrolling: touch;
    }
    
    nav::-webkit-scrollbar {
        display: none; /* Hide scrollbar on Chrome/Safari */
    }
    
    .nav-link {
        padding: 6px 10px;
        font-size: 12px;
        white-space: nowrap;
    }
}

/* Banner responsiveness */
@media (max-width: 600px) {
    .pot-banner, .countdown-banner {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
        padding: 16px;
        gap: 12px;
    }
    
    .pot-banner-value {
        text-align: center;
        border-top: 1px solid rgba(245, 158, 11, 0.15);
        padding-top: 10px;
        margin-top: 2px;
    }
    
    .pot-banner-amount {
        font-size: 24px;
    }
    
    .countdown-display {
        justify-content: center;
    }
    
    .countdown-banner-desc {
        font-size: 12px;
    }
}

/* Match Card Mobile optimization */
@media (max-width: 600px) {
    .match-card {
        grid-template-columns: 1fr;
        padding: 12px 14px;
        gap: 10px;
    }
    
    .match-info-side {
        text-align: center;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
        padding-bottom: 6px;
    }
    
    .match-teams-score {
        display: flex;
        flex-direction: row !important;
        justify-content: space-between;
        align-items: center;
        width: 100%;
        gap: 8px;
    }
    
    .team-container {
        flex: 1;
        display: flex;
        align-items: center;
        gap: 0 !important;
    }
    
    .team-container.home {
        justify-content: flex-end;
        text-align: right;
    }
    
    .team-container.away {
        justify-content: flex-start;
        text-align: left;
    }
    
    .team-name {
        font-size: 13px;
        font-weight: 600;
        word-break: break-word;
        max-width: 110px;
    }
    
    .prediction-inputs {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 4px;
    }
    
    .pred-input {
        width: 38px;
        padding: 6px 2px;
        font-size: 14px;
        height: 32px;
    }
    
    .score-display {
        gap: 4px;
        font-size: 15px;
    }
    
    .score-box {
        min-width: 32px;
        padding: 4px 6px;
        font-size: 14px;
    }
    
    .match-prediction-side {
        margin-top: 4px;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 6px;
        width: 100%;
        border-top: 1px solid rgba(255, 255, 255, 0.05);
        padding-top: 8px;
        font-size: 12px;
    }
    
    .points-result-badge {
        font-size: 10px;
        padding: 2px 6px;
    }
}

/* Group Standings layout adjustments */
@media (max-width: 480px) {
    .group-tables-container .card {
        padding: 10px !important;
    }
    .group-table th, .group-table td {
        padding: 6px 3px;
        font-size: 11px;
    }
    .group-table td.team-td {
        font-size: 12px;
    }
}

/* Admin panel on mobile */
@media (max-width: 768px) {
    .admin-row {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
        gap: 12px;
        padding: 14px;
    }
    
    .admin-score-form {
        justify-content: center;
        border-top: 1px solid rgba(255, 255, 255, 0.05);
        padding-top: 10px;
    }
}
