/* Global fallback: scoped Shared components. Source: *.razor.css */
/* --- HomeResultsCarousel.razor.css --- */
/* HomeResultsCarousel â€” premium dark (#0B0B0F), aislado al componente (Blazor CSS scope). */

.hrc-root {
    width: 100%;
}

.hrc-sec-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px 16px;
    margin-bottom: 16px;
}

.hrc-sec-copy {
    flex: 1;
    min-width: 0;
}

.hrc-sec-eyebrow {
    display: block;
    font-size: 0.62rem;
    font-weight: 800;
    letter-spacing: 0.22em;
    color: #6b7280;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.hrc-sec-title {
    margin: 0 0 6px;
    font-size: 1.2rem;
    font-weight: 900;
    color: #f4f4f8;
    letter-spacing: -0.02em;
    line-height: 1.15;
}

.hrc-sec-lead {
    margin: 0;
    font-size: 0.82rem;
    color: #8b93a7;
    line-height: 1.45;
}

.hrc-sec-nav {
    display: flex;
    flex-shrink: 0;
    align-items: center;
    gap: 8px;
    padding-top: 2px;
}

.hrc-nav-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(22, 22, 32, 0.95);
    color: #e8e8ef;
    font-size: 1.35rem;
    line-height: 1;
    cursor: pointer;
    display: grid;
    place-items: center;
    transition: background 0.18s, border-color 0.18s, transform 0.12s;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.35);
}

.hrc-nav-btn:hover {
    background: rgba(124, 58, 237, 0.35);
    border-color: rgba(167, 139, 250, 0.55);
}

.hrc-nav-btn:active {
    transform: scale(0.94);
}

@media (max-width: 520px) {
    .hrc-nav-btn {
        width: 36px;
        height: 36px;
        font-size: 1.2rem;
    }
}

.hrc-shell {
    position: relative;
    margin: 0;
    padding: 0;
    overflow: visible;
}

.hrc-shell--loading {
    min-height: 260px;
    display: grid;
    place-items: center;
}

.hrc-loading {
    display: flex;
    gap: 8px;
}

.hrc-loading span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(124, 58, 237, 0.55);
    animation: hrc-bounce 1s ease-in-out infinite;
}

.hrc-loading span:nth-child(2) {
    animation-delay: 0.15s;
}

.hrc-loading span:nth-child(3) {
    animation-delay: 0.3s;
}

@keyframes hrc-bounce {
    0%, 100% {
        opacity: 0.35;
        transform: scale(0.85);
    }
    50% {
        opacity: 1;
        transform: scale(1);
    }
}

.hrc-empty {
    text-align: center;
    color: #6b7280;
    font-size: 0.88rem;
    padding: 28px 16px;
    border-radius: 16px;
    border: 1px dashed rgba(100, 116, 139, 0.35);
    background: rgba(18, 18, 26, 0.5);
}

.hrc-track {
    display: flex;
    gap: 14px;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    padding: 8px 12px 10px;
    -webkit-overflow-scrolling: touch;
    outline: none;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.hrc-track::-webkit-scrollbar {
    display: none;
    width: 0;
    height: 0;
}

.hrc-slide {
    flex: 0 0 min(88vw, 360px);
    width: min(88vw, 360px);
    max-width: 400px;
    scroll-snap-align: center;
    scroll-snap-stop: always;
}

@media (min-width: 720px) {
    .hrc-slide {
        flex: 0 0 380px;
        width: 380px;
    }
}

/* Card surface: negro profundo + acento violeta */
.hrc-card {
    position: relative;
    display: block;
    border-radius: 20px;
    overflow: hidden;
    text-decoration: none;
    color: #ececf4;
    min-height: 312px;
    border: 1px solid rgba(167, 139, 250, 0.18);
    background-color: #0b0b0f;
    background-image:
        radial-gradient(ellipse 100% 80% at 50% -20%, rgba(124, 58, 237, 0.22) 0%, transparent 55%),
        linear-gradient(165deg, #101018 0%, #0b0b0f 45%, #060608 100%);
    box-shadow:
        0 20px 50px rgba(0, 0, 0, 0.65),
        0 0 0 1px rgba(255, 255, 255, 0.04) inset,
        0 0 40px rgba(124, 58, 237, 0.08);
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s;
}

.hrc-card:hover {
    transform: translateY(-4px);
    box-shadow:
        0 26px 60px rgba(0, 0, 0, 0.72),
        0 0 0 1px rgba(167, 139, 250, 0.35),
        0 0 48px rgba(124, 58, 237, 0.18);
    border-color: rgba(167, 139, 250, 0.45);
}

.hrc-card:active {
    transform: translateY(-1px) scale(0.988);
}

.hrc-card--live {
    box-shadow:
        0 20px 50px rgba(0, 0, 0, 0.65),
        0 0 48px rgba(220, 38, 38, 0.22);
    border-color: rgba(248, 113, 113, 0.4);
}

.hrc-card--next {
    border-color: rgba(59, 130, 246, 0.4);
    box-shadow:
        0 20px 50px rgba(0, 0, 0, 0.65),
        0 0 40px rgba(59, 130, 246, 0.14);
}

.hrc-card__bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0.1;
    filter: saturate(0.4) contrast(1.08);
    transform: scale(1.08);
    pointer-events: none;
}

.hrc-card__veil {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(180deg, rgba(11, 11, 15, 0.15) 0%, rgba(11, 11, 15, 0.92) 50%, rgba(11, 11, 15, 0.98) 100%);
    pointer-events: none;
}

.hrc-card__body {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    min-height: 312px;
    padding: 14px 14px 12px;
}

.hrc-card__head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 10px;
    margin-bottom: 8px;
    min-height: 28px;
}

.hrc-trophy {
    margin-left: auto;
    font-size: 1rem;
    filter: drop-shadow(0 0 10px rgba(245, 200, 90, 0.55));
}

.hrc-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.58rem;
    font-weight: 900;
    letter-spacing: 0.16em;
    padding: 6px 14px;
    border-radius: 999px;
    text-transform: uppercase;
}

.hrc-badge--live {
    color: #fecaca;
    background: rgba(185, 28, 28, 0.45);
    border: 1px solid rgba(248, 113, 113, 0.55);
    box-shadow: 0 0 22px rgba(220, 38, 38, 0.25);
}

.hrc-live-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #f87171;
    box-shadow: 0 0 12px #ef4444;
    animation: hrc-live-blink 1.1s ease-in-out infinite;
}

@keyframes hrc-live-blink {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.35;
        transform: scale(0.85);
    }
}

.hrc-badge--next {
    color: #dbeafe;
    background: linear-gradient(180deg, rgba(37, 99, 235, 0.55) 0%, rgba(30, 64, 175, 0.45) 100%);
    border: 1px solid rgba(96, 165, 250, 0.55);
}

.hrc-badge--final {
    color: #d1d5db;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.14);
}

.hrc-badge--pend {
    color: #9ca3af;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(156, 163, 175, 0.22);
}

.hrc-pill {
    font-size: 0.52rem;
    font-weight: 900;
    letter-spacing: 0.12em;
    padding: 4px 10px;
    border-radius: 999px;
    text-transform: uppercase;
}

.hrc-pill--soft {
    color: #a5b4fc;
    background: rgba(99, 102, 241, 0.2);
    border: 1px solid rgba(129, 140, 248, 0.35);
}

.hrc-liga {
    margin: 0 0 6px;
    font-weight: 700;
    font-size: 0.78rem;
    line-height: 1.3;
    color: #9ca3af;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.hrc-meta {
    margin: 0;
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    color: #a78bfa;
    text-transform: uppercase;
}

.hrc-rule {
    height: 1px;
    margin: 10px 0 12px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.12), transparent);
}

/* â”€â”€ NBA-style: marcador primero â”€â”€ */
.hrc-mega {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px 14px;
    flex-wrap: wrap;
    margin-bottom: 4px;
    min-height: 3.5rem;
}

.hrc-mega--quiet {
    min-height: 2.5rem;
}

.hrc-mega-num {
    font-size: clamp(2.85rem, 12vw, 3.75rem);
    font-weight: 900;
    font-variant-numeric: tabular-nums;
    line-height: 0.9;
    letter-spacing: -0.03em;
}

.hrc-mega-num--win {
    color: #fff;
    text-shadow:
        0 0 32px rgba(245, 200, 90, 0.55),
        0 0 4px rgba(250, 204, 21, 0.95);
    filter: drop-shadow(0 0 14px rgba(245, 200, 90, 0.45));
}

.hrc-mega-num--lose {
    color: #3f3f46;
}

.hrc-mega-num--tie {
    color: #e4e4e7;
}

.hrc-mega-sep {
    font-size: clamp(1.5rem, 6vw, 2rem);
    font-weight: 800;
    color: #52525b;
    opacity: 0.9;
    user-select: none;
}

.hrc-mega-cta {
    font-size: 0.95rem;
    font-weight: 800;
    color: #93c5fd;
    letter-spacing: 0.02em;
}

.hrc-pend {
    margin: 0 0 8px;
    text-align: center;
    font-size: 0.78rem;
    color: #6b7280;
    font-weight: 700;
}

/* Identidades: logos + nombres (sin botones; lectura clara) */
.hrc-identities {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: start;
    gap: 8px 6px;
    margin-top: 6px;
    margin-bottom: 4px;
}

.hrc-id-col {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 8px;
    min-width: 0;
}

.hrc-id-col--win .hrc-id-name {
    color: #fafafa;
    font-weight: 900;
    text-shadow: 0 0 14px rgba(245, 200, 90, 0.2);
}

.hrc-id-col--lose .hrc-id-name {
    color: #71717a;
    font-weight: 600;
}

.hrc-logo-wrap {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.12);
    display: grid;
    place-items: center;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
}

.hrc-id-col--win .hrc-logo-wrap {
    border-color: rgba(245, 200, 90, 0.45);
    box-shadow:
        0 0 0 1px rgba(245, 200, 90, 0.15) inset,
        0 0 28px rgba(245, 200, 90, 0.12);
}

.hrc-logo {
    width: 46px;
    height: 46px;
    object-fit: contain;
}

.hrc-logo--ph {
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    font-size: 1.15rem;
    font-weight: 900;
    color: #c4b5fd;
    background: rgba(124, 58, 237, 0.2);
}

.hrc-id-name {
    margin: 0;
    font-size: 0.74rem;
    font-weight: 800;
    line-height: 1.2;
    color: #d4d4d8;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    width: 100%;
}

.hrc-id-vs {
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 14px;
}

.hrc-id-vs span {
    display: grid;
    place-items: center;
    min-width: 34px;
    height: 34px;
    padding: 0 8px;
    border-radius: 999px;
    font-size: 0.55rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    color: #c4b5fd;
    background: rgba(124, 58, 237, 0.15);
    border: 1px solid rgba(167, 139, 250, 0.35);
    box-shadow: 0 0 18px rgba(124, 58, 237, 0.15);
}

.hrc-countdown {
    margin: 8px 0 0;
    text-align: center;
    font-size: 0.78rem;
    font-weight: 800;
    color: #93c5fd;
    letter-spacing: 0.02em;
}

.hrc-countdown--muted {
    color: #6b7280;
    font-weight: 700;
}

.hrc-venue {
    margin-top: auto;
    display: flex;
    align-items: center;
    gap: 8px;
    padding-top: 6px;
    font-size: 0.72rem;
    font-weight: 600;
    color: #9ca3af;
}

.hrc-venue__icon {
    flex-shrink: 0;
    color: #8b5cf6;
    opacity: 0.95;
    display: grid;
    place-items: center;
}

.hrc-venue__text {
    min-width: 0;
    line-height: 1.35;
}

/* â”€â”€ Category badge â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.hrc-cat-badge {
    font-size: .52rem;
    font-weight: 900;
    letter-spacing: .7px;
    padding: 2px 7px;
    border-radius: 999px;
    flex-shrink: 0;
    white-space: nowrap;
}
.hrc-cat-badge--femenil { color: var(--cat-femenil-color, #f472b6); background: rgba(244,114,182,.15); border: 1px solid rgba(244,114,182,.30); }
.hrc-cat-badge--varonil { color: var(--cat-varonil-color, #60a5fa); background: rgba(96,165,250,.15);  border: 1px solid rgba(96,165,250,.30);  }
.hrc-cat-badge--mixto   { color: var(--cat-mixto-color,   #a78bfa); background: rgba(167,139,250,.15); border: 1px solid rgba(167,139,250,.28); }
.hrc-cat-badge--juvenil { color: var(--cat-juvenil-color, #4ade80); background: rgba(74,222,128,.12);  border: 1px solid rgba(74,222,128,.26);  }

/* â”€â”€ Category card theming â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.hrc-card[data-cat="femenil"] { border-color: var(--cat-femenil-border, rgba(244,114,182,.32)); box-shadow: 0 20px 50px rgba(0,0,0,.65), 0 0 48px var(--cat-femenil-glow, rgba(244,114,182,.20)); }
.hrc-card[data-cat="varonil"] { border-color: var(--cat-varonil-border, rgba(96,165,250,.32));  box-shadow: 0 20px 50px rgba(0,0,0,.65), 0 0 48px var(--cat-varonil-glow, rgba(96,165,250,.20)); }
.hrc-card[data-cat="mixto"]   { border-color: var(--cat-mixto-border,   rgba(167,139,250,.30)); box-shadow: 0 20px 50px rgba(0,0,0,.65), 0 0 40px var(--cat-mixto-glow,   rgba(167,139,250,.20)); }
.hrc-card[data-cat="juvenil"] { border-color: var(--cat-juvenil-border, rgba(74,222,128,.28));  box-shadow: 0 20px 50px rgba(0,0,0,.65), 0 0 40px var(--cat-juvenil-glow, rgba(74,222,128,.18)); }

/* --- GlobalSearchBar.razor.css --- */
/* â”€â”€ Global Search Bar â”€â”€ */

.gsearch-wrap {
    position: relative;
    width: 100%;
    max-width: 380px;
}

/* Input row */
.gsearch-input-row {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 12px;
    padding: 8px 12px;
    transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}

.gsearch-wrap--active .gsearch-input-row,
.gsearch-input-row:focus-within {
    border-color: rgba(130,71,229,0.5);
    background: rgba(255,255,255,0.08);
    box-shadow: 0 0 0 3px rgba(130,71,229,0.12);
}

.gsearch-icon {
    font-size: 0.85rem;
    flex-shrink: 0;
    opacity: 0.55;
}

.gsearch-input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    color: #e0e0e0;
    font-size: 0.85rem;
    font-weight: 500;
    font-family: inherit;
    min-width: 0;
}

.gsearch-input::placeholder { color: #555; }

/* Clear button */
.gsearch-clear {
    background: none;
    border: none;
    color: #555;
    cursor: pointer;
    font-size: 0.75rem;
    padding: 2px 4px;
    border-radius: 4px;
    flex-shrink: 0;
    line-height: 1;
    transition: color 0.15s;
}
.gsearch-clear:hover { color: #aaa; }

/* Backdrop */
.gsearch-backdrop {
    position: fixed;
    inset: 0;
    z-index: 900;
}

/* Dropdown */
.gsearch-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    left: 0; right: 0;
    background: linear-gradient(158deg, #18182a 0%, #0e0e1a 100%);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 16px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.65), 0 0 0 1px rgba(130,71,229,0.1);
    z-index: 901;
    overflow: hidden;
    animation: gsearch-drop 0.18s cubic-bezier(0.4, 0, 0.2, 1);
    max-height: 70dvh;
    overflow-y: auto;
}

@keyframes gsearch-drop {
    from { opacity: 0; transform: translateY(-6px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* States */
.gsearch-state {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 22px 16px;
    font-size: 0.82rem;
    color: #555;
}

.gsearch-state--empty { color: #555; }

/* Spinner */
.gsearch-spinner {
    width: 18px; height: 18px;
    border: 2px solid rgba(130,71,229,0.2);
    border-top-color: var(--accent, #8247e5);
    border-radius: 50%;
    animation: gspin 0.7s linear infinite;
}
@keyframes gspin { to { transform: rotate(360deg); } }

/* Section */
.gsearch-section { padding: 6px 0; }
.gsearch-section + .gsearch-section {
    border-top: 1px solid rgba(255,255,255,0.05);
}

.gsearch-section-head {
    padding: 8px 16px 4px;
    font-size: 0.58rem;
    font-weight: 900;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #444;
}

/* Item */
.gsearch-item {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 9px 16px;
    background: transparent;
    border: none;
    color: #ddd;
    cursor: pointer;
    text-align: left;
    transition: background 0.12s;
}
.gsearch-item:hover, .gsearch-item:focus-visible {
    background: rgba(130,71,229,0.1);
    outline: none;
}

.gsearch-item-logo {
    width: 28px; height: 28px;
    border-radius: 6px;
    object-fit: contain;
    background: #fff;
    padding: 2px;
    flex-shrink: 0;
}

.gsearch-item-icon {
    font-size: 1rem;
    flex-shrink: 0;
    width: 28px;
    text-align: center;
}

.gsearch-item-text {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.gsearch-item-title {
    font-size: 0.85rem;
    font-weight: 700;
    color: #e0e0e0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.gsearch-item-sub {
    font-size: 0.72rem;
    color: #555;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.gsearch-item-arrow {
    font-size: 1rem;
    color: #333;
    flex-shrink: 0;
    transition: color 0.12s, transform 0.12s;
}
.gsearch-item:hover .gsearch-item-arrow { color: #7c3aed; transform: translateX(2px); }

/* Footer */
.gsearch-footer {
    padding: 6px 10px 10px;
    border-top: 1px solid rgba(255,255,255,0.05);
}

.gsearch-footer-btn {
    width: 100%;
    padding: 10px;
    background: rgba(130,71,229,0.08);
    border: 1px solid rgba(130,71,229,0.2);
    border-radius: 10px;
    color: #a78bfa;
    font-size: 0.8rem;
    font-weight: 800;
    cursor: pointer;
    text-align: center;
    transition: background 0.15s;
}
.gsearch-footer-btn:hover { background: rgba(130,71,229,0.15); }

/* â”€â”€ Responsive â”€â”€ */
@media (max-width: 900px) {
    .gsearch-wrap {
        max-width: 100%;
    }
}

