/* หน้าดูบอลสด — Partner Football API */

.fb-page {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 12px 32px;
    padding-bottom: max(32px, env(safe-area-inset-bottom, 0px));
    color: #f5f5f5;
    min-width: 0;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    gap: 16px;
    container-type: inline-size;
    container-name: fb-page;
}

.fb-page__hero {
    margin: 8px 0 0;
    padding: 24px 20px;
    border-radius: 16px;
    background: linear-gradient(135deg, #1a3d1f 0%, #0f1f12 45%, #1a1e21 100%);
    border: 1px solid rgba(76, 175, 80, 0.25);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
}

.fb-page__hero-inner {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.fb-page__hero-actions {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.fb-locale-switch {
    display: inline-flex;
    align-items: stretch;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.15);
    background: rgba(0, 0, 0, 0.35);
}

.fb-locale-switch__btn {
    padding: 8px 14px;
    font-size: 0.8rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.65);
    text-decoration: none;
    line-height: 1.2;
    transition: background 0.15s, color 0.15s;
}

.fb-locale-switch__btn:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.08);
}

.fb-locale-switch__btn--active {
    color: #fff;
    background: rgba(76, 175, 80, 0.35);
}

.fb-page__hero-icon {
    font-size: 2.5rem;
    line-height: 1;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.4));
}

.fb-page__title {
    margin: 0;
    font-size: 1.75rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.fb-page__subtitle {
    margin: 4px 0 0;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.65);
}

.fb-page__stat {
    margin-left: auto;
    text-align: center;
    padding: 10px 18px;
    border-radius: 12px;
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.fb-page__stat-num {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    color: #4caf50;
    line-height: 1.1;
}

.fb-page__stat-label {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.55);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.fb-page__stat-detail {
    display: block;
    margin-top: 4px;
    font-size: 0.68rem;
    font-weight: 500;
    line-height: 1.35;
    color: rgba(255, 255, 255, 0.62);
    text-transform: none;
    letter-spacing: 0;
}

.fb-page__stat-detail-sep {
    margin: 0 4px;
    opacity: 0.45;
}

.fb-page__jump-other {
    display: inline-flex;
    align-items: center;
    padding: 8px 14px;
    border-radius: 10px;
    font-size: 0.8rem;
    font-weight: 600;
    color: #fff;
    text-decoration: none;
    background: rgba(33, 150, 243, 0.35);
    border: 1px solid rgba(33, 150, 243, 0.5);
    transition: background 0.15s, border-color 0.15s;
}

.fb-page__jump-other:hover {
    color: #fff;
    background: rgba(33, 150, 243, 0.5);
    border-color: rgba(33, 150, 243, 0.75);
}

.fb-page__main {
    /* ซ้อนใน .fb-page — อย่าให้ selector main หลักเว็บบังคับ min-height เต็ม viewport */
    min-height: 0;
    height: auto;
    display: block;
    flex: none;
    margin-top: 0;
    margin-bottom: 0;
    min-width: 0;
    max-width: 100%;
    overflow-x: clip;
    padding: 14px 14px 18px;
    border-radius: 16px;
    background: linear-gradient(180deg, rgba(76, 175, 80, 0.08) 0%, rgba(0, 0, 0, 0.2) 100%);
    border: 1px solid rgba(76, 175, 80, 0.22);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    box-sizing: border-box;
}

.fb-page__main .fb-section__head {
    margin-bottom: 14px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

/* เส้นแบ่งระหว่างบอล ↔ กีฬาอื่นๆ */
.fb-page__split {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
    padding: 0 4px;
}

.fb-page__split-line {
    flex: 1;
    height: 1px;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(76, 175, 80, 0.35) 18%,
        rgba(255, 255, 255, 0.22) 50%,
        rgba(33, 150, 243, 0.45) 82%,
        transparent 100%
    );
    position: relative;
}

.fb-page__split-line::after {
    content: '';
    position: absolute;
    left: 10%;
    right: 10%;
    top: -3px;
    height: 7px;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(76, 175, 80, 0.12) 25%,
        rgba(33, 150, 243, 0.14) 75%,
        transparent
    );
    filter: blur(4px);
    pointer-events: none;
}

.fb-page__split-badge {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    border-radius: 999px;
    background: linear-gradient(135deg, rgba(26, 61, 31, 0.75) 0%, rgba(15, 45, 68, 0.8) 100%);
    border: 1px solid rgba(255, 255, 255, 0.14);
    box-shadow:
        0 4px 20px rgba(0, 0, 0, 0.35),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.fb-page__split-icons {
    font-size: 1rem;
    line-height: 1;
    opacity: 0.85;
}

.fb-page__split-text {
    font-size: 0.88rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    color: rgba(255, 255, 255, 0.92);
    white-space: nowrap;
}

/* แบ่งส่วนภายในตารางบอล (สด / โปรแกรมถัดไป) */
.fb-page__main > .fb-section {
    margin-bottom: 0;
}

.fb-page__main > .fb-section + .fb-section {
    margin-top: 0;
    padding-top: 24px;
    position: relative;
}

.fb-page__main > .fb-section + .fb-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 4%;
    right: 4%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.16) 50%, transparent);
}

.fb-page__main > .fb-section + .fb-section::after {
    content: '';
    position: absolute;
    top: -1px;
    left: 50%;
    transform: translateX(-50%);
    width: 64px;
    height: 3px;
    border-radius: 3px;
    background: linear-gradient(90deg, rgba(220, 53, 69, 0.7), rgba(76, 175, 80, 0.5));
    opacity: 0.85;
}

/* กรองวันที่ — มือถือ: dropdown / จอใหญ่: เลื่อนแนวนอน */
.fb-date-filter {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 0 0 12px;
    width: 100%;
    min-width: 0;
    max-width: 100%;
}

.fb-filter-bar {
    display: flex;
}

.fb-league-filter--inline,
.fb-sport-filter {
    width: 100%;
    min-width: 0;
}

.fb-filter-result {
    margin: 0;
    padding: 0 4px;
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.5);
}

.fb-filter-chip {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    min-height: 40px;
    padding: 6px 12px 6px 10px;
    border-radius: 999px;
    scroll-snap-align: start;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(32, 36, 40, 0.95);
    color: rgba(255, 255, 255, 0.88);
    cursor: pointer;
    box-sizing: border-box;
    transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}

.fb-filter-chip:hover {
    color: #fff;
    border-color: rgba(33, 150, 243, 0.45);
    background: rgba(40, 46, 50, 0.98);
}

.fb-filter-chip.is-active {
    border-color: rgba(33, 150, 243, 0.75);
    background: rgba(25, 70, 120, 0.55);
    box-shadow: 0 0 0 1px rgba(33, 150, 243, 0.25);
    color: #fff;
}

.fb-filter-chip__main {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
}

.fb-filter-chip__logo {
    width: 20px;
    height: 20px;
    border-radius: 4px;
    object-fit: contain;
    flex-shrink: 0;
}

.fb-filter-chip__text {
    font-size: 0.84rem;
    font-weight: 600;
    white-space: nowrap;
    max-width: 10rem;
    overflow: hidden;
    text-overflow: ellipsis;
}

.fb-filter-chip__count {
    flex-shrink: 0;
    display: inline-flex;
    align-items: baseline;
    gap: 2px;
    padding: 3px 6px;
    border-radius: 6px;
    line-height: 1;
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.fb-filter-chip.is-active .fb-filter-chip__count {
    background: rgba(33, 150, 243, 0.75);
    border-color: rgba(255, 255, 255, 0.12);
}

.fb-filter-chip__count-num {
    font-size: 0.8rem;
    font-weight: 800;
}

.fb-filter-chip__count-unit {
    font-size: 0.68rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.55);
}

.fb-filter-chip.is-active .fb-filter-chip__count-unit {
    color: rgba(220, 235, 255, 0.9);
}

.fb-other-sport-group--hidden {
    display: none !important;
}

.fb-date-picker-mobile {
    display: none;
}

.fb-date-select-wrap {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 10px 12px;
    border-radius: 12px;
    background: rgba(0, 0, 0, 0.28);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.fb-date-select-wrap__label {
    font-size: 0.78rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.55);
}

.fb-date-select {
    width: 100%;
    max-width: 100%;
    min-height: 44px;
    padding: 10px 36px 10px 12px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: rgba(32, 36, 40, 0.98)
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23aaa' d='M1 1l5 5 5-5'/%3E%3C/svg%3E")
        no-repeat right 12px center;
    color: #fff;
    font-size: 0.9rem;
    font-weight: 600;
    line-height: 1.3;
    appearance: none;
    -webkit-appearance: none;
    cursor: pointer;
}

.fb-date-select:focus-visible {
    outline: 2px solid #4caf50;
    outline-offset: 2px;
}

.fb-date-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 12px;
    padding: 10px 12px;
    border-radius: 12px;
    background: rgba(0, 0, 0, 0.28);
    border: 1px solid rgba(255, 255, 255, 0.08);
    max-width: 100%;
    box-sizing: border-box;
}

.fb-date-bar__label {
    flex: 0 0 auto;
    font-size: 0.78rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.55);
    white-space: nowrap;
}

.fb-date-bar__track {
    flex: 1 1 180px;
    display: flex;
    flex-wrap: nowrap;
    align-items: stretch;
    gap: 8px;
    min-width: 0;
    max-width: 100%;
    padding: 2px 4px 6px;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x proximity;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: rgba(76, 175, 80, 0.35) transparent;
    box-sizing: border-box;
    mask-image: linear-gradient(90deg, transparent, #000 14px, #000 calc(100% - 14px), transparent);
}

.fb-date-bar__track::-webkit-scrollbar {
    height: 5px;
}

.fb-date-bar__track::-webkit-scrollbar-thumb {
    background: rgba(76, 175, 80, 0.35);
    border-radius: 4px;
}

.fb-date-chip {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    width: auto;
    min-width: 0;
    min-height: 40px;
    padding: 6px 12px 6px 10px;
    border-radius: 999px;
    scroll-snap-align: start;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(32, 36, 40, 0.95);
    color: rgba(255, 255, 255, 0.88);
    text-decoration: none;
    box-sizing: border-box;
    transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}

.fb-date-chip:hover {
    color: #fff;
    border-color: rgba(76, 175, 80, 0.45);
    background: rgba(40, 46, 50, 0.98);
}

.fb-date-chip--active {
    border-color: rgba(76, 175, 80, 0.75);
    background: rgba(46, 90, 52, 0.55);
    box-shadow: 0 0 0 1px rgba(76, 175, 80, 0.25);
    color: #fff;
}

.fb-date-chip--today:not(.fb-date-chip--active) {
    border-color: rgba(255, 193, 7, 0.35);
}

.fb-date-chip__main {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    min-width: 0;
}

.fb-date-chip__tag {
    flex-shrink: 0;
    padding: 2px 5px;
    border-radius: 4px;
    font-size: 0.58rem;
    font-weight: 700;
    line-height: 1.2;
    color: #1a1e21;
    background: rgba(255, 193, 7, 0.92);
}

.fb-date-chip--active .fb-date-chip__tag {
    color: #fff;
    background: rgba(76, 175, 80, 0.85);
}

.fb-date-chip__wd {
    font-size: 0.75rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.5);
}

.fb-date-chip--active .fb-date-chip__wd {
    color: rgba(200, 255, 210, 0.75);
}

.fb-date-chip__date {
    font-size: 0.84rem;
    font-weight: 600;
    white-space: nowrap;
}

.fb-date-chip__count {
    flex-shrink: 0;
    display: inline-flex;
    align-items: baseline;
    gap: 2px;
    padding: 3px 6px;
    border-radius: 6px;
    line-height: 1;
    color: rgba(255, 255, 255, 0.88);
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.fb-date-chip__count-num {
    font-size: 0.8rem;
    font-weight: 800;
}

.fb-date-chip__count-unit {
    font-size: 0.68rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.55);
}

.fb-date-chip--active .fb-date-chip__count {
    color: #fff;
    background: rgba(76, 175, 80, 0.75);
    border-color: rgba(255, 255, 255, 0.12);
}

.fb-date-chip--active .fb-date-chip__count-unit {
    color: rgba(220, 255, 225, 0.85);
}

.fb-day-panels {
    width: 100%;
    min-width: 0;
}

.fb-day-panel--hidden {
    display: none !important;
}

.fb-date-chip[data-fb-date-link] {
    cursor: pointer;
}

/* มือถือ + แท็บเล็ตแนวตั้ง: dropdown */
@media (max-width: 767px) {
    .fb-date-picker-mobile {
        display: block;
    }

    .fb-date-picker-desktop {
        display: none;
    }
}

@media (min-width: 768px) {
    .fb-date-chip--today:not(.fb-date-chip--active) .fb-date-chip__tag {
        display: none;
    }
}

/* กรองลีก — แถบเมนูกดเลือก */
.fb-league-filter {
    margin: 0;
    padding: 8px 0 8px;
    border-radius: 12px;
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.08);
    overflow: hidden;
}

.fb-league-filter__head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 8px 12px;
    padding: 0 14px 6px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.fb-league-filter__label {
    margin: 0;
    font-size: 0.82rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.72);
}

.fb-league-filter__result {
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.48);
}

.fb-league-bar {
    padding: 6px 0 0;
    -webkit-overflow-scrolling: touch;
}

.fb-league-bar__track {
    display: flex;
    flex-wrap: nowrap;
    gap: 8px;
    padding: 0 14px 2px;
    overflow-x: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.22) transparent;
}

.fb-league-bar__track::-webkit-scrollbar {
    height: 6px;
}

.fb-league-bar__track::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.22);
    border-radius: 3px;
}

.fb-league-chip {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 7px 12px;
    min-height: 38px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: rgba(30, 34, 38, 0.95);
    color: rgba(255, 255, 255, 0.88);
    font-size: 0.78rem;
    font-weight: 600;
    line-height: 1.2;
    white-space: nowrap;
    cursor: pointer;
    transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.fb-league-chip__logo {
    width: 18px;
    height: 18px;
    object-fit: contain;
    border-radius: 50%;
    flex-shrink: 0;
}

.fb-league-chip__text {
    display: inline-block;
    max-width: 90px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.fb-league-chip:hover {
    border-color: rgba(76, 175, 80, 0.45);
    color: #fff;
}

.fb-league-chip:focus-visible {
    outline: 2px solid #4caf50;
    outline-offset: 2px;
}

.fb-league-chip.is-active {
    background: rgba(220, 53, 69, 0.9);
    border-color: rgba(255, 255, 255, 0.2);
    color: #fff;
    box-shadow: 0 2px 10px rgba(220, 53, 69, 0.25);
}

.fb-match-card--hidden {
    display: none !important;
}

/* กีฬาอื่นๆ / F1 — ห้ามถูกซ่อนด้วยตัวกรองลีกบอล */
#fb-other-sports .fb-other-sport-card.fb-match-card--hidden,
.fb-page__other .fb-other-sport-card.fb-match-card--hidden,
.fb-f1-schedule .fb-f1-card.fb-match-card--hidden,
.fb-section--f1-preview .fb-f1-card.fb-match-card--hidden {
    display: flex !important;
}

#fb-other-sports .fb-other-sport-grid {
    display: grid !important;
    visibility: visible !important;
}

#fb-other-sports .fb-other-sport-card {
    display: flex !important;
    visibility: visible !important;
    height: auto !important;
    min-height: 148px;
    opacity: 1 !important;
}

.fb-section--empty {
    display: none !important;
}

.fb-page__other {
    margin-top: 0;
    padding: 14px 14px 18px;
    border-radius: 16px;
    background: linear-gradient(180deg, rgba(33, 150, 243, 0.08) 0%, rgba(0, 0, 0, 0.2) 100%);
    border: 1px solid rgba(33, 150, 243, 0.22);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    scroll-margin-top: 72px;
}

.fb-page__other .fb-section__head--other {
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

/* กลุ่มกีฬา (VNL, Badminton, …) */
.fb-other-sports-api {
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: 100%;
    min-width: 0;
}

.fb-other-sport-group + .fb-other-sport-group {
    margin-top: 0;
    padding-top: 0;
}

.fb-other-wrap {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
}

.fb-other-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 28px 20px;
    text-align: center;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px dashed rgba(255, 255, 255, 0.15);
}

.fb-other-placeholder__icon {
    font-size: 2rem;
    line-height: 1;
}

.fb-other-placeholder__title {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 600;
    color: #fff;
}

.fb-other-placeholder__text {
    margin: 0;
    max-width: 32rem;
    font-size: 0.9rem;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.62);
}

.fb-other-placeholder__hint {
    margin: 4px 0 0;
    font-size: 0.8rem;
    color: rgba(255, 193, 7, 0.85);
}

.fb-other-sport-group {
    width: 100%;
    min-width: 0;
}

.fb-other-sport-group__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: 0 0 14px;
    padding: 10px 12px;
    border-radius: 12px;
    background: linear-gradient(90deg, rgba(33, 150, 243, 0.14) 0%, rgba(0, 0, 0, 0.25) 55%);
    border: 1px solid rgba(33, 150, 243, 0.22);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.fb-other-sport-group__brand {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    flex: 1 1 auto;
}

.fb-other-sport-group__logo {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    object-fit: contain;
    background: rgba(255, 255, 255, 0.08);
    padding: 3px;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}

.fb-other-sport-group__title {
    margin: 0;
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: 0.02em;
    color: #fff;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.fb-other-sport-group__count {
    flex-shrink: 0;
    display: inline-flex;
    align-items: baseline;
    gap: 3px;
    padding: 6px 11px;
    border-radius: 999px;
    line-height: 1;
    background: rgba(33, 150, 243, 0.32);
    border: 1px solid rgba(100, 181, 246, 0.45);
    color: #fff;
    box-shadow: 0 2px 10px rgba(33, 150, 243, 0.15);
}

.fb-other-sport-group__count-num {
    font-size: 0.92rem;
    font-weight: 800;
}

.fb-other-sport-group__count-unit {
    font-size: 0.72rem;
    font-weight: 600;
    color: rgba(187, 222, 251, 0.9);
}

.fb-other-sport-group__emoji {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    font-size: 1.2rem;
    line-height: 1;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.08);
    flex-shrink: 0;
}

.fb-other-sport-grid {
    width: 100%;
}

/* การ์ดกีฬาอื่น — override sports-schedule.css (.schedule สูง 180px) */
.schedule.schedule-godtv.fb-other-sport-card {
    width: 100%;
    max-width: none;
    height: auto;
    min-height: 0;
    margin: 0;
    padding: 0;
    cursor: default;
    border-radius: 14px;
    overflow: hidden;
    background: #1e2226;
    border: 1px solid rgba(255, 255, 255, 0.07);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
    display: flex;
    flex-direction: column;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.schedule.schedule-godtv.fb-other-sport-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4);
    border-color: rgba(33, 150, 243, 0.4);
    background: #23282e;
}

.schedule.schedule-godtv.fb-other-sport-card .schedule-row {
    width: auto;
    height: auto;
    line-height: inherit;
    padding: 0;
    margin: 0;
}

.schedule.schedule-godtv.fb-other-sport-card .schedule-logo-section {
    display: none;
}

.schedule.schedule-godtv.fb-other-sport-card .schedule-title {
    display: none;
}

/* กีฬาอื่น — พื้นหลังการ์ด (โทนน้ำเงิน ไม่ใช้แดงแบบบอล) */
.schedule.schedule-godtv.fb-other-sport-card .fb-other-sport-card__body,
.schedule.schedule-godtv.fb-other-sport-card .fb-match-card__body.fb-other-sport-card__body {
    background: linear-gradient(180deg, rgba(33, 150, 243, 0.14) 0%, rgba(0, 0, 0, 0.08) 100%);
    border-top-color: rgba(33, 150, 243, 0.28);
    border-bottom-color: rgba(33, 150, 243, 0.12);
}

.fb-other-sport-card__body--versus {
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    align-items: start;
    gap: 10px 8px;
    padding: 12px 14px 14px;
}

.fb-other-sport-card__body--versus .fb-match-card__team {
    gap: 10px;
    align-self: stretch;
    justify-content: flex-start;
}

.fb-other-sport-card__body--versus .fb-match-card__team img {
    width: 52px;
    height: 52px;
    flex-shrink: 0;
}

.fb-other-sport-card__body--versus .fb-match-card__team-name {
    width: 100%;
    max-width: 100%;
    font-size: 0.8rem;
    font-weight: 700;
    line-height: 1.4;
    letter-spacing: 0.01em;
    color: rgba(255, 255, 255, 0.95);
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    word-break: break-word;
    overflow-wrap: anywhere;
    hyphens: auto;
}

.fb-other-sport-card__body--versus .fb-match-card__center {
    align-self: center;
    padding-top: 18px;
}

.fb-other-sport-card__body--versus .fb-match-card__vs {
    font-size: 0.75rem;
    padding: 4px 8px;
    border-radius: 6px;
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.fb-other-sport-card__body--event {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 16px 18px 18px;
    text-align: center;
    min-height: 108px;
}

.fb-other-sport-card__event-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 72px;
    height: 72px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
}

.fb-other-sport-card__event-logo img {
    width: 64px;
    height: 64px;
    object-fit: contain;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.35));
}

.fb-other-sport-card__event-title {
    margin: 0;
    width: 100%;
    max-width: 100%;
    font-size: 0.92rem;
    font-weight: 700;
    line-height: 1.45;
    letter-spacing: 0.02em;
    color: #fff;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    word-break: break-word;
    overflow-wrap: anywhere;
}

/* กีฬาอื่น — override grid ของ .fb-match-card__body (บอล) */
.schedule.schedule-godtv.fb-other-sport-card .fb-other-sport-card__body--duo,
.schedule.schedule-godtv.fb-other-sport-card .fb-other-sport-card__body--event {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    grid-template-columns: none;
    gap: 10px;
}

/* โลโก้ซ้าย–ขวา ชื่อรายการกลางล่าง */
.fb-other-sport-card__body--duo {
    padding: 14px 14px 16px;
    text-align: center;
}

.fb-other-sport-card__logos-pair {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.fb-other-sport-card__logo-slot {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: 68px;
    height: 68px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.22);
}

.fb-other-sport-card__logo-slot--home {
    margin-right: auto;
}

.fb-other-sport-card__logo-slot--away {
    margin-left: auto;
}

.fb-other-sport-card__logo-slot img {
    width: 56px;
    height: 56px;
    object-fit: contain;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.35));
}

.fb-other-sport-card__body--duo .fb-other-sport-card__event-title {
    width: 100%;
    margin: 2px 0 0;
    padding: 0 4px;
    font-size: 0.88rem;
    color: rgba(255, 255, 255, 0.95);
    text-align: center;
    -webkit-line-clamp: 2;
}

.fb-other-legacy {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    padding-top: 8px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.fb-other-legacy .schedule {
    flex: 0 1 auto;
}

.fb-other-sport-card__channels {
    padding: 10px 12px 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(0, 0, 0, 0.2);
}

.fb-other-sport-card__channels-label {
    display: block;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.55);
    margin-bottom: 8px;
}

.fb-other-sport-card__channels-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
}

.fb-other-sport-card__channel {
    display: block;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.12);
    transition: transform 0.15s, border-color 0.15s;
}

.fb-other-sport-card__channel:hover {
    transform: scale(1.04);
    border-color: rgba(220, 53, 69, 0.6);
}

.fb-other-sport-card__channel img {
    display: block;
    width: 100px;
    height: 75px;
    object-fit: contain;
    border-radius: 8px;
}

.fb-other-sport-card__channel-id {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 48px;
    min-height: 40px;
    padding: 0 8px;
    font-size: 0.8rem;
    font-weight: 600;
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
}

.schedule-godtv.schedule-channels .schedule-channel-button,
.schedule-godtv .schedule-channel-button {
    border-radius: 8px;
}

/* Sections */
.fb-section {
    margin-bottom: 24px;
    min-width: 0;
    max-width: 100%;
}

.fb-page__main .fb-section:last-child {
    margin-bottom: 0;
}

.fb-section--highlight {
    padding: 16px;
    border-radius: 16px;
    background: linear-gradient(180deg, rgba(220, 53, 69, 0.08) 0%, transparent 100%);
    border: 1px solid rgba(220, 53, 69, 0.2);
}

.fb-section__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
    padding-bottom: 10px;
    border-bottom: 2px solid rgba(76, 175, 80, 0.35);
}

.fb-section__head--other {
    border-bottom-color: rgba(255, 255, 255, 0.12);
    margin-bottom: 20px;
}

.fb-section__title {
    margin: 0;
    font-size: 1.15rem;
    font-weight: 600;
}

.fb-section__count {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.5);
    padding: 4px 10px;
    border-radius: 20px;
    background: rgba(0, 0, 0, 0.3);
}

/* Match grid — จำนวนคอลัมน์ตามความกว้าง .fb-page จริง (ไม่ใช่ viewport) */
.fb-match-grid,
.fb-other-sport-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
    align-items: stretch;
}

@container fb-page (min-width: 520px) {
    .fb-match-grid,
    .fb-other-sport-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@container fb-page (min-width: 900px) {
    .fb-match-grid,
    .fb-other-sport-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

/* Match card — เต็มช่องกริด เนื้อหาไม่ถูกบีบด้วย .schedule 300×180 เก่า */
.fb-page .fb-match-grid > .fb-match-card.schedule,
.fb-match-card.schedule {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    height: auto;
    min-height: 0;
    margin: 0;
    padding: 0;
    cursor: default;
    position: relative;
    border-radius: 14px;
    overflow: hidden;
    background: #1e2226;
    border: 1px solid rgba(255, 255, 255, 0.07);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
    transition: box-shadow 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.fb-match-card.schedule:hover,
.fb-match-card.schedule:focus-within {
    z-index: 2;
}

.fb-match-card.schedule:hover {
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4);
    border-color: rgba(76, 175, 80, 0.35);
    background: #23282e;
}

@media (hover: hover) and (pointer: fine) {
    .fb-match-card.schedule {
        transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease, background 0.2s ease;
    }

    .fb-match-card.schedule:hover {
        transform: translateY(-3px);
    }
}

.fb-match-card--live {
    border-color: rgba(220, 53, 69, 0.45);
    box-shadow: 0 4px 24px rgba(220, 53, 69, 0.15);
}

.fb-match-card__top {
    padding: 12px 14px 8px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.fb-match-card__league {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 500;
}

.fb-match-card__league img {
    object-fit: contain;
    flex-shrink: 0;
}

.fb-match-card__badges {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.fb-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 8px;
    border-radius: 6px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.fb-badge__dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #fff;
    animation: fb-pulse 1.2s ease infinite;
}

@keyframes fb-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.35; }
}

.fb-badge--live {
    background: #dc3545;
    color: #fff;
}

.fb-badge--hot {
    background: #ff9800;
    color: #111;
}

.fb-badge--phase {
    background: rgba(255, 255, 255, 0.12);
    color: #ffc107;
}

.fb-badge--muted {
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.65);
}

.fb-badge--started {
    background: rgba(76, 175, 80, 0.18);
    color: #a5d6a7;
    border: 1px solid rgba(76, 175, 80, 0.4);
}

.fb-badge--stream {
    background: rgba(76, 175, 80, 0.2);
    color: #81c784;
    border: 1px solid rgba(76, 175, 80, 0.35);
}

.fb-match-card__body {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    align-items: center;
    gap: 8px;
    padding: 8px 14px 12px;
    flex: 1 1 auto;
    min-height: 0;
    background: linear-gradient(180deg, rgba(57, 23, 23, 0.5) 0%, transparent 100%);
    border-top: 1px solid rgba(106, 49, 49, 0.4);
    border-bottom: 1px solid rgba(106, 49, 49, 0.25);
}

.fb-match-card__team {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

.fb-match-card__team img {
    width: 56px;
    height: 56px;
    object-fit: contain;
    filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.4));
}

.fb-match-card__team-name {
    font-size: 0.78rem;
    font-weight: 600;
    text-align: center;
    line-height: 1.25;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.fb-match-card__center {
    text-align: center;
    padding: 0 4px;
}

.fb-match-card__score {
    font-size: 1.65rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    color: #fff;
    line-height: 1.1;
}

.fb-match-card__vs {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.45);
    font-weight: 700;
}

.fb-match-card__countdown {
    margin-top: 6px;
    min-height: 1.25rem;
    padding: 0 !important;
    height: auto !important;
    line-height: 1.3 !important;
    font-size: 0.72rem !important;
}

.fb-page .schedule-countdown-text {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 8px;
    font-size: 0.72rem;
    font-weight: 600;
    line-height: 1.35;
    letter-spacing: 0.02em;
}

.fb-page .schedule-countdown-text--wait {
    color: #ffe082;
    background: rgba(255, 193, 7, 0.22);
    border: 1px solid rgba(255, 193, 7, 0.4);
}

.fb-page .schedule-countdown-text--started {
    color: #e8f5e9;
    background: rgba(76, 175, 80, 0.42);
    border: 1px solid rgba(129, 199, 132, 0.65);
    box-shadow: 0 0 10px rgba(76, 175, 80, 0.25);
}

.fb-page .schedule-countdown-text--finished {
    color: #fff;
    font-weight: 700;
    background: rgba(229, 57, 53, 0.55);
    border: 1px solid rgba(255, 82, 82, 0.85);
    box-shadow: 0 0 12px rgba(244, 67, 54, 0.45);
}

.fb-match-card__countdown .schedule-countdown-text {
    font-size: 0.72rem;
}

.fb-ball-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    font-size: 16px;
    line-height: 20px;
    text-align: center;
    color: #ff6b6b;
    transform-origin: center center;
    -webkit-transform-origin: center center;
    animation: fb-ball-spin 0.85s linear infinite;
    -webkit-animation: fb-ball-spin 0.85s linear infinite;
    will-change: transform;
}

.fb-match-card__center .fb-match-card__countdown {
    display: flex;
    align-items: center;
    justify-content: center;
}

@keyframes fb-ball-spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

@-webkit-keyframes fb-ball-spin {
    from {
        -webkit-transform: rotate(0deg);
    }
    to {
        -webkit-transform: rotate(360deg);
    }
}

/* ห้ามใช้ <footer> — ชน min-height ของ footer หลักเว็บ (~320px) */
.fb-match-card .fb-match-card__footer,
.fb-other-sport-card .fb-match-card__footer {
    flex: 0 0 auto;
    width: 100%;
    min-height: 0;
    height: auto;
    margin: 0;
    padding: 8px 12px 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    background: rgba(0, 0, 0, 0.15);
    display: block;
    box-sizing: border-box;
}

.fb-other-sport-card .fb-match-card__footer {
    border-top-color: rgba(33, 150, 243, 0.15);
}

.fb-other-sport-card.fb-schedule--started .fb-match-card__footer,
.fb-match-card.schedule.fb-schedule--started .fb-match-card__footer {
    border-top-color: rgba(76, 175, 80, 0.45);
    background: rgba(76, 175, 80, 0.1);
}

.fb-other-sport-card.fb-schedule--waiting .fb-match-card__footer,
.fb-match-card.schedule.fb-schedule--waiting .fb-match-card__footer {
    border-top-color: rgba(255, 193, 7, 0.2);
}

.fb-other-sport-card .fb-match-card__meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 4px 8px;
    width: 100%;
    min-height: 0;
    font-size: 0.72rem;
    line-height: 1.3;
    color: rgba(255, 255, 255, 0.55);
}

.fb-other-sport-card .fb-match-card__time {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 0.75rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.72);
    letter-spacing: 0.02em;
}

.fb-other-sport-card .fb-match-card__time::before {
    content: '';
    display: inline-block;
    width: 14px;
    height: 14px;
    flex-shrink: 0;
    opacity: 0.75;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%2390caf9'%3E%3Cpath d='M8 3.5a.5.5 0 0 0-1 0V9a.5.5 0 0 0 .252.434l3.5 2a.5.5 0 0 0 .496-.868L8 8.71V3.5z'/%3E%3Cpath d='M8 16A8 8 0 1 0 8 0a8 8 0 0 0 0 16zm7-8A7 7 0 1 1 1 8a7 7 0 0 1 14 0z'/%3E%3C/svg%3E") center / contain no-repeat;
}

.fb-other-sport-card .fb-match-card__footer .fb-match-card__countdown {
    margin-top: 8px;
    min-height: 1.4rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.fb-other-sport-card .fb-match-card__footer .schedule-countdown-text {
    font-size: 0.72rem;
    font-weight: 600;
}

.fb-match-card__meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px 6px;
    min-height: 0;
    font-size: 0.68rem;
    line-height: 1.25;
    color: rgba(255, 255, 255, 0.48);
}

.fb-match-card__footer .fb-match-card__countdown {
    margin-top: 6px;
    min-height: 1.35rem;
    padding: 0 !important;
    height: auto !important;
    line-height: 1.3 !important;
    text-align: center;
}

.fb-match-card__footer .schedule-countdown-text {
    font-size: 0.72rem;
    font-weight: 600;
}

.fb-match-card__venue {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    min-width: 0;
    flex: 1 1 auto;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.fb-match-card__venue svg {
    flex-shrink: 0;
    opacity: 0.65;
}

.fb-match-card__time {
    flex: 0 0 auto;
    white-space: nowrap;
    font-size: 0.68rem;
    color: rgba(255, 255, 255, 0.42);
}

.fb-match-card__venue + .fb-match-card__time::before {
    content: "·";
    margin: 0 6px;
    opacity: 0.55;
}

.fb-match-card__watch {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin: 8px 12px 12px;
    margin-top: auto;
    padding: 8px 14px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    width: calc(100% - 24px);
    max-width: calc(100% - 24px);
    box-sizing: border-box;
    flex-shrink: 0;
    position: relative;
    z-index: 3;
    pointer-events: auto;
    touch-action: manipulation;
    -webkit-tap-highlight-color: rgba(255, 255, 255, 0.12);
}

.fb-match-card__watch:hover {
    filter: brightness(1.08);
    color: #fff;
}

/* Empty state */
.fb-empty {
    text-align: center;
    padding: 48px 24px;
    border-radius: 16px;
    background: rgba(0, 0, 0, 0.25);
    border: 1px dashed rgba(255, 255, 255, 0.12);
}

.fb-empty__icon {
    font-size: 3rem;
    margin-bottom: 12px;
    opacity: 0.6;
}

.fb-empty__title {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0 0 8px;
}

.fb-empty__text {
    margin: 0;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9rem;
}

/* Play page — เต็มความกว้าง ผู้เล่นใหญ่ รองรับมือถือ/ทีวี */
main:has(.fb-play-page) {
    min-height: 0;
    height: auto;
}

main:has(.fb-play-page) > .content-container {
    width: 100%;
    max-width: none;
    min-height: 0;
    height: auto;
    padding: 0;
    margin: 0;
    gap: 0;
}

main:has(.fb-play-page) > h1,
main:has(.fb-play-page) > .content-container > h1 {
    display: none;
}

main:has(.fb-play-page) > .site-intro-strip {
    display: none;
}

.fb-play-page {
    --fb-play-top: 52px;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    margin: 0;
    padding: 0 0 calc(16px + env(safe-area-inset-bottom, 0px));
    color: #f5f5f5;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
    overflow-x: clip;
}

.fb-play-stage {
    position: relative;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    overflow-x: clip;
    background: #000;
    display: flex;
    flex-direction: column;
}

.fb-play-stage__top {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 4;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    padding-top: max(10px, env(safe-area-inset-top, 0px));
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.75) 0%, transparent 100%);
    pointer-events: none;
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s ease;
}

.fb-play-stage--chrome-auto .fb-play-stage__top.fb-play-stage__top--auto-hidden {
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    pointer-events: none;
}

.fb-play-stage--chrome-auto .fb-play-stage__top.fb-play-stage__top--auto-hidden > * {
    pointer-events: none;
}

.fb-play-stage__top > * {
    pointer-events: auto;
}

.fb-play-stage__back {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.55);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #fff;
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.fb-play-stage__back:hover {
    background: rgba(220, 53, 69, 0.85);
    color: #fff;
    border-color: transparent;
}

.fb-play-stage__screen {
    width: 100%;
    margin: 0 auto;
    aspect-ratio: 16 / 9;
    min-height: min(52dvh, calc(100vw * 9 / 16));
    max-height: min(88dvh, calc(100vw * 9 / 16));
    background: #000;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* embed iframe — ความสูงปรับตาม JS (--fb-embed-screen-h) สูตร 16:9 + แชท */
.fb-play-stage--embed .fb-play-stage__screen {
    aspect-ratio: auto;
    max-height: none;
    height: var(--fb-embed-screen-h, calc(100vw * 9 / 16 + 20px));
    min-height: calc(100vw * 9 / 16 + 20px);
    align-items: stretch;
}

.fb-play-stage--embed .fb-play-stage__screen--chat-open {
    min-height: var(--fb-embed-screen-h, calc(100vw * 9 / 16 + min(300px, max(200px, 34vw)) + 32px));
}

.fb-play-stage--embed .fb-play-stage__player {
    flex: 1 1 auto;
    width: 100%;
    height: 100%;
    min-height: inherit;
    display: flex;
    flex-direction: column;
}

.fb-play-stage--embed .fb-play-stage__media--embed,
.fb-play-stage--embed .fb-play-stage__tv-player .tv-embed-iframe {
    flex: 1 1 auto;
    width: 100% !important;
    height: 100% !important;
    min-height: inherit;
    max-height: none;
    border: 0;
    display: block;
    background: #000;
}

.fb-play-stage--empty .fb-play-stage__screen {
    min-height: 40dvh;
    max-height: 50dvh;
}

.fb-play-stage--waiting.fb-play-stage--empty .fb-play-stage__screen {
    max-height: none;
}

.fb-play-stage__media,
.fb-play-stage__screen > .fb-play-stage__tv-player {
    align-self: stretch;
    width: 100%;
    height: 100%;
}

.fb-play-stage__media {
    display: block;
    border: 0;
    object-fit: contain;
    background: #000;
}

.fb-play-stage__tv-player {
    width: 100%;
    height: 100%;
    min-height: 0;
    flex: 1 1 auto;
    align-self: stretch;
    display: flex;
    flex-direction: column;
    background: #000;
}

.fb-play-stage__tv-player video,
.fb-play-stage__tv-player .tv-live-video {
    width: 100% !important;
    height: 100% !important;
    min-height: 0 !important;
    max-height: none;
    object-fit: contain;
    flex: 1 1 auto;
}

.fb-play-stage__tv-player .tv-embed-wrap {
    flex: 1 1 auto;
    width: 100%;
    height: 100%;
    min-height: 0;
    display: flex;
    flex-direction: column;
    background: #000;
}

.fb-play-stage__tv-player .tv-embed-iframe,
.fb-play-stage__tv-player iframe {
    flex: 1 1 auto;
    width: 100% !important;
    height: 100% !important;
    min-height: 0;
    display: block;
    border: 0;
    background: #000;
}

.fb-play-stage__placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 24px;
    text-align: center;
    color: rgba(255, 255, 255, 0.6);
}

.fb-play-stage--waiting .fb-play-stage__screen {
    min-height: min(56dvh, calc(100vw * 9 / 16));
    background:
        radial-gradient(ellipse 80% 60% at 50% 40%, rgba(76, 175, 80, 0.12) 0%, transparent 70%),
        #0a0c0e;
}

.fb-play-stage--finished.fb-play-stage--waiting .fb-play-stage__screen {
    background:
        radial-gradient(ellipse 70% 55% at 50% 35%, rgba(120, 144, 156, 0.14) 0%, transparent 72%),
        linear-gradient(180deg, #101418 0%, #0a0c0e 100%);
}

.fb-play-stage__wait {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    min-height: inherit;
    padding: clamp(16px, 4vw, 32px);
    box-sizing: border-box;
}

.fb-play-stage__wait-card {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    width: min(100%, 520px);
    padding: clamp(20px, 4.5vw, 28px) clamp(18px, 4vw, 26px);
    text-align: center;
    border-radius: 20px;
    background: linear-gradient(165deg, rgba(26, 61, 31, 0.55) 0%, rgba(14, 18, 22, 0.92) 48%, rgba(10, 12, 14, 0.98) 100%);
    border: 1px solid rgba(76, 175, 80, 0.28);
    box-shadow:
        0 16px 48px rgba(0, 0, 0, 0.45),
        inset 0 1px 0 rgba(255, 255, 255, 0.06);
    overflow: hidden;
}

.fb-play-stage__wait-card--finished {
    gap: 14px;
    width: min(100%, 560px);
    padding: clamp(22px, 4.5vw, 32px) clamp(20px, 4vw, 28px);
    border-color: rgba(144, 164, 174, 0.28);
    background: linear-gradient(165deg, rgba(38, 50, 56, 0.72) 0%, rgba(14, 18, 22, 0.96) 52%, rgba(10, 12, 14, 0.98) 100%);
    box-shadow:
        0 20px 56px rgba(0, 0, 0, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.07);
}

.fb-play-stage__wait-badge--finished {
    color: #eceff1;
    background: rgba(96, 125, 139, 0.35);
    border-color: rgba(176, 190, 197, 0.45);
    box-shadow: none;
    text-transform: none;
    letter-spacing: 0.04em;
}

.fb-play-stage__wait-badge--finished::before {
    display: none;
}

.fb-play-stage__wait-teams--finished {
    padding: 14px 12px;
    background: rgba(0, 0, 0, 0.32);
    border-color: rgba(255, 255, 255, 0.08);
}

.fb-play-stage__wait-mid {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    min-width: 4.5rem;
    padding: 0 4px;
}

.fb-play-stage__wait-score {
    margin: 0;
    font-size: clamp(1.35rem, 4.2vw, 1.75rem);
    font-weight: 800;
    letter-spacing: 0.06em;
    color: #fff;
    line-height: 1.1;
    font-variant-numeric: tabular-nums;
}

.fb-play-stage__wait-ft {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2rem;
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: #cfd8dc;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.fb-play-stage__wait-finished-head {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.fb-play-stage__wait-finished-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    font-size: 1.65rem;
    line-height: 1;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}

.fb-play-stage__wait-cta {
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 4px;
    padding: 10px 22px;
    border-radius: 999px;
    font-size: 0.88rem;
    font-weight: 600;
    text-decoration: none;
    color: #fff;
    background: linear-gradient(135deg, rgba(76, 175, 80, 0.85) 0%, rgba(56, 142, 60, 0.95) 100%);
    border: 1px solid rgba(129, 199, 132, 0.55);
    box-shadow: 0 8px 22px rgba(76, 175, 80, 0.22);
    transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
}

.fb-play-stage__wait-cta:hover,
.fb-play-stage__wait-cta:focus-visible {
    color: #fff;
    text-decoration: none;
    transform: translateY(-1px);
    filter: brightness(1.06);
    box-shadow: 0 10px 26px rgba(76, 175, 80, 0.3);
}

.fb-play-stage__wait-card--finished .fb-play-stage__wait-glow {
    background: radial-gradient(ellipse at center, rgba(144, 164, 174, 0.16) 0%, transparent 68%);
}

.fb-play-stage__wait-glow {
    position: absolute;
    inset: -40% -20% auto;
    height: 70%;
    background: radial-gradient(ellipse at center, rgba(76, 175, 80, 0.22) 0%, transparent 68%);
    pointer-events: none;
}

.fb-play-stage__wait-badge {
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 14px;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #c8e6c9;
    background: rgba(76, 175, 80, 0.18);
    border: 1px solid rgba(129, 199, 132, 0.45);
    box-shadow: 0 0 20px rgba(76, 175, 80, 0.15);
}

.fb-play-stage__wait-badge::before {
    content: '';
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #81c784;
    box-shadow: 0 0 8px rgba(129, 199, 132, 0.8);
    animation: fb-wait-badge-pulse 2s ease-in-out infinite;
}

@keyframes fb-wait-badge-pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(0.85); }
}

.fb-play-stage__wait-teams {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 12px 10px;
    border-radius: 14px;
    background: rgba(0, 0, 0, 0.28);
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.fb-play-stage__wait-team {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    min-width: 0;
}

.fb-play-stage__wait-team img {
    width: 44px;
    height: 44px;
    object-fit: contain;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.05);
    padding: 4px;
    box-sizing: border-box;
}

.fb-play-stage__wait-team span {
    font-size: clamp(0.72rem, 2.4vw, 0.84rem);
    font-weight: 600;
    line-height: 1.3;
    color: rgba(255, 255, 255, 0.92);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    word-break: break-word;
}

.fb-play-stage__wait-vs {
    flex-shrink: 0;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    color: rgba(255, 255, 255, 0.35);
    padding: 6px 8px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.fb-play-stage__wait-icon-wrap {
    position: relative;
    z-index: 1;
    width: 72px;
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.fb-play-stage__wait-icon {
    font-size: 2.25rem;
    line-height: 1;
    position: relative;
    z-index: 1;
}

.fb-play-stage__wait-ring {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 2px solid rgba(76, 175, 80, 0.35);
    animation: fb-wait-ring-spin 8s linear infinite;
}

.fb-play-stage__wait-ring::after {
    content: '';
    position: absolute;
    inset: 6px;
    border-radius: 50%;
    border: 1px dashed rgba(129, 199, 132, 0.25);
}

@keyframes fb-wait-ring-spin {
    to { transform: rotate(360deg); }
}

.fb-play-stage__wait-title {
    position: relative;
    z-index: 1;
    margin: 0;
    font-size: clamp(1.15rem, 3.6vw, 1.5rem);
    font-weight: 700;
    color: #fff;
    letter-spacing: -0.02em;
}

.fb-play-stage__wait-title--finished,
.fb-play-stage--finished .fb-play-stage__wait-title {
    display: block;
    padding: 0;
    border-radius: 0;
    color: #fff;
    background: none;
    border: none;
    box-shadow: none;
    font-size: clamp(1.2rem, 3.8vw, 1.45rem);
}

.fb-play-stage__wait-card--finished .fb-play-stage__wait-sub {
    color: rgba(255, 255, 255, 0.72);
    max-width: 22rem;
}

.fb-play-stage__wait-sub {
    position: relative;
    z-index: 1;
    margin: 0;
    max-width: 26rem;
    font-size: clamp(0.84rem, 2.5vw, 0.98rem);
    line-height: 1.55;
    color: rgba(255, 255, 255, 0.62);
}

.fb-play-stage__wait-kickoff {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    width: 100%;
    margin-top: 2px;
}

.fb-play-stage__wait-kickoff-label {
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.42);
}

.fb-play-stage__wait-time {
    margin: 0;
    padding: 8px 18px;
    border-radius: 999px;
    font-size: clamp(0.86rem, 2.6vw, 0.95rem);
    font-weight: 600;
    color: #a5d6a7;
    background: rgba(76, 175, 80, 0.12);
    border: 1px solid rgba(76, 175, 80, 0.3);
}

.fb-play-stage__wait-countdown {
    position: relative;
    z-index: 1;
    width: 100%;
    margin-top: 4px;
}

.fb-play-stage__wait-countdown:empty {
    display: none;
}

.fb-wait-timer__label {
    margin: 0 0 10px;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    color: rgba(255, 255, 255, 0.5);
}

.fb-wait-timer__grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: clamp(6px, 2vw, 10px);
}

.fb-wait-timer__grid--compact {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    max-width: 280px;
    margin-inline: auto;
}

.fb-wait-timer__grid--duo {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-width: 200px;
    margin-inline: auto;
}

.fb-wait-timer__unit {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: clamp(8px, 2.5vw, 12px) 6px;
    border-radius: 12px;
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.fb-wait-timer__num {
    font-size: clamp(1.35rem, 5vw, 1.85rem);
    font-weight: 800;
    font-variant-numeric: tabular-nums;
    line-height: 1;
    color: #fff;
    text-shadow: 0 0 20px rgba(76, 175, 80, 0.25);
}

.fb-wait-timer__lbl {
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    color: rgba(255, 255, 255, 0.45);
    text-transform: uppercase;
}

.fb-play-stage__wait-countdown--starting .fb-wait-timer__starting {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 18px;
    border-radius: 14px;
    font-size: clamp(0.95rem, 3vw, 1.1rem);
    font-weight: 700;
    color: #fff9c4;
    background: linear-gradient(90deg, rgba(255, 193, 7, 0.14) 0%, rgba(76, 175, 80, 0.14) 100%);
    border: 1px solid rgba(255, 235, 59, 0.35);
    animation: fb-wait-pulse 1.2s ease-in-out infinite;
}

.fb-wait-timer__starting-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #ffeb3b;
    box-shadow: 0 0 12px rgba(255, 235, 59, 0.75);
    animation: fb-wait-badge-pulse 0.9s ease-in-out infinite;
}

@keyframes fb-wait-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.65; }
}

@media (max-width: 767px) {
    .fb-play-stage--waiting .fb-play-stage__screen {
        aspect-ratio: auto;
        min-height: 0;
        max-height: none;
        height: auto;
        align-items: stretch;
    }

    .fb-play-stage--waiting.fb-play-stage--empty .fb-play-stage__screen {
        min-height: min(36dvh, calc(100vw * 9 / 16));
        max-height: min(82dvh, calc(100dvh - 120px));
    }

    .fb-play-stage--finished.fb-play-stage--waiting .fb-play-stage__wait {
        align-items: center;
        justify-content: center;
        padding: 16px max(12px, env(safe-area-inset-left, 0px)) 16px max(12px, env(safe-area-inset-right, 0px));
    }

    .fb-play-stage__wait-card--finished {
        gap: 12px;
        padding: 18px 14px;
    }

    .fb-play-stage__wait-teams--finished {
        padding: 10px 8px;
    }

    .fb-play-stage__wait-finished-icon {
        width: 46px;
        height: 46px;
        font-size: 1.45rem;
    }

    .fb-play-stage__wait-cta {
        width: 100%;
        max-width: 280px;
    }

    .fb-play-stage__wait {
        align-items: stretch;
        justify-content: flex-start;
        padding: 10px max(10px, env(safe-area-inset-left, 0px)) 10px max(10px, env(safe-area-inset-right, 0px));
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        max-height: min(82dvh, calc(100dvh - 120px));
    }

    .fb-play-stage__wait-card {
        gap: 8px;
        width: 100%;
        max-width: 100%;
        padding: 14px 12px;
        border-radius: 14px;
    }

    .fb-play-stage__wait-teams {
        gap: 6px;
        padding: 8px 6px;
    }

    .fb-play-stage__wait-team {
        gap: 4px;
    }

    .fb-play-stage__wait-team img {
        width: 34px;
        height: 34px;
        padding: 3px;
    }

    .fb-play-stage__wait-team span {
        font-size: 0.7rem;
        -webkit-line-clamp: 2;
    }

    .fb-play-stage__wait-vs {
        font-size: 0.65rem;
        padding: 4px 6px;
    }

    .fb-play-stage__wait-title {
        font-size: 1.02rem;
    }

    .fb-play-stage__wait-sub {
        font-size: 0.78rem;
        line-height: 1.4;
        max-width: 100%;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .fb-play-stage__wait-kickoff {
        margin-top: 0;
        gap: 2px;
    }

    .fb-play-stage__wait-time {
        padding: 6px 12px;
        font-size: 0.8rem;
    }

    .fb-play-stage__wait-countdown {
        margin-top: 2px;
    }

    .fb-wait-timer__label {
        margin-bottom: 6px;
        font-size: 0.72rem;
    }

    .fb-wait-timer__grid {
        gap: 5px;
    }

    .fb-wait-timer__unit {
        padding: 6px 4px;
        border-radius: 10px;
        gap: 2px;
    }

    .fb-wait-timer__num {
        font-size: 1.15rem;
    }

    .fb-wait-timer__lbl {
        font-size: 0.58rem;
    }

    .fb-play-stage__wait-badge {
        font-size: 0.68rem;
        padding: 4px 10px;
    }
}

@media (max-width: 767px) and (max-height: 700px) {
    .fb-play-stage--waiting.fb-play-stage--empty .fb-play-stage__screen,
    .fb-play-stage__wait {
        max-height: min(76dvh, calc(100dvh - 100px));
    }

    .fb-play-stage__wait-card {
        gap: 6px;
        padding: 12px 10px;
    }

    .fb-play-stage__wait-title {
        font-size: 0.95rem;
    }

    .fb-wait-timer__num {
        font-size: 1rem;
    }
}

@media (max-width: 400px) {
    .fb-play-stage__wait-card {
        padding: 12px 10px;
        border-radius: 12px;
    }

    .fb-play-stage__wait-team img {
        width: 30px;
        height: 30px;
    }

    .fb-wait-timer__num {
        font-size: 0.95rem;
    }

    .fb-wait-timer__grid--compact,
    .fb-wait-timer__grid--duo {
        max-width: 100%;
    }
}

.fb-play-alert {
    margin: 12px 16px 0;
    max-width: 720px;
    align-self: center;
    width: calc(100% - 32px);
}

.fb-play-stage__player {
    width: 100%;
    height: 100%;
}

.fb-play-stage__player .fb-play-stage__media {
    width: 100%;
    height: 100%;
}

.fb-play-streams {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
    overflow: hidden;
    padding: 14px 16px 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    background: linear-gradient(180deg, rgba(12, 16, 28, 0.92) 0%, rgba(8, 10, 18, 0.98) 100%);
}

.fb-play-streams__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}

.fb-play-streams__label {
    font-size: 0.8125rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.88);
    letter-spacing: 0.01em;
}

.fb-play-streams__count {
    flex-shrink: 0;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.72);
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.fb-play-streams__scroll {
    display: flex;
    justify-content: flex-start;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.22) transparent;
    margin: 0;
    padding: 2px 0 4px;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
}

.fb-play-streams__scroll::-webkit-scrollbar {
    height: 5px;
}

.fb-play-streams__scroll::-webkit-scrollbar-thumb {
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.22);
}

.fb-play-streams__list {
    display: inline-flex;
    flex-wrap: nowrap;
    justify-content: center;
    align-items: center;
    gap: 8px;
    min-width: min-content;
    margin-inline: auto;
}

.fb-play-streams__btn {
    display: inline-flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
    min-height: 40px;
    max-height: 40px;
    min-width: 0;
    width: auto;
    max-width: 200px;
    padding: 0 12px 0 8px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
    cursor: pointer;
    text-align: left;
    flex: 0 0 auto;
    transition: border-color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
    touch-action: manipulation;
}

.fb-play-streams__btn.is-locked,
.fb-play-streams__btn:disabled {
    opacity: 0.42;
    cursor: not-allowed;
    pointer-events: none;
    border-color: rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.03);
    box-shadow: none;
}

.fb-play-streams__btn.is-locked.is-active,
.fb-play-streams__btn:disabled.is-active {
    border-color: rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.06);
}

.fb-play-streams.is-locked .fb-play-streams__head::after {
    content: attr(data-locked-hint);
    display: block;
    margin-top: 4px;
    font-size: 0.72rem;
    font-weight: 500;
    color: rgba(255, 193, 7, 0.88);
    line-height: 1.35;
}

.fb-play-streams--share-only {
    padding-top: 12px;
}

.fb-play-share {
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.fb-play-streams--share-only .fb-play-share {
    margin-top: 0;
    padding-top: 0;
    border-top: none;
}

.fb-play-share__head {
    margin-bottom: 10px;
}

.fb-play-share__label {
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.55);
}

.fb-play-share__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.fb-play-share__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-height: 40px;
    padding: 0 14px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(255, 255, 255, 0.06);
    color: #fff;
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.18s ease, border-color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
    touch-action: manipulation;
}

.fb-play-share__btn svg {
    flex-shrink: 0;
    opacity: 0.92;
}

.fb-play-share__btn:hover,
.fb-play-share__btn:focus-visible {
    background: rgba(76, 175, 80, 0.16);
    border-color: rgba(76, 175, 80, 0.45);
    outline: none;
}

.fb-play-share__btn.is-done {
    background: rgba(76, 175, 80, 0.22);
    border-color: rgba(76, 175, 80, 0.55);
}

.fb-play-share__btn.is-error {
    background: rgba(220, 53, 69, 0.18);
    border-color: rgba(220, 53, 69, 0.45);
}

.fb-play-share-modal {
    position: fixed;
    inset: 0;
    z-index: 1200;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.fb-play-share-modal[hidden] {
    display: none !important;
}

body.fb-play-share-modal-open {
    overflow: hidden;
}

.fb-play-share-modal__backdrop {
    position: absolute;
    inset: 0;
    border: none;
    padding: 0;
    background: rgba(0, 0, 0, 0.72);
    backdrop-filter: blur(4px);
    cursor: pointer;
}

.fb-play-share-modal__panel {
    position: relative;
    z-index: 1;
    width: min(100%, 360px);
    padding: 22px 20px 18px;
    border-radius: 18px;
    background: linear-gradient(180deg, #1f2430 0%, #141820 100%);
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
    text-align: center;
}

.fb-play-share-modal__close {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 34px;
    height: 34px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.88);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.fb-play-share-modal__title {
    margin: 0 0 6px;
    font-size: 1.05rem;
    font-weight: 700;
    color: #fff;
}

.fb-play-share-modal__match {
    margin: 0 0 14px;
    font-size: 0.82rem;
    line-height: 1.4;
    color: rgba(255, 255, 255, 0.68);
}

.fb-play-share-modal__qr-wrap {
    display: inline-flex;
    padding: 12px;
    border-radius: 14px;
    background: #fff;
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.06);
    margin-bottom: 12px;
    position: relative;
    min-width: 244px;
    min-height: 244px;
    align-items: center;
    justify-content: center;
}

.fb-play-share-modal__qr-wrap.is-loading::after {
    content: '';
    position: absolute;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 3px solid rgba(16, 19, 31, 0.15);
    border-top-color: #2e7d32;
    animation: fb-share-qr-spin 0.8s linear infinite;
}

.fb-play-share-modal__qr-wrap.is-loading .fb-play-share-modal__qr {
    opacity: 0.2;
}

@keyframes fb-share-qr-spin {
    to { transform: rotate(360deg); }
}

.fb-play-share-modal__qr {
    display: block;
    width: 220px;
    height: 220px;
}

.fb-play-share-modal__url {
    margin: 0 0 14px;
    padding: 8px 10px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 0.72rem;
    line-height: 1.35;
    color: rgba(255, 255, 255, 0.72);
    word-break: break-all;
}

.fb-play-share-modal__actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.fb-play-share-modal__save,
.fb-play-share-modal__copy {
    min-height: 42px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    touch-action: manipulation;
}

.fb-play-share-modal__save {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    background: linear-gradient(180deg, #43a047, #2e7d32);
    color: #fff;
    border-color: rgba(255, 255, 255, 0.12);
}

.fb-play-share-modal__copy {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
}

.fb-play-share-modal__save:hover,
.fb-play-share-modal__copy:hover {
    filter: brightness(1.06);
}

@media (max-width: 479px) {
    .fb-play-share:not(.fb-play-share--compact) .fb-play-share__actions {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .fb-play-share:not(.fb-play-share--compact) .fb-play-share__btn {
        padding: 0 8px;
        font-size: 0.74rem;
    }

    .fb-play-share:not(.fb-play-share--compact) .fb-play-share__btn span {
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
}

.fb-play-streams__btn:hover {
    border-color: rgba(220, 53, 69, 0.45);
    background: rgba(220, 53, 69, 0.08);
}

.fb-play-streams__btn:focus-visible {
    outline: 2px solid rgba(220, 53, 69, 0.85);
    outline-offset: 2px;
}

.fb-play-streams__btn.is-active {
    border-color: #dc3545;
    background: linear-gradient(180deg, rgba(220, 53, 69, 0.22) 0%, rgba(220, 53, 69, 0.1) 100%);
    box-shadow: 0 0 0 1px rgba(220, 53, 69, 0.35), 0 8px 20px rgba(220, 53, 69, 0.12);
}

.fb-play-streams__btn.is-loading {
    opacity: 0.72;
    pointer-events: none;
    position: relative;
}

.fb-play-streams__btn.is-loading::after {
    content: '';
    position: absolute;
    top: 10px;
    right: 10px;
    width: 14px;
    height: 14px;
    border: 2px solid rgba(255, 255, 255, 0.25);
    border-top-color: #fff;
    border-radius: 50%;
    animation: fb-play-stream-spin 0.7s linear infinite;
}

@keyframes fb-play-stream-spin {
    to {
        transform: rotate(360deg);
    }
}

.fb-play-streams__slot {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    font-size: 0.75rem;
    font-weight: 700;
    line-height: 1;
    color: rgba(255, 255, 255, 0.82);
    background: rgba(255, 255, 255, 0.1);
}

.fb-play-streams__btn.is-active .fb-play-streams__slot {
    color: #fff;
    background: #dc3545;
}

.fb-play-streams__name {
    display: block;
    min-width: 0;
    flex: 1 1 auto;
    font-size: 0.8rem;
    font-weight: 600;
    line-height: 1.2;
    color: rgba(255, 255, 255, 0.94);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Compact toolbar — การ์ดขอบมน ช่อง + แชร์ รองรับทุกอุปกรณ์ */
.fb-play-streams--compact {
    --fb-toolbar-h: 42px;
    --fb-toolbar-radius: 18px;
    --fb-toolbar-pill: 999px;
    width: calc(100% - 24px);
    max-width: min(calc(100% - 24px), 960px);
    margin: 12px auto 0;
    padding: 10px 12px 11px;
    padding-left: max(12px, env(safe-area-inset-left, 0px));
    padding-right: max(12px, env(safe-area-inset-right, 0px));
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-top: none;
    border-radius: var(--fb-toolbar-radius);
    background:
        linear-gradient(145deg, rgba(32, 38, 58, 0.96) 0%, rgba(14, 16, 28, 0.98) 52%, rgba(8, 10, 18, 0.99) 100%);
    box-shadow:
        0 10px 32px rgba(0, 0, 0, 0.42),
        0 2px 0 rgba(255, 255, 255, 0.08) inset,
        0 0 0 1px rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    overflow: hidden;
    box-sizing: border-box;
}

.fb-play-streams--compact .fb-play-streams__bar {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: var(--fb-toolbar-h);
}

.fb-play-streams--compact .fb-play-streams__channels {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.fb-play-streams--compact .fb-play-streams__meta {
    display: inline-flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 5px;
    flex-shrink: 0;
    min-width: 56px;
    height: var(--fb-toolbar-h);
    padding: 0 12px;
    border-radius: var(--fb-toolbar-pill);
    background: linear-gradient(135deg, rgba(220, 53, 69, 0.2) 0%, rgba(255, 255, 255, 0.08) 100%);
    border: 1px solid rgba(220, 53, 69, 0.32);
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.07) inset;
    line-height: 1;
    cursor: default;
}

.fb-play-streams--compact .fb-play-streams__label {
    font-size: clamp(0.68rem, 2.4vw, 0.74rem);
    font-weight: 700;
    letter-spacing: 0.02em;
    text-transform: none;
    color: rgba(255, 255, 255, 0.82);
}

.fb-play-streams--compact .fb-play-streams__count {
    padding: 0;
    border: none;
    background: none;
    border-radius: 0;
    font-size: clamp(0.82rem, 2.8vw, 0.92rem);
    font-weight: 800;
    color: #fff;
    line-height: 1;
}

.fb-play-streams--compact .fb-play-streams__scroll {
    flex: 1 1 auto;
    min-width: 0;
    padding: 0;
    margin: 0;
    -webkit-mask-image: linear-gradient(
        to right,
        transparent 0,
        #000 10px,
        #000 calc(100% - 10px),
        transparent 100%
    );
    mask-image: linear-gradient(
        to right,
        transparent 0,
        #000 10px,
        #000 calc(100% - 10px),
        transparent 100%
    );
}

.fb-play-streams--compact .fb-play-streams__list {
    gap: 7px;
    justify-content: flex-start;
    margin: 0;
    padding: 1px 2px;
}

.fb-play-streams--compact .fb-play-streams__btn {
    min-height: var(--fb-toolbar-h);
    max-height: var(--fb-toolbar-h);
    min-width: 58px;
    padding: 0 14px;
    border-radius: var(--fb-toolbar-pill);
    max-width: none;
    border-color: rgba(255, 255, 255, 0.16);
    background: rgba(255, 255, 255, 0.07);
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.05) inset;
    -webkit-tap-highlight-color: transparent;
}

.fb-play-streams--compact .fb-play-streams__btn:active:not(:disabled):not(.is-locked) {
    transform: scale(0.97);
}

.fb-play-streams--compact .fb-play-streams__btn:hover:not(:disabled):not(.is-locked) {
    border-color: rgba(255, 255, 255, 0.28);
    background: rgba(255, 255, 255, 0.12);
}

.fb-play-streams--compact .fb-play-streams__btn.is-active {
    border-color: rgba(220, 53, 69, 0.78);
    background: linear-gradient(180deg, rgba(220, 53, 69, 0.36) 0%, rgba(220, 53, 69, 0.15) 100%);
    box-shadow:
        0 0 0 1px rgba(220, 53, 69, 0.48),
        0 4px 16px rgba(220, 53, 69, 0.24);
}

.fb-play-streams--compact .fb-play-streams__name {
    font-size: clamp(0.78rem, 2.6vw, 0.86rem);
    font-weight: 700;
    letter-spacing: 0.01em;
}

.fb-play-share--compact {
    position: relative;
    margin: 0;
    padding: 0 0 0 12px;
    border: none;
    flex-shrink: 0;
}

.fb-play-share--compact::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 1px;
    height: calc(var(--fb-toolbar-h) - 8px);
    background: linear-gradient(180deg, transparent 0%, rgba(255, 255, 255, 0.22) 50%, transparent 100%);
    pointer-events: none;
}

.fb-play-share--compact .fb-play-share__actions {
    display: flex;
    align-items: center;
    gap: 7px;
    flex-wrap: nowrap;
    padding: 3px;
    border-radius: var(--fb-toolbar-pill);
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.fb-play-share__btn--pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: calc(var(--fb-toolbar-h) - 6px);
    height: calc(var(--fb-toolbar-h) - 6px);
    padding: 0 13px;
    border-radius: var(--fb-toolbar-pill);
    font-size: clamp(0.74rem, 2.5vw, 0.82rem);
    font-weight: 700;
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.05) inset;
    -webkit-tap-highlight-color: transparent;
}

.fb-play-share__btn--pill:active {
    transform: scale(0.97);
}

.fb-play-share__btn--pill svg {
    flex-shrink: 0;
    width: 16px;
    height: 16px;
    opacity: 0.95;
}

.fb-play-share__btn-label {
    line-height: 1;
    white-space: nowrap;
}

.fb-play-share__btn--icon {
    width: var(--fb-toolbar-h);
    height: var(--fb-toolbar-h);
    min-height: var(--fb-toolbar-h);
    padding: 0;
    border-radius: var(--fb-toolbar-pill);
    gap: 0;
}

.fb-play-share__btn--icon svg,
.fb-play-share__btn--pill svg {
    opacity: 0.95;
}

.fb-play-share--compact .fb-play-share__btn--pill {
    border-color: rgba(255, 255, 255, 0.14);
    background: rgba(255, 255, 255, 0.06);
}

.fb-play-share--compact .fb-play-share__btn--pill:hover,
.fb-play-share--compact .fb-play-share__btn--pill:focus-visible {
    background: rgba(76, 175, 80, 0.16);
    border-color: rgba(76, 175, 80, 0.44);
    outline: none;
}

.fb-play-share__btn--pill.is-done,
.fb-play-share__btn--icon.is-done {
    background: rgba(76, 175, 80, 0.24);
    border-color: rgba(76, 175, 80, 0.5);
}

.fb-play-share__btn--pill.is-error,
.fb-play-share__btn--icon.is-error {
    background: rgba(220, 53, 69, 0.2);
    border-color: rgba(220, 53, 69, 0.45);
}

.fb-play-streams--compact .fb-play-streams__hint {
    margin: 9px 2px 0;
    padding: 8px 11px;
    border-radius: 12px;
    font-size: clamp(0.68rem, 2.4vw, 0.74rem);
    line-height: 1.35;
    color: rgba(255, 210, 80, 0.96);
    background: rgba(255, 193, 7, 0.09);
    border: 1px solid rgba(255, 193, 7, 0.2);
}

/* มือถือเล็ก — จัดเรียงใหม่: ป้ายช่อง + กริดช่อง + แชร์ */
@media (max-width: 767px) {
    .fb-play-streams--compact {
        --fb-toolbar-h: 44px;
        --fb-toolbar-radius: 16px;
        width: calc(100% - 20px);
        max-width: none;
        margin-top: 10px;
        padding: 10px 10px 11px;
    }

    .fb-play-streams--compact .fb-play-streams__bar {
        flex-direction: column;
        align-items: stretch;
        flex-wrap: nowrap;
        gap: 10px;
        min-height: 0;
    }

    .fb-play-streams--compact .fb-play-streams__channels {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
        flex: none;
        width: 100%;
    }

    .fb-play-streams--compact .fb-play-streams__meta {
        align-self: flex-start;
        height: 34px;
        min-width: 0;
        padding: 0 11px;
    }

    .fb-play-streams--compact .fb-play-streams__scroll {
        width: 100%;
        overflow: visible;
        -webkit-mask-image: none;
        mask-image: none;
    }

    .fb-play-streams--compact .fb-play-streams__list {
        display: grid;
        grid-template-columns: repeat(var(--fb-stream-cols, 4), minmax(0, 1fr));
        gap: 7px;
        width: 100%;
        min-width: 0;
        max-width: 100%;
        justify-content: stretch;
        align-items: stretch;
        flex-wrap: nowrap;
        padding: 0;
    }

    .fb-play-streams--compact .fb-play-streams__btn {
        width: 100%;
        max-width: none;
        min-width: 0;
        min-height: var(--fb-toolbar-h);
        max-height: var(--fb-toolbar-h);
        padding: 0 6px;
        flex: none;
        flex-direction: row;
        align-items: center;
        justify-content: center;
        gap: 0;
        border-radius: 12px;
    }

    .fb-play-streams--compact .fb-play-streams__name {
        width: auto;
        max-width: 100%;
        font-size: clamp(0.76rem, 3.4vw, 0.84rem);
        line-height: 1.2;
        text-align: center;
    }

    .fb-play-share--compact {
        padding-left: 0;
        width: 100%;
    }

    .fb-play-share--compact::before {
        display: none;
    }

    .fb-play-share--compact .fb-play-share__actions {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 8px;
        width: 100%;
        padding: 0;
        border: none;
        border-radius: 0;
        background: none;
    }

    .fb-play-share--compact .fb-play-share__btn--pill {
        flex: none;
        width: 100%;
        min-width: 0;
        min-height: var(--fb-toolbar-h);
        height: var(--fb-toolbar-h);
        padding: 0 10px;
        border-radius: 12px;
    }
}

/* มือถือจอแคบมาก */
@media (max-width: 374px) {
    .fb-play-streams--compact {
        width: calc(100% - 16px);
        padding: 9px 8px 10px;
        border-radius: 14px;
    }

    .fb-play-streams--compact .fb-play-streams__list {
        gap: 6px;
    }

    .fb-play-streams--compact .fb-play-streams__btn {
        padding: 0 4px;
        border-radius: 11px;
    }

    .fb-play-share--compact .fb-play-share__btn--pill {
        gap: 5px;
        padding: 0 8px;
        border-radius: 11px;
    }
}

/* แท็บเล็ต / เดสก์ท็อป — แถวเดียว ขนาดพอดี */
@media (min-width: 640px) {
    .fb-play-streams--compact {
        --fb-toolbar-radius: 20px;
        padding: 11px 14px 12px;
    }

    .fb-play-streams--compact .fb-play-streams__btn {
        min-width: 62px;
        padding: 0 15px;
    }

    .fb-play-share__btn--pill {
        padding: 0 14px;
    }
}

@media (min-width: 768px) {
    .fb-play-streams--compact {
        margin-left: auto;
        margin-right: auto;
    }
}

@media (min-width: 1024px) {
    .fb-play-streams--compact {
        --fb-toolbar-h: 44px;
        padding: 12px 16px 13px;
    }

    .fb-play-streams--compact .fb-play-streams__btn {
        min-width: 68px;
        padding: 0 16px;
    }
}

.fb-play-details {
    width: 100%;
    max-width: 960px;
    margin: 0 auto;
    padding: 16px 16px 8px;
    box-sizing: border-box;
}

.fb-play-details__match {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.fb-play-details__team {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    min-width: 0;
    text-align: center;
}

.fb-play-details__team img {
    width: 48px;
    height: 48px;
    object-fit: contain;
}

.fb-play-details__team span {
    font-size: 0.85rem;
    font-weight: 600;
    line-height: 1.25;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.fb-play-details__center {
    text-align: center;
    padding: 0 8px;
}

.fb-play-details__score {
    display: block;
    font-size: 2rem;
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: 0.04em;
}

.fb-play-details__vs {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.45);
    font-weight: 700;
}

.fb-play-details__minute {
    display: block;
    margin-top: 4px;
    font-size: 0.75rem;
    color: #ffc107;
}

.fb-play-details__title {
    margin: 0 0 14px;
    font-size: 1rem;
    font-weight: 600;
    text-align: center;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.35;
}

.fb-play-details__meta {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
}

.fb-play-details__meta li {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 6px;
    padding: 8px 12px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 0.8rem;
    line-height: 1.35;
    max-width: 100%;
}

.fb-play-details__label {
    color: rgba(255, 255, 255, 0.45);
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    flex-shrink: 0;
}

.fb-play-details--hidden {
    display: none !important;
}

.fb-play-next {
    width: 100%;
    max-width: 960px;
    margin: 0 auto;
    padding: 16px 16px 24px;
    box-sizing: border-box;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.fb-play-page--finished .fb-play-next {
    border-top: none;
    padding-top: 8px;
}

.fb-play-next__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
}

.fb-play-next__title {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.92);
    letter-spacing: 0.01em;
}

.fb-play-next__all {
    flex-shrink: 0;
    font-size: 0.8rem;
    font-weight: 600;
    color: #81c784;
    text-decoration: none;
    padding: 6px 10px;
    border-radius: 8px;
    background: rgba(76, 175, 80, 0.12);
    border: 1px solid rgba(76, 175, 80, 0.25);
    transition: background 0.15s ease, color 0.15s ease;
}

.fb-play-next__all:hover {
    color: #a5d6a7;
    background: rgba(76, 175, 80, 0.2);
}

.fb-play-next__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    width: 100%;
}

@media (min-width: 520px) {
    .fb-play-next__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 900px) {
    .fb-play-next__grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (min-width: 768px) {
    .fb-play-streams__list {
        flex-wrap: wrap;
        justify-content: center;
        width: auto;
        max-width: 100%;
        gap: 10px;
    }

    .fb-play-streams__btn {
        flex: 0 0 auto;
        max-width: 220px;
    }

    .fb-play-stage__screen {
        min-height: min(60dvh, calc(min(100vw, 1400px) * 9 / 16));
        max-height: min(82dvh, calc(min(100vw, 1400px) * 9 / 16));
        width: min(100%, 1400px);
    }

    .fb-play-details__score {
        font-size: 2.5rem;
    }

    .fb-play-details__team img {
        width: 56px;
        height: 56px;
    }
}

@media (min-width: 1200px) {
    .fb-play-stage__screen {
        max-height: min(85dvh, calc(1600px * 9 / 16));
        width: min(100%, 1600px);
    }
}

@media (max-width: 767px) {
    .fb-play-streams {
        padding: 10px max(10px, env(safe-area-inset-left, 0px)) 12px max(10px, env(safe-area-inset-right, 0px));
    }

    .fb-play-streams__head {
        margin-bottom: 8px;
        gap: 8px;
    }

    .fb-play-streams__label {
        font-size: 0.78rem;
    }

    .fb-play-streams__count {
        font-size: 0.68rem;
        padding: 3px 8px;
    }

    .fb-play-streams__scroll {
        overflow-x: visible;
        overflow-y: visible;
    }

    .fb-play-streams__list {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(min(100%, 96px), 1fr));
        justify-content: stretch;
        align-items: stretch;
        gap: 6px;
        width: 100%;
        min-width: 0;
        max-width: 100%;
    }

    .fb-play-streams__btn {
        width: 100%;
        max-width: 100%;
        min-width: 0;
        min-height: 52px;
        max-height: none;
        padding: 6px 6px 7px;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 4px;
        border-radius: 12px;
    }

    .fb-play-streams__slot {
        width: 22px;
        height: 22px;
        font-size: 0.7rem;
    }

    .fb-play-streams__name {
        width: 100%;
        max-width: 100%;
        font-size: 0.68rem;
        line-height: 1.15;
        text-align: center;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .fb-play-details__match {
        gap: 8px;
    }

    .fb-play-details__score {
        font-size: 1.65rem;
    }
}

/* compact toolbar — ทับกฎมือถือทั่วไปด้านบน */
@media (max-width: 767px) {
    .fb-play-streams--compact .fb-play-streams__scroll {
        overflow: visible;
    }

    .fb-play-streams--compact .fb-play-streams__list {
        display: grid;
        grid-template-columns: repeat(var(--fb-stream-cols, 4), minmax(0, 1fr));
        gap: 7px;
        width: 100%;
    }

    .fb-play-streams--compact .fb-play-streams__btn {
        width: 100%;
        min-height: var(--fb-toolbar-h, 44px);
        max-height: var(--fb-toolbar-h, 44px);
        flex-direction: row;
        justify-content: center;
        border-radius: 12px;
    }

    .fb-play-streams--compact .fb-play-streams__name {
        font-size: clamp(0.76rem, 3.4vw, 0.84rem);
        text-align: center;
    }
}

/* Home page compact grid inside football schedule area */
.home-football-schedule-inner .fb-match-grid {
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 12px;
}

.home-football-schedule-inner .fb-match-card__watch {
    font-size: 0.82rem;
    padding: 8px 12px;
}

/* ========== หน้าบอลสด — รองรับทุกอุปกรณ์ ========== */
main > .content-container:has(.fb-page) {
    width: min(1280px, 100%);
    max-width: 100%;
    padding-left: max(10px, env(safe-area-inset-left, 0px));
    padding-right: max(10px, env(safe-area-inset-right, 0px));
    box-sizing: border-box;
    gap: 0;
    min-width: 0;
    overflow-x: clip;
}

/* มือถือเล็ก */
@media (max-width: 479px) {
    .fb-page {
        padding-left: max(8px, env(safe-area-inset-left, 0px));
        padding-right: max(8px, env(safe-area-inset-right, 0px));
    }

    .fb-page__hero {
        margin-bottom: 16px;
        padding: 16px 14px;
    }

    .fb-page__title {
        font-size: 1.35rem;
    }

    .fb-page__hero-icon {
        font-size: 2rem;
    }

    .fb-page__hero-inner {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .fb-page__hero-actions {
        margin-left: 0;
        width: 100%;
        justify-content: flex-start;
        gap: 8px;
    }

    .fb-page__stat {
        margin-left: 0;
    }

    .fb-section__head {
        flex-wrap: wrap;
        gap: 8px;
    }

    .fb-section__title {
        font-size: 1rem;
    }

    .fb-match-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .fb-match-card__body {
        padding: 8px 10px 10px;
        gap: 6px;
    }

    .fb-match-card__team img {
        width: 44px;
        height: 44px;
    }

    .fb-match-card__team-name {
        font-size: 0.72rem;
    }

    .fb-match-card__score {
        font-size: 1.35rem;
    }

    .fb-match-card__watch {
        min-height: 44px;
        margin: 0 10px 10px;
        width: calc(100% - 20px);
        font-size: 0.85rem;
    }

    .fb-league-filter__head {
        padding: 0 10px 6px;
    }

    .fb-league-bar__track {
        padding: 0 10px 2px;
    }

    .fb-page {
        gap: 12px;
        padding-bottom: max(24px, env(safe-area-inset-bottom, 0px));
    }

    .fb-page__split-badge {
        padding: 5px 12px;
    }

    .fb-page__split-text {
        font-size: 0.8rem;
    }

    .fb-page__main,
    .fb-page__other {
        padding: 12px 10px 16px;
    }

    .fb-other-sports-api {
        gap: 16px;
    }

    .fb-other-sport-group__head {
        padding: 8px 10px;
        gap: 8px;
    }

    .fb-other-sport-group__logo,
    .fb-other-sport-group__emoji {
        width: 28px;
        height: 28px;
    }

    .fb-other-sport-group__title {
        font-size: 0.92rem;
    }

    .fb-other-sport-grid {
        grid-template-columns: 1fr;
    }

    .fb-other-sport-card__body--versus .fb-match-card__team img {
        width: 44px;
        height: 44px;
    }

    .fb-other-sport-card__body--versus .fb-match-card__team-name {
        font-size: 0.74rem;
        -webkit-line-clamp: 4;
    }

    .fb-other-sport-card__event-title {
        font-size: 0.86rem;
    }

    .fb-other-sport-card__body--event {
        padding: 14px 12px 16px;
        min-height: 96px;
    }
}

/* มือถือใหญ่ / แท็บเล็ตแนวตั้ง */
@media (min-width: 480px) and (max-width: 767px) {
    .fb-page__hero-inner {
        flex-wrap: wrap;
    }

    .fb-page__hero-actions {
        margin-left: 0;
        flex: 1 1 100%;
        justify-content: flex-start;
    }

    .fb-match-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .fb-match-card__watch {
        min-height: 44px;
    }
}

/* แท็บเล็ตแนวนอน / โน้ตบุ๊กเล็ก */
@media (min-width: 768px) and (max-width: 1024px) {
    .fb-page {
        padding-left: 16px;
        padding-right: 16px;
    }

    .fb-match-grid,
    .fb-other-sport-grid {
        gap: 14px;
    }
}

/* จอใหญ่มาก */
@media (min-width: 1280px) {
    .fb-page {
        max-width: 1280px;
    }
}

/* F1 schedule cards */
.fb-f1-card {
    min-height: 0;
}

.fb-f1-card__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 12px 14px 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.fb-f1-card__head-brand {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

.fb-f1-card__pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    padding: 3px 8px;
    border-radius: 6px;
    background: linear-gradient(135deg, #e10600, #b80500);
    color: #fff;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    line-height: 1.2;
}

.fb-f1-card__session {
    color: rgba(255, 255, 255, 0.92);
    font-size: 0.84rem;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.fb-f1-card__head .fb-match-card__badges {
    flex-shrink: 0;
    justify-content: flex-end;
}

.fb-f1-card__body {
    padding: 14px;
    flex: 1 1 auto;
    min-height: 0;
}

.fb-f1-card__circuit-panel {
    display: grid;
    grid-template-columns: 96px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
}

.fb-f1-card__circuit-visual {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 96px;
    height: 72px;
    border-radius: 12px;
    background: linear-gradient(160deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.03));
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
    overflow: hidden;
}

.fb-f1-card__circuit-visual img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 6px;
    filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.35));
}

.fb-f1-card__circuit-visual--fallback {
    background: linear-gradient(160deg, rgba(225, 6, 0, 0.22), rgba(255, 255, 255, 0.04));
}

.fb-f1-card__circuit-icon {
    font-size: 1.6rem;
    line-height: 1;
}

.fb-f1-card__circuit-info {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.fb-f1-card__circuit-label {
    margin: 0;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.fb-f1-card__circuit-name {
    margin: 0;
    color: #fff;
    font-size: 0.95rem;
    font-weight: 700;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.fb-f1-card__gp {
    margin: 0;
    color: rgba(255, 255, 255, 0.68);
    font-size: 0.8rem;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.fb-f1-card__location {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin: 2px 0 0;
    color: rgba(255, 255, 255, 0.58);
    font-size: 0.76rem;
    line-height: 1.3;
}

.fb-f1-card__location svg {
    flex-shrink: 0;
    opacity: 0.75;
}

.fb-f1-card__location span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.fb-f1-card__footer {
    margin-top: 0;
    padding: 10px 14px 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    background: rgba(0, 0, 0, 0.14);
}

.fb-f1-card__time {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.82rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.88);
}

.fb-f1-card__time::before {
    content: "";
    width: 14px;
    height: 14px;
    flex-shrink: 0;
    background: currentColor;
    opacity: 0.7;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='black' d='M8 0a8 8 0 1 0 0 16A8 8 0 0 0 8 0zm0 14A6 6 0 1 1 8 2a6 6 0 0 1 0 12zm.5-9H7v4.25l3.5 2.1.75-1.23-3-1.77V5z'/%3E%3C/svg%3E") center / contain no-repeat;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='black' d='M8 0a8 8 0 1 0 0 16A8 8 0 0 0 8 0zm0 14A6 6 0 1 1 8 2a6 6 0 0 1 0 12zm.5-9H7v4.25l3.5 2.1.75-1.23-3-1.77V5z'/%3E%3C/svg%3E") center / contain no-repeat;
}

.fb-f1-card--has-watch .fb-f1-card__footer {
    padding-bottom: 10px;
}

.fb-f1-card__watch-wrap {
    padding: 0 12px 12px;
    margin-top: auto;
}

.fb-f1-card__watch {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto auto;
    align-items: center;
    gap: 10px;
    width: 100%;
    min-height: 54px;
    padding: 10px 12px 10px 10px;
    border-radius: 12px;
    text-decoration: none;
    color: #fff;
    background: linear-gradient(135deg, #ff3b30 0%, #d50000 48%, #b71c1c 100%);
    border: 1px solid rgba(255, 255, 255, 0.22);
    box-shadow:
        0 8px 22px rgba(213, 0, 0, 0.38),
        inset 0 1px 0 rgba(255, 255, 255, 0.28);
    position: relative;
    z-index: 3;
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

.fb-f1-card__watch::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, rgba(255, 255, 255, 0.22) 0%, transparent 42%);
    pointer-events: none;
}

.fb-f1-card__watch:hover,
.fb-f1-card__watch:focus-visible {
    color: #fff;
    transform: translateY(-2px);
    box-shadow:
        0 12px 28px rgba(213, 0, 0, 0.48),
        inset 0 1px 0 rgba(255, 255, 255, 0.34);
    filter: brightness(1.05);
}

.fb-f1-card__watch-play {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.96);
    color: #d50000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.22);
    flex-shrink: 0;
    position: relative;
    z-index: 1;
}

.fb-f1-card__watch-play svg {
    margin-left: 2px;
}

.fb-f1-card__watch-main {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 2px;
    min-width: 0;
    position: relative;
    z-index: 1;
}

.fb-f1-card__watch-label {
    font-size: 1rem;
    font-weight: 800;
    letter-spacing: 0.03em;
    line-height: 1.1;
    text-transform: uppercase;
}

.fb-f1-card__watch-channel {
    font-size: 0.78rem;
    font-weight: 600;
    line-height: 1.2;
    color: rgba(255, 255, 255, 0.92);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 100%;
}

.fb-f1-card__watch-media {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    height: 32px;
    padding: 3px 6px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18);
    flex-shrink: 0;
    position: relative;
    z-index: 1;
}

.fb-f1-card__watch-logo {
    width: auto;
    max-width: 52px;
    max-height: 24px;
    object-fit: contain;
}

.fb-f1-card__watch-arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.18);
    color: rgba(255, 255, 255, 0.95);
    flex-shrink: 0;
    position: relative;
    z-index: 1;
    transition: transform 0.2s ease, background 0.2s ease;
}

.fb-f1-card__watch:hover .fb-f1-card__watch-arrow,
.fb-f1-card__watch:focus-visible .fb-f1-card__watch-arrow {
    transform: translateX(2px);
    background: rgba(0, 0, 0, 0.28);
}

.fb-match-card--live.fb-f1-card .fb-f1-card__watch {
    animation: fb-f1-watch-glow 2.4s ease-in-out infinite;
}

@keyframes fb-f1-watch-glow {
    0%, 100% {
        box-shadow:
            0 8px 22px rgba(213, 0, 0, 0.38),
            inset 0 1px 0 rgba(255, 255, 255, 0.28);
    }
    50% {
        box-shadow:
            0 10px 28px rgba(255, 59, 48, 0.55),
            0 0 0 2px rgba(255, 82, 82, 0.35),
            inset 0 1px 0 rgba(255, 255, 255, 0.34);
    }
}

.fb-match-card--live.fb-f1-card .fb-f1-card__watch-play {
    animation: fb-f1-play-pulse 1.8s ease-in-out infinite;
}

@keyframes fb-f1-play-pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.06); }
}

@media (max-width: 479px) {
    .fb-f1-card__watch-wrap {
        padding: 0 10px 10px;
    }

    .fb-f1-card__watch {
        gap: 8px;
        min-height: 50px;
        padding: 9px 10px 9px 9px;
    }

    .fb-f1-card__watch-play {
        width: 34px;
        height: 34px;
    }

    .fb-f1-card__watch-label {
        font-size: 0.92rem;
    }

    .fb-f1-card__watch-channel {
        font-size: 0.72rem;
    }
}

.fb-match-card--live.fb-f1-card {
    border-color: rgba(225, 6, 0, 0.5);
    box-shadow: 0 4px 24px rgba(225, 6, 0, 0.18);
}

.fb-match-card--live.fb-f1-card .fb-f1-card__head {
    background: linear-gradient(180deg, rgba(225, 6, 0, 0.12), transparent);
}

@media (max-width: 479px) {
    .fb-f1-card__circuit-panel {
        grid-template-columns: 80px minmax(0, 1fr);
        gap: 10px;
    }

    .fb-f1-card__circuit-visual {
        width: 80px;
        height: 60px;
    }

    .fb-f1-card__circuit-name {
        font-size: 0.9rem;
    }
}

.fb-f1-play-details__circuit {
    margin-bottom: 12px;
}

.fb-f1-play-details__circuit img {
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.06);
}

.fb-page__f1 {
    margin-top: 8px;
}

.fb-f1-preview-grid {
    margin-bottom: 4px;
}

.fb-f1-view-all-wrap {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 16px;
}

.fb-f1-view-live {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 22px;
    border-radius: 999px;
    border: 1px solid rgba(255, 82, 82, 0.55);
    background: linear-gradient(135deg, #ff3b30 0%, #d50000 55%, #b71c1c 100%);
    color: #fff;
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 8px 20px rgba(213, 0, 0, 0.32);
    transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.fb-f1-view-live:hover {
    color: #fff;
    transform: translateY(-1px);
    filter: brightness(1.06);
    box-shadow: 0 10px 24px rgba(213, 0, 0, 0.42);
}

.fb-f1-view-all {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 22px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.03));
    color: #fff;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.fb-f1-view-all:hover {
    color: #fff;
    border-color: rgba(255, 77, 77, 0.55);
    background: rgba(255, 77, 77, 0.14);
    transform: translateY(-1px);
}

.fb-f1-view-all__count {
    color: rgba(255, 255, 255, 0.72);
    font-weight: 500;
}

.fb-section--f1-upcoming {
    margin-top: 18px;
}

/* ทัช + ลด motion */
@media (hover: none) and (pointer: coarse) {
    .fb-date-chip,
    .fb-league-chip,
    .fb-match-card__watch {
        min-height: 44px;
    }

    .fb-match-card.schedule:hover {
        transform: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .fb-match-card.schedule,
    .fb-date-chip,
    .fb-badge__dot {
        transition: none;
        animation: none;
    }

    .fb-match-card--live.fb-f1-card .fb-f1-card__watch,
    .fb-match-card--live.fb-f1-card .fb-f1-card__watch-play {
        animation: none;
    }

    .fb-ball-spinner {
        animation-duration: 1.4s;
    }
}
