.profile .profile-wrap.dark{background:linear-gradient(180deg,#1f2937,#111827);padding:20px;font-family:Inter,sans-serif;color:#e5e7eb}

/* HEADER */
.profile .profile-card{display:flex;justify-content:space-between;align-items:center;background:#1f2937;border-radius:14px;padding:20px;box-shadow:0 8px 24px rgba(0,0,0,.5);border:1px solid rgba(255,255,255,.06)}
.profile .left{display:flex;align-items:center;gap:16px}
.profile .profile-pic{width:160px;height:160px;border-radius:12px;object-fit:cover;border:3px solid #991b1b}
.profile .player-meta h1{margin:0;font-size:24px;letter-spacing:1px;color:#f3f4f6}
.profile .tagline{font-size:13px;color:#9ca3af;margin-top:4px}
.profile .badges{margin-top:8px;display:flex;gap:6px}
.profile .badge{font-size:10px;padding:4px 8px;border-radius:6px;font-weight:bold}
.profile .badge.green{background:#052e1a;color:#4ade80}
.profile .badge.red{background:#3f0d0d;color:#f87171}
.profile .profile-card .right{display:flex;gap:12px;padding:10px 0px;border-width: 4px 0px;border-block-style: inset;border-color: #666;}
.profile .stat-box{background:#111827;padding:10px 14px;border-radius:10px;text-align:center;min-width:80px;border:1px solid rgba(255,255,255,.06)}
.profile .stat-box span{display:block;font-size:11px;color:#9ca3af}
.profile .stat-box strong{font-size:18px;color:#f9fafb}

/* QUICK STRIP */
.profile .quick-strip{display:grid;grid-template-columns:repeat(4,1fr);gap:10px;margin-top:14px}
.profile .quick-strip div{background:#1f2937;padding:10px;border-radius:10px;text-align:center;border:1px solid rgba(255,255,255,.05)}
.profile .quick-strip span{font-size:11px;color:#9ca3af}
.profile .quick-strip strong{display:block;font-size:18px;margin-top:4px}
/*.profile .green{color:#4ade80}*/

/* TABS */
.profile .tabs{display:flex;gap:8px;margin:16px 0}
.profile .tabs button{padding:8px 14px;border-radius:8px;border:1px solid rgba(255,255,255,.08);background:#1f2937;color:#d1d5db;cursor:pointer;transition:.2s}
.profile .tabs button:hover{background:#374151}
.profile .tabs button.active{background:#991b1b;color:#fff;border-color:#991b1b}

/* LAYOUT */
.profile .content-grid{display:grid;grid-template-columns:2fr 1fr;gap:16px;margin-top:16px}
.profile .main-column{display:flex;flex-direction:column;gap:14px}
.profile .sidebar{display:flex;flex-direction:column;gap:14px;position:sticky;top:20px}

/* CARDS */
.profile .card{background:#1f2937;padding:16px;border-radius:12px;border:1px solid rgba(255,255,255,.05);transition:.2s}
.profile .card:hover{transform:translateY(-2px)}
.profile .card h3{margin:0 0 10px 0;font-size:16px;color:#f3f4f6}
.profile .grid-stats{display:grid;gap:6px}

/* CHAMPIONSHIPS */
/* TROPHY CASE WRAPPER */
.profile .medal-case{background:#1f2937;border-radius:12px;padding:14px;border:12px outset rgba(255,255,255,.40);display:flex;flex-direction:column;gap:12px}
.profile .medal-case{box-shadow:inset 0 1px 0 rgba(255,255,255,.04)}
.profile .medal-summary{display:flex;gap:12px}
.profile .medal{flex:1;display:flex;align-items:center;gap:8px;padding:10px 10px 10px 10px;border-radius:10px;background:#111827;border:1px solid rgba(255,255,255,.06);transition:.2s}
.profile .medal:hover{transform:translateY(-2px)}
.profile .medal .icon{font-size:18px;font-size: 18px;background-color: #f3f3f1;padding: 3px 6px;border-radius: 5px;margin-right: 43px;box-shadow: 2px 2px 2px #999}
.profile .medal .count{font-size:18px;font-weight:800}
.profile .medal .label{font-size:14px;color:#9ca3af}
.profile .medal.gold .count{color:#facc15}
.profile .medal.silver .count{color:#cbd5f5}
.profile .medal.bronze .count{color:#d97706}
.profile .medal-breakdown{display:flex;flex-direction:column;gap:6px}
.profile .league-row{display:flex;align-items:center;gap:10px;padding:8px 10px;border-radius:8px;background:#111827;border:1px solid rgba(255,255,255,.05);transition:.2s}
.profile .league-row:hover{background:#1f2937;transform:translateY(-1px)}
.profile .league-row img.breakdownlogo{width:40px;object-fit:contain}
.profile .league-info{display:flex;justify-content:space-between;align-items:center;width:100%}
.profile .league-name{font-size:13px;color:#f3f4f6}
.profile .medal-results{display:flex;gap:12px;font-size:12px;font-weight:600}
.profile .medal-results .gold{color:#facc15}
.profile .medal-results .silver{color:#cbd5f5}
.profile .medal-results .bronze{color:#d97706}
.profile .medal-results .zero{opacity:.35}
.profile .league-row.red{border-left:3px solid #dc2626;background:linear-gradient(90deg,rgba(220,38,38,.08),transparent);padding-left:8px}
.profile .league-row.green{border-left:3px solid #16a34a;background:linear-gradient(90deg,rgba(22,163,74,.08),transparent);padding-left:8px}
.profile .league-row.orange{border-left:3px solid #ea580c;background:linear-gradient(90deg,rgba(234,88,12,.08),transparent);padding-left:8px}
.profile .league-row.blue{border-left:3px solid #2563eb;background:linear-gradient(90deg,rgba(37,99,235,.08),#111827)}
.profile .league-row.purple{border-left:3px solid #9333ea;background:linear-gradient(90deg,rgba(147,51,234,.08),#111827)}

.profile .season-title{font-size:11px;color:#9ca3af;text-transform:uppercase;letter-spacing:.5px}


/* HEADER */
.profile .league-header{display:flex;align-items:center;gap:8px;font-size:12px;font-weight:700;color:#f3f4f6}



.profile .season-side { display:flex; flex-direction:column; gap:6px; }

.profile .season-side .season-league { border-radius:10px; padding:8px 10px; background:rgba(255,255,255,0.03); box-shadow:0 2px 6px rgba(0,0,0,0.35); }

.profile .season-side .league-header { display:flex; align-items:center; gap:6px; font-weight:600; margin-bottom:6px; font-size:13px; }

.profile .season-side .league-header img { height:40px; padding:2px; background:rgba(255,255,255,0.05); border-radius:6px; }

.profile .season-side .season-row { display:flex; align-items:center; justify-content:space-between; padding:6px 6px; border-radius:6px; background:rgba(0,0,0,0.2); margin-bottom:3px; }

.profile .season-side .season-label { font-size:11px; font-weight:600; opacity:0.75; }

.profile .season-side .season-results { display:flex; gap:8px; }

.profile .season-side .result { display:flex; flex-direction:row; align-items:center; gap:4px; font-size:11px; }

.profile .season-side .result span { opacity:0.6; font-size:10px; }

.profile .season-side .result b { font-size:12px; }

.profile .season-side .result.playoffs b { color:#ffd700; }

.profile .season-side .season-row:not(:last-child) { border-bottom:1px solid rgba(255,255,255,0.04); }





/* FEATURED LEAGUE */
.league-row.frdl{border-left:3px solid #facc15;padding-left:8px}

/* BREAKDOWN */
.profile .trophy-breakdown{display:flex;flex-direction:column;gap:8px}
.profile .league-row{display:flex;align-items:center;gap:10px;padding:4px 10px;border-radius:8px;background:#111827;border:1px solid rgba(255,255,255,.05)}

.profile .league-info{display:flex;justify-content:space-between;align-items:center;width:100%}

.profile .league-results{display:flex;gap:10px;font-size:12px}
.profile .league-results .gold{color:#facc15}
.profile .league-results .silver{color:#cbd5f5}
.profile .league-results .bronze{color:#d97706}
/* SIDEBAR */
.profile .side-card{background:#1f2937;border-radius:12px;padding:14px;border:1px solid rgba(255,255,255,.05)}
.profile .side-card h4{margin:0 0 10px 0;font-size:14px;color:#f3f4f6}
.profile .side-stat{display:flex;justify-content:space-between;font-size:13px;margin-bottom:6px}
.profile .side-stat span{color:#9ca3af}
.profile .side-stat b{color:#f3f4f6}
.profile .gold{color:#facc15}

/* FORM */
.profile .form{display:flex;gap:6px}
.profile .form span{width:24px;height:24px;display:flex;align-items:center;justify-content:center;border-radius:6px;font-size:12px;font-weight:bold}
.profile .form .win{background:#14532d;color:#4ade80}
.profile .form .loss{background:#3f0d0d;color:#f87171}

/* TABLE */
.profile .stats-table{width:100%;border-collapse:collapse;font-size:13px}
.profile .stats-table th{text-align:left;color:#9ca3af;padding:6px;border-bottom:1px solid rgba(255,255,255,.08)}
.profile .stats-table td{padding:6px;border-bottom:1px solid rgba(255,255,255,.04)}
.profile .stats-table .win{color:#4ade80;font-weight:bold}
.profile .stats-table .loss{color:#f87171;font-weight:bold}

/* SLIDERS */
.slider-stat{display:grid;grid-template-columns:140px 1fr 60px;align-items:center;gap:10px;margin-bottom:10px}
.slider-stat .label{font-size:12px;color:#9ca3af}
.slider-stat .value{font-size:12px;text-align:right;color:#e5e7eb}
.slider{height:8px;background:#111827;border-radius:6px;overflow:hidden;border:1px solid rgba(255,255,255,.05);position:relative}
.fill{height:100%;background:#374151}
.fill.green{background:#16a34a}
.fill.red{background:#dc2626}
.fill.gold{background:#facc15}
.slider::after{content:'';position:absolute;top:0;bottom:0;width:2px;background:rgba(255,255,255,.15)}


.profile .current-leagues-panel{display:flex;flex-direction:column;gap:4px}

.profile .current-leagues-panel .league-bar{display:flex;align-items:center;gap:14px;padding:6px 14px;border-radius:12px;background:#111827;border:1px solid rgba(255,255,255,.06);position:relative;overflow:hidden}

.profile .current-leagues-panel .logo{width:42px;height:42px;object-fit:contain;flex-shrink:0}

.profile .current-leagues-panel .info{display:flex;flex-direction:column;gap:6px;min-width:0}

.profile .current-leagues-panel .name, .medal-case .medal-breakdown .league-name{font-size:14px;font-weight:800;color:#f3f4f6}

.profile .current-leagues-panel .stats{display:flex;gap:14px;font-size:12px;color:#9ca3af;flex-wrap:wrap}

.profile .current-leagues-panel .stats span{white-space:nowrap}

.profile .current-leagues-panel .rank-badge{margin-left:auto;font-size:14px;font-weight:900;padding:8px 14px;border-radius:8px;background:#1f2937;border:1px solid rgba(255,255,255,.08);color:#e5e7eb}

/* LEAGUE COLORS */
.profile .current-leagues-panel .league-bar.red,.profile .season-side .season-league.red  {border-left:3px solid #dc2626}
.profile .current-leagues-panel .league-bar.green,.profile .season-side .season-league.green{border-left:3px solid #16a34a}
.profile .current-leagues-panel .league-bar.orange,.profile .season-side .season-league.orange{border-left:3px solid #ea580c}
.profile .current-leagues-panel .league-bar.blue,.profile .season-side .season-league.blue{border-left:3px solid #2563eb}
.profile .current-leagues-panel .league-bar.purple,.profile .season-side .season-league.purple{border-left:3px solid #9333ea}


/* SUBTLE COLOR WASH */
.profile .current-leagues-panel .league-bar.red::before{content:'';position:absolute;inset:0;background:linear-gradient(90deg,rgba(220,38,38,.10),transparent 60%)}
.profile .current-leagues-panel .league-bar.green::before{content:'';position:absolute;inset:0;background:linear-gradient(90deg,rgba(22,163,74,.10),transparent 60%)}
.profile .current-leagues-panel .league-bar.orange::before{content:'';position:absolute;inset:0;background:linear-gradient(90deg,rgba(234,88,12,.10),transparent 60%)}

/* KEEP CONTENT ABOVE GRADIENT */
.profile .current-leagues-panel .league-bar > *{position:relative;z-index:1}

.profile .match-vs{display:none}
.profile .section-title{margin-top:0px;}
.profile .matches-wrapper{margin-top:5px;}

.profile select[name="sltSubset"]{margin-bottom:20px;appearance:none;-webkit-appearance:none;-moz-appearance:none;width:100%;padding:10px 36px 10px 12px;border-radius:10px;background:#0b1220;border:1px solid rgba(255,255,255,.08);color:#e5e7eb;font-size:13px;font-weight:600;letter-spacing:.3px;outline:none;position:relative;box-shadow:inset 0 1px 0 rgba(255,255,255,.04),0 4px 12px rgba(0,0,0,.4);cursor:pointer}

/* CUSTOM ARROW */
.profile select[name="sltSubset"]{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%23facc15' stroke-width='2'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M19 9l-7 7-7-7'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right 10px center;background-size:14px}

/* FOCUS STATE */
.profile select[name="sltSubset"]:focus{border-color:rgba(250,204,21,.6);box-shadow:0 0 0 1px rgba(250,204,21,.4),0 0 10px rgba(250,204,21,.25)}

/* HOVER (SUBTLE, NOT FLASHY) */
.profile select[name="sltSubset"]:hover{background:#111827}

/* OPTION DROPDOWN (LIMITED CONTROL BUT HELPS) */
.profile select[name="sltSubset"] option{background:#0b1220;color:#e5e7eb}

/* TITLE */
.profile .section-title{font-size:10px;color:#6b7280;text-transform:uppercase;letter-spacing:1.2px;margin-bottom:6px}

.profile button a{color:#fff;text-decoration: none;}
.profile .location{font-size:12px; margin-top:10px;}

.medal-breakdown .trophyicon{position:relative;top:4px;right:2px;}
.medal-summary .trophyicon{position:relative;top:3px;}

.statlogo{height:30px;}
td.ShortName{text-transform: uppercase;font-size:0.9em}
table + table{margin-top:40px;}

/* Container setup */
.byscores {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 10px;
    
    justify-content: center; /* Center align the cards */
}

/* Each card */
.byscore {
    flex: 0 0 7%; /* Smaller width to fit 12 per row */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(145deg, #ffffff, #e6e6e6); /* Soft gradient */
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 10px;
    height: 70px; /* Reduced height */
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease-in-out, box-shadow 0.2s;
    overflow: hidden;
    position: relative;
}

/* Hover effect with greyscale colors */
.byscore:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
    background: #f0f0f0; /* Light grey on hover */
    color: #333;
}

/* Decorative border animation with greyscale */
.byscore:before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 8px;
    border: 1px solid transparent;
    background: linear-gradient(45deg, #ccc, #aaa, #888, #666);
    background-size: 300%;
    z-index: -1;
    transition: 0.5s;

}

.byscore:hover:before {
    animation: borderMove 3s linear infinite;
}

/* Animating the border */
@keyframes borderMove {
    0% { background-position: 0%; }
    100% { background-position: 300%; }
}

/* Styling for top and bottom sections */
.byscorenumber, .byscoretimes {
    text-align: center;
    font-weight: bold;
    color: #444;
}

/* Style top section with minimal color and font adjustments */
.byscorenumber {
    font-size: 1em;
    font-weight: 600;
    font-family:georgia;
   
}

/* Style bottom section with a smaller font */
.byscoretimes {
    color: #555;
    font-size: 0.85em;
    font-weight: 500;
    
}

.players-grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(200px,1fr)); gap:20px; }

.players-grid .player-card { background:#0b0f14; border:1px solid rgba(255,255,255,0.05); border-radius:16px; overflow:hidden; transition:0.3s ease; width:190px;}

/*.players-grid .player-card:hover { transform:translateY(-6px); box-shadow:0 10px 25px rgba(255,0,60,0.2); border-color:rgba(255,0,60,0.3); }*/

.players-grid .player-link { display:block; text-decoration:none; color:inherit; }

.players-grid .player-image { position:relative; width:100%; aspect-ratio:1/1; overflow:hidden; }

.players-grid .player-image img { width:100%; height:100%; object-fit:cover; transition:0.4s; }

/*.players-grid .player-card:hover img { transform:scale(1.05); }*/

.players-grid .image-overlay { position:absolute; bottom:0; left:0; width:100%; padding:0px; background:linear-gradient(to top,rgba(0,0,0,0.9),rgba(0,0,0,0)); }

.players-grid .player-name { font-size:16px; font-weight:600; width:100%;text-align:left;text-shadow:2px 2px 2px #000;}

.players-grid a.playercardlink{color:#fff;}

.players-grid .player-nickname { font-size:12px; color:#ff4d4d; }

.players-grid .championships { position:absolute; top:10px; right:10px; background:rgba(0,0,0,0.75); padding:4px 8px; border-radius:8px; font-size:14px; color:gold; display:none; font-weight:bold}

.players-grid .player-card.has-championships .championships { display:block; }

.players-grid .player-body { padding:0px; }

.players-grid .stats { display:flex; justify-content:space-between; font-size:12px; margin-bottom:10px; }

.players-grid .stats span { display:block; color:#888; }

.players-grid .stats strong { font-size:14px; color:#fff; }

.players-grid .leagues { display:flex; gap:6px; flex-wrap:wrap; justify-content: center;}

.players-grid .leagues img { width:30px; height:30px; object-fit:contain; background:#111; padding:3px; border-radius:6px; opacity:0.85; transition:0.2s; }

.players-grid .leagues img:hover { opacity:1; transform:scale(1.1); }

.players-grid .top-stats { position:absolute; top:0; left:0; width:100%; display:flex; justify-content:space-between; padding:8px 10px; background:linear-gradient(to bottom,rgba(0,0,0,0.85),rgba(0,0,0,0)); font-size:11px; }

.players-grid .top-stats span { display:block; color:#aaa; font-size:10px; }

.players-grid .top-stats strong { color:#fff; font-size:12px; }

.players-grid .top-stats div { text-align:center; flex:1; }

.players-grid .player-info{padding:0px 14px;}

/* tweak championship so it doesn't collide */


.players-grid .overlay-stats { display:flex; justify-content:space-between; font-size:11px; background-color:rgba(220, 20, 60,0.8)}

.players-grid .overlay-stats div { text-align:center; flex:1; }

.players-grid .overlay-stats span { display:block; color:#aaa; font-size:10px; }

.players-grid .overlay-stats strong { color:#fff; font-size:12px; }

.players-grid .overlay-leagues { display:flex; justify-content:center; gap:6px; margin-top:1px; flex-wrap:wrap;background-color:#000; }

.players-grid .overlay-leagues img { width:22px; height:22px; object-fit:contain; background:rgba(0,0,0,0.6); padding:3px; border-radius:5px; opacity:0.9; transition:0.2s; }

.players-grid .overlay-leagues img:hover { opacity:1; transform:scale(1.1); }