.calendar-wrapper {
    width: 100%;
    overflow-x: auto;
}

.calendar {
    display: flex;
    flex-direction: column;
    min-width: 800px;
}

.calendar-row {
    display: flex;
    flex-direction: column;
    gap: 10px;
    border-bottom: 1px solid var(--c-border);
    padding: 12px 0;
}

.calendar-row__label {
    position: sticky;
    left: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 80px;
    flex-shrink: 0;
    font-weight: bold;
    font-size: 14px;
    padding: 6px 8px;
    background-color: var(--c-border);
    border-radius: 6px;
    margin-top: 27px;
}

.calendar-timeline {
    flex: 1;
    position: relative;
}

.timeline-axis {
    position: relative;
    height: 22px;
    border-bottom: 1px solid var(--c-border);
}

.timeline-tick {
    position: absolute;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    top: 2px;
}

.timeline-tick span {
    font-size: 10px;
    color: var(--c-light-text);
    line-height: 1;
}

.timeline-tick::after {
    content: '';
    display: block;
    width: 1px;
    height: 5px;
    background: var(--c-border);
    margin-top: 2px;
}

.timeline-tick--edge {
    display: none;
}

.timeline-events {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding-top: 6px;
}

.timeline-row {
    display: flex;
    align-items: stretch;
}

.timeline-spacer {
    flex-shrink: 0;
    flex-grow: 0;
}

.event-card {
    flex-shrink: 0;
    flex-grow: 0;
    border-radius: 6px;
    padding: 7px 10px;
    color: #fff !important;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: flex-start;
    min-height: 84px;
    text-decoration: none;
}

.event-card--sport { background: var(--blue-linear); }
.event-card--extra { background-color: var(--c-red); }

.event-card__content {
    position: sticky;
    left: 10px;
}

.event-card__name {
    font-weight: bold;
    font-size: 12px;
    white-space: nowrap;
}

.event-card__name:first-letter {
    text-transform: uppercase;
}

.event-card__time {
    font-size: 12px;
    opacity: 0.9;
    white-space: nowrap;
}

.event-card__place {
    font-size: 12px;
    opacity: 0.82;
    min-width: 200px;
}

.event-card__link {
    display: flex;
    align-items: center;
    color: white !important;
    text-decoration: none;
    white-space: nowrap;
    font-size: 12px;
    gap: 5px;
    opacity: 0.82;
    position: sticky;
    left: 10px;
}

.event-card__link .material-symbols-outlined {
    font-size: 12px;
}

.event-card__link:hover { opacity: 1; }

.current-time-line {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 2px;
    background-color: #e53935;
    z-index: 10;
    pointer-events: none;
    transform: translateX(-50%);
}

.current-time-line::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: #e53935;
}
