* {

    box-sizing: border-box;

    font-family: Arial, sans-serif;

}



body {


    margin: 0;


    min-height: 100vh;


    color: white;


    background:


    linear-gradient(

        rgba(15,23,42,0.85),

        rgba(30,64,175,0.85)

    ),


    url("images/background.jpg");



    background-size: cover;


    background-position: center;


    background-attachment: fixed;


}






/* ================= NAVBAR ================= */



nav {


    height: 80px;


    background: rgba(15,23,42,0.9);


    backdrop-filter: blur(10px);


    display:flex;


    align-items:center;


    padding:0 60px;


    position:relative;


    box-shadow:

    0 10px 30px rgba(0,0,0,.4);



}





.logo {


    color:white;


    font-size:30px;


    font-weight:900;


}






.nav-links {


    position:absolute;


    left:50%;


    transform:translateX(-50%);


    display:flex;


    gap:20px;



}






.nav-links a {


    color:white;


    text-decoration:none;


    font-size:17px;


    font-weight:bold;


    padding:12px 22px;


    border-radius:30px;


    transition:.3s;



}






.nav-links a:hover {


    background:#22c55e;


    transform:translateY(-4px);



}









/* ================= HERO ================= */



.hero {


    text-align:center;


    padding:90px 20px;



}






.hero h1 {


    color:white;


    font-size:50px;


}






.hero p {


    font-size:22px;


}








/* ================= BUTTONS ================= */



button {


    background:#22c55e;


    color:white;


    border:none;


    padding:12px 25px;


    border-radius:30px;


    cursor:pointer;


    font-weight:bold;


    transition:.3s;



}





button:hover {


    transform:scale(1.05);


}








.editBtn {


    background:#2563eb;


}






.deleteBtn {


    background:#ef4444;


}








/* ================= FORM ================= */



form {


    background:white;


    color:#222;


    width:350px;


    margin:30px auto;


    padding:25px;


    border-radius:20px;


    box-shadow:

    0 10px 30px rgba(0,0,0,.3);



}







input {


    width:100%;


    padding:12px;


    margin:10px 0;


    border-radius:10px;


    border:1px solid #ccc;



}









/* ================= TITLES ================= */



h2 {


    text-align:center;


    color:white;


}








/* ================= TOURNAMENT CARD ================= */



#tournamentList {


    display:flex;


    flex-wrap:wrap;


    justify-content:center;



}







.card {



    background:white;


    color:#222;


    width:350px;


    margin:20px;


    padding:25px;


    border-radius:20px;


    box-shadow:


    0 10px 30px rgba(0,0,0,.3);


    transition:.3s;



}







.card:hover {


    transform:translateY(-8px);



}






.tournamentTitle {


    color:#2563eb;


    cursor:pointer;


}









/* ================= DETAILS PAGE ================= */



.detailsHero {


    text-align:center;


    padding:50px;



}







.detailsHero h1 {


    color:white;


    font-size:40px;



}







#details,

#playersList,

#bracket,

#semifinal,

#final {



    background:white;


    color:#222;


    width:80%;


    margin:25px auto;


    padding:30px;


    border-radius:20px;



    box-shadow:


    0 10px 30px rgba(0,0,0,.3);



}









/* ================= BACK BUTTON ================= */



.backBtn {



    display:block;


    width:220px;


    margin:30px auto;


    text-align:center;


    padding:12px;


    background:#111827;


    color:white;


    text-decoration:none;


    border-radius:30px;



}









/* MOBILE */



@media(max-width:700px){



nav{


    flex-direction:column;


}



.nav-links{


    position:static;


    transform:none;


    flex-wrap:wrap;



}



}
#semiFinal,
#final {
    color: #fbbf24;
}

/* =====================================================
   FRIEND CUP - TOURNAMENT DETAILS PREMIUM DESIGN
   ===================================================== */


/* PAGE */

.detailsPage {

    width: 92%;
    max-width: 1100px;

    margin: 40px auto 80px;

    color: white;

}


/* TOURNAMENT HEADER */

.tournamentHeader {

    position: relative;

    overflow: hidden;

    text-align: center;

    padding: 55px 30px;

    border-radius: 30px;

    background:
        linear-gradient(
            135deg,
            rgba(37, 99, 235, 0.95),
            rgba(88, 28, 135, 0.95),
            rgba(15, 23, 42, 0.98)
        );

    border: 1px solid rgba(255,255,255,0.15);

    box-shadow:
        0 25px 70px rgba(0,0,0,0.45);

}


/* LIGHT EFFECT */

.tournamentHeader::before {

    content: "";

    position: absolute;

    width: 300px;
    height: 300px;

    background: rgba(251,191,36,0.20);

    border-radius: 50%;

    filter: blur(70px);

    top: -150px;
    left: -100px;

}


.tournamentHeader::after {

    content: "";

    position: absolute;

    width: 300px;
    height: 300px;

    background: rgba(59,130,246,0.25);

    border-radius: 50%;

    filter: blur(70px);

    bottom: -150px;
    right: -100px;

}


/* TROPHY */

.trophy {

    position: relative;

    z-index: 2;

    font-size: 75px;

    margin-bottom: 10px;

    filter:
        drop-shadow(
            0 0 20px
            rgba(251,191,36,0.6)
        );

}


/* TOURNAMENT NAME */

.tournamentHeader h1 {

    position: relative;

    z-index: 2;

    font-size: 48px;

    margin: 5px 0;

    color: white;

    letter-spacing: 1px;

}


/* GAME */

.tournamentHeader p {

    position: relative;

    z-index: 2;

    font-size: 20px;

    color: #dbeafe;

}


/* STATS */

.stats {

    position: relative;

    z-index: 2;

    display: flex;

    justify-content: center;

    gap: 20px;

    margin-top: 35px;

    flex-wrap: wrap;

}


.stat {

    min-width: 190px;

    padding: 20px 25px;

    border-radius: 20px;

    background:
        rgba(255,255,255,0.10);

    border:
        1px solid
        rgba(255,255,255,0.15);

    backdrop-filter: blur(15px);

    box-shadow:
        0 10px 30px
        rgba(0,0,0,0.2);

}


.stat strong {

    display: block;

    font-size: 32px;

    color: #fbbf24;

}


.stat small {

    color: #e2e8f0;

    font-size: 14px;

}


/* SECTION BOX */

.sectionBox {

    margin-top: 30px;

    padding: 30px;

    border-radius: 25px;

    background:
        rgba(15,23,42,0.88);

    border:
        1px solid
        rgba(255,255,255,0.08);

    box-shadow:
        0 20px 45px
        rgba(0,0,0,0.30);

    backdrop-filter: blur(12px);

}


.sectionBox h2 {

    margin-top: 0;

    margin-bottom: 25px;

    font-size: 26px;

    color: #fbbf24;

}


/* PLAYERS */

#players {

    display: grid;

    grid-template-columns:
        repeat(auto-fit, minmax(220px, 1fr));

    gap: 15px;

}


.playerCard {

    display: flex;

    align-items: center;

    gap: 12px;

    padding: 18px;

    border-radius: 18px;

    background:
        linear-gradient(
            135deg,
            rgba(255,255,255,0.08),
            rgba(255,255,255,0.03)
        );

    border:
        1px solid
        rgba(255,255,255,0.08);

    transition: 0.3s;

}


.playerCard:hover {

    transform: translateY(-6px);

    border-color:
        rgba(251,191,36,0.5);

    box-shadow:
        0 10px 30px
        rgba(251,191,36,0.12);

}


.playerCard span {

    display: flex;

    align-items: center;

    justify-content: center;

    width: 35px;
    height: 35px;

    border-radius: 50%;

    background: #2563eb;

    font-weight: bold;

}


/* MATCHES */

#matches {

    display: grid;

    grid-template-columns:
        repeat(auto-fit, minmax(280px, 1fr));

    gap: 20px;

}


.match {

    padding: 25px;

    border-radius: 20px;

    background:
        linear-gradient(
            135deg,
            rgba(30,41,59,0.95),
            rgba(15,23,42,0.95)
        );

    border:
        1px solid
        rgba(255,255,255,0.08);

    text-align: center;

    transition: 0.3s;

}


.match:hover {

    transform: translateY(-5px);

    box-shadow:
        0 15px 35px
        rgba(0,0,0,0.3);

}


.match h3 {

    font-size: 20px;

    margin-bottom: 20px;

}


.match button {

    padding: 12px 25px;

    border: none;

    border-radius: 12px;

    background:
        linear-gradient(
            135deg,
            #2563eb,
            #7c3aed
        );

    color: white;

    font-weight: bold;

    cursor: pointer;

    transition: 0.3s;

}


.match button:hover {

    transform: scale(1.05);

    box-shadow:
        0 8px 25px
        rgba(37,99,235,0.4);

}


.match button:disabled {

    opacity: 0.5;

    cursor: not-allowed;

}


/* SEMI FINAL */

#semiFinal {

    padding: 30px;

    border-radius: 25px;

    background:
        linear-gradient(
            135deg,
            rgba(120,53,15,0.30),
            rgba(15,23,42,0.95)
        );

    border:
        1px solid
        rgba(251,191,36,0.25);

    text-align: center;

    color: #fbbf24;

}


#semiFinal h2 {

    color: #fbbf24;

}


#semiFinal p {

    color: #fbbf24;

}


/* FINAL */

#final {

    padding: 35px;

    border-radius: 25px;

    background:
        linear-gradient(
            135deg,
            rgba(251,191,36,0.15),
            rgba(88,28,135,0.25),
            rgba(15,23,42,0.98)
        );

    border:
        1px solid
        rgba(251,191,36,0.35);

    text-align: center;

    box-shadow:
        0 20px 50px
        rgba(251,191,36,0.08);

}


#final h2 {

    color: #fbbf24;

    font-size: 30px;

}


#final p {

    color: #fbbf24;

}


/* BACK BUTTON */

.backBtn {

    display: block;

    width: fit-content;

    margin: 35px auto 0;

    padding: 13px 25px;

    border-radius: 14px;

    text-decoration: none;

    color: white;

    background:
        linear-gradient(
            135deg,
            #2563eb,
            #7c3aed
        );

    font-weight: bold;

    transition: 0.3s;

}


.backBtn:hover {

    transform: translateY(-3px);

    box-shadow:
        0 10px 30px
        rgba(37,99,235,0.35);

}


/* MOBILE */

@media (max-width: 600px) {

    .detailsPage {

        width: 94%;

        margin-top: 20px;

    }


    .tournamentHeader {

        padding: 40px 15px;

    }


    .tournamentHeader h1 {

        font-size: 35px;

    }


    .trophy {

        font-size: 60px;

    }


    .stat {

        width: 100%;

    }


    .sectionBox {

        padding: 20px;

    }

}
/* =========================================
   TOURNAMENT CONTENT - PREMIUM DESIGN
   ========================================= */


/* كل الأقسام */

#playersList,
#bracket,
#semifinal,
#final {

    width: 100%;

    margin: 25px auto;

    padding: 28px;

    box-sizing: border-box;

    border-radius: 24px;

    background:
        linear-gradient(
            145deg,
            rgba(17, 24, 39, 0.96),
            rgba(30, 41, 59, 0.92)
        );

    border: 1px solid rgba(56, 189, 248, 0.18);

    box-shadow:
        0 15px 40px rgba(0, 0, 0, 0.35);

    backdrop-filter: blur(15px);

}


/* العناوين */

#playersList h2,
#bracket h2,
#semifinal h2,
#final h2 {

    color: #38bdf8;

    font-size: 27px;

    margin-top: 0;

    margin-bottom: 25px;

    letter-spacing: 0.5px;

}


/* عدد اللاعبين */

#playersList .playersHeader {

    color: #fbbf24;

}


#playersList .playersHeader span {

    background:
        linear-gradient(
            135deg,
            #2563eb,
            #06b6d4
        );

    color: white;

    padding: 8px 16px;

    border-radius: 20px;

}


/* شبكة اللاعبين */

#players {

    display: grid;

    grid-template-columns:
        repeat(auto-fit, minmax(220px, 1fr));

    gap: 15px;

}


/* كرت اللاعب */

#players .playerCard {

    display: flex;

    align-items: center;

    gap: 12px;

    padding: 18px;

    border-radius: 17px;

    background:
        linear-gradient(
            135deg,
            rgba(30, 64, 175, 0.25),
            rgba(8, 47, 73, 0.35)
        );

    border:
        1px solid rgba(56, 189, 248, 0.15);

    color: #e0f2fe;

    font-weight: 600;

    transition: 0.3s;

}


/* رقم اللاعب */

#players .playerCard span {

    width: 36px;

    height: 36px;

    display: flex;

    align-items: center;

    justify-content: center;

    border-radius: 50%;

    background:
        linear-gradient(
            135deg,
            #f59e0b,
            #fbbf24
        );

    color: #111827;

    font-weight: bold;

}


/* Hover */

#players .playerCard:hover {

    transform: translateY(-5px);

    border-color: #38bdf8;

    box-shadow:
        0 10px 25px
        rgba(56, 189, 248, 0.15);

}


/* المباريات */

#matches {

    display: grid;

    grid-template-columns:
        repeat(auto-fit, minmax(270px, 1fr));

    gap: 18px;

}


/* كرت المباراة */

#matches .match {

    padding: 25px;

    text-align: center;

    border-radius: 20px;

    background:
        linear-gradient(
            145deg,
            rgba(30, 41, 59, 0.95),
            rgba(15, 23, 42, 0.95)
        );

    border:
        1px solid
        rgba(56, 189, 248, 0.15);

    color: #fbbf24;

    transition: 0.3s;

}


#matches .match:hover {

    transform: translateY(-6px);

    border-color: #38bdf8;

    box-shadow:
        0 12px 30px
        rgba(56, 189, 248, 0.12);

}


/* أسماء اللاعبين */

#matches .match h3 {

    color: #fbbf24;

    font-size: 20px;

    margin-bottom: 20px;

}


/* زر Play */

#matches .match button,
#semifinal button,
#final button {

    border: none;

    padding: 12px 24px;

    border-radius: 12px;

    background:
        linear-gradient(
            135deg,
            #2563eb,
            #06b6d4
        );

    color: white;

    font-weight: bold;

    cursor: pointer;

    transition: 0.3s;

}


#matches .match button:hover,
#semifinal button:hover,
#final button:hover {

    transform: translateY(-3px);

    box-shadow:
        0 8px 25px
        rgba(6, 182, 212, 0.30);

}


/* Semi Final */

#semifinal {

    border-color:
        rgba(251, 191, 36, 0.25);

    background:
        linear-gradient(
            145deg,
            rgba(120, 53, 15, 0.25),
            rgba(30, 41, 59, 0.95)
        );

}


#semifinal h2 {

    color: #fbbf24;

}


#semiContent {

    text-align: center;

    color: #fcd34d;

    font-size: 17px;

}


/* Final */

#final {

    border-color:
        rgba(168, 85, 247, 0.35);

    background:
        linear-gradient(
            145deg,
            rgba(88, 28, 135, 0.25),
            rgba(15, 23, 42, 0.98)
        );

}


#final h2 {

    color: #c084fc;

    font-size: 30px;

}


#finalContent {

    text-align: center;

    color: #e9d5ff;

    font-size: 17px;

}


/* Waiting */

#semifinal p,
#final p {

    color: #cbd5e1;

    font-weight: 500;

}


/* الفائز */

#semifinal .match p,
#final .match p {

    color: #fbbf24;

    font-size: 18px;

    font-weight: bold;

}


/* Responsive */

@media (max-width: 600px) {

    #playersList,
    #bracket,
    #semifinal,
    #final {

        padding: 20px;

    }

    #players,
    #matches {

        grid-template-columns: 1fr;

    }

}
/* ================================
   Tournament Details Text
================================ */

.detailsPage {
    color: white;
}

.detailsPage h1,
.detailsPage h2,
.detailsPage h3,
.detailsPage p,
.detailsPage span,
.detailsPage strong,
.detailsPage small {
    color: white;
}


/* Players */

.playerName {
    color: white !important;
}


/* Match Cards */

.matchCard {
    color: white;
}


.matchCard h3 {
    color: white;
}


.matchPlayer {
    color: white !important;
    font-weight: bold;
}


.vs {
    color: #aaa !important;
    font-weight: bold;
}


.winnerBox {
    color: white;
}


.winnerBox strong {
    color: #00ff88 !important;
}


/* Champion */

.championBox {
    color: white;
}


.championBox h2 {
    color: #00ff88 !important;
}


.championBox p {
    color: white !important;
}


/* Tournament information */

.tournamentHeader h1 {
    color: white !important;
}


.gameName {
    color: #ddd !important;
}


.stat strong {
    color: white !important;
}


.stat small {
    color: #bbb !important;
}
.joinIcon {
    font-size: 70px;
    margin-bottom: 15px;
}
/* ========================================
   Tournaments Page
======================================== */

.tournamentsPage {
    padding: 50px 8%;
    min-height: 80vh;
}


.pageHeader {
    text-align: center;
    margin-bottom: 40px;
}


.pageHeader h1 {
    color: white;
    font-size: 42px;
    margin-bottom: 10px;
}


.pageHeader p {
    color: #bbb;
    font-size: 18px;
}


/* Grid */

.tournamentsGrid {
    display: grid;

    grid-template-columns:
        repeat(
            auto-fit,
            minmax(280px, 1fr)
        );

    gap: 25px;
}


/* Card */

.tournamentCard {

    padding: 30px;

    border-radius: 20px;

    background:
        rgba(255, 255, 255, 0.08);

    border:
        1px solid
        rgba(255, 255, 255, 0.12);

    text-align: center;

    backdrop-filter: blur(10px);

    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease;

}


.tournamentCard:hover {

    transform:
        translateY(-8px);

    box-shadow:
        0 15px 35px
        rgba(0, 0, 0, 0.35);

}


/* Trophy */

.cardIcon {

    font-size: 55px;

    margin-bottom: 10px;

}


.tournamentCard h2 {

    color: white;

    font-size: 25px;

    margin: 10px 0;

}


.tournamentCard .game {

    color: #ccc;

    font-size: 17px;

    margin-bottom: 20px;

}


/* Players */

.playersInfo {

    color: white;

    font-size: 18px;

    margin-bottom: 25px;

}


/* Buttons */

.cardButtons {

    display: flex;

    gap: 10px;

    justify-content: center;

    flex-wrap: wrap;

}


.cardButtons button {

    border: none;

    padding: 12px 18px;

    border-radius: 10px;

    cursor: pointer;

    font-weight: bold;

    transition:
        transform 0.2s ease;

}


.cardButtons button:hover {

    transform:
        scale(1.05);

}


.viewTournament {

    background: #444;

    color: white;

}


.joinTournament {

    background: #00c878;

    color: white;

}


/* Empty */

.emptyBox {

    text-align: center;

    color: white;

    padding: 60px 20px;

}


.emptyBox h2 {

    color: white;

}


.emptyBox p {

    color: #bbb;

}
/* ========================================
   Authentication
======================================== */

#authArea {

    display: flex;

    align-items: center;

    gap: 12px;

}


.userName {

    color: white;

    font-weight: bold;

}


.logoutBtn {

    border: none;

    padding: 8px 14px;

    border-radius: 8px;

    cursor: pointer;

    font-weight: bold;

    color: white;

    background: #e53935;

    transition: 0.2s;

}


.logoutBtn:hover {

    transform: scale(1.05);

}
/* ========================================
   FRIEND CUP - GAMING DESIGN
======================================== */

* {
    box-sizing: border-box;
}


html {
    scroll-behavior: smooth;
}


body {
    margin: 0;

    min-height: 100vh;

    font-family:
        Arial,
        Helvetica,
        sans-serif;

    color: white;

    background:
        radial-gradient(
            circle at top,
            #20204a 0%,
            #0b0b18 45%,
            #050509 100%
        );

    background-attachment: fixed;
}


/* ========================================
   Navigation
======================================== */

nav {
    width: 100%;

    padding: 18px 7%;

    display: flex;

    justify-content: space-between;

    align-items: center;

    background:
        rgba(5, 5, 15, 0.85);

    border-bottom:
        1px solid
        rgba(255, 255, 255, 0.1);

    backdrop-filter: blur(12px);

    position: sticky;

    top: 0;

    z-index: 1000;
}


.logo {
    font-size: 24px;

    font-weight: bold;

    color: white;
}


.nav-links {
    display: flex;

    align-items: center;

    gap: 25px;
}


.nav-links a {
    color: white;

    text-decoration: none;

    font-weight: bold;

    transition:
        color 0.2s ease,
        transform 0.2s ease;
}


.nav-links a:hover {
    color: #00e676;

    transform:
        translateY(-2px);
}


/* ========================================
   Hero
======================================== */

.hero {
    min-height: 70vh;

    display: flex;

    flex-direction: column;

    justify-content: center;

    align-items: center;

    text-align: center;

    padding: 60px 20px;
}


.hero h1 {
    font-size:
        clamp(36px, 6vw, 70px);

    margin-bottom: 15px;

    text-shadow:
        0 0 25px
        rgba(0, 230, 118, 0.35);
}


.hero p {
    font-size: 20px;

    color: #c8c8d0;

    max-width: 600px;

    margin-bottom: 30px;
}


/* ========================================
   Buttons
======================================== */

button {
    border: none;

    cursor: pointer;

    border-radius: 10px;

    padding: 12px 22px;

    font-weight: bold;

    color: white;

    background:
        linear-gradient(
            135deg,
            #00c853,
            #00e676
        );

    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease;
}


button:hover {
    transform:
        translateY(-3px);

    box-shadow:
        0 8px 25px
        rgba(0, 230, 118, 0.3);
}


button:active {
    transform:
        scale(0.97);
}


/* ========================================
   Sections
======================================== */

section {
    padding: 60px 7%;
}


section h2 {
    text-align: center;

    font-size: 32px;

    margin-bottom: 30px;
}


/* ========================================
   Create Tournament
======================================== */

.createSection {
    max-width: 700px;

    margin: 0 auto;

    text-align: center;
}


#createTournament {
    scroll-margin-top: 100px;
}


#tournamentForm {
    display: flex;

    flex-direction: column;

    gap: 15px;
}


#tournamentForm input {
    width: 100%;

    padding: 14px 16px;

    border: 1px solid
        rgba(255, 255, 255, 0.15);

    border-radius: 10px;

    outline: none;

    background:
        rgba(255, 255, 255, 0.07);

    color: white;

    font-size: 16px;
}


#tournamentForm input::placeholder {
    color: #aaa;
}


#tournamentForm input:focus {
    border-color: #00e676;

    box-shadow:
        0 0 12px
        rgba(0, 230, 118, 0.2);
}


/* ========================================
   Tournament Cards
======================================== */

.card,
.tournamentCard {
    background:
        rgba(255, 255, 255, 0.07);

    border:
        1px solid
        rgba(255, 255, 255, 0.12);

    border-radius: 18px;

    backdrop-filter: blur(12px);

    box-shadow:
        0 10px 30px
        rgba(0, 0, 0, 0.25);

    transition:
        transform 0.3s ease,
        border-color 0.3s ease;
}
/* Tournament Card Text */

.card p,
.card .joinedCount,
.tournamentCard p,
.tournamentCard .playersInfo {
    color: white !important;
}


/* Game name */

.card .game,
.tournamentCard .game {
    color: #dddddd !important;
}


/* Players text */

.card .joinedCount,
.tournamentCard .playersInfo {
    color: #ffffff !important;
}
/* ========================================
   FRIEND CUP ANIMATIONS
======================================== */

/* Smooth appearance */

.card,
.tournamentCard {
    animation: cardAppear 0.5s ease;
}


/* Card hover */

.card:hover,
.tournamentCard:hover {
    transform: translateY(-8px);

    border-color: #00e676;

    box-shadow:
        0 15px 35px
        rgba(0, 230, 118, 0.18);
}


/* Card icon */

.cardIcon {
    font-size: 45px;

    margin-bottom: 10px;

    animation:
        trophyFloat 2.5s ease-in-out infinite;
}


/* Tournament title */

.card h2,
.tournamentCard h2 {
    color: white;

    transition: 0.2s;
}


.card:hover h2,
.tournamentCard:hover h2 {
    color: #00e676;
}


/* Buttons inside cards */

.card button,
.tournamentCard button {
    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease,
        background 0.2s ease;
}


.card button:hover,
.tournamentCard button:hover {
    transform: translateY(-3px);

    box-shadow:
        0 8px 20px
        rgba(0, 230, 118, 0.25);
}


/* Appearance animation */

@keyframes cardAppear {

    from {

        opacity: 0;

        transform:
            translateY(20px);

    }

    to {

        opacity: 1;

        transform:
            translateY(0);

    }

}


/* Trophy animation */

@keyframes trophyFloat {

    0%,
    100% {

        transform:
            translateY(0);

    }

    50% {

        transform:
            translateY(-6px);

    }

}


/* ========================================
   MOBILE
======================================== */

@media (max-width: 768px) {

    nav {

        flex-direction: column;

        gap: 15px;

        padding: 15px 5%;

    }


    .nav-links {

        flex-wrap: wrap;

        justify-content: center;

        gap: 12px;

    }


    .logo {

        font-size: 21px;

    }


    .hero {

        min-height: 60vh;

        padding: 40px 20px;

    }


    .hero h1 {

        font-size: 38px;

    }


    .hero p {

        font-size: 16px;

    }


    section {

        padding:
            40px 5%;

    }


    section h2 {

        font-size: 26px;

    }

}


/* ========================================
   SMALL PHONES
======================================== */

@media (max-width: 480px) {

    .nav-links {

        gap: 8px;

    }


    .nav-links a {

        font-size: 13px;

    }


    .hero h1 {

        font-size: 30px;

    }


    button {

        width: 100%;

    }


    .card,
    .tournamentCard {

        width: 100%;

    }

}
/* Input Text Fix */

#tournamentForm input {
    background: #11111f !important;
    color: #ffffff !important;
    border: 1px solid #44445a;
}

#tournamentForm input::placeholder {
    color: #999999 !important;
    opacity: 1;
}

#tournamentForm input:focus {
    color: #ffffff !important;
    background: #151528 !important;
    border-color: #00e676;
    outline: none;
}
/* ========================================
   TOURNAMENTS PAGE
======================================== */

#tournamentList {
    display: grid;

    grid-template-columns:
        repeat(auto-fit, minmax(280px, 1fr));

    gap: 25px;

    width: 100%;

    max-width: 1200px;

    margin: 30px auto;

    padding: 0 20px;
}


/* Tournament Card */

#tournamentList .card {
    padding: 25px;

    text-align: center;

    border-radius: 18px;

    background:
        rgba(255, 255, 255, 0.07);

    border:
        1px solid
        rgba(255, 255, 255, 0.12);

    backdrop-filter: blur(12px);

    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease,
        border-color 0.3s ease;
}


#tournamentList .card:hover {
    transform: translateY(-8px);

    border-color: #00e676;

    box-shadow:
        0 15px 35px
        rgba(0, 230, 118, 0.18);
}


/* Tournament Title */

#tournamentList .tournamentTitle {
    color: white;

    font-size: 24px;

    margin-bottom: 18px;

    cursor: pointer;
}


#tournamentList .tournamentTitle:hover {
    color: #00e676;
}


/* Tournament Information */

#tournamentList .card p {
    color: #dddddd !important;

    margin: 10px 0;

    font-size: 15px;
}


/* Buttons */

#tournamentList .card button {
    margin: 8px 4px;

    padding: 10px 14px;

    border-radius: 8px;

    border: none;

    cursor: pointer;

    font-weight: bold;

    color: white;

    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease;
}


#tournamentList .card button:hover {
    transform: translateY(-3px);

    box-shadow:
        0 7px 18px
        rgba(0, 230, 118, 0.25);
}


/* Join Button */

#tournamentList .joinBtn {
    background:
        linear-gradient(
            135deg,
            #00c853,
            #00e676
        );
}


/* Edit Button */

#tournamentList .editBtn {
    background:
        #3949ab;
}


/* Delete Button */

#tournamentList .deleteBtn {
    background:
        #e53935;
}


/* Mobile */

@media (max-width: 600px) {

    #tournamentList {
        grid-template-columns: 1fr;

        padding: 0 12px;
    }


    #tournamentList .card button {
        width: 100%;

        margin:
            6px 0;
    }

}
/* ========================================
   PLAYERS PAGE
======================================== */

.playersPage {
    max-width: 1100px;
    margin: 50px auto;
    padding: 20px;
}


/* Title */

.playersTitle {
    text-align: center;
    margin-bottom: 35px;
}

.playersTitle h1 {
    font-size: 36px;
    margin-bottom: 10px;
}

.playersTitle p {
    font-size: 17px;
    opacity: 0.7;
}


/* Search */

.playerSearch {
    display: flex;
    justify-content: center;
    margin-bottom: 35px;
}

.playerSearch input {
    width: 100%;
    max-width: 500px;
    padding: 15px 20px;
    border-radius: 12px;
    border: 1px solid #ddd;
    font-size: 16px;
    outline: none;
}

.playerSearch input:focus {
    border-color: #333;
}


/* Players Grid */

.playersPage .playersGrid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}


/* Player Card */

.playersPage .playerCard {
    background: white;
    border-radius: 18px;
    padding: 25px 20px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    position: relative;
    transition: 0.3s;
}

.playersPage .playerCard:hover {
    transform: translateY(-5px);
}


/* Number */

.playersPage .playerNumber {
    position: absolute;
    top: 12px;
    left: 15px;
    font-weight: bold;
    font-size: 14px;
    opacity: 0.5;
}


/* Avatar */

.playersPage .playerAvatar {
    font-size: 45px;
    margin-bottom: 10px;
}


/* Name */

.playersPage .playerName {
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 10px;
}


/* Stats */

.playersPage .playerStats {
    font-size: 14px;
    opacity: 0.7;
}


/* Empty Box */

.playersPage .emptyBox {
    text-align: center;
    padding: 50px 20px;
}


/* Responsive */

@media (max-width: 800px) {

    .playersPage .playersGrid {
        grid-template-columns: repeat(2, 1fr);
    }

}


@media (max-width: 500px) {

    .playersPage .playersGrid {
        grid-template-columns: 1fr;
    }

    .playersTitle h1 {
        font-size: 28px;
    }

}
/* ========================================
   FIX PLAYERS CARDS
======================================== */

.playersPage .playersGrid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.playersPage .playerCard {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    min-height: 180px;

    background: white;
    color: #222;

    border-radius: 18px;
    padding: 25px 15px;

    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);

    position: relative;
}

.playersPage .playerNumber {
    position: absolute;

    top: 12px;
    left: 15px;

    color: #777;
    font-size: 14px;
    font-weight: bold;
}

.playersPage .playerAvatar {
    font-size: 45px;
    margin-bottom: 12px;
}

.playersPage .playerName {
    display: block;

    color: #222;

    font-size: 20px;
    font-weight: bold;

    margin-bottom: 10px;
}

.playersPage .playerStats {
    display: block;

    color: #666;

    font-size: 14px;
}


/* ========================================
   MOBILE
======================================== */

@media (max-width: 800px) {

    .playersPage .playersGrid {
        grid-template-columns: repeat(2, 1fr);
    }

}


@media (max-width: 500px) {

    .playersPage .playersGrid {
        grid-template-columns: 1fr;
    }

}
/* ========================================
   FINAL PLAYERS CARD FIX
======================================== */

.playersPage .playerCard {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;

    text-align: center !important;

    min-height: 180px !important;
    padding: 25px !important;

    background: #ffffff !important;
    color: #222222 !important;
}

.playersPage .playerName {
    display: block !important;

    width: 100% !important;

    color: #222222 !important;

    font-size: 20px !important;
    font-weight: 700 !important;

    margin: 10px 0 !important;

    visibility: visible !important;
    opacity: 1 !important;
}

.playersPage .playerStats {
    display: block !important;

    width: 100% !important;

    color: #555555 !important;

    font-size: 14px !important;

    visibility: visible !important;
    opacity: 1 !important;
}

.playersPage .playerAvatar {
    display: block !important;

    font-size: 45px !important;

    visibility: visible !important;
    opacity: 1 !important;
}

.playersPage .playerNumber {
    display: block !important;

    color: #777777 !important;

    visibility: visible !important;
    opacity: 1 !important;
}
/* ========================================
   FIX NAVIGATION
======================================== */

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 30px;
    gap: 20px;
}

nav .logo {
    white-space: nowrap;
}

nav .nav-links {
    display: flex;
    align-items: center;
    gap: 20px;
    list-style: none;
}

nav .nav-links a {
    text-decoration: none;
    white-space: nowrap;
}

nav .nav-links > div {
    display: flex;
    align-items: center;
    gap: 15px;
}

nav .nav-links button {
    border: none;
    background: none;
    cursor: pointer;
    font-size: inherit;
}

nav .userName {
    white-space: nowrap;
}
/* ========================================
   FRIEND CUP - RESPONSIVE ADDITION
   لا يغيّر التصميم الأساسي
======================================== */


/* ========================================
   TABLET
   769px - 1024px
======================================== */

@media (min-width: 769px) and (max-width: 1024px) {

    /* Navbar */

    nav {
        padding: 15px 25px;
    }

    .nav-links {
        gap: 12px;
    }

    .nav-links a {
        font-size: 14px;
        padding: 8px 10px;
    }


    /* Hero */

    .hero {
        padding: 60px 30px;
    }

    .hero h1 {
        font-size: 48px;
    }


    /* Tournament Cards */

    #tournamentList {
        grid-template-columns:
            repeat(2, 1fr);

        gap: 20px;
    }


    /* Players */

    .playersPage .playersGrid {
        grid-template-columns:
            repeat(2, 1fr);
    }


    /* Details */

    .detailsPage {
        width: 94%;
    }

}


/* ========================================
   MOBILE
   768px AND BELOW
======================================== */

@media (max-width: 768px) {

    /* Navbar */

    nav {
        padding: 15px 20px;

        flex-direction: column;

        gap: 15px;
    }

    nav .logo {
        font-size: 21px;
    }

    nav .nav-links {
        position: static;

        transform: none;

        width: 100%;

        display: flex;

        justify-content: center;

        align-items: center;

        flex-wrap: wrap;

        gap: 8px;
    }

    nav .nav-links a {
        font-size: 13px;

        padding: 8px 10px;

        white-space: nowrap;
    }

    nav #authArea {
        display: flex;

        align-items: center;

        justify-content: center;

        gap: 8px;
    }

    nav .userName {
        font-size: 13px;
    }

    nav .logoutBtn {
        padding: 7px 10px;

        font-size: 12px;

        width: auto;
    }


    /* Hero */

    .hero {
        min-height: 60vh;

        padding: 45px 20px;
    }

    .hero h1 {
        font-size: 38px;

        line-height: 1.2;
    }

    .hero p {
        font-size: 16px;

        line-height: 1.6;
    }


    /* Sections */

    section {
        padding: 40px 5%;
    }

    section h2 {
        font-size: 27px;
    }


    /* Create Tournament */

    .createSection {
        width: 100%;

        max-width: 600px;

        padding-left: 20px;
        padding-right: 20px;
    }

    #tournamentForm {
        width: 100%;
    }

    #tournamentForm button {
        width: 100%;
    }


    /* Tournament List */

    #tournamentList {
        grid-template-columns: 1fr;

        width: 100%;

        padding: 0 15px;

        gap: 20px;
    }


    /* Tournament Cards */

    #tournamentList .card {
        width: 100%;

        margin: 0;

        padding: 22px 18px;
    }

    #tournamentList .card button {
        max-width: 100%;
    }


    /* Details Page */

    .detailsPage {
        width: 94%;

        margin: 25px auto 50px;
    }

    .tournamentHeader {
        padding: 40px 20px;
    }

    .tournamentHeader h1 {
        font-size: 35px;

        line-height: 1.2;
    }

    .trophy {
        font-size: 60px;
    }


    /* Tournament Stats */

    .stats {
        flex-direction: column;

        gap: 12px;
    }

    .stat {
        width: 100%;

        min-width: 0;
    }


    /* Tournament Sections */

    .sectionBox {
        padding: 20px;
    }

    #playersList,
    #bracket,
    #semifinal,
    #final {
        width: 100%;

        padding: 20px;

        margin: 20px 0;
    }


    /* Players */

    #players {
        grid-template-columns: 1fr;
    }


    /* Matches */

    #matches {
        grid-template-columns: 1fr;
    }


    /* Players Page */

    .playersPage {
        width: 100%;

        margin: 30px auto;

        padding: 15px;
    }

    .playersPage .playersGrid {
        grid-template-columns: 1fr;
    }

    .playersTitle h1 {
        font-size: 30px;
    }

    .playersPage .playerCard {
        width: 100%;

        min-height: 170px;
    }


    /* Back Button */

    .backBtn {
        max-width: 100%;

        text-align: center;
    }

}


/* ========================================
   SMALL MOBILE
   480px AND BELOW
======================================== */

@media (max-width: 480px) {

    /* Navbar */

    nav {
        padding: 12px 10px;
    }

    nav .logo {
        font-size: 20px;
    }

    nav .nav-links {
        gap: 5px;
    }

    nav .nav-links a {
        font-size: 12px;

        padding: 7px 8px;
    }


    /* Hero */

    .hero {
        padding: 35px 15px;
    }

    .hero h1 {
        font-size: 30px;
    }

    .hero p {
        font-size: 15px;
    }


    /* Buttons */

    button {
        max-width: 100%;
    }


    /* Form */

    form {
        width: 100%;
    }


    /* Tournament Cards */

    #tournamentList {
        padding: 0 10px;
    }

    #tournamentList .card {
        padding: 20px 15px;
    }

    #tournamentList .card button {
        width: 100%;

        margin: 6px 0;
    }


    /* Details */

    .tournamentHeader {
        padding: 30px 15px;
    }

    .tournamentHeader h1 {
        font-size: 29px;
    }

    .tournamentHeader p {
        font-size: 16px;
    }

    .trophy {
        font-size: 50px;
    }


    /* Tournament Sections */

    .sectionBox {
        padding: 16px;
    }

    #playersList,
    #bracket,
    #semifinal,
    #final {
        padding: 16px;
    }


    /* Stats */

    .stat {
        padding: 16px;
    }

    .stat strong {
        font-size: 27px;
    }


    /* Players */

    .playersPage .playerCard {
        min-height: 160px;

        padding: 20px 15px;
    }


    /* Match */

    #matches .match {
        padding: 20px 15px;
    }

}
/* ========================================
   DASHBOARD - FINAL FIX
======================================== */

.dashboardHeader {
    width: 100%;
    max-width: 1100px;
    margin: 50px auto 30px;
    padding: 35px 20px;
    text-align: center;
}

.dashboardHeader h1 {
    margin: 10px 0;
    color: white;
    font-size: 42px;
}

.dashboardHeader p {
    margin: 0;
    color: #c8c8d0;
    font-size: 18px;
}

.dashboardIcon {
    font-size: 55px;
}


/* ========================================
   DASHBOARD STATS
======================================== */

.dashboardStats {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto 40px;

    display: grid;
    grid-template-columns: repeat(5, 1fr);

    gap: 20px;

    padding: 0 20px;
}

.dashboardStatCard {
    min-width: 0;

    padding: 25px 15px;

    text-align: center;

    border-radius: 18px;

    background: rgba(255, 255, 255, 0.07);

    border: 1px solid rgba(255, 255, 255, 0.12);

    box-shadow:
        0 10px 30px rgba(0, 0, 0, 0.25);
}

.dashboardStatCard .statIcon {
    font-size: 35px;
    margin-bottom: 10px;
}

.dashboardStatCard h3 {
    margin: 8px 0;

    color: white;

    font-size: 16px;
}

.dashboardStatCard strong {
    display: block;

    color: #00e676;

    font-size: 30px;
}


/* ========================================
   MY TOURNAMENTS
======================================== */

.dashboardTournaments {
    width: 100%;
    max-width: 1100px;

    margin: 0 auto;

    padding: 20px;
}

.dashboardTournaments h2 {
    text-align: center;

    color: white;

    margin-bottom: 30px;
}


/* القائمة بدون نقاط */

#dashboardTournamentList {
    width: 100%;

    display: grid;

    grid-template-columns:
        repeat(auto-fit, minmax(280px, 1fr));

    gap: 20px;
}


/* إزالة نقاط القوائم */

#dashboardTournamentList ul,
#dashboardTournamentList ol {
    list-style: none;

    margin: 0;
    padding: 0;
}


/* كروت البطولات */

#dashboardTournamentList .card,
#dashboardTournamentList > div {
    box-sizing: border-box;

    width: 100%;

    padding: 25px;

    border-radius: 18px;

    background:
        rgba(255, 255, 255, 0.07);

    border:
        1px solid
        rgba(255, 255, 255, 0.12);

    color: white;

    box-shadow:
        0 10px 30px
        rgba(0, 0, 0, 0.25);
}


/* نص البطولات */

#dashboardTournamentList h3 {
    color: white;

    margin-top: 0;

    margin-bottom: 15px;
}

#dashboardTournamentList p {
    color: #dddddd;

    margin: 8px 0;

    line-height: 1.5;
}


/* ========================================
   DASHBOARD BUTTONS
======================================== */

.dashboardActions {
    width: 100%;

    display: flex;

    justify-content: center;

    align-items: center;

    gap: 15px;

    flex-wrap: wrap;

    padding: 30px 20px 60px;
}

.dashboardBtn {
    display: inline-flex;

    align-items: center;

    justify-content: center;

    padding: 12px 22px;

    border-radius: 10px;

    color: white;

    text-decoration: none;

    font-weight: bold;

    background:
        linear-gradient(
            135deg,
            #00c853,
            #00e676
        );

    transition: 0.2s;
}

.dashboardBtn:hover {
    transform: translateY(-3px);

    box-shadow:
        0 8px 20px
        rgba(0, 230, 118, 0.25);
}


/* ========================================
   TABLET
======================================== */

@media (max-width: 1000px) {

    .dashboardStats {
        grid-template-columns:
            repeat(3, 1fr);
    }

}


/* ========================================
   MOBILE
======================================== */

@media (max-width: 700px) {

    .dashboardHeader {
        margin-top: 30px;

        padding: 25px 15px;
    }

    .dashboardHeader h1 {
        font-size: 32px;
    }

    .dashboardHeader p {
        font-size: 16px;
    }


    .dashboardStats {
        grid-template-columns:
            repeat(2, 1fr);

        gap: 12px;

        padding: 0 15px;
    }

    .dashboardStatCard {
        padding: 20px 10px;
    }


    .dashboardTournaments {
        padding: 15px;
    }


    #dashboardTournamentList {
        grid-template-columns: 1fr;
    }


    .dashboardActions {
        flex-direction: column;

        padding-left: 15px;
        padding-right: 15px;
    }

    .dashboardBtn {
        width: 100%;
    }

}


/* ========================================
   SMALL PHONE
======================================== */

@media (max-width: 480px) {

    .dashboardStats {
        grid-template-columns: 1fr;
    }

    .dashboardHeader h1 {
        font-size: 28px;
    }

    .dashboardIcon {
        font-size: 45px;
    }

}
/* ========================================
   FINAL NAVBAR FIX
======================================== */

nav {
    position: sticky !important;
    top: 0 !important;

    width: 100% !important;
    min-height: 80px !important;
    height: auto !important;

    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;

    padding: 15px 30px !important;
    gap: 20px !important;

    box-sizing: border-box !important;
}


/* LOGO */

nav .logo {
    flex-shrink: 0 !important;
    white-space: nowrap !important;
}


/* NAV LINKS */

nav .nav-links {
    position: static !important;
    left: auto !important;
    transform: none !important;

    display: flex !important;
    align-items: center !important;
    justify-content: flex-end !important;

    flex-wrap: wrap !important;

    gap: 10px !important;

    width: auto !important;
    margin-left: auto !important;
}


/* LINKS */

nav .nav-links > a {
    display: inline-flex !important;

    align-items: center !important;
    justify-content: center !important;

    white-space: nowrap !important;

    padding: 8px 10px !important;

    font-size: 14px !important;

    margin: 0 !important;
}


/* USER AREA */

nav #authArea {
    display: flex !important;

    align-items: center !important;
    justify-content: center !important;

    gap: 8px !important;

    flex-wrap: nowrap !important;

    margin: 0 !important;
}


/* USER NAME */

nav #authArea .userName {
    display: inline-block !important;

    white-space: nowrap !important;

    margin: 0 !important;
}


/* LOGOUT */

nav #authArea .logoutBtn {
    display: inline-block !important;

    width: auto !important;

    min-width: auto !important;

    white-space: nowrap !important;

    margin: 0 !important;

    padding: 8px 12px !important;
}


/* ========================================
   TABLET
======================================== */

@media (max-width: 1100px) {

    nav {
        flex-direction: column !important;

        justify-content: center !important;

        gap: 12px !important;

        padding: 15px 20px !important;
    }

    nav .nav-links {
        width: 100% !important;

        justify-content: center !important;

        margin-left: 0 !important;
    }

}


/* ========================================
   MOBILE
======================================== */

@media (max-width: 600px) {

    nav {
        padding: 15px 10px !important;
    }

    nav .nav-links {
        width: 100% !important;

        display: flex !important;

        flex-direction: row !important;

        justify-content: center !important;

        align-items: center !important;

        gap: 5px !important;
    }

    nav .nav-links > a {
        font-size: 12px !important;

        padding: 7px 6px !important;
    }

    nav #authArea {
        width: 100% !important;

        justify-content: center !important;
    }

}
/* ========================================
   Roulette
======================================== */

.rouletteSection {
    margin: 30px 0;
    padding: 25px;
    text-align: center;
}

.rouletteWheel {
    width: 120px;
    height: 120px;
    margin: 20px auto;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 65px;
    border-radius: 50%;
}

.spinRoulette {
    padding: 12px 25px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
}

.spinRoulette:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.spinAnimation {
    animation: rouletteSpin 2s ease-in-out;
}

@keyframes rouletteSpin {

    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(1080deg);
    }

}

.rouletteResult {
    margin-top: 20px;
}

.rouletteMatches {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-top: 20px;
}

.rouletteMatch {
    padding: 15px;
    border-radius: 10px;
}

.rouletteMatch span {
    display: block;
    margin: 5px 0;
}

.rouletteMatch b {
    display: block;
    margin: 5px 0;
}

@media (max-width: 700px) {

    .rouletteMatches {
        grid-template-columns: 1fr;
    }

}
.backHomeBtn {
    display: inline-block;
    padding: 10px 20px;
    margin-top: 25px;

    background: transparent;
    color: inherit;

    border: 1px solid currentColor;
    border-radius: 8px;

    text-decoration: none;
    font-weight: 600;

    transition: 0.3s;
}
/* ========================================
   PLAYERS PAGE - NEW DESIGN
======================================== */

.playersPage {
    max-width: 1200px;
    margin: 40px auto;
    padding: 20px;
}

.playersPage h1 {
    text-align: center;
    margin-bottom: 10px;
}

.playersPage > p {
    text-align: center;
    margin-bottom: 35px;
    opacity: 0.7;
}


/* ========================================
   Players Grid
======================================== */

#playersContainer {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}


/* ========================================
   Player Card
======================================== */

.playerCard {
    position: relative;

    padding: 25px 20px;

    border-radius: 18px;

    text-align: center;

    border: 1px solid rgba(255, 255, 255, 0.08);

    background: rgba(255, 255, 255, 0.04);

    backdrop-filter: blur(10px);

    transition: 0.3s ease;

    overflow: hidden;
}


/* Top line */

.playerCard::before {
    content: "";

    position: absolute;

    top: 0;
    left: 0;

    width: 100%;
    height: 3px;

    background: currentColor;

    opacity: 0.5;
}


/* Hover */

.playerCard:hover {
    transform: translateY(-7px);

    border-color: currentColor;

    box-shadow:
        0 12px 30px rgba(0, 0, 0, 0.25);
}


/* ========================================
   Player Number
======================================== */

.playerNumber {
    position: absolute;

    top: 12px;
    left: 12px;

    width: 30px;
    height: 30px;

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

    border-radius: 50%;

    background: rgba(255, 255, 255, 0.08);

    font-size: 13px;

    font-weight: bold;

    opacity: 0.8;
}


/* ========================================
   Player Avatar
======================================== */

.playerAvatar {
    width: 75px;
    height: 75px;

    margin: 10px auto 15px;

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

    border-radius: 50%;

    background: rgba(255, 255, 255, 0.08);

    font-size: 32px;

    border: 2px solid rgba(255, 255, 255, 0.08);

    transition: 0.3s ease;
}


.playerCard:hover .playerAvatar {
    transform: scale(1.08);
}


/* ========================================
   Player Name
======================================== */

.playerName {
    font-size: 18px;

    font-weight: 700;

    margin-bottom: 7px;

    letter-spacing: 0.5px;
}


/* ========================================
   Player Type
======================================== */

.playerCard p {
    font-size: 13px;

    opacity: 0.6;

    margin-bottom: 18px;
}


/* ========================================
   Profile Button
======================================== */

.viewProfileBtn {
    display: inline-block;

    padding: 9px 18px;

    border-radius: 9px;

    border: 1px solid currentColor;

    text-decoration: none;

    font-size: 13px;

    font-weight: 600;

    transition: 0.3s ease;
}


.viewProfileBtn:hover {
    background: currentColor;

    color: #ec0000;

    transform: translateY(-2px);
}


/* ========================================
   Search
======================================== */

#searchPlayer {
    display: block;

    width: 100%;
    max-width: 500px;

    margin: 0 auto 30px;

    padding: 13px 18px;

    border-radius: 12px;

    border: 1px solid rgba(255, 255, 255, 0.1);

    background: rgba(255, 255, 255, 0.04);

    color: inherit;

    outline: none;

    font-size: 14px;

    transition: 0.3s ease;
}


#searchPlayer:focus {
    border-color: currentColor;

    box-shadow:
        0 0 15px rgba(206, 177, 177, 0.08);
}


/* ========================================
   Mobile
======================================== */

@media (max-width: 900px) {

    #playersContainer {
        grid-template-columns: repeat(2, 1fr);
    }

}


@media (max-width: 550px) {

    .playersPage {
        margin: 20px auto;
        padding: 15px;
    }


    #playersContainer {
        grid-template-columns: 1fr;
        gap: 15px;
    }


    .playerCard {
        padding: 22px 18px;
    }


    .playerAvatar {
        width: 65px;
        height: 65px;

        font-size: 28px;
    }

}
```css
/* ========================================
   FRIEND CUP - PREMIUM FOOTER
========================================= */

.site-footer {

    margin-top: 80px;

    background:
        linear-gradient(
            135deg,
            #111827,
            #1f2937
        );

    color: white;

    border-top:
        1px solid rgba(255, 255, 255, 0.08);

    position: relative;

    overflow: hidden;

}


/* ========================================
   Decorative Glow
========================================= */

.site-footer::before {

    content: "🏆";

    position: absolute;

    font-size: 180px;

    right: -30px;

    bottom: -70px;

    opacity: 0.035;

    pointer-events: none;

}


/* ========================================
   Footer Container
========================================= */

.footer-container {

    max-width: 1200px;

    margin: auto;

    padding: 55px 25px 40px;

    display: grid;

    grid-template-columns:
        1.5fr 1fr 1fr;

    gap: 55px;

}


/* ========================================
   Footer Sections
========================================= */

.footer-section {

    position: relative;

}


.footer-section h3 {

    margin: 0 0 18px;

    font-size: 20px;

    font-weight: 700;

    letter-spacing: 0.3px;

}


/* ========================================
   Friend Cup Description
========================================= */

.footer-section:first-child h3 {

    font-size: 24px;

}


.footer-section:first-child p {

    max-width: 360px;

    color: #cbd5e1;

    line-height: 1.8;

}


/* ========================================
   Footer Text
========================================= */

.footer-section p {

    margin: 10px 0;

    color: #cbd5e1;

    font-size: 14px;

    line-height: 1.6;

}


/* ========================================
   Links
========================================= */

.footer-section a {

    color: #cbd5e1;

    text-decoration: none;

    transition:
        color 0.2s ease,
        padding-left 0.2s ease;

}


.footer-section a:hover {

    color: white;

    padding-left: 4px;

}


/* ========================================
   Contact Icons
========================================= */

.footer-section:nth-child(2) p {

    display: flex;

    align-items: center;

    gap: 7px;

}


/* ========================================
   Support Items
========================================= */

.footer-section:last-child p {

    transition:
        transform 0.2s ease,
        color 0.2s ease;

}


.footer-section:last-child p:hover {

    transform: translateX(5px);

    color: white;

}


/* ========================================
   Footer Bottom
========================================= */

.footer-bottom {

    border-top:
        1px solid rgba(255, 255, 255, 0.08);

    text-align: center;

    padding: 20px;

}


.footer-bottom p {

    margin: 0;

    color: #94a3b8;

    font-size: 13px;

}


/* ========================================
   Tablet
========================================= */

@media (max-width: 900px) {

    .footer-container {

        grid-template-columns:
            1fr 1fr;

        gap: 40px;

    }


    .footer-section:first-child {

        grid-column:
            1 / -1;

    }

}


/* ========================================
   Mobile
========================================= */

@media (max-width: 600px) {

    .site-footer {

        margin-top: 60px;

    }


    .footer-container {

        grid-template-columns: 1fr;

        padding: 40px 20px 30px;

        gap: 32px;

        text-align: center;

    }


    .footer-section:first-child {

        grid-column:
            auto;

    }


    .footer-section:first-child p {

        margin-left: auto;

        margin-right: auto;

    }


    .footer-section:nth-child(2) p {

        justify-content: center;

    }


    .footer-section:last-child p:hover {

        transform: none;

    }


    .site-footer::before {

        font-size: 120px;

        right: -20px;

        bottom: -40px;

    }

}




