@media (max-width: 768px) {
    body {
        padding: 20px 15px;
    }

    #title {
        font-size: 2.5rem;
        gap: 10px;
        text-align: center;
    }

    .header-content {
        flex-direction: column;
        text-align: center;
        width: 100%;
        gap: 15px;
    }

    .rank-icon {
        width: 70px;
        height: 70px;
        margin-bottom: 5px;
    }

    .info h2 {
        font-size: 1.8rem;
        text-align: center;
    }

    .rank-badge {
        font-size: 1rem;
        padding: 4px 12px;
    }

    .stats {
        justify-content: center;
        margin-top: 10px;
    }

    .btn-icon {
        position: absolute;
        top: 20px;
        right: 20px;
        padding: 10px;
        background: rgba(255, 255, 255, 0.05);
        border-radius: 8px;
    }

    .form-row {
        flex-direction: column;
        gap: 15px;
    }

    .match-stats-row {
        flex-wrap: wrap;
        gap: 20px;
        justify-content: center;
        background: rgba(0, 0, 0, 0.2);
        padding: 20px;
        border-radius: 12px;
        margin-top: 15px;
    }

    .stat-group {
        flex: 1 1 40%;
        min-width: 100px;
    }
}

@media (max-width: 480px) {
    #title {
        font-size: 1.8rem;
    }

    #subtitle {
        font-size: 1rem;
    }

    .site-logo {
        width: 50px;
        height: 50px;
    }

    .card {
        padding: 20px;
    }

    .copy-box {
        flex-direction: column;
        gap: 0;
    }

    .copy-box input {
        border-radius: 8px 8px 0 0;
        border-bottom: 1px solid var(--card-border);
        border-right: 1px solid var(--card-border);
        padding: 15px;
        font-size: 1rem;
    }

    .btn-copy {
        width: 100%;
        padding: 15px;
        border-radius: 0 0 8px 8px;
        font-size: 1rem;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 1px;
    }

    .example-box {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
        font-size: 0.85rem;
        margin-top: 15px;
        padding: 15px;
    }

    .match-header {
        flex-direction: column;
        gap: 8px;
        text-align: center;
        padding-bottom: 15px;
    }

    .map-name {
        font-size: 1.2rem;
        color: var(--accent-color);
        font-weight: 700;
        letter-spacing: 0.5px;
    }

    .match-date {
        opacity: 0.8;
    }

    .match-result {
        width: 100%;
        display: block;
        text-align: center;
        margin-top: 5px;
        padding: 6px;
    }

    footer {
        padding-bottom: 30px;
    }
}