/* Square day cells across the whole grid, not just concert days */
.fc-daygrid-body .fc-daygrid-day-frame {
    aspect-ratio: 1 / 1;
    height: auto;
    min-height: 0;
}

.fc-daygrid-day.has-concert-bg {
    background-size: cover !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
    position: relative;
    cursor: pointer;
    transition: box-shadow 0.2s ease;
}

.fc-daygrid-day.has-concert-bg:hover {
    box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.6);
}

/* Затемняющий слой — сильнее снизу, где лежит плашка с названием */
.fc-daygrid-day.has-concert-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.15) 0%, rgba(0, 0, 0, 0.25) 50%, rgba(0, 0, 0, 0.75) 100%);
    z-index: 1;
    pointer-events: none;
}

.fc-daygrid-day.has-concert-bg .fc-daygrid-day-frame {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

/* Date badge stays pinned to the top-right, inset so it never overlaps the row border above */
.fc-daygrid-day.has-concert-bg .fc-daygrid-day-top {
    position: absolute;
    top: 6px;
    right: 6px;
    z-index: 3;
}

.fc-daygrid-day.has-concert-bg .fc-daygrid-day-number {
    background-color: rgba(255, 255, 255, 0.95);
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 0.8em;
    color: #333;
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* Event title: always visible, pinned to the bottom, cleared below the date badge so the two never collide */
.fc-daygrid-day.has-concert-bg .fc-daygrid-day-events {
    position: relative;
    z-index: 2;
    margin: 32px 4px 4px;
}

.fc-daygrid-day.has-concert-bg .fc-event {
    background-color: rgba(255, 255, 255, 0.95) !important;
    border: 1px solid rgba(0, 0, 0, 0.8) !important;
    color: #333 !important;
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    white-space: normal;
    line-height: 1.25;
    font-size: 0.75em;
    padding: 3px 5px;
}

.fc-daygrid-day.has-concert-bg .fc-event .fc-event-title {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
    text-overflow: ellipsis;
}

.fc-direction-ltr .fc-daygrid-event .fc-event-time,
.fc-daygrid-event-dot {
    display: none;
}