body {
    background: #f4f6f9;
    font-family: 'Segoe UI', sans-serif;
}

.league-page {
    max-width: 1000px;
    margin: 40px auto;
    padding: 20px;
}

.league-banner {
    background: linear-gradient(
        135deg,
        #111827,
        #1f2937
    );

    color: white;
    padding: 35px;
    border-radius: 20px;
    margin-bottom: 25px;

    border: 1px solid rgba(255,255,255,.08);

    box-shadow:
        0 10px 30px rgba(0,0,0,.25);
}
.league-banner h1 {
    margin: 0;
    font-size: 2.2rem;
}

.league-info {
    margin-top: 25px;
    display: flex;
    gap: 20px;
}

.league-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    display: flex;
    align-items: center;
    gap: 15px;

    background: white;
    padding: 20px;

    border-radius: 16px;

    box-shadow: 0 4px 15px rgba(0,0,0,.08);

    transition: .3s;
}

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

.stat-icon {
    width: 55px;
    height: 55px;

    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 1.6rem;

    border-radius: 12px;
}

.stat-card span {
    display: block;
    font-size: .8rem;
    color: #6b7280;
}

.stat-card strong {
    display: block;
    font-size: 1.1rem;
    margin-top: 3px;
}

.stat-card p {
    margin: 3px 0 0;
    color: #6b7280;
    font-size: .9rem;
}

.cravador {
    border-left: 5px solid #facc15;
}

.cravador .stat-icon {
    background: #fef3c7;
}

.acertos {
    border-left: 5px solid #22c55e;
}

.acertos .stat-icon {
    background: #dcfce7;
}

.erros {
    border-left: 5px solid #ef4444;
}

.erros .stat-icon {
    background: #fee2e2;
}

.info-card {
    background: rgba(255,255,255,.15);
    backdrop-filter: blur(5px);
    padding: 15px 20px;
    border-radius: 12px;
}

.info-card span {
    display: block;
    font-size: .8rem;
    opacity: .8;
}

.info-card strong {
    font-size: 1.2rem;
}

.ranking-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,.08);
}

.ranking-header {
    background: #1f2937;
    color: white;
    padding: 20px;
}

.ranking-header h2 {
    margin: 0;
}

.ranking-list {
    padding: 15px;
}

.ranking-item {
    display: flex;
    align-items: center;
    justify-content: space-between;

    padding: 18px;
    margin-bottom: 12px;

    border-radius: 12px;
    background: #f8fafc;

    transition: .3s;
}

.ranking-item:hover {
    background: #eef2ff;
    transform: translateX(5px);
}

.ranking-item:nth-child(1) {
    background: #fff7cc;
    border-left: 6px solid #facc15;
}

.ranking-item:nth-child(2) {
    background: #f1f5f9;
    border-left: 6px solid #94a3b8;
}

.ranking-item:nth-child(3) {
    background: #fff1e6;
    border-left: 6px solid #fb923c;
}

.position {
    font-size: 1.4rem;
    font-weight: bold;
    width: 60px;
}

.team-info {
    flex: 1;
}

.team-info h3 {
    margin: 0;
    color: #111827;
}

.team-info span {
    color: #6b7280;
    font-size: .9rem;
}

.points {
    font-size: 1.6rem;
    font-weight: bold;
    color: #0d6efd;
}

.points span {
    font-size: .9rem;
    color: #6b7280;
}

.leave-btn {
    margin-top: 25px;
    width: 100%;
    padding: 15px;
    border: none;
    border-radius: 12px;

    background: #dc3545;
    color: white;

    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: .3s;
}

.leave-btn:hover {
    background: #bb2d3b;
}

.admin-actions {
    margin-bottom: 25px;
}

.config-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;

    text-decoration: none;

    background: #111827;
    color: white;

    padding: 12px 20px;
    border-radius: 12px;

    font-weight: 600;

    transition: .3s;
}

.config-btn:hover {
    background: #1f2937;
    transform: translateY(-2px);
}

.join-btn {
    margin-top: 25px;
    width: 100%;
    padding: 15px;
    border: none;
    border-radius: 12px;

    background: linear-gradient(135deg, #28a745, #20c997);
    color: white;

    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: .3s;

    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.3);
}

.join-btn:hover {
    transform: translateY(-2px);
    background: linear-gradient(135deg, #218838, #1aa179);
    box-shadow: 0 6px 16px rgba(40, 167, 69, 0.4);
}

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

@media (max-width: 720px){
    .league-stats{
        display: flex;
        justify-content: center;
        align-items: center;
        flex-direction: column;
    }
    .stat-card{
        width: 100%;
    }

}

.predictions{
    margin: 25px 0 15px;
}

.btn-predictions{
    display: inline-flex;
    align-items: center;
    gap: 8px;

    background: #ffffff;
    color: #1e293b;

    padding: 12px 18px;
    border-radius: 12px;

    font-size: 15px;
    font-weight: 600;

    text-decoration: none;

    border: 1px solid #e2e8f0;
    box-shadow: 0 2px 10px rgba(0,0,0,.05);

    transition: all .2s ease;
}

.btn-predictions:hover{
    background: #f8fafc;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0,0,0,.08);
}


.admin-points {
    margin: -2px 0 15px 0;
    padding: 12px 18px;

    background: #f8fafc;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
}

.admin-points form {
    display: flex;
    gap: 10px;
    align-items: center;
}

.admin-points input {
    flex: 1;
    max-width: 250px;

    padding: 10px 12px;

    border: 1px solid #d1d5db;
    border-radius: 8px;

    font-size: .95rem;
    outline: none;

    transition: .2s;
}

.admin-points input:focus {
    border-color: #0d6efd;
    box-shadow: 0 0 0 3px rgba(13,110,253,.15);
}

.admin-points button {
    padding: 10px 18px;

    border: none;
    border-radius: 8px;

    background: #0d6efd;
    color: white;

    font-weight: 600;
    cursor: pointer;

    transition: .2s;
}

.admin-points button:hover {
    background: #0b5ed7;
    transform: translateY(-1px);
}