/* mod_osfp_upcoming — upcoming matches slider */
.mod-osfp-upcoming {
    --osfpu-accent: #E30613;
    --osfpu-ink: #111827;
    --osfpu-muted: #6b7280;
    --osfpu-line: #e5e7eb;
    --osfpu-card: #ffffff;
    --osfpu-gap: 16px;
    --osfpu-card-w: 280px;
    position: relative;
    color: var(--osfpu-ink);
}

.mod-osfp-upcoming *,
.mod-osfp-upcoming *::before,
.mod-osfp-upcoming *::after {
    box-sizing: border-box;
}

.osfpu-empty {
    margin: 0;
    color: var(--osfpu-muted);
}

/* Navigation */
.osfpu-nav {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    margin-bottom: 12px;
}

.osfpu-arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    padding: 0;
    border: 1px solid var(--osfpu-line);
    border-radius: 50%;
    background: var(--osfpu-card);
    color: var(--osfpu-ink);
    cursor: pointer;
    transition: background-color .15s ease, color .15s ease, border-color .15s ease, opacity .15s ease;
}

.osfpu-arrow:hover:not(:disabled),
.osfpu-arrow:focus-visible {
    background: var(--osfpu-accent);
    border-color: var(--osfpu-accent);
    color: #fff;
}

.osfpu-arrow:disabled {
    opacity: .35;
    cursor: default;
}

.mod-osfp-upcoming.is-static .osfpu-nav {
    display: none;
}

/* Track */
.osfpu-viewport {
    position: relative;
}

.osfpu-track {
    display: flex;
    gap: var(--osfpu-gap);
    margin: 0;
    padding: 4px 2px 14px;
    list-style: none;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    scrollbar-width: thin;
    -webkit-overflow-scrolling: touch;
}

.osfpu-track:focus-visible {
    outline: 2px solid var(--osfpu-accent);
    outline-offset: 2px;
}

.osfpu-slide {
    flex: 0 0 var(--osfpu-card-w);
    margin: 0;
    padding: 0;
    scroll-snap-align: start;
}

/* Card */
.osfpu-card {
    --osfpu-dept: var(--osfpu-accent);
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 16px 16px 14px;
    border: 1px solid var(--osfpu-line);
    border-top: 4px solid var(--osfpu-dept);
    border-radius: 10px;
    background: var(--osfpu-card);
    box-shadow: 0 1px 2px rgba(17, 24, 39, .04);
    transition: box-shadow .2s ease, transform .2s ease;
}

.osfpu-card:hover {
    box-shadow: 0 8px 24px rgba(17, 24, 39, .10);
    transform: translateY(-2px);
}

.osfpu-card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    min-height: 22px;
}

.osfpu-dept {
    overflow: hidden;
    color: var(--osfpu-dept);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .06em;
    line-height: 1.2;
    text-transform: uppercase;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.osfpu-badge {
    flex: 0 0 auto;
    padding: 3px 8px;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .05em;
    line-height: 1.2;
    text-transform: uppercase;
}

.osfpu-badge--today { background: #111827; color: #fff; }
.osfpu-badge--live { background: var(--osfpu-accent); color: #fff; animation: osfpu-pulse 1.6s ease-in-out infinite; }
.osfpu-badge--postponed { background: #fef3c7; color: #92400e; }

@keyframes osfpu-pulse {
    50% { opacity: .55; }
}

.osfpu-when {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 8px;
    margin: 10px 0 14px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--osfpu-line);
}

.osfpu-date {
    font-size: 14px;
    font-weight: 600;
    color: var(--osfpu-muted);
}

.osfpu-time {
    font-size: 22px;
    font-weight: 800;
    line-height: 1;
    font-variant-numeric: tabular-nums;
    color: var(--osfpu-ink);
}

/* Teams */
.osfpu-teams {
    display: flex;
    flex-direction: column;
    gap: 10px;
    color: inherit;
    text-decoration: none;
}

a.osfpu-teams:hover .osfpu-name,
a.osfpu-teams:focus-visible .osfpu-name {
    color: var(--osfpu-dept);
}

.osfpu-team {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.osfpu-logo {
    display: inline-flex;
    flex: 0 0 36px;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
}

.osfpu-logo img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.osfpu-initials {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #f3f4f6;
    color: var(--osfpu-muted);
    font-size: 10px;
    font-weight: 700;
}

.osfpu-name {
    overflow: hidden;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.25;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    transition: color .15s ease;
}

/* Meta */
.osfpu-meta {
    display: flex;
    flex-direction: column;
    gap: 2px;
    margin-top: 12px;
    font-size: 12px;
    line-height: 1.35;
    color: var(--osfpu-muted);
}

.osfpu-comp {
    font-weight: 600;
}

/* Actions */
.osfpu-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: auto;
    padding-top: 14px;
}

.osfpu-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    max-width: 100%;
    padding: 6px 10px;
    border: 1px solid transparent;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.2;
    text-decoration: none;
    white-space: nowrap;
    transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}

.osfpu-btn span {
    overflow: hidden;
    text-overflow: ellipsis;
}

.osfpu-btn svg {
    flex: 0 0 auto;
}

.osfpu-btn--stream {
    background: var(--osfpu-ink);
    color: #fff;
}

.osfpu-btn--stream:hover,
.osfpu-btn--stream:focus-visible {
    background: #000;
    color: #fff;
}

.osfpu-btn--tv {
    border-color: var(--osfpu-line);
    background: #f9fafb;
    color: var(--osfpu-ink);
    cursor: default;
}

.osfpu-btn--tickets {
    background: var(--osfpu-accent);
    color: #fff;
}

.osfpu-btn--tickets:hover,
.osfpu-btn--tickets:focus-visible {
    filter: brightness(.9);
    color: #fff;
}

.osfpu-btn:focus-visible,
a.osfpu-teams:focus-visible {
    outline: 2px solid var(--osfpu-accent);
    outline-offset: 2px;
}

@media (max-width: 640px) {
    .mod-osfp-upcoming { --osfpu-card-w: 78vw; --osfpu-gap: 12px; }
    .osfpu-nav { display: none; }
}

@media (prefers-reduced-motion: reduce) {
    .osfpu-track { scroll-behavior: auto; }
    .osfpu-card, .osfpu-card:hover { transition: none; transform: none; }
    .osfpu-badge--live { animation: none; }
}
