/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #d32f2f;
    --primary-dark: #9a0007;
    --primary-light: #ff6659;
    --secondary-color: #1976d2;
    --text-dark: #212121;
    --text-light: #757575;
    --bg-light: #f5f5f5;
    --bg-white: #ffffff;
    --border-color: #e0e0e0;
    --shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 4px 16px rgba(0, 0, 0, 0.15);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--bg-light);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    background-image: url(/background.jpg);
    background-size: cover;
    background-position: top;
    color: white;
    padding: 6rem 0;
    text-align: center;
    position: relative;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1;
}

.hero .container {
    position: relative;
    z-index: 2;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    animation: fadeInUp 1s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    padding: 0.5rem 1.5rem;
    border-radius: 30px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.hero-content h2 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.about a {
    text-decoration: none;
}

.tagline {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    opacity: 0.95;
}

.description {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 1.5rem auto;
    line-height: 1.8;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 2rem;
}

/* Stats Section */
.stats-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 4rem 0;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    position: relative;
}

.stats-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        repeating-linear-gradient(
            45deg,
            transparent,
            transparent 35px,
            rgba(255, 255, 255, 0.3) 35px,
            rgba(255, 255, 255, 0.3) 70px
        );
    pointer-events: none;
}

.stats-section .container {
    position: relative;
    z-index: 1;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: var(--text-dark);
    font-weight: 700;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2.5rem;
    max-width: 950px;
    margin: 0 auto;
}

.stat-card {
    text-align: center;
    padding: 2.5rem 2rem;
    border-radius: 16px;
    background: white;
    transition: all 0.4s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--primary-light));
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.stat-card:hover::before {
    transform: scaleX(1);
}

.stat-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
}

.stat-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    animation: bounceIn 0.6s ease-out;
    display: inline-block;
    color: var(--primary-color);
}

.stat-icon i {
    display: block;
}

@keyframes bounceIn {
    0% {
        opacity: 0;
        transform: scale(0.3);
    }
    50% {
        opacity: 1;
        transform: scale(1.05);
    }
    70% {
        transform: scale(0.9);
    }
    100% {
        transform: scale(1);
    }
}

.stat-number {
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    line-height: 1;
}

.stat-label {
    font-size: 1rem;
    color: var(--text-light);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Recent Matches Section */
.recent-matches-section {
    padding: 5rem 0;
    background: linear-gradient(135deg, #2c2c2c 0%, #1a1a1a 100%);
    margin-top: 0;
    position: relative;
    overflow: hidden;
}

.recent-matches-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #FFD700 0%, #C0C0C0 50%, #CD7F32 100%);
    z-index: 2;
}

.recent-matches-section::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        repeating-linear-gradient(
            -45deg,
            transparent,
            transparent 60px,
            rgba(255, 255, 255, 0.02) 60px,
            rgba(255, 255, 255, 0.02) 120px
        );
    pointer-events: none;
}

.recent-matches-section .container {
    position: relative;
    z-index: 1;
}

.recent-matches-section h2 {
    text-align: center;
    font-size: 2.8rem;
    margin-bottom: 0.5rem;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 800;
}

.recent-matches-section h2 i {
    color: #FFD700;
    margin-right: 0.5rem;
}

.arm-rankings h3 i {
    margin-right: 0.5rem;
}

.section-intro {
    text-align: center;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 3.5rem;
    font-size: 1.1rem;
}

/* Rankings Grid */
.rankings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
    gap: 3rem;
    margin-bottom: 2.5rem;
}

.arm-rankings h3 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 2.5rem;
    color: #ffffff;
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.podium {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.no-data {
    text-align: center;
    color: rgba(255, 255, 255, 0.5);
    font-style: italic;
    padding: 2rem;
}

.rank-card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 12px;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    transition: all 0.3s;
    border-left: 6px solid var(--primary-color);
    position: relative;
    overflow: hidden;
}

.rank-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, transparent 0%, rgba(255, 255, 255, 0.1) 100%);
    pointer-events: none;
}

.rank-card:hover {
    transform: translateX(8px) scale(1.02);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
}

.rank-card:hover .medal {
    animation: medalBounce 0.6s ease;
}

@keyframes medalBounce {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.2) rotate(10deg); }
}

.rank-position {
    position: absolute;
    top: 8px;
    right: 12px;
    font-size: 0.75rem;
    font-weight: 700;
    color: rgba(0, 0, 0, 0.3);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.rank-card.rank-1 {
    border-left-color: #FFD700;
    background: linear-gradient(135deg, #fffef0 0%, #fff9c4 100%);
    box-shadow: 0 8px 20px rgba(255, 215, 0, 0.4);
}

.rank-card.rank-1:hover {
    box-shadow: 0 12px 30px rgba(255, 215, 0, 0.6);
}

.rank-card.rank-1 .rank-position {
    color: #FFD700;
    font-weight: 900;
}

.rank-card.rank-2 {
    border-left-color: #C0C0C0;
    background: linear-gradient(135deg, #ffffff 0%, #f5f5f5 100%);
    box-shadow: 0 8px 20px rgba(192, 192, 192, 0.3);
}

.rank-card.rank-2:hover {
    box-shadow: 0 12px 30px rgba(192, 192, 192, 0.5);
}

.rank-card.rank-2 .rank-position {
    color: #C0C0C0;
}

.rank-card.rank-3 {
    border-left-color: #CD7F32;
    background: linear-gradient(135deg, #fff8f0 0%, #ffe4c4 100%);
    box-shadow: 0 8px 20px rgba(205, 127, 50, 0.3);
}

.rank-card.rank-3:hover {
    box-shadow: 0 12px 30px rgba(205, 127, 50, 0.5);
}

.rank-card.rank-3 .rank-position {
    color: #CD7F32;
}

.rank-card .medal {
    font-size: 3rem;
    line-height: 1;
    filter: drop-shadow(2px 2px 4px rgba(0, 0, 0, 0.2));
    transition: all 0.3s;
}

.rank-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.rank-info .player-name {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-dark);
    text-decoration: none;
    transition: color 0.2s;
}

.rank-info .player-name:hover {
    color: var(--primary-color);
}

.rank-info .rating {
    font-size: 1.1rem;
    color: var(--primary-color);
    font-weight: 600;
}

.rank-info .record {
    font-size: 0.95rem;
    color: var(--text-light);
    font-weight: 500;
}

.win-rate {
    font-size: 0.85rem;
    color: var(--text-light);
    font-weight: 400;
    margin-left: 0.5rem;
}

.view-all-link {
    text-align: center;
    margin-top: 3rem;
}

.view-all-link .btn {
    background: #ffffff;
    color: #2c2c2c;
    border: 2px solid #ffffff;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 1rem 2.5rem;
    font-size: 1rem;
}

.view-all-link .btn:hover {
    background: transparent;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(255, 255, 255, 0.2);
}

.view-all-link .btn i {
    margin-left: 0.5rem;
    transition: transform 0.3s;
}

.view-all-link .btn:hover i {
    transform: translateX(5px);
}

/* Keep old styles for backward compatibility */
.recent-matches-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.recent-match-card {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    text-decoration: none;
    color: var(--text-dark);
    transition: all 0.3s;
    box-shadow: var(--shadow);
    border-left: 4px solid var(--primary-color);
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.recent-match-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-left-width: 6px;
}

.match-date {
    font-size: 0.9rem;
    color: var(--text-light);
    font-weight: 600;
}

.match-arm {
    display: flex;
    align-items: center;
}

.arm-badge {
    display: inline-block;
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.arm-badge.left {
    background: linear-gradient(135deg, #4CAF50 0%, #45a049 100%);
    color: white;
}

.arm-badge.right {
    background: linear-gradient(135deg, #2196F3 0%, #1976D2 100%);
    color: white;
}

.match-participants {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-dark);
    line-height: 1.4;
}

.match-action {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary-color);
    font-size: 0.9rem;
    font-weight: 600;
    margin-top: auto;
}

.instagram-icon {
    font-size: 1.2rem;
}

.view-all-link {
    text-align: center;
    margin-top: 2rem;
}

/* About Section */
.about {
    padding: 5rem 0;
    background-color: var(--bg-white);
}

.about h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
    font-weight: 700;
}

.section-subtitle {
    text-align: center;
    color: var(--text-light);
    font-size: 1.1rem;
    margin-bottom: 3.5rem;
}

.about-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
}

.about-card {
    text-align: center;
    padding: 2.5rem 2rem;
    background-color: var(--bg-light);
    border-radius: 12px;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
    border-top: 4px solid transparent;
}

.about-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--primary-color);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.about-card:hover::before {
    transform: scaleX(1);
}

.about-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
    background-color: white;
}

.card-welcome {
    border-top-color: #4CAF50;
}

.card-welcome::before {
    background: linear-gradient(90deg, #4CAF50, #45a049);
}

.card-welcome:hover {
    box-shadow: 0 12px 24px rgba(76, 175, 80, 0.2);
}

.card-rankings {
    border-top-color: #FFD700;
}

.card-rankings::before {
    background: linear-gradient(90deg, #FFD700, #FFC107);
}

.card-rankings:hover {
    box-shadow: 0 12px 24px rgba(255, 215, 0, 0.2);
}

.card-community {
    border-top-color: #2196F3;
}

.card-community::before {
    background: linear-gradient(90deg, #2196F3, #1976D2);
}

.card-community:hover {
    box-shadow: 0 12px 24px rgba(33, 150, 243, 0.2);
}

.icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    transition: transform 0.3s ease;
    display: inline-block;
}

.icon i {
    display: block;
}

.card-welcome .icon i {
    color: #4CAF50;
}

.card-rankings .icon i {
    color: #FFD700;
}

.card-community .icon i {
    color: #2196F3;
}

.about-card:hover .icon {
    transform: scale(1.1) rotate(5deg);
}

.about-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
    font-weight: 700;
}

.about-card p {
    color: var(--text-light);
    line-height: 1.7;
}

/* Social Section */
.social {
    padding: 5rem 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    margin-bottom: 0;
}

.social h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
    font-weight: 700;
}

.social-intro {
    text-align: center;
    color: var(--text-light);
    margin-bottom: 3.5rem;
    font-size: 1.1rem;
}

.social-links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

.social-card {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 2rem;
    background-color: white;
    border-radius: 12px;
    text-decoration: none;
    color: var(--text-dark);
    transition: all 0.3s;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    border-left: 4px solid transparent;
}

.social-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
}

.social-icon {
    flex-shrink: 0;
    transition: transform 0.3s;
}

.social-card:hover .social-icon {
    transform: scale(1.1) rotate(5deg);
}

.social-card.facebook:hover {
    border-left-color: #1877f2;
    box-shadow: 0 12px 24px rgba(24, 119, 242, 0.2);
}

.social-card.discord:hover {
    border-left-color: #5865f2;
    box-shadow: 0 12px 24px rgba(88, 101, 242, 0.2);
}

.social-card.instagram:hover {
    border-left-color: #e4405f;
    box-shadow: 0 12px 24px rgba(228, 64, 95, 0.2);
}

.social-card.facebook svg { color: #1877f2; }
.social-card.discord svg { color: #5865f2; }
.social-card.instagram svg { color: #e4405f; }

.social-info h3 {
    font-size: 1.3rem;
    margin-bottom: 0.25rem;
    font-weight: 700;
}

.social-info p {
    color: var(--text-light);
    font-size: 0.9rem;
}

/* Rankings Section */
.rankings-section {
    padding: 3rem 0;
    background-color: var(--bg-white);
    min-height: 70vh;
}

.rankings-section h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.rankings-intro {
    text-align: center;
    color: var(--text-light);
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

.rankings-controls {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.tab-btn {
    padding: 0.75rem 1.5rem;
    background-color: var(--bg-light);
    color: var(--text-dark);
    border: 2px solid transparent;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s;
    font-size: 1rem;
}

.tab-btn:hover {
    background-color: var(--primary-light);
    color: white;
}

.tab-btn.active {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-dark);
}

.rankings-table-container {
    margin-top: 2rem;
}

.rankings-table-container h3 {
    text-align: center;
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
}

.table-responsive {
    overflow-x: auto;
    background-color: var(--bg-white);
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.rankings-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 600px;
}

.rankings-table thead {
    background: linear-gradient(90deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
    text-transform: uppercase;
    letter-spacing: 0.6px;
}

.rankings-table th {
    padding: 1rem;
    text-align: left;
    font-weight: 600;
}

.rankings-table th.medal-col,
.rankings-table td.medal {
    width: 64px;
    text-align: center;
    padding-left: 0.5rem;
    padding-right: 0.5rem;
}

.rankings-table td.medal {
    font-size: 1.4rem;
}

.rankings-table tbody tr {
    border-bottom: 1px solid var(--border-color);
    transition: background-color 0.18s, transform 0.12s, box-shadow 0.12s;
    will-change: transform;
}

.rankings-table tbody tr:hover {
    background-color: var(--bg-light);
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.rankings-table tbody tr:last-child {
    border-bottom: none;
}

.rankings-table td {
    padding: 1rem;
}

.rankings-table .rank {
    font-weight: 700;
    color: var(--primary-color);
    font-size: 1.1rem;
    width: 60px;
    text-align: center;
}

/* Medal emoji spacing */
.rankings-table .rank::before {
    display: inline-block;
    margin-right: 6px;
}

/* Top 3 Rankings Styling */
.rankings-table tbody tr:nth-child(1) {
    background: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%);
    font-weight: bold;
}

.rankings-table tbody tr:nth-child(1):hover {
    background: linear-gradient(135deg, #ffed4e 0%, #ffd700 100%);
}

.rankings-table tbody tr:nth-child(1) .rank {
    color: #b8860b;
    font-size: 1.3rem;
}

.rankings-table tbody tr:nth-child(1) .rank::before {
    content: '🥇 ';
}

.rankings-table tbody tr:nth-child(2) {
    background: linear-gradient(135deg, #c0c0c0 0%, #e8e8e8 100%);
    font-weight: bold;
}

.rankings-table tbody tr:nth-child(2):hover {
    background: linear-gradient(135deg, #e8e8e8 0%, #c0c0c0 100%);
}

.rankings-table tbody tr:nth-child(2) .rank {
    color: #708090;
    font-size: 1.3rem;
}

.rankings-table tbody tr:nth-child(2) .rank::before {
    content: '🥈 ';
}

.rankings-table tbody tr:nth-child(3) {
    background: linear-gradient(135deg, #cd7f32 0%, #e8a87c 100%);
    font-weight: bold;
}

.rankings-table tbody tr:nth-child(3):hover {
    background: linear-gradient(135deg, #e8a87c 0%, #cd7f32 100%);
}

.rankings-table tbody tr:nth-child(3) .rank {
    color: #8b4513;
    font-size: 1.3rem;
}

.rankings-table tbody tr:nth-child(3) .rank::before {
    content: '🥉 ';
}

.rankings-table .name {
    font-weight: 600;
    color: var(--text-dark);
}

.rankings-table .rating {
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--secondary-color);
}

.rankings-table .win-rate {
    font-weight: 600;
    color: #2c5f2d;
}

.no-data {
    text-align: center;
    padding: 4rem 2rem;
    background-color: var(--bg-light);
    border-radius: 8px;
    margin-top: 2rem;
}

.no-data p {
    font-size: 1.2rem;
    color: var(--text-light);
}

/* Footer */
footer {
    background-color: var(--text-dark);
    color: white;
    padding: 2rem 0;
    text-align: center;
}

footer p {
    margin: 0.5rem 0;
    opacity: 0.9;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-content h2 {
        font-size: 2.2rem;
    }

    .tagline {
        font-size: 1.2rem;
    }

    .description {
        font-size: 1rem;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }

    .btn {
        width: 100%;
        max-width: 300px;
    }

    .about h2,
    .social h2,
    .rankings-section h2 {
        font-size: 2rem;
    }

    .stats-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .rankings-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .about-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .social-links {
        grid-template-columns: 1fr;
    }

    .rankings-controls {
        flex-direction: column;
    }

    .tab-btn {
        width: 100%;
    }

    .recent-matches-section h2 {
        font-size: 2.2rem;
    }

    .arm-rankings h3 {
        font-size: 1.6rem;
    }

    /* Mobile horizontal padding for small screens */
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 3rem 0;
    }

    .hero-content h2 {
        font-size: 1.8rem;
    }

    .description {
        font-size: 0.95rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .recent-matches-section h2 {
        font-size: 1.8rem;
        letter-spacing: 1px;
    }

    .arm-rankings h3 {
        font-size: 1.4rem;
        margin-bottom: 1.5rem;
    }

    .rank-card {
        padding: 1.25rem;
        flex-wrap: wrap;
    }

    .rank-card .medal {
        font-size: 2.5rem;
    }

    .rank-info .player-name {
        font-size: 1.1rem;
    }

    .rank-info .rating {
        font-size: 1rem;
    }

    .rank-info .record {
        font-size: 0.85rem;
    }

    .win-rate {
        display: block;
        margin-left: 0;
        margin-top: 0.25rem;
    }

    /* Stats responsive */
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .stat-card {
        padding: 1.5rem;
    }

    .stat-icon {
        font-size: 2.5rem;
    }

    .stat-number {
        font-size: 2.5rem;
    }

    .about-card {
        padding: 2rem 1.5rem;
    }

    .icon {
        font-size: 3rem;
    }

    /* Make rankings table more readable on small screens: stack rows as cards */
    .rankings-table {
        display: block;
    }

    .rankings-table thead {
        display: none;
    }

    .rankings-table tbody tr {
        display: block;
        margin: 0.6rem 0;
        border: none;
        box-shadow: var(--shadow);
        background: var(--bg-white);
        border-radius: 8px;
        padding: 0.75rem;
    }

    .rankings-table td {
        display: flex;
        justify-content: space-between;
        padding: 0.5rem 0;
    }

    .rankings-table td::before {
        content: attr(data-label);
        font-weight: 700;
        color: var(--text-light);
        margin-right: 8px;
    }
}
