/* SHERIN · FIFA.com Spotlight + match Maroc vs France · 900×300 */

.wcb {
    position: relative;
    width: 100%;
    max-width: var(--wcb-w, 900px);
    height: var(--wcb-h, 300px);
    margin: 0 auto 1rem;
    border-radius: 0;
    overflow: hidden;
    background: transparent;
    contain: layout style paint;
    transition: opacity 0.45s ease, transform 0.45s ease, max-height 0.45s ease;
}

.wcb--hide {
    opacity: 0;
    transform: scale(0.98);
    max-height: 0 !important;
    height: 0 !important;
    margin: 0 !important;
    pointer-events: none;
    overflow: hidden;
}

.wcb--live .wcb__match {
    box-shadow: 0 0 0 1px rgba(74, 222, 128, 0.35);
    border-radius: 4px;
}

/* ── Background ── */
.wcb__media {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.wcb__media-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* ── Content layer (no gradient — background only) ── */
.wcb__gradient-box {
    position: absolute;
    inset: 0;
    z-index: 10;
    display: flex;
    align-items: stretch;
    background: transparent;
}

.wcb__gradient-box--left {
    background: none;
}

.wcb__close {
    position: absolute;
    top: 8px;
    right: 8px;
    z-index: 50;
    width: 28px;
    height: 28px;
    border: none;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.45);
    color: #fff;
    font-size: 1.125rem;
    line-height: 1;
    cursor: pointer;
    opacity: 0.85;
    transition: opacity 0.2s ease, background 0.2s ease;
}

.wcb__close:hover {
    opacity: 1;
    background: rgba(0, 0, 0, 0.65);
}

.wcb__body-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: 100%;
    height: 100%;
    padding: 16px 24px;
    gap: 8px;
}

.wcb__body-container--left {
    align-items: flex-start;
    text-align: left;
    max-width: 82%;
}

/* ── Logos officiels WC 2026 ── */
.wcb__brand {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
    margin-bottom: 2px;
}

.wcb__logo-trophy {
    display: block;
    height: 56px;
    width: auto;
    max-width: 36px;
    flex-shrink: 0;
    filter: drop-shadow(0 4px 14px rgba(0, 0, 0, 0.5));
}

.wcb__wordmark {
    display: block;
    height: 17px;
    width: auto;
    max-width: min(240px, 48vw);
    object-fit: contain;
    object-position: left center;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.45));
}

.wcb__we-are {
    position: absolute;
    right: 24px;
    bottom: 22px;
    z-index: 15;
    pointer-events: none;
}

.wcb__we-are-img {
    display: block;
    height: 52px;
    width: auto;
    max-width: 68px;
    object-fit: contain;
    opacity: 0.95;
    filter: drop-shadow(0 4px 16px rgba(0, 0, 0, 0.35));
}

/* ── Match row (drapeaux + équipes) ── */
.wcb__match {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 0;
    background: transparent;
    border: none;
}

.wcb__team {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.wcb__flag {
    display: block;
    width: 28px;
    height: auto;
    aspect-ratio: 3 / 2;
    object-fit: cover;
    border-radius: 2px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.35);
    animation: wcb-flag-wave 3.5s ease-in-out infinite;
    transform-origin: center center;
}

.wcb__team--away .wcb__flag {
    animation-delay: -1.75s;
}

.wcb__team-name {
    font-family: "Arial Black", "Helvetica Neue", Arial, sans-serif;
    font-size: 0.6875rem;
    font-weight: 900;
    letter-spacing: 0.12em;
    color: #fff;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.75), 0 0 12px rgba(0, 0, 0, 0.35);
}

.wcb__vs {
    font-family: "Arial Black", "Helvetica Neue", Arial, sans-serif;
    font-size: 0.5625rem;
    font-weight: 900;
    letter-spacing: 0.16em;
    color: #fbbf24;
    text-shadow: 0 0 10px rgba(251, 191, 36, 0.45);
}

/* ── Title + description ── */
.wcb__body-text {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.wcb__title {
    margin: 0;
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.01em;
    color: #fff;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.75), 0 0 16px rgba(0, 0, 0, 0.35);
}

.wcb__title-clamp span {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.wcb__title-clamp--mobile {
    display: block;
}

.wcb__title-clamp--mobile span {
    -webkit-line-clamp: var(--wcb-title-lines-mobile, 2);
}

.wcb__title-clamp--desktop {
    display: none;
}

.wcb__description {
    margin: 0;
    max-width: 440px;
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-size: 0.75rem;
    font-weight: 400;
    line-height: 1.4;
    color: #fff;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.75), 0 0 12px rgba(0, 0, 0, 0.35);
}

.wcb__description--mobile {
    display: none;
}

.wcb__cheer--mobile {
    display: none;
}

/* ── SIIR cheer ── */
.wcb__cheer {
    min-height: 1.1rem;
    display: flex;
    align-items: center;
    pointer-events: none;
}

.wcb__cheer-text {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0;
}

.wcb__cheer-char {
    display: inline-block;
    font-family: "Arial Black", "Helvetica Neue", Arial, sans-serif;
    font-weight: 900;
    font-size: 0.5rem;
    color: #fbbf24;
    opacity: 0;
    transform: scale(0.15);
    animation: wcb-char-in var(--wcb-cheer-cycle, 8s) cubic-bezier(0.34, 1.56, 0.64, 1) infinite;
    animation-delay: calc(0.08s * var(--wcb-ch));
    text-shadow: 0 0 8px rgba(251, 191, 36, 0.5);
}

.wcb__cheer-char--s {
    font-size: 0.875rem;
    animation: wcb-s-flash var(--wcb-cheer-cycle, 8s) cubic-bezier(0.22, 1, 0.36, 1) infinite;
}

/* ── Countdown compact ── */
.wcb__countdown {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    min-height: 0;
}

.wcb__countdown--active {
    margin-top: 2px;
}

.wcb__cd-unit {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 2rem;
}

.wcb__cd-inner {
    padding: 2px 5px;
    border-radius: 3px;
    background: rgba(255, 255, 255, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.35);
    backdrop-filter: blur(2px);
}

.wcb__cd-val {
    display: block;
    font-family: "Arial Black", "Helvetica Neue", Arial, sans-serif;
    font-size: 0.75rem;
    font-weight: 900;
    font-variant-numeric: tabular-nums;
    color: #fff;
    line-height: 1;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.6);
}

.wcb__cd-label {
    margin-top: 2px;
    font-family: "Helvetica Neue", Arial, sans-serif;
    font-size: 0.4375rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    color: rgba(255, 255, 255, 0.45);
    text-transform: uppercase;
}

.wcb__status {
    font-family: "Arial Black", "Helvetica Neue", Arial, sans-serif;
    font-size: 0.6875rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #fff;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.75);
}

.wcb__countdown--live .wcb__status {
    color: #4ade80;
    animation: wcb-live-text 1.4s ease-in-out infinite;
}

.wcb__countdown--thanks .wcb__status {
    color: #fca5a5;
}

/* ── CTA (optionnel) ── */
.wcb__button-container {
    flex-shrink: 0;
    margin-top: 4px;
}

.wcb__read-more {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 36px;
    padding: 8px 18px;
    border: 2px solid #fff;
    border-radius: 0;
    background: transparent;
    color: #fff;
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-size: 0.75rem;
    font-weight: 600;
    line-height: 1.3;
    text-decoration: none;
    transition: background 0.2s ease, color 0.2s ease;
}

.wcb__read-more:hover,
.wcb__read-more:focus {
    background: #fff;
    color: #1a1a2e;
    text-decoration: none;
}

.wc-banner-auth-wrap,
.match-cheer-auth-wrap {
    max-width: 900px;
    margin: 0 auto;
    padding: 1rem 1rem 0;
}

.wc-banner-guest-wrap,
.match-cheer-guest-wrap {
    margin-top: 5rem;
    margin-bottom: -1rem;
}

@keyframes wcb-flag-wave {
    0%, 100% { transform: rotate(0deg); }
    50% { transform: rotate(-2deg); }
}

@keyframes wcb-char-in {
    0%, 5% { opacity: 0; transform: scale(0.15); }
    14% { opacity: 1; transform: scale(1.05); }
    74% { opacity: 1; }
    84%, 100% { opacity: 0; }
}

@keyframes wcb-s-flash {
    0%, 2% { opacity: 0; transform: scale(0.1); }
    6% { opacity: 1; transform: scale(1.12); }
    12% { transform: scale(1); }
    78% { opacity: 1; }
    88%, 100% { opacity: 0; }
}

@keyframes wcb-live-text {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}

@media (min-width: 768px) {
    .wcb__body-container {
        padding: 20px 32px;
        gap: 10px;
    }

    .wcb__logo-trophy {
        height: 64px;
        max-width: 42px;
    }

    .wcb__wordmark {
        height: 18px;
        max-width: 260px;
    }

    .wcb__we-are-img {
        height: 64px;
        max-width: 84px;
    }

    .wcb__title {
        font-size: 1.5rem;
    }

    .wcb__description {
        font-size: 0.8125rem;
    }

    .wcb__team-name {
        font-size: 0.75rem;
    }

    .wcb__flag {
        width: 32px;
    }

    .wcb__title-clamp--mobile {
        display: none;
    }

    .wcb__title-clamp--desktop {
        display: block;
    }

    .wcb__title-clamp--desktop span {
        -webkit-line-clamp: var(--wcb-title-lines-desktop, 1);
    }
}

/* ── Tablette ── */
@media (max-width: 920px) and (min-width: 768px) {
    .wcb {
        max-width: 100%;
    }

    .wcb__body-container--left {
        max-width: 88%;
        padding: 16px 20px;
    }

    .wcb__we-are-img {
        height: 44px;
        max-width: 58px;
    }
}

/* ── Mobile ── */
@media (max-width: 767px) {
    .wcb {
        max-width: 100%;
        width: calc(100% + 24px);
        margin-left: -12px;
        margin-right: -12px;
        height: auto;
        min-height: var(--wcb-mobile-min-h, 292px);
        aspect-ratio: unset;
        margin-bottom: 0.75rem;
    }

    .wcb__media-img {
        object-position: 65% center;
    }

    .wcb__we-are {
        display: none;
    }

    .wcb__close {
        top: 6px;
        right: 6px;
        width: 32px;
        height: 32px;
        font-size: 1.25rem;
    }

    .wcb__body-container {
        padding: 12px 14px 14px;
        gap: 5px;
        justify-content: flex-start;
        padding-top: 10px;
    }

    .wcb__body-container--left {
        max-width: 100%;
        padding-right: 36px;
    }

    .wcb__brand {
        gap: 8px;
        flex-wrap: wrap;
        max-width: calc(100% - 8px);
    }

    .wcb__logo-trophy {
        height: 40px;
        max-width: 26px;
    }

    .wcb__wordmark {
        height: 11px;
        max-width: min(200px, 52vw);
    }

    .wcb__match {
        flex-wrap: wrap;
        gap: 6px 8px;
        row-gap: 4px;
    }

    .wcb__team-name {
        font-size: 0.625rem;
        letter-spacing: 0.08em;
    }

    .wcb__vs {
        font-size: 0.5rem;
    }

    .wcb__flag {
        width: 22px;
    }

    .wcb__title {
        font-size: 1.0625rem;
        line-height: 1.2;
    }

    .wcb__description--desktop {
        display: none;
    }

    .wcb__description--mobile {
        display: block;
        max-width: 100%;
        font-size: 0.6875rem;
        line-height: 1.35;
    }

    .wcb__cheer--desktop {
        display: none;
    }

    .wcb__cheer--mobile {
        display: flex;
        min-height: 1rem;
    }

    .wcb__cheer--mobile .wcb__cheer-char {
        font-size: 0.4375rem;
    }

    .wcb__cheer--mobile .wcb__cheer-char--s {
        font-size: 0.75rem;
    }

    .wcb__countdown--active {
        margin-top: 0;
    }

    .wcb__countdown {
        gap: 4px;
        width: 100%;
        justify-content: flex-start;
    }

    .wcb__cd-unit {
        min-width: 1.65rem;
    }

    .wcb__cd-inner {
        padding: 3px 4px;
        min-width: 1.65rem;
        text-align: center;
    }

    .wcb__cd-val {
        font-size: 0.6875rem;
    }

    .wcb__cd-label {
        font-size: 0.375rem;
    }

    .wcb__status {
        font-size: 0.625rem;
        line-height: 1.3;
    }
}

@media (max-width: 380px) {
    .wcb__logo-trophy {
        height: 34px;
    }

    .wcb__wordmark {
        height: 10px;
        max-width: 140px;
    }

    .wcb__team-name {
        font-size: 0.5625rem;
    }

    .wcb__title {
        font-size: 0.9375rem;
    }

    .wcb__description--mobile {
        font-size: 0.625rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .wcb *,
    .wcb *::before,
    .wcb *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .wcb__cheer-char {
        opacity: 1 !important;
        transform: none !important;
    }
}
