/* Μηνιαία Ανασκόπηση Δήμου — front-end
   Το πλαίσιο κληρονομεί τυπογραφία από το θέμα· ρυθμίζεται με CSS variables. */

.dor-mr {
	--dor-mr-accent: #0b5fa5;
	--dor-mr-radius: 10px;
	--dor-mr-gap: 0.75rem;
	--dor-mr-surface: #0d1117;
	position: relative;
	margin: 1.5rem 0;
	width: 100%;
	box-sizing: border-box;
}

.dor-mr *,
.dor-mr *::before,
.dor-mr *::after {
	box-sizing: border-box;
}

/* Ετικέτα ---------------------------------------------------------------- */
.dor-mr__badge {
	display: flex;
	align-items: center;
	gap: 0.5em;
	margin: 0 0 var(--dor-mr-gap);
	font-size: 0.8125rem;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--dor-mr-accent);
	line-height: 1.3;
}

.dor-mr__dot {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: var(--dor-mr-accent);
	flex: 0 0 8px;
}

/* Πλαίσιο βίντεο --------------------------------------------------------- */
.dor-mr__frame {
	position: relative;
	overflow: hidden;
	border-radius: var(--dor-mr-radius);
	background: var(--dor-mr-surface);
	box-shadow: 0 1px 2px rgba(15, 23, 42, 0.08), 0 8px 24px rgba(15, 23, 42, 0.10);
	aspect-ratio: 16 / 9;
	margin-inline: auto;
}

.dor-mr--9-16 .dor-mr__frame { aspect-ratio: 9 / 16; max-width: 420px; }
.dor-mr--1-1  .dor-mr__frame { aspect-ratio: 1 / 1;  max-width: 560px; }
.dor-mr--4-5  .dor-mr__frame { aspect-ratio: 4 / 5;  max-width: 480px; }

/* Fallback για browsers χωρίς aspect-ratio */
@supports not (aspect-ratio: 16 / 9) {
	.dor-mr__frame { height: 0; padding-top: 56.25%; }
	.dor-mr--9-16 .dor-mr__frame { padding-top: 177.78%; }
	.dor-mr--1-1  .dor-mr__frame { padding-top: 100%; }
	.dor-mr--4-5  .dor-mr__frame { padding-top: 125%; }
}

.dor-mr__media,
.dor-mr__embed,
.dor-mr__embed iframe,
.dor-mr__poster {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	border: 0;
	display: block;
}

.dor-mr__media,
.dor-mr__poster {
	object-fit: cover;
}

.dor-mr--16-9 .dor-mr__media { object-fit: contain; }

/* Κουμπί αναπαραγωγής (facade για YouTube/Vimeo) ------------------------- */
.dor-mr__play {
	position: absolute;
	inset: 0;
	margin: auto;
	width: 68px;
	height: 68px;
	display: grid;
	place-items: center;
	border: 0;
	border-radius: 50%;
	background: rgba(13, 17, 23, 0.72);
	color: #fff;
	cursor: pointer;
	transition: transform 0.15s ease, background-color 0.15s ease;
}

.dor-mr__play:hover,
.dor-mr__play:focus-visible {
	background: var(--dor-mr-accent);
	transform: scale(1.06);
}

.dor-mr__play svg {
	width: 34px;
	height: 34px;
	fill: currentColor;
}

/* Κουμπί ήχου ------------------------------------------------------------ */
.dor-mr__sound {
	position: absolute;
	right: 0.75rem;
	bottom: 0.75rem;
	z-index: 3;
	display: inline-flex;
	align-items: center;
	gap: 0.4em;
	padding: 0.35rem 0.7rem;
	border: 0;
	border-radius: 999px;
	background: rgba(13, 17, 23, 0.68);
	color: #fff;
	font-size: 0.8125rem;
	line-height: 1;
	cursor: pointer;
	backdrop-filter: blur(4px);
}

.dor-mr__sound:hover,
.dor-mr__sound:focus-visible { background: var(--dor-mr-accent); }

.dor-mr__sound[aria-pressed="false"] .dor-mr__sound-on::before { content: ""; }

/* Όταν εμφανίζονται controls του video, ανεβάζουμε λίγο το κουμπί */
.dor-mr__media[controls] ~ .dor-mr__sound { bottom: 3.25rem; }

/* Μετα-στοιχεία ---------------------------------------------------------- */
.dor-mr__meta {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	justify-content: space-between;
	gap: 0.5rem 1rem;
	margin-top: var(--dor-mr-gap);
}

.dor-mr__title {
	margin: 0;
	font-size: 1.05rem;
	line-height: 1.35;
}

.dor-mr__title a { text-decoration: none; color: inherit; }
.dor-mr__title a:hover { text-decoration: underline; }

.dor-mr__archive {
	font-size: 0.875rem;
	color: var(--dor-mr-accent);
	text-decoration: none;
	white-space: nowrap;
}

.dor-mr__archive:hover { text-decoration: underline; }

/* Κατάσταση φόρτωσης / κενό --------------------------------------------- */
.dor-mr--empty {
	padding: 1rem 1.25rem;
	border: 1px dashed #c3c7cf;
	border-radius: var(--dor-mr-radius);
	color: #50575e;
	font-size: 0.9rem;
	background: #fbfbfc;
}

.dor-mr-autoinsert[hidden] { display: none; }

/* Προσβασιμότητα --------------------------------------------------------- */
.dor-mr .screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.dor-mr :focus-visible {
	outline: 3px solid var(--dor-mr-accent);
	outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
	.dor-mr__play { transition: none; }
}

@media (max-width: 600px) {
	.dor-mr__meta { flex-direction: column; align-items: flex-start; }
}
