:root {
    --prime-gold: #ffcc00;
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.1);
}

.welcome-portal {
    position: fixed;
    inset: 0;
    background: #050505;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    overflow: hidden;
    transition: all 1s cubic-bezier(0.19, 1, 0.22, 1);
}

.glass-hero {
    position: relative;
    width: 100%;
    max-width: 600px;
    padding: 60px 40px;
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 40px;
    text-align: center;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.badge {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(255, 204, 0, 0.1);
    color: var(--prime-gold);
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 24px;
}

.glass-hero h1 {
    font-size: 3.5rem;
    color: #fff;
    margin: 0;
    font-weight: 800;
    letter-spacing: -1px;
}

.accent-text {
    color: var(--prime-gold);
    font-weight: 10000;
}

.glass-hero p {
    color: rgba(255,255,255,0.6);
    font-size: 1.1rem;
    line-height: 1.6;
    margin: 20px auto 40px;
    max-width: 400px;
}

.prime-btn {
    background: #fff;
    color: #000;
    border: none;
    padding: 16px 40px;
    border-radius: 100px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0 auto;
    transition: all 0.4s ease;
}

.prime-btn:hover {
    background: var(--prime-gold);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(255, 204, 0, 0.3);
}

/* Abstract Background Orbs */
.orb {
    position: absolute;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    filter: blur(80px);
    z-index: -1;
    opacity: 0.3;
}
.orb-1 { top: -100px; left: -100px; background: var(--prime-gold); }
.orb-2 { bottom: -100px; right: -100px; background: #6366f1; }

/* Smooth Exit Animation */
.portal-exit {
    opacity: 0;
    transform: scale(1.1);
    pointer-events: none;
}

/* --- CORE STYLES --- */
* {
    margin: 0; padding: 0; box-sizing: border-box;
    font-family: 'Segoe UI', Arial, sans-serif;
}

body {
    background: #000;
    color: #fff;
    overflow: hidden;
}

.main {
    width: 100%; height: 100vh;
    background: radial-gradient(circle at top left, #500, #111 70%);
    position: relative;
}

/* --- NAVIGATION --- */
.navbar {
    width: 100%; height: 80px; display: flex; align-items: center; justify-content: space-between;
    padding: 0 50px; background: rgba(0, 0, 0, 0.95); border-bottom: 2px solid #ffcc00;
    position: fixed; top: 0; z-index: 1000;
}

.logo-text { font-size: 24px; font-weight: 900; letter-spacing: 2px; }
.logo-text span { color: #ffcc00; }
.menu { list-style: none; display: flex; }
.menu li label {
    margin-left: 20px; cursor: pointer; font-weight: bold; text-transform: uppercase;
    font-size: 12px; transition: 0.3s;
}
.menu li label:hover { color: #ffcc00; }

/* --- PLAYER GLASS GRID --- */
.player-glass-grid {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 15px;
}

.player-glass-frame {
    background: rgba(255, 255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 12px 15px;
    display: grid;
    grid-template-columns: 1fr 1.5fr 2.5fr 2fr 0.5fr; /* Controls column widths */
    align-items: center;
    transition: 0.3s ease;
}

.player-glass-frame:hover {
    background: rgba(255, 255, 255, 255, 0.15);
    border-color: #ffcc00;
    transform: translateX(5px);
}

.header-frame {
    background: transparent;
    border: none;
    border-bottom: 2px solid #ffcc00;
    border-radius: 0;
    font-weight: 900;
    font-size: 12px;
    color: #ffcc00;
    text-transform: uppercase;
}

.header-frame:hover {
    transform: none;
    background: transparent;
}

.p-rank {
    color: #ffcc00;
    font-weight: bold;
}

.p-wrank {
    font-size: 12px;
    font-weight: 600;
}
.p-name {
    font-size: 12px;
    font-weight: 600;
}

.p-team {
    font-size: 12px;
    color: #ccc;
}

.p-last {
    font-size: 12px;
    color: #777;
    text-align: right;
}

/* --- WATCHLIST GLASS GRID --- */
.watchlist-glass-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin-top: 20px;
}

.watch-glass-frame {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 30px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

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

.watch-glass-frame:hover::before {
    left: 100%;
}

.watch-glass-frame:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.1);
    border-color: #ffcc00;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.watch-glass-frame h3 {
    font-size: 22px;
    margin: 10px 0;
    color: #fff;
}

.watch-glass-frame p {
    font-size: 14px;
    color: #bbb;
    line-height: 1.6;
    margin-bottom: 20px;
}

.frame-footer {
    font-size: 11px;
    font-weight: bold;
    color: #ffcc00;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 15px;
}

/* Ensure the container allows scrolling if the list is long */
.main-list-container {
    max-height: 600px;
    overflow-y: auto;
}

/* --- MODAL SYSTEM --- */
.modal {
    display: none; 
    position: fixed;
    z-index: 9999; /* Higher than Navbar */
    left: 0; top: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.9);
    backdrop-filter: blur(10px);
    align-items: center; justify-content: center;
}

.card-overlay {
    max-width: 450px; width: 90%;
    border: 1px solid rgba(255, 204, 0, 0.4);
    box-shadow: 0 0 30px rgba(0,0,0,0.5);
}

.headline-item {
    margin-bottom: 30px; /* Adjust this number to increase the gap */
}

.tag.rising {
    display: inline-block; /* Required for margins to work on spans */
    margin-top: 25px;      /* Creates space above the blue tag */
}

/* To ensure the very first tag doesn't have a gap at the top */
.tag.rising:first-child {
    margin-top: 0;
}

.card-photo {
    width: 100%;       /* Makes the image fill the width of the container */
    height: 200px;     /* Set a fixed height */
    object-fit: cover; /* This prevents the image from looking stretched */
    border-radius: 10px 10px 0 0; /* Rounds the top corners to match your cards */
}

.video-placeholder {
    position: relative; /* This keeps the contents inside the box */
    width: 100%;
    height: 250px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white; /* Ensures text is visible */
}

.thumb-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1; /* Lowest layer */
}

.video-overlay-content {
    position: relative;
    z-index: 2; /* Higher layer (sits on top of image) */
    text-align: center;
    background: rgba(0, 0, 0, 0.4); /* Darkens the image so text is easy to read */
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.tag.underrated {
    margin-right: 8px; /* Adds a gap between the two tags */
    display: inline-block;
}

.upcoming-tournaments {
    font-size: 20px;
    margin-top: 10px;
    padding: 10px;
}

.tournament-card {
    background: rgba(255, 255, 255, 0.03);
    border-left: 4px solid #35408f; /* Alas Pilipinas Blue */
    padding: 12px;
    margin-bottom: 15px;
    border-radius: 0 8px 8px 0;
    transition: 0.3s;
}

.tournament-card:hover {
    background: rgba(255, 255, 255, 0.08);
}

.tournament-card.highlight {
    border-left-color: #ffcc00; /* Gold for major games like Asian Games */
}

.tourney-status {
    background: #ce1126; /* PH Flag Red */
    color: white;
    font-size: 10px;
    font-weight: bold;
    padding: 2px 6px;
    border-radius: 4px;
    display: inline-block;
    margin-bottom: 5px;
}

.tourney-date {
    font-size: 11px;
    color: #aaa;
    text-transform: uppercase;
}

.tourney-name {
    font-size: 15px;
    font-weight: bold;
    color: #fff;
    margin: 3px 0;
}

.tourney-location {
    font-size: 12px;
    color: #888;
}

.tournament-list {
    max-height: 300px; /* Adjust this height to fit exactly 3 cards */
    overflow-y: auto;
    padding-right: 10px; /* Space for the scrollbar */
    display: flex;
    flex-direction: column;
    gap: 0.00001px;
}

/* Modern Scrollbar Styling */
.tournament-list::-webkit-scrollbar {
    width: 6px;
}

.tournament-list::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
}

.tournament-list::-webkit-scrollbar-thumb {
    background: #ffcc00; /* Matching your gold theme */
    border-radius: 10px;
}

.tournament-list::-webkit-scrollbar-thumb:hover {
    background: #e6b800;
}


.ranking-header {
    display: flex;
    align-items: baseline; /* Keeps the text aligned at the bottom of the letters */
    gap: 15px;            /* Adds space between the title and the date */
    margin-bottom: 20px;
    border-left: 4px solid #b30000; /* Maintains your red accent line */
    padding-left: 15px;
}

.ranking-header h2 {
    margin: 0;
    color: #ffcc00;       /* Your gold/yellow color */
    font-size: 1.8rem;
}

.ranking-date {
    color: #ffffff;
    font-size: 0.9rem;
    opacity: 0.8;         /* Makes the date slightly more subtle than the title */
}

/* Ensure it fits on a phone screen */
@media (max-width: 600px) {
    .ranking-header {
        flex-direction: column; /* Stacks them if the screen is too small */
        gap: 5px;
    }
}

.card-header-grid { display: flex; gap: 20px; align-items: center; margin-bottom: 20px; }
#cardIcon { font-size: 50px; color: #ffcc00; }

.info-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 20px 0; }
.info-item { background: rgba(255,255,255,0.05); padding: 12px; border-radius: 8px; border-left: 3px solid #ffcc00; }
.info-item span { display: block; font-size: 10px; color: #aaa; text-transform: uppercase; }
.info-item strong { color: #fff; font-size: 14px; }

.card-divider { border: 0; border-top: 1px solid rgba(255,255,255,0.1); margin: 15px 0; }
.btn-close { width: 100%; padding: 12px; background: #ffcc00; border: none; border-radius: 5px; font-weight: bold; cursor: pointer; }

.info-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 15px 0; }
.info-item { background: rgba(255,255,255,0.1); padding: 10px; border-radius: 5px; }
.info-item span { display: block; font-size: 10px; color: #ffcc00; }
.card-header-grid { display: flex; gap: 20px; align-items: center; }
.close-btn { position: absolute; right: 20px; top: 10px; cursor: pointer; font-size: 24px; }

/* --- HOVER EFFECTS FOR NAMES --- */

/* Weekly List Name Hover */
.player-glass-frame:hover .p-name {
    color: #ffcc00;
    text-shadow: 0 0 10px rgba(255, 204, 0, 0.5);
    transition: 0.3s ease;
}

/* Ranking Table Name Hover */
.data-table tbody tr {
    transition: 0.3s;
    cursor: pointer;
}

.data-table tbody tr:hover td {
    background: rgba(255, 204, 0, 0.05); /* Very subtle gold tint on the row */
    color: #fff;
}

/* Targets the specific Name column in the table */
.data-table tbody tr:hover td:nth-child(2) {
    color: #ffcc00;
    font-weight: bold;
    text-shadow: 0 0 8px rgba(255, 204, 0, 0.4);
}

/* Navbar Navigation Highlight */
.menu li label {
    position: relative;
}

.menu li label::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: #ffcc00;
    transition: width 0.3s;
}

.menu li label:hover::after {
    width: 100%;
}

#cardTitle {
    color: #ffcc00;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-shadow: 2px 2px 10px rgba(0,0,0,0.5);
}

/* Rank Trend Colors */
.rank-up { color: #00ff88 !important; }    /* Green for moving up */
.rank-down { color: #ff4444 !important; }  /* Red for moving down */
.rank-steady { color: #ffcc00 !important; } /* Gold for steady/top */

/* Pulse effect for the Rank #1 */
.p-rank.rank-steady {
    animation: rankPulse 2s infinite;
}

@keyframes rankPulse {
    0% { text-shadow: 0 0 5px rgba(255, 204, 0, 0.2); }
    50% { text-shadow: 0 0 15px rgba(255, 204, 0, 0.6); }
    100% { text-shadow: 0 0 5px rgba(255, 204, 0, 0.2); }
}

/* Small arrow icons for trends */
.trend-icon {
    font-size: 10px;
    margin-right: 4px;
}
.filter-bar {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
    align-items: center;
    padding: 10px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
}

.filter-group, .search-group {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #ffffff;
    font-size: 14px;
}

#rankNameSearch {
    color: black !important; /* Forces the typed text to be black */
}

/* This targets the "Search Players..." placeholder text */
#rankNameSearch::placeholder {
    color: #666; /* A dark gray so it's visible but looks like a placeholder */
}

.filter-bar select{
    background: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    padding: 8px 12px;
    color: black;
    outline: none;
    transition: 0.3s;
}

.filter-bar input {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    padding: 8px 12px;
    color: white;
    outline: none;
    transition: 0.3s;
}

.filter-bar input:focus, .filter-bar select:focus {
    border-color: #ffcc00;
    background: white
}

.filter-bar input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

/* This targets the dropdown box itself */
#teamFilter {
    color: #000000; /* Sets the text color to black */
    background-color: rgba(228, 8, 8, 0.9); /* Makes background slightly white for contrast */
    border: 1px solid #ccc;
    padding: 5px 10px;
    border-radius: 5px;
}

/* This targets the actual options inside the list */
#teamFilter option {
    color: #000000;
    background-color: #ffffff; /* Ensures the dropdown list background is solid white */
}

/* Full screen background - Opaque enough to hide background content */
.welcome-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Solid dark gradient ensures content behind is not visible */
    background: radial-gradient(circle at center, #1a1a2e 0%, #050505 100%);
    backdrop-filter: blur(40px); /* Extreme blur for a clean slate */
    -webkit-backdrop-filter: blur(40px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* The Glass Welcome Card - Refined Modern Look */
.welcome-card {
    text-align: center;
    padding: 60px 40px;
    border-radius: 40px;
    /* Deeper glass effect */
    background: rgba(255, 255, 255, 0.03); 
    /* The "Lit" edge - vital for modern aesthetics */
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.7);
    max-width: 500px;
    width: 90%;
    position: relative;
    overflow: hidden;
    animation: slideUp 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Add a subtle glow behind the card for depth */
.welcome-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 204, 0, 0.05) 0%, transparent 70%);
    pointer-events: none;
}

.welcome-card h1 {
    color: #ffffff;
    font-size: 2.8rem;
    font-weight: 800;
    letter-spacing: -1px;
    margin-bottom: 15px;
    text-transform: capitalize;
    /* Gradient text for a modern touch */
    background: linear-gradient(to bottom, #fff 0%, #ffcc00 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.welcome-card p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 40px;
    max-width: 80%;
    margin-left: auto;
    margin-right: auto;
}

/* Animated Button - Clean & Minimalist */
.enter-btn {
    background: #ffcc00;
    color: #000;
    border: none;
    padding: 16px 45px;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    cursor: pointer;
    box-shadow: 0 10px 20px rgba(255, 204, 0, 0.2);
    transition: all 0.3s ease;
}

.enter-btn:hover {
    transform: translateY(-3px);
    background: #fff;
    box-shadow: 0 15px 25px rgba(255, 255, 255, 0.2);
}

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

/* Sophisticated Spin */
.fa-spin-slow {
    font-size: 4rem;
    background: linear-gradient(45deg, #ffcc00, #ff8800);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 30px;
    display: inline-block;
    filter: drop-shadow(0 0 15px rgba(255, 204, 0, 0.3));
    animation: fa-spin 8s infinite linear;
}

/* Smooth Entrance Animation */
@keyframes slideUp {
    from { 
        opacity: 0; 
        transform: translateY(40px) scale(0.95); 
        filter: blur(10px);
    }
    to { 
        opacity: 1; 
        transform: translateY(0) scale(1); 
        filter: blur(0);
    }
}

/* Class to hide the overlay */
.overlay-hidden {
    opacity: 0;
    visibility: hidden;
}
/* Add a background image to the video placeholder */
.video-thumb {
    background-image: linear-gradient(rgba(0,0,0,0.3), rgba(0,0,0,0.6)), 
                      url('https://img.youtube.com/vi/VIDEO_ID_1/maxresdefault.jpg');
    background-size: cover;
    background-position: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 200px; /* Adjust height as needed */
}

/* Ensure the links don't change the text color or add underlines */
.card-link {
    text-decoration: none;
    color: inherit;
    display: block;
    margin-bottom: 15px; /* Spacing between cards */
    transition: transform 0.2s ease, filter 0.2s ease;
}

/* Hover effect to make it feel "clickable" */
.card-link:hover {
    transform: translateY(-5px);
    filter: brightness(1.2);
}

/* Center the Play Icon */
.video-placeholder i {
    font-size: 3rem;
    margin-bottom: 10px;
    color: rgba(255, 255, 255, 0.9);
}

:root {
    --glass: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.15);
    --accent: #ffcc00;
}

body {
    background: #0f172a; /* Dark sleek background */
    color: white;
    font-family: 'Segoe UI', sans-serif;
    margin: 0;
}

.dashboard-container {
    display: grid;
    grid-template-columns: 1fr 380px; /* Table on left, Rankings on right */
    gap: 20px;
    padding: 25px;
    height: 85vh;
    box-sizing: border-box;
}

.glass-card {
    background: var(--glass);
    backdrop-filter: blur(15px);
    border: 1px solid var(--glass-border);
    border-radius: 15px;
    padding: 20px;
}

/* Container Spacing */
.side-panel {
    padding: 20px; /* Adds space around the ranking content */
    margin-bottom: 20px;
}
.side-title {
    margin-bottom: 20px; /* Adjust this value for more/less space */
    color: #fff;
    font-size: 1.2rem;
}
/* Base Table Styling */
table { 
    width: 100%; 
    border-collapse: collapse; 
}

th { 
    text-align: left; 
    color: #ffcc00; 
    font-size: 0.6rem; 
    padding-bottom: 15px; 
    text-transform: uppercase; 
}

td { 
    padding: 15px 0; 
    border-bottom: 1px solid rgba(255,255,255,0.05); 
}

/* Specific Header Styling: Score */
.header-score {
    text-align: right;
    color: #ffcc00;      /* Your requested color */
    font-weight: 400;   /* Makes it not bold */
}

/* Row Hover Effect */
tbody tr:hover { 
    background: rgba(255,255,255,0.05); 
    cursor: pointer; 
}

/* Column Specifics */
.s-rank-val { 
    color: var(--accent); 
    width: 50px; 
}

.score-val { 
    color: var(--accent); 
    text-align: right; 
    font-weight: bold;
}

/* Hide the dropdown row by default */
.dropdown-content {
    display: none;
    background: rgba(255, 255, 255, 0.05); /* Slight highlight for the expanded area */
}

/* Ensure the recruit container inside doesn't overflow */
.recruit-container {
    padding: 10px;
    width: 100%;
    box-sizing: border-box;
}

.dropdown-content.show {
    display: table-row;
    animation: slideDown 0.4s ease forwards;
}

/* Recruit Container Styling */
.recruit-container {
    padding: 10px 20px 20px 50px; /* Aligns with Team name */
}

.recruit-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.r-rank {
    font-size: 0.7rem;
    color: #ffcc00;
    font-weight: bold;
    opacity: 0.6;
}

.r-name {
    margin: 0;
    font-size: 0.9rem;
    color: #fff;
    font-weight: 500;
}

.r-pos {
    margin: 0;
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.5);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Aesthetic Animation */
@keyframes slideDown {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Hover effect for the main row */
.team-row {
    transition: background 0.3s ease;
    cursor: pointer;
}
.team-row:hover {
    background: rgba(255, 255, 255, 0.08) !important;
}

/* Container that holds the image and the name info */
.player-cell {
    display: flex;          /* This puts children (img and div) in a row */
    align-items: center;    /* Vertically centers the name with the middle of the photo */
    justify-content: flex-start; /* Keeps everything grouped to the left side */
    gap: 12px;              /* Creates space between the photo and the text */
}

/* YOUR TABLE THUMBNAIL FIX */
.player-thumb {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(255, 255, 0, 0.5);
    /* margin-right is no longer strictly needed because of 'gap' above, 
       but keeping it doesn't hurt */
    margin-right: 4px; 
    flex-shrink: 0;         /* Prevents the image from getting squished */
}

/* Ensure the text container doesn't have extra margins */
.player-info {
    display: flex;
    flex-direction: column; /* Stack name and stars vertically */
    text-align: left;       /* Keep text aligned to the left */
}

.name {
    font-weight: bold;
    font-size: 1rem;
    color: #ffffff;
}
/* 1. Force alignment and consistent padding */
.portal-table th, 
.portal-table td {
    text-align: left; /* Ensure both header and data start at the same point */
    padding: 12px 15px; 
    box-sizing: border-box;
}
/* Base Structure for all Status Pills */
.status-pill {
    /* Change display to flex to allow fixed dimensions */
    display: inline-flex;
    align-items: center;
    justify-content: center; /* Keeps text centered */
    
    /* Set fixed dimensions */
    width: 140px;  /* Adjust this value based on your longest text */
    height: 32px;  /* Adjust height as needed */
    
    /* Keep your existing styling */
    padding: 0; /* Remove horizontal padding since width is fixed */
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: 1px solid transparent;
    transition: all 0.3s ease;
    
    /* Prevent text from wrapping or overflowing */
    white-space: nowrap;
    overflow: hidden;
}

/* Status: [Year] Draft Prospect (Gold/Amber) */
.status-draft {
    background: rgba(255, 204, 0, 0.1);
    color: #ffcc00;
    border-color: rgba(255, 204, 0, 0.2);
    box-shadow: 0 0 10px rgba(255, 204, 0, 0.05);
}

/* Status: Committed / Signed (Cyan/Blue) */
/* --- COMMITTED STATUS: Sophisticated Gold Glow --- */
.status-committed {
    background: rgba(255, 204, 0, 0.12); /* Subtle gold tint */
    color: var(--prime-gold);            /* Primary Gold #ffcc00 */
    border: 1px solid rgba(255, 204, 0, 0.4);
    
    /* The subtle glow effect */
    box-shadow: 0 0 15px rgba(255, 204, 0, 0.15);
    
    /* Animation for the "Breathing" glow */
    animation: gold-glow-pulse 3s infinite ease-in-out;
}

/* Keyframes for the soft pulse */
@keyframes gold-glow-pulse {
    0% {
        box-shadow: 0 0 10px rgba(255, 204, 0, 0.1);
        border-color: rgba(255, 204, 0, 0.3);
    }
    50% {
        box-shadow: 0 0 20px rgba(255, 204, 0, 0.3);
        border-color: rgba(255, 204, 0, 0.6);
    }
    100% {
        box-shadow: 0 0 10px rgba(255, 204, 0, 0.1);
        border-color: rgba(255, 204, 0, 0.3);
    }
}
/* Status: Hot Prospect / High Interest (Red/Pink) */
.status-hot {
    background: rgba(255, 71, 87, 0.1);
    color: #ff4757;
    border-color: rgba(255, 71, 87, 0.2);
    animation: pulse-red 2s infinite;

}

.status-underrated {
    background: rgba(168, 35, 46, 0.1);
    color: #e77982;
    border-color: rgba(255, 71, 87, 0.2);

}

/* --- FREE AGENT: Modern Purple/Indigo Glow --- */
.status-free {
    background: rgba(162, 155, 254, 0.15); /* Soft Purple background */
    color: #a29bfe; /* Bright Lavender/Indigo text */
    border: 1px solid rgba(162, 155, 254, 0.4);
    box-shadow: 0 0 12px rgba(162, 155, 254, 0.2);
    font-weight: 650;
    letter-spacing: 0.5px;
    animation: pulse-purple 2s infinite;
}

/* Status: Evaluating / Undecided (Purple) */
.status-evaluating {
    background: rgba(162, 155, 254, 0.1);
    color: #a29bfe;
    border-color: rgba(162, 155, 254, 0.2);
}

/* Status: Stayed / Renewed (Gray/White) */
.status-stayed {
    background: rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.6);
    border-color: rgba(255, 255, 255, 0.1);
}

/* Proffesional Volleyball */
.status-pro {
    background: rgba(0, 242, 255, 0.1);
    color: #00f2ff;
    border: 1px solid rgba(0, 242, 255, 0.4);
}
/* Proffesional Volleyball */
.status-national {
    background: rgba(0, 102, 255, 0.15); /* deeper blue tint */
    color: #3399ff;                      /* bright flag blue */
    border: 1px solid rgba(51, 153, 255, 0.4);
    box-shadow: 0 0 10px rgba(51, 153, 255, 0.2); /* optional glow */
    animation: pulse-national 2s infinite;  
}

/* Collegiate Volleyball */
.status-college {
    background: rgba(0, 242, 255, 0.1);
    color: #73ff00;
    border: 1px solid rgba(217, 255, 0, 0.4);
}

/* --- Rumor Transfer: Warning Orange with a slow pulse --- */
.status-rumor {
    background: rgba(255, 152, 0, 0.1);
    color: #ff9800;
    border: 1px solid rgba(255, 152, 0, 0.3);
    animation: pulse-orange 2.5s infinite;
}

/* --- MEDICAL REDSHIRT: Clinical Blue/Gray --- */
.status-medical {
    background: rgba(148, 163, 184, 0.15);
    color: #cbd5e1;
    border: 1px solid rgba(255, 255, 255, 0.1);
    font-style: italic;
}
/* Container for the status pills within the <td> */
.status-container {
    display: flex;
    flex-direction: column; /* Stacks them vertically */
    gap: 4px;               /* Space between the two pills */
    align-items: flex-start; /* Aligns them to the left */
}

@keyframes pulse-purple {
    0% {
        box-shadow: 0 0 0 0 rgba(162, 155, 254, 0.4);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(162, 155, 254, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(162, 155, 254, 0);
    }
}
@keyframes pulse-national {
    0% {
        box-shadow: 0 0 0 0 rgba(51, 153, 255, 0.5);
        transform: scale(1);
    }
    50% {
        box-shadow: 0 0 15px 5px rgba(51, 153, 255, 0.2);
        transform: scale(1.02);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(51, 153, 255, 0);
        transform: scale(1);
    }
}

.status-national {
    animation: pulse-national 2s infinite;
}
/* Animation for "Hot" Status */
@keyframes pulse-red {
    0% { box-shadow: 0 0 0 0 rgba(255, 71, 87, 0.4); }
    70% { box-shadow: 0 0 0 10px rgba(255, 71, 87, 0); }
    100% { box-shadow: 0 0 0 0 rgba(255, 71, 87, 0); }
}

/* 1. The Container: Set a fixed height and enable scrolling */
.table-container {
    max-height: 600px; /* Adjust this height as needed */
    overflow-y: auto;  /* Vertical scroll */
    overflow-x: auto;  /* Horizontal scroll for mobile/small screens */
    border-radius: 8px;
    position: relative;
}

/* 2. The Header: Make it "Sticky" */
.portal-table thead th {
    position: sticky;
    top: 0;
    z-index: 10;
    background-color: #1a1a1a; /* Must have a solid background color to cover rows as they scroll under */
    box-shadow: 0 2px 2px -1px rgba(0, 0, 0, 0.4); /* Optional: shadow to give "lift" effect */
}

/* 3. Smooth Scrollbar Styling (Optional) */
.table-container::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

.table-container::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 10px;
}

.table-container::-webkit-scrollbar-track {
    background: transparent;
}

/* 2. Column Spacing Controller */
/* Change the width percentages below to adjust your spacing */
.portal-table th:nth-child(1), .portal-table td:nth-child(1) { width: 4%; }  /* Rank */
.portal-table th:nth-child(2), .portal-table td:nth-child(2) { width: 6%; }  /* Rank */
.portal-table th:nth-child(3), .portal-table td:nth-child(3) { width: 20%; } /* Player */
.portal-table th:nth-child(4), .portal-table td:nth-child(4) { width: 4%; }  /* Age */
.portal-table th:nth-child(5), .portal-table td:nth-child(5) { width: 10%; } /* Pos */
.portal-table th:nth-child(6), .portal-table td:nth-child(6) { width: 5%; } /* HT / WT */
.portal-table th:nth-child(7), .portal-table td:nth-child(7) { width: 15%; } /* Status */
.portal-table th:nth-child(8), .portal-table td:nth-child(8) { width: 25%; } /* Movement */


/* 3. The "Alignment Insurance" */
.portal-table {
    width: 100%;
    table-layout: fixed; /* Crucial: Forces columns to strictly follow the widths set above */
    border-collapse: collapse;
}

/* Fix for the Player Cell alignment */
.player-cell {
    display: flex;
    align-items: center;
    gap: 12px;
    text-align: left;
}


.profile-details-grid {
        display: grid;
        grid-template-columns: 1fr 1fr; /* Two equal columns */
        gap: 20px; /* Space between the two boxes */
        margin-top: 20px;
    }

    /* Style for the individual boxes */
    .detail-box {
        background: rgba(255, 255, 255, 0.05);
        border-radius: 15px;
        padding: 20px;
        height: 250px; /* Limits the box size so inner content must scroll */
        display: flex;
        flex-direction: column;
        display: flex;
    }
    /* Test this specifically */
    .report-content, 
    .timeline-container {
        height: 200px !important;    /* Forces a fixed height for testing */
        overflow-y: scroll !important; /* Forces the scrollbar to appear area */
        display: block;               /* Ensures it behaves as a block container */
        padding: 15px;
    }

    /* Ensure the content-carrying div has a boundary */
    #p-report, #p-timeline {
        height: 200px;        /* Forces the box to be exactly this tall */
        overflow-y: auto;     /* Adds the scrollbar ONLY if content is too long */
        overflow-x: hidden;   /* Prevents unwanted side-scrolling */
        display: block;       /* Important if parent is a Flexbox */
    }
    /* Custom Scrollbar for Chrome/Edge/Safari */
    .report-content::-webkit-scrollbar,
    .timeline-container::-webkit-scrollbar {
        width: 8px; /* Width of the scrollbar */
    }

    .report-content::-webkit-scrollbar-track,
    .timeline-container::-webkit-scrollbar-track {
        background: rgba(255, 255, 255, 0.05); /* Dark track */
        border-radius: 10px;
    }

    .report-content::-webkit-scrollbar-thumb,
    .timeline-container::-webkit-scrollbar-thumb {
        background: #ffd700; /* Gold color to match your Rank/Team headers */
        border-radius: 10px;
        border: 2px solid rgba(0, 0, 0, 0.2);
    }

    .detail-box h3 {
        margin-top: 0;
        font-size: 1.2rem;
        color: #ffffff;
        border-bottom: 2px solid #3a3635; /* Accent color */
        padding-bottom: 10px;
        margin-bottom: 15px;
    }

    /* Table Styling */
    .transfer-table {
        width: 100%;
        border-collapse: collapse;
    }

    .transfer-table th, .transfer-table td {
        text-align: left;
        padding: 8px;
        border-bottom: 1px solid #f0f0f0;
    }

    /* Mobile Responsive: Stack them on top of each other on small screens */
    @media (max-width: 768px) {
        .profile-details-grid {
            grid-template-columns: 1fr;
        }
    }

    /* 1. Limit the height and enable scrolling */
.table-scroll-wrapper {
    max-height: 200px;    /* Adjust this height as needed */
    overflow-y: auto;     /* Enables vertical scroll */
    overflow-x: hidden;
    margin-top: 10px;
}

/* 2. Make the header sticky */
.transfer-table thead th {
    position: sticky;
    top: 0;
    background: #1a1a1a; /* Must have a solid background to cover rows behind it */
    z-index: 10;
    padding: 10px;
}

/* 3. Custom Scrollbar (matches your previous theme) */
.table-scroll-wrapper::-webkit-scrollbar {
    width: 6px;
}

.table-scroll-wrapper::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
}

.table-scroll-wrapper::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2); 
    border-radius: 10px;
}

.table-scroll-wrapper::-webkit-scrollbar-thumb:hover {
    background: #ffd700; /* Turns Gold on hover */
}

.search-container {
    position: relative;
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    padding: 5px 15px;
    width: 300px;
}

.search-icon {
    color: rgba(255, 255, 255, 0.6);
    margin-right: 10px;
}

#portalSearch {
    background: none;
    border: none;
    color: white;
    outline: none;
    width: 100%;
    padding: 8px 0;
}

#portalSearch::placeholder {
    color: rgba(255, 255, 255, 0.4);
}
/* Table Rows as Cards */
.portal-table tbody tr {
    cursor: pointer;
    transition: 0.2s;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.portal-table tbody tr:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: scale(1.01);
}

/* Modal Layout Fix */
.modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.8);
    backdrop-filter: blur(8px);
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.modal-content {
    width: 90%;
    max-width: 1000px;
    max-height: 950vh;
    overflow-y: auto;
    border-radius: 20px;
    padding: 30px;
}

.profile-header-section {
    display: flex;
    gap: 30px;
    margin-bottom: 30px;
}

.profile-main-img img {
    width: 180px;
    height: 210px;
    object-fit: cover;
    border-radius: 15px;
}

/* Adjust header to layout title and search side-by-side */
.main-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 20px;
}

/* Modal Styling */
/* 1. Target the specific scroll area inside your modal */
.modal-scroll-area {
    padding: 40px;
    height: 100%;
    overflow-y: auto !important; /* Ensure scrolling is enabled here */
    scrollbar-width: thin; /* Firefox */
    scrollbar-color: #ffcc00 rgba(0, 0, 0, 0.2); /* Firefox */
}

/* 2. Chrome, Edge, and Safari Styling */
.modal-scroll-area::-webkit-scrollbar {
    width: 8px !important; /* Total width of the scrollbar */
}

.modal-scroll-area::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05) !important; /* Dark subtle track */
    border-radius: 10px !important;
}

.modal-scroll-area::-webkit-scrollbar-thumb {
    background: #ffcc00 !important; /* Your brand gold */
    border-radius: 10px !important;
    border: 2px solid rgba(10, 10, 10, 0.8) !important; /* Creates a gap effect around the gold */
    background-clip: content-box;
}

.modal-scroll-area::-webkit-scrollbar-thumb:hover {
    background: #ffd633 !important; /* Brighter gold when hovering */
    box-shadow: 0 0 8px rgba(255, 204, 0, 0.5); /* Glowing effect */
}

/* 3. Aesthetic Polish: Prevent the scrollbar from appearing on the parent card */
.profile-view {
    overflow: hidden !important; 
}

/* Profile Layout */
.profile-header-section { display: grid; grid-template-columns: 250px 1fr; gap: 30px; margin-bottom: 30px; }
.profile-main-img img { width: 100%; border-radius: 10px; border: 1px solid var(--glass-border); }
.quick-stats-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 15px; margin: 20px 0; }
.q-stat { background: rgba(0,0,0,0.2); padding: 15px; border-radius: 8px; border: 1px solid var(--glass-border); }
.q-stat span { display: block; font-size: 0.7rem; color: #aaa; }

.profile-details-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.full-width { grid-column: span 2; }
.detail-box { background: rgba(255,255,255,0.03); padding: 20px; border-radius: 12px; border: 1px solid var(--glass-border); }

/* 1. The Timeline Window (The Box) */
.timeline-container {
    width: 100%;
    height: 150px;            /* Your height (fixed at 150px or 100px) */
    overflow-y: auto;         /* Vertical scroll on */
    overflow-x: hidden;
    padding: 10px 20px;       /* Breathing room inside */
}

/* 2. The Inner Wrapper (The Fix) */
#p-timeline {
    position: relative;
    /* The line is now part of the left border of this container */
    padding-left: 35px;
    margin-left: 10px;        /* Pull it away from the edge */
    display: flex;
    flex-direction: column;
    gap: 15px;
}

/* 3. The Modern Timeline Item */
.timeline-item {
    position: relative;
    display: flex;
    flex-direction: column;
}

/* 4. The Dot (Anchored to the border) */
.time-point {
    position: absolute;
    left: -26px;              /* Perfectly overlays the border-left */
    top: 5px;
    width: 10px;
    height: 10px;
    background: #ffcc00;      /* Your accent gold color */
    border-radius: 50%;
    z-index: 5;
    
    /* THE GLOW: Multiple layers of shadow for a soft light effect */
    box-shadow: 
        0 0 5px #ffcc00,      /* Core glow */
        0 0 10px #ffcc00,     /* Middle glow */
        0 0 20px rgba(255, 204, 0, 0.4); /* Wide faint glow */

    /* Animation: Makes it breathe */
    animation: point-glow 2s infinite ease-in-out;
    transition: transform 0.3s ease;
}

/* Hover Effect: Intensifies the glow */
.timeline-item:hover .time-point {
    transform: scale(1.4);
    box-shadow: 0 0 15px #ffcc00, 0 0 30px #ffcc00;
}

/* The Pulse Animation Keyframes */
@keyframes point-glow {
    0%, 100% {
        box-shadow: 0 0 5px #ffcc00, 0 0 10px rgba(255, 204, 0, 0.6);
        opacity: 1;
    }
    50% {
        /* The glow expands and softens */
        box-shadow: 0 0 12px #ffcc00, 0 0 25px rgba(255, 204, 0, 0.2);
        opacity: 0.8;
    }
}

.timeline-item:hover .time-point {
    transform: scale(1.3);    /* Interactive pop when hovering */
}


.close-btn { position: absolute; top: 20px; right: 25px; font-size: 30px; cursor: pointer; color: white; }
.highlight-btn { background: var(--accent); border: none; padding: 10px 20px; border-radius: 5px; font-weight: bold; cursor: pointer; }
.article-link { color: var(--accent); text-decoration: none; font-weight: bold; }
.title-container {
    display: flex;
    align-items: baseline; /* Aligns text along the bottom edge */
    gap: 15px;            /* Space between title and date */
}

.section-title {
    margin: 0;
    font-size: 1.8rem;
    color: #ffcc00; /* Match your navbar accent color */
}

.as-of-date {
    margin: 0;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6); /* Semi-transparent white */
    font-style: italic;
}

/* Ensure the header spreads title and search bar apart */
.main-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

/* Total Blackout for the Section */
.rankings-restricted-mode {
    background: #000 !important; /* True OLED Black */
    position: relative;
    
    /* CENTERING LOGIC */
    display: flex !important;   /* Uses Flexbox */
    align-items: center;        /* Centers vertically */
    justify-content: center;    /* Centers horizontally */
    
    /* Ensure it fills the screen so it CAN center */
    min-height: 100vh;          /* 100% of the viewport height */
    width: 100%;
    
    overflow: hidden;
    border-radius: 20px;
}
/* 2. THE OVERLAY (Acts as a middle-man) */
.blackout-overlay {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}
/* Hide the inside content completely */
.restricted-content-hidden {
    display: none; /* Content is invisible and un-interactable */
}

/* The Central Aesthetic Card */
.aesthetic-lock-card {
    position: relative;
    z-index: 10;
    text-align: center;
    padding: 60px 40px;
    background: rgba(255, 255, 255, 0.02);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 204, 0, 0.2);
    border-radius: 40px;
    max-width: 450px;
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.8);
}

/* The Lock Visual Icon */
.lock-visual {
    position: relative;
    width: 90px;
    height: 90px;
    margin: 0 auto 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffcc00;
    font-size: 2.5rem;
}

.shimmer-circle {
    position: absolute;
    inset: 0;
    border: 2px solid #ffcc00;
    border-radius: 50%;
    animation: circle-glow 3s infinite ease-in-out;
}

/* Text Styling */
.status-top {
    display: block;
    font-size: 0.75rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: #ffcc00;
    margin-bottom: 10px;
    font-weight: 700;
}

.lock-text h2 {
    color: #fff;
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 15px;
    letter-spacing: -0.5px;
}

.lock-text p {
    color: rgba(255, 255, 255, 0.5);
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 35px;
}

/* Recalibrating Indicator */
.recalibrating-indicator {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 10px 24px;
    background: rgba(255, 204, 0, 0.05);
    border: 1px solid rgba(255, 204, 0, 0.2);
    border-radius: 100px;
    color: #fff;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 1px;
}

.dot-pulse {
    width: 8px;
    height: 8px;
    background: #ffcc00;
    border-radius: 50%;
    box-shadow: 0 0 10px #ffcc00;
    animation: dot-blink 1.5s infinite;
}

/* Animations */
@keyframes circle-glow {
    0%, 100% { transform: scale(1); opacity: 0.3; }
    50% { transform: scale(1.2); opacity: 1; box-shadow: 0 0 20px #ffcc00; }
}

@keyframes dot-blink {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.4; transform: scale(0.8); }
}

/* --- WINDOW LOGIC --- */
input[type="radio"] { display: none; }
.window { display: none; animation: fadeIn 0.5s ease forwards; }

#tab-home:checked ~ .window-container #home-view,
#tab-rankings:checked ~ .window-container #rankings-view,
#tab-teams:checked ~ .window-container #teams-view,
#tab-alas:checked ~ .window-container #alas-view,
#tab-watchlist:checked ~ .window-container #watchlist-view,
#tab-features:checked ~ .window-container #features-view,
#tab-transfer:checked ~ .window-container #transfer-view,
#tab-about:checked ~ .window-container #about-view { display: block; }

#tab-home:checked ~ .navbar label[for="tab-home"],
#tab-rankings:checked ~ .navbar label[for="tab-rankings"],
#tab-teams:checked ~ .navbar label[for="tab-teams"],
#tab-alas:checked ~ .navbar label[for="tab-alas"],
#tab-watchlist:checked ~ .navbar label[for="tab-watchlist"],
#tab-features:checked ~ .navbar label[for="tab-features"],
#tab-transfer:checked ~ .navbar label[for="tab-transfer"],
#tab-about:checked ~ .navbar label[for="tab-about"] {
    color: #ffcc00; border-bottom: 2px solid #ffcc00;
}

/* --- HOME UI --- */
.home-headline-grid {
    display: grid; grid-template-columns: 2fr 1fr; gap: 20px;
}
.headline-hero {
    grid-column: 1 / 2; background: rgba(139, 0, 0, 0.3); padding: 40px; border-radius: 20px;
    border-left: 8px solid #ffcc00;
}
.glass-card {
    background: rgba(255, 255, 255, 0.05); padding: 25px; border-radius: 15px; border: 1px solid rgba(255,255,255,0.1);
}
.custom-list { list-style: none; counter-reset: my-counter; }
.custom-list li {
    padding: 8px 0; border-bottom: 1px solid #333; font-size: 14px; display: flex; align-items: center;
}
.custom-list li::before {
    counter-increment: my-counter; content: counter(my-counter);
    color: #ffcc00; font-weight: bold; margin-right: 15px; width: 20px;
}
.dream-grid { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 15px; }
.dream-player { background: #222; padding: 10px; border-radius: 8px; border: 1px solid #444; font-size: 12px; }
.dream-player span { color: #ffcc00; font-weight: bold; margin-right: 10px; }

/* --- RANKINGS & TABLES --- */
.ranking-tabs h3 { color: #ffcc00; margin-bottom: 15px; text-transform: uppercase; }
.pos-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 15px; }
.pos-card { background: #1a1a1a; padding: 20px; border-radius: 10px; border-top: 3px solid #8b0000; }
.data-table { width: 100%; border-collapse: collapse; }
.data-table th { color: #ffcc00; padding: 15px; text-align: left; border-bottom: 2px solid #8b0000; font-size: 12px; }
.data-table td { padding: 15px; border-bottom: 1px solid #222; font-size: 14px; }

/* 1. Force the table to obey your width rules */
#alasTable {
    table-layout: fixed;
    width: 100%;
}

/* 2. Target specific columns */
/* Jersey No. */
#alasTable th:nth-child(1), 
#alasTable td:nth-child(1) { width: 80px; text-align: center; } 

/* Name */
#alasTable th:nth-child(2),
#alasTable td:nth-child(2) { width: 25%; } 
#alasTable td:nth-child(2) { width: 80px; text-align: left; } 

/* Position */
#alasTable th:nth-child(3), 
#alasTable td:nth-child(3) { width: 15%; } 

/* Team */
#alasTable th:nth-child(4),
#alasTable td:nth-child(4) { width: 18%; } 

/* Height/Age/Exp/Ranking (Remaining space) */
#alasTable th:nth-child(5), #alasTable td:nth-child(5) { width: 10%; } /* Height */
#alasTable th:nth-child(6), #alasTable td:nth-child(6) { width: 7%; }  /* Age */
#alasTable th:nth-child(7), #alasTable td:nth-child(7) { width: 20%; } /* Pro Exp */
#alasTable th:nth-child(8), #alasTable td:nth-child(8) { width: 13%; } /* Ranking */


/* --- ALAS WATCH DASHBOARD --- */
.alas-dashboard { display: grid; grid-template-columns: 2fr 1fr; gap: 20px; }
.video-placeholder {
    height: 300px; background: #222; border-radius: 20px; display: flex; flex-direction: column;
    align-items: center; justify-content: center; cursor: pointer; transition: 0.3s;
}
.video-placeholder:hover { background: #333; color: #ffcc00; }
.video-placeholder i { font-size: 50px; margin-bottom: 10px; }

/* --- FEATURES SECTION --- */
/* The Parent Container */
.features-list {
    display: grid;
    /* This creates two equal columns */
    grid-template-columns: repeat(2, 1fr); 
    gap: 20px; /* Space between the cards */
    padding: 20px 0;
}

/* The Individual Card */
.feature-card {
    display: flex; 
    flex-direction: column; /* Stack image on top of text for better 2-column fit */
    background: rgba(255, 255, 255, 0.05); 
    border-radius: 15px; 
    overflow: hidden;
    transition: transform 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.feature-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.08);
}

/* Image Adjustment */
.feat-img { 
    width: 100%; /* Take full width of the column */
    height: 200px; 
    background: #333; 
}

.feat-img img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Prevents image stretching */
}

.feat-info { 
    padding: 20px; 
}

.feat-info h3 {
    margin-bottom: 10px;
    font-size: 1.2rem;
    color: #fff;
}

.read-more { 
    color: #ffcc00; 
    text-decoration: none; 
    font-size: 12px; 
    font-weight: bold; 
    margin-top: 15px; 
    display: block; 
}

/* Responsive: Back to 1 column on mobile */
@media (max-width: 768px) {
    .features-list {
        grid-template-columns: 1fr;
    }
}

.feature-card {
    display: flex;
    flex-direction: row; /* Image left, text right */
}

.feat-img {
    width: 200px; /* Smaller width to allow room for text */
    flex-shrink: 0; /* Prevents the image from squishing */
}
/* --- ABOUT SECTION --- */
/* Container & Grid */
#about-view {
    padding: 50px;
    border-radius: 24px;
    overflow: hidden;
}

.about-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 60px;
    margin-top: 30px;
}

/* Typography & Narrative */
.section-title {
    font-size: 2.5rem;
    letter-spacing: -1px;
    margin-bottom: 5px;
}

.title-underline {
    width: 60px;
    height: 4px;
    background: var(--accent); /* #ffcc00 */
    border-radius: 2px;
}

.lead-glow {
    font-size: 1.3rem;
    font-weight: 600;
    line-height: 1.4;
    color: #fff;
    margin-bottom: 30px;
    text-align: justify;
    text-justify: inter-word;
    
}

.narrative-body p {
    font-size: 1rem;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 20px;
    text-align: justify;
    text-justify: inter-word;
}

.community-highlight {
    padding: 20px;
    background: rgba(255, 204, 0, 0.1);
    border-left: 3px solid var(--accent);
    color: #fff !important;
    font-style: italic;
}

/* Objective Cards */
.about-objectives {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.objective-card {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    padding: 25px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.objective-card:hover {
    background: rgba(255, 255, 255, 0.07);
    transform: translateY(-5px);
    border-color: var(--accent);
}

.highlight-card {
    background: rgba(255, 204, 0, 0.05);
    border-color: rgba(255, 204, 0, 0.2);
}

.obj-icon {
    font-size: 1.5rem;
    color: var(--accent);
    background: rgba(255, 204, 0, 0.15);
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    flex-shrink: 0;
}

.obj-content h4 {
    margin: 0 0 8px 0;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--accent);
}

.obj-content p {
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.8);
}

/* --- FOOTER --- */
.site-footer {
    margin-top: 50px; padding: 40px; border-top: 1px solid #333; text-align: center; background: #050505;
}
.social-links { margin: 20px 0; }
.social-links a { color: #fff; font-size: 20px; margin: 0 15px; transition: 0.3s; }
.social-links a:hover { color: #ffcc00; }
.copyright { font-size: 12px; color: #777; margin-top: 10px; }

/* --- UTILS --- */
.window-container {
    padding: 100px 50px; height: 100vh; overflow-y: auto;
}
.section-title { color: #ffcc00; font-size: 32px; margin-bottom: 30px; border-left: 5px solid #8b0000; padding-left: 15px; }
.tag { font-size: 10px; padding: 3px 8px; border-radius: 5px; text-transform: uppercase; font-weight: bold; margin-bottom: 10px; display: inline-block; }
.prospect { background: #0018f1; color: #f8f8f8; }
.rising { background: #ffcc00; color: #000000; }
.league { background: #ffcc00; color: #000000; }
.underrated { background: #ffcc00; color: #000000; }
.undertheradar { background: #ff0800; color: #f7f2f2fa; }
.team { background: #000000; color: #ffffff; }
.headline { background: #001bb1; color: #ffffff; }
.pvl { background: #001bb1; color: #ffffff; }
.level { background: #001bb1; color: #ffffff; }
.elite { background: #f18a03; color: #ffffff; }



.portal-modal {
    display: none; /* Hidden by default */
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.8); /* Darken background */
    align-items: center;
    justify-content: center;
}

.portal-modal-content {
    width: 90%;
    max-width: 500px;
    animation: fadeIn 0.3s ease;
}

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

/* Container: Default Player Style (Circular) */
.card-img-container {
    width: 110px;
    height: 110px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%; /* Circle */
    border: 2px solid rgba(255, 204, 0, 0.4); /* Gold Border */
    overflow: hidden;
    transition: all 0.3s ease;
}

.portal-main-img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Player photo fills the circle */
}

/* MODIFIER: Team Logo Look (Transparent & Borderless) */
.card-img-container.is-team {
    background: transparent !important;
    border: none !important;
    border-radius: 0 !important;
    overflow: visible;
}

.card-img-container.is-team .portal-main-img {
    object-fit: contain; /* Logo stays proportional */
    filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.2)); /* Gives logos a subtle pop */
}


/* Header Flex for Title and Arrows */
.section-header-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

/* Safety fix for the grid item containing the slider */
/* Add this to the specific grid column holding the slider */
.home-headline-grid > div {
    min-width: 0;
    overflow: hidden;
}

/* The container stays at the width of your grid column */
.team-slider-container {
    width: 100%;
    overflow: hidden;
    position: relative;
}

.team-slider-track {
    display: flex;
    width: 300%; /* Total width for 3 slides */
    transition: transform 0.5s ease-in-out;
}

.team-slide {
    width: 33.333%; /* Essential: 100% divided by 3 slides */
    flex-shrink: 0;
    min-width: 33.333%;
}

.table-wrapper {
    overflow-x: auto; /* Ensures tables don't break the slide width */
    min-width: 100%; /* Ensures each slide is exactly the same size as the window */
    box-sizing: border-box;
}

/* Force all tables in the slider to have the same layout */
.team-slider-track table {
    table-layout: fixed; /* This is the secret ingredient */
    width: 100%;
    border-collapse: collapse;
}

/* Set specific widths for each column (%) */
/* Total must equal 100% */
.team-slider-track th:nth-child(1), 
.team-slider-track td:nth-child(1) { width: 25%; } /* Position */

.team-slider-track th:nth-child(2), 
.team-slider-track td:nth-child(2) { width: 35%; } /* Name */

.team-slider-track th:nth-child(3), 
.team-slider-track td:nth-child(3) { width: 30%; } /* Team */

.team-slider-track th:nth-child(4), 
.team-slider-track td:nth-child(4) { width: 10%; } /* Age */

/* Handle long names so they don't break the layout */
.team-slider-track td {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis; /* Adds "..." if name is too long */
    padding: 12px 8px;
}

/* Arrow Styling */
.nav-btn {
    background: rgba(255, 204, 0, 0.1);
    border: 1px solid var(--accent);
    color: var(--accent);
    padding: 8px 12px;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s;
}

.nav-btn:hover {
    background: var(--accent);
    color: #000;
}

.slider-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 15px;
}

.dot {
    width: 8px;
    height: 8px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    cursor: pointer;
    transition: 0.3s;
}

.dot.active {
    background: var(--accent); /* Your gold color */
    transform: scale(1.3);
    box-shadow: 0 0 10px var(--accent);
}

/* Layout Wrapper: Forces one-line alignment */
.search-controls-wrapper {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 25px;
    width: 100%;
    max-width: 1000px; /* Adjusted to fit both comfortably */
}
.rank-col {
    white-space: normal;       /* Allows text to wrap to the next line */
    word-wrap: break-word;     /* Breaks long words if they exceed width */
    max-width: 100px;          /* Set a specific width to trigger the wrap */
    line-height: 1.2;          /* Adjusts spacing between wrapped lines */
    text-align: center;        /* Optional: keeps the rank centered */
}
/* Dark Pill Search Bar */
.search-container {
    flex: 2;
    position: relative;
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.1); /* Dark translucent pill */
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 25px;
    padding: 0 15px;
    height: 40px;
}

.search-container input {
    background: transparent;
    border: none;
    color: white;
    width: 100%;
    padding: 8px 10px;
    outline: none;
    font-size: 0.9rem;
}

.search-icon {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9rem;
}

/* White Pill Filter Dropdown */
.filter-container {
    flex: 1;
    min-width: 140px;
}

#statusFilter {
    width: 100%;
    height: 40px;
    padding: 0 35px 0 15px;
    background-color: #ffffff; /* Matches white pill in reference */
    color: #333333;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    outline: none;
    font-size: 0.9rem;
    appearance: none;
    -webkit-appearance: none;
    /* Custom Arrow */
    background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23333' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 12px;
}

#statusFilter option {
    background: #ffffff;
    color: #333333;
}

.glass-search-bar {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 15px;
    padding: 10px 20px;
    display: flex;
    gap: 15px;
    width: 100%;
    max-width: 600px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.search-controls-wrapper {
    display: flex;
    align-items: center;
    margin-bottom: 25px;
    width: 100%;
}

.one-liner-filter {
    display: flex;
    align-items: center;
    gap: 12px;
    /* Prevents the label and select from jumping to two lines */
    flex-wrap: nowrap; 
}

.filter-label-group {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #ffffff;
    font-size: 1rem;
    /* Forces text to stay on one line */
    white-space: nowrap; 
    flex-shrink: 0;
}

#statusFilter {
    background-color: #ffffff;
    color: #333333;
    border: none;
    border-radius: 20px; /* Pill shape from image */
    padding: 6px 35px 6px 15px; /* Extra right padding for the arrow */
    font-size: 0.95rem;
    cursor: pointer;
    outline: none;
    appearance: none;
    -webkit-appearance: none;
    /* Custom chevron arrow from your reference UI */
    background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23333' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 12px;
    min-width: 150px;
    height: 38px;
}

/* Ensure the dropdown list is readable */
#statusFilter option {
    background: #ffffff;
    color: #333333;
}

/* Hide card logic */
.watch-glass-frame.hidden {
    display: none;
}

/* Container for the new filter */
.portal-filter-group {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgb(255, 255, 255);
    padding: 5px 15px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.filter-label {
    color: black;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
}

/* The Dropdown styling */
.portal-custom-select {
    background: transparent;
    color:black;
    border: none;
    font-size: 0.9rem;
    padding: 5px;
    cursor: pointer;
    outline: none;
}

/* Style the dropdown options (browser dependent) */
.portal-custom-select option {
    background-color: white;
    color: black;
    padding: 10px;
}

/* 2. Your Custom Gold Scrollbar Style */
.side-panel::-webkit-scrollbar {
    width: 6px;
}

.side-panel::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
}

.side-panel::-webkit-scrollbar-thumb {
    background: #ffcc00; /* Gold theme */
    border-radius: 10px;
}

.side-panel::-webkit-scrollbar-thumb:hover {
    background: #e6b800;
}

/* 3. Ensure Table Columns stay fixed */
.side-table {
    width: 100%;
    table-layout: fixed; /* Forces columns to respect set widths */
    border-collapse: collapse;
}

.side-table th:nth-child(1), .side-table td:nth-child(1) { width: 50px; }  /* Rank */
.side-table th:nth-child(2), .side-table td:nth-child(2) { width: auto; }  /* Team Name */
.side-table th:nth-child(3), .side-table td:nth-child(3) { width: 70px; text-align: right; } /* Score */

.side-filter-container .portal-custom-select {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    padding: 8px;
    border-radius: 5px;
    font-size: 0.85rem;
}

/* Ensure the scrollbar doesn't move columns when searching */
.side-panel {
    scrollbar-gutter: stable;
    max-height: 1300px;
    overflow-y: auto;
}

/* Gold focus for search */
.side-filter-container input:focus {
    outline: none;
    border-color: #ffcc00;
    box-shadow: 0 0 5px rgba(255, 204, 0, 0.5);
}

/* Targets the stars container and applies the gold theme */
.stars {
    color: var(--prime-gold); /* Uses your existing gold color #ffcc00 */
    font-size: 1.2rem;       /* Adjust size as needed */
    letter-spacing: 2px;     /* Adds a small gap between stars */
    text-shadow: 0 0 10px rgba(255, 204, 0, 0.3); /* Optional: Adds a subtle gold glow */
}

/* Targets the specific rating element in your JS */
#p-rating {
    color: var(--prime-gold); /* Uses #ffcc00 from your root variables */
    font-size: 1rem;
    letter-spacing: 2px;
    text-shadow: 0 0 8px rgba(255, 204, 0, 0.4); /* Adds a subtle gold glow */
}

/* General Trend Styling */
.trend-icon {
    font-weight: bold;
    font-size: 1.1em;
    padding: 2px 6px;
    border-radius: 4px;
}

/* Specific Colors */
.trend-up {
    color: #28a745; /* Modern Green */
    background-color: rgba(40, 167, 69, 0.1); /* Subtle green background */
}

.trend-down {
    color: #dc3545; /* Power Red */
    background-color: rgba(220, 53, 69, 0.1); /* Subtle red background */
}

.trend-neutral {
    color: #6c757d; /* Gray for staying the same */
    background-color: rgba(108, 117, 125, 0.1);
}

.power-value {
    font-weight: bold;
}

/* 1. CONTENDER - Intense Gold Glow */
.status-contender {
    background-color: #fffde7;
    color: #fbc02d;
    border-color: #fbc02d;
    box-shadow: 0 0 15px rgba(251, 192, 45, 0.6), inset 0 0 5px rgba(251, 192, 45, 0.3);
    text-shadow: 0 0 5px rgba(251, 192, 45, 0.4);
    animation: gold-pulse 2s infinite;
}

/* 2. ON THE RISE - Electric Blue Glow */
.status-ontherise {
    background-color: #e3f2fd;
    color: #1976d2;
    border-color: #1976d2;
    box-shadow: 0 0 15px rgba(25, 118, 210, 0.5);
    text-shadow: 0 0 5px rgba(25, 118, 210, 0.3);
}

/* 3. DARK HORSE - Neon Purple Glow */
.status-darkhorse {
    background-color: #f3e5f5;
    color: #7b1fa2;
    border-color: #7b1fa2;
    box-shadow: 0 0 15px rgba(123, 31, 162, 0.5);
}

/* 4. REBUILDING - Warm Orange Glow */
.status-rebuilding {
    background-color: #fff3e0;
    color: #e65100;
    border-color: #e65100;
    box-shadow: 0 0 10px rgba(230, 81, 0, 0.4);
}

/* --- ANIMATIONS --- */

@keyframes gold-pulse {
    0% { box-shadow: 0 0 5px rgba(251, 192, 45, 0.6); }
    50% { box-shadow: 0 0 20px rgba(251, 192, 45, 0.9); }
    100% { box-shadow: 0 0 5px rgba(251, 192, 45, 0.6); }
}

#teamSearchInput {
    background-color: rgba(255, 255, 255, 0);
    color: wheat;
    border: 1px solid #ddd;
    margin-left: 10px;
    width: 200px;
    transition: all 0.3s ease;
}

#teamSearchInput:focus {
    outline: none;
    border-color: #fbc02d; /* Gold glow on focus */
    box-shadow: 0 0 5px rgba(251, 192, 45, 0.5);
}

.filter-group i {
    margin-right: 8px;
    color: #ffffff;
}

/* Circular Image Container */
.player-identity {
    display: flex;
    align-items: center;
}

.img-container {
    width: 42px;
    height: 42px;
    border-radius: 50%; /* Perfect Circle */
    overflow: hidden;
    border: 2px solid #eee;
    margin-right: 12px;
    flex-shrink: 0;
}

.img-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Star Rating Styling */
.star-rating {
    font-size: 11px;
    margin-top: 2px;
    display: block;
}

.gold-star { color: #FFD700; }
.gray-star { color: #ccc; }

/* Rank Styling */
.rank-cell { font-weight: 800; font-size: 1.1em; text-align: left; }

.league-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    border-bottom: 2px solid #333;
    padding-bottom: 10px;
}

.tab-btn {
    background: #f7f7f7;
    color: rgb(0, 0, 0);
    border: 1px solid #444;
    padding: 8px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    transition: 0.3s;
}

.tab-btn.active {
    background: #ffd700;
    color: black;
    border-color: #ffd700;
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.3);
}

.tab-btn:hover:not(.active) {
    background: #444;
}

/* This ensures the info stays stacked and doesn't stretch weirdly */
.portal-card-header-info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
}

/* Transfer Portal Badge */
.portal-badge {
    background: #00f2ff; /* Neon Cyan */
    color: #000;
    font-size: 9px;
    font-weight: 900;
    padding: 2px 5px;
    border-radius: 3px;
    display: inline-flex;
    align-items: center;
    gap: 3px;
    box-shadow: 0 0 10px rgba(0, 242, 255, 0.5);
    animation: pulse-portal 2s infinite;
}

@keyframes pulse-portal {
    0% { opacity: 1; }
    50% { opacity: 0.7; }
    100% { opacity: 1; }
}

/* Optional: Highlight the whole row for portal players */
.player-row[data-portal="true"] {
    background: rgba(0, 242, 255, 0.03) !important;
}

