.tbfs-widget {
    position: relative;
    margin-bottom: 60px;
}

.tbfs-widget__content {
    transition: opacity 220ms ease, transform 220ms ease, filter 220ms ease;
    transform-origin: 50% 0;
}

.tbfs-widget.is-refreshing .tbfs-widget__content {
    opacity: 0.45;
    transform: translateY(6px);
    filter: saturate(0.9);
}

.tbfs-board {
    --tbfs-navy: #0f2f4f;
    --tbfs-blue: #0000CF;
    --tbfs-sky: #eaf4ff;
    --tbfs-line: #F5F7FB;
    --tbfs-text: #272355;
    --tbfs-muted: #5d7286;
    --tbfs-white: #ffffff;
    --tbfs-pink: #FF1553;
    margin: 2rem 0;
    border: 1px solid var(--tbfs-line);
    border-radius: 24px;
    overflow: hidden;
    background: var(--tbfs-white);
    box-shadow: 0 8px 12px #1211111a;
}

.tbfs-board__hero {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: end;
    padding: 1.5rem 1.5rem 1.25rem;
    color: var(--tbfs-navy);
}

.tbfs-board__eyebrow {
    margin: 0 0 0.35rem;
    font-size: 0.8rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    opacity: 0.75;
}

.tbfs-board__title {
    margin: 0;
    color: inherit;
    font-size: clamp(1.35rem, 2vw, 2rem);
    line-height: 1.1;
}

.tbfs-board__meta {
    margin: 0;
    font-size: 0.9rem;
    color: var(--tbfs-navy);
    text-align: right;
}

.tbfs-board__tabs {
    display: flex;
    gap: 0.75rem;
    padding: 1rem 1.5rem 0;
    background: var(--tbfs-white);
}

.tbfs-board__tab {
    align-items: center;
    border-radius: 9999px;
    cursor: pointer;
    display: flex;
    gap: .5rem;
    justify-content: center;
    width: max-content;
    font-size: .875rem;
    line-height: 1.2rem;
    padding: 8px 16px;
    text-align: center;
    background: var(--tbfs-white);
    color: var(--tbfs-blue);
    border: 1px solid var(--tbfs-line);
    position: relative;
    transition-duration: .15s;
    transition-property: all;
    transition-timing-function: cubic-bezier(.4,0,.2,1);
}

.tbfs-board__tab::after {
    content: attr(data-count);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2rem;
    height: 2rem;
    padding: 0 0.45rem;
    border-radius: 999px;
    background: #f5f7fb;
    color: var(--tbfs-blue);
}

.tbfs-board__tab:hover,
.tbfs-board__tab.is-active {
    background: var(--tbfs-blue);
    color: var(--tbfs-white);
    border: 1px solid transparent;
    transform: translateY(-1px);
}

.tbfs-board__tab:hover::after,
.tbfs-board__tab.is-active::after {
    background: var(--tbfs-white);
    color: var(--tbfs-blue);
}

.tbfs-panel {
    display: none;
    padding: 1.25rem 1.5rem 1.5rem;
}

.tbfs-panel.is-active {
    display: block;
}

.tbfs-table-shell {
    overflow-x: auto;
}

.tbfs-table {
    width: 100%;
    border-collapse: collapse;
    color: var(--tbfs-text);
}

.tbfs-table thead th {
    padding: 0.9rem 0.85rem;
    border-bottom: 2px solid var(--tbfs-line);
    text-align: left;
    font-size: 0.78rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--tbfs-muted);
    white-space: nowrap;
}

.tbfs-table tbody td {
    padding: 0.5rem;
    border-bottom: 1px solid var(--tbfs-line);
    vertical-align: middle;
}

.tbfs-table tbody tr:last-child td {
    border-bottom: 0;
}

.tbfs-time {
    display: block;
    font-weight: 700;
    font-size: 1.05rem;
    line-height: 1;
}

.tbfs-date {
    display: block;
    margin-top: 0.3rem;
    font-size: 0.82rem;
    color: var(--tbfs-muted);
}

.tbfs-airport-code {
    display: inline-block;
    margin-left: 0.45rem;
    padding: 0.1rem 0.45rem;
    border-radius: 999px;
    background: var(--tbfs-sky);
    color: var(--tbfs-blue);
    font-size: 0.78rem;
    font-weight: 700;
}

.tbfs-status {
    display: inline-block;
    padding: 0.4rem 0.7rem;
    border-radius: 999px;
    background: #eff6ed;
    color: #236843;
    font-weight: 600;
    font-size: 0.85rem;
}

.tbfs-table__empty {
    text-align: center;
    color: var(--tbfs-muted);
    padding: 2rem 1rem;
}

.tbfs-error {
    padding: 1rem 1.15rem;
    border-radius: 14px;
    background: #fff3f3;
    color: #9e2626;
    border: 1px solid #f1caca;
}

@media (prefers-reduced-motion: reduce) {
    .tbfs-widget__content {
        transition: none;
    }

    .tbfs-widget.is-refreshing .tbfs-widget__content {
        opacity: 1;
        transform: none;
        filter: none;
    }
}

@media (max-width: 800px) {
    .tbfs-board__hero {
        flex-direction: column;
        align-items: flex-start;
    }

    .tbfs-board__meta {
        text-align: left;
    }

    .tbfs-board__tabs {
        padding: 1rem 1rem 0;
        overflow-x: auto;
    }

    .tbfs-panel {
        padding: 1rem;
    }

    .tbfs-table thead {
        display: none;
    }

    .tbfs-table,
    .tbfs-table tbody,
    .tbfs-table tr,
    .tbfs-table td {
        display: block;
        width: 100%;
    }

    .tbfs-table tr {
        margin-bottom: 0.85rem;
        border: 1px solid var(--tbfs-line);
        border-radius: 18px;
        overflow: hidden;
        background: var(--tbfs-white);
    }

    .tbfs-table tbody td {
        border-bottom: 1px solid var(--tbfs-line);
    }

    .tbfs-table tbody td:last-child {
        border-bottom: 0;
    }
}
