/* ============================================================
   LEW_ShowMatchHero — Hero de partido
   ============================================================ */

.LEW_MHero {
    position: relative;
    background: #0d2040;
    border-radius: 0;
    overflow: hidden;
    font-family: 'Roboto', sans-serif;
}

/* Fondo piscina del club local */
.LEW_MHero_PoolBg {
    position: absolute;
    inset: 0;
    background-image: var(--pool-bg);
    background-size: cover;
    background-position: center;
    opacity: 0.18;
    z-index: 0;
}

/* Overlay gradiente + líneas de piscina */
.LEW_MHero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        linear-gradient(105deg, rgba(10,20,50,0.82) 0%, rgba(15,35,80,0.65) 50%, rgba(10,20,50,0.82) 100%),
        repeating-linear-gradient(
            0deg,
            transparent,
            transparent 22px,
            rgba(255,255,255,0.018) 22px,
            rgba(255,255,255,0.018) 24px
        );
    pointer-events: none;
    z-index: 1;
}

/* Accent line top */
.LEW_MHero_AccentLine {
    position: relative;
    z-index: 2;
    height: 3px;
    background: var(--accent, #2B78C1);
}

/* ── Top bar ─────────────────────────────────────────────── */

.LEW_MHero_TopBar {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    padding: 8px 20px 0;
    gap: 12px;
}

.LEW_MHero_TopLeft {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.LEW_MHero_League {
    font-size: 11px;
    font-weight: 700;
    color: rgba(255,255,255,0.7);
    text-transform: uppercase;
    letter-spacing: .08em;
}

.LEW_MHero_Round {
    font-size: 10px;
    font-weight: 600;
    color: rgba(255,255,255,0.4);
    text-transform: uppercase;
    letter-spacing: .08em;
}

.LEW_MHero_DateTime {
    font-size: 12px;
    color: rgba(255,255,255,0.5);
    font-family: 'Roboto Mono', monospace;
}

.LEW_MHero_TopRight {
    flex-shrink: 0;
    padding-top: 1px;
}

.LEW_MHero_Share {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 11px;
    color: rgba(255,255,255,0.4);
    padding: 4px 7px;
    border-radius: 5px;
    font-family: inherit;
    text-decoration: none;
    transition: color .15s, background .15s;
}
.LEW_MHero_Share:hover {
    color: #fff;
    background: rgba(255,255,255,0.07);
}

/* ── Main row ────────────────────────────────────────────── */

.LEW_MHero_Main {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 24px 16px;
    gap: 12px;
}

/* ── Team blocks ─────────────────────────────────────────── */

.LEW_MHero_Team {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 16px;
    min-width: 0;
}

/* Home: [Escudo] [Nombre] */
.LEW_MHero_Team--home {
    flex-direction: row;
}

/* Away: [Nombre] [Escudo] */
.LEW_MHero_Team--away {
    flex-direction: row;
    justify-content: flex-end;
}

.LEW_MHero_ShieldLink {
    flex-shrink: 0;
    display: block;
    text-decoration: none;
}

.LEW_MHero_Shield {
    width: 110px;
    height: 110px;
    border-radius: 50%;
    background: rgba(255,255,255,0.08);
    border: 2px solid rgba(255,255,255,0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    transition: border-color .15s, transform .15s;
}
.LEW_MHero_ShieldLink:hover .LEW_MHero_Shield {
    border-color: rgba(255,255,255,0.35);
    transform: scale(1.04);
}

.LEW_MHero_Shield img {
    width: 84px !important;
    height: 84px !important;
    object-fit: contain;
}

.LEW_MHero_TeamText {
    display: flex;
    flex-direction: column;
    gap: 5px;
    min-width: 0;
}

/* Away: nombre alineado a la derecha (antes del escudo) */
.LEW_MHero_Team--away .LEW_MHero_TeamText {
    text-align: right;
}

.LEW_MHero_TeamLabel {
    font-size: 10px;
    color: rgba(255,255,255,0.35);
    text-transform: uppercase;
    letter-spacing: .06em;
}

.LEW_MHero_TeamName {
    font-size: 19px;
    font-weight: 700;
    color: #fff;
    line-height: 1.2;
    overflow-wrap: break-word;
    text-shadow: 0 1px 4px rgba(0,0,0,0.5);
}

/* ── Score block ─────────────────────────────────────────── */

.LEW_MHero_ScoreBlock {
    flex-shrink: 0;
    padding: 0 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    min-width: 190px;
}

.LEW_MHero_ScoreMain {
    display: flex;
    align-items: center;
    gap: 8px;
    line-height: 1;
}

.LEW_MHero_ScoreNum {
    font-size: 64px;
    font-weight: 800;
    color: #fff;
    font-family: 'Roboto Mono', monospace;
    line-height: 1;
    min-width: 2ch;
    text-align: center;
    text-shadow: 0 2px 12px rgba(0,0,0,0.4);
}

.LEW_MHero_ScoreNum--pending {
    font-size: 52px;
    color: rgba(255,255,255,0.22);
    min-width: unset;
}

.LEW_MHero_ScoreSep {
    font-size: 40px;
    color: rgba(255,255,255,0.3);
    font-family: 'Roboto Mono', monospace;
    line-height: 1;
}

.LEW_MHero_StatusLabel {
    font-size: 11px;
    color: rgba(255,255,255,0.45);
    text-transform: uppercase;
    letter-spacing: .06em;
    display: flex;
    align-items: center;
    gap: 5px;
    font-family: 'Roboto Mono', monospace;
}

/* Live dot */
.LEW_MHero_LiveDot {
    display: inline-block;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #ff3b30;
    flex-shrink: 0;
    animation: lewHeroBlink 1.2s ease-in-out infinite;
}

@keyframes lewHeroBlink {
    0%, 100% { opacity: 1; }
    50%       { opacity: 0.2; }
}

/* ── Periods ─────────────────────────────────────────────── */

.LEW_MHero_Periods {
    display: flex;
    flex-direction: column;
    gap: 1px;
    margin-top: 6px;
}

.LEW_MHero_PRow {
    display: flex;
    align-items: center;
}

.LEW_MHero_PSide {
    width: 12px;
    font-size: 9px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .03em;
    text-align: center;
    flex-shrink: 0;
    margin-right: 5px;
    color: rgba(255,255,255,0.3);
}

.LEW_MHero_PRow--hdr .LEW_MHero_PSide {
    color: transparent;
}

.LEW_MHero_PCell {
    font-size: 13px;
    font-family: 'Roboto Mono', monospace;
    color: rgba(255,255,255,0.6);
    min-width: 30px;
    text-align: center;
    padding: 1px 4px;
    line-height: 1.5;
}

.LEW_MHero_PCell--hdr {
    font-size: 8px;
    color: rgba(255,255,255,0.25);
    letter-spacing: .04em;
    padding-bottom: 3px;
    line-height: 1;
}

.LEW_MHero_PCell--sep {
    border-right: 0.5px solid rgba(255,255,255,0.07);
}

.LEW_MHero_PCell--win {
    color: rgba(255,255,255,0.9);
    font-weight: 700;
}

.LEW_MHero_PCell--lose {
    color: rgba(255,255,255,0.3);
}

.LEW_MHero_PCell--draw {
    color: rgba(255,255,255,0.6);
}

/* ── Responsive 1199px ───────────────────────────────────── */

@media (max-width: 1199px) {
    .LEW_MHero_ScoreNum   { font-size: 56px; }
    .LEW_MHero_ScoreSep   { font-size: 36px; }
    .LEW_MHero_TeamName   { font-size: 17px; }
    .LEW_MHero_Shield     { width: 96px; height: 96px; }
    .LEW_MHero_Shield img { width: 74px !important; height: 74px !important; }
    .LEW_MHero_ScoreBlock { min-width: 170px; }
}

/* ── Responsive 1023px ───────────────────────────────────── */

@media (max-width: 1023px) {
    .LEW_MHero_ScoreNum   { font-size: 48px; }
    .LEW_MHero_ScoreSep   { font-size: 32px; }
    .LEW_MHero_TeamName   { font-size: 14px; }
    .LEW_MHero_ScoreBlock { min-width: 160px; padding: 0 16px; }
    .LEW_MHero_Shield     { width: 88px; height: 88px; }
    .LEW_MHero_Shield img { width: 68px !important; height: 68px !important; }
    .LEW_MHero_Main       { padding: 14px 20px 18px; gap: 10px; }
}

/* ── Hide L/V period labels (all viewports) ────────────── */

.LEW_MHero_PSide { display: none; }

/* ── Responsive 767px — escudos grandes + nombres esquinas ── */

@media (max-width: 767px) {
    .LEW_MHero_TopBar   { padding: 10px 16px 0; }
    .LEW_MHero_DateTime { font-size: 11px; }

    .LEW_MHero_Main {
        flex-direction: row;
        flex-wrap: nowrap;
        align-items: flex-start;
        justify-content: center;
        padding: 10px 12px 14px;
        gap: 4px;
    }

    /* Teams become vertical: shield on top, name below */
    .LEW_MHero_Team {
        flex: 1;
        flex-direction: column;
        align-items: center;
        gap: 6px;
        width: auto;
    }

    /* Home: shield (1st child) on top, name (2nd) bottom-left */
    .LEW_MHero_Team--home .LEW_MHero_TeamText {
        align-self: flex-start;
        text-align: left;
    }

    /* Away: HTML is [text, shield] → reverse so shield on top, name bottom-right */
    .LEW_MHero_Team--away {
        flex-direction: column-reverse;
        justify-content: flex-start;
    }
    .LEW_MHero_Team--away .LEW_MHero_TeamText {
        text-align: right;
        align-self: flex-end;
    }

    /* Shields — large */
    .LEW_MHero_Shield     { width: 72px; height: 72px; }
    .LEW_MHero_Shield img { width: 56px !important; height: 56px !important; }

    /* Score block — center between shields */
    .LEW_MHero_ScoreBlock {
        order: 0;
        padding: 0 4px;
        min-width: unset;
        width: auto;
        flex-shrink: 0;
    }

    .LEW_MHero_ScoreNum { font-size: 42px; }
    .LEW_MHero_ScoreSep { font-size: 28px; }

    /* Team names — small in corners */
    .LEW_MHero_TeamName  { font-size: 11px; }
    .LEW_MHero_TeamLabel { display: none; }
}
