.mlbe-wrap {
    font-family: inherit;
    max-width: 100%;
}

.mlbe-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    gap: 1rem;
    flex-wrap: wrap;
}

.mlbe-nav__search {
    display: flex;
    gap: 0.5rem;
}

.mlbe-nav__search input {
    padding: 0.5rem 1rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 0.9rem;
    min-width: 200px;
}

.mlbe-nav__search button {
    padding: 0.5rem 1rem;
    background: #2271b1;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.mlbe-nav__views {
    display: flex;
    gap: 2px;
}

.mlbe-nav__view {
    padding: 0.4rem 0.9rem;
    border: 1px solid #ddd;
    text-decoration: none;
    color: #555;
    font-size: 0.85rem;
    font-weight: 600;
}

.mlbe-nav__view.is-active {
    background: #2271b1;
    color: #fff;
    border-color: #2271b1;
}

.mlbe-nav__view:first-child {
    border-radius: 4px 0 0 4px;
}

.mlbe-nav__view:last-child {
    border-radius: 0 4px 4px 0;
}

.mlbe-period-nav {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.mlbe-period-nav a {
    text-decoration: none;
    color: #2271b1;
    font-weight: 600;
    padding: 0.25rem 0.5rem;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.mlbe-period-nav span {
    font-size: 1.1rem;
    font-weight: 600;
}

.mlbe-month-group {
    margin-bottom: 2rem;
}

.mlbe-month-group__title {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #999;
    border-bottom: 1px solid #eee;
    padding-bottom: 0.5rem;
    margin-bottom: 1rem;
}

.mlbe-event {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    padding: 1.25rem 0;
    border-bottom: 1px solid #f0f0f0;
}

.mlbe-event:last-child {
    border-bottom: none;
}

.mlbe-event__date-col {
    flex-shrink: 0;
    width: 48px;
    text-align: center;
}

.mlbe-event__day-name {
    font-size: 0.7rem;
    text-transform: uppercase;
    color: #999;
    font-weight: 700;
}

.mlbe-event__day-num {
    font-size: 1.8rem;
    font-weight: 800;
    color: #111;
    line-height: 1;
}

.mlbe-event__body {
    flex: 1;
    min-width: 0;
}

.mlbe-event__time {
    font-size: 0.8rem;
    color: #666;
    margin: 0 0 0.25rem;
}

.mlbe-event__title {
    font-size: 1.1rem;
    font-weight: 700;
    margin: 0 0 0.25rem;
}

.mlbe-event__title a {
    color: #1a1a1a;
    text-decoration: none;
}

.mlbe-event__title a:hover {
    color: #2271b1;
}

.mlbe-event__venue {
    font-size: 0.85rem;
    color: #555;
    font-weight: 600;
    margin: 0 0 0.25rem;
}

.mlbe-event__excerpt {
    font-size: 0.85rem;
    color: #666;
    margin: 0 0 0.75rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.mlbe-event__footer {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.mlbe-event__rsvp {
    display: inline-block;
    padding: 0.35rem 0.9rem;
    background: #2271b1;
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 700;
}

.mlbe-event__rsvp:hover {
    background: #135e96;
    color: #fff;
}

.mlbe-event__price {
    font-size: 0.8rem;
    font-weight: 600;
    color: #555;
}

.mlbe-event__thumb {
    flex-shrink: 0;
    width: 100px;
}

.mlbe-event__thumb img {
    width: 100%;
    height: 80px;
    object-fit: cover;
    border-radius: 6px;
}

.mlbe-calendar {
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
}

.mlbe-calendar__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.5rem;
    background: #f8f8f8;
    border-bottom: 1px solid #ddd;
}

.mlbe-calendar__header h2 {
    margin: 0;
    font-size: 1.1rem;
}

.mlbe-calendar__header a {
    text-decoration: none;
    color: #2271b1;
    font-size: 1.2rem;
    padding: 0.25rem 0.5rem;
}

.mlbe-cal__weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    background: #f0f0f0;
}

.mlbe-cal__weekday {
    padding: 0.5rem;
    text-align: center;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    color: #666;
}

.mlbe-cal__grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
}

.mlbe-cal__day {
    min-height: 100px;
    padding: 0.5rem;
    border-right: 1px solid #eee;
    border-bottom: 1px solid #eee;
    vertical-align: top;
}

.mlbe-cal__day.is-other-month {
    background: #fafafa;
}

.mlbe-cal__day.is-today .mlbe-cal__day-num {
    background: #2271b1;
    color: #fff;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
}

.mlbe-cal__day-num {
    font-size: 0.85rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 0.25rem;
}

.mlbe-cal__event-dot {
    display: block;
    font-size: 0.72rem;
    color: #2271b1;
    text-decoration: none;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    padding: 1px 3px;
    border-radius: 3px;
    margin-bottom: 2px;
}

.mlbe-cal__event-dot:hover {
    background: #e8f0fb;
}

.mlbe-empty {
    padding: 2rem;
    text-align: center;
    color: #666;
}

@media (max-width: 640px) {
    .mlbe-event {
        flex-wrap: wrap;
    }

    .mlbe-event__thumb {
        width: 100%;
    }

    .mlbe-event__thumb img {
        height: 140px;
    }

    .mlbe-cal__day {
        min-height: 72px;
    }
}
