/* ============================================
   JUGADORAS F/A - Estilos
   ============================================ */

/* Hero */
.fa-hero {
    padding: 120px 0 60px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.fa-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at top, rgba(125, 60, 88, 0.25) 0%, transparent 70%);
    pointer-events: none;
}

.fa-hero__badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.35rem 1rem;
    border-radius: 999px;
    background: rgba(244, 169, 66, 0.12);
    border: 1px solid rgba(244, 169, 66, 0.3);
    color: var(--brand-gold);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 1.2rem;
}

.fa-hero h1 {
    font-family: var(--font-display);
    font-size: clamp(2.2rem, 5vw, 3.8rem);
    font-weight: 900;
    color: var(--text-primary);
    line-height: 1.1;
    margin-bottom: 1rem;
}

.fa-hero h1 span {
    color: var(--brand-pink);
}

.fa-hero p {
    color: var(--text-secondary);
    font-size: 1.05rem;
    max-width: 520px;
    margin: 0 auto;
}

/* Filtros */
.fa-filters {
    padding: 0 0 40px;
}

.fa-filters__inner {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.fa-filters__label {
    color: var(--text-muted);
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.fa-filters select {
    padding: 0.55rem 2.4rem 0.55rem 1.2rem;
    border-radius: 999px;
    background: #1e0a12;
    border: 1px solid var(--border-glass);
    color: var(--text-primary);
    font-size: 0.88rem;
    cursor: pointer;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='rgba(255,143,163,0.7)' viewBox='0 0 16 16'%3E%3Cpath d='M8 11L3 6h10l-5 5z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.9rem center;
}

.fa-filters select option {
    background-color: #1a050a;
    color: var(--text-white);
}

.fa-filters select:focus {
    border-color: var(--brand-pink);
    box-shadow: 0 0 0 3px rgba(255, 143, 163, 0.12);
}

.fa-filters__btn {
    padding: 0.55rem 1.4rem;
    border-radius: 999px;
    background: var(--brand-wine);
    border: none;
    color: #fff;
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
    transition: opacity 0.2s;
}

.fa-filters__btn:hover {
    opacity: 0.85;
}

.fa-filters__clear {
    color: var(--text-muted);
    font-size: 0.82rem;
    text-decoration: none;
    transition: color 0.2s;
}

.fa-filters__clear:hover {
    color: var(--brand-pink);
}

/* Grid */
.fa-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1.5rem;
    padding-bottom: 80px;
}

/* Tarjeta de jugadora */
.fa-card {
    background: var(--card-bg);
    border: 1px solid var(--border-glass);
    border-radius: 16px;
    overflow: hidden;
    transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
}

.fa-card:hover {
    transform: translateY(-4px);
    border-color: rgba(255, 143, 163, 0.35);
    box-shadow: 0 12px 40px rgba(125, 60, 88, 0.25);
}

.fa-card__photo {
    width: 100%;
    aspect-ratio: 4/3;
    object-fit: cover;
    object-position: top;
    background: var(--surface-wine);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    font-weight: 900;
    color: var(--brand-pink);
    font-family: var(--font-display);
}

.fa-card__photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
}

.fa-card__body {
    padding: 1.1rem 1.2rem 1.2rem;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    flex: 1;
}

.fa-card__names {
    line-height: 1.2;
}

.fa-card__nickname {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.05rem;
    color: var(--text-primary);
}

.fa-card__game-nick {
    font-size: 0.78rem;
    color: var(--text-muted);
}

.fa-card__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

/* Badges de rol */
.role-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.2rem 0.65rem;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    border: 1px solid transparent;
}

.role-badge--top       { background: rgba(255, 87, 87, 0.15); border-color: rgba(255,87,87,0.3); color: #ff8080; }
.role-badge--jungla    { background: rgba(87, 200, 87, 0.15); border-color: rgba(87,200,87,0.3); color: #7de07d; }
.role-badge--mid       { background: rgba(100, 149, 255, 0.15); border-color: rgba(100,149,255,0.3); color: #8fb3ff; }
.role-badge--adc       { background: rgba(255, 200, 80, 0.15); border-color: rgba(255,200,80,0.3); color: #ffd060; }
.role-badge--support   { background: rgba(200, 130, 255, 0.15); border-color: rgba(200,130,255,0.3); color: #c87eff; }
.role-badge--secondary { opacity: 0.7; }

/* Badge de rango */
.rank-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.2rem 0.65rem;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 700;
    border: 1px solid currentColor;
}

.rank-badge--hierro      { color: #9e9e9e; }
.rank-badge--bronce      { color: #cd7f32; }
.rank-badge--plata       { color: #b0bec5; }
.rank-badge--oro         { color: #ffd700; }
.rank-badge--platino     { color: #00c8d7; }
.rank-badge--esmeralda   { color: #00c97a; }
.rank-badge--diamante    { color: #6db5f8; }
.rank-badge--master      { color: #c36ef5; }
.rank-badge--grandmaster { color: #e84057; }
.rank-badge--challenger  { color: #f0d080; }
.rank-badge--soberano   { border-color: #c89b3c; background: linear-gradient(90deg, #c89b3c, #e8c86a, #c89b3c); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }

.fa-card__region {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-left: auto;
    align-self: flex-end;
}

.fa-card__champions {
    font-size: 0.78rem;
    color: var(--text-secondary);
}

.fa-card__champions span {
    color: var(--brand-gold);
}

.fa-card__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
    padding-top: 0.4rem;
    border-top: 1px solid var(--border-glass);
}

.fa-badge {
    font-size: 0.68rem;
    font-weight: 700;
    color: var(--brand-pink);
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.fa-card__discord {
    font-size: 0.78rem;
    color: #7289da;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

/* Estado vacío */
.fa-empty {
    text-align: center;
    padding: 80px 20px;
    color: var(--text-muted);
    grid-column: 1 / -1;
}

.fa-empty i {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: block;
    color: var(--brand-wine);
}

/* ============================================
   DETALLE DE JUGADORA
   ============================================ */

/* Hero */
.pd-hero {
    position: relative;
    min-height: 440px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    padding-top: 80px;
}

/* Orbe decorativo derecho */
.pd-hero::before {
    content: '';
    position: absolute;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 143, 163, 0.12) 0%, transparent 65%);
    bottom: -120px;
    right: 5%;
    pointer-events: none;
    z-index: 0;
}

.pd-hero__bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center top;
    filter: blur(30px) brightness(0.25) saturate(1.6);
    transform: scale(1.1);
}

.pd-hero__bg--empty {
    background: radial-gradient(ellipse at 30% 50%, rgba(125, 60, 88, 0.3) 0%, transparent 70%);
    filter: none;
    transform: none;
}

.pd-hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(10, 2, 6, 0.15) 0%,
        rgba(10, 2, 6, 0.5) 50%,
        var(--bg-primary) 100%
    );
}

.pd-hero__inner {
    position: relative;
    z-index: 1;
    padding-top: 2rem;
    padding-bottom: 4rem;
}

/* Línea separadora sutil al fondo del hero */
.pd-hero__inner::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(to right, transparent 0%, rgba(255, 143, 163, 0.18) 40%, rgba(255, 143, 163, 0.18) 60%, transparent 100%);
}

.pd-back {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: rgba(255, 255, 255, 0.4);
    text-decoration: none;
    font-size: 0.82rem;
    margin-bottom: 2.5rem;
    transition: color 0.2s;
}

.pd-back:hover {
    color: var(--brand-pink);
}

.pd-hero__content {
    display: flex;
    align-items: flex-end;
    gap: 2.4rem;
}

/* Foto circular con anillos animados */
.pd-photo-wrap {
    position: relative;
    flex-shrink: 0;
}

.pd-photo-wrap::before,
.pd-photo-wrap::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
}

.pd-photo-wrap::before {
    inset: -7px;
    border: 2px solid rgba(255, 143, 163, 0.3);
    animation: pd-ring 3.5s ease-in-out infinite;
}

.pd-photo-wrap::after {
    inset: -16px;
    border: 1px solid rgba(255, 143, 163, 0.12);
    animation: pd-ring 3.5s ease-in-out infinite 0.7s;
}

@keyframes pd-ring {
    0%, 100% { opacity: 1; transform: scale(1); }
    50%       { opacity: 0.45; transform: scale(1.04); }
}

.pd-photo {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    background: rgba(125, 60, 88, 0.3);
    border: 3px solid rgba(255, 143, 163, 0.5);
    overflow: hidden;
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.55),
        0 0 50px rgba(255, 143, 163, 0.15);
}

.pd-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
}

.pd-photo span {
    display: flex;
    width: 100%;
    height: 100%;
    align-items: center;
    justify-content: center;
    font-size: 4.5rem;
    font-weight: 900;
    color: var(--brand-pink);
    font-family: var(--font-display);
}

/* Identidad */
.pd-fa-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.22rem 0.75rem;
    border-radius: 999px;
    background: rgba(255, 143, 163, 0.1);
    border: 1px solid rgba(255, 143, 163, 0.3);
    color: var(--brand-pink);
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.09em;
    margin-bottom: 0.6rem;
}

.pd-hero__identity h1 {
    font-family: var(--font-display);
    font-size: clamp(1.9rem, 4.5vw, 3.2rem);
    font-weight: 900;
    line-height: 1.02;
    margin-bottom: 0.45rem;
    background: linear-gradient(135deg, #fff 30%, rgba(255, 193, 210, 0.85) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.pd-gamenick {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: rgba(255, 255, 255, 0.48);
    font-size: 0.88rem;
    margin-bottom: 1rem;
}

.pd-region {
    padding: 0.13rem 0.55rem;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.07);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.07em;
    color: rgba(255, 255, 255, 0.55);
    border: 1px solid rgba(255,255,255,0.08);
}

.pd-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

/* Cuerpo */
.pd-body {
    padding: 2.8rem 0 5rem;
}

.pd-grid {
    display: grid;
    grid-template-columns: 270px 1fr;
    gap: 1.5rem;
    align-items: start;
}

/* Cards base */
.pd-card {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 18px;
    padding: 1.5rem;
    margin-bottom: 1.25rem;
    transition: border-color 0.25s, box-shadow 0.25s;
}

.pd-card:last-child {
    margin-bottom: 0;
}

.pd-card:hover {
    border-color: rgba(255, 143, 163, 0.18);
    box-shadow: 0 4px 28px rgba(255, 143, 163, 0.05);
}

.pd-card h3 {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--text-muted);
    font-weight: 700;
    margin-bottom: 1.1rem;
    padding-bottom: 0.8rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.pd-card h3 i {
    font-size: 1rem;
    color: var(--brand-pink);
}

/* Card de contacto */
.pd-card--contact {
    background: linear-gradient(135deg, rgba(88, 101, 242, 0.09) 0%, rgba(88, 101, 242, 0.02) 100%);
    border-color: rgba(88, 101, 242, 0.2);
}

.pd-card--contact:hover {
    border-color: rgba(88, 101, 242, 0.35);
    box-shadow: 0 4px 28px rgba(88, 101, 242, 0.08);
}

/* Card bio con acento izquierdo */
.pd-card--bio {
    border-left: 2px solid rgba(255, 143, 163, 0.4);
}

/* Discord */
.pd-discord-btn {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.9rem 1rem;
    background: #5865f2;
    border-radius: 12px;
    color: #fff;
    text-decoration: none;
    transition: transform 0.18s, box-shadow 0.18s;
    position: relative;
    overflow: hidden;
}

.pd-discord-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, transparent 60%);
    pointer-events: none;
}

.pd-discord-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(88, 101, 242, 0.45);
    color: #fff;
}

.pd-discord-btn > i:first-child {
    font-size: 1.6rem;
    flex-shrink: 0;
}

.pd-discord-btn span {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
}

.pd-discord-btn strong {
    font-size: 0.9rem;
    line-height: 1;
}

.pd-discord-btn small {
    font-size: 0.72rem;
    opacity: 0.7;
}

.pd-discord-arrow {
    font-size: 1rem;
    opacity: 0.55;
    flex-shrink: 0;
}

/* Stats */
.pd-stats {
    display: flex;
    flex-direction: column;
}

.pd-stat {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.7rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.pd-stat:first-child { padding-top: 0; }
.pd-stat:last-child  { border-bottom: none; padding-bottom: 0; }

.pd-stat__label {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.78rem;
    color: var(--text-muted);
}

.pd-stat__label::before {
    content: '';
    display: inline-block;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: rgba(255, 143, 163, 0.45);
    flex-shrink: 0;
}

.pd-stat__value {
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--text-primary);
}

/* Bio */
.pd-bio {
    color: var(--text-secondary);
    line-height: 1.82;
    font-size: 0.93rem;
    margin: 0;
}

/* Responsive */
@media (max-width: 768px) {
    .pd-hero__content {
        flex-direction: column;
        align-items: flex-start;
        gap: 1.2rem;
    }

    .pd-photo {
        width: 115px;
        height: 115px;
    }

    .pd-hero__identity h1 {
        font-size: 1.8rem;
    }

    .pd-grid {
        grid-template-columns: 1fr;
    }
}

/* Light theme */
[data-theme="light"] .pd-hero::before {
    background: radial-gradient(circle, rgba(125, 60, 88, 0.08) 0%, transparent 65%);
}

[data-theme="light"] .pd-hero__overlay {
    background: linear-gradient(
        to bottom,
        rgba(255, 240, 248, 0.1) 0%,
        rgba(255, 240, 248, 0.55) 55%,
        var(--bg-primary) 100%
    );
}

[data-theme="light"] .pd-hero__identity h1 {
    background: linear-gradient(135deg, var(--text-primary) 30%, var(--brand-wine) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

[data-theme="light"] .pd-gamenick {
    color: var(--text-muted);
}

[data-theme="light"] .pd-region {
    background: rgba(125, 60, 88, 0.08);
    border-color: rgba(125, 60, 88, 0.12);
    color: var(--text-secondary);
}

[data-theme="light"] .pd-card {
    background: rgba(255, 230, 240, 0.45);
    border-color: rgba(125, 60, 88, 0.12);
    backdrop-filter: blur(8px);
}

[data-theme="light"] .pd-card:hover {
    border-color: rgba(125, 60, 88, 0.28);
    box-shadow: 0 4px 24px rgba(125, 60, 88, 0.07);
}

[data-theme="light"] .pd-card h3 {
    border-color: rgba(125, 60, 88, 0.08);
}

[data-theme="light"] .pd-card--bio {
    border-left-color: rgba(125, 60, 88, 0.4);
}

[data-theme="light"] .pd-stat {
    border-color: rgba(125, 60, 88, 0.06);
}

[data-theme="light"] .pd-stat__label::before {
    background: rgba(125, 60, 88, 0.4);
}

[data-theme="light"] .pd-card--contact {
    background: linear-gradient(135deg, rgba(88, 101, 242, 0.06) 0%, transparent 100%);
    border-color: rgba(88, 101, 242, 0.15);
}

[data-theme="light"] .pd-photo-wrap::before {
    border-color: rgba(125, 60, 88, 0.25);
}

[data-theme="light"] .pd-photo-wrap::after {
    border-color: rgba(125, 60, 88, 0.1);
}

/* ============================================
   SECCION F/A EN /cuenta
   ============================================ */
.fa-profile-section {
    margin-top: 2rem;
}

/* Upload de foto */
.fa-photo-upload {
    display: flex;
    align-items: center;
    gap: 1.4rem;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
}

.fa-photo-preview {
    width: 90px;
    height: 90px;
    border-radius: 12px;
    overflow: hidden;
    flex-shrink: 0;
    background: rgba(125, 60, 88, 0.15);
    border: 1px solid rgba(255, 143, 163, 0.15);
}

.fa-photo-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
    display: block;
}

.fa-photo-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: rgba(255, 143, 163, 0.35);
}

.fa-photo-info {
    flex: 1;
}

.fa-photo-info input[type="file"] {
    display: none;
}

.fa-photo-hint {
    margin-top: 0.55rem;
    font-size: 0.75rem;
    color: var(--text-muted);
    line-height: 1.5;
}

/* Toggle fila */
.fa-toggle-row {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.9rem 1rem;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    margin-bottom: 1.4rem;
}

.fa-toggle-switch {
    flex-shrink: 0;
}

.fa-toggle-switch input[type="checkbox"] {
    display: none;
}

.fa-toggle-switch label {
    display: block;
    width: 46px;
    height: 26px;
    background: rgba(255, 255, 255, 0.12);
    border-radius: 999px;
    cursor: pointer;
    position: relative;
    transition: background 0.2s;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.fa-toggle-switch label::after {
    content: '';
    position: absolute;
    top: 3px;
    left: 3px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    transition: transform 0.22s, background 0.2s;
}

.fa-toggle-switch input[type="checkbox"]:checked + label {
    background: var(--brand-pink);
    border-color: var(--brand-pink);
}

.fa-toggle-switch input[type="checkbox"]:checked + label::after {
    transform: translateX(20px);
    background: #fff;
}

.fa-toggle-text span {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-primary);
}

.fa-toggle-text small {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* Botones de accion */
.fa-form-actions {
    display: flex;
    gap: 0.8rem;
    align-items: center;
    flex-wrap: wrap;
}

.fa-form-actions .btn-primary {
    flex: 1;
    min-width: 160px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    padding: 0.9rem 1.4rem;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    border: none;
    background: linear-gradient(135deg, var(--brand-pink) 0%, var(--brand-wine) 100%);
    color: #fff;
    transition: all 0.2s ease;
}

.fa-form-actions .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(255, 143, 163, 0.35);
}

.fa-view-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.9rem 1.2rem;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-secondary);
    font-size: 0.88rem;
    font-weight: 600;
    transition: all 0.2s;
    white-space: nowrap;
}

.fa-view-btn:hover {
    border-color: var(--brand-gold);
    color: var(--brand-gold);
}

.champions-hint {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 0.35rem;
    display: block;
}

/* ============================================
   SELECTOR DE CAMPEONES
   ============================================ */
.champ-selector {
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 14px;
    background: rgba(0, 0, 0, 0.3);
    overflow: hidden;
}

/* Chips de campeones seleccionados */
.champ-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    padding: 0.75rem;
    min-height: 52px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    align-items: center;
}

.champ-chips__placeholder {
    font-size: 0.82rem;
    color: var(--text-muted);
}

.champ-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.25rem 0.5rem 0.25rem 0.25rem;
    background: rgba(255, 143, 163, 0.12);
    border: 1px solid rgba(255, 143, 163, 0.3);
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--text-primary);
}

.champ-chip img {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    object-fit: cover;
    display: inline;
}

.champ-chip__remove {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.12);
    color: var(--text-muted);
    cursor: pointer;
    padding: 0;
    font-size: 0.65rem;
    transition: background 0.15s, color 0.15s;
}

.champ-chip__remove:hover {
    background: rgba(255, 107, 107, 0.3);
    color: #ff8080;
}

/* Buscador */
.champ-search-wrap {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.6rem 0.75rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    color: var(--text-muted);
}

.champ-search-wrap i {
    font-size: 1rem;
    flex-shrink: 0;
}

.champ-search {
    flex: 1;
    background: none;
    border: none;
    outline: none;
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 0.88rem;
}

.champ-search::placeholder {
    color: var(--text-muted);
}

/* Grid */
.champ-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(72px, 1fr));
    gap: 0.5rem;
    padding: 0.75rem;
    max-height: 280px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 143, 163, 0.3) transparent;
}

.champ-grid::-webkit-scrollbar {
    width: 4px;
}
.champ-grid::-webkit-scrollbar-thumb {
    background: rgba(255, 143, 163, 0.3);
    border-radius: 4px;
}

/* Item */
.champ-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.3rem;
    padding: 0.4rem;
    border-radius: 10px;
    background: transparent;
    border: 1px solid transparent;
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s, transform 0.15s;
}

.champ-item:hover:not(.disabled) {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

.champ-item img {
    width: 52px;
    height: 52px;
    border-radius: 8px;
    object-fit: cover;
    border: 2px solid transparent;
    transition: border-color 0.15s;
    display: block;
}

.champ-item span {
    font-size: 0.65rem;
    color: var(--text-muted);
    text-align: center;
    line-height: 1.2;
    max-width: 68px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.champ-item.selected {
    background: rgba(255, 143, 163, 0.1);
    border-color: rgba(255, 143, 163, 0.45);
}

.champ-item.selected img {
    border-color: var(--brand-pink);
}

.champ-item.selected span {
    color: var(--brand-pink);
}

.champ-item.disabled {
    opacity: 0.35;
    cursor: default;
}

.champ-loading,
.champ-empty {
    grid-column: 1 / -1;
    text-align: center;
    padding: 1.5rem;
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* Light theme */
[data-theme="light"] .champ-selector {
    background: rgba(255, 225, 235, 0.4);
    border-color: rgba(125, 60, 88, 0.18);
}

[data-theme="light"] .champ-item:hover:not(.disabled) {
    background: rgba(125, 60, 88, 0.06);
    border-color: rgba(125, 60, 88, 0.15);
}

[data-theme="light"] .champ-item.selected {
    background: rgba(255, 143, 163, 0.12);
    border-color: rgba(255, 143, 163, 0.4);
}

[data-theme="light"] .champ-chip {
    background: rgba(255, 143, 163, 0.1);
    border-color: rgba(255, 143, 163, 0.35);
}

/* ============================================
   LIGHT THEME OVERRIDES
   ============================================ */
[data-theme="light"] .fa-card {
    background: rgba(255, 230, 240, 0.5);
    border-color: rgba(125, 60, 88, 0.2);
}

[data-theme="light"] .fa-filters select {
    background: #fff0f5;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%237d3c58' viewBox='0 0 16 16'%3E%3Cpath d='M8 11L3 6h10l-5 5z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.9rem center;
    border-color: rgba(125, 60, 88, 0.3);
    color: var(--text-primary);
}

[data-theme="light"] .fa-filters select option {
    background-color: #fff5f8;
    color: var(--text-primary);
}

[data-theme="light"] .fa-photo-upload {
    background: rgba(255, 220, 235, 0.4);
    border-color: rgba(125, 60, 88, 0.15);
}

[data-theme="light"] .fa-photo-preview {
    background: rgba(125, 60, 88, 0.08);
    border-color: rgba(125, 60, 88, 0.2);
}

[data-theme="light"] .fa-toggle-row {
    background: rgba(255, 220, 235, 0.35);
    border-color: rgba(125, 60, 88, 0.12);
}

[data-theme="light"] .fa-toggle-switch label {
    background: rgba(125, 60, 88, 0.15);
    border-color: rgba(125, 60, 88, 0.2);
}

[data-theme="light"] .fa-view-btn {
    background: rgba(125, 60, 88, 0.06);
    border-color: rgba(125, 60, 88, 0.2);
    color: var(--text-secondary);
}

/* Champion icons – public listing cards */
.fa-card__champions {
    display: flex;
    align-items: center;
    gap: 4px;
    flex-wrap: wrap;
    margin-top: 0.35rem;
}

.champ-icons-label {
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-secondary);
    margin-right: 2px;
}

.champ-icon-sm {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 1px solid rgba(255, 143, 163, 0.3);
    object-fit: cover;
    background: rgba(255,255,255,0.04);
}

/* Champion icons – detail page */
.fa-detail__champs {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 0.25rem;
}

.champ-icon-lg {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.45rem;
    width: 72px;
    cursor: default;
}

.champ-icon-lg img {
    width: 64px;
    height: 64px;
    border-radius: 10px;
    border: 1px solid rgba(255, 143, 163, 0.25);
    object-fit: cover;
    background: rgba(255,255,255,0.04);
    transition: transform 0.18s, box-shadow 0.18s, border-color 0.18s;
}

.champ-icon-lg:hover img {
    transform: translateY(-4px) scale(1.06);
    box-shadow: 0 8px 20px rgba(255, 143, 163, 0.3);
    border-color: rgba(255, 143, 163, 0.6);
}

.champ-icon-lg span {
    font-size: 0.62rem;
    color: var(--text-muted);
    text-align: center;
    line-height: 1.2;
    word-break: break-word;
    transition: color 0.18s;
}

.champ-icon-lg:hover span {
    color: var(--text-secondary);
}
