@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&display=swap');

:root {
    --bg-main: #f4f6fa;
    --bg-card: #ffffff;
    --bg-card-hover: #f7fafc;
    --border-color: #e2e8f0;
    --border-glow: rgba(0, 242, 254, 0.15);
    
    --text-primary: #020f2a;
    --text-secondary: #4a5568;
    --text-muted: #718096;
    
    --accent-cyan: #00b4d8;
    --accent-purple: #7b2cbf;
    --accent-gold: #ffb703;
    --accent-silver: #94a3b8;
    --accent-bronze: #b07d62;
    --accent-green: #10b981;
    
    --font-outfit: 'Outfit', sans-serif;
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-main);
    color: var(--text-primary);
    font-family: var(--font-outfit);
    min-height: 100vh;
    display: flex;
    overflow-x: hidden;
}

a {
    color: inherit;
    text-decoration: none;
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

/* Main Layout */
.app-container {
    display: flex;
    width: 100%;
    min-height: 100vh;
}

/* Top Fixed Navigation Bar (Dark Branding) */
.app-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: #020f2a;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    z-index: 1000;
    color: #ffffff;
    display: flex;
    align-items: center;
}

.header-container {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 8px;
}

.logo-trophy {
    flex-shrink: 0;
    filter: drop-shadow(0 2px 4px rgba(255, 226, 89, 0.25));
}

.logo-text {
    font-weight: 800;
    font-size: 1.15rem;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: #ffffff;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 6px;
    line-height: 1;
}

.logo-sub {
    font-size: 0.85rem;
    color: #00f2fe;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.nav-links {
    list-style: none;
    display: flex;
    flex-direction: row;
    gap: 0.25rem;
    align-items: center;
}

.nav-item a {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.5rem 0.7rem;
    border-radius: 8px;
    color: #94a3b8;
    font-size: 0.9rem;
    font-weight: 600;
    transition: var(--transition-smooth);
    border: 1px solid transparent;
    white-space: nowrap;
}

.nav-item a:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.08);
}

.nav-item.active a {
    color: #ffffff;
    background: linear-gradient(135deg, rgba(0, 242, 254, 0.2), rgba(157, 78, 221, 0.2));
    border-color: rgba(0, 242, 254, 0.3);
    box-shadow: 0 4px 15px rgba(0, 242, 254, 0.1);
}

/* Special highlight style for the Leaderboard nav item */
.nav-item.nav-highlight a {
    color: var(--accent-gold);
    border-color: transparent;
    background: transparent;
}

.nav-item.nav-highlight a:hover {
    color: #ffffff;
    background: rgba(255, 183, 3, 0.1);
    border-color: rgba(255, 183, 3, 0.2);
}

.nav-item.nav-highlight.active a {
    color: #ffffff;
    background: linear-gradient(135deg, rgba(255, 183, 3, 0.25), rgba(157, 78, 221, 0.25));
    border-color: var(--accent-gold);
    box-shadow: 0 4px 15px rgba(255, 183, 3, 0.2);
}

/* Mobile Menu Elements (Hidden on Desktop) */
.mobile-menu-toggle,
.mobile-menu-header,
.mobile-menu-overlay {
    display: none;
}

/* Main Content Area */
.main-content {
    flex: 1;
    margin-left: 0;
    padding: 90px 2rem 4rem 2rem;
    min-height: 100vh;
    max-width: 1100px;
    width: 100%;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
}

.app-footer {
    margin-top: auto;
    padding-top: 3rem;
    border-top: 1px solid var(--border-color);
    text-align: center;
    color: var(--text-muted);
    font-size: 0.85rem;
    font-weight: 500;
}

/* Typography & General Classes */
h1 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.subtitle {
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin-bottom: 2.5rem;
}

.gradient-text {
    background: linear-gradient(135deg, var(--accent-cyan), var(--accent-purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Dashboard Styles */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-bottom: 3.5rem;
}

.stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    padding: 2rem;
    border-radius: 20px;
    backdrop-filter: blur(10px);
    transition: var(--transition-smooth);
}

.stat-card:hover {
    transform: translateY(-5px);
    border-color: var(--border-glow);
    box-shadow: 0 10px 30px rgba(0, 242, 254, 0.05);
}

.stat-val {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.stat-label {
    color: var(--text-secondary);
    font-size: 0.95rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Featured Section */
.featured-section {
    margin-top: 3rem;
}

.section-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.top-cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

/* Player Mini Card */
.player-mini-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 1.25rem;
    display: flex;
    align-items: center;
    gap: 1.25rem;
    transition: var(--transition-smooth);
    box-shadow: 0 4px 15px rgba(0,0,0,0.02);
}

.player-mini-card:hover {
    border-color: var(--text-muted);
    background: var(--bg-card-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.04);
}

.player-mini-img-container {
    width: 65px;
    height: 65px;
    border-radius: 50%;
    overflow: hidden;
    background: #f4f6fa;
    border: 2px solid var(--border-color);
    flex-shrink: 0;
}

.player-mini-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.player-mini-info {
    flex: 1;
    min-width: 0;
}

.player-mini-name {
    font-weight: 600;
    font-size: 1rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.player-mini-detail {
    font-size: 0.85rem;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 2px;
}

.flag-small {
    width: 18px;
    height: 12px;
    object-fit: cover;
    border-radius: 2px;
}

.player-mini-elo {
    font-weight: 700;
    color: var(--accent-cyan);
    font-size: 1rem;
}

/* Voting Workspace */
.voting-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 1000px;
    margin: 0 auto;
}

.vote-type-selector {
    display: flex;
    background: rgba(10, 14, 27, 0.6);
    padding: 6px;
    border-radius: 30px;
    border: 1px solid var(--border-color);
    margin-bottom: 3rem;
    position: relative;
    z-index: 10;
}

.vote-tab {
    padding: 0.75rem 1.75rem;
    border-radius: 25px;
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text-secondary);
    transition: var(--transition-smooth);
}

.vote-tab.active {
    color: var(--text-primary);
    background: linear-gradient(135deg, var(--accent-cyan), var(--accent-purple));
    box-shadow: 0 4px 15px rgba(0, 242, 254, 0.2);
}

.voting-arena {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 1100px;
    margin-left: auto;
    margin-right: auto;
    gap: 3rem;
    position: relative;
    margin-bottom: 2rem;
}

.vs-divider {
    position: relative;
    z-index: 10;
    width: 70px;
    height: 70px;
    flex-shrink: 0;
    filter: drop-shadow(0 4px 15px rgba(249, 83, 198, 0.45));
    transition: transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Player Vote Card Layout (Adapts the SVG Shield Card) */
.voting-arena .player-card {
    max-width: 380px;
    cursor: pointer;
    margin: 0;
}

.player-stats-grid {
    display: flex;
    gap: 15px;
    margin-top: 8%;
    padding-top: 8%;
    border-top: 1px dashed #e2e8f0;
    font-size: 0.85rem;
    color: var(--text-secondary);
    justify-content: center;
    width: 100%;
}

/* Leaderboard Page */
.leaderboard-filters {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    position: relative;
    z-index: 10;
    justify-content: center;
}

.filter-btn {
    padding: 0.6rem 1.25rem;
    border-radius: 10px;
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 0.9rem;
    transition: var(--transition-smooth);
    background: var(--bg-card);
}

.filter-btn:hover {
    color: var(--text-primary);
    border-color: var(--text-muted);
}

.filter-btn.active {
    background: #020f2a;
    color: #ffffff;
    border-color: #020f2a;
    box-shadow: 0 4px 10px rgba(2, 15, 42, 0.15);
}

.leaderboard-container {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.04);
}

.leaderboard-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}

.leaderboard-table th {
    padding: 1.25rem 2rem;
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
    border-bottom: 1px solid var(--border-color);
}

.leaderboard-table td {
    padding: 1.2rem 2rem;
    border-bottom: 1px solid var(--border-color);
    vertical-align: middle;
}

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

.leaderboard-table tr:hover td {
    background: #f7fafc;
}

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

.rank-1 {
    background: rgba(255, 183, 3, 0.2);
    color: var(--accent-gold);
    border: 1px solid rgba(255, 183, 3, 0.4);
}

.rank-2 {
    background: rgba(203, 213, 225, 0.2);
    color: var(--accent-silver);
    border: 1px solid rgba(203, 213, 225, 0.4);
}

.rank-3 {
    background: rgba(176, 125, 98, 0.2);
    color: var(--accent-bronze);
    border: 1px solid rgba(176, 125, 98, 0.4);
}

.player-info-cell {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.player-cell-img-container {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    overflow: hidden;
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--border-color);
}

.player-cell-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.player-cell-name {
    font-weight: 600;
    font-size: 1.05rem;
}

.player-cell-meta {
    font-size: 0.85rem;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 2px;
}

.elo-badge {
    font-weight: 700;
    color: var(--accent-cyan);
    font-size: 1.05rem;
}

.win-rate-cell {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 160px;
}

.win-rate-bar-bg {
    flex: 1;
    height: 6px;
    background: rgba(255,255,255,0.05);
    border-radius: 3px;
    overflow: hidden;
}

.win-rate-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--accent-purple), var(--accent-cyan));
    border-radius: 3px;
}

.win-rate-text {
    font-weight: 600;
    font-size: 0.95rem;
}

/* Teams Roster Grid */
.teams-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.team-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 2rem 1.5rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: var(--transition-smooth);
    box-shadow: 0 8px 20px rgba(0,0,0,0.02);
}

.team-card:hover {
    border-color: var(--text-muted);
    background: var(--bg-card-hover);
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.05);
}

.team-flag-container {
    width: 80px;
    height: 52px;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.08);
    margin-bottom: 1.25rem;
    border: 1px solid var(--border-color);
}

.team-flag {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.team-name {
    font-weight: 700;
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.team-players-count {
    color: var(--text-secondary);
    font-size: 0.85rem;
    font-weight: 600;
    background: #f4f6fa;
    padding: 4px 14px;
    border-radius: 20px;
    border: 1px solid var(--border-color);
}

/* Squad Roster View Header */
.squad-header {
    display: flex;
    align-items: center;
    gap: 2rem;
    margin-bottom: 3.5rem;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    padding: 2rem 3rem;
    border-radius: 24px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.02);
}

.squad-header-flag-box {
    width: 120px;
    height: 80px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 25px rgba(0,0,0,0.4);
    border: 1px solid var(--border-color);
}

.squad-header-title {
    font-size: 2.75rem;
    font-weight: 800;
}

.squad-roster-group {
    margin-bottom: 3rem;
}

.squad-group-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--accent-cyan);
    margin-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.squad-roster-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.coach-card {
    max-width: 320px;
    margin-bottom: 2.5rem;
}

.player-card {
    position: relative;
    width: 100%;
    aspect-ratio: 396 / 615;
    background: transparent;
    border: none;
    border-radius: 0;
    overflow: visible;
    transition: var(--transition-smooth);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    padding: 8% 6% 7% 6%;
    box-sizing: border-box;
}

.player-card:hover {
    transform: translateY(-8px);
    z-index: 150;
}

.player-card:hover .card-bg-svg {
    filter: drop-shadow(0 4px 12px rgba(0, 180, 216, 0.25));
}

.player-card:hover .card-bg-path {
    stroke: var(--accent-cyan) !important;
}

.card-bg-svg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
    transition: filter 0.3s ease;
}

.card-bg-path {
    fill: white !important;
    stroke: #E4E8F0 !important;
    stroke-width: 3px !important;
    transition: var(--transition-smooth);
}

.player-card-content {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    z-index: 2;
    overflow: visible;
}

.player-card-flag {
    position: absolute;
    top: 6%;
    left: 10%;
    width: 16%;
    aspect-ratio: 70.86 / 50;
    border-radius: 4px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 2px 6px rgba(0,0,0,0.08);
    object-fit: cover;
    z-index: 3;
}

.player-img-container {
    width: 100%;
    flex: 1;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    overflow: visible;
    margin-bottom: 6%;
    padding-top: 35px;
    background: transparent;
    border: none;
    box-shadow: none;
    z-index: 4;
}

.player-img {
    height: 85%;
    width: auto;
    max-width: 100%;
    object-fit: contain;
    filter: drop-shadow(0 6px 12px rgba(0,0,0,0.06));
}

.player-info {
    width: 100%;
    padding: 0;
    text-align: center;
    background: transparent;
    border: none;
    z-index: 5;
}

.player-name {
    font-family: var(--font-outfit);
    font-weight: 800;
    font-size: 1.1rem;
    color: #000000;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 2px;
}

.player-position {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.player-elo {
    font-size: 0.95rem;
    color: var(--accent-cyan);
    font-weight: 800;
    margin-top: 4px;
}

.player-card-divider {
    height: 1px;
    width: 80%;
    background-color: #e2e8f0;
    margin: 6% auto;
}

.player-stats-grid {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 12px;
    width: 100%;
    margin-top: 10px;
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.player-stats-overlay {
    position: absolute;
    top: 6%;
    right: 10%;
    width: 46px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 3;
}

.elo-badge-svg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.player-stats-overlay .elo-value {
    position: relative;
    font-family: var(--font-outfit);
    font-size: 0.85rem;
    font-weight: 800;
    color: #020f2a;
    z-index: 2;
    text-align: center;
    line-height: 1;
}

/* Empty States & Alert Boxes */
.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    max-width: 600px;
    margin: 3rem auto;
}

.empty-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.empty-desc {
    color: var(--text-secondary);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent-cyan), var(--accent-purple));
    color: #ffffff;
    padding: 0.85rem 2rem;
    border-radius: 12px;
    font-weight: 600;
    transition: var(--transition-smooth);
    display: inline-block;
    box-shadow: 0 4px 15px rgba(0, 242, 254, 0.2);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 242, 254, 0.3);
}

/* Card Loading Animation */
.card-loading {
    opacity: 0.3;
    pointer-events: none;
    transform: scale(0.98);
}
/* Podium Layout */
.podium-container {
    display: flex;
    justify-content: center;
    align-items: flex-end;
    gap: 1.5rem;
    margin: 4rem auto 2rem auto;
    max-width: 900px;
    padding-top: 2rem;
}

.podium-column {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 250px;
    position: relative;
}

.podium-first {
    order: 2;
}

.podium-second {
    order: 1;
}

.podium-third {
    order: 3;
}

/* Enhanced Premium Podium Layout */
.podium-column {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 250px;
    position: relative;
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.podium-column:hover {
    transform: translateY(-8px);
}

.podium-step {
    width: 100%;
    border-top-left-radius: 20px;
    border-top-right-radius: 20px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-bottom: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1.75rem 1rem;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.03);
    transition: var(--transition-smooth);
}

/* 1st Place (Gold Step) */
.podium-first .podium-step {
    height: 190px;
    background: linear-gradient(180deg, rgba(255, 226, 89, 0.15), var(--bg-card) 60%);
    border: 2px solid #ffd700;
    border-bottom: none;
    box-shadow: 0 -10px 30px rgba(255, 215, 0, 0.15);
}
.podium-first:hover .podium-step {
    box-shadow: 0 -12px 40px rgba(255, 215, 0, 0.25);
}

/* 2nd Place (Silver Step) */
.podium-second .podium-step {
    height: 150px;
    background: linear-gradient(180deg, rgba(148, 163, 184, 0.1), var(--bg-card) 60%);
    border: 2px solid #94a3b8;
    border-bottom: none;
    box-shadow: 0 -8px 25px rgba(148, 163, 184, 0.1);
}
.podium-second:hover .podium-step {
    box-shadow: 0 -10px 35px rgba(148, 163, 184, 0.2);
}

/* 3rd Place (Bronze Step) */
.podium-third .podium-step {
    height: 120px;
    background: linear-gradient(180deg, rgba(176, 125, 98, 0.1), var(--bg-card) 60%);
    border: 2px solid #b07d62;
    border-bottom: none;
    box-shadow: 0 -6px 20px rgba(176, 125, 98, 0.1);
}
.podium-third:hover .podium-step {
    box-shadow: 0 -8px 30px rgba(176, 125, 98, 0.2);
}

/* Podium Rank Styling */
.podium-rank {
    font-size: 2.8rem;
    font-weight: 900;
    line-height: 1;
    margin-bottom: 0.25rem;
    font-family: var(--font-outfit);
}

.podium-first .podium-rank {
    color: #ffd700;
    text-shadow: 0 2px 8px rgba(255, 215, 0, 0.35);
}

.podium-second .podium-rank {
    color: #94a3b8;
    text-shadow: 0 2px 8px rgba(148, 163, 184, 0.25);
}

.podium-third .podium-rank {
    color: #b07d62;
    text-shadow: 0 2px 8px rgba(176, 125, 98, 0.25);
}

/* ELO Value Badge inside step */
.podium-elo {
    font-size: 1.25rem;
    font-weight: 850;
    color: var(--text-primary);
    margin-bottom: 2px;
}

.podium-elo-label {
    font-size: 0.72rem;
    color: var(--text-muted);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

/* Player Card sitting on podium */
.podium-player-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 1.25rem;
    text-align: center;
    width: 100%;
}

/* Avatar Containers with premium glowing double-ring */
.podium-avatar-container {
    position: relative;
    width: 104px;
    height: 104px;
    margin-bottom: 1.25rem;
    border-radius: 50%;
    padding: 4px;
    box-sizing: border-box;
    background: var(--bg-card);
    transition: transform 0.3s ease;
}

.podium-first .podium-avatar-container {
    width: 128px;
    height: 128px;
    border: 3px solid #ffd700;
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.25);
}

.podium-second .podium-avatar-container {
    width: 112px;
    height: 112px;
    border: 3px solid #94a3b8;
    box-shadow: 0 0 15px rgba(148, 163, 184, 0.2);
}

.podium-third .podium-avatar-container {
    width: 106px;
    height: 106px;
    border: 3px solid #b07d62;
    box-shadow: 0 0 12px rgba(176, 125, 98, 0.15);
}

.podium-column:hover .podium-avatar-container {
    transform: scale(1.04);
}

.podium-avatar {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    background: linear-gradient(135deg, #f1f5f9, #e2e8f0);
}

.podium-crown {
    position: absolute;
    top: -28px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    animation: crown-bounce 2s infinite ease-in-out;
}

.podium-name {
    font-weight: 850;
    font-size: 1.15rem;
    color: var(--text-primary);
    margin-bottom: 0.35rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    width: 90%;
    letter-spacing: -0.2px;
}

.podium-first .podium-name {
    font-size: 1.35rem;
}

.podium-meta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: 0.8rem;
    color: var(--text-secondary);
    font-weight: 700;
}

.podium-meta span {
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Crown Bounce Animation */
@keyframes crown-bounce {
    0%, 100% { transform: translate(-50%, 0) rotate(0deg); }
    50% { transform: translate(-50%, -8px) rotate(2deg); }
}

@media (max-width: 768px) {
    .podium-container {
        flex-direction: column;
        align-items: center;
        gap: 3rem;
        padding-top: 1rem;
    }
    .podium-column {
        width: 100%;
        max-width: 320px;
    }
    .podium-first {
        order: 1 !important;
    }
    .podium-second {
        order: 2 !important;
    }
    .podium-third {
        order: 3 !important;
    }
    .podium-step {
        height: auto !important;
        flex-direction: row !important;
        justify-content: flex-start !important;
        align-items: center !important;
        padding: 0.5rem 1.25rem !important;
        width: 85% !important;
        margin: 0.5rem auto 0 auto !important;
        border-radius: 50px !important;
        border: 1.5px solid var(--border-color) !important;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1) !important;
    }
    .podium-rank {
        font-size: 1.4rem !important;
        margin: 0 !important;
        font-weight: 900 !important;
    }
    .podium-elo {
        font-size: 1.1rem !important;
        margin: 0 0 0 auto !important;
        font-weight: 800 !important;
        color: var(--text-primary) !important;
    }
    .podium-elo-label {
        font-size: 0.65rem !important;
        margin: 0 0 0 4px !important;
        font-weight: 700 !important;
        color: var(--text-muted) !important;
    }
    .podium-first .podium-step {
        border-color: #ffd700 !important;
        background: linear-gradient(135deg, rgba(255, 215, 0, 0.08), rgba(2, 15, 42, 0.3)) !important;
        box-shadow: 0 4px 15px rgba(255, 215, 0, 0.15) !important;
    }
    .podium-second .podium-step {
        border-color: #94a3b8 !important;
        background: linear-gradient(135deg, rgba(148, 163, 184, 0.08), rgba(2, 15, 42, 0.3)) !important;
        box-shadow: 0 4px 15px rgba(148, 163, 184, 0.1) !important;
    }
    .podium-third .podium-step {
        border-color: #b07d62 !important;
        background: linear-gradient(135deg, rgba(176, 125, 98, 0.08), rgba(2, 15, 42, 0.3)) !important;
        box-shadow: 0 4px 15px rgba(176, 125, 98, 0.1) !important;
    }
    .home-hero-btn {
        padding: 0.8rem 1.5rem !important;
        font-size: 0.95rem !important;
        border-radius: 12px !important;
        width: 100%;
        justify-content: center;
    }
    .hero-section {
        margin-bottom: 2rem !important;
        margin-top: 1rem !important;
    }
}

/* Responsive Queries */
@media (max-width: 1200px) {
    .teams-grid, .squad-roster-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 992px) {
    .app-header {
        position: fixed;
        height: 60px;
        background: #020f2a;
        z-index: 1000;
        top: 0;
        left: 0;
        right: 0;
    }
    
    .header-container {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        gap: 1rem;
        padding: 0 1rem;
        width: 100%;
        height: 100%;
    }
    
    .logo-container {
        flex-shrink: 0;
    }
    
    .mobile-menu-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
        background: transparent;
        border: none;
        color: #ffffff;
        cursor: pointer;
        padding: 0.5rem;
        border-radius: 8px;
        transition: background-color 0.2s ease;
    }
    .mobile-menu-toggle:hover {
        background: rgba(255, 255, 255, 0.05);
    }
    
    .nav-wrapper {
        position: fixed;
        top: 0;
        right: -300px;
        width: 300px;
        height: 100vh;
        background: rgba(2, 15, 42, 0.7);
        backdrop-filter: blur(15px);
        -webkit-backdrop-filter: blur(15px);
        border-left: 1px solid rgba(255, 255, 255, 0.08);
        z-index: 2000;
        display: flex;
        flex-direction: column;
        padding: 1.5rem;
        box-sizing: border-box;
        transition: right 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        overflow-y: auto;
    }
    .nav-wrapper.mobile-open {
        right: 0;
    }
    
    .mobile-menu-header {
        display: flex;
        justify-content: flex-end;
        margin-bottom: 2rem;
        width: 100%;
    }
    
    .mobile-menu-close {
        display: flex;
        align-items: center;
        justify-content: center;
        background: transparent;
        border: none;
        color: #94a3b8;
        cursor: pointer;
        padding: 0.5rem;
        border-radius: 8px;
        transition: all 0.2s ease;
    }
    .mobile-menu-close:hover {
        color: #ffffff;
        background: rgba(255, 255, 255, 0.05);
    }

    .nav-links {
        flex-direction: column;
        align-items: stretch;
        gap: 0.75rem;
        width: 100%;
        padding: 0;
    }
    
    .nav-item {
        width: 100%;
    }
    
    .nav-item a {
        font-size: 0.95rem;
        padding: 0.75rem 1rem;
        border-radius: 10px;
        display: flex;
        align-items: center;
        gap: 0.75rem;
        width: 100%;
        box-sizing: border-box;
    }
    
    .nav-item a .nav-icon {
        display: inline-block !important;
        width: 16px;
        height: 16px;
        color: var(--accent-cyan);
    }
    
    .mobile-menu-overlay {
        display: block;
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        background: rgba(2, 15, 42, 0.5);
        backdrop-filter: blur(6px);
        -webkit-backdrop-filter: blur(6px);
        z-index: 1999;
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.3s ease;
    }
    .mobile-menu-overlay.active {
        opacity: 1;
        pointer-events: auto;
    }
    
    .main-content {
        padding: 80px 1rem 4rem 1rem;
    }
    
    body.menu-open .app-header {
        z-index: 2001;
    }
    

    .dashboard-grid {
        grid-template-columns: 1fr;
    }
    
    .voting-arena {
        flex-direction: column;
        gap: 2.5rem;
    }
    
    .vs-divider {
        position: relative;
        margin: -1rem 0;
        transform: rotate(90deg);
    }
}

@media (max-width: 768px) {
    .teams-grid, .squad-roster-grid, .top-cards-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .leaderboard-filters {
        flex-wrap: wrap;
        overflow-x: visible;
        justify-content: center;
        gap: 6px;
        padding-bottom: 0;
        margin-bottom: 1.5rem;
        width: 100%;
    }
    
    .leaderboard-filters::-webkit-scrollbar {
        display: none;
    }
    
    .filter-btn {
        flex-shrink: 1;
        padding: 6px 8px;
        font-size: 0.75rem;
        display: inline-flex;
        align-items: center;
        gap: 3px;
    }

    /* Shorten text inside filters on mobile using data-short attribute */
    .leaderboard-filters .btn-text {
        font-size: 0;
        line-height: 0;
    }
    .leaderboard-filters .btn-text::before {
        content: attr(data-short);
        font-size: 0.7rem;
        font-weight: 700;
        line-height: 1;
    }
    
    .leaderboard-table th {
        padding: 0.8rem 0.75rem;
        font-size: 0.8rem;
    }
    
    .leaderboard-table td {
        padding: 0.8rem 0.75rem;
    }
    
    .player-cell-img-container {
        width: 36px;
        height: 36px;
    }
    
    .player-cell-name {
        font-size: 0.9rem;
    }
    
    .player-cell-meta {
        font-size: 0.75rem;
    }
    
    .rank-badge {
        width: 26px;
        height: 26px;
        font-size: 0.8rem;
    }
}

@media (max-width: 576px) {
    .teams-grid, .squad-roster-grid, .top-cards-grid {
        grid-template-columns: 1fr;
    }
    
    .leaderboard-table th:nth-child(3),
    .leaderboard-table td:nth-child(3),
    .leaderboard-table th:nth-child(5),
    .leaderboard-table td:nth-child(5) {
        display: none; /* Hide Position (3) and Matches (5) to keep ELO rating (4) visible */
    }
}

/* Spinner Animation */
.loading-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid var(--border-color);
    border-top-color: var(--accent-cyan);
    border-radius: 50%;
    animation: spinner-spin 0.8s linear infinite;
    vertical-align: middle;
}

@keyframes spinner-spin {
    to { transform: rotate(360deg); }
}

/* Card loading state transition */
.player-card {
    transition: opacity 0.3s ease, transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}
.player-card.card-loading {
    opacity: 0.6;
    pointer-events: none;
    transform: scale(0.98);
}

/* Persistent Voter Registration Modal */
.voter-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(2, 15, 42, 0.4);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
    transition: opacity 0.3s ease;
}

.voter-modal-card {
    background: #ffffff;
    border: 1px solid rgba(2, 15, 42, 0.08);
    border-radius: 24px;
    padding: 2.5rem 2rem;
    max-width: 420px;
    width: 90%;
    text-align: center;
    box-shadow: 0 20px 50px rgba(2, 15, 42, 0.15), 0 0 1px rgba(2, 15, 42, 0.1);
    transform: translateY(0);
    transition: transform 0.3s ease;
}

.voter-modal-title {
    margin-bottom: 0.5rem;
    font-size: 1.6rem;
    color: #020f2a;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-family: var(--font-outfit);
}

.voter-modal-desc {
    color: #4a5568;
    font-size: 0.95rem;
    margin-bottom: 1.75rem;
    line-height: 1.5;
}

.voter-modal-field {
    margin-bottom: 1.25rem;
    text-align: left;
}

.voter-modal-label {
    display: block;
    font-size: 0.8rem;
    font-weight: 700;
    color: #718096;
    text-transform: uppercase;
    margin-bottom: 6px;
    letter-spacing: 0.5px;
}

.voter-modal-input {
    width: 100%;
    padding: 12px 16px;
    background: #f8fafc;
    border: 1.5px solid #e2e8f0;
    border-radius: 12px;
    color: #020f2a;
    font-size: 1rem;
    font-family: var(--font-outfit);
    font-weight: 500;
    outline: none;
    transition: all 0.2s ease;
    box-sizing: border-box;
}

.voter-modal-input:focus {
    background: #ffffff;
    border-color: var(--accent-cyan);
    box-shadow: 0 0 0 4px rgba(0, 180, 216, 0.1);
}

.voter-modal-btn {
    width: 100%;
    padding: 14px;
    font-weight: 700;
    font-size: 1.05rem;
    font-family: var(--font-outfit);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    background: #020f2a;
    color: #ffffff;
    border: none;
    transition: all 0.2s ease;
    box-shadow: 0 4px 12px rgba(2, 15, 42, 0.15);
}

.voter-modal-btn:hover {
    background: #0a1835;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(2, 15, 42, 0.2);
}

.voter-modal-btn:active {
    transform: translateY(0);
}

.player-card.player-card--winner .card-bg-path {
    stroke: var(--accent-green) !important;
}

.player-card.player-card--winner .card-bg-svg {
    filter: drop-shadow(0 0 20px rgba(16, 185, 129, 0.35));
}

.player-card.player-card--loser .card-bg-path {
    stroke: #ff4d4d !important;
}

.player-card.player-card--loser .card-bg-svg {
    filter: drop-shadow(0 0 20px rgba(255, 77, 77, 0.35));
}

.player-card.player-card--voted {
    cursor: default;
}

.player-card.player-card--voted:hover {
    transform: translateY(0) !important;
}

.player-card.player-card--winner:hover .card-bg-path {
    stroke: var(--accent-green) !important;
}

.player-card.player-card--winner:hover .card-bg-svg {
    filter: drop-shadow(0 0 20px rgba(16, 185, 129, 0.35));
}

/* Allow interactive hover swap states on the loser card */
.player-card.player-card--loser {
    cursor: pointer;
}

.player-card.player-card--loser:hover .card-bg-path {
    stroke: var(--accent-cyan) !important;
}

.player-card.player-card--loser:hover .card-bg-svg {
    filter: drop-shadow(0 0 20px rgba(0, 180, 216, 0.4));
}

/* Clicked Vote Feedback Highlights */
.player-card.player-card--winner-clicked .card-bg-path {
    stroke: var(--accent-green) !important;
}

.player-card.player-card--winner-clicked .card-bg-svg {
    filter: drop-shadow(0 0 30px rgba(16, 185, 129, 0.45));
}

.player-card.player-card--loser-clicked .card-bg-path {
    stroke: #ff4d4d !important;
}

.player-card.player-card--loser-clicked .card-bg-svg {
    filter: drop-shadow(0 0 30px rgba(255, 77, 77, 0.45));
}

/* Player hover tooltip card */
.player-cell-img-container--hoverable {
    cursor: help;
}

.player-hover-tooltip {
    position: fixed;
    z-index: 10000;
    width: 220px;
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 0.9rem;
    box-shadow: 0 12px 30px rgba(2, 15, 42, 0.15), 0 0 1px rgba(0, 0, 0, 0.1);
    pointer-events: none;
    opacity: 0;
    transform: translateY(10px) scale(0.95);
    transition: opacity 0.15s ease, transform 0.15s ease;
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: center;
}

.player-hover-tooltip.active {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.tooltip-img-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1.1;
    border-radius: 10px;
    overflow: hidden;
    background: #f8fafc;
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.tooltip-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.tooltip-header {
    display: flex;
    flex-direction: column;
    gap: 4px;
    text-align: center;
    width: 100%;
}

.tooltip-name {
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--text-primary);
    letter-spacing: -0.3px;
    line-height: 1.2;
}

.tooltip-meta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.tooltip-flag {
    width: 15px;
    height: 10px;
    object-fit: cover;
    border-radius: 2px;
    box-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

.tooltip-stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 6px;
    border-top: 1px solid var(--border-color);
    padding-top: 8px;
    width: 100%;
}

.tooltip-stat-item {
    background: #f8fafc;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 5px 6px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.tooltip-stat-label {
    font-size: 0.6rem;
    color: var(--text-muted);
    text-transform: uppercase;
    font-weight: 700;
    margin-bottom: 2px;
    letter-spacing: 0.3px;
}

.tooltip-stat-val {
    font-size: 0.9rem;
    font-weight: 800;
    color: var(--text-primary);
}

.full-stats-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    z-index: 100;
    text-align: left;
    box-sizing: border-box;
    pointer-events: none;
    overflow: hidden;
    border-radius: 24px;
}

.player-card.active-stats .full-stats-overlay {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.overlay-header {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8rem;
    font-weight: 800;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
    border-bottom: 1px dashed rgba(255, 255, 255, 0.15);
    padding-bottom: 6px;
}

.full-stats-content {
    position: relative;
    z-index: 2;
    width: 100%;
    margin-top: 30px;
    height: calc(100% - 90px);
    padding: 15px 10% 20px 10%;
    box-sizing: border-box;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(0, 242, 254, 0.3) transparent;
}

.full-stats-overlay .card-bg-path {
    fill: #020f2a !important;
    stroke: var(--accent-cyan) !important;
    stroke-width: 1.5px !important;
}

.stats-trigger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-top: 10px;
    font-size: 0.72rem;
    font-weight: 800;
    color: #1e293b;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: color 0.2s ease;
    position: relative;
    z-index: 5;
}

.stats-trigger:hover {
    color: var(--accent-cyan);
}

.stats-trigger svg {
    color: var(--accent-cyan);
    transition: transform 0.2s ease;
}

.stats-trigger:hover svg {
    transform: scale(1.1);
}

.full-stats-content span:nth-child(odd) {
    color: #94a3b8 !important;
}

.full-stats-content span:nth-child(even) {
    color: #ffffff !important;
}

/* ═══════ Vote Transition Animations ═══════ */

/* Card exit — slides left/right and fades out */
@keyframes cardExitLeft {
    0%   { opacity: 1; transform: translateX(0) scale(1); }
    100% { opacity: 0; transform: translateX(-60px) scale(0.92); }
}
@keyframes cardExitRight {
    0%   { opacity: 1; transform: translateX(0) scale(1); }
    100% { opacity: 0; transform: translateX(60px) scale(0.92); }
}

/* Card enter — slides in and fades up */
@keyframes cardEnterLeft {
    0%   { opacity: 0; transform: translateX(-40px) translateY(15px) scale(0.95); }
    100% { opacity: 1; transform: translateX(0) translateY(0) scale(1); }
}
@keyframes cardEnterRight {
    0%   { opacity: 0; transform: translateX(40px) translateY(15px) scale(0.95); }
    100% { opacity: 1; transform: translateX(0) translateY(0) scale(1); }
}

.player-card.card-exit-left {
    animation: cardExitLeft 0.4s cubic-bezier(0.4, 0, 0.2, 1) forwards;
    pointer-events: none;
}
.player-card.card-exit-right {
    animation: cardExitRight 0.4s cubic-bezier(0.4, 0, 0.2, 1) forwards;
    pointer-events: none;
}
.player-card.card-enter-left {
    animation: cardEnterLeft 0.45s cubic-bezier(0.0, 0, 0.2, 1) forwards;
}
.player-card.card-enter-right {
    animation: cardEnterRight 0.45s cubic-bezier(0.0, 0, 0.2, 1) forwards;
}

/* ELO delta floating number */
@keyframes eloFloatUp {
    0%   { opacity: 0; transform: translateY(0) scale(0.8); }
    20%  { opacity: 1; transform: translateY(-8px) scale(1.1); }
    100% { opacity: 0; transform: translateY(-40px) scale(0.9); }
}

.elo-delta {
    position: absolute;
    top: 8%;
    right: 6%;
    z-index: 20;
    font-family: var(--font-outfit);
    font-weight: 800;
    font-size: 1.1rem;
    pointer-events: none;
    animation: eloFloatUp 1.4s cubic-bezier(0.4, 0, 0.2, 1) forwards;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.15);
}
.elo-delta.positive {
    color: var(--accent-green);
}
.elo-delta.negative {
    color: #ff4d4d;
}

/* Winner pulse ring */
@keyframes votePulse {
    0%   { transform: scale(1); opacity: 0.6; }
    50%  { transform: scale(1.04); opacity: 0.3; }
    100% { transform: scale(1); opacity: 0; }
}

.player-card.vote-pulse .card-bg-svg {
    animation: votePulse 0.6s ease-out;
}

/* VS divider spin on vote */
@keyframes vsSpin {
    0%   { transform: rotate(0deg) scale(1); }
    50%  { transform: rotate(180deg) scale(1.15); }
    100% { transform: rotate(360deg) scale(1); }
}
.vs-divider.vs-spin {
    animation: vsSpin 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ═══════════════════════════════════════════════════════════════════
   PREMIUM MOBILE SIDE-BY-SIDE VOTING ARENA — ≤ 768px
   Designed to fit both players elegantly side-by-side with full clarity.
════════════════════════════════════════════════════════════════════ */
@media (max-width: 768px) {
    /* Tighten page margins and headings */
    .voting-container {
        padding: 0 4px;
        width: 100%;
    }
    .main-content h1 {
        font-size: 1.6rem !important;
        margin-bottom: 0.15rem !important;
        text-align: center !important;
    }
    .main-content .subtitle {
        font-size: 0.85rem !important;
        margin-bottom: 1.25rem !important;
        text-align: center !important;
        padding: 0 10px !important;
    }



    /* Force the arena to display side-by-side cards */
    .voting-arena {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        justify-content: center !important;
        align-items: flex-start !important;
        gap: 8px !important;
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 auto 1.5rem auto !important;
        padding: 0 4px;
        box-sizing: border-box;
    }

    /* Compact scaled down cards */
    .voting-arena .player-card {
        flex: 1;
        width: 45vw !important;
        max-width: 175px !important;
        aspect-ratio: 396 / 615;
        padding: 5% 4% 5% 4%;
        box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    }

    /* Small VS divider positioned in the center, overlaying the cards */
    .vs-divider {
        width: 38px !important;
        height: 38px !important;
        position: absolute !important;
        top: 30% !important;
        left: 50% !important;
        transform: translate(-50%, -50%) !important;
        z-index: 200 !important;
        margin: 0 !important;
        background: transparent !important;
        filter: drop-shadow(0 2px 8px rgba(249, 83, 198, 0.5)) !important;
    }

    /* Adjust elements inside player card */
    .player-card-flag {
        top: 4%;
        left: 8%;
        width: 20%;
        border-radius: 2px;
    }

    /* Compact ELO Rating Badge */
    .player-stats-overlay {
        top: 4%;
        right: 8%;
        width: 32px !important;
        height: 35px !important;
    }
    .player-stats-overlay .elo-value {
        font-size: 0.65rem !important;
    }

    /* WC 2026 Rank Badge */
    .player-wc-rank {
        font-size: 0.58rem !important;
        padding: 1px 6px !important;
        margin-top: 4px !important;
        border-radius: 12px !important;
    }

    /* Player image container */
    .player-img-container {
        padding-top: 20px;
        margin-bottom: 4%;
    }
    .player-img {
        height: 80%;
    }

    /* Text details */
    .player-name {
        font-size: 0.72rem !important;
        line-height: 1.1;
        margin-bottom: 1px;
        word-break: break-word;
    }
    .player-position {
        font-size: 0.58rem !important;
        letter-spacing: 0.5px;
    }
    .player-card-divider {
        margin: 4% auto !important;
        width: 85%;
    }

    /* Country label */
    .voting-arena .player-card [style*="font-size: 0.85rem"] {
        font-size: 0.6rem !important;
        margin-top: 2px !important;
    }

    /* Stats Grid displayed in a neat, small vertical stack to prevent overlap */
    .player-stats-grid {
        flex-direction: column !important;
        align-items: center !important;
        gap: 3px !important;
        font-size: 0.62rem !important;
        margin-top: 6px !important;
        padding-top: 6px !important;
    }
    .player-stats-grid div {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 3px;
        white-space: nowrap;
    }

    /* Detailed Stats Pill Button */
    .stats-trigger {
        font-size: 0.6rem !important;
        margin-top: 6px !important;
        padding: 3px 8px !important;
        background: rgba(0, 180, 216, 0.05) !important;
        border: 1px solid rgba(0, 180, 216, 0.15) !important;
        border-radius: 20px !important;
        display: inline-flex !important;
    }

    /* Voted check badge */
    .voted-overlay-badge {
        top: 3% !important;
    }
    .voted-overlay-badge svg {
        width: 22px !important;
        height: 22px !important;
    }

    /* Full Stats Overlay inside card */
    .full-stats-overlay {
        border-radius: 20px;
    }
    .overlay-header {
        margin-bottom: 8px;
        padding-bottom: 4px;
        font-size: 0.7rem;
    }
    .full-stats-content {
        margin-top: 22px;
        height: calc(100% - 70px);
        padding: 10px 6% 15px 6%;
    }
    .full-stats-content span {
        font-size: 0.65rem !important;
    }

    /* Next Matchup Button area */
    #next-matchup-container {
        margin-top: 1.5rem !important;
    }
    #next-matchup-container button {
        font-size: 0.9rem !important;
        padding: 8px 24px !important;
    }

    /* Hint text at bottom */
    .voting-container > p[style*="font-size: 0.9rem"] {
        font-size: 0.75rem !important;
        margin-top: 1rem !important;
        padding: 0 10px;
    }
}

/* Extra small devices (iPhone SE, etc.) */
@media (max-width: 360px) {
    .voting-arena {
        gap: 4px !important;
    }
    .voting-arena .player-card {
        width: 46vw !important;
        padding: 4% 3% 4% 3%;
    }
    .player-name {
        font-size: 0.68rem !important;
    }
    .vs-divider {
        width: 34px !important;
        height: 34px !important;
    }
}

/* ═══════════════════════════════════════════════════════════════════
   PLAYER PROFILE STYLES
════════════════════════════════════════════════════════════════════ */
.profile-grid {
    display: grid;
    grid-template-columns: 360px 1fr;
    gap: 3.5rem;
    align-items: start;
    width: 100%;
}

.profile-card-col {
    display: flex;
    justify-content: center;
}

.profile-main-card {
    width: 100%;
    max-width: 360px;
    margin: 0 auto;
    aspect-ratio: 396 / 615;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.profile-main-card:hover {
    transform: translateY(-4px);
}

.fifa-attr-card {
    transition: var(--transition-smooth);
}

.fifa-attr-card:hover {
    transform: translateY(-3px);
    border-color: var(--accent-cyan) !important;
    box-shadow: 0 6px 15px rgba(0, 180, 216, 0.08) !important;
}

/* Tab panes selection display */
.profile-tab-pane {
    animation: fadeInTab 0.35s ease;
}

@keyframes fadeInTab {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Responsive Overrides for Profiles */
@media (max-width: 992px) {
    .profile-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
    .profile-card-col {
        max-width: 340px;
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    .fifa-attrs-grid {
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 10px !important;
    }
    .fifa-attr-card {
        padding: 1rem 0.5rem !important;
    }
    .fifa-attr-card div[style*="font-size: 2.2rem"] {
        font-size: 1.6rem !important;
    }
    .detailed-categories-grid {
        grid-template-columns: 1fr !important;
        gap: 15px !important;
    }
}

