/* VIP Logo */
.vip-logo {
    will-change: transform, filter; /* Improve rendering */
    width: 120px;            /* Adjust size */
    height: auto;            /* Maintain aspect ratio */
    cursor: pointer;         /* Pointer cursor on hover */
    filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.8)); /* Glow effect */
    -webkit-filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.8)); 
    transition: transform 0.3s ease, filter 0.3s ease; /* Smooth hover effect */
}

.vip-logo:hover {
    transform: scale(1.1); /* Slight zoom effect on hover */
    filter: drop-shadow(0 0 20px rgba(255, 255, 255, 1)); /* Brighter glow */
}


/* Logo Container */
.logo-container {
    display: flex;
    justify-content: center; /* Center the logo horizontally */
    padding: 20px 0;         /* Add spacing above and below */
    overflow: visible;
}


/* General Styles */
body {
    font-family: 'Orbitron', Arial, sans-serif; /* Futuristic font */
    background-color: black; /* Match website background */
    color: white; /* Text color for readability */
    overflow-y: auto; /* Enable vertical scrolling */
    margin: 0px;
}

main {
    display: flex;
    flex-direction: column;       /* Stacks items vertically */
    justify-content: flex-start;  /* Aligns content to the top */
    align-items: center;          /* Centers horizontally */
    min-height: calc(100vh - 60px); /* Adjust for header height */
    padding: 10px;                /* Small padding */
    box-sizing: border-box;       /* Include padding in size */
}


/* Leaderboard Container */
.container {
    display: inline-block;      /* Automatically adjusts size to fit content */
    margin: 20px auto;          /* Centers horizontally with top and bottom margin */
    padding: 10px 20px;         /* Small padding on each side */

    /* Background and styling */
    background: rgba(20, 20, 20, 0.8); /* Semi-transparent dark background */
    border-radius: 10px;         /* Rounded corners */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.7); /* Subtle shadow for depth */

    /* Optional: Prevents container from becoming too wide */
    max-width: 100%;             /* Keeps the size responsive */
    overflow-x: auto;           /* Allows scrolling if content overflows horizontally */
}



/* Header Style */
h2 {
    text-align: center;
    margin-bottom: 20px;
    font-family: 'Russo One', sans-serif; /* Strong, impactful font */
    font-size: 2.5rem;
    color: white;
    text-transform: uppercase; /* Uppercase for dramatic effect */
    filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.8)); /* Glow effect */
    will-change: transform, filter; /* Improve rendering */
    
}

/* Table Styles */
table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    color: white; /* Text color */
    font-family: 'Orbitron', sans-serif; /* Futuristic font for stats */
}

th, td {
    padding: 12px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.1); /* Subtle borders */
    text-transform: uppercase; /* Makes text stand out */
}

th {
    background-color: rgb(184, 155, 93); /* Highlight header rows */
    color: white;
    font-family: 'Russo One', sans-serif; /* Bold and modern */
    letter-spacing: 1px; /* Slight spacing for style */
    filter: drop-shadow(0 0 10px rgba(213, 181, 110, 0.5)); /* Glow effect */
}

tr:nth-child(even) {
    background-color: rgba(255, 255, 255, 0.05); /* Slightly lighter rows */
}

/* Hover Effect - Lift Entire Row */
tbody tr {
    transition: all 0.2s ease-in-out; /* Smooth transition */
    position: relative;
    z-index: 1; /* Keep hovered row above others */
    cursor: pointer;
}

tbody tr:hover {
    transform: scale(1.02); /* Slight zoom effect */
    background-color: rgb(213, 180, 110); /* Highlight color */
    box-shadow: 0 0 15px rgba(213, 180, 110, 0.8); /* Enhanced glow effect */
    z-index: 10;
}

/* Team Logo Styling */
.team-logo {
    width: 40px;
    height: 40px;
    object-fit: cover; /* Preserve square shape */
    border-radius: 5px;
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.4); /* Enhanced glow effect */
}

/* Team Column */
td.team-column {
    display: flex;
    align-items: center;
    gap: 10px;
    justify-content: start;
    font-family: 'Russo One', sans-serif; /* Bold font for team names */
    font-size: 1rem;

    /* Adjust column width for 30 characters */
    max-width: 300px;           /* About 10px per character */
    white-space: nowrap;        /* Prevents stacking */
    overflow: hidden;           /* Hide overflow */
    text-overflow: ellipsis;    /* Adds '...' if text exceeds max-width */
}

/* Form Column */
td.form-column {
    min-width: 120px; /* Enough space for 'w-L-w-L-w' */
    white-space: nowrap; /* Prevents wrapping */
    text-align: center; /* Centers the text */
    font-family: 'Orbitron', sans-serif; /* Matches theme */
}

/* Highlight 'W' and 'L' styles */
.form-win {
    color: lightgreen; /* Green for wins */
    font-weight: bold;
}

.form-loss {
    color: red; /* Red for losses */
    font-weight: bold;
}


     /* Base container holding BOTH YouTube and Audio controls */
.bottom-left-container {
    position: fixed;
    bottom: calc(50px + 10px); /* Footer height (50px) + spacing (10px) */
    left: 20px;
    z-index: 1000;
    display: flex;
    align-items: center;
    gap: 10px; /* Space between YouTube icon and audio control */
}

    /************************************************/
    /*  1) YouTube Link in Lower-Left              */
    /************************************************/
.youtube-link {
    height: 50px;
    /* YOUR EXISTING STYLES */
    filter: drop-shadow(0 0 8px rgba(255, 0, 0, 0.6));
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

    /* Hover Effect for .vg */
.youtube-link:hover {
    height: 50px;
    transform: scale(1.1); /* Slightly enlarge on hover */
    filter: drop-shadow(0 0 15px rgba(255, 0, 0, 1)); /* Brighten glow on hover */
    opacity: 100%;
}
    /* Example minimal style (optional):
    .youtube-link.desktop-only svg {
    width: 40px;
    height: 40px;
    }
    */

    /************************************************/
    /*  2) Audio Pill Container                     */
    /************************************************/
.audio-pill-container {
    height: 40px;
    /* Let’s keep the icon always visible, but the pill background and slider hidden */
    position: relative;
    display: inline-flex;
    align-items: center;
    padding: 6px;
    border-radius: 25px;
    background: transparent; /* No background until hover */
    transition: background 0.3s ease, padding 0.3s ease;
    gap: 6px; /* Space between icon and slider */
}

    /* On hover, the pill background appears and we expand padding a bit for the slider */
.audio-pill-container:hover {
    background: rgba(0, 0, 0, 0.8);
    padding: 6px 12px;
}

    /************************************************/
    /*  3) Play / Mute Icons (ALWAYS visible)       */
    /************************************************/
.audio-icon {
    width: 30px;
    height: 30px;
    fill: white;         /* Default color */
    cursor: pointer;     /* Clickable */
    transition: fill 0.2s ease, transform 0.2s ease;
}
.audio-icon:hover {
    fill: rgb(213, 180, 110);
    transform: scale(1.1);
}
    /************************************************/
    /*  4) Volume Slider (hidden until hover)       */
    /************************************************/
.volume-slider {
    width: 0;           /* Collapsed by default */
    opacity: 0;         /* Invisible by default */
    pointer-events: none;
    transition: width 0.3s ease, opacity 0.3s ease;
    background: linear-gradient(to right, rgb(213, 180, 110) 30%, #ccc 30%);
}

    /* Expand and fade in the slider on hover */
.audio-pill-container:hover .volume-slider {
    width: 100px;
    opacity: 1;
    pointer-events: auto;
}

    /* Basic slider styling for Chrome/Edge/Safari */
.volume-slider::-webkit-slider-runnable-track {
        height: 6px;
        background: transparent; /* Handled dynamically via JS */
        border-radius: 3px;
}
.volume-slider::-webkit-slider-thumb {
    width: 12px;
    height: 12px;
    background: white;
    border: 2px solid #ccc;
    border-radius: 50%;
    cursor: pointer;
    margin-top: -4px;
}

    /* Basic slider styling for Firefox */
.volume-slider::-moz-range-thumb {
    width: 12px;
    height: 12px;
    background: white;
    border: 2px solid #ccc;
    border-radius: 50%;
}
/* Adjust layout for mobile screens */
@media (max-width: 1000px) {
    .youtube-link {
        display: none !important;
    }
    .audio-pill-container {
        display: none;
    }
    .modal-content {
        width: 100vw;
        height: 100vh;
        max-width: none;
        max-height: none;
        padding: 20px;
        border-radius: 0;
        display: flex;
        flex-direction: column;
      }
    
      .team-stats {
        grid-template-columns: repeat(2, 1fr);
      }
    
      .members-grid-wrapper {
        flex: 1;
        overflow-y: auto;
        padding-top: 10px;
      }
    
      .members-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
        list-style: none;
        padding: 0;
        margin: 0;
      }
    
      .member-card,
      .role-card {
        max-width: 100%;
        font-size: 0.75rem;
        padding: 8px;
      }
    
      .member-card img,
      .role-card img {
        width: 40px;
        height: 40px;
        margin-bottom: 4px;
      }
    
      .close-btn {
        top: 8px;
        right: 12px;
        font-size: 24px;
      }
    }
    


.modal {
    display: none; /* hidden by default */
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    width: 100vw;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(6px);
    justify-content: center;
    align-items: center;
    z-index: 1000;
    padding: 20px;
    box-sizing: border-box;
    overflow-y: auto;
  }
  
  .modal.show {
    display: flex;
  }
  
  .modal-content {
    background-color: #141414;
    color: white;
    width: 100%;
    max-width: 720px;
    padding: 30px;
    border-radius: 18px;
    box-shadow: 0 0 30px rgba(215, 200, 168, 0.2);
    font-family: 'Orbitron', sans-serif;
    position: relative;
    overflow: hidden;
    box-sizing: border-box;
    animation: fadeIn 0.6s ease-out;
  }
  
  .vip-bg {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 500px;
    height: 500px;
    background: url('/assets/images/VIP_logo_glow.png') center center no-repeat;
    background-size: contain;
    opacity: 0.05;
    transform: translate(-50%, -50%);
    filter: blur(1px);
    z-index: 0;
    pointer-events: none;
  }
  
  .modal-header .banner {
    display: flex;
    align-items: center;
    gap: 20px;
    justify-content: center;
    position: relative;
    z-index: 1;
  }
  
  .modal-logo {
    width: 80px;
    height: 80px;
    border-radius: 12px;
    object-fit: cover;
    box-shadow: 0 0 15px rgba(215, 200, 168, 0.534);
  }
  
  .team-info h2 {
    font-family: 'Russo One', sans-serif;
    font-size: 2.4rem;
    margin: 0;
    text-transform: uppercase;
    color: white;
    filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.8));
  }
  
  .team-rank {
    font-size: 1rem;
    color: #ccc;
    margin-top: 4px;
  }
  
  .team-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    text-align: center;
    margin: 20px 0;
    position: relative;
    z-index: 1;
  }
  
  .team-stats div {
    background: rgba(255, 255, 255, 0.05);
    padding: 12px;
    border-radius: 12px;
    font-size: 0.95rem;
    display: flex;
    flex-direction: column;
    gap: 6px;
  }
  
  .team-stats .icon {
    font-size: 1.3rem;
  }
  
  .form-bar {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
  }
  
  .form-bar span {
    width: 20px;
    height: 20px;
    border-radius: 4px;
    display: inline-block;
  }
  
  .form-win { background-color: limegreen; }
  .form-loss { background-color: crimson; }
  
  .team-roles {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 15px;
    position: relative;
    z-index: 1;
    flex-wrap: wrap;
  }
  
  .role-card {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 10px;
    padding: 10px;
    font-family: 'Russo One', sans-serif;
    text-align: center;
    font-size: 0.85rem;
    color: #fff;
    box-shadow: 0 0 6px rgba(255, 255, 255, 0.03);
    transition: transform 0.2s ease;
    width: 100%;
    max-width: 150px;
    overflow: hidden;
  }
  
  .role-card:hover {
    transform: scale(1.05);
    background-color: rgba(213, 180, 110, 0.08);
  }
  
  .role-card img {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 6px;
    box-shadow: 0 0 8px rgba(213, 180, 110, 0.25);
  }
  
  .role-card .role-title {
    display: block;
    font-size: 0.75rem;
    color: #ccc;
    margin-top: 4px;
    font-weight: bold;
    text-transform: uppercase;
  }
  
  .members-container p {
    font-weight: bold;
    font-size: 1rem;
    margin: 10px 0 5px;
  }
  
  .members-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    justify-content: center;
    gap: 14px;
    list-style: none;
    padding: 0;
    margin: 0 auto;
    max-width: 700px;
  }
  
  .member-card,
  .role-card {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 10px;
    padding: 10px;
    font-family: 'Russo One', sans-serif;
    text-align: center;
    font-size: 0.85rem;
    color: #fff;
    box-shadow: 0 0 6px rgba(255, 255, 255, 0.03);
    transition: transform 0.2s ease;
    width: 100%;
    max-width: 150px;
    overflow: hidden;
  }
  
  .member-card:hover,
  .role-card:hover {
    transform: scale(1.05);
    background-color: rgba(213, 180, 110, 0.55);
  }
  
  .member-card img,
  .role-card img {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 6px;
    box-shadow: 0 0 8px rgba(213, 180, 110, 0.25);
  }
  
  .member-card span,
  .role-card span.nickname {
    display: block;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    width: 100%;
    padding: 0 6px;
  }
  
  .team-motto {
    text-align: center;
    margin-top: 20px;
    font-style: italic;
    color: #aaa;
    font-size: 0.95rem;
  }
  
  .close-btn {
    position: absolute;
    top: 12px;
    right: 18px;
    font-size: 28px;
    font-weight: bold;
    color: white;
    cursor: pointer;
    padding: 4px 10px;
    border-radius: 8px;
    transition: all 0.3s ease;
    z-index: 10;
  }
  
  .close-btn:hover {
    color: red;
    background: rgba(255, 0, 0, 0.1);
    transform: scale(1.15);
  }
  
  @keyframes fadeIn {
    from {
      opacity: 0;
      transform: translateY(-15px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
  
  
  
  
  
