/* Style the match container for live score widget */
.flc-match-container {
    margin: 20px 0;
    padding: 20px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Styling for article content lists */
.flc-match-container ul {
    list-style-type: disc;
    margin: 10px 0 10px 20px;
    padding: 0;
}

.flc-match-container ul li {
    margin-bottom: 8px;
    font-size: 16px;
    line-height: 1.5;
    color: #333;
}

/* =========================================================
   FITUR: FLOATING "BIG MATCH" — PILL + POPUP (FASE 3)
   =========================================================
   Offset posisi (bottom/left/right) diambil dari settings admin lewat
   CSS custom properties (di-inject inline per halaman oleh PHP).
   Breakpoint 782px dipakai supaya konsisten dengan breakpoint mobile
   standar WordPress (wp-admin bar collapse).
*/
.flc-bigmatch-widget {
    position: fixed;
    z-index: 99999;
    bottom: var(--flc-bm-bottom-mobile, 20px);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.flc-bigmatch-widget[data-side-mobile="right"] {
    right: var(--flc-bm-offset-mobile, 20px);
    left: auto;
}

.flc-bigmatch-widget[data-side-mobile="left"] {
    left: var(--flc-bm-offset-mobile, 20px);
    right: auto;
}

@media (min-width: 783px) {
    .flc-bigmatch-widget {
        bottom: var(--flc-bm-bottom-desktop, 20px);
    }

    .flc-bigmatch-widget[data-side-desktop="right"] {
        right: var(--flc-bm-offset-desktop, 20px);
        left: auto;
    }

    .flc-bigmatch-widget[data-side-desktop="left"] {
        left: var(--flc-bm-offset-desktop, 20px);
        right: auto;
    }
}

.flc-bigmatch-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    min-height: 40px;
    background: #16a34a;
    border: none;
    border-radius: 999px;
    padding: 5px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
    cursor: pointer;
    line-height: 1;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.flc-bigmatch-icon {
    font-size: 18px;
    line-height: 1;
    color: #fff;
}

.flc-bigmatch-toggle:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.3);
}

.flc-bigmatch-badges {
    display: flex;
    align-items: center;
}

.flc-bigmatch-badge-logo {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    object-fit: contain;
    background: #fff;
    border: 3px solid #ffffff;
    box-shadow: 0 0 0 1.5px rgba(0, 0, 0, 0.15);
    margin-left: -12px;
}

.flc-bigmatch-badge-logo:first-child {
    margin-left: 0;
}

.flc-bigmatch-panel {
    position: absolute;
    bottom: calc(100% + 12px);
    right: 0;
    width: 290px;
    max-width: calc(100vw - 32px);
    max-height: 420px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    animation: flc-bigmatch-panel-in 0.18s ease;
}

.flc-bigmatch-widget[data-side-mobile="left"] .flc-bigmatch-panel {
    right: auto;
    left: 0;
}

@media (min-width: 783px) {
    .flc-bigmatch-widget[data-side-desktop="left"] .flc-bigmatch-panel {
        right: auto;
        left: 0;
    }

    .flc-bigmatch-widget[data-side-desktop="right"] .flc-bigmatch-panel {
        right: 0;
        left: auto;
    }
}

@keyframes flc-bigmatch-panel-in {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.flc-bigmatch-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px;
    background: #16a34a;
    color: #fff;
    font-weight: 700;
    font-size: 13px;
    letter-spacing: 0.4px;
    text-transform: uppercase;
}

.flc-bigmatch-close {
    background: none;
    border: none;
    color: #fff;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
    padding: 0 4px;
}

.flc-bigmatch-panel-body {
    padding: 4px;
    overflow-y: auto;
}

.flc-bigmatch-loading,
.flc-bigmatch-empty,
.flc-bigmatch-error {
    padding: 20px 12px;
    text-align: center;
    color: #6b7280;
    font-size: 13px;
}

.flc-bigmatch-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.flc-bigmatch-item + .flc-bigmatch-item {
    border-top: 1px solid #f0f0f0;
}

.flc-bigmatch-item-link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 7px 6px;
    text-decoration: none;
    color: inherit;
    border-radius: 8px;
    transition: background 0.15s ease;
}

.flc-bigmatch-item-link:hover {
    background: #f0fdf4;
}

.flc-bigmatch-item-logo {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    object-fit: contain;
    background: #fff;
    border: 3px solid #ffffff;
    box-shadow: 0 0 0 1.5px rgba(0, 0, 0, 0.15);
    flex-shrink: 0;
}

.flc-bigmatch-item-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.flc-bigmatch-item-title {
    font-size: 13px;
    font-weight: 600;
    color: #111827;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.flc-bigmatch-item-meta {
    font-size: 11px;
    color: #6b7280;
}

.flc-bigmatch-loadmore {
    display: block;
    width: calc(100% - 16px);
    margin: 8px;
    padding: 10px 12px;
    background: #f0fdf4;
    color: #16a34a;
    border: 1px solid #bbf7d0;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s ease;
}

.flc-bigmatch-loadmore:hover {
    background: #dcfce7;
}

.flc-bigmatch-loadmore-loading {
    padding: 10px 12px;
    text-align: center;
    color: #6b7280;
    font-size: 12px;
}