* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: url('images/bg.jpg') no-repeat center center fixed;
    background-size: cover;
    font-family: Arial, sans-serif;
    color: white;
    min-height: 100vh;
}

.player-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg,
            rgba(25, 55, 109, 0.5),
            rgba(47, 87, 157, 0.5),
            rgba(35, 65, 119, 0.5));
    z-index: -1;
}
.has-team {
    background: linear-gradient(to right, rgba(0, 51, 0, 0.85) 0%, rgba(0, 102, 34, 0.7) 4%, rgba(25, 40, 80, 0.85) 100%) !important;
}
.has-unsold {
    background: linear-gradient(to right, rgba(139, 0, 0, 0.85) 0%, rgba(220, 89, 53, 0.7) 4%, rgba(80, 25, 25, 0.65) 100%) !important;
}
.content-wrapper {
    display: flex;
    padding: 1rem;
    gap: 1.5rem;
}

.player-section {
    width: 35%;
    /* min-width: 250px; */
    position: relative;
}

.team-headers {
    /* margin-bottom: 1rem; */
}


.section-header {
    background: rgba(0, 0, 0, 0.6);
    /* background: linear-gradient(90deg, rgba(30, 60, 114, 0.95) 0%, rgba(42, 82, 152, 0.95) 100%); */
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    padding: 0.8rem 1.2rem;
    /* margin-bottom: 1rem; */
    border-radius: 8px;
    /* height: 60px; */
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
}

.section-header-2 {
    background: rgba(0, 0, 0, 0.6);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    padding: 0.8rem 1.2rem;
    margin-bottom: 1rem;
    height: 50px;
}

.player-section .section-header {
    justify-content: space-between;
    gap: 0.8rem;
    margin-bottom: 0.5rem;
}
.teamlogin .player-section .section-header {
    margin-bottom: 0;
}

.player-section .section-header .league-logo img {
    width: 80px;
    height: 80px;
    object-fit: contain;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));

}

.player-section .section-header h1 {
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    white-space: nowrap;
    text-align: center;
    margin: 0 auto;
    line-height: 1.2;
    text-transform: uppercase;
    /* Adjusts spacing between lines */
}

.player-section .section-header .sponsor-logo img {
    width: 80px;
    height: 80px;
    object-fit: contain;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
    transition: opacity 0.5s ease-in-out;
}
.login-team-info {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0.8rem 1.2rem;
    /* margin-bottom: 1rem; */
    /* background: rgba(0, 0, 0, 0.6); */
    /* border: 1px solid rgba(255, 255, 255, 0.12); */
    border-radius: 12px;
    /* box-shadow: 0 2px 10px rgba(0, 0, 0, 0.25); */
    backdrop-filter: blur(10px);
}

.login-team-logo {
    width: 60px;
    height: 60px;
    /* border-radius: 50%;
    background: #fff; */
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
    flex: 0 0 auto;
}

.login-team-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.login-team-details {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.login-team-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: rgba(255, 255, 255, 0.7);
}

.login-team-name {
    font-size: 1.2rem;
    font-weight: 700;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.login-team-shortname {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.75);
    letter-spacing: 0.08em;
}

.login-team-empty {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
}

.player-section .section-header .sponsor-logo {
    position: relative;
    overflow: hidden;
    width: 80px;
    height: 80px;
}

/* Auction Timing Container */
.auction-timing-container {
    background: rgba(0, 0, 0, 0.6);
    border-radius: 12px;
    padding: 2rem;
    position: relative;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 215, 0, 0.1);
    overflow: hidden;
    backdrop-filter: blur(10px);
    text-align: center;
    display: none;
    animation: cardAppear-main 0.6s ease-out;
}
.selfmsg{
    font-size: 10px;
    color: #d2d211;
    text-align: center;
    margin-top: 4px;
}
.auction-timing-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at top right,
            rgba(255, 215, 0, 0.05),
            transparent 60%);
    z-index: 0;
}

.timing-header h2 {
    font-size: 1.8rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 0.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    z-index: 1;
}

.auction-date {
    font-size: 1.1rem;
    color: #ffd700;
    font-weight: 600;
    margin-bottom: 2rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
    position: relative;
    z-index: 1;
    transition: all 0.3s ease;
}

.auction-date.highlighted {
    font-size: 1.4rem;
    color: yellow;
    /* background: linear-gradient(45deg, #ffd700, #ffed4e, #ffd700); */
    background-size: 200% 200%;
    /* -webkit-background-clip: text; */
    /* -webkit-text-fill-color: transparent; */
    background-clip: text;
    background: transparent;
    /* animation: shimmer 2s ease-in-out infinite; */
    /* text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7); */
    font-weight: 700;
    letter-spacing: 1px;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    border: 2px solid rgba(255, 215, 0, 0.3);
    /* box-shadow: 0 4px 15px rgba(255, 215, 0, 0.2); */
}

@keyframes shimmer {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

.countdown-timer {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
    flex-wrap: nowrap;
    position: relative;
    z-index: 1;
}

.time-unit {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 1rem;
    min-width: 80px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.time-value {
    font-size: 2.5rem;
    font-weight: 700;
    color: #ffd700;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    line-height: 1;
    margin-bottom: 0.5rem;
}

.time-label {
    font-size: 0.9rem;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

.timing-message {
    margin-top: 1rem;
    position: relative;
    z-index: 1;
}

.timing-message p {
    font-size: 1.1rem;
    color: #fff;
    font-weight: 500;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.player-card-main {
    background: rgba(0, 0, 0, 0.6);
    /* background: linear-gradient(135deg,
                rgba(30, 60, 114, 0.92),
                rgba(42, 82, 152, 0.92)); */
    border-radius: 12px;
    padding: 2rem;
    position: relative;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 215, 0, 0.1);
    overflow: hidden;
    backdrop-filter: blur(10px);
    animation: cardAppear-main 0.6s ease-out;
    scrollbar-width: thin;
    /* Firefox */
    scrollbar-color: rgba(79, 108, 171, 0.5) rgba(0, 0, 0, 0.1);
}

.player-card-main::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at top right,
            rgba(255, 215, 0, 0.05),
            transparent 60%);
    z-index: 0;
}

.player-card-main::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg,
            transparent,
            rgba(255, 255, 255, 0.1),
            transparent);
    animation: shine-main 4s infinite;
}

@keyframes cardAppear-main {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes shine-main {
    to {
        left: 200%;
    }
}

.player-header-main {
    position: relative;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 1rem;
    /* padding-left: 3.5rem;  */
    animation: slideRight-main 0.8s ease-out;
}

@keyframes slideRight-main {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.player-number-main {
    position: absolute;
    top: -35px;
    left: -35px;
    background: linear-gradient(135deg, #ffd700, #daa520);
    color: #000;
    font-size: 1.8rem;
    font-weight: bold;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    animation: scaleIn-main 0.5s ease-out 0.3s backwards;
    z-index: 2;
}

.player-number-main::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: inherit;
    border-radius: inherit;
    filter: blur(8px);
    opacity: 0.4;
    z-index: -1;
}

.player-image-main {
    width: 120px;
    height: 120px;
    border-radius: 12px;
    padding: 4px;
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.2), rgba(218, 165, 32, 0.2));
    position: relative;
    animation: fadeIn-main 0.5s ease-out 0.6s backwards;
}

.player-image-main img {
    width: 100%;
    height: 100%;
    border-radius: 8px;
    object-fit: contain;
    border: 2px solid rgba(255, 215, 0, 0.3);
    transition: transform 0.3s ease, filter 0.3s ease;
}

.player-image-main:hover img {
    transform: scale(1.05);
    filter: brightness(1.1);
}

.player-info-main {
    flex: 1;
    animation: slideUp-main 0.5s ease-out 0.9s backwards;
}

@keyframes slideUp-main {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.player-name-main {
    color: #ffd700;
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    letter-spacing: 1px;
    transition: color 0.3s ease;
}

.player-details-main p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.9rem;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    transition: transform 0.3s ease, color 0.3s ease;
    animation: fadeIn-main 0.5s ease-out calc(0.9s + var(--delay, 0s)) backwards;
}

.player-details-main p:hover {
    transform: translateX(10px);
    color: #ffd700;
}

.bid-parent-container-main {
    /* background: rgba(0, 0, 0, 0.3); */
    /* border-radius: 12px; */
    padding: 0.2rem 1rem;
    margin: 0.5rem 0;
    /* display: flex; */
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    /* border: 1px solid rgba(255, 215, 0, 0.1); */
    animation: fadeIn-main 0.5s ease-out 1.2s backwards;
    position: relative;
    /* overflow: hidden; */
}

.bid-container-main {
    background: rgba(0, 0, 0, 0.6);
    border-radius: 50px;
    padding: 0.6rem 1rem;
    margin-bottom: 0.5rem;
    /* margin: 0.5rem 0; */
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    /* border: 1px solid rgba(255, 215, 0, 0.1); */
    animation: fadeIn-main 0.5s ease-out 1.2s backwards;
    position: relative;
    overflow: hidden;
}

.base-value-container-main {
    width: 100%;
    display: flex;
    gap: 1rem;
}

.bid-parent-container-main::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    /* background: linear-gradient(90deg, transparent, rgba(255, 215, 0, 0.5), transparent); */
    animation: shimmer-main 2s infinite;
}

.bid-area-main {
    display: flex;
    justify-content: center;
    /* flex-direction: column; */
    gap: 0.5rem;
    width:100%;
}


.current-bid-main {

    /* background: linear-gradient(135deg, #ff4e50, #f9d423);
    padding: 0.5rem 2rem;
    min-height: 60px;
    border-radius: 8px; */
    padding-right: 15%;
    margin-top: 0.5rem;
    color: white;
    justify-content: center;
    text-align: center;
    animation: pulse-main 2s infinite;
    /* box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2); */
    flex: 0 0 auto;
}

.bid-label-main {
    font-size: 0.6rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 0.3rem;
    color: rgba(230, 213, 213, 0.8);
    font-weight: 600;
}

.bid-amount-main {
    font-size: 1.4rem;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    color: #d9d024;
    justify-content: center;
}

.bid-divider-main {
    width: 2px;
    height: 50px;
    background: linear-gradient(to bottom, transparent, rgba(255, 215, 0, 0.3), transparent);
    /* margin: 0 1rem; */
}

.bidding-team-main {
    display: flex;
    /* flex-direction: column; */
    gap: 0.5rem;
    align-items: center;
    /* padding-right: 0.5rem; */
    /* gap: 0.8rem; */
    /* padding: 1rem 1.5rem; */
    /* border-radius: 12px; */
    /* background: rgba(255, 255, 255, 0.1); */
    /* border: 1px solid rgba(255, 255, 255, 0.1); */
    transition: all 0.3s ease;
    /* flex: 1; */
    justify-content: center;
}

/* .bidding-team-main:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
} */

.team-logo-main {
    width: 45px;
    height: 45px;
    padding: 2px;
    background: white;
    /* border-radius: 50%; */
    /* border-radius: 50%; */
    transition: transform 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.team-logo-main:hover {
    transform: rotate(10deg);
}

.team-name-main {
    text-align: center;
    position: relative;
    padding: 2px 0;
    /* margin-top: 10px; */
}

.team-text {
    font-family: 'Arial', sans-serif;
    font-weight: 700;
    font-size: 1rem;
    letter-spacing: 2px;

    background: linear-gradient(45deg, #aab732, #b68a11);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-transform: uppercase;
    position: relative;
}

.team-name-underline {
    height: 2px;
    width: 50%;
    background: linear-gradient(90deg, transparent, #b89f32, transparent);
    margin: 5px auto 0;
}

.team-name-main:hover .team-name-underline {
    width: 80%;
    transition: width 0.3s ease;
}

.player-category {
    /* position: absolute;
    top: 10px;
    right: 10px; */
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    text-align: center;
    padding: 5px 10px;
    border-radius: 40%;
    margin-bottom: 1rem !important;
    background: linear-gradient(to right, #C0C0C0, #808080);

}

.player-info {
    text-align: left;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.player-info h2 {
    color: #ffd700;
    font-size: 1.8rem;
    margin-bottom: 0.8rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    letter-spacing: 1px;
}

.player-info p {
    color: rgba(255, 255, 255, 0.9);
    margin: 0.4rem 0;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.player-info p:hover {
    color: #ffd700;
}

.text-center {
    text-align: center;
}

.teams-section {
    flex: 1;
    display: flex;
    flex-direction: column;
    width: 65%;
    /* height: calc(100vh - 2rem); */
    /* Account for padding */
}

.teams-section .section-header {
    padding: 0.4rem 1.2rem;
    margin-bottom: .4rem;
}

.tab-navigation {
    display: flex;
    gap: 0.5rem;
    background: rgba(0, 0, 0, 0.3);
    padding: 0.4rem;
    border-radius: 30px;
    margin-right: 2rem;
}

.tab-navigation a {
    text-decoration: none;
    color: rgba(255, 255, 255, 0.8);
    font-size: 1rem;
    font-weight: 600;
    padding: 0.6rem 2rem;
    border-radius: 25px;
    transition: all 0.3s ease;
    letter-spacing: 1px;
}

.tab-navigation a:hover {
    color: white;
    background: rgba(255, 255, 255, 0.1);
    /* transform: translateY(-1px); */
}

.tab-navigation a.active {
    background: linear-gradient(135deg, #e17a31, #f2eb33);
    color: white;
    box-shadow: 0 2px 8px rgba(30, 144, 255, 0.3);
}

.teams-grid {
    /* height: 75vh; */
    overflow-y: auto;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.8rem;
    overflow-y: auto;
    padding-right: 8px;
    /* Add padding for scrollbar */

    /* Modern scrollbar styling */
    scrollbar-width: thin;
    /* Firefox */
    scrollbar-color: rgba(79, 108, 171, 0.5) rgba(0, 0, 0, 0.1);
    /* Firefox */
}

/* Ensure team cards maintain equal width */
.teams-grid .team-card {
    width: 100%;
    min-width: 0; /* Allow flex items to shrink */
}

/* Webkit (Chrome, Safari, Edge) scrollbar styling */
.teams-grid::-webkit-scrollbar {
    width: 6px;
}

.teams-grid::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.1);
    border-radius: 10px;
}

.teams-grid::-webkit-scrollbar-thumb {
    background: rgba(255, 215, 0, 0.5);
    border-radius: 10px;
}

.teams-grid::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 215, 0, 0.7);
}
.bid-info .unit{
    font-size: 0.9rem;
    opacity: 0.7;
}
.bid-item .value{
    font-size: 1.2rem;
}
.normal-cards {
    .team-card {
        display: flex;
        align-items: stretch;
        background: rgba(0, 0, 0, 0.5);
        /* background: linear-gradient(135deg, #1e3c72, #2a5298); */
        padding: 0.3rem;
        border-radius: 8px;
        box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
        cursor: pointer;
    }

    .team-logo {
        height: auto;
        width: 25%;
        object-fit: contain;
    }

    .team-details {
        flex: 1;
        padding: 10px;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        min-width: 0; /* Allow flex item to shrink */
        overflow: hidden; /* Prevent content from breaking layout */
    }
   

    .team-details h3 {
        font-size: 1rem;
        font-weight: 600;
        word-wrap: break-word;
        word-break: break-word;
        line-height: 1.2;
        /* min-height: 2.4em; Ensure consistent height for 2 lines */
        display: -webkit-box;
        -webkit-line-clamp: 2;
        line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
        margin-bottom: 8px;
    }

    .team-identity {
        display: flex;
        align-items: center;
        height: 100%;
    }

    .team-identity img {
        height: 100%;
        width: auto;
        object-fit: contain;
    }

    .bid-info {
        display: flex;
        flex-direction: column;
        gap: 8px;
    }

    .bid-flex {
        display: flex;
        /* flex-wrap: wrap; */
        justify-content: space-between;
        gap: 8px;
    }

    .bid-item span {
        font-weight: bold;
    }

    .bid-item.current-bid {
        font-size: 1.8rem;
        font-weight: bold;
        color: #ffd700;
        line-height: 1;
    }

    .bid-item.max-bid {
        color: rgba(255, 255, 255, 0.9);
        font-size: 1.5rem;
    }

    .bid-item.total {
        font-size: 2rem;
        color: #ffd700;
        line-height: 1;
    }

    .bid-item .label {
        font-size: 1rem;
    }

    .bid-item.reserve {
        color: #4CAF50;
        font-size: 1.4rem;
    }

    .bid-item.value {
        font-size: 1.2em;
        font-weight: bold;
    }
}

.small-cards {
    .team-card {
        display: flex;
        align-items: stretch;
        background: rgba(0, 0, 0, 0.5);
        /* background: linear-gradient(135deg, #1e3c72, #2a5298); */
        padding: 0.3rem;
        border-radius: 8px;
        box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
        cursor: pointer;
    }

    .team-logo {
        height: auto;
        width: 20%;
        object-fit: contain;
    }

    .team-details {
        flex: 1;
        padding: 10px;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        min-width: 0; /* Allow flex item to shrink */
        overflow: hidden; /* Prevent content from breaking layout */
    }

    .team-details h3 {
        font-size: 1rem;
        font-weight: 600;
        word-wrap: break-word;
        word-break: break-word;
        line-height: 1.2;
        /* min-height: 2.4em; Ensure consistent height for 2 lines */
        display: -webkit-box;
        -webkit-line-clamp: 2;
        line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
        margin-bottom: 8px;
    }

    .team-identity {
        display: flex;
        align-items: center;
        height: 100%;
    }

    .team-identity img {
        height: 100%;
        width: auto;
        object-fit: contain;
    }

    .bid-info {
        display: flex;
        flex-direction: column;
        gap: 6px;
    }

    .bid-flex {
        display: flex;
        /* flex-wrap: wrap; */
        justify-content: space-between;
        gap: 6px;
    }

    .bid-item span {
        font-weight: bold;
    }

    .bid-item.current-bid {
        font-size: 1.5rem;
        font-weight: bold;
        color: #ffd700;
        line-height: 1;
    }

    .bid-item.max-bid {
        color: rgba(255, 255, 255, 0.9);
        font-size: 1.2rem;
    }

    .bid-item.total {
        font-size: 1.5rem;
        color: #ffd700;
        line-height: 1;
    }

    .bid-item .label {
        font-size: 0.8rem;
    }

    .bid-item.reserve {
        color: #4CAF50;
        font-size: 1.2rem;
    }

    .bid-item.value {
        font-size: 1.2em;
        font-weight: bold;
    }
}

.xsmall-cards {
    .team-card {
        display: flex;
        align-items: stretch;
        background: rgba(0, 0, 0, 0.5);
        /* background: linear-gradient(135deg, #1e3c72, #2a5298); */
        padding: 0.3rem;
        border-radius: 8px;
        box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
        cursor: pointer;
    }

    .team-logo {
        height: auto;
        width: 17%;
        object-fit: contain;
    }

    .team-details {
        flex: 1;
        padding: 5px 10px;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        min-width: 0; /* Allow flex item to shrink */
        overflow: hidden; /* Prevent content from breaking layout */
    }

    .team-details h3 {
        font-size: 1.1rem;
        font-weight: 600;
        word-wrap: break-word;
        word-break: break-word;
        line-height: 1.2;
        /* min-height: 2.4em; Ensure consistent height for 2 lines */
        display: -webkit-box;
        -webkit-line-clamp: 2;
        line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
        margin-bottom: 8px;
    }

    .team-identity {
        display: flex;
        align-items: center;
        height: 100%;
    }

    .team-identity img {
        height: 100%;
        width: auto;
        object-fit: contain;
    }

    .bid-info {
        display: flex;
        flex-direction: column;
        gap: 2px;
    }

    .bid-flex {
        display: flex;
        /* flex-wrap: wrap; */
        justify-content: space-between;
        gap: 2px;
    }

    .bid-item span {
        font-weight: bold;
    }

    .bid-item.current-bid {
        font-size: 1rem;
        font-weight: bold;
        color: #ffd700;
        line-height: 1;
    }

    .bid-item.max-bid {
        color: rgba(255, 255, 255, 0.9);
        font-size: 1rem;
    }

    .bid-item.total {
        font-size: 1.1rem;
        color: #ffd700;
        line-height: 1;
    }

    .bid-item .label {
        font-size: 0.8rem;
    }

    .bid-item.reserve {
        color: #4CAF50;
        font-size: 1rem;
    }

    .bid-item.value {
        font-size: 0.9rem;
        font-weight: bold;
    }
}

.xxsmall-cards {
    .team-card {
        display: flex;
        align-items: stretch;
        background: rgba(0, 0, 0, 0.5);
        /* background: linear-gradient(135deg, #1e3c72, #2a5298); */
        padding: 0.3rem;
        border-radius: 8px;
        box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
        cursor: pointer;
    }

    .team-logo {
        height: auto;
        width: 14%;
        object-fit: contain;
    }

    .team-details {
        flex: 1;
        padding: 5px 10px;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        min-width: 0; /* Allow flex item to shrink */
        overflow: hidden; /* Prevent content from breaking layout */
    }

    .team-details h3 {
        font-size: 1.1rem;
        font-weight: 600;
        word-wrap: break-word;
        word-break: break-word;
        line-height: 1.2;
        /* min-height: 2.4em; Ensure consistent height for 2 lines */
        display: -webkit-box;
        -webkit-line-clamp: 2;
        line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
        margin-bottom: 8px;
    }

    .team-identity {
        display: flex;
        align-items: center;
        height: 100%;
    }

    .team-identity img {
        height: 100%;
        width: auto;
        object-fit: contain;
    }

    .bid-info {
        display: flex;
        flex-direction: column;
        gap: 2px;
    }

    .bid-flex {
        display: flex;
        /* flex-wrap: wrap; */
        justify-content: space-between;
        gap: 2px;
    }

    .bid-item span {
        font-weight: bold;
    }

    .bid-item.current-bid {
        font-size: 1rem;
        font-weight: bold;
        color: #ffd700;
        line-height: 1;
    }

    .bid-item.max-bid {
        color: rgba(255, 255, 255, 0.9);
        font-size: 1rem;
    }

    .bid-item.total {
        font-size: 1.1rem;
        color: #ffd700;
        line-height: 1;
    }

    .bid-item .label {
        font-size: 0.8rem;
    }

    .bid-item.reserve {
        color: #4CAF50;
        font-size: 1rem;
    }

    .bid-item.value {
        font-size: 0.9rem;
        font-weight: bold;
    }
}

.sound-control {
    /* margin-left: 1rem; */
    font-size: 1.2rem;
    cursor: pointer;
    color: rgba(255, 255, 255, 0.8);
    transition: color 0.2s ease;
    display: flex;
    align-items: center;
}

.sound-control:hover {
    color: #ffd700;
}

.header-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.stats {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-direction: row;
}

.stat-item {
    background: rgba(0, 0, 0, 0.4);
    padding: 0.4rem 0.7rem;
    border-radius: 20px;
    font-size: 0.9rem;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.stat-item.unsold-stat{
    background: #ff4757;
    color: white;
    /* color: #ff4757; */
}
.stat-item.sold-stat{
    background: #128240;
    color: white;
    /* color: #2ed573; */
}
.stat-item.avl-stat{
    background: linear-gradient(135deg, #e17a31, #a5a004);
    color: white;
    /* color: #ffd700; */
}

.stat-item span {
    font-weight: bold;
    /* color: #ffd700; */
    color: white;
}

.ribbon {
    background: linear-gradient(135deg, #ff4e50, #f9d423);
    padding: 0.8rem 1.2rem;
    border-radius: 8px;
    margin-top: 1rem;
    animation: pulse 2s infinite;
}

.ribbon-amount {
    font-size: 1.5rem;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.02);
    }

    100% {
        transform: scale(1);
    }
}

.left-controls {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.sound-control {
    cursor: pointer;
    padding: 5px;
}

.sound-control i {
    font-size: 1.2rem;
}

.players-grid {
    max-height: 75vh;
    overflow-y: auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.8rem;
    padding: 0.8rem;

    /* Thin scrollbar for Webkit browsers */
    scrollbar-width: thin; /* Firefox */
    scrollbar-color: rgba(91, 132, 221, 0.5) rgba(0, 0, 0, 0.1); /* Firefox */
}
/* body.act_56357 .players-grid {
    grid-template-columns: repeat(2, 1fr);
} */
.players-grid::-webkit-scrollbar {
    width: 6px;
}
.players-grid::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.1);
    border-radius: 10px;
}
.players-grid::-webkit-scrollbar-thumb {
    background: rgba(87, 162, 233, 0.5);
    border-radius: 10px;
}
.players-grid::-webkit-scrollbar-thumb:hover {
    background: rgba(70, 158, 231, 0.7);
}

.player-list-card {
    display: flex;
    gap: 0.8rem;
    padding: 0.8rem 0.4rem;
    /* padding-left: 1.2rem; */
    background: rgba(0, 0, 0, 0.5);
    /* background: linear-gradient(135deg, rgba(30, 60, 114, 0.95), rgba(42, 82, 152, 0.95)); */
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    position: relative;
    overflow: hidden;
    height: 130px;
}

/* Add image container */
.player-image-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.player-list-card img {
    width: 75px;
    height: 75px;
    border-radius: 4px;
    object-fit: contain;
    border: 2px solid rgba(255, 215, 0, 0.3);
}

.player-list-details {
    flex: 1;
    display: flex;
    flex-direction: column;
    max-height: 95px;
    /* Adjusted to match new card height */
}

.player-list-details h3 {
    margin: 0 0 0.2rem 0;
    font-size: 0.90rem;
    color: #ffd700;
    font-weight: 600;
    letter-spacing: 0.5px;
    /* padding-right: 60px; */
}

.details-scroll {
    overflow-y: auto;
    padding-right: 8px;
    margin-right: -4px;

    /* Modern scrollbar styling */
    &::-webkit-scrollbar {
        width: 2px;
        /* Made thinner */
        height: 2px;
    }

    &::-webkit-scrollbar-track {
        background: transparent;
        margin: 4px 0;
    }

    &::-webkit-scrollbar-thumb {
        background: rgba(255, 255, 255, 0.15);
        border-radius: 50px;
        transition: background 0.2s ease;
        cursor: pointer;
    }

    /* &::-webkit-scrollbar-thumb:hover {
        background: rgba(255, 215, 0, 0.3);
    } */

    &:hover::-webkit-scrollbar-thumb {
        background: rgba(255, 255, 255, 0.25);
    }

    /* Firefox */
    scrollbar-width: thin;
    /* scrollbar-color: rgba(255, 255, 255, 0.15) transparent; */
    scrollbar-color: rgb(76 93 163 / 15%) transparent;

    /* &:hover {
        scrollbar-color: rgba(255, 215, 0, 0.3) transparent;
    } */
}

.detail-item {
    margin: 0.1rem 0;
    font-size: 0.7rem;
    /* Slightly increased font size */
    color: rgba(255, 255, 255, 0.9);
}

.player-list-meta {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.4rem;
    flex-wrap: wrap;
}

.player-list-meta span {
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.7);
    background: rgba(0, 0, 0, 0.2);
    padding: 0.1rem 0.5rem;
    border-radius: 8px;
}

.player-list-status {
    position: absolute;
    top: 0.4rem;
    right: 0.4rem;
    font-size: 0.7rem;
    padding: 0.1rem 0.5rem;
    border-radius: 8px;
}

.status-available {
    background: rgba(46, 213, 115, 0.2);
    color: #2ed573;
}

.status-sold {
    background: rgba(255, 71, 87, 0.2);
    color: #ff4757;
}

.player-category-indicator {
    position: absolute;
    top: 0;
    left: 0;
    width: 3px;
    height: 100%;
}

.category-platinum-indicator {
    background: linear-gradient(to bottom, #e5e4e2, #b4b4b4);
}

.category-gold-indicator {
    background: linear-gradient(to bottom, #ffd700, #daa520);
}

.category-silver-indicator {
    background: linear-gradient(to bottom, #c0c0c0, #808080);
}

.team-sub-header,
.player-sub-header {
    width: 100%;
}

.player-sub-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 0 4px;
}

.selected-team-title {
    font-weight: bold;
    font-size: 1.2em;
}

.tab-navigation a {
    cursor: pointer;
    text-decoration: none;
    color: inherit;
}

/* .tab-navigation a.active {
    color: #007bff;
    border-bottom: 2px solid #007bff;
} */

.teams-controls,
.players-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.filter-buttons {
    display: flex;
    gap: 1rem;
}

.filter-btn {
    padding: 0.5rem 1rem;
    border: none;
    background: #f0f0f0;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 500;
}

.filter-btn.active {
    background: #007bff;
    color: white;
}
.avl-filter.active {
    background: linear-gradient(135deg, #e17a31, #f2eb33) !important;
    color: white;
}
.sold-filter.active {
    background: #128240 !important;
    color: white;
}
.unsold-filter.active {
    background: #ff4757 !important;
    color: white;
}

.sort-select {
    padding: 0.5rem;
    border-radius: 4px;
    border: 1px solid #ddd;
    cursor: pointer;
}

.sort-options {
    margin-left: auto;
}

.player-filters {
    display: none;
    gap: 10px;
    align-items: center;
    margin-left: auto;
    flex-wrap: nowrap;
}

.player-count-display {
    display: flex;
    align-items: center;
    /* margin-right: 1rem; */
    padding: 0.5rem 10px;
    border-radius: 6px;
}

.player-count-label {
    font-size: 0.9rem;
    color: #fff;
    font-weight: 500;
}

.player-count-value {
    font-size: 1.1rem;
    color: #ffd700;
    font-weight: 700;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.filter-btn {
    padding: 6px 16px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    background: transparent;
    color: rgba(255, 255, 255, 0.7);
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.3px;
}

.filter-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

.filter-btn.active {
    background: linear-gradient(135deg, #2c3e50, #3498db);
    color: white;
    border-color: rgba(255, 255, 255, 0.3);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

/* .filter-btn.active:hover {
    background: linear-gradient(135deg, #daa520, #ffd700);
    transform: translateY(-1px);
} */

/* Make sure header-controls can accommodate both stats and filters */
.header-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.sort-by {
    /* margin-left: 20px; */
    position: relative;
}

.sort-by select {
    padding: 8px 35px 8px 20px;
    border: 1px solid rgba(255, 215, 0, 0.3);
    border-radius: 20px;
    background: rgba(0, 0, 0, 0.4);
    color: rgba(255, 255, 255, 0.9);
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 600;
    min-width: 140px;
    appearance: none;
    -webkit-appearance: none;
    transition: all 0.3s ease;
}

.sort-by::after {
    content: '▼';
    font-size: 0.8rem;
    color: rgba(255, 215, 0, 0.8);
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
}

.sort-by select:hover {
    background: rgba(0, 0, 0, 0.5);
    border-color: rgba(255, 215, 0, 0.5);
}

.sort-by select:focus {
    outline: none;
    border-color: #ffd700;
    box-shadow: 0 0 0 2px rgba(255, 215, 0, 0.2);
}

/* Style the dropdown options */
.sort-by select option {
    background: #1e3c72;
    color: white;
    padding: 10px;
}

.category-filters {
    display: flex;
    gap: 8px;
    align-items: center;
    padding: 0 15px;
    width: 100%;
    overflow-x: auto;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none;  /* IE and Edge */
}
.category-filters::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
}


.category-btn {
    flex:none;
    padding: 5px 14px;
    border: none;
    border-radius: 4px;
    background: rgba(0, 0, 0, 0.2);
    color: rgba(255, 255, 255, 0.8);
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.5px;
}

.category-btn:hover {
    background: rgba(0, 0, 0, 0.3);
}

.category-btn.active {
    background: linear-gradient(135deg, #ffd700, #daa520);
    color: #000;
    border: none;
    box-shadow: 0 2px 8px rgba(255, 215, 0, 0.3);
}

.category-btn[data-category="platinum"].active {
    background: linear-gradient(135deg, #e5e4e2, #b4b4b4);
    color: #000;
    border: none;
}

.category-btn[data-category="gold"].active {
    background: linear-gradient(135deg, #ffd700, #daa520);
    color: #000;
    border: none;
}

.category-btn[data-category="silver"].active {
    background: linear-gradient(135deg, #c0c0c0, #808080);
    color: #000;
    border: none;
}

.category-btn[data-category="all"].active {
    background: linear-gradient(135deg, #2c3e50, #3498db);
    color: white;
}

.player-list-number {
    position: absolute;
    top: 10%;
    left: 0;
    transform: translateY(-50%);
    background: linear-gradient(135deg, #ffd700, #daa520);
    color: #000;
    font-size: 0.7rem;
    font-weight: bold;
    padding: 0.3rem 0.5rem;
    border-radius: 0 4px 4px 0;
    box-shadow: 2px 0 4px rgba(0, 0, 0, 0.1);
    z-index: 1;
}

.player-list-owner-tag {
    position: absolute;
    top: 0;
    right: 0;
    background: linear-gradient(135deg, #ff4e50, #f9d423);
    color: white;
    font-size: 0.6rem;
    font-weight: bold;
    padding: 0.1rem 0.6rem;
    border-radius: 0 8px 0 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: -2px 2px 4px rgba(0, 0, 0, 0.2);
}

.player-main-category-tag {
    display: none;
    position: absolute;
    top: 0;
    right: 0;
    background: linear-gradient(135deg, #ff4e50, #f9d423);
    color: white;
    font-size: 0.7rem;
    font-weight: bold;
    padding: 0.2rem 0.6rem;
    border-radius: 0 8px 0 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: -2px 2px 4px rgba(0, 0, 0, 0.2);
}

/* Adjust status position when owner tag is present */
.player-list-card.has-owner .player-list-status {
    top: 1.8rem;
}

/* Player status indicators */
.player-status-indicator {
    position: absolute;
    top: 0;
    left: 0;
    width: 3px;
    height: 100%;
}

.status-available-indicator {
    background: linear-gradient(to bottom, #2ed573, #7bed9f);
    /* Green gradient for available */
}

.status-sold-indicator {
    color: #fff;
    background: linear-gradient(to bottom, #26c143, #196304);
    /* Red gradient for sold */
}

.status-unsold-indicator {
    color: #fff;
    background: linear-gradient(to bottom, #dc5935, #8b3a19);
    /* Red gradient for sold */
}

.team-strip {
    position: absolute;
    display: flex;
    justify-content: space-between;
    align-items: center;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(90deg, rgb(26 94 18 / 90%), rgb(17 46 12 / 90%));    /* CSK colors */
    color: white;
    padding: 4px 8px;
    font-size: 0.75rem;
    font-weight: 600;
    text-align: center;
    border-radius: 0 0 8px 8px;
    letter-spacing: 0.5px;
}

/* Normal player card bottom strip */
.player-strip {
    position: absolute;
    display: flex;
    justify-content: center;
    align-items: center;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgb(16 33 60 / 70%);
    /* Slightly lighter version of card background */
    color: rgba(255, 255, 255, 0.8);
    padding: 11px 8px;
    font-size: 0.7rem;
    font-weight: 500;
    text-align: center;
    border-radius: 0 0 8px 8px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}
.player-unsold-strip {
    position: absolute;
    display: flex;
    justify-content: center;
    align-items: center;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgb(115 35 15 / 70%);
    /* Slightly lighter version of card background */
    color: rgba(255, 255, 255, 0.8);
    padding: 4px 8px;
    font-size: 0.7rem;
    font-weight: 500;
    text-align: center;
    border-radius: 0 0 8px 8px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

/* Adjust details bottom margin to accommodate strip */
/* .player-list-card.has-team .player-list-details {
    margin-bottom: 15px;
} */

.player-category-label {
    font-size: 0.65rem;
    color: rgba(255, 255, 255, 0.8);
    padding: 2px 0;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
    text-align: center;
    white-space: nowrap;
}

.category-platinum {
    background: linear-gradient(90deg, rgba(229, 228, 226, 0.2), rgba(180, 180, 180, 0.2));
    color: #e5e4e2;
}

.category-gold {
    /* background: linear-gradient(90deg, rgba(255, 215, 0, 0.2), rgba(218, 165, 32, 0.2)); */
    color: #ffd700;
    font-size: 0.55rem;
}

.category-silver {
    background: linear-gradient(90deg, rgba(192, 192, 192, 0.2), rgba(128, 128, 128, 0.2));
    color: #c0c0c0;
}

@keyframes fadeIn-main {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes pulse-main {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.03);
    }

    100% {
        transform: scale(1);
    }
}

.bid-up-button {
    /* width: 100%; */
    display: none;
    padding: 10px;
    /* margin-top: 10px;
    margin-bottom: 10px; */
    background: linear-gradient(45deg, #11bd39, #0e7b27);
    border: none;
    border-radius: 8px 30px 30px 8px;
    color: white;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 6px rgba(17, 189, 57, 0.2),
        0 1px 3px rgba(14, 123, 39, 0.3),
        inset 0 1px rgba(255, 255, 255, 0.2);
    position: relative;
    overflow: hidden;
}

.bid-up-button.inactive {
    background: linear-gradient(45deg, #a0a0a0, #6e6e6e);
    cursor: not-allowed;
    box-shadow: 0 4px 6px rgba(160, 160, 160, 0.2),
        0 1px 3px rgba(110, 110, 110, 0.3),
        inset 0 1px rgba(255, 255, 255, 0.1);
}

.bid-up-button.inactive:hover {
    transform: none;
    box-shadow: 0 4px 6px rgba(160, 160, 160, 0.2),
        0 1px 3px rgba(110, 110, 110, 0.3),
        inset 0 1px rgba(255, 255, 255, 0.1);
    background: linear-gradient(45deg, #a0a0a0, #6e6e6e);
}

.bid-up-button:before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg,
            transparent,
            rgba(255, 255, 255, 0.2),
            transparent);
    transition: 0.5s;
}

.bid-up-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 7px 14px rgba(17, 189, 57, 0.25),
        0 3px 6px rgba(14, 123, 39, 0.35),
        inset 0 2px rgba(255, 255, 255, 0.2);
    background: linear-gradient(45deg, #12ce3e, #0f8c2c);
}

.bid-up-button:hover:before {
    left: 100%;
}

.bid-up-button:active {
    transform: translateY(1px);
    box-shadow: 0 2px 4px rgba(17, 189, 57, 0.2),
        0 1px 2px rgba(14, 123, 39, 0.3),
        inset 0 1px rgba(255, 255, 255, 0.1);
}

.bid-up-icon {
    font-size: 1.2rem;
    font-weight: bold;
}

.bid-up-text {
    letter-spacing: 1px;
}

.player-image-main {
    position: relative;
}

.base-value-container {
    position: absolute;
    display: flex;
    gap: .3rem;
    align-items: center;
    justify-content: space-between;
    top: 0;
    width: 30%;
    right: 0;
    /* transform: translateX(-50%); */
    /* background: linear-gradient(135deg, #a7b029, #aa8f24); */
    background: linear-gradient(135deg, #ffd700, #daa520);
    padding: 2px 15px;
    border-radius: 0 0 0 5px;
    box-shadow: 0 2px 4px rgba(187, 183, 183, 0.2);
    text-align: center;
    /* min-width: 120px; */
}

.base-value-label {
    display: block;
    color: black;
    font-size: 0.7em;
    text-transform: uppercase;
}

.base-value-amount {
    display: block;
    color: black;
    font-weight: bold;
    font-size: .7em;
}

.floating-team-bid-btn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: linear-gradient(45deg, #e74c3c, #c0392b);
    color: white;
    padding: 12px 24px;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1rem;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    z-index: 1000;
}

.floating-team-bid-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    background: linear-gradient(45deg, #f85a4a, #d44736);
}

.floating-team-bid-btn:active {
    transform: translateY(1px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.floating-no-team-btn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: linear-gradient(45deg, #e74c3c, #c0392b);
    color: white;
    padding: 12px 24px;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1rem;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    z-index: 1000;
}

.floating-no-team-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    background: linear-gradient(45deg, #f85a4a, #d44736);
}

.floating-no-team-btn:active {
    transform: translateY(1px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.floating-no-team-btn i {
    font-size: 1.2rem;
}

.hammer-icon-main {
    width: 50px;
    height: 50px;
    margin-right: 5px;
    object-fit: contain;
    transform-origin: center;
    animation: hammerRotate 8s linear infinite;
    /* filter: grayscale(40%) brightness(80%) contrast(90%); */
    opacity: 0.9;
}

@keyframes hammerRotate {
    from {
        transform: rotateY(0deg);
    }

    to {
        transform: rotateY(360deg);
    }
}

.bidding-image {
    transition: all 0.3s ease;
}

.loading-dots {
    display: flex;
    color: white;
    text-align: center;
    justify-content: center;
    font-size: 36px;
    letter-spacing: 6px;
    margin-top: 0.6rem;
}

.loading-dots span {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: white;
    margin: 0 4px;
}

.loading-dots span:nth-child(1) {
    animation: fade 1s infinite 0s;
}

.loading-dots span:nth-child(2) {
    animation: fade 1s infinite 0.2s;
}

.loading-dots span:nth-child(3) {
    animation: fade 1s infinite 0.4s;
}

@keyframes fade {

    0%,
    100% {
        opacity: 0.2;
    }

    50% {
        opacity: 1;
    }
}

.floating-bid-value-btn {
    position: fixed;
    bottom: 100px;
    /* Position above the No Team Bid button */
    right: 20px;
    padding: 12px 24px;
    border: none;
    border-radius: 30px;
    background: linear-gradient(45deg, #3498db, #2980b9);
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.floating-bid-value-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.floating-bid-value-btn.active {
    background: linear-gradient(45deg, #2ecc71, #27ae60);
}

.floating-sold-btn {
    position: fixed;
    bottom: 180px;
    /* Position above other floating buttons */
    right: 20px;
    padding: 12px 24px;
    border: none;
    border-radius: 30px;
    background: linear-gradient(45deg, #f1c40f, #f39c12);
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    z-index: 1000;
}

.floating-sold-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.bid-parent-container-main.sold {
    /* background: linear-gradient(135deg, rgba(46, 204, 113, 0.85), rgba(39, 174, 96, 0.85)); */
    animation: celebrateSold 0.5s ease-out;
    border: 2px solid rgb(54 237 105 / 100%);
    padding: 0.4rem;
    border-radius: 9px;
    box-shadow: rgb(19 220 105 / 20%) 0px 2px 8px;
}

.sold-content {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.5s ease-out;
    position: relative;
}

.sold-team-info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 0.6rem;
    border-radius: 9px;
    background: rgb(16 167 67 / 25%);
    width: 100%;
}

.sold-to-label {
    position: absolute;
    top: 3px;
    left: 14%;
    transform: translateX(-50%);
    background: rgb(16 167 67 / 25%);
    /* background: linear-gradient(135deg, #f1c40f, #f39c12); */
    color: white;
    padding: 1px 8px;
    border-radius: 2px;
    font-size: 0.6rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    border:1px solid rgb(54 237 105 / 20%);
}

.sold-team-logo {
    width: 30px;
    height: 30px;
    object-fit: contain;
    background: white;
    padding: 3px;
    border-radius: 50%;
}

.sold-team-name {
    font-size: 0.7rem;
    color: white;
    font-weight: bold;
    margin-bottom: 0.1rem;
}

.sold-bid-amount {
    font-size: 0.9rem;
    color: #ffd700;
    font-weight: bold;
}
.sold-bid-amount .sold-bid-amount-unit{
    font-size: 1.4rem;
    opacity: 0.8;
}

@keyframes celebrateSold {
    0% {
        transform: scale(0.95);
        opacity: 0;
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.sold-header {
    margin-bottom: 1.5rem;
}

.sold-title {
    font-size: 2rem;
    font-weight: bold;
    color: #fff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    letter-spacing: 2px;
}

.sold-team-info {
    display: flex;
    align-items: center;
    justify-content: start;
    gap: 1.5rem;
    /* background: rgba(255, 255, 255, 0.1); */
    padding: 1rem;
    border-radius: 12px;
    /* box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1); */
}

.sold-team-logo {
    width: 80px;
    height: 80px;
    object-fit: contain;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
    animation: scaleIn 0.5s ease-out 0.2s backwards;
}

.sold-team-details {
    text-align: left;
}

.sold-team-name {
    font-size: 1.5rem;
    color: #fff;
    margin-bottom: 0.5rem;
    font-weight: bold;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    animation: slideRight 0.5s ease-out 0.4s backwards;
}

.sold-bid-amount {
    font-size: 1.8rem;
    color: #ffd700;
    font-weight: bold;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    animation: slideRight 0.5s ease-out 0.6s backwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes scaleIn {
    from {
        transform: scale(0);
    }

    to {
        transform: scale(1);
    }
}

@keyframes slideRight {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.floating-new-player-btn {
    position: fixed;
    bottom: 20px;
    right: 320px;
    padding: 12px 20px;
    border: none;
    border-radius: 25px;
    background: linear-gradient(45deg, #3498db, #2980b9);
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 16px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.floating-new-player-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 8px rgba(0, 0, 0, 0.2);
}

.floating-new-player-btn:active {
    transform: translateY(0);
}

.floating-new-player-btn i {
    font-size: 18px;
}

.floating-new-player-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.floating-unsold-btn {
    position: fixed;
    bottom: 20px;
    right: 280px;
    /* Adjust position as needed */
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    background: linear-gradient(45deg, #95a5a6, #7f8c8d);
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    z-index: 1000;
    transition: all 0.3s ease;
}

.floating-unsold-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.bid-container-main.unsold {
    background: rgba(221, 21, 10, 0.7);
    position: relative;
}

.unsold-stamp {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(-20deg);
    width: 200px;
    /* Adjust size as needed */
    height: auto;
    opacity: 0.8;
    pointer-events: none;
    z-index: 10;
}

.floating-load-again-btn {
    position: fixed;
    bottom: 20px;
    right: 460px;
    /* Positioned after the new player button */
    padding: 12px 20px;
    border: none;
    border-radius: 25px;
    background: linear-gradient(45deg, #9b59b6, #8e44ad);
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 16px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.floating-load-again-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 8px rgba(0, 0, 0, 0.2);
}

.floating-load-again-btn:active {
    transform: translateY(0);
}

.floating-load-again-btn i {
    font-size: 18px;
}

.player-category-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: bold;
    color: white;
    background: linear-gradient(45deg, #FFD700, #FFA500);
    /* Gold gradient */
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    z-index: 1;
}

/* Different category colors */
.player-category-badge.gold {
    background: linear-gradient(45deg, #FFD700, #FFA500);
}

.player-category-badge.silver {
    background: linear-gradient(45deg, #C0C0C0, #A9A9A9);
}

.player-category-badge.platinum {
    background: linear-gradient(45deg, #E5E4E2, #B4B4B4);
}

.players-list-view {
    display: none;
    height: 70vh;
    background: linear-gradient(135deg, rgba(30, 60, 114, 0.95), rgba(42, 82, 152, 0.95));
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    width: 62vw;
    overflow: auto;

    .list-view-header {
        display: grid;
        grid-template-columns: 40px 220px 150px 220px 100px;  /* Fixed widths for each column */
        min-width: max-content;
        background: linear-gradient(135deg, #172d50, #0c1b30);
        padding: 0 20px;
        position: sticky;
        top: 0;
        z-index: 10;
        height: 40px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .header-cell {
        display: flex;
        align-items: center;
        justify-content: center;
        color: rgba(137, 175, 218, 0.9);
        font-size: 0.85rem;
        font-weight: 600;
        letter-spacing: 1.5px;
        text-transform: uppercase;
        padding: 0 10px;
    }

    .list-view-body {
        overflow: visible;
        padding: 15px;
        min-width: max-content;
    }

    .player-row {
        display: grid;
        grid-template-columns: 40px 220px 150px 220px 100px; /* Match header columns */
        padding: 5px 20px;
        align-items: center;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
        transition: all 0.3s ease;
        background: rgba(255, 255, 255, 0.03);
        margin-bottom: 10px;
        border-radius: 10px;
        backdrop-filter: blur(10px);
    }

    .player-row:hover {
        background: rgba(255, 255, 255, 0.07);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    }

    .cell {
        display: flex;
        align-items: center;
        padding: 0 10px;
        border-right: 3px solid rgb(151, 161, 223, 0.5);
        height: 30px;
    }

    .cell.pno {
        justify-content: flex-start;
        gap: 10px;
        color: #ffd700;
        font-weight: 700;
        font-size: 1.1rem;
    }

    .cell.name {
        justify-content: flex-start;
    }

    .cell.category, 
    .cell.specification,
    .cell.points {
        justify-content: center;
    }

    .player-status {
        width: 4px;
        height: 30px;
        border-radius: 2px;
    }

    .player-name-container {
        display: flex;
        align-items: center;
        gap: 15px;
    }

    .player-small-img {
        width: 40px;
        height: 40px;
        border-radius: 50%;
        border: 2px solid rgba(255, 215, 0, 0.3);
        transition: transform 0.3s ease;

        &:hover {
            transform: scale(1.1);
            border-color: #ffd700;
        }
    }

    /* Adjust for smaller screens */
    @media screen and (max-width: 1366px) {
        .list-view-header,
        .player-row {
            grid-template-columns: 60px 180px 90px 100px 180px 120px;
        }
        
        .header-cell {
            font-size: 0.75rem;
        }
        
        .cell {
            font-size: 0.8rem;
        }
        
        .player-small-img {
            width: 35px;
            height: 35px;
        }
    }
}

/* Hide the main scrollbar */
.players-list-view::-webkit-scrollbar {
    display: none;
}

/* Custom scrollbar for list-view-body */
.list-view-body::-webkit-scrollbar {
    width: 6px;
}

.list-view-body::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 3px;
}

.list-view-body::-webkit-scrollbar-thumb {
    background: rgba(255, 215, 0, 0.3);
    border-radius: 3px;
    transition: background 0.3s ease;
}

.list-view-body::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 215, 0, 0.5);
}

.column-visibility-dropdown {
    position: relative;
    display: inline-block;
}

.column-visibility-btn {
    background: #2c3e50;
    border: none;
    color: #fff;
    cursor: pointer;
    /* padding: 8px 12px; */
    border-radius: 6px;
    transition: background 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.column-visibility-btn:hover {
    background: #34495e;
}

.column-visibility-btn i {
    font-size: 1.1em;
}

.column-visibility-content {
    display: none;
    position: absolute;
    right: 0;
    top: calc(100% + 10px);
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    padding: 0;
    z-index: 1000;
    min-width: 200px;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.dropdown-header {
    padding: 12px 16px;
    font-weight: 600;
    color: #2c3e50;
    border-bottom: 1px solid #eee;
}

.modern-checkbox {
    display: flex;
    align-items: center;
    padding: 10px 16px;
    cursor: pointer;
    transition: background 0.2s ease;
    position: relative;
}

.modern-checkbox:hover {
    background: #f8f9fa;
}

.modern-checkbox input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.checkmark {
    position: relative;
    height: 18px;
    width: 18px;
    background-color: #eee;
    border-radius: 4px;
    margin-right: 12px;
    transition: all 0.2s ease;
}

.modern-checkbox:hover input~.checkmark {
    background-color: #ddd;
}

.modern-checkbox input:checked~.checkmark {
    background-color: #2196F3;
}

.checkmark:after {
    content: "";
    position: absolute;
    display: none;
    left: 6px;
    top: 2px;
    width: 5px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.modern-checkbox input:checked~.checkmark:after {
    display: block;
}

.label-text {
    color: #2c3e50;
    font-size: 0.9em;
}

.column-visibility-content.show {
    display: block;
    animation: fadeIn 0.2s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.team-players {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.8rem;
    padding: 0.8rem;
}

.team-players-header {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
}

.back-to-teams {
    padding: 8px 16px;
    border: none;
    border-radius: 4px;
    background: #f0f0f0;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
}

.back-to-teams:hover {
    background: #e0e0e0;
}

.selected-team-name {
    margin: 0;
    font-size: 24px;
    font-weight: bold;
}

.back-to-teams.floating {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
    padding: 12px 24px;
    border-radius: 50px;
    background: linear-gradient(45deg, #2196F3, #1976D2);
    color: white;
    border: none;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: transform 0.2s, box-shadow 0.2s;
}

.back-to-teams.floating:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 8px rgba(0, 0, 0, 0.2);
}

.back-to-teams.floating i {
    font-size: 16px;
}

.player-stats-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 10px;
    margin: 15px 0;
    table-layout: fixed;
}

.player-stats-table td {
    padding: 0;
}

.stat-cell {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 5px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    transition: transform 0.2s, box-shadow 0.2s;
}

.stat-cell:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.stat-label {
    font-size: 0.85em;
    color: #95c6f3;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stat-value {
    font-size: 1.2em;
    font-weight: 600;
    color: #ecf1b3;
}

.player-jodi-header-main {
    display: none;
    position: relative;
    padding: 15px;
    background: linear-gradient(145deg, #1a1a1a, #2d2d2d);
    border-radius: 15px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);

    .jodi-container {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }

    .jodi-images {
        display: flex;
        align-items: center;
        justify-content: center;
        position: relative;
        width: 100%;
    }

    .player-image-wrapper {
        width: 120px;
        height: 120px;
        border-radius: 8px;
        overflow: hidden;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
        position: relative;
        transition: transform 0.3s ease;
    }

    .player-image-wrapper:first-child {
        transform: translateX(15px) rotate(-5deg);
        z-index: 1;
        animation: slideFromLeft 1s ease-out forwards,
                   moveLeft 15s ease-in-out 1s infinite;
    }

    .player-image-wrapper:last-child {
        transform: translateX(-15px) rotate(5deg);
        z-index: 0;
        animation: slideFromRight 1s ease-out forwards,
                   moveRight 15s ease-in-out 1s infinite;
    }

    .jodi-container:hover .player-image-wrapper:first-child {
        transform: translateX(10px) rotate(-3deg);
    }

    .jodi-container:hover .player-image-wrapper:last-child {
        transform: translateX(-10px) rotate(3deg);
    }

    .player-image-wrapper img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        border: 3px solid gold;
    }

    .jodi-info {
        display: flex;
        align-items: flex-start;
        justify-content: center;
        gap: 15px;
        width: 100%;
        padding-top: 10px;
    }

    .player-info-main {
        flex: 1;
        text-align: center;
        max-width: 200px;
    }

    .player-name-main {
        color: gold;
        font-size: 1.1em;
        margin-bottom: 5px;
        /* text-align: left; */
        text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
    }

    .player-details-main {
        display: flex;
        flex-direction: column;
        gap: 4px;
    }

    .player-details-main p {
        display: flex;
        align-items: center;
        justify-content: left;
        gap: 5px;
        margin: 0;
        color: #fff;
        font-size: 0.8em;
    }

    .player-details-main i {
        color: gold;
        font-size: 0.9em;
    }

    .jodi-info-connector {
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 0 5px;
        color: gold;
        font-size: 18px;
        font-weight: bold;
    }

}

@keyframes slideFromLeft {
    0% {
        transform: translateX(-200%) rotate(-5deg);
        opacity: 0;
    }
    100% {
        transform: translateX(10px) rotate(-5deg);
        opacity: 1;
    }
}

@keyframes slideFromRight {
    0% {
        transform: translateX(200%) rotate(5deg);
        opacity: 0;
    }
    100% {
        transform: translateX(-10px) rotate(5deg);
        opacity: 1;
    }
}

@keyframes moveLeft {
    0%, 70%, 100% {
        transform: translateX(15px) rotate(-5deg);
    }
    30%, 40% {
        transform: translateX(-45px) rotate(-5deg);
    }
}

@keyframes moveRight {
    0%, 70%, 100% {
        transform: translateX(-15px) rotate(5deg);
    }
    30%, 40% {
        transform: translateX(45px) rotate(5deg);
    }
}

/* Large Laptops and Small Desktops */
@media screen and (max-width: 1366px) {
    .content-wrapper {
        gap: 1rem;
        padding: 0.8rem;
    }

    .player-section {
        width: 40%;
    }
    .teams-section {
        width: 60%;
    }

    .section-header {
        padding: 0.6rem 1rem;
    }

    .player-section .section-header .league-logo img,
    .player-section .section-header .sponsor-logo img {
        width: 60px;
        height: 60px;
    }
    .player-section .section-header .sponsor-logo {
        width: 60px;
        height: 60px;
    }   

    .player-section .section-header h1 {
        font-size: 1rem;
    }

    .player-image-main {
        width: 100px;
        height: 100px;
    }

    .player-name-main {
        font-size: 1.5rem;
    }

    .player-details-main p {
        font-size: 0.8rem;
    }

    .bid-amount-main {
        font-size: 1.2rem;
    }

    .current-bid-main {
        min-height: 50px;
        /* padding: 0.4rem 1.5rem; */
    }

    .team-logo-main {
        width: 50px;
        height: 50px;
    }

    .team-logo {
        width: 25%;
    }

    .tab-navigation {
        margin-right: 1rem;
    }

    .tab-navigation a {
        padding: 0.6rem 1rem;
        font-size: 0.6rem;
    }

    .stats {
        gap: 0.5rem;
    }

    .stat-item {
        font-size: 0.6rem;
    }

    .sound-control i {
        font-size: 0.8rem;
    }

    .bid-item.current-bid {
        font-size: 1.2rem;
    }

    .bid-item.total {
        font-size: 1.4rem;
    }

    .bid-item.max-bid {
        font-size: 1.2rem;
    }

    .bid-item.reserve {
        font-size: 1.2rem;
    }

    .sold-team-name {
        font-size: 0.8rem;
    }

    .sold-bid-amount {
        font-size: 1.4rem;
    }
    .sold-bid-amount .sold-bid-amount-unit{
        font-size: 1.2rem;
        opacity: 0.8;
    }

    .sold-team-info {
        font-size: 1.2rem;
    }

    .sold-team-logo {
        width: 50px;
        height: 50px;
    }

    .bidding-team-main {
        /* padding: 1rem 0; */
    }

    .filter-btn {
        font-size: 0.5rem;
        padding: 6px 9px;
    }

    .sort-by select {
        font-size: 0.5rem;
        padding: 8px 12px 8px 9px;
        min-width: 100% !important;
    }

    .category-btn {
        font-size: 0.5rem;
    }

    .bid-up-button {
        font-size: 0.8rem;
    }

    .players-list-view {
        width: 58vw;
    }

    .list-view-header .header-cell {
        font-size: 0.5rem;
    }

    .list-view-body .player-row .cell,
    .cell span {
        font-size: 0.7rem !important;
    }

    .list-view-body .player-status {
        width: 3px;
        height: 25px;
        border-radius: 2px;
    }
    .player-jodi-header-main {
        .player-name-main {
            font-size: 0.8rem;
        }
        .player-details-main p {
            font-size: 0.6rem;
        }
    }
}

/* Tablets and iPads */
@media screen and (max-width: 1024px) {

    .player-section {
        width: 35%;
    }
    .teams-section {
        width: 65%;
    }

    .players-list-view {
        width: 62vw;
    }

    .player-section .section-header .league-logo img {
        width: 40px;
        height: 40px;
    }

    .player-section .section-header .sponsor-logo img {
        width: 40px;
        height: 40px;
    }
    .player-section .section-header .sponsor-logo {
        width: 40px;
        height: 40px;
    }

    .player-section .section-header h1 {
        font-size: 0.6rem;
    }

    .player-number-main {
        font-size: 0.8rem;
        width: 30px;
        height: 30px;
        top: -18px;
        left: -18px;
        border-radius: 5px;
    }

    .player-header-main {
        gap: 0.5rem;
    }

    .player-name-main {
        font-size: 0.8rem;
    }

    .player-image-main {
        width: 90px;
        height: 90px;
    }

    .player-details-main p {
        font-size: 0.6rem;
    }

    .base-value-container {
        padding-right: 0.5rem;
    }

    .base-value-label {
        font-size: 0.5rem;
    }

    .base-value-amount {
        font-size: 0.6rem;

    }

    .bid-up-button {
        font-size: 0.8rem;
        /* padding: 0.2rem 0.5rem; */
    }

    .bid-label-main {
        font-size: 0.6rem;
    }

    .current-bid-main {
        padding: 0.5rem 0;
        /* text-align: left; */
    }

    .current-bid-main {
        min-height: 30px;
    }

    .loading-dots {
        margin-top: 0.5rem;
    }

    .loading-dots span {
        width: 5px;
        height: 5px;
    }

    .floating-bid-value-btn {
        font-size: 0.5rem;
    }

    .floating-bid-value-btn:hover {
        font-size: 0.5rem;
    }

    .base-value-container {
        width: 100%;

    }

    .player-card-main {
        padding: 1rem;
    }

    .auction-timing-container {
        padding: 1.5rem;
    }

    .timing-header h2 {
        font-size: 1.5rem;
    }

    .countdown-timer {
        gap: 1rem;
        flex-wrap: nowrap;
    }

    .time-unit {
        min-width: 70px;
        padding: 0.8rem;
    }

    .time-value {
        font-size: 2rem;
    }

    .bid-container-main {
        padding: 0.4rem 0.8rem;
        gap: 0.2rem;
        /* padding-bottom: 0; */
    }

    .bid-amount-main {
        font-size: 0.8rem;
    }

    .team-text {
        font-size: 1.2rem;
    }

    .team-logo-main {
        width: 40px;
        height: 40px;
    }

    .team-details {
        h3 {
            font-size: 0.8rem !important;
        }

        .bid-item.current-bid {
            font-size: 0.8rem;
        }

        .bid-item.total {
            font-size: 0.9rem;
        }

        .bid-item.max-bid {
            font-size: 0.8rem;
        }

        .bid-item.reserve {
            font-size: 0.9rem;
        }

        .bid-item .label {
            font-size: 0.8rem;
        }

        .bid-info {
            gap: 4px;
        }

        
    }

    .teams-section .section-header {
        padding: 0.4rem 0.4rem;
    }

    .tab-navigation {
        margin-right: 0.5rem;
    }

    .tab-navigation a {
        padding: 0.3rem 0.8rem;
        /* font-size: 0.6rem; */
    }

    .stat-item {
        padding: 0.4rem 0.7rem;
    }

    .filter-btn {
        font-size: 0.4rem;
        padding: 4px 10px;
        border-radius: 4px;
    }

    .sort-by select {
        font-size: 0.4rem;
        padding: 4px 6px 4px 9px;
        /* min-width: 100% !important; */
    }

    .sort-by::after {
        font-size: 0.4rem;
        right: 9px;
        transform: translateY(-20%);
    }

    .player-list-card img {
        width: 70px;
        height: 65px;
    }

    .player-list-details h3 {
        font-size: 0.7rem;
    }

    .player-list-details p {
        font-size: 0.6rem;
    }

    .player-list-details .player-category-label {
        font-size: 0.5rem;
    }

    /* .player-list-card.has-team .player-list-details {
        padding: 0.4rem 0.4rem;
    }

    .player-list-card.has-team .player-list-details {
        padding: 0.4rem 0.4rem;
    } */

    .player-list-details {
        max-height: 64px;
    }

    .player-list-card {
        gap: 0.4rem;
        height: 100px;
    }

    .player-strip {
        font-size: 0.5rem;
        padding: 2px 4px;
    }

    .player-list-number {
        font-size: 0.5rem;
    }

    .player-list-owner-tag {
        font-size: 0.5rem;
    }

    .team-strip {
        font-size: 0.6rem;
    }

    .player-strip {
        font-size: 0.6rem;
        padding: 3px 6px;
    }

    .team-headers {
        margin-bottom: 0.5rem;
    }

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

    /* .category-btn {
        font-size: 0.4rem;
    } */
    .base-value-container-main {
        gap: 0.5rem;
    }

    .list-view-header {
        grid-auto-columns: minmax(50px, auto);
    }

    .list-view-body {
        .player-row {
            grid-auto-columns: minmax(50px, auto);
        }

        .player-small-img {
            width: 30px;
            height: 30px;
        }

        .player-row .cell,
        .cell span {
            font-size: 0.6rem !important;
        }

        .category-badge {
            padding: 0.2rem 0.4rem;
        }
    }
    .player-jodi-header-main {
        .player-name-main {
            font-size: 0.7rem;
        }
        .player-details-main p {
            font-size: 0.5rem;
        }
        .player-image-wrapper {
            width: 80px;
            height: 80px;
        }
    }
    .stat-label {
        font-size: 0.6rem;
    }
    .stat-value {
        font-size: 0.9rem;
    }
    .player-stats-table {
        margin: 0;
    }
}

@media screen and (max-width: 860px) {
    .bid-parent-container-main {
        padding: 0.5rem 0;
    }

    .tab-navigation a {
        padding: 0.3rem 0.4rem;
    }
    .player-jodi-header-main {
        .player-name-main {
            font-size: 0.6rem;
        }
        .player-details-main p {
            font-size: 0.4rem;
        }
        .player-image-wrapper {
            width: 70px;
            height: 70px;
        }
        .jodi-info-connector {
            font-size: 0.6rem;
        }
    }
}

/* Large Mobile Phones */
@media screen and (max-width: 768px) {

    .content-wrapper {
        flex-direction: column;
    }

    .player-section .section-header h1 {
        font-size: 0.8rem;
    }

    .player-section {
        width: 100%;

        .section-header {
            padding: 0.4rem 1rem;
        }
    }
    .teams-section {
        width: 100%;
    }

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

    .players-list-view {
        width: 100%;
    }

    .selected-team-title {
        font-size: 0.8rem;
    }

    .player-sub-header {
        display: flex;
        /* flex-direction: column; */
        gap: 0.2rem;
        justify-content: center;
    }
    .category-filters {
        padding: 0 5px;
    }
    .player-count-value {
        font-size: 0.7rem;
    }
    .bid-parent-container-main {
        display: flex;
        gap: 0.5rem;
        flex-direction: column;
        justify-content: center;
    }
    .bid-container-main{
        width:280px
    }
}

/* Small Mobile Phones */
@media screen and (max-width: 480px) {
    .sold-to-label{
        top: -26px;
    left: 12%;
    }
    .team-players{
        grid-template-columns: repeat(1, 1fr);
    }
    .content-wrapper {
        padding: 0.5rem;
    }

    .player-section .section-header h1 {
        font-size: 0.9rem;
    }

    .teams-grid,
    .players-grid {
        grid-template-columns: 1fr;
    }

    .player-details-main p {
        font-size: 0.9rem;
    }

    .bid-amount-main {
        font-size: 1.2rem;
    }

    .team-name-main {
        font-size: 0.9rem;
    }

    .floating-buttons-container {
        grid-template-columns: repeat(2, 1fr);
    }

    .bid-info {
        flex-direction: column;
        gap: 0.5rem;
    }


    .player-details-main p {
        font-size: 0.7rem;
        line-height: 1.5;
    }

    .bid-parent-container-main {
        margin: 0 auto;
    }

    .player-main-category-tag {
        font-size: 0.5rem;
    }

    .bid-up-button {
        font-size: 0.5rem;
    }

    .bid-divider-main {
        height: 30px;
    }

    .current-bid-main {
        margin-top: 0;
        margin-right:46px;
    }

    .bid-amount-main {
        font-size: 1.2rem;
    }

    .hammer-icon-main {
        margin-right: 0;
    }

    .teams-section .section-header-2 {
        /* display: none; */
    }

    .player-section .section-header h1 {
        font-size: 0.8rem;
    }

    .header-controls {
        flex-direction: column;
    }

    .tab-navigation {
        margin-right: 0;
        width: 100%;
    }

    .left-controls {
        width: 100%;
        /* background: rgba(0, 0, 0, 0.4); */
        padding: 0.5rem;
        border-radius: 10px;
    }

    .tab-navigation a {
        width: 100%;
        text-align: center;
    }

    .teams-section .section-header {
        /* background: transparent; */
        box-shadow: none;
    }

    .player-filters {
        margin-left: 0;
    }
    .stat-label {
        font-size: 0.5rem;
    }
    .stat-value {
        font-size: 0.8rem;
    }
    .player-stats-table {
        margin: 0;
    }
    .timer-container{
        /* top: 30px; */
        /* right: -10px !important; */
        /* padding: 5px 10px; */
    }
   
}

/* Extra Small Devices */
@media screen and (max-width: 320px) {
    .player-section .section-header h1 {
        font-size: 0.8rem;
    }

    .floating-buttons-container button {
        padding: 6px 8px;
        font-size: 11px;
    }

    .player-card-main {
        padding: 0.8rem;
    }

    .auction-timing-container {
        padding: 1rem;
    }

    .timing-header h2 {
        font-size: 1.3rem;
    }

    .auction-date {
        font-size: 1rem;
    }

    .countdown-timer {
        gap: 0.8rem;
        flex-wrap: nowrap;
    }

    .time-unit {
        min-width: 60px;
        padding: 0.6rem;
    }

    .time-value {
        font-size: 1.8rem;
    }

    .time-label {
        font-size: 0.8rem;
    }

    .timing-message p {
        font-size: 1rem;
    }

    .bid-amount-main {
        font-size: 1rem;
    }
}

/* For devices with height less than 700px */
@media screen and (max-height: 700px) {
    .player-card-main {
        max-height: 80vh;
        overflow-y: auto;
    }

    .teams-grid,
    .players-grid {
        /* max-height: 60vh; */
        overflow-y: auto;
    }
}

/* For Landscape Mode on Mobile */
/* @media screen and (max-width: 900px) and (orientation: landscape) {
    .content-wrapper {
        flex-direction: row;
    }

    .player-section {
        width: 45%;
    }

    .teams-section {
        width: 55%;
    }

    .floating-buttons-container {
        width: auto;
        right: 10px;
        left: auto;
        background: transparent;
        display: flex;
        flex-direction: column;
        gap: 5px;
    }

    .floating-buttons-container button {
        width: auto;
    }
} */

/* List View Styles */

.team-navigation {
    display: flex;
    align-items: center;
    gap: 15px;
}

.prev-team, .next-team {
    cursor: pointer;
    padding: 5px;
    color: #b5b2b2;
    transition: all 0.3s ease;
}

.prev-team:hover, .next-team:hover {
    color: #6193a3;
}

.selected-team-title {
    font-weight: bold;
    min-width: 200px;
    text-align: center;
}

.timer-container {
    width: 38px;
    position: absolute;
    border: 2px solid #c5762d;
    /* bottom: -14px;
    left: 40px; */
    top: 71px;
    right: 46%;
    background: #0c0c25;
    display: flex;
    align-items: center;
    justify-content: center;
    /* background: rgba(0, 0, 0, 0.7); */
    border-radius: 50%;
    padding: 6px 6px;
    /* box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3); */
    z-index: 10;
    animation: pulse-timer 2s infinite;
}
.teamlogin .timer-container {
    top: 108px;
    right: 10px;
}

.timer-text {
    color: #ff9500;
    font-weight: 700;
    font-size: 1.2rem;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
}

.timer-text.warning {
    color: #ff9500;
}

.timer-text.danger {
    color: #ff3b30;
    animation: blink 0.5s infinite;
}

@keyframes pulse-timer {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 215, 0, 0.4);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(255, 215, 0, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(255, 215, 0, 0);
    }
}

@keyframes blink {
    0% { opacity: 1; }
    50% { opacity: 0.5; }
    100% { opacity: 1; }
}

/* Animation for bat swing (right to left - natural cricket swing) */
@keyframes batSwing {
    0% {
        transform: translateY(0) rotate(45deg) scale(1);
        opacity: 1;
    }
    20% {
        transform: translateY(-5px) rotate(30deg) scale(1.1);
        opacity: 1;
    }
    40% {
        transform: translateY(0) rotate(0deg) scale(1.2);
        opacity: 1;
    }
    60% {
        transform: translateY(-5px) rotate(-30deg) scale(1.1);
        opacity: 1;
    }
    80% {
        transform: translateY(0) rotate(-45deg) scale(1);
        opacity: 0.8;
    }
    100% {
        transform: translateY(5px) rotate(-50deg) scale(0.9);
        opacity: 0;
    }
}

/* Animation for ball moving left to right with one bounce (faster) */
@keyframes ballLeftToRightBounce {
    0% {
        transform: translateX(-200px) translateY(0) scale(1);
        opacity: 1;
    }
    15% {
        transform: translateX(-80px) translateY(-40px) scale(1.1);
        opacity: 1;
    }
    30% {
        transform: translateX(0) translateY(0) scale(1.2);
        opacity: 1;
    }
    50% {
        transform: translateX(80px) translateY(-25px) scale(1.1);
        opacity: 1;
    }
    70% {
        transform: translateX(150px) translateY(0) scale(1);
        opacity: 0.9;
    }
    100% {
        transform: translateX(250px) translateY(10px) scale(0.8);
        opacity: 0;
    }
}

/* Animation container for pre-player animations */
.player-animation-container {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 100;
    display: none;
}

.bat-animation {
    width: 80px;
    height: 80px;
    background-image: url('images/bat.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    animation: batSwing 2s ease-in-out;
}

.ball-animation {
    width: 60px;
    height: 60px;
    background-image: url('images/ball.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    animation: ballLeftToRightBounce 1.5s ease-out;
}

@media screen and (max-width: 768px) {
    .timer-container {
        /* top: 30px; */
        /* right: 30px; */
        /* left: 25px; */
        padding: 6px 6px;
    }
    
    .timer-text {
        font-size: 1.2rem;
    }
}

.floating-reset-timer-btn {
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    background: linear-gradient(45deg, #2ecc71, #27ae60);
    color: white;
    border: none;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    margin: 0 5px;
}

.floating-reset-timer-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.2);
}

.floating-reset-timer-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.floating-reset-timer-btn i {
    font-size: 1.2rem;
}

/* Media query adjustments */
@media screen and (max-width: 768px) {
    .floating-reset-timer-btn {
        padding: 10px 15px;
        font-size: 0.9rem;
    }

    .floating-reset-timer-btn i {
        font-size: 1rem;
    }
}

.timer-container:empty,
.timer-container:has(.timer-text:empty) {
    display: none;
    animation: none;
}

