/* BCF Site Core — livestreams, official broadcasts and native live chat */

.bcf-live-discovery {
    margin: 0 0 34px;
    padding: 26px;
    border-radius: 14px;
    background: linear-gradient(135deg, #0b304d 0%, #174f76 100%);
    color: #fff;
    box-shadow: 0 16px 36px rgba(12, 48, 76, .16);
}

.bcf-live-discovery__head {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 20px;
}

.bcf-live-discovery__head span,
.bcf-live-coverage__heading > div > span {
    display: block;
    margin-bottom: 5px;
    color: #fff23b;
    font-family: Montserrat, Inter, sans-serif;
    font-size: 10px;
    font-weight: 850;
    letter-spacing: .12em;
}

.bcf-live-discovery__head h2 {
    margin: 0;
    color: #fff;
    font-family: Montserrat, Inter, sans-serif;
    font-size: clamp(23px, 3vw, 31px);
    line-height: 1.12;
}

.bcf-live-discovery__head > a {
    flex: 0 0 auto;
    color: #fff;
    font-family: Montserrat, Inter, sans-serif;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .04em;
}

.bcf-live-discovery__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.bcf-live-discovery__card {
    display: flex;
    min-width: 0;
    min-height: 180px;
    flex-direction: column;
    padding: 18px;
    border: 1px solid rgba(255,255,255,.16);
    border-radius: 10px;
    background: rgba(255,255,255,.09);
}

.bcf-live-discovery__status {
    display: inline-flex;
    align-items: center;
    align-self: flex-start;
    gap: 6px;
    margin-bottom: 12px;
    padding: 5px 8px;
    border-radius: 999px;
    background: rgba(255,255,255,.13);
    color: #dce9f3;
    font-size: 9px;
    font-weight: 850;
    letter-spacing: .08em;
}

.bcf-live-discovery__status--live {
    background: #fff1f0;
    color: #a11b1b;
}

.bcf-live-discovery__status i,
.bcf-live-coverage__badge i {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #e23434;
    box-shadow: 0 0 0 4px rgba(226,52,52,.15);
    animation: bcf-live-pulse 1.8s ease-in-out infinite;
}

@keyframes bcf-live-pulse {
    50% { opacity: .42; transform: scale(.78); }
}

.bcf-live-discovery__card h3 {
    margin: 0;
    color: #fff;
    font-family: Montserrat, Inter, sans-serif;
    font-size: 16px;
    line-height: 1.35;
}

.bcf-live-discovery__card p {
    margin: 9px 0 16px;
    color: #d6e5ef;
    font-size: 12px;
    line-height: 1.45;
}

.bcf-live-discovery__card > a {
    margin-top: auto;
    color: #fff23b;
    font-family: Montserrat, Inter, sans-serif;
    font-size: 9px;
    font-weight: 850;
    letter-spacing: .04em;
}

.bcf-live-discovery__source {
    margin: 16px 0 0;
    color: #bed3e2;
    font-size: 10px;
}

.bcf-live-coverage {
    overflow: hidden;
}

.bcf-event-live-wrap { margin-bottom: 30px; }

.bcf-live-coverage__heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 21px 24px;
    background: #0d3553;
}

.bcf-live-coverage__heading h2 {
    margin: 0;
    color: #fff;
    font-family: Montserrat, Inter, sans-serif;
    font-size: 21px;
}

.bcf-live-coverage__badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 10px;
    border-radius: 999px;
    background: rgba(255,255,255,.12);
    color: #fff;
    font-family: Montserrat, Inter, sans-serif;
    font-size: 9px;
    letter-spacing: .08em;
}

.bcf-live-coverage--live .bcf-live-coverage__badge {
    background: #fff1f0;
    color: #a11b1b;
}

.bcf-live-coverage__layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
}

.bcf-live-coverage__layout.has-chat {
    grid-template-columns: minmax(0, 1.65fr) minmax(280px, .85fr);
}

.bcf-live-coverage__media {
    min-width: 0;
    padding: 18px;
    background: #071d2d;
}

.bcf-live-player {
    position: relative;
    overflow: hidden;
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 8px;
    background: #020b12;
}

.bcf-live-player iframe,
.bcf-live-player video {
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
    object-fit: contain;
}

.bcf-live-boards {
    margin-top: 16px;
    overflow: hidden;
    border-radius: 8px;
    background: #fff;
}

.bcf-live-boards__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 12px 14px;
    border-bottom: 1px solid #dce6ed;
    color: #173f60;
}

.bcf-live-boards__head a {
    color: #236b98;
    font-size: 9px;
    font-weight: 850;
}

.bcf-live-boards iframe {
    display: block;
    width: 100%;
    min-height: 560px;
    border: 0;
}

.bcf-live-external {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 18px;
    border: 1px solid rgba(255,255,255,.18);
    border-radius: 8px;
    color: #fff;
}

.bcf-live-external + .bcf-live-external { margin-top: 12px; }
.bcf-live-external a { color: #fff23b; font-size: 10px; font-weight: 850; }

.bcf-stream-chat {
    display: flex;
    min-width: 0;
    max-height: 760px;
    flex-direction: column;
    border-left: 1px solid #dce6ed;
    background: #fff;
}

.bcf-stream-chat > header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 16px 18px;
    border-bottom: 1px solid #dce6ed;
}

.bcf-stream-chat > header > div { display: flex; align-items: center; gap: 8px; }
.bcf-stream-chat > header > div > span { width: 8px; height: 8px; border-radius: 50%; background: #35a867; }
.bcf-stream-chat.has-connection-error > header > div > span { background: #d59024; }
.bcf-stream-chat > header strong { color: #173f60; font-family: Montserrat, Inter, sans-serif; font-size: 14px; }
.bcf-stream-chat > header small { color: #738196; font-size: 9px; text-align: right; }

.bcf-stream-chat__messages {
    min-height: 320px;
    flex: 1 1 auto;
    overflow-y: auto;
    padding: 18px;
    overscroll-behavior: contain;
}

.bcf-stream-chat__empty {
    margin: 36px 0;
    color: #8a97a8;
    font-size: 12px;
    text-align: center;
}

.bcf-stream-chat__message { margin-bottom: 15px; }
.bcf-stream-chat__message > div { display: flex; align-items: center; gap: 7px; margin-bottom: 4px; }
.bcf-stream-chat__message strong { min-width: 0; overflow: hidden; color: #173f60; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.bcf-stream-chat__message time { color: #8a97a8; font-size: 9px; }
.bcf-stream-chat__message button { width: 23px; height: 23px; margin-left: auto; padding: 0; border: 0; border-radius: 50%; background: transparent; color: #a33; cursor: pointer; }
.bcf-stream-chat__message p { display: inline-block; max-width: 92%; margin: 0; padding: 9px 11px; border-radius: 5px 12px 12px 12px; background: #edf4f8; color: #31465a; font-size: 12px; line-height: 1.5; overflow-wrap: anywhere; white-space: pre-wrap; }
.bcf-stream-chat__message.is-mine { text-align: right; }
.bcf-stream-chat__message.is-mine > div { justify-content: flex-end; }
.bcf-stream-chat__message.is-mine button { order: -1; margin: 0 auto 0 0; }
.bcf-stream-chat__message.is-mine p { border-radius: 12px 5px 12px 12px; background: #236b98; color: #fff; text-align: left; }

.bcf-stream-chat__form {
    display: grid;
    gap: 10px;
    padding: 14px;
    border-top: 1px solid #dce6ed;
    background: #f8fafc;
}

.bcf-stream-chat__form label { display: grid; gap: 5px; margin: 0; }
.bcf-stream-chat__form label > span { color: #59697e; font-size: 9px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
.bcf-stream-chat__form input,
.bcf-stream-chat__form textarea { width: 100%; margin: 0; padding: 9px 10px; border: 1px solid #cbd8e2; border-radius: 7px; background: #fff; color: #263c50; font: inherit; font-size: 12px; resize: vertical; }
.bcf-stream-chat__form textarea { min-height: 58px; }
.bcf-stream-chat__form input:focus,
.bcf-stream-chat__form textarea:focus { border-color: #236b98; outline: 2px solid rgba(255,242,59,.7); outline-offset: 1px; }
.bcf-stream-chat__form > div { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.bcf-stream-chat__form [data-chat-status] { color: #a11b1b; font-size: 10px; line-height: 1.3; }
.bcf-stream-chat__form button { min-width: 82px; min-height: 38px; margin-left: auto; padding: 8px 13px; border: 0; border-radius: 7px; background: #236b98; color: #fff; font-family: Montserrat, Inter, sans-serif; font-size: 9px; font-weight: 850; letter-spacing: .04em; cursor: pointer; text-transform: uppercase; }
.bcf-stream-chat__form button:disabled { opacity: .58; cursor: wait; }
.bcf-stream-chat__locked { padding: 15px 18px; border-top: 1px solid #dce6ed; background: #f8fafc; color: #657488; font-size: 11px; }
.bcf-stream-chat__locked a { color: #236b98; font-weight: 800; }

@media (max-width: 980px) {
    .bcf-live-discovery__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .bcf-live-coverage__layout.has-chat { grid-template-columns: 1fr; }
    .bcf-stream-chat { max-height: 620px; border-top: 1px solid #dce6ed; border-left: 0; }
}

@media (max-width: 620px) {
    .bcf-live-discovery { padding: 20px; }
    .bcf-live-discovery__head { align-items: flex-start; flex-direction: column; }
    .bcf-live-discovery__grid { grid-template-columns: 1fr; }
    .bcf-live-coverage__heading { align-items: flex-start; padding: 18px; }
    .bcf-live-coverage__heading h2 { font-size: 18px; }
    .bcf-live-coverage__media { padding: 10px; }
    .bcf-live-boards iframe { min-height: 480px; }
    .bcf-stream-chat__messages { min-height: 280px; padding: 14px; }
}

@media (prefers-reduced-motion: reduce) {
    .bcf-live-discovery__status i,
    .bcf-live-coverage__badge i { animation: none; }
}
