/* ==========================================================================
   CSS COMPLETO - Tailwind + Header Nuevo + Tabla Personalizada
   ========================================================================== */

/* ==================== VARIABLES ==================== */
:root {
    --bg-blast: #ebf5fa;
    --bg-batting: #e3f3fb;
    --bg-defense: #f2effc;
    --bg-running: #fcf1fa;
    --bg-biomech: #ecfbf2;
    --bg-rapsodo: #e3f3fb;
    --bg-games: #f2effc;
    
    --text-blast: #2b7bc4;
    --text-batting: #1a95e0;
    --text-defense: #6b53db;
    --text-running: #b949cd;
    --text-biomech: #199c4c;
    --text-rapsodo: #1a95e0;
    --text-games: #6b53db;
    
    --text-muted: #9ca3af;
    --border-light: #f3f4f6;
    --border-div: #e5e7eb;
    
    --rk-w: 52px;
    --name-w: 260px;
}

/* ==================== BASE ==================== */
body {
    font-family: 'Inter', sans-serif !important;
    background-color: #f8fafc;
    color: #1e293b;
    margin: 0;
    line-height: inherit;
}

/* ==================== TAILWIND RESET ==================== */
*, ::before, ::after {
    --tw-border-spacing-x: 0;
    --tw-border-spacing-y: 0;
    --tw-translate-x: 0;
    --tw-translate-y: 0;
    --tw-rotate: 0;
    --tw-skew-x: 0;
    --tw-skew-y: 0;
    --tw-scale-x: 1;
    --tw-scale-y: 1;
    --tw-pan-x: ;
    --tw-pan-y: ;
    --tw-pinch-zoom: ;
    --tw-scroll-snap-strictness: proximity;
    --tw-gradient-from-position: ;
    --tw-gradient-via-position: ;
    --tw-gradient-to-position: ;
    --tw-ordinal: ;
    --tw-slashed-zero: ;
    --tw-numeric-figure: ;
    --tw-numeric-spacing: ;
    --tw-numeric-fraction: ;
    --tw-ring-inset: ;
    --tw-ring-offset-width: 0px;
    --tw-ring-offset-color: #fff;
    --tw-ring-color: rgb(59 130 246 / 0.5);
    --tw-ring-offset-shadow: 0 0 #0000;
    --tw-ring-shadow: 0 0 #0000;
    --tw-shadow: 0 0 #0000;
    --tw-shadow-colored: 0 0 #0000;
    --tw-blur: ;
    --tw-brightness: ;
    --tw-contrast: ;
    --tw-grayscale: ;
    --tw-hue-rotate: ;
    --tw-invert: ;
    --tw-saturate: ;
    --tw-sepia: ;
    --tw-drop-shadow: ;
    --tw-backdrop-blur: ;
    --tw-backdrop-brightness: ;
    --tw-backdrop-contrast: ;
    --tw-backdrop-grayscale: ;
    --tw-backdrop-hue-rotate: ;
    --tw-backdrop-invert: ;
    --tw-backdrop-opacity: ;
    --tw-backdrop-saturate: ;
    --tw-backdrop-sepia: ;
    --tw-contain-size: ;
    --tw-contain-layout: ;
    --tw-contain-paint: ;
    --tw-contain-style: ;
}

::backdrop {
    --tw-border-spacing-x: 0;
    --tw-border-spacing-y: 0;
    --tw-translate-x: 0;
    --tw-translate-y: 0;
    --tw-rotate: 0;
    --tw-skew-x: 0;
    --tw-skew-y: 0;
    --tw-scale-x: 1;
    --tw-scale-y: 1;
    --tw-pan-x: ;
    --tw-pan-y: ;
    --tw-pinch-zoom: ;
    --tw-scroll-snap-strictness: proximity;
    --tw-gradient-from-position: ;
    --tw-gradient-via-position: ;
    --tw-gradient-to-position: ;
    --tw-ordinal: ;
    --tw-slashed-zero: ;
    --tw-numeric-figure: ;
    --tw-numeric-spacing: ;
    --tw-numeric-fraction: ;
    --tw-ring-inset: ;
    --tw-ring-offset-width: 0px;
    --tw-ring-offset-color: #fff;
    --tw-ring-color: rgb(59 130 246 / 0.5);
    --tw-ring-offset-shadow: 0 0 #0000;
    --tw-ring-shadow: 0 0 #0000;
    --tw-shadow: 0 0 #0000;
    --tw-shadow-colored: 0 0 #0000;
    --tw-blur: ;
    --tw-brightness: ;
    --tw-contrast: ;
    --tw-grayscale: ;
    --tw-hue-rotate: ;
    --tw-invert: ;
    --tw-saturate: ;
    --tw-sepia: ;
    --tw-drop-shadow: ;
    --tw-backdrop-blur: ;
    --tw-backdrop-brightness: ;
    --tw-backdrop-contrast: ;
    --tw-backdrop-grayscale: ;
    --tw-backdrop-hue-rotate: ;
    --tw-backdrop-invert: ;
    --tw-backdrop-opacity: ;
    --tw-backdrop-saturate: ;
    --tw-backdrop-sepia: ;
    --tw-contain-size: ;
    --tw-contain-layout: ;
    --tw-contain-paint: ;
    --tw-contain-style: ;
}

/* Tailwind reset */
*, ::after, ::before {
    box-sizing: border-box;
    border-width: 0;
    border-style: solid;
    border-color: #e5e7eb;
}

::after, ::before {
    --tw-content: '';
}

:host, html {
    line-height: 1.5;
    -webkit-text-size-adjust: 100%;
    -moz-tab-size: 4;
    tab-size: 4;
    font-family: ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
    font-feature-settings: normal;
    font-variation-settings: normal;
    -webkit-tap-highlight-color: transparent;
}

body {
    margin: 0;
    line-height: inherit;
}

hr {
    height: 0;
    color: inherit;
    border-top-width: 1px;
}

abbr:where([title]) {
    -webkit-text-decoration: underline dotted;
    text-decoration: underline dotted;
}

h1, h2, h3, h4, h5, h6 {
    font-size: inherit;
    font-weight: inherit;
}
#p-name{
    color: #fff !important;
    display: flex;
    align-items: center;
    gap: 10px;
}
.text16 span{
    font-size: 16px;
}
a {
    color: inherit;
    text-decoration: inherit;
}

b, strong {
    font-weight: bolder;
}

code, kbd, pre, samp {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
    font-feature-settings: normal;
    font-variation-settings: normal;
    font-size: 1em;
}

small {
    font-size: 80%;
}

sub, sup {
    font-size: 75%;
    line-height: 0;
    position: relative;
    vertical-align: baseline;
}

sub {
    bottom: -.25em;
}

sup {
    top: -.5em;
}

table {
    text-indent: 0;
    border-color: inherit;
    border-collapse: collapse;
}

button, input, optgroup, select, textarea {
    font-family: inherit;
    font-feature-settings: inherit;
    font-variation-settings: inherit;
    font-size: 100%;
    font-weight: inherit;
    line-height: inherit;
    letter-spacing: inherit;
    color: inherit;
    margin: 0;
    padding: 0;
}

button, select {
    text-transform: none;
}

button, input:where([type=button]), input:where([type=reset]), input:where([type=submit]) {
    -webkit-appearance: button;
    background-color: transparent;
    background-image: none;
}

:-moz-focusring {
    outline: auto;
}

:-moz-ui-invalid {
    box-shadow: none;
}

progress {
    vertical-align: baseline;
}

::-webkit-inner-spin-button, ::-webkit-outer-spin-button {
    height: auto;
}

[type=search] {
    -webkit-appearance: textfield;
    outline-offset: -2px;
}

::-webkit-search-decoration {
    -webkit-appearance: none;
}

::-webkit-file-upload-button {
    -webkit-appearance: button;
    font: inherit;
}

summary {
    display: list-item;
}

blockquote, dd, dl, figure, h1, h2, h3, h4, h5, h6, hr, p, pre {
    margin: 0;
}

menu, ol, ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

dialog {
    padding: 0;
}

textarea {
    resize: vertical;
}

input::placeholder, textarea::placeholder {
    opacity: 1;
    color: #9ca3af;
}

[role=button], button {
    cursor: pointer;
}

:disabled {
    cursor: default;
}

audio, canvas, embed, iframe, img, object, svg, video {
    display: block;
    vertical-align: middle;
}

img, video {
    max-width: 100%;
    height: auto;
}

[hidden]:where(:not([hidden=until-found])) {
    display: none;
}

/* ==================== CONTAINER ==================== */
.container {
    width: 100%;
}

@media (min-width: 640px) {
    .container { max-width: 640px; }
}

@media (min-width: 768px) {
    .container { max-width: 768px; }
}

@media (min-width: 1024px) {
    .container { max-width: 1024px; }
}

@media (min-width: 1280px) {
    .container { max-width: 1280px; }
}

@media (min-width: 1536px) {
    .container { max-width: 1536px; }
}

/* ==================== TAILWIND UTILITY CLASSES ==================== */
.sticky { position: sticky; }
.top-0 { top: 0px; }
.z-50 { z-index: 50; }
.mx-auto { margin-left: auto; margin-right: auto; }
.mb-1 { margin-bottom: 0.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }
.mb-10 { margin-bottom: 2.5rem; }
.mr-2 { margin-right: 0.5rem; }
.mt-1 { margin-top: 0.25rem; }
.mt-12 { margin-top: 3rem; }
.block { display: block; }
.flex { display: flex; }
.grid { display: grid; }
.hidden { display: none; }
.h-3 { height: 0.75rem; }
.h-4 { height: 1rem; }
.h-5 { height: 1.25rem; }
.h-10 { height: 2.5rem; }
.h-11 { height: 2.75rem; }
.h-44 { height: 11rem; }
.w-3 { width: 0.75rem; }
.w-4 { width: 1rem; }
.w-5 { width: 1.25rem; }
.w-10 { width: 2.5rem; }
.w-44 { width: 11rem; }
.w-64 { width: 16rem; }
.w-full { width: 100%; }
.flex-1 { flex: 1 1 0%; }
.flex-shrink-0 { flex-shrink: 0; }
.border-collapse { border-collapse: collapse; }
.cursor-pointer { cursor: pointer; }
.grid-cols-1 { grid-template-columns: repeat(1, minmax(0, 1fr)); }
.grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 0.75rem; }
.gap-4 { gap: 1rem; }
.gap-6 { gap: 1.5rem; }
.gap-8 { gap: 2rem; }
.gap-10 { gap: 2.5rem; }
.space-x-4 > :not([hidden]) ~ :not([hidden]) {
    --tw-space-x-reverse: 0;
    margin-right: calc(1rem * var(--tw-space-x-reverse));
    margin-left: calc(1rem * calc(1 - var(--tw-space-x-reverse)));
}
.space-x-8 > :not([hidden]) ~ :not([hidden]) {
    --tw-space-x-reverse: 0;
    margin-right: calc(2rem * var(--tw-space-x-reverse));
    margin-left: calc(2rem * calc(1 - var(--tw-space-x-reverse)));
}
.space-x-10 > :not([hidden]) ~ :not([hidden]) {
    --tw-space-x-reverse: 0;
    margin-right: calc(2.5rem * var(--tw-space-x-reverse));
    margin-left: calc(2.5rem * calc(1 - var(--tw-space-x-reverse)));
}
.divide-y > :not([hidden]) ~ :not([hidden]) {
    --tw-divide-y-reverse: 0;
    border-top-width: calc(1px * calc(1 - var(--tw-divide-y-reverse)));
    border-bottom-width: calc(1px * var(--tw-divide-y-reverse));
}
.divide-gray-100 > :not([hidden]) ~ :not([hidden]) {
    --tw-divide-opacity: 1;
    border-color: rgb(243 244 246 / var(--tw-divide-opacity, 1));
}
.border6{
    border-width: 6px;
}
.overflow-hidden { overflow: hidden; }
.overflow-x-auto { overflow-x: auto; }
.rounded { border-radius: 0.25rem; }
.rounded-lg { border-radius: 0.5rem; }
.rounded-xl { border-radius: 0.75rem; }
.rounded-full { border-radius: 9999px; }
.border { border-width: 1px; }
.border-2 { border-width: 2px; }
.border-b { border-bottom-width: 1px; }
.border-t { border-top-width: 1px; }
.border-r { border-right-width: 1px; }
.border-blue-500 { --tw-border-opacity: 1; border-color: rgb(59 130 246 / var(--tw-border-opacity, 1)); }
.border-gray-50 { --tw-border-opacity: 1; border-color: rgb(249 250 251 / var(--tw-border-opacity, 1)); }
.border-gray-100 { --tw-border-opacity: 1; border-color: rgb(243 244 246 / var(--tw-border-opacity, 1)); }
.border-gray-200 { --tw-border-opacity: 1; border-color: rgb(229 231 235 / var(--tw-border-opacity, 1)); }
.border-white\/10 { border-color: rgb(255 255 255 / 0.1); }
.border-white\/20 { border-color: rgb(255 255 255 / 0.2); }
.border-white\/5 { border-color: rgb(255 255 255 / 0.05); }
.border-yellow-400 { --tw-border-opacity: 1; border-color: rgb(250 204 21 / var(--tw-border-opacity, 1)); }
.bg-white { --tw-bg-opacity: 1; background-color: rgb(255 255 255 / var(--tw-bg-opacity, 1)); }
.bg-gray-50 { --tw-bg-opacity: 1; background-color: rgb(249 250 251 / var(--tw-bg-opacity, 1)); }
.bg-gray-100 { --tw-bg-opacity: 1; background-color: rgb(243 244 246 / var(--tw-bg-opacity, 1)); }
.bg-blue-600 { --tw-bg-opacity: 1; background-color: rgb(37 99 235 / var(--tw-bg-opacity, 1)); }
.bg-slate-800 { --tw-bg-opacity: 1; background-color: rgb(30 41 59 / var(--tw-bg-opacity, 1)); }
.bg-\[\#001e42\] { --tw-bg-opacity: 1; background-color: rgb(0 30 66 / var(--tw-bg-opacity, 1)); }
.bg-white\/5 { background-color: rgb(255 255 255 / 0.05); }
.p-1 { padding: 0.25rem; }
.p-6 { padding: 21px; }
.px-3 { padding-left: 0.75rem; padding-right: 0.75rem; }
.px-4 { padding-left: 1rem; padding-right: 1rem; }
.px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }
.px-8 { padding-left: 2rem; padding-right: 2rem; }
.py-1 { padding-top: 0.25rem; padding-bottom: 0.25rem; }
.py-3 { padding-top: 0.75rem!important; padding-bottom: 0.75rem!important; }
.py-4 { padding-top: 1rem; padding-bottom: 1rem; }
.py-5 { padding-top: 1.25rem; padding-bottom: 1.25rem; }
.py-8 { padding-top: 2rem; padding-bottom: 2rem; }
.py-10 { padding-top: 2.5rem; padding-bottom: 2.5rem; }
.pb-6 { padding-bottom: 1.5rem; }
.pb-10 { padding-bottom: 2.5rem; }
.pt-12 { padding-top: 3rem; }
.text-left { text-align: left !important; }
.text-center { text-align: center; }
.text-2xl { font-size: 1.5rem; line-height: 2rem; }
.text-4xl { font-size: 2.25rem; line-height: 2.5rem; }
.text-6xl { font-size: 3.75rem; line-height: 1; }
.text-\[9px\] { font-size: 9px; }
.text-\[10px\] { font-size: 10px; }
.text-\[11px\] { font-size: 11px; }
.text-lg { font-size: 1.125rem; line-height: 1.75rem; }
.text-sm { font-size: 0.875rem; line-height: 1.25rem; }
.text-xl { font-size: 1.25rem; line-height: 1.75rem; }
.text-xs { font-size: 0.75rem; line-height: 1rem; }
.font-black { font-weight: 900; }
.font-bold { font-weight: 700; }
.font-extrabold { font-weight: 800; }
.font-semibold { font-weight: 600; }
.uppercase { text-transform: uppercase; }
.italic { font-style: italic; }
.not-italic { font-style: normal; }
.leading-none { line-height: 1; }
.tracking-tighter { letter-spacing: -0.05em; }
.tracking-widest { letter-spacing: 0.1em; }
.text-blue-400 { --tw-text-opacity: 1; color: rgb(96 165 250 / var(--tw-text-opacity, 1)); }
.text-blue-600 { --tw-text-opacity: 1; color: rgb(37 99 235 / var(--tw-text-opacity, 1)); }
.text-blue-900 { --tw-text-opacity: 1; color: rgb(30 58 138 / var(--tw-text-opacity, 1)); }
.text-blue-900\/10 { color: rgb(30 58 138 / 0.1); }
.text-gray-300 { --tw-text-opacity: 1; color: rgb(209 213 219 / var(--tw-text-opacity, 1)); }
.text-gray-400 { --tw-text-opacity: 1; color: rgb(156 163 175 / var(--tw-text-opacity, 1));}
.text-gray-500 { --tw-text-opacity: 1; color: rgb(107 114 128 / var(--tw-text-opacity, 1)); }
.text-gray-900 { --tw-text-opacity: 1; color: rgb(17 24 39 / var(--tw-text-opacity, 1)); }
.text-white { --tw-text-opacity: 1; color: rgb(255 255 255 / var(--tw-text-opacity, 1)); }
.text-yellow-400 { --tw-text-opacity: 1; color: rgb(250 204 21 / var(--tw-text-opacity, 1)); }
.underline { -webkit-text-decoration-line: underline; text-decoration-line: underline; }
.decoration-blue-500 { -webkit-text-decoration-color: #3b82f6; text-decoration-color: #3b82f6; }
.shadow-sm { --tw-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.05); --tw-shadow-colored: 0 1px 2px 0 var(--tw-shadow-color); box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow); }
.shadow-lg { --tw-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1); --tw-shadow-colored: 0 10px 15px -3px var(--tw-shadow-color), 0 4px 6px -4px var(--tw-shadow-color); box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow); }
.shadow-xl { --tw-shadow: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1); --tw-shadow-colored: 0 20px 25px -5px var(--tw-shadow-color), 0 8px 10px -6px var(--tw-shadow-color); box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow); }
.shadow-2xl { --tw-shadow: 0 25px 50px -12px rgb(0 0 0 / 0.25); --tw-shadow-colored: 0 25px 50px -12px var(--tw-shadow-color); box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow); }
.outline-none { outline: 2px solid transparent; outline-offset: 2px; }
.transition-all { transition-property: all; transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); transition-duration: 150ms; }
.hover\:bg-white\/10:hover { background-color: rgb(255 255 255 / 0.1); }
.hover\:bg-blue-50:hover { --tw-bg-opacity: 1; background-color: rgb(239 246 255 / var(--tw-bg-opacity, 1)); }
.hover\:text-blue-300:hover { --tw-text-opacity: 1; color: rgb(147 197 253 / var(--tw-text-opacity, 1)); }
.hover\:text-white:hover { --tw-text-opacity: 1; color: rgb(255 255 255 / var(--tw-text-opacity, 1)); }

/* ==================== HEADER (ws-header) ==================== */
.ws-header {
    background-color: #020f1f;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    position: sticky;
    top: 0;
    z-index: 9999;
}

.ws-header-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
    height: 64px;
    display: flex;
    align-items: center;
    gap: 40px;
}

.ws-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    flex-shrink: 0;
}

.ws-logo-icon {
    width: 34px;
    height: 34px;
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ws-logo-text {
    font-size: 15px;
    font-weight: 800;
    letter-spacing: -0.03em;
    color: white;
    font-style: italic;
    line-height: 1;
}

.ws-logo-text span { color: #60a5fa; }

.ws-logo-sub {
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.18em;
    color: #475569;
    text-transform: uppercase;
    margin-top: 2px;
}

.ws-divider {
    width: 1px;
    height: 28px;
    background: rgba(255,255,255,0.08);
    flex-shrink: 0;
}

.ws-nav {
    display: flex;
    align-items: center;
    gap: 2px;
    flex: 1;
}

.ws-nav-item {
    padding: 6px 14px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #64748b;
    cursor: pointer;
    transition: all 0.15s;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 6px;
}

.ws-nav-item:hover { background: rgba(255,255,255,0.05); color: #94a3b8; }
.ws-nav-item.active { background: rgba(59,130,246,0.12); color: #60a5fa; }
.ws-nav-item.active .ws-nav-dot { background: #3b82f6; }

.ws-nav-dot {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #334155;
    flex-shrink: 0;
}

.ws-search {
    flex-shrink: 0;
    position: relative;
}

.ws-search input {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 8px;
    padding: 7px 12px 7px 34px;
    font-size: 12px;
    font-weight: 500;
    color: white;
    width: 200px;
    outline: none;
    transition: all 0.2s;
}

.ws-search input::placeholder { color: #475569; }
.ws-search input:focus { border-color: rgba(59,130,246,0.5); background: rgba(255,255,255,0.07); width: 240px; }

.ws-search-icon { position: absolute; left: 10px; top: 50%; transform: translateY(-50%); color: #475569; pointer-events: none; }

.ws-header-right {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.ws-icon-btn {
    width: 34px;
    height: 34px;
    border-radius: 8px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.07);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #64748b;
    transition: all 0.15s;
    position: relative;
}

.ws-icon-btn:hover { background: rgba(255,255,255,0.08); color: #94a3b8; }

.ws-notif-badge {
    position: absolute;
    top: 6px;
    right: 6px;
    width: 7px;
    height: 7px;
    background: #3b82f6;
    border-radius: 50%;
    border: 1.5px solid #020f1f;
}

.ws-user-pill {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 5px 6px 5px 12px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.07);
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.15s;
}

.ws-user-pill:hover { background: rgba(255,255,255,0.08); }

.ws-user-name {
    font-size: 12px;
    font-weight: 700;
    color: #e2e8f0;
    line-height: 1;
}

.ws-user-role {
    font-size: 10px;
    font-weight: 500;
    color: #475569;
    line-height: 1;
    margin-top: 2px;
}

.ws-avatar {
    width: 28px;
    height: 28px;
    border-radius: 7px;
    background: linear-gradient(135deg, #1d4ed8, #3b82f6);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 800;
    color: white;
    letter-spacing: 0.02em;
    flex-shrink: 0;
}

.ws-menu-btn {
    display: none;
    width: 34px;
    height: 34px;
    border-radius: 8px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.07);
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #94a3b8;
    flex-shrink: 0;
}

.ws-mobile-nav {
    display: none;
    flex-direction: column;
    background: #020f1f;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    padding: 8px 16px 12px;
    gap: 2px;
}

.ws-mobile-nav.open { display: flex; }

.ws-mobile-nav .ws-nav-item {
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 12px;
}
.pd-10{
    padding-top:12px ;
    padding-bottom:12px ;
}
#list-view{
    padding-left: 15px !important;
    padding-right: 19px !important;
}
section.bg-white{
    padding: 21px 23px !important;
    padding-bottom: 24px !important;
}
/* ==================== STATS HEADER ROW ==================== */
.stats-header-row {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 40px;
    border-bottom: 1px solid #e5e7eb;
    padding-bottom: 20px;
    position: relative;
}
.text-black{
    color: #000;
}
#list-title {
    font-size: 2.25rem;
    font-weight: 900;
    color: #111827;
    letter-spacing: -0.05em;
    text-transform: uppercase;
    font-style: italic; 
    position: absolute;
    left: 0;
}

#cat-switcher {
    display: flex;
    background: #f3f4f6;
    padding: 4px;
    border-radius: 12px;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

#cat-switcher button {
    padding: 12px 32px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 10px;
    text-transform: uppercase;
    transition: all 0.2s;
    border: none;
    background: transparent;
    cursor: pointer;
    color: #9ca3af;
}

#cat-switcher button.tab-active {
    background: white;
    color: #001e42;
    box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1);
}

/* ==================== TABLE ==================== */
.custom-table {
    border-collapse: separate;
    border-spacing: 0;
    width: 100%;
    min-width: 1400px;
    text-align: center;
    font-size: 13px;
    background-color: #ffffff;
}
.custom-table tr:hover,.custom-table tr:hover .col-rk, .custom-table  tr:hover .col-player{
    background-color: #eff6ff !important;
}
.custom-table th,
.custom-table td {
    padding: 10px 9px;
    border-bottom: 0;
    font-weight: 600;
    color: #1f2937;
    white-space: nowrap;
    text-align: center;
    font-size: 12px;
    line-height: 16px;
}
 
.custom-table th {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    color: #9ca3af;
    background-color: #f9fafb;
    border-bottom: 0;
}

.group-header-row th {
text-align: center;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.5px;
    padding: 7px 8px;
    border-bottom: 0;
    background-color: #f9fafb;
    vertical-align: text-top;
    white-space: nowrap;
    cursor: pointer;
}

.bg-blast { 
    background-color: #ebf5fa !important; 
    color: #2b7bc4 !important; 
    border-bottom: 2px solid #bfdbfe !important;
}
.bg-batting { 
    background-color: #e3f3fb !important;  
    color: #1a95e0 !important; 
    border-bottom: 2px solid #7dd3fc !important;
}
.bg-defense { 
    background-color: #eef2ff !important; 
    color: #6366f1!important; 
    border-bottom: 2px solid #c7d2fe!important;
}
.bg-running { 
    background-color: #f5f3ff!important; 
    color: #8b5cf6 !important; 
    border-bottom: 2px solid #ddd6fe!important;
} 
.bg-rapsodo { 
    background-color: #e3f3fb !important; 
    color: #1a95e0 !important; 
    border-bottom: 2px solid #4aa9e4 !important;
}
.bg-games { 
    background-color: #f2effc !important; 
    color: #6b53db !important; 
    border-bottom: 2px solid #9683eb !important;
}
.bg-biomech {
    background-color: #ecfbf2 !important;
    color: #199c4c !important;
    border-bottom: 2px solid #42d47a !important;
}

.bg-biomech2 {
    background-color: #d1fae5 !important;
    color: #047857!important;
    border-bottom: 2px solid #42caa4 !important;
}

.bg-biomech3 {
    background-color: #f0fdf4 !important;
    color: #047857!important;
    border-bottom: 2px solid #39b968 !important;
}


.bg-biomech4 {
    background-color: #d1fae5 !important;
    color: #047857!important;
    border-bottom: 2px solid #42caa4 !important;
}
.metric-header-row th {
    padding: 9px 17px;
    font-size: 10px;
    font-weight: 800;
    color: #9ca3af !important;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-bottom: 0 !important;
    background-color: #f9fafb;
}

/* ==================== STICKY COLUMNS ==================== */
.col-rk {
    min-width: 52px;
    width: 52px;
    will-change: transform;
    position: sticky;
    left: 0;
    z-index: 30;
    background-color: #ffffff; 
    text-align: right;
    padding-right: 15px;
    color: #d1d5db;
    font-weight: 700;
} 
.col-player::after {
    content: '';
    position: absolute;
    top: 0;
    right: -8px;
    bottom: 0;
    width: 8px;
    background: linear-gradient(to right, rgba(0, 0, 0, 0.06), transparent);
    pointer-events: none;
}
.col-name { 
    will-change: transform;
    position: sticky;
    left: 52px;
    z-index: 30;
    background-color: #ffffff; 
    text-align: left;
    padding-right: 30px;
}

.col-name::after {
    content: '';
    position: absolute;
    top: 0;
    right: -8px;
    bottom: 0;
    width: 8px;
    background: linear-gradient(to right, rgba(0, 0, 0, 0.06), transparent);
    pointer-events: none;
}

thead .col-rk,
thead .col-name {
    position: sticky;
    z-index: 40;
    background-color: #f9fafb;
        top: 3px;
}

tbody tr:hover .col-rk,
tbody tr:hover .col-name {
    background-color: #eff6ff;
}

/* ==================== PLAYER CELL ==================== */
.player-wrapper {
display: flex;
    align-items: center;
    gap: 5px;
}

.country-flag {
    width: 20px;
    height: 15px;
    border-radius: 20px;
    object-fit: cover;
    flex-shrink: 0;
}

.star-icon {
    color: #e5e7eb;
    font-size: 16px;
    margin-top: -2px;
    cursor: pointer;
}
.tablinks2.active  {
    background-color: white !important;
    color: #001e42 !important;
    box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1);
}
.star-icon.active {
    color: #fbbf24;
}

.name-stack {
    display: flex;
    flex-direction: column;
    gap: 2px;
    text-align: left;
}

.player-name {
    color: #213575;
    font-style: italic;
    font-weight: 900;
    font-size: 12px;
    text-transform: uppercase;
    text-decoration: none;
    line-height: 12px;
}

.player-name:hover {
    text-decoration: underline;
}
.select2-container--default .select2-selection--multiple .select2-selection__rendered li {
    display: flex;
}
.select2-results__option {
    display: flex;
}
.select2-container--default .country-flag{
    border-radius: 0 !important;
}
.academy-name {
    color: #9ca3af;
    font-size: 9px;
    font-weight: 700;
    text-transform: uppercase;
    text-align: left;
}

.pill-class {
    background-color: #f3f4f6;
    padding: 5px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 800;
    color: #1f2937;
    display: inline-block;
}

.badge {
    padding: 5px 6px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 800;
    color: white;
    display: inline-block;
    min-width: 18px;
}

.badge-fa { background-color: #16a34a; }
.badge-ag { background-color: #d97706; }
.badge-s  { background-color: #2563eb; }
.badge-rl { background-color: #dc2626; }

.empty-val {
    color: #d1d5db;
}

/* ==================== SELECT2 ==================== */
.select2-container--default.select2-container--focus .select2-selection--multiple {
    border: 2px solid #f9fafb !important;
}

.select2-container--default .select2-selection--multiple {
    border: 2px solid #f9fafb !important;
}

.select2-container--default .select2-selection--multiple .select2-selection__choice {
background-color: #e4e4e4;
    border: 1px solid #aaa;
    border-radius: 4px;
    cursor: default;
    float: left;
    margin-right: 5px;
    margin-top: 6px;
    padding: 0 5px;
}

.select2-container--default .select2-selection--single {
    height: 44px !important;
    border: 2px solid #f3f4f6 !important;
    border-radius: 0.5rem !important;
    background-color: white !important;
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
    line-height: 40px !important;
    font-size: 12px !important;
    font-weight: bold !important;
    color: #1f2937 !important;
    padding-left: 12px !important;
}

.select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 40px !important;
    right: 8px !important;
}

.select2-dropdown {
    border: 2px solid #f3f4f6 !important;
    border-radius: 0.5rem !important;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1) !important;
}

.select2-results__option {
    padding: 8px 12px !important;
    font-size: 12px !important;
    font-weight: 500 !important;
}

.select2-results__option--highlighted {
    background-color: #020f1f !important;
    color: white !important;
}

.select2-selection__clear {
    display: none;
}
.select2-selection--multiple {
    position: relative !important;
}

.select2-selection--multiple::after {
    content: '' !important;
    position: absolute !important;
    right: 0px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    width: 14px !important;
    height: 14px !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231e293b' 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") !important;
    background-repeat: no-repeat !important;
    background-position: center !important;
    background-size: contain !important;
    pointer-events: none !important;
}
/* ==================== FLAT PICKR ==================== */
.flatpickr-calendar {
    background: white !important;
    border-radius: 16px !important;
    box-shadow: none !important;
    border: 1px solid #e5e7eb !important;
}

.flatpickr-day.selected,
.flatpickr-day.startRange,
.flatpickr-day.endRange {
    background: #001e42 !important;
    border-color: #001e42 !important;
}

.flatpickr-day.inRange {
    background: #cae0f5 !important;
    border-color: #cae0f5 !important;
}

.flatpickr-months .flatpickr-month {
    background: #001e42 !important;
}

.flatpickr-weekdays {
    background: #001e42 !important;
}

span.flatpickr-weekday {
    color: white !important;
    background: #001e42 !important;
}

.flatpickr-current-month input.cur-year {
    background-color: #001e42 !important;
    color: white !important;
}

.flatpickr-current-month span.cur-month {
    color: white !important;
}

.btndone {
    background: #001e42;
}

#dateRangeModal {
    z-index: 10000 !important;
    position: absolute;
    top: 325px;
    margin: auto;
    left: 0;
    right: 0;
    width: max-content;
}

/* #inlineRangePicker {
    min-width: 550px;
} */
/* ==================== PAGINACIÓN - ESTILO EXACTO DEL EJEMPLO ==================== */

/* Contenedor principal de paginación */
#paginationBar {
    background-color: #ffffff;
    padding: 12px 20px;
    border-top: 1px solid #f3f4f6;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Sección izquierda: "Show" + Botones de tamaño + Info */
#paginationBar .flex.items-center {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Texto "Show" */
#paginationBar .text-\[11px\] {
    font-size: 11px;
    font-weight: 700;
    color: #9ca3af;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

/* Botones de tamaño de página (20, 25, 100) */
#paginationBar button[onclick*="setPageSize"] {
    padding: 8px 14px;
    border-radius: 8px;
    font-size: 11px;
    font-weight: 800;
    border: 1px solid #e5e7eb;
    background: white;
    color: #6b7280;
    cursor: pointer;
    transition: all 0.2s;
}

#paginationBar button[onclick*="setPageSize"]:hover {
    border-color: #3b82f6;
    color: #1d4ed8;
}

#paginationBar button[onclick*="setPageSize"].active {
    background-color: #3b82f6;
    border-color: #3b82f6;
    color: white;
}

/* Texto "1–20 of 25 players" */
#paginationBar #paginationInfo {
    font-size: 11px;
    color: #9ca3af;
    font-weight: 600;
    margin-left: 12px;
}

/* Sección derecha: Botones de páginas */
#paginationBar #paginationPages {
    display: flex;
    align-items: center;
    gap: 4px;
}

/* Botones de página individuales */
#paginationPages button {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    font-size: 11px;
    font-weight: 800;
    border: 1px solid #e5e7eb;
    background: white;
    color: #6b7280;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

#paginationPages button:hover {
    border-color: #3b82f6;
    color: #1d4ed8;
}

#paginationPages button.active {
    background-color: #3b82f6;
    border-color: #3b82f6;
    color: white;
}

#paginationPages button:disabled {
    opacity: 0.3;
    cursor: not-allowed;
    border-color: #e5e7eb;
    color: #9ca3af;
}

/* Botones "..." (ellipsis) */
#paginationPages span {
    color: #9ca3af;
    font-size: 11px;
    padding: 0 4px;
}

/* ==================== SELECT DE TAMAÑO DE PÁGINA (si usas select) ==================== */
#pageSizeSelect {
    height: 32px;
    border: 2px solid #f3f4f6;
    border-radius: 8px;
    padding: 0 8px;
    font-size: 12px;
    font-weight: 700;
    color: #1f2937;
    background-color: white;
    outline: none;
    cursor: pointer;
}
/* ==================== ORDENAMIENTO ==================== */
.custom-table th[data-sortable="true"] {
    cursor: pointer;
    user-select: none;
    position: relative;
}

.custom-table th[data-sortable="true"]:hover {
    background-color: #f1f5f9;
}
.nohaydatos{
    text-align: center !important;
}
.custom-table th[data-sortable="true"].asc::after {
    content: ' ↑';
    font-size: 10px;
    color: #3b82f6;
}

.custom-table th[data-sortable="true"].desc::after {
    content: ' ↓';
    font-size: 10px;
    color: #3b82f6;
}
/* ==================== SEARCH LOADER ==================== */
.ws-search-loader {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
}

.loader-spinner {
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255,255,255,0.2);
    border-top: 2px solid #60a5fa;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ==================== AUTOCOMPLETE DROPDOWN ==================== */
 

.ws-ac-item {
    padding: 9px 14px;
    cursor: pointer;
    transition: background 0.12s;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.ws-ac-item:last-child { border-bottom: none; }

.ws-ac-item:hover { background: rgba(59,130,246,0.15); }

.ws-ac-name {
    font-size: 12px;
    font-weight: 800;
    color: white;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.ws-ac-name mark {
    background: none;
    color: #60a5fa;
    font-weight: 900;
}

.ws-ac-meta {
    font-size: 10px;
    color: #475569;
    font-weight: 600;
    margin-top: 2px;
}

.ws-ac-empty {
    padding: 12px 14px;
    font-size: 11px;
    color: #475569;
    font-style: italic;
}
/* ==================== NOTIFICATIONS ==================== */
.ws-notif-badge {
    position: absolute;
    top: 2px;
    right: 2px;
    min-width: 16px;
    height: 16px;
    background: #ef4444;
    border-radius: 50%;
    font-size: 9px;
    font-weight: 800;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
    border: 2px solid #020f1f;
    line-height: 1;
}

.ws-notif-badge.hidden {
    display: none;
}

/* Dropdown */
.ws-notif-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    width: 320px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 20px 40px -8px rgba(0,0,0,0.3);
    border: 1px solid #e5e7eb;
    overflow: hidden;
    z-index: 300;
}

.ws-notif-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    background: #f8fafc;
    border-bottom: 1px solid #e5e7eb;
}

.ws-notif-title {
    font-size: 12px;
    font-weight: 800;
    color: #1e293b;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.ws-notif-markall {
    font-size: 10px;
    font-weight: 700;
    color: #3b82f6;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.ws-notif-markall:hover {
    text-decoration: underline;
}

.ws-notif-list {
    max-height: 300px;
    overflow-y: auto;
} 
.ws-notif-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 16px;
    border-bottom: 1px solid #f3f4f6;
    cursor: pointer;
    transition: background 0.15s;
    text-decoration: none;
}

.ws-notif-item:last-child {
    border-bottom: none;
}

.ws-notif-item:hover {
    background: #f8fafc;
}

.ws-notif-item.read {
    opacity: 0.6;
}

.ws-notif-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}

.ws-notif-content {
    flex: 1;
    min-width: 0;
}

.ws-notif-text {
    font-size: 12px;
    color: #334155;
    line-height: 1.4;
    margin: 0;
}

.ws-notif-text strong {
    font-weight: 800;
    color: #1e3a8a;
}

.ws-notif-date {
    font-size: 10px;
    color: #9ca3af;
    margin-top: 4px;
    font-weight: 500;
}

.ws-notif-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #3b82f6;
    flex-shrink: 0;
    margin-top: 6px;
}

.ws-notif-item.read .ws-notif-dot {
    background: #d1d5db;
}

.ws-notif-empty {
    padding: 20px;
    text-align: center;
    color: #9ca3af;
    font-size: 12px;
    font-style: italic;
}
.select2-container{
    z-index: 999 !important;
}
/*profile*/
#profile-view {
    flex-wrap: wrap;
}
.profile-hero {
    background-color: #0b172a;
    color: white;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.status-pill {
display: inline-block;
    padding: 3px 10px;
    border-radius: 5px;
    font-weight: 900;
    font-size: 11px;
    text-transform: uppercase;
    color: white;
    background: #2563eb;
    width: fit-content;
}
.fa-solid.fa-star{
        color: #fbbf24;
}
.favorito{
    --tw-text-opacity: 1;
    color: rgb(250 204 21 / var(--tw-text-opacity, 1)) !important;
    border: 1px solid rgb(250 204 21 / var(--tw-text-opacity, 1)) !important;
}
.metric-tab {
    padding: 12px 24px;
    font-size: 11px;
    font-weight: 800;
    color: #94a3b8;
    text-transform: uppercase;
    border-bottom: 3px solid transparent;
    cursor: pointer;
    transition: all 0.2s;
}

.metric-tab.active {
    color: #3b82f6;
    border-bottom-color: #3b82f6;
}

.nav-link {
    cursor: pointer;
    transition: color 0.2s;
}

.nav-link.active {
    color: #60a5fa;
    border-bottom: 2px solid #60a5fa;
    padding-bottom: 4px;
}

.star-active {
    fill: #fbbf24;
    color: #fbbf24;
}

/*MODAL*/
/* ==================== MODAL USER ==================== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9999;
    display: none;
    align-items: flex-start;
    justify-content: flex-end;
    cursor: pointer;
    padding: 66px;
}

.modal-container {
    background: white;
    border-radius: 12px;
    box-shadow: 0 20px 40px -8px rgba(0,0,0,0.3);
    width: 280px;
    max-width: 100%;
    overflow: hidden;
}

.modal-content {
    background: white;
}

.modal-body {
    padding: 8px 0;
}

.menu-item {
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    transition: background-color 0.2s;
    text-decoration: none;
}

.menu-item:hover {
    background-color: #f9fafb;
}

.menu-icon {
    width: 20px;
    height: 20px;
    color: #4b5563;
}

.menu-text {
    color: #374151;
    font-weight: 500;
    font-size: 14px;
}

.border-top {
    border-top: 1px solid #f3f4f6;
}

.menu-link {
    text-decoration: none;
}

.text-red-600 {
    color: #dc2626;
}
.select2-container--default .select2-selection--multiple .select2-selection__choice{
    background-color: #fff !important;
    color: black !important;
    padding: 6px 10px !important;
    font-size: 12px;
    font-weight: bold;
}
.select2-container--default .select2-selection--multiple .select2-selection__choice{
        border: 0 solid #aaa;
}
.select2-container--default .select2-selection--multiple .select2-selection__choice__remove {
    color: #000 !important;
    margin-right: 8px !important;
    display: none;
}
/* ==================== SEARCH AUTOCOMPLETE ==================== */
.ws-autocomplete {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    width: 320px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 20px 40px -8px rgba(0,0,0,0.3);
    border: 1px solid #e5e7eb;
    overflow: hidden;
    z-index: 300;
    display: none;
}

.ws-autocomplete.open { display: block; }

.ws-ac-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    background: #f8fafc;
    border-bottom: 1px solid #e5e7eb;
}

.ws-ac-title {
    font-size: 11px;
    font-weight: 800;
    color: #1e293b;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.ws-ac-count {
    font-size: 10px;
    font-weight: 700;
    color: #3b82f6;
    background: #dbeafe;
    padding: 2px 8px;
    border-radius: 12px;
}

.ws-ac-list {
    max-height: 300px;
    overflow-y: auto;
}

.ws-ac-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-bottom: 1px solid #f3f4f6;
    cursor: pointer;
    transition: background 0.15s;
}

.ws-ac-item:last-child {
    border-bottom: none;
}

.ws-ac-item:hover {
    background: #eff6ff;
}

.ws-ac-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    flex-shrink: 0;
    overflow: hidden;
}

.ws-ac-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ws-ac-content {
    flex: 1;
    min-width: 0;
}

.ws-ac-name {
    font-size: 13px;
    font-weight: 800;
    color: #1e3a8a;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ws-ac-name mark {
    background: none;
    color: #3b82f6;
    font-weight: 900;
}

.ws-ac-meta {
    font-size: 11px;
    color: #6b7280;
    font-weight: 600;
    margin-top: 2px;
    display: flex;
    gap: 8px;
    align-items: center;
}

.ws-ac-meta .ws-ac-class {
    background: #f1f5f9;
    padding: 1px 6px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 800;
    color: #475569;
}

.ws-ac-meta .ws-ac-academy {
    color: #9ca3af;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
}

.ws-ac-empty {
    padding: 20px;
    text-align: center;
    color: #9ca3af;
    font-size: 12px;
    font-style: italic;
}

.ws-ac-footer {
    padding: 8px 16px;
    text-align: center;
    background: #f8fafc;
    border-top: 1px solid #e5e7eb;
}

.ws-ac-footer a {
    font-size: 11px;
    font-weight: 700;
    color: #3b82f6;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.ws-ac-footer a:hover {
    text-decoration: underline;
}
/* ==================== USER DROPDOWN ==================== */
.ws-user-wrap {
    position: relative;
    display: inline-block;
}

.ws-user-pill {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 5px 6px 5px 12px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.07);
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.15s;
    user-select: none;
}

.ws-user-pill:hover { background: rgba(255,255,255,0.08); }

.ws-user-name {
    font-size: 12px;
    font-weight: 700;
    color: #e2e8f0;
    line-height: 1;
}

.ws-user-role {
    font-size: 10px;
    font-weight: 500;
    color: #475569;
    line-height: 1;
    margin-top: 2px;
}

.ws-avatar {
    width: 28px;
    height: 28px;
    border-radius: 7px;
    background: linear-gradient(135deg, #1d4ed8, #3b82f6);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 800;
    color: white;
    letter-spacing: 0.02em;
    flex-shrink: 0;
}

.ws-user-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    width: 280px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 20px 40px -8px rgba(0,0,0,0.3);
    border: 1px solid #e5e7eb;
    overflow: hidden;
    z-index: 300;
    text-align: left;
}

.ws-user-header {
    padding: 14px 16px;
    background: #f8fafc;
    border-bottom: 1px solid #e5e7eb;
}

.ws-user-title {
    display: block;
    font-size: 13px;
    font-weight: 800;
    color: #1e293b;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.ws-user-subtitle {
    display: block;
    font-size: 10px;
    font-weight: 600;
    color: #9ca3af;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-top: 2px;
}

.ws-user-list { padding: 4px 0; }

.ws-user-item-link {
    text-decoration: none;
    display: block;
}

.ws-user-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    cursor: pointer;
    transition: background 0.15s;
}

.ws-user-item:hover { background: #f8fafc; }

.ws-user-avatar-icon {
    width: 34px;
    height: 34px;
    border-radius: 8px;
    background: #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #475569;
    flex-shrink: 0;
}

.ws-user-avatar-icon-danger {
    background: #fef2f2;
    color: #dc2626;
}

.ws-user-content { flex: 1; min-width: 0; }

.ws-user-item-title {
    font-size: 13px;
    font-weight: 800;
    color: #1e293b;
    line-height: 1.3;
}

.ws-user-item-danger .ws-user-item-title { color: #dc2626; }

.ws-user-item-desc {
    font-size: 10px;
    color: #9ca3af;
    font-weight: 600;
    margin-top: 2px;
}
/* ==================== PROFILE TABS - DOS NIVELES ==================== */
.prof-nav-l1 {
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    overflow-x: auto;
}

.prof-tab-l1 {
    padding: 12px 20px;
    font-size: 11px;
    font-weight: 800;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    cursor: pointer;
    border-bottom: 3px solid transparent;
    white-space: nowrap;
    transition: all 0.15s;
}

.prof-tab-l1:hover {
    color: #94a3b8;
    background: rgba(255,255,255,0.04);
}

.prof-tab-l1.active {
    color: #60a5fa;
    border-bottom-color: #3b82f6;
}

.prof-nav-l2 {
    display: none;
    background: #0d2137;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    overflow-x: auto;
}

.prof-nav-l2.visible {
    display: flex;
    align-items: center;
    justify-content: center;
}

.prof-tab-l2 {
    padding: 8px 18px;
    font-size: 10px;
    font-weight: 700;
    color: #475569;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    white-space: nowrap;
    transition: all 0.15s;
}

.prof-tab-l2:hover {
    color: #94a3b8;
    background: rgba(255,255,255,0.04);
}

.prof-tab-l2.active {
    color: #38bdf8;
    border-bottom-color: #38bdf8;
}
.video-grid-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: 1.5rem;
}
/* ==================== VIDEO PLAYER ==================== */
.video-player-wrapper {
    background-color: #000000;
    border-radius: 0.75rem;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    position: relative;
    aspect-ratio: 16 / 9;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border: 1px solid #1f2937;
}

.video-player {
    width: 100%;
    height: 100%;
    position: relative;
}

.video-overlay {
    position: absolute;
    inset: 0;
    background-color: #0f172a;
    display: flex;
    align-items: center;
    justify-content: center;
}

.video-placeholder {
    text-align: center;
    color: #6b7280;
    padding: 1rem;
}

.video-icon-large {
    width: 4rem;
    height: 4rem;
    margin: 0 auto 0.75rem auto;
    display: block;
    background-color: #374151;
    border-radius: 0.5rem;
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.video-title-text {
    color: #ffffff;
    font-weight: 800;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.video-subtitle-text {
    font-size: 0.625rem;
    color: #9ca3af;
    margin-top: 0.25rem;
}

.video-controls {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9), transparent);
    padding: 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: #ffffff;
    opacity: 0.9;
    transition: opacity 0.2s;
}

.controls-left {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.control-icon {
    width: 1.25rem;
    height: 1.25rem;
    cursor: pointer;
}

.play-icon {
    color: #3b82f6;
    fill: currentColor;
}

.volume-icon, .settings-icon, .maximize-icon {
    color: #9ca3af;
}

.time-display {
    font-size: 0.625rem;
    font-family: monospace;
    color: #d1d5db;
}

.progress-bar-container {
    width: 50%;
    background-color: #374151;
    height: 0.375rem;
    border-radius: 9999px;
    overflow: hidden;
    position: relative;
    cursor: pointer;
}

.progress-bar-fill {
    background-color: #3b82f6;
    height: 100%;
    width: 0%;
}

.controls-right {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

/* ==================== VIDEO CATEGORIES SIDEBAR ==================== */
.video-categories-sidebar {
    background-color: #ffffff;
    border-radius: 0.75rem;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    border: 1px solid #e5e7eb;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    max-height: 450px;
    overflow-y: auto;
}

.categories-title {
    font-size: 0.75rem;
    font-weight: 900;
    color: #9ca3af;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    border-bottom: 1px solid #e5e7eb;
    padding-bottom: 0.5rem;
}

.folder-icon {
    width: 1rem;
    height: 1rem;
    color: #1e3a8a;
}

.categories-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

/* Category Item */
.category-item {
    border: 1px solid #f3f4f6;
    border-radius: 0.75rem;
    overflow: hidden;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

.category-header {
    background-color: #f8fafc;
    padding: 0.75rem 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    transition: background-color 0.2s;
}

.category-header:hover {
    background-color: #f1f5f9;
}

.category-header.open {
    background-color: #f8fafc;
}

.category-header.open .chevron-icon {
    transform: rotate(180deg);
}

.category-info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.category-folder-icon {
    font-size: 1rem;
}

.category-name {
    font-size: 0.75rem;
    font-weight: 900;
    text-transform: uppercase;
    color: #1e3a8a;
    letter-spacing: 0.05em;
}

.category-badge {
    background-color: #dbeafe;
    color: #1e40af;
    font-size: 0.5625rem;
    font-weight: 700;
    padding: 0.125rem 0.5rem;
    border-radius: 9999px;
}

.chevron-icon {
    font-size: 0.75rem;
    color: #9ca3af;
    transition: transform 0.2s;
}

.category-content {
    display: none;
    background-color: #ffffff;
}

.category-content.hidden {
    display: none;
}

.category-content:not(.hidden) {
    display: block;
}

/* Video Item */
.video-item {
    padding: 0.75rem 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    transition: background-color 0.2s;
    border-top: 1px solid #f9fafb;
}

.video-item:first-child {
    border-top: none;
}

.video-item:hover {
    background-color: #eff6ff;
}

.video-item.active {
    background-color: #eff6ff;
    border-left: 3px solid #3b82f6;
} 
.video-item-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    overflow: hidden; 
}

.play-circle-icon {
    font-size: 0.875rem;
    color: #9ca3af;
    flex-shrink: 0;
}

.video-item-title {
    font-size: 0.75rem;
    font-weight: 700;
    color: #374151;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex: 1;
    text-align: left;
}

.video-item-date {
    font-size: 0.625rem;
    font-family: monospace;
    font-weight: 700;
    color: #9ca3af;
    background-color: #f9fafb;
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    flex-shrink: 0;
}

.empty-videos {
    font-size: 0.75rem;
    color: #9ca3af;
    font-style: italic;
    text-align: center;
    padding: 1.5rem 0;
}

/* Scrollbar personalizada */
.video-categories-sidebar::-webkit-scrollbar {
    width: 6px;
}

.video-categories-sidebar::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.video-categories-sidebar::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 10px;
}

.video-categories-sidebar::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}
.play-first-video-btn {
    margin-top: 1rem;
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    border: none;
    padding: 0.5rem 1.5rem;
    border-radius: 2rem;
    color: white;
    font-weight: 800;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.play-first-video-btn:hover {
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    transform: scale(1.05);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.2);
}
/* ==================== FIXED THEAD ==================== */
#fixed-thead-wrapper {
    position: fixed;
    top: 64px;
    z-index: 100;
    display: none;
    overflow-x: auto;
    overflow-y: hidden;
    background: #f9fafb;
    box-shadow: 0 2px 4px rgba(0,0,0,0.06);
    /* Ocultar scrollbar visualmente */
    scrollbar-width: none;
    -ms-overflow-style: none;
}

#fixed-thead-wrapper::-webkit-scrollbar {
    display: none;
}

#fixed-thead-wrapper table {
    border-collapse: separate;
    border-spacing: 0;
    margin: 0;
}

#fixed-thead-wrapper th {
    background: #f9fafb;
    border-bottom: 2px solid #e5e7eb;
    padding: 9px 8px;
    font-size: 10px;
    font-weight: 800;
    color: #9ca3af;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    text-align: center;
    white-space: nowrap;
}

#fixed-thead-wrapper tr:first-child th {
    font-size: 9px;
    font-weight: 900;
    letter-spacing: 0.15em;
    padding: 7px 8px;
}

#fixed-thead-wrapper th:nth-child(n+3) {
    min-width: 109px;
}
.custom-table tr td:nth-child(3),.custom-table tr td:nth-child(4){
    padding: 10px 0px;
}
#fixed-thead-wrapper .col-rk,
#fixed-thead-wrapper .col-name {
    position: sticky !important;
    background: #f9fafb !important;
    z-index: 110 !important;
}

#fixed-thead-wrapper .col-rk {
    left: 0 !important;
    min-width: 50px;
    width: 50px;
    text-align: right;
    padding-right: 15px;
}
/* MLB badge */
.ws-mlb-badge {
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.1em;
    color: #334155;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 5px;
    padding: 3px 8px;
    text-transform: uppercase;
}
.ws-tip {
    position: relative;
    cursor: help;
    display: inline;
    white-space: nowrap;
}

.ws-tip::after {
    content: attr(data-tip);
    position: absolute;
    top: calc(100% + 6px);
    left: 50%;
    transform: translateX(-50%);
    background: #1e293b;
    color: white;
    font-size: 10px;
    font-weight: 600;
    padding: 6px 10px;
    border-radius: 5px;
    /* 🔥 clave: wrap + ancho ajustado */
    white-space: normal;
    width: max-content;
    max-width: 90px;      /* límite duro */
    text-align: center;
    line-height: 1.35;
    pointer-events: none;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.15s;
    z-index: 9999;
    letter-spacing: 0.02em;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.ws-tip:hover::after {
    opacity: 1;
    visibility: visible;
}
        /* ==================== ACORDEÓN (estilo wahoo v99) ==================== */
        .acc-wrap { background:#fff; border-radius:12px; box-shadow:0 4px 14px rgba(0,0,0,0.06); border:1px solid #f1f5f9; overflow:hidden; width:100%; }
        .acc-scroll { overflow-x:auto !important; overflow-y:auto !important; max-height:72vh; }
        .acc-table { border-collapse:separate !important; border-spacing:0 !important; text-align:left; width:max-content !important; min-width:100%; }
        .acc-table thead th {
            background:#001e42; color:#fff; font-size:9px; font-weight:900;
            text-transform:uppercase; letter-spacing:0.08em; padding:10px 12px;
            text-align:center; white-space:nowrap; border-right:1px solid rgba(255,255,255,0.08);
            position:sticky; top:0; z-index:20;
        }
        .acc-table thead th:last-child { border-right:none; }
        .acc-table thead th.acc-th-left { text-align:left; }
        .acc-table tbody td {
            padding:8px 12px; font-size:11px; font-weight:600; text-align:center;
            color:#334155; border-bottom:1px solid #f1f5f9; white-space:nowrap;
        }
        .acc-table tbody td.acc-td-left { text-align:left; }
        .acc-table tbody tr.acc-data-row:hover td { background:#eff6ff !important; }
        .acc-year-row { background:#0b2a4a !important; cursor:pointer; }
        .acc-year-row td {
            color:#93c5fd !important; font-size:11px; font-weight:900;
            text-transform:uppercase; letter-spacing:0.1em; text-align:left !important;
            padding:10px 16px !important; border-bottom:none !important;
        }
        .acc-year-row:hover td { background:#0d3358 !important; }
        .acc-date-row { background:#e8f0fe !important; cursor:pointer; }
        .acc-date-row td {
            color:#1d4ed8 !important; font-size:10px; font-weight:900;
            text-transform:uppercase; letter-spacing:0.08em; text-align:left !important;
            padding:8px 20px !important; border-bottom:none !important;
        }
        .acc-date-row:hover td { background:#dbeafe !important; }
        .acc-avg-row { background:#f0f4ff !important; }
        .acc-avg-row td {
            color:#1d4ed8 !important; font-weight:900 !important; font-size:10px !important;
            border-bottom:1px solid #bfdbfe !important;
        }
        .acc-year-total-row { background:#0d2540 !important; }
        .acc-year-total-row td {
            color:#bfdbfe !important; font-weight:900 !important; font-size:10px !important;
            border-bottom:1px solid rgba(59,130,246,0.3) !important;
        }
        .acc-total-row { background:#001e42 !important; }
        .acc-total-row td {
            color:#fff !important; font-weight:900 !important; font-size:11px !important;
            border-bottom:none !important;
        }
        .acc-caret { display:inline-block; transition:transform 0.2s; margin-right:8px; font-size:9px; color:#60a5fa; }
        .acc-caret.open { transform:rotate(90deg); }
        .acc-empty { background:#fff; border-radius:12px; border:1px solid #f1f5f9; padding:60px 20px; text-align:center; color:#94a3b8; font-weight:700; font-size:12px; text-transform:uppercase; letter-spacing:0.1em; }
        .acc-pill { font-size:10px; font-weight:800; padding:2px 8px; border-radius:4px; display:inline-block; }
        .acc-dash { color:#cbd5e1; }
        .acc-link { color:#1d4ed8; font-weight:800; text-decoration:underline; }

        /* ==================== STICKY COLUMNS (Date + Place) ==================== */
       
/* ==================== STICKY COLUMNS (Date + Place) ==================== */
.acc-table {
    border-collapse: separate !important;
    border-spacing: 0 !important;
}
 .acc-table thead th:first-child {
            position: sticky !important;
            left: 0 !important;
            z-index: 30;
            background: #001e42 !important;
            min-width: 130px;
            width: 130px;
            box-shadow: 4px 0 6px -2px rgba(0,0,0,0.25);
        }
        .acc-table thead th:nth-child(2) {
            position: sticky !important;
            left: 130px !important;
            z-index: 30;
            background: #001e42 !important;
            box-shadow: 4px 0 6px -2px rgba(0,0,0,0.25);
        } 


/* BODY sticky (Date + Place) */
.acc-table tbody td:first-child {
    position: sticky !important;
    left: 0 !important;
    z-index: 12;
    min-width: 130px;
    width: 130px;
}
.acc-table tbody td:nth-child(2) {
    position: sticky !important;
    left: 130px !important;
    z-index: 12;
    min-width: 200px;
    width: 200px;
    box-shadow: 4px 0 6px -2px rgba(0,0,0,0.12);
}

/* Backgrounds específicos por tipo de fila (para que no se vea transparencia) */
.acc-table tbody tr.acc-data-row td:first-child,
.acc-table tbody tr.acc-data-row td:nth-child(2) {
    background: #ffffff;
}
.acc-table tbody tr.acc-data-row:nth-child(even) td:first-child,
.acc-table tbody tr.acc-data-row:nth-child(even) td:nth-child(2) {
    background: #fafafa;
}
.acc-table tbody tr.acc-data-row:hover td:first-child,
.acc-table tbody tr.acc-data-row:hover td:nth-child(2) {
    background: #eff6ff !important;
}

/* Filas de AVG */
.acc-table tbody tr.acc-avg-row td:first-child,
.acc-table tbody tr.acc-avg-row td:nth-child(2) {
    background: #f0f4ff !important;
}

/* Filas de año (colspan, solo 1 td) */
.acc-table tbody tr.acc-year-row td {
    position: sticky !important;
    left: 0 !important;
    z-index: 12;
    background: #0b2a4a !important;
}

/* Filas de fecha (colspan, solo 1 td) */
.acc-table tbody tr.acc-date-row td {
    position: sticky !important;
    left: 0 !important;
    z-index: 12;
    background: #e8f0fe !important;
}

/* Total por año */
.acc-table tbody tr.acc-year-total-row td:first-child,
.acc-table tbody tr.acc-year-total-row td:nth-child(2) {
    background: #0d2540 !important;
}

/* Total general */
.acc-table tbody tr.acc-total-row td:first-child,
.acc-table tbody tr.acc-total-row td:nth-child(2) {
    background: #001e42 !important;
}

.acc-table tbody tr.acc-year-total-row.acc-pbp-total td,
.acc-table tbody tr.acc-year-total-row.acc-pbp-total td:first-child,
.acc-table tbody tr.acc-year-total-row.acc-pbp-total td:nth-child(2) {
    background: #f0f4ff !important;
    color: #1d4ed8 !important;
    border-bottom: 1px solid #bfdbfe !important;
}
.acc-table tbody tr.acc-year-total-row.acc-pbp-total td span[style*="color:#93c5fd"] { color:#64748b !important; }
.acc-table tbody tr.acc-year-total-row.acc-pbp-total td span[style*="color:#bfdbfe"] { color:#1d4ed8 !important; }
/* ==================== BLAST TABLE ==================== */
.blast-table { width:100%; border-collapse:separate; border-spacing:0; text-align:left; }
.blast-table thead th { background:#001e42; }
.blast-table tbody tr.blast-session-row:hover { background:#eff6ff !important; }
.blast-table tbody td { border-bottom:1px solid #f1f5f9; }
.blast-table tbody tr.blast-detail-row td { border-bottom:1px solid #e2e8f0; }
.blast-table tfoot td { border-top:none; }
/* ==================== RAPSODO HITTING TABLE ==================== */
.rapsodo-table { width:100%; border-collapse:separate; border-spacing:0; text-align:left; }
.rapsodo-table thead th { background:#001e42; }
.rapsodo-table tbody tr.rapsodo-session-row:hover { background:#eff6ff !important; }
.rapsodo-table tbody td { border-bottom:1px solid #f1f5f9; }
.rapsodo-table tbody tr.rapsodo-detail-row td { border-bottom:1px solid #e2e8f0; }
.rapsodo-table tfoot td { border-top:none; }
 /* ==================== GLOSSARY ==================== */
    .glossary-page {
        max-width: 1400px;
        margin: 0 auto;
        padding: 32px 16px;
    }
    .glossary-top {
        display: flex;
        align-items: center;
        justify-content: space-between;
        margin-bottom: 32px;
        gap: 16px;
        flex-wrap: wrap;
    }
    .glossary-h1 {
        font-size: 36px;
        font-weight: 900;
        color: #111827;
        letter-spacing: -0.05em;
        text-transform: uppercase;
        font-style: italic;
        line-height: 1;
        margin: 0;
    }
    .glossary-sub {
        font-size: 13px;
        color: #94a3b8;
        font-weight: 500;
        margin-top: 6px;
    }
    .glossary-back {
        display: inline-flex;
        align-items: center;
        gap: 8px;
        font-size: 11px;
        font-weight: 900;
        text-transform: uppercase;
        letter-spacing: 0.1em;
        color: #2563eb;
        text-decoration: none;
    }
    .glossary-back:hover { color: #1d4ed8; }

    /* ====== CONTENEDOR MASONRY ====== */
    .gls-wrap {
        column-count: 1;
        column-gap: 24px;
    }
    @media (min-width: 1024px) {
        .gls-wrap { column-count: 2; }
    }

    /* ====== CARD ====== */
    .gls-card {
        display: inline-block;
        width: 100%;
        margin: 0 0 24px 0;
        break-inside: avoid;
        page-break-inside: avoid;
        background: #fff;
        border-radius: 12px;
        box-shadow: 0 1px 3px rgba(0,0,0,0.06);
        border: 1px solid #f1f5f9;
        overflow: hidden;
        vertical-align: top;
    }

    .gls-head {
        padding: 16px 20px;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        cursor: pointer;
        user-select: none;
    }
    .gls-head-l {
        display: flex;
        align-items: center;
        gap: 12px;
        flex: 1;
        min-width: 0;
    }
    .gls-title {
        font-size: 13px;
        font-weight: 900;
        color: #fff;
        text-transform: uppercase;
        letter-spacing: 0.05em;
        margin: 0;
    }
    .gls-tag {
        font-size: 8px;
        font-weight: 900;
        letter-spacing: 0.1em;
        padding: 3px 8px;
        border-radius: 4px;
        text-transform: uppercase;
        background: rgba(255,255,255,0.18);
        color: #fff;
        flex-shrink: 0;
    }
    .gls-head-r {
        display: flex;
        align-items: center;
        gap: 10px;
        flex-shrink: 0;
    }
    .gls-count {
        font-size: 10px;
        font-weight: 700;
        color: #fff;
        opacity: 0.6;
    }
    .gls-arrow {
        transition: transform 0.2s;
        width: 14px;
        height: 14px;
        flex-shrink: 0;
    }
    .gls-body { display: block; }
    .gls-body.hide { display: none; }
    .gls-intro {
        padding: 12px 20px;
        font-size: 11px;
        color: #64748b;
        line-height: 1.6;
        font-style: italic;
        background: #fafafa;
        border-bottom: 1px solid #f1f5f9;
        margin: 0;
        text-align: left;
    }
    .banderauser{
        width: 35px;
        border-radius: 3px;
    }
    .gls-row {
        padding: 12px 20px;
        display: flex;
        gap: 16px;
        border-bottom: 1px solid #f8fafc;
        transition: background 0.15s;
    }
    .gls-row:hover { background: #f8fafc; }
    .gls-row:last-child { border-bottom: none; }
    .gls-abbr-w { flex-shrink: 0; padding-top: 2px; }
    .gls-abbr {
        display: inline-block;
        font-size: 11px;
        font-weight: 900;
        padding: 4px 8px;
        border-radius: 4px;
        text-transform: uppercase;
        letter-spacing: 0.05em;
        white-space: nowrap;
    }
    .gls-ctx { flex: 1; min-width: 0; text-align: left;}
    .gls-nm {
        display: flex;
        align-items: baseline;
        gap: 8px;
        flex-wrap: wrap;
    }
    .gls-nm-txt { font-size: 11px; font-weight: 900; color: #1e293b; }
    .gls-nm-u { font-size: 9px; font-weight: 700; color: #94a3b8; text-transform: uppercase; letter-spacing: 0.08em; }
    .gls-desc { font-size: 11px; color: #64748b; line-height: 1.55; margin: 3px 0 0 0; }

/* ==================== STATUS BADGES (inline) ==================== */
/* Ya los tienes con .badge-fa, .badge-ag, .badge-s, .badge-rl pero 
   el HTML usa estilos inline. Asegúrate de que se vean bien: */
.badge-fa { background-color: #16a34a !important; }
.badge-ag { background-color: #ca8a04 !important; }
.badge-s  { background-color: #2563eb !important; }
.badge-rl { background-color: #dc2626 !important; }

/* ==================== SEMÁFORO TIERS ==================== */
/* Estas clases las usaremos desde JS para colorear celdas */
.tier-1 { background:#bbf7d0 !important; color:#14532d !important; }
.tier-2 { background:#dcfce7 !important; color:#166534 !important; }
.tier-3 { background:#fef9c3 !important; color:#854d0e !important; }
.tier-4 { background:#fee2e2 !important; color:#991b1b !important; }

/* ==================== SUB-HEADER DE SECCIÓN ==================== */
/* La fila que dice "── Position Players (25) ──" */
.pref-section-header {
    padding: 8px 16px !important;
    font-size: 10px !important;
    font-weight: 900 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.1em !important;
    border-bottom: 1px solid;
}
.pref-section-hitters {
    background: #eff6ff !important;
    color: #2563eb !important;
    border-bottom-color: #bfdbfe !important;
    text-align: left !important;
}
.pref-section-pitchers {
    background: #faf5ff !important;
    color: #9333ea !important;
    border-bottom-color: #e9d5ff !important;
    text-align: left !important;
}

/* ==================== SUB-THEADER PARA PITCHERS ==================== */
/* El header secundario que aparece antes de la sección de pitchers */
.pref-sub-thead {
    background: #f9fafb !important;
}

/* ==================== FILA DE PAGINACIÓN INLINE ==================== */
/* La fila con "Page 1 of 2" dentro de la tabla */
.pref-pagination-row td {
    padding: 8px 16px !important;
    border-bottom: 1px solid #f3f4f6 !important;
}
.pref-pagination-row .pref-page-btn {
    padding: 4px 10px !important;
    border-radius: 4px !important;
    font-size: 10px !important;
    font-weight: 900 !important;
    border: 1px solid #e5e7eb !important;
    background: white !important;
    color: #6b7280 !important;
    cursor: pointer !important;
}
.pref-pagination-row .pref-page-btn.active {
    background: #2563eb !important;
    border-color: #2563eb !important;
    color: white !important;
}
.pref-pagination-row .pref-page-btn:hover:not(.active) {
    border-color: #93c5fd !important;
}

#glossary-view{
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
}
#glossary-sections{
    grid-template-columns: repeat(2, minmax(0, 1fr));
}
.text-gray-800 {
    --tw-text-opacity: 1;
    color: rgb(31 41 55 / var(--tw-text-opacity, 1));
}
.py-1\.5 {
    padding-top: 0.375rem;
    padding-bottom: 0.375rem;
}
#glossary-view h2.tracking-tighter{
    text-align: left;
}
#table-Prefer.custom-table { 
    width: 100%;
    min-width: 1065px; 
} 
   /* ── Badge semáforo (tier pastel) ── */
    .sema-badge {
        display: inline-block;
        min-width: 52px;
        padding: 4px 10px;
        border-radius: 8px;
        font-weight: 800;
        font-size: 12px;
        line-height: 1.2;
        box-shadow: inset 0 0 0 1px rgba(0,0,0,0.06);
    }
    .empty-val { color: #cbd5e1; font-weight: 600; }

    /* ── Sticky columnas ── */
    .col-rk   { position: sticky; left: 0;    z-index: 25; background: inherit; }
    .col-name { position: sticky; left: 50px; z-index: 25; background: inherit; }
    thead .col-rk,   thead .col-name     { background: #f9fafb; }
    tbody tr .col-rk, tbody tr .col-name { background: #ffffff; }
    tbody tr:hover .col-rk, tbody tr:hover .col-name { background: #eff6ff; }

    /* ── Header cells ── */
    .th-sortable { cursor: pointer; user-select: none; }
    .th-sortable:hover { background: #eef2ff !important; }

    /* ── Botones paginación inline ── */
    .pref-page-btn {
        padding: 6px 12px;
        border-radius: 8px;
        font-size: 11px;
        font-weight: 900;
        border: 1px solid #e5e7eb;
        color: #64748b;
        background: #fff;
        cursor: pointer;
        transition: all 0.15s;
    }
    .pref-page-btn:hover { border-color: #93c5fd; color: #2563eb; }
    .pref-page-btn.active { background: #2563eb; border-color: #2563eb; color: #fff; }

    /* ── Filas ── */
    .pref-row { cursor: pointer; transition: background 0.12s; }
    .pref-row:hover { background: #eff6ff; }

    /* ── Separador de sección dentro de tabla ── */
    .pref-section-header {
        padding: 8px 16px;
        font-size: 10px;
        font-weight: 900;
        text-transform: uppercase;
        letter-spacing: 0.1em;
    }
    .pref-section-hitters  { background: #eff6ff; color: #2563eb; border-bottom: 1px solid #dbeafe; }
    .pref-section-pitchers { background: #faf5ff; color: #7c3aed; border-bottom: 1px solid #ede9fe; }

    /* ── Player cell layout ── */
    .player-wrapper { display: flex; align-items: center; gap: 6px; }
    .country-flag { width: 18px; height: 12px; object-fit: cover; }
    .star-icon { font-size: 14px; cursor: pointer; user-select: none; }
    .name-stack { display: flex; flex-direction: column; }
    .player-name {
        font-weight: 900; color: #1e3a5f; text-transform: uppercase;
        font-style: italic; font-size: 12px; line-height: 1; text-decoration: none;
    }
    .player-name:hover { color: #2563eb; }
    .academy-name { font-size: 10px; color: #94a3b8; font-weight: 700; text-transform: uppercase; }
    .pill-class { background: #f1f5f9; padding: 2px 8px; border-radius: 4px; font-weight: 900; font-size: 11px; }

    /* ── Sticky wrapper ── */
    #fixed-thead-wrapper {
        position: fixed; z-index: 40; overflow: hidden; display: none;
        pointer-events: none; box-shadow: 0 4px 10px -4px rgba(0,0,0,0.15);
    }
    #modal-meta{
        text-align: left;
    }
    /* Contenedor de filtros */
.flxresponsive .flex-1{
    flex: content !important;
}
.modalReports{
    display:flex;align-items:center;justify-content:space-between;padding:16px 24px;border-bottom:1px solid rgba(255,255,255,0.08);flex-shrink:0
}
    /* Responsive */
@media (max-width: 768px) {
    .modal-overlay {
        padding: 16px;
    }
.modalReports{
    flex-wrap: wrap-reverse;
    flex-direction: row-reverse;

}
    #glossary-sections{
        grid-template-columns: repeat(1, minmax(0, 1fr));
    }
}

/* ==================== RESPONSIVE ==================== */
@media (min-width: 640px) {
    .sm\:grid-cols-2 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 768px) {
    .md\:flex-row {
        flex-direction: row;
    }
}

@media (min-width: 1024px) {
    .lg\:flex {
        display: flex;
    }
    .video-grid-container {
        grid-template-columns: 2fr 1fr;
    }
    .lg\:grid-cols-4 {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .lg\:grid-cols-5 {
        grid-template-columns: repeat(5, minmax(0, 1fr));
    }

    .lg\:grid-cols-6 {
        grid-template-columns: repeat(6, minmax(0, 1fr));
    }
}

@media (max-width: 1024px) {
    .ws-header-inner { gap: 20px; }
    .ws-nav { gap: 0; }
    .ws-nav-item { padding: 6px 10px; font-size: 10px; }
    .ws-search input { width: 160px; }
    .ws-search input:focus { width: 180px; }
    .ws-divider { display: none; }
    .ws-user-name, .ws-user-role { display: none; }
}

@media (max-width: 768px) {
    .img-responsive2 {
        width: 30px  !important;
        margin-left: 0 !important;
        position: initial;
    }
     #fixed-thead-wrapper .col-name{
            position: unset !important;
     }
     #fixed-thead-wrapper{
    top: 56px;
     }
     #fixed-thead-wrapper .col-rk{
        position: sticky;
     }
    .prof-nav-l1{
justify-content: flex-start;
    }
    .video-grid-container {
       padding: 0;
    }
     .col-name, .col-player{
        position: initial !important;
    }
    .col-rk::after {
        content: '';
        position: absolute;
        top: 0;
        right: -8px;
        bottom: 0;
        width: 8px;
        background: linear-gradient(to right, rgba(0, 0, 0, 0.06), transparent);
        pointer-events: none;
    }
    .ws-autocomplete{
        left: -30px;
    }
    .ws-notif-dropdown{
    right: -90px;
    }
    .ws-header-inner { height: 56px; padding: 0 16px; gap: 0; justify-content: space-between; }
    .ws-nav { display: none; }  
    .ws-menu-btn { display: flex; }
    .ws-user-pill { padding: 4px; border-radius: 8px; gap: 0; }
    .ws-user-name, .ws-user-role { display: none; }
    
    .stats-header-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
        padding-bottom: 16px;
        margin-bottom: 16px;
    }
    
    #cat-switcher { 
        position: static; 
        transform: none; 
        align-self: center; 
    }
    
    #list-title { font-size: 1.75rem; position: relative; }
}
@media only screen and (max-width: 1075px){ 
    .acc-table tbody tr.acc-year-row td,.acc-table thead th:first-child,.acc-table thead th:nth-child(2){
    position: initial !important;
    }
    .acc-table tbody td:first-child,.acc-table tbody td:nth-child(2){
    position: initial !important;
    }
}