/* ==========================================================================
   BUNDESLIGA CLUB PROFILE DESIGN SYSTEM
   Dynamic Team Color Palette & Official Bundesliga Squad Field Pitch Layout
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;600;700;800;900&display=swap');

.bvb-club-page {
    font-family: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background-color: #0b0d12;
    color: #e2e8f0;
    padding-bottom: calc(115px + env(safe-area-inset-bottom, 20px));
}

/* --------------------------------------------------------------------------
   HERO BANNER & CLUB HEADER
   -------------------------------------------------------------------------- */
.bvb-hero-banner {
    position: relative;
    background: #11141d;
    background: linear-gradient(135deg, #0f121a 0%, #171b26 50%, #0b0d12 100%);
    border-bottom: 4px solid var(--team-primary, #fde100);
    overflow: hidden;
    padding: 50px 0 35px 0;
    margin-bottom: 0;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.bvb-hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-size: cover;
    background-position: center center;
    opacity: 0.18;
    filter: blur(2px) grayscale(20%);
    z-index: 1;
    transform: scale(1.05);
}

.bvb-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 50%, var(--team-primary-alpha, rgba(253,225,0,0.15)) 0%, transparent 60%),
                linear-gradient(to right, rgba(11,13,18,0.92) 0%, rgba(11,13,18,0.7) 50%, rgba(11,13,18,0.95) 100%);
    z-index: 2;
}

.bvb-hero-content {
    position: relative;
    z-index: 3;
}

/* Club Shield Frame */
.bvb-shield-container {
    position: relative;
    display: inline-block;
}

.bvb-club-shield {
    width: 140px;
    height: 140px;
    object-fit: contain;
    background: rgba(15, 18, 25, 0.85);
    border: 3px solid var(--team-primary, #fde100);
    border-radius: 50%;
    padding: 12px;
    box-shadow: 0 0 25px var(--team-primary-glow, rgba(253,225,0,0.35)),
                0 8px 20px rgba(0,0,0,0.6);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.bvb-club-shield:hover {
    transform: scale(1.05) rotate(-2deg);
    box-shadow: 0 0 35px var(--team-primary-glow, rgba(253,225,0,0.5)),
                0 12px 25px rgba(0,0,0,0.7);
}

/* Club Header Info */
.bvb-hero-club-title {
    font-size: 2.8rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: -0.5px;
    color: #ffffff;
    margin: 0 0 10px 0;
    text-shadow: 0 3px 12px rgba(0,0,0,0.85);
    line-height: 1.1;
}

.bvb-hero-club-title span {
    color: var(--team-primary, #fde100);
}

.bvb-hero-venue-tag {
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    background: rgba(0, 0, 0, 0.40) !important;
    backdrop-filter: blur(10px) !important;
    -webkit-backdrop-filter: blur(10px) !important;
    padding: 6px 16px !important;
    border-radius: 20px !important;
    border: 1px solid rgba(255, 255, 255, 0.22) !important;
    color: #ffffff !important;
    font-size: 0.88rem !important;
    font-weight: 700 !important;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.45) !important;
    margin-top: 6px !important;
}

.bvb-hero-venue-tag i {
    color: var(--team-primary, #fde100);
}

/* Team Uniform Color Pill */
.bvb-color-swatch {
    display: inline-block;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background-color: var(--team-primary, #fde100);
    box-shadow: 0 0 8px var(--team-primary-glow);
    border: 2px solid #fff;
    vertical-align: middle;
}

/* Center Shield Logo Container */
.bvb-center-shield-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 180px;
    max-height: 180px;
    margin: 0 auto;
    position: relative;
    z-index: 10;
}

.bvb-center-shield-img {
    max-width: 140px !important;
    max-height: 140px !important;
    width: auto !important;
    height: auto !important;
    object-fit: contain !important;
    filter: drop-shadow(0 12px 28px rgba(0, 0, 0, 0.85)) drop-shadow(0 0 15px rgba(255, 255, 255, 0.3)) !important;
    transition: transform 0.35s ease, filter 0.35s ease !important;
}

.bvb-center-shield-img:hover {
    transform: scale(1.06) !important;
    filter: drop-shadow(0 16px 32px rgba(0, 0, 0, 0.9)) drop-shadow(0 0 22px var(--team-primary-alpha, rgba(56, 189, 248, 0.5))) !important;
}

/* Stat Widgets inside Hero Header */
.bvb-stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    max-width: 290px;
    margin-left: auto;
}

@media (max-width: 991px) {
    .bvb-stats-grid {
        margin: 15px auto 0 auto;
    }
    .bvb-hero-club-title {
        font-size: 2.2rem;
        text-align: center;
    }
    .bvb-hero-left-col {
        text-align: center !important;
        margin-bottom: 20px;
    }
}

.bvb-stat-card {
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255,255,255,0.15);
    border-top: 3px solid var(--team-primary, #fde100);
    border-radius: 12px;
    padding: 10px 14px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.4);
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.bvb-stat-card:hover {
    transform: translateY(-3px);
    border-color: rgba(255,255,255,0.2);
}

.bvb-stat-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #94a3b8;
    margin-bottom: 2px;
}

.bvb-stat-value {
    font-size: 1.6rem;
    font-weight: 800;
    color: #ffffff;
    line-height: 1;
}

.bvb-stat-value small {
    font-size: 0.85rem;
    color: var(--team-primary, #fde100);
    font-weight: 600;
}

/* --------------------------------------------------------------------------
   STICKY SUB-NAV TABS
   -------------------------------------------------------------------------- */
.bvb-nav-wrapper {
    position: sticky;
    top: 0;
    z-index: 100;
    background: #0f121a;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    box-shadow: 0 4px 20px rgba(0,0,0,0.4);
}

.bvb-nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    overflow-x: auto;
    white-space: nowrap;
    scrollbar-width: none;
}
.bvb-nav-container::-webkit-scrollbar {
    display: none;
}

.bvb-nav-tabs {
    display: flex;
    margin: 0;
    padding: 0;
    list-style: none;
}

.bvb-nav-item {
    margin: 0;
}

.bvb-nav-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 16px 24px;
    font-weight: 700;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #94a3b8;
    text-decoration: none !important;
    border-bottom: 3px solid transparent;
    transition: all 0.25s ease;
}

.bvb-nav-link i {
    font-size: 1.1rem;
    transition: color 0.25s ease;
}

.bvb-nav-link:hover {
    color: #ffffff;
    background: rgba(255,255,255,0.03);
}

.bvb-nav-link.active {
    color: var(--team-text-on-primary, #ffffff);
    background: var(--team-primary, #fde100);
    border-bottom-color: #ffffff;
    box-shadow: inset 0 -3px 0 rgba(0,0,0,0.2);
}

.bvb-nav-link.active i {
    color: var(--team-text-on-primary, #ffffff);
}

/* --------------------------------------------------------------------------
   SECTION HEADERS
   -------------------------------------------------------------------------- */
.bvb-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 35px 0 25px 0;
    padding-bottom: 12px;
    border-bottom: 2px solid rgba(255,255,255,0.08);
    position: relative;
}

.bvb-section-header::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 60px;
    height: 3px;
    background: var(--team-primary, #fde100);
    box-shadow: 0 0 10px var(--team-primary-glow);
}

.bvb-section-title {
    font-size: 1.5rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #ffffff;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.bvb-section-title i {
    color: var(--team-primary, #fde100);
}

/* --------------------------------------------------------------------------
   OFFICIAL SQUAD VIEW WITH SOCCER PITCH LINES (DARK MODE INMERSIVO)
   -------------------------------------------------------------------------- */
.bvb-squad-container {
    position: relative;
    background: linear-gradient(165deg, #091322 0%, #0c182c 40%, #060b14 100%) !important;
    border-radius: 20px !important;
    padding: 40px 25px !important;
    margin: 25px 0 40px 0 !important;
    box-shadow: 0 16px 45px rgba(0, 0, 0, 0.7), inset 0 0 35px rgba(0, 0, 0, 0.6) !important;
    border: 1px solid rgba(56, 189, 248, 0.25) !important;
    overflow: hidden; /* Contains pitch background overlay */
}

/* Layering for Squad Content */
.bvb-squad-content-layer {
    position: relative;
    z-index: 5;
}

/* Soccer Field Pitch Vector Lines Overlay */
.bvb-pitch-lines-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    opacity: 0.85;
}

.bvb-pitch-lines-overlay svg rect,
.bvb-pitch-lines-overlay svg path,
.bvb-pitch-lines-overlay svg line,
.bvb-pitch-lines-overlay svg circle {
    stroke: rgba(56, 189, 248, 0.16) !important;
}

.bvb-squad-main-title {
    font-size: 1.6rem;
    font-weight: 900;
    text-transform: uppercase;
    text-align: center;
    color: #ffffff !important;
    letter-spacing: 1.5px;
    margin-bottom: 35px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.9);
}

.bvb-position-group-row {
    margin-bottom: 45px;
}

.bvb-position-group-row:last-child {
    margin-bottom: 10px;
}

.bvb-position-header-text {
    font-size: 0.95rem;
    font-weight: 800;
    text-transform: uppercase;
    text-align: center;
    color: #94a3b8 !important;
    letter-spacing: 2px;
    margin-bottom: 22px;
    position: relative;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.7);
}

.bvb-position-header-text::after {
    content: '';
    display: block;
    width: 40px;
    height: 2px;
    background: var(--team-primary, #38bdf8);
    margin: 6px auto 0 auto;
    border-radius: 2px;
    box-shadow: 0 0 8px var(--team-primary-alpha, rgba(56, 189, 248, 0.5));
}

/* Centered Horizontal Flex Container for Player Cards */
.bvb-players-flex-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: stretch;
    gap: 16px;
    max-width: 1150px;
    margin: 0 auto;
}

/* Ultimate Team Luxury Dark Player Card */
.bvb-bndesliga-card {
    width: 148px !important;
    min-width: 135px !important;
    background: linear-gradient(165deg, rgba(20, 30, 48, 0.95) 0%, rgba(11, 17, 30, 0.98) 60%, rgba(6, 9, 17, 1) 100%) !important;
    border-radius: 18px !important;
    clip-path: none !important;
    filter: none !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.15) !important;
    padding: 12px 8px 14px 8px !important;
    text-align: center !important;
    cursor: pointer !important;
    transition: all 0.32s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: space-between !important;
    align-items: center !important;
    position: relative !important;
    user-select: none;
    margin: 6px !important;
    gap: 2px !important;
}

.bvb-bndesliga-card:hover {
    transform: translateY(-8px) scale(1.04) !important;
    border-color: var(--team-primary, #38bdf8) !important;
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.85), 0 0 22px var(--team-primary-alpha, rgba(56, 189, 248, 0.45)) !important;
}

/* Name Box */
.bvb-card-name-box {
    width: 100% !important;
    margin-bottom: 2px !important;
    padding: 0 2px !important;
}

.bvb-card-name-with-logo {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 6px !important;
    width: 100% !important;
}

.bvb-card-header-logo {
    width: 18px !important;
    height: 18px !important;
    object-fit: contain !important;
    flex-shrink: 0 !important;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.5)) !important;
}

.bvb-card-names-wrap {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
    overflow: hidden !important;
    flex: 1 !important;
}

.bvb-card-firstname {
    font-size: 0.68rem !important;
    font-weight: 700 !important;
    color: #94a3b8 !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    width: 100% !important;
    line-height: 1.1 !important;
    text-transform: uppercase !important;
}

.bvb-card-lastname {
    font-size: 0.88rem !important;
    font-weight: 900 !important;
    color: #ffffff !important;
    text-transform: uppercase !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    width: 100% !important;
    line-height: 1.1 !important;
    letter-spacing: 0.2px !important;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.8) !important;
}

/* Centered Dorsal Number in White Space between Name and Photo */
.bvb-card-number-center {
    width: 100% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin: 3px 0 4px 0 !important;
    z-index: 10 !important;
}

.bvb-number-badge {
    font-family: 'Impact', 'Montserrat', sans-serif !important;
    font-size: 1.35rem !important;
    font-weight: 900 !important;
    color: var(--team-primary, #38bdf8) !important;
    line-height: 1 !important;
    letter-spacing: 0px !important;
    text-shadow: 0 0 10px var(--team-primary-alpha, rgba(56, 189, 248, 0.5)) !important;
}

/* Lower Shield Visual Panel */
.bvb-card-shield-body {
    position: relative !important;
    width: 100% !important;
    height: 110px !important;
    display: flex !important;
    align-items: flex-end !important;
    justify-content: center !important;
    overflow: hidden !important;
    border-radius: 0 0 12px 12px !important;
    background: transparent !important;
}

.bvb-card-bg-panel {
    display: none !important;
}

/* Photo Wrapper & Portrait Image */
.bvb-card-photo-wrapper {
    position: relative !important;
    z-index: 3 !important;
    width: 100% !important;
    height: 100% !important;
    display: flex !important;
    align-items: flex-end !important;
    justify-content: center !important;
}

.bvb-card-portrait-photo {
    max-height: 100% !important;
    width: auto !important;
    max-width: 95% !important;
    object-fit: contain !important;
    object-position: bottom center !important;
    border-radius: 0 !important;
    transition: transform 0.32s ease !important;
    filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.9)) !important;
}

.bvb-bndesliga-card:hover .bvb-card-portrait-photo {
    transform: scale(1.08) !important;
}

/* --------------------------------------------------------------------------
   STRIKING & ULTRA-REALISTIC 3D MATCH RESULTS SECTION
   -------------------------------------------------------------------------- */
.bvb-phase-header-bar-3d {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    background: linear-gradient(180deg, #182030 0%, #0d121c 100%);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-top: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 16px;
    padding: 12px 16px;
    margin-bottom: 22px;
    box-shadow: 
        0 10px 25px -5px rgba(0, 0, 0, 0.5),
        inset 0 1px 1px rgba(255, 255, 255, 0.15),
        inset 0 -3px 6px rgba(0, 0, 0, 0.4);
}

.bvb-phase-switcher-3d,
.bvb-match-filter-bar-3d {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    background: rgba(8, 11, 17, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    padding: 4px;
    box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.6);
}

.bvb-phase-btn-3d,
.bvb-match-filter-btn-3d,
.bvb-filter-btn-3d {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.01) 100%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    color: #94a3b8;
    padding: 7px 15px;
    border-radius: 9px;
    font-size: 0.8rem;
    font-weight: 800;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.bvb-filter-btn-3d i {
    color: #38bdf8;
    font-size: 0.85rem;
    transition: color 0.2s ease;
}

.bvb-phase-btn-3d:hover,
.bvb-match-filter-btn-3d:hover,
.bvb-filter-btn-3d:hover {
    color: #ffffff;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.bvb-filter-btn-3d:hover i,
.bvb-filter-btn-3d.active i {
    color: #ffffff;
}

.bvb-phase-btn-3d.active,
.bvb-match-filter-btn-3d.active,
.bvb-filter-btn-3d.active {
    background: var(--team-primary, #0284c7);
    color: #ffffff;
    border: 1px solid var(--team-primary, #0284c7);
    border-top: 1px solid rgba(255, 255, 255, 0.4);
    box-shadow: 
        0 4px 12px var(--team-primary-alpha, rgba(2, 132, 199, 0.4)),
        inset 0 1px 1px rgba(255, 255, 255, 0.35),
        inset 0 -2px 4px rgba(0, 0, 0, 0.3);
    transform: translateY(-1px);
}

/* 3D Search Input for Plantilla */
.bvb-search-input-3d {
    background: linear-gradient(180deg, #182030 0%, #0d121c 100%) !important;
    color: #ffffff !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    border-top: 1px solid rgba(255, 255, 255, 0.22) !important;
    border-radius: 12px !important;
    padding: 7px 16px !important;
    font-size: 0.85rem !important;
    font-weight: 600 !important;
    box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.6), 0 3px 6px rgba(0, 0, 0, 0.3) !important;
    transition: all 0.25s ease !important;
}

.bvb-search-input-3d::placeholder {
    color: #94a3b8 !important;
}

.bvb-search-input-3d:focus {
    border-color: var(--team-primary, #0284c7) !important;
    box-shadow: 0 0 12px var(--team-primary-alpha, rgba(2, 132, 199, 0.4)), inset 0 2px 4px rgba(0,0,0,0.5) !important;
    outline: none !important;
}

.bvb-badge-num-3d {
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #ffffff;
    padding: 1px 7px;
    border-radius: 12px;
    font-size: 0.72rem;
    font-weight: 900;
}

.bvb-phase-divider-3d {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: 20px 0 14px 0;
    padding: 12px 18px;
    background: linear-gradient(180deg, #161c28 0%, #0d111a 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    border-left: 5px solid var(--team-primary, #0284c7);
    border-radius: 14px;
    box-shadow: 
        0 8px 20px rgba(0, 0, 0, 0.4),
        inset 0 1px 1px rgba(255, 255, 255, 0.12);
}

.bvb-phase-divider-3d.phase-vuelta {
    border-left-color: var(--team-primary, #0284c7);
}

.bvb-phase-title-wrap-3d {
    display: flex;
    align-items: center;
    gap: 10px;
}

.bvb-phase-badge-3d {
    background: var(--team-primary, #0284c7);
    color: #ffffff;
    font-size: 0.72rem;
    font-weight: 900;
    letter-spacing: 0.5px;
    padding: 4px 12px;
    border-radius: 7px;
    border-top: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.3);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
    white-space: nowrap;
}

.phase-vuelta .bvb-phase-badge-3d {
    background: var(--team-primary, #0284c7);
}

.bvb-phase-heading-3d {
    font-size: 1.05rem;
    font-weight: 800;
    color: #ffffff;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
}

.bvb-phase-heading-3d i {
    color: var(--team-primary, #ffffff);
}

.phase-vuelta .bvb-phase-heading-3d i {
    color: var(--team-primary, #ffffff);
}

.bvb-phase-count-3d {
    font-size: 0.82rem;
    font-weight: 600;
    color: #94a3b8;
}

.bvb-phase-jump-btn-3d {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.02) 100%);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-top: 1px solid rgba(255, 255, 255, 0.25);
    color: #ffffff;
    padding: 6px 14px;
    border-radius: 8px;
    font-size: 0.78rem;
    font-weight: 800;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.3);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}

.bvb-phase-jump-btn-3d i {
    color: #38bdf8 !important; /* Bright light cyan/sky blue for high visibility */
    font-size: 0.85rem;
    text-shadow: 0 0 6px rgba(56, 189, 248, 0.5);
    transition: color 0.2s ease;
}

.bvb-phase-jump-btn-3d:hover {
    background: var(--team-primary, #0284c7);
    color: #ffffff;
    border-color: var(--team-primary, #0284c7);
    box-shadow: 0 4px 12px var(--team-primary-alpha, rgba(2, 132, 199, 0.4));
    transform: translateY(-1px);
}

.phase-vuelta .bvb-phase-jump-btn-3d {
    color: #ffffff;
}

.phase-vuelta .bvb-phase-jump-btn-3d:hover {
    background: var(--team-primary, #0284c7);
    color: #ffffff;
    border-color: var(--team-primary, #0284c7);
    box-shadow: 0 4px 12px var(--team-primary-alpha, rgba(2, 132, 199, 0.4));
}

.bvb-empty-phase-msg {
    background: rgba(255, 255, 255, 0.02);
    border: 1px dashed rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    color: #64748b;
    font-size: 0.88rem;
    margin-bottom: 20px;
}

.bvb-matches-stats-group {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.bvb-match-stat-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.07);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    color: #cbd5e1;
}

.bvb-match-stat-item strong {
    color: #ffffff;
    margin-left: 2px;
}

.bvb-match-stat-item i {
    color: #94a3b8;
}

.bvb-match-filter-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.bvb-match-filter-btn {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #94a3b8;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.82rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.25s ease;
}

.bvb-match-filter-btn:hover,
.bvb-match-filter-btn.active {
    background: var(--team-primary, #0284c7);
    color: var(--team-text-on-primary, #ffffff);
    border-color: var(--team-primary, #0284c7);
    box-shadow: 0 3px 10px var(--team-primary-alpha, rgba(2, 132, 199, 0.3));
}

/* Match Cards Container */
.bvb-matches-cards-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 30px;
}

.bvb-match-card-item {
    position: relative;
    background: linear-gradient(145deg, #111520 0%, #0d1017 100%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    padding: 14px 18px;
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.25);
}

.bvb-match-card-item[data-result="victoria"] {
    border-left: 4px solid #22c55e !important;
}
.bvb-match-card-item[data-result="victoria"]:hover {
    border-color: rgba(34, 197, 94, 0.4) !important;
    border-left-color: #22c55e !important;
    box-shadow: 0 6px 20px rgba(34, 197, 94, 0.2) !important;
}

.bvb-match-card-item[data-result="derrota"] {
    border-left: 4px solid #ef4444 !important;
}
.bvb-match-card-item[data-result="derrota"]:hover {
    border-color: rgba(239, 68, 68, 0.4) !important;
    border-left-color: #ef4444 !important;
    box-shadow: 0 6px 20px rgba(239, 68, 68, 0.2) !important;
}

.bvb-match-card-item[data-result="empate"] {
    border-left: 4px solid #f59e0b !important;
}
.bvb-match-card-item[data-result="empate"]:hover {
    border-color: rgba(245, 158, 11, 0.4) !important;
    border-left-color: #f59e0b !important;
    box-shadow: 0 6px 20px rgba(245, 158, 11, 0.2) !important;
}

.bvb-match-card-item[data-result="pendiente"] {
    border-left: 4px solid rgba(255, 255, 255, 0.15) !important;
}

.bvb-match-card-item:hover {
    transform: translateY(-2px);
    border-color: rgba(255, 255, 255, 0.16);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35);
}

/* Match Card Header */
.bvb-match-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 10px;
    margin-bottom: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    font-size: 0.8rem;
}

.bvb-match-meta-left {
    display: flex;
    align-items: center;
    gap: 8px;
}

.bvb-match-meta-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
}

.bvb-jornada-pill {
    background: rgba(255, 255, 255, 0.06);
    color: #cbd5e1;
    padding: 3px 10px;
    border-radius: 6px;
    font-weight: 700;
    letter-spacing: 0.3px;
    font-size: 0.78rem;
}

.bvb-condition-pill {
    background: rgba(255, 255, 255, 0.04);
    color: #94a3b8;
    border: 1px solid rgba(255, 255, 255, 0.07);
    padding: 3px 10px;
    border-radius: 6px;
    font-weight: 700;
    font-size: 0.75rem;
}

.bvb-match-type-pill {
    background: rgba(255, 255, 255, 0.06);
    color: #cbd5e1;
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 3px 8px;
    border-radius: 6px;
    font-weight: 700;
    font-size: 0.75rem;
}

.bvb-match-date-badge {
    color: #cbd5e1;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.82rem;
    letter-spacing: 0.2px;
}

.bvb-match-date-badge i {
    color: #38bdf8;
}

/* Striking Status Sub-Badge below Date (Semáforo con psicología de color) */
.bvb-match-status-sub-badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 6px;
    font-size: 0.72rem;
    font-weight: 900;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.bvb-match-status-sub-badge.status-victoria {
    background: rgba(34, 197, 94, 0.16) !important;
    color: #4ade80 !important;
    border: 1px solid #22c55e !important;
    box-shadow: 0 0 10px rgba(34, 197, 94, 0.35) !important;
}

.bvb-match-status-sub-badge.status-derrota {
    background: rgba(239, 68, 68, 0.16) !important;
    color: #f87171 !important;
    border: 1px solid #ef4444 !important;
    box-shadow: 0 0 10px rgba(239, 68, 68, 0.35) !important;
}

.bvb-match-status-sub-badge.status-empate {
    background: rgba(245, 158, 11, 0.16) !important;
    color: #fbbf24 !important;
    border: 1px solid #f59e0b !important;
    box-shadow: 0 0 10px rgba(245, 158, 11, 0.35) !important;
}

.bvb-match-status-sub-badge.status-pendiente {
    background: rgba(59, 130, 246, 0.16) !important;
    color: #60a5fa !important;
    border: 1px solid #3b82f6 !important;
    box-shadow: 0 0 10px rgba(59, 130, 246, 0.25) !important;
}

/* Match Card Body - 3 Column Layout */
.bvb-match-card-body {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.bvb-match-team {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.bvb-match-team.team-local {
    justify-content: flex-end;
    text-align: right;
}

.bvb-match-team.team-visitante {
    justify-content: flex-start;
    text-align: left;
}

.bvb-team-name-wrap {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.bvb-team-title {
    font-size: 1rem;
    font-weight: 800;
    color: #ffffff !important;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.bvb-match-team.is-current-team .bvb-team-title {
    color: #ffffff !important;
}

.bvb-team-logo-box {
    width: 44px;
    height: 44px;
    min-width: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 10px;
    padding: 4px;
}

.bvb-match-logo {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 2px 5px rgba(0, 0, 0, 0.4));
}

/* Center Score Container */
.bvb-match-score-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 110px;
}

.bvb-score-box {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: #080b11;
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 5px 16px;
    border-radius: 10px;
    font-weight: 900;
    font-size: 1.25rem;
    color: #ffffff;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.5);
}

.bvb-score-num {
    min-width: 20px;
    text-align: center;
    color: #cbd5e1;
}

.bvb-score-num.is-winner {
    color: #ffffff;
    font-weight: 900;
}

.bvb-score-divider {
    color: #64748b;
    font-weight: 800;
}

.bvb-vs-box {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 5px 16px;
    border-radius: 10px;
    font-weight: 900;
    font-size: 0.95rem;
    letter-spacing: 1px;
    color: var(--team-primary, #38bdf8);
}

.bvb-venue-text {
    font-size: 0.7rem;
    color: #64748b;
    margin-top: 4px;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 130px;
}

/* Mobile Responsiveness for Matches */
@media (max-width: 768px) {
    /* Hide top 3 phase switcher buttons on mobile phone as requested */
    .bvb-phase-switcher-3d {
        display: none !important;
    }

    .bvb-phase-header-bar-3d {
        padding: 8px 10px;
        margin-bottom: 15px;
        justify-content: center;
    }

    .bvb-match-filter-bar-3d {
        width: 100%;
        justify-content: center;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        gap: 4px;
        padding: 4px;
        scrollbar-width: none;
    }

    .bvb-match-filter-bar-3d::-webkit-scrollbar {
        display: none;
    }

    .bvb-match-filter-btn-3d {
        white-space: nowrap;
        padding: 5px 12px;
        font-size: 0.75rem;
        flex-shrink: 0;
    }

    /* Phase Section Divider Header in Mobile */
    .bvb-phase-divider-3d {
        padding: 10px 12px;
        margin: 14px 0 10px 0;
        gap: 8px;
    }

    .bvb-phase-title-wrap-3d {
        gap: 6px;
        flex: 1;
        min-width: 0;
    }

    .bvb-phase-badge-3d {
        font-size: 0.65rem;
        padding: 3px 8px;
        white-space: nowrap;
        border-radius: 6px;
    }

    .bvb-phase-heading-3d {
        font-size: 0.85rem;
        white-space: nowrap;
    }

    .bvb-phase-count-3d {
        font-size: 0.72rem;
    }

    .bvb-phase-jump-btn-3d {
        padding: 4px 10px;
        font-size: 0.72rem;
        white-space: nowrap;
        flex-shrink: 0;
        border-radius: 6px;
    }
    .bvb-matches-summary-bar {
        flex-direction: column;
        align-items: stretch;
        padding: 10px;
        gap: 8px;
        margin-bottom: 14px;
    }

    .bvb-matches-stats-group {
        display: flex;
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        gap: 6px;
        width: 100%;
        padding-bottom: 2px;
        scrollbar-width: none;
    }

    .bvb-matches-stats-group::-webkit-scrollbar {
        display: none;
    }

    .bvb-match-stat-item {
        white-space: nowrap;
        padding: 4px 10px;
        font-size: 0.75rem;
        flex-shrink: 0;
    }

    .bvb-match-filter-bar {
        display: flex;
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        gap: 6px;
        width: 100%;
        padding-bottom: 2px;
        scrollbar-width: none;
    }

    .bvb-match-filter-bar::-webkit-scrollbar {
        display: none;
    }

    .bvb-match-filter-btn {
        white-space: nowrap;
        padding: 5px 12px;
        font-size: 0.76rem;
        flex-shrink: 0;
    }

    .bvb-match-card-item {
        padding: 12px 10px;
        border-radius: 12px;
    }

    /* Header in Mobile: Jornada on Left, Date on Right, Condition Hidden */
    .bvb-match-card-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding-bottom: 8px;
        margin-bottom: 10px;
    }

    .bvb-condition-pill {
        display: none !important; /* Hide LOCAL / VISITANTE condition on mobile */
    }

    .bvb-match-type-pill {
        display: inline-block !important; /* Make IDA / VUELTA visible on mobile as requested */
        font-size: 0.7rem;
        padding: 2px 6px;
    }

    .bvb-jornada-pill {
        font-size: 0.72rem;
        padding: 2px 7px;
    }

    .bvb-match-date-badge {
        font-size: 0.72rem;
        color: #94a3b8;
    }

    /* Symmetrical 3-Column Team Layout */
    .bvb-match-card-body {
        gap: 6px;
    }

    .bvb-match-team {
        flex: 1;
        min-width: 0;
        gap: 6px;
    }

    .bvb-team-title {
        font-size: 0.84rem;
        font-weight: 800;
        line-height: 1.2;
    }

    .bvb-team-logo-box {
        width: 36px;
        height: 36px;
        min-width: 36px;
        padding: 2px;
        border-radius: 8px;
    }

    .bvb-match-score-container {
        min-width: 75px;
        flex-shrink: 0;
    }

    .bvb-score-box {
        padding: 4px 10px;
        font-size: 1.1rem;
        gap: 4px;
        border-radius: 8px;
    }

    .bvb-score-num {
        min-width: 16px;
    }

    .bvb-vs-box {
        padding: 4px 10px;
        font-size: 0.88rem;
        border-radius: 8px;
    }

    .bvb-venue-text {
        font-size: 0.65rem;
        max-width: 75px;
        margin-top: 2px;
    }
}

.bvb-info-box h3 {
    font-size: 1.2rem;
    font-weight: 800;
    color: #ffffff;
    text-transform: uppercase;
    margin-top: 0;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.bvb-info-box h3 i {
    color: var(--team-primary, #fde100);
}

.bvb-social-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #ffffff !important;
    text-decoration: none !important;
    transition: transform 0.2s ease, opacity 0.2s ease;
    margin-right: 10px;
    margin-bottom: 10px;
}

.bvb-social-btn:hover {
    transform: translateY(-2px);
    opacity: 0.9;
}

.bvb-social-fb { background: #1877f2; }
.bvb-social-tw { background: #1da1f2; }

/* Filter Buttons inside Plantilla */
.bvb-filter-bar {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-bottom: 30px;
}

.bvb-filter-btn {
    background: #ffffff;
    color: #475569;
    border: 1px solid #cbd5e1;
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 6px rgba(0,0,0,0.04);
}

.bvb-filter-btn:hover {
    color: #0f172a;
    border-color: #94a3b8;
    background: #f8fafc;
}

.bvb-filter-btn.active {
    background: var(--team-primary, #fde100);
    color: var(--team-text-on-primary, #111827);
    border-color: var(--team-primary, #fde100);
    box-shadow: 0 4px 12px var(--team-primary-glow);
}

/* ==========================================================================
   OFFICIAL BUNDESLIGA HERO BANNER (SLEEK 230PX HORIZONTAL BANNER STRIP)
   Content positioned INSIDE 3D Relief Banner matching Bayern München
   ========================================================================== */
.bvb-hero-banner {
    position: relative !important;
    overflow: hidden !important;
    min-height: 260px !important;
    height: 260px !important;
    padding: 0 !important;
    margin: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background-color: #0b0d12 !important;
    box-shadow: 0 6px 20px rgba(0,0,0,0.4) !important;
}

.bvb-hero-ripple-pattern {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100% !important;
    height: 100% !important;
    z-index: 1 !important;
}

.bvb-hero-content {
    position: relative !important;
    z-index: 10 !important;
    width: 100% !important;
}

.bvb-hero-club-title {
    font-size: 2.1rem !important;
    font-weight: 900 !important;
    text-transform: uppercase !important;
    letter-spacing: -0.5px !important;
    color: #ffffff !important;
    margin: 0 0 6px 0 !important;
    text-shadow: 0 2px 8px rgba(0,0,0,0.85) !important;
    line-height: 1.1 !important;
}

.bvb-hero-club-title span {
    color: var(--team-primary, #fde100) !important;
}

.bvb-hero-venue-tag {
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    background: rgba(0, 0, 0, 0.55) !important;
    backdrop-filter: blur(8px) !important;
    -webkit-backdrop-filter: blur(8px) !important;
    padding: 4px 12px !important;
    border-radius: 16px !important;
    border: 1px solid rgba(255,255,255,0.18) !important;
    color: #ffffff !important;
    font-size: 0.8rem !important;
    font-weight: 600 !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.4) !important;
}

.bvb-hero-venue-tag i {
    color: var(--team-primary, #fde100) !important;
}

/* Center Shield Logo Container (Enlarged & Prominent) */
.bvb-center-shield-wrap {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    max-width: 220px !important;
    max-height: 220px !important;
    margin: 0 auto !important;
    position: relative !important;
    z-index: 10 !important;
}

.bvb-center-shield-img {
    max-width: 190px !important;
    max-height: 190px !important;
    width: auto !important;
    height: auto !important;
    object-fit: contain !important;
    filter: drop-shadow(0 10px 24px rgba(0,0,0,0.9)) drop-shadow(0 0 25px rgba(255,255,255,0.35)) !important;
    transition: transform 0.3s ease !important;
}

.bvb-center-shield-img:hover {
    transform: scale(1.05) !important;
}

/* Stat Widgets inside Hero Header (Compact 230px Strip) */
.bvb-stats-grid {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 8px !important;
    max-width: 250px !important;
    margin-left: auto !important;
}

@media (max-width: 768px) {
    .bvb-hero-banner {
        min-height: 250px !important;
        height: auto !important;
        padding: 18px 12px 14px 12px !important;
    }
    
    .bvb-hero-content .row {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        text-align: center !important;
    }
    
    /* 1. Center Shield Crest Logo FIRST on Mobile - ENLARGED & TIGHT GAP */
    .bvb-hero-center-col {
        order: 1 !important;
        margin-bottom: 0px !important;
        padding-bottom: 0px !important;
        width: 100% !important;
    }

    .bvb-center-shield-wrap {
        max-width: 175px !important;
        max-height: 175px !important;
        margin: 0 auto !important;
    }

    .bvb-center-shield-img {
        max-width: 165px !important;
        max-height: 165px !important;
        filter: drop-shadow(0 8px 24px rgba(0,0,0,0.85)) !important;
    }
    
    /* 2. Bold White Club Title SECOND on Mobile Directly Below Shield Logo - TIGHT GAP */
    .bvb-hero-left-col {
        order: 2 !important;
        text-align: center !important;
        margin-top: 2px !important;
        margin-bottom: 8px !important;
        width: 100% !important;
    }
    
    .bvb-hero-club-title {
        font-size: 2.3rem !important;
        font-weight: 900 !important;
        text-transform: uppercase !important;
        letter-spacing: -0.5px !important;
        text-align: center !important;
        margin: 2px 0 4px 0 !important;
        text-shadow: 0 3px 12px rgba(0,0,0,0.9) !important;
        color: #ffffff !important;
        line-height: 1.05 !important;
    }

    .bvb-hero-venue-tag {
        font-size: 0.8rem !important;
        padding: 3px 12px !important;
        background: rgba(0,0,0,0.65) !important;
        margin-top: 2px !important;
    }
    
    /* 3. Sleek Compact Stat Cards THIRD on Mobile in 4-Column Bar */
    .bvb-hero-right-col {
        order: 3 !important;
        width: 100% !important;
    }
    
    .bvb-stats-grid {
        grid-template-columns: repeat(4, 1fr) !important;
        gap: 6px !important;
        max-width: 100% !important;
        margin: 6px auto 0 auto !important;
    }

    .bvb-stat-card {
        padding: 5px 3px !important;
        border-radius: 8px !important;
        background: rgba(0, 0, 0, 0.65) !important;
    }

    .bvb-stat-label {
        font-size: 0.58rem !important;
        letter-spacing: 0.3px !important;
    }

    .bvb-stat-value {
        font-size: 0.92rem !important;
    }

    .bvb-stat-value small {
        font-size: 0.62rem !important;
    }
}

.bvb-stat-card {
    background: rgba(0, 0, 0, 0.55) !important;
    backdrop-filter: blur(8px) !important;
    -webkit-backdrop-filter: blur(8px) !important;
    border: 1px solid rgba(255,255,255,0.15) !important;
    border-top: 3px solid var(--team-primary, #fde100) !important;
    border-radius: 8px !important;
    padding: 6px 10px !important;
    text-align: center !important;
    box-shadow: 0 2px 10px rgba(0,0,0,0.4) !important;
}

.bvb-stat-label {
    font-size: 0.68rem !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    color: #94a3b8 !important;
    margin-bottom: 1px !important;
}

.bvb-stat-value {
    font-size: 1.15rem !important;
    font-weight: 900 !important;
    color: #ffffff !important;
    line-height: 1 !important;
}

.bvb-stat-value small {
    font-size: 0.72rem !important;
    color: var(--team-primary, #fde100) !important;
    font-weight: 600 !important;
}

/* ==========================================================================
   OFFICIAL BUNDESLIGA STANDINGS TABLE (SECTION 1)
   ========================================================================== */
.bvb-standings-card {
    background: #141722;
    border-radius: 18px;
    border: 1px solid rgba(255,255,255,0.08);
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    overflow: hidden;
    margin-bottom: 45px;
}

.bvb-standings-header {
    background: linear-gradient(135deg, #191d2b 0%, #0f121a 100%);
    padding: 22px 28px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.bvb-standings-title {
    font-size: 1.4rem;
    font-weight: 900;
    text-transform: uppercase;
    color: #ffffff;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.bvb-zone-legend {
    display: flex;
    gap: 16px;
    font-size: 0.8rem;
    font-weight: 700;
}

.bvb-legend-item {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #cbd5e1;
}

.bvb-legend-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.bvb-legend-top7 { background: #10b981; box-shadow: 0 0 8px rgba(16,185,129,0.5); }
.bvb-legend-relegation { background: #ef4444; box-shadow: 0 0 8px rgba(239,68,68,0.5); }

.bvb-standings-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0 4px;
    padding: 12px;
}

.bvb-standings-table th {
    background: transparent;
    color: #94a3b8;
    font-weight: 800;
    font-size: 0.78rem;
    text-transform: uppercase;
    padding: 12px 14px;
    border: none;
}

.bvb-table-row {
    background: rgba(255,255,255,0.03);
    transition: all 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
    position: relative;
}

/* Zone Left Border Accent */
.bvb-table-row.bvb-zone-top7 {
    border-left: 4px solid #10b981 !important;
}

.bvb-table-row.bvb-zone-relegation {
    border-left: 4px solid #ef4444 !important;
}

.bvb-table-row td {
    padding: 14px 12px !important;
    font-size: 0.92rem !important;
    color: #cbd5e1 !important;
    vertical-align: middle !important;
    border-top: 1px solid rgba(255, 255, 255, 0.05) !important;
}

/* Forma / Racha Badges en Tabla de Perfil */
.lmx-table-forma-badges {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 3px !important;
    white-space: nowrap !important;
}

.lmx-form-badge {
    width: 18px !important;
    height: 18px !important;
    min-width: 18px !important;
    border-radius: 4px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 9.5px !important;
    font-weight: 900 !important;
    line-height: 1 !important;
    color: #ffffff !important;
    font-family: Arial, Helvetica, sans-serif !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.35) !important;
    user-select: none !important;
    border: 1px solid rgba(255, 255, 255, 0.35) !important;
    text-align: center !important;
    flex-shrink: 0 !important;
}

.lmx-form-badge.badge-g { background-color: #16a34a !important; background: #16a34a !important; color: #fff !important; }
.lmx-form-badge.badge-e { background-color: #f59e0b !important; background: #f59e0b !important; color: #fff !important; }
.lmx-form-badge.badge-p { background-color: #ef4444 !important; background: #ef4444 !important; color: #fff !important; }
.lmx-form-badge.badge-q { background-color: #94a3b8 !important; background: #94a3b8 !important; color: #fff !important; }

.bvb-table-row td:first-child {
    border-left: 1px solid rgba(255,255,255,0.04);
    border-top-left-radius: 10px;
    border-bottom-left-radius: 10px;
}

.bvb-table-row td:last-child {
    border-right: 1px solid rgba(255,255,255,0.04);
    border-top-right-radius: 10px;
    border-bottom-right-radius: 10px;
}

/* Current Active Team Row Highlight */
.bvb-table-row.bvb-row-current {
    background: var(--team-primary-alpha, rgba(220,5,45,0.22)) !important;
    border-color: var(--team-primary, #dc052d) !important;
    box-shadow: 0 4px 18px var(--team-primary-glow, rgba(220,5,45,0.35));
}

.bvb-table-row.bvb-row-current td {
    font-weight: 800;
    color: #ffffff;
}

/* DYNAMIC HOVER & CLICK EFFECT PER TEAM */
.bvb-table-row:hover,
.bvb-table-row:active {
    background: var(--row-team-alpha, rgba(212,175,55,0.22)) !important;
    transform: scale(1.008);
    box-shadow: 0 6px 20px var(--row-team-glow, rgba(212,175,55,0.45)) !important;
}

.bvb-table-row:hover td,
.bvb-table-row:active td {
    color: #ffffff !important;
}

.bvb-rank-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: rgba(255,255,255,0.06);
    font-weight: 900;
    font-size: 0.95rem;
}

.bvb-zone-top7 .bvb-rank-badge {
    background: rgba(16,185,129,0.18);
    color: #10b981;
    border: 1px solid rgba(16,185,129,0.3);
}

.bvb-zone-relegation .bvb-rank-badge {
    background: rgba(239,68,68,0.18);
    color: #ef4444;
    border: 1px solid rgba(239,68,68,0.3);
}

.bvb-table-team-cell {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 700;
}

.bvb-table-team-logo {
    width: 32px;
    height: 32px;
    object-fit: contain;
    filter: drop-shadow(0 2px 5px rgba(0,0,0,0.4));
}

/* ==========================================================================
   MOBILE & RESPONSIVE COMPREHENSIVE FIXES (TABLA GENERAL, PARTIDOS, PLANTILLA)
   ========================================================================== */

.bvb-nav-mobile-text {
    display: none;
}
.bvb-nav-desktop-text {
    display: inline;
}

@media (max-width: 768px) {
    .bvb-nav-desktop-text {
        display: none !important;
    }
    .bvb-nav-mobile-text {
        display: inline !important;
    }

    /* Sub Nav Container */
    .bvb-nav-wrapper .container.bvb-nav-container-box {
        padding-left: 0 !important;
        padding-right: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
    }

    .bvb-nav-container {
        width: 100% !important;
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch !important;
        scrollbar-width: none !important;
    }

    .bvb-nav-tabs {
        width: 100% !important;
        display: flex !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    .bvb-nav-item {
        flex: 1 1 0% !important;
        min-width: 0 !important;
        text-align: center !important;
    }

    .bvb-nav-link {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        padding: 12px 3px !important;
        font-size: 0.76rem !important;
        gap: 5px !important;
        letter-spacing: 0px !important;
        white-space: nowrap !important;
    }

    .bvb-nav-link i {
        font-size: 0.95rem !important;
    }

    /* Section Headers */
    .bvb-section-header {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 12px !important;
        margin: 20px 0 15px 0 !important;
    }

    .bvb-section-title {
        font-size: 1.2rem !important;
    }

    .bvb-search-box-wrap {
        width: 100% !important;
    }

    .bvb-search-box-wrap input {
        width: 100% !important;
    }

    /* Section 1: Tabla General Standings (Sin scroll horizontal y 100% contenida) */
    .bvb-standings-card {
        border-radius: 12px !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
        margin-bottom: 25px !important;
    }

    .bvb-standings-card .table-responsive {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        overflow-x: hidden !important;
        margin: 0 !important;
        padding: 0 !important;
        border: none !important;
    }

    .bvb-standings-header {
        padding: 12px 14px !important;
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 8px !important;
        box-sizing: border-box !important;
        width: 100% !important;
        max-width: 100% !important;
    }

    .bvb-standings-title {
        font-size: 1.02rem !important;
    }

    .bvb-zone-legend {
        font-size: 0.70rem !important;
        flex-wrap: wrap !important;
        gap: 8px !important;
    }

    .bvb-standings-table {
        width: 100% !important;
        max-width: 100% !important;
        table-layout: fixed !important;
        border-collapse: collapse !important;
        border-spacing: 0 !important;
        padding: 0 !important;
        margin: 0 !important;
        box-sizing: border-box !important;
    }

    .bvb-standings-table th,
    .bvb-table-row td {
        padding: 6px 1.5px !important;
        font-size: 0.76rem !important;
        vertical-align: middle !important;
        box-sizing: border-box !important;
        border-top: 1px solid rgba(255, 255, 255, 0.05) !important;
    }

    /* Columna POS */
    .bvb-col-pos {
        width: 25px !important;
        max-width: 25px !important;
        padding-left: 2px !important;
        padding-right: 2px !important;
        text-align: center !important;
        box-sizing: border-box !important;
    }

    .bvb-rank-badge {
        width: 20px !important;
        height: 20px !important;
        line-height: 20px !important;
        font-size: 0.72rem !important;
        border-radius: 4px !important;
        margin: 0 auto !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }

    /* Columna CLUB / EQUIPO */
    .bvb-col-club {
        width: auto !important;
        min-width: 0 !important;
        overflow: hidden !important;
        padding-left: 3px !important;
        padding-right: 4px !important;
        box-sizing: border-box !important;
    }

    .bvb-table-team-cell {
        display: flex !important;
        align-items: center !important;
        gap: 5px !important;
        min-width: 0 !important;
        max-width: 100% !important;
        overflow: hidden !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .bvb-table-team-logo {
        width: 20px !important;
        height: 20px !important;
        min-width: 20px !important;
        border-radius: 50% !important;
        flex-shrink: 0 !important;
        object-fit: contain !important;
    }

    .bvb-team-name-text {
        min-width: 0 !important;
        max-width: 100% !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        white-space: nowrap !important;
        font-size: 0.78rem !important;
        font-weight: 800 !important;
        display: block !important;
        flex: 1 1 auto !important;
        color: #ffffff !important;
    }

    /* Columnas numéricas JJ, JG, JE, JP */
    .bvb-col-stat {
        width: 19px !important;
        max-width: 19px !important;
        padding: 6px 1px !important;
        text-align: center !important;
        font-size: 0.74rem !important;
        font-weight: 700 !important;
        box-sizing: border-box !important;
    }

    /* Columna PTS */
    .bvb-col-pts {
        width: 25px !important;
        max-width: 25px !important;
        padding: 6px 1px !important;
        text-align: center !important;
        font-size: 0.82rem !important;
        font-weight: 900 !important;
        color: #ffffff !important;
        box-sizing: border-box !important;
    }

    /* Columna FORMA */
    .bvb-col-forma {
        width: 68px !important;
        max-width: 68px !important;
        padding: 6px 1px !important;
        text-align: center !important;
        box-sizing: border-box !important;
    }

    .lmx-table-forma-badges {
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 2px !important;
        white-space: nowrap !important;
    }

    .lmx-form-badge {
        width: 15px !important;
        height: 15px !important;
        min-width: 15px !important;
        max-width: 15px !important;
        font-size: 8px !important;
        border-radius: 3px !important;
        flex-shrink: 0 !important;
    }
}

@media (max-width: 360px) {
    .bvb-col-pos { width: 22px !important; max-width: 22px !important; }
    .bvb-rank-badge { width: 18px !important; height: 18px !important; font-size: 0.68rem !important; }
    .bvb-table-team-logo { width: 18px !important; height: 18px !important; min-width: 18px !important; }
    .bvb-team-name-text { font-size: 0.72rem !important; }
    .bvb-col-stat { width: 17px !important; max-width: 17px !important; font-size: 0.70rem !important; }
    .bvb-col-pts { width: 22px !important; max-width: 22px !important; font-size: 0.76rem !important; }
    .bvb-col-forma { width: 62px !important; max-width: 62px !important; }
    .lmx-form-badge { width: 13.5px !important; height: 13.5px !important; min-width: 13.5px !important; font-size: 7.5px !important; }

    /* Section 3: Plantilla Filter & Squad */
    .bvb-filter-bar {
        justify-content: flex-start !important;
        overflow-x: auto !important;
        white-space: nowrap !important;
        padding-bottom: 6px !important;
        -webkit-overflow-scrolling: touch !important;
        scrollbar-width: none !important;
        gap: 6px !important;
        margin-bottom: 20px !important;
    }

    .bvb-filter-btn {
        padding: 6px 14px !important;
        font-size: 0.75rem !important;
        flex-shrink: 0 !important;
    }

    .bvb-squad-container {
        padding: 24px 12px !important;
        border-radius: 16px !important;
        margin: 15px 0 25px 0 !important;
    }

    .bvb-squad-main-title {
        font-size: 1.25rem !important;
        margin-bottom: 22px !important;
        letter-spacing: 0.5px !important;
    }

    .bvb-position-header-text {
        font-size: 0.85rem !important;
        letter-spacing: 1px !important;
        margin-bottom: 16px !important;
    }

    .bvb-players-flex-row {
        gap: 10px !important;
    }

    .bvb-bndesliga-card {
        width: 120px !important;
        min-width: 110px !important;
        padding: 10px 6px 12px 6px !important;
        border-radius: 16px !important;
        margin: 4px !important;
    }

    .bvb-card-shield-body {
        height: 90px !important;
    }

    .bvb-card-firstname {
        font-size: 0.62rem !important;
    }

    .bvb-card-lastname {
        font-size: 0.78rem !important;
    }

    .bvb-number-badge {
        font-size: 1.15rem !important;
    }
}

@media (max-width: 480px) {
    .bvb-nav-link {
        padding: 10px 2px !important;
        font-size: 0.7rem !important;
        gap: 3px !important;
    }
    .bvb-nav-link i {
        font-size: 0.82rem !important;
    }
    .bvb-bndesliga-card {
        width: 105px !important;
        min-width: 100px !important;
        padding: 8px 4px 10px 4px !important;
    }
    .bvb-card-shield-body {
        height: 80px !important;
    }
    .bvb-card-lastname {
        font-size: 0.72rem !important;
    }
    .bvb-number-badge {
        font-size: 1.05rem !important;
    }
}

/* --------------------------------------------------------------------------
   SLEEK NON-BUTTON BREADCRUMB BACK NAVIGATION LINK TO HOME
   -------------------------------------------------------------------------- */
.bvb-hero-breadcrumb-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.8px;
    text-transform: uppercase;
}

.bvb-clean-back-arrow-link {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: #e2e8f0 !important;
    text-decoration: none !important;
    transition: all 0.25s ease;
}

.bvb-clean-back-arrow-link i {
    color: #38bdf8 !important; /* Thin bright sky-blue arrow */
    font-size: 0.95rem;
    transition: transform 0.25s ease, color 0.25s ease;
    filter: drop-shadow(0 0 6px rgba(56, 189, 248, 0.6));
}

.bvb-clean-back-arrow-link:hover {
    color: #ffffff !important;
    text-shadow: 0 0 8px rgba(255, 255, 255, 0.6);
}

.bvb-clean-back-arrow-link:hover i {
    color: #ffffff !important;
    transform: translateX(-4px);
}

.bvb-breadcrumb-slash {
    color: rgba(255, 255, 255, 0.25);
    font-weight: 400;
}

.bvb-breadcrumb-current {
    color: #94a3b8;
    font-weight: 700;
    max-width: 160px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

@media (max-width: 768px) {
    .bvb-hero-breadcrumb-link {
        margin-bottom: 6px;
        font-size: 0.76rem;
    }
    
    .bvb-clean-back-arrow-link i {
        font-size: 0.88rem;
    }
}
