.movie-calendar-wrapper-57602443 {
	width: 100%;
}

.movie-calendar-grid-57602443 {
	display: grid;
	/* grid-template-columns is set inline from the widget's "Columns Per Row" control. */
	grid-template-columns: repeat(5, 1fr);
	gap: 15px;
}

.movie-calendar-item {
	position: relative;
	background: #f9f9f9;
	border: 1px solid #ddd;
	padding: 10px;
	display: flex;
	flex-direction: column;
	border-radius: 5px;
	overflow: hidden;
}

/* ---------- Multiple-features corner ribbon ---------- */
.movie-calendar-ribbon {
	position: absolute;
	top: 0;
	left: 0;
	width: 110px;
	height: 110px;
	overflow: hidden;
	pointer-events: none;
	z-index: 3;
}

.movie-calendar-ribbon span {
	position: absolute;
	display: block;
	width: 160px;
	padding: 5px 0;
	background-color: #b8231f;
	color: #fff;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-align: center;
	text-transform: uppercase;
	line-height: 1.4;
	/* Drape diagonally across the top-left corner. */
	left: -42px;
	top: 26px;
	transform: rotate(-45deg);
}

.movie-calendar-ribbon.has-shadow span {
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.35);
}

.movie-calendar-day {
	font-weight: bold;
	font-size: 1.2em;
	margin-bottom: 10px;
	text-align: left;
	border-bottom: 1px solid #eee;
	padding-bottom: 5px;
}

/* ---------- Poster carousel ---------- */
.mc-swiper-57602443 {
	width: 100%;
	margin-bottom: 12px;
}

.mc-swiper-57602443 .swiper-slide {
	height: auto;
}

.movie-calendar-img-box img {
	display: block;
	width: 100%;
	max-width: 100%;
	height: auto;
	border-radius: 4px;
	aspect-ratio: 2 / 3;
	object-fit: cover;
}

/* Dots sit ON the poster, bottom-center, so they never overlap the info/notes below. */
.mc-swiper-57602443 .swiper-pagination.mc-main-pagination {
	position: absolute;
	bottom: 6px;
	left: 0;
	width: 100%;
}

.mc-swiper-57602443 .swiper-pagination-bullet {
	background: #fff;
	opacity: 0.65;
	box-shadow: 0 0 2px rgba(0, 0, 0, 0.7);
}

.mc-swiper-57602443 .swiper-pagination-bullet-active {
	background: #fff;
	opacity: 1;
}

/* Arrows overlaid on the poster edges. */
.mc-swiper-57602443 .swiper-button-next,
.mc-swiper-57602443 .swiper-button-prev {
	color: #fff;
	transform: scale(0.5);
	text-shadow: 0 0 4px rgba(0, 0, 0, 0.6);
	top: 50%;
}

/* ---------- Stacked info panel ---------- */
.movie-calendar-info-stack {
	display: flex;
	flex-direction: column;
	gap: 4px;
	text-align: left;
}

.movie-calendar-info {
	padding: 6px 8px;
	border-radius: 4px;
	border-left: 3px solid transparent;
	transition: opacity 0.3s ease, border-color 0.3s ease, background-color 0.3s ease;
}

/* When a day has multiple films, dim the inactive ones and emphasize the active. */
.movie-calendar-info-stack.is-multi .movie-calendar-info {
	opacity: 0.45;
}

.movie-calendar-info-stack.is-multi .movie-calendar-info.is-active {
	opacity: 1;
	background: rgba(0, 0, 0, 0.03);
	border-left-color: #0073aa;
}

.movie-calendar-title {
	margin: 0 0 3px;
	font-size: 16px;
	line-height: 1.25;
}

.movie-calendar-name {
	font-size: 14px;
	color: #666;
	margin-bottom: 3px;
}

.movie-calendar-rating {
	color: #f5b50a;
	font-size: 14px;
	letter-spacing: 1px;
	margin-bottom: 3px;
}

/* ---------- Notes toggle ---------- */
.movie-calendar-notes-toggle {
	margin-top: 4px;
}

.mc-notes-btn {
	background: none;
	border: none;
	padding: 2px 0;
	margin: 0;
	color: #0073aa;
	cursor: pointer;
	font-weight: bold;
	font-size: 13px;
	line-height: 1.2;
	display: inline-flex;   /* shrink the hitbox to the text, not the full row */
	align-items: center;
	gap: 4px;
	width: auto;
}

.mc-notes-btn:hover {
	text-decoration: underline;
}

.mc-notes-content[hidden] {
	display: none;
}

.mc-notes-content {
	font-size: 13px;
	color: #444;
	margin-top: 5px;
	padding: 8px;
	background: #fff;
	border: 1px solid #eee;
	border-radius: 4px;
	text-align: left;
}

@media (max-width: 1024px) {
	.movie-calendar-grid-57602443 {
		grid-template-columns: repeat(3, 1fr) !important;
	}
}

@media (max-width: 767px) {
	.movie-calendar-grid-57602443 {
		grid-template-columns: repeat(2, 1fr) !important;
	}
}
