body {
    margin: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    height: 100vh;
    background-image: url("/static/imgk_sport/sport_bg.jpg");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.sidebar {
    position: fixed;
    top: 70px;
    left: 0;
    width: 180px;
    height: calc(100vh - 70px);
    background-color: rgba(58, 79, 109, 0.3);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    padding: 2rem 1rem;
    overflow-y: auto;
    color: #fff;
    z-index: 2;
    border-right: 1px solid rgba(255, 255, 255, 0.1);
}

.sidebar ul.menu {
    list-style: none;
    padding-left: 0;
    margin: 0;
}

.sidebar ul.menu > li {
    position: relative;
    margin-bottom: 1.5rem;
}

.sport-label {
    cursor: pointer;
    font-weight: 600;
    display: block;
    transition: padding-left 0.3s ease;
}

.sport-label:hover {
    padding-left: 5px;
}

.sidebar ul.submenu {
    list-style: none;
    padding-left: 15px;
    margin-top: 0.5rem;
    opacity: 0;
    max-height: 0;
    overflow: hidden;
    transition: all 0.4s ease;
    border-left: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 4px;
}

.sidebar ul.menu > li:hover > ul.submenu {
    opacity: 1;
    max-height: 500px;
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
    box-shadow: 0 2px 6px rgba(0,0,0,0.3);
    background-color: rgba(58, 79, 109, 0.95);
}

.sidebar ul.submenu li {
    margin-bottom: 0.6rem;
}

.sidebar ul.submenu li a {
    color: #f1f1f1;
    text-decoration: none;
    font-size: 0.9rem;
    padding-left: 5px;
    display: block;
    transition: padding-left 0.3s ease;
}

.sidebar ul.submenu li a:hover {
    padding-left: 10px;
    text-decoration: none;
}

.main-content-area {
    margin-left: 200px;
    padding: 70px 30px 30px 30px;
    color: #fff;
    background-color: rgba(0, 0, 0, 0.4);
    border-radius: 10px;
    min-height: calc(100vh - 70px);
}

.main-content-area .content {
    
}

.background-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    max-width: 800px;
    margin: 60px auto 40px auto;
    padding: 35px 50px;
    background-color: rgba(20, 20, 20, 0.45);
    border-radius: 14px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
    text-align: center;
}

.background-text h3 {
    font-size: 2.1rem;
    margin-bottom: 0.5rem;
    font-weight: 700;
    letter-spacing: 1px;
    line-height: 1.3;
}

.background-text p {
    font-size: 1.05rem;
    line-height: 1.8;
    color: #dddddd;
    max-width: 90%;
}

@media (max-width: 768px) {
    .sidebar {
        top: 80px;
        width: calc(100% - 30px);
        margin: 0 15px;
        height: auto;
        max-height: 100px;
        padding: 0.5rem 0;
        border-left: 1px solid rgba(255, 255, 255, 0.1);
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        overflow: visible;
        background-color: rgba(58, 79, 109, 0.9);
        backdrop-filter: blur(8px);
        -webkit-backdrop-filter: blur(8px);
        z-index: 2;
        border-radius: 10px;
    }

    .sidebar ul.menu {
        display: flex;
        flex-wrap: wrap;
        justify-content: space-around;
        padding: 0;
        margin: 0;
    }

    .sidebar ul.menu > li {
        margin-bottom: 0.5rem;
        flex-basis: 48%;
        text-align: center;
        background-color: rgba(58, 79, 109, 0.2);
        border: 1px solid rgba(255, 255, 255, 0.1);
        border-radius: 8px;
        padding: 0.3rem 0;
    }

    .sport-label {
        font-size: 0.85rem;
        font-weight: 500;
        padding-left: 0;
        transition: none;
    }

    .sport-label:hover {
        padding-left: 0;
    }

    .sidebar ul.submenu {
        padding: 0.5rem 0;
        margin-top: 0.2rem;
        opacity: 0;
        max-height: 0;
        overflow: hidden;
        transition: all 0.4s ease;
        border-left: none;
        border-radius: 4px;
        position: absolute;
        left: 0;
        right: 0;
        background-color: rgba(58, 79, 109, 0.98);
        box-shadow: 0 2px 6px rgba(0,0,0,0.3);
        z-index: 3;
        top: 100%;
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
    }

    .sidebar ul.menu > li:hover > ul.submenu,
    .sidebar ul.menu > li.active > ul.submenu {
        opacity: 1;
        max-height: 500px;
    }

    .sidebar ul.submenu li {
        margin: 0.3rem 0.5rem;
        flex-shrink: 0;
        flex-grow: 1;
        min-width: fit-content;
    }

    .sidebar ul.submenu li a {
        font-size: 0.75rem;
        padding: 0.3rem 0.6rem;
        color: #f1f1f1;
        opacity: 1;
        display: block;
        white-space: nowrap;
        border: 1px solid rgba(255, 255, 255, 0.1);
        border-radius: 5px;
        background-color: rgba(255, 255, 255, 0.05);
        transition: background-color 0.2s ease;
    }

    .sidebar ul.submenu li a:hover {
        padding-left: 0.6rem;
        background-color: rgba(255, 255, 255, 0.15);
    }

    .main-content-area {
        margin-left: 0;
        padding: 190px 15px 15px 15px;
        color: #fff;
        background-color: rgba(0, 0, 0, 0.6);
        border-radius: 10px;
        min-height: calc(100vh - 60px - 100px);
    }

    .background-text {
        max-width: 98%;
        margin: 15px auto;
        padding: 15px;
        background-color: rgba(20, 20, 20, 0.7);
        border-radius: 14px;
        box-shadow: 0 3px 10px rgba(0, 0, 0, 0.5);
    }

    .background-text h3 {
        font-size: 1.2rem;
        margin-bottom: 0.2rem;
        line-height: 1.2;
        letter-spacing: 0.5px;
    }

    .background-text p {
        font-size: 0.85rem;
        line-height: 1.5;
        color: #eeeeee;
        max-width: 95%;
    }
}

@media (max-width: 480px) {
    .sidebar {
        top: 65px; 
        width: calc(100% - 20px);
        margin: 0 10px;
        height: auto;
        max-height: 90px; 
        padding: 0.2rem 0;
        overflow: visible;
        background-color: rgba(58, 79, 109, 0.9);
        backdrop-filter: blur(8px);
        -webkit-backdrop-filter: blur(8px);
        border-left: 1px solid rgba(255, 255, 255, 0.1);
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        border-radius: 10px;
        box-shadow: 0 2px 8px rgba(0,0,0,0.4);
    }

    .sidebar ul.menu {
        justify-content: space-evenly;
        gap: 0.2rem;
        padding: 0 0.5rem;
    }

    .sidebar ul.menu > li {
        flex-basis: 46%;
        margin-bottom: 0.1rem;
        padding: 0.25rem 0.1rem;
        border-radius: 6px;
    }

    .sport-label {
        font-size: 0.7rem;
        font-weight: 500;
        padding-left: 0;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .sidebar ul.submenu {
        padding: 0.4rem 0.2rem;
        margin-top: 0.2rem;
        gap: 0.2rem;
        row-gap: 0.3rem;
    }

    .sidebar ul.submenu li a {
        font-size: 0.6rem;
        padding: 0.3rem 0.5rem;
    }

    .main-content-area {
        margin-left: 0;
        margin-top: 0;
        padding-left: 10px;
        padding-right: 10px;
        padding-bottom: 20px;
        padding-top: 220px;
        min-height: calc(100vh - 55px - 90px);
        background-color: rgba(0, 0, 0, 0.6);
        border-radius: 10px;
    }

    .background-text {
        max-width: 98%;
        margin: 20px auto 15px auto;
        padding: 15px 10px;
    }

    .background-text h3 {
        font-size: 1.1rem;
        margin-bottom: 0.5rem;
    }

    .background-text p {
        font-size: 0.7rem;
        line-height: 1.4;
    }
}