/* ═══ Εργαλεία σύνταξης άρθρων ═══ */

/* ── YouTube: μικρογραφία → player ── */
.xyt { position: relative; margin: 28px 0; border-radius: 10px; overflow: hidden; background: #000; aspect-ratio: 16/9; }
.xyt-btn { position: absolute; inset: 0; width: 100%; height: 100%; padding: 0; margin: 0; border: 0; background: none; cursor: pointer; display: block; }
.xyt-btn img { width: 100%; height: 100%; object-fit: cover; display: block; margin: 0; transition: transform 0.4s ease, opacity 0.3s; }
.xyt-btn:hover img { transform: scale(1.03); opacity: 0.9; }
.xyt-btn:focus-visible { outline: 3px solid var(--accent); outline-offset: -3px; }
.xyt-play { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 84px; }
.xyt-play svg { width: 100%; height: auto; display: block; }
.xyt-play .bg { fill: rgba(18, 18, 18, 0.78); transition: fill 0.2s; }
.xyt-play .tri { fill: #fff; }
.xyt-btn:hover .xyt-play .bg { fill: #E100FF; }
.xyt iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* ── Spoiler ── */
.xsp { border: 1px solid var(--line); border-left: 4px solid var(--bad); border-radius: 10px; background: var(--bg-soft); margin: 24px 0; overflow: hidden; }
.xsp summary { display: flex; align-items: center; gap: 10px; padding: 13px 16px; cursor: pointer; list-style: none; font-size: 14px; font-weight: 700; }
.xsp summary::-webkit-details-marker { display: none; }
.xsp summary:focus-visible { outline: 3px solid var(--accent); outline-offset: -3px; }
.xsp-icon { flex: none; width: 22px; height: 22px; border-radius: 50%; background: var(--bad); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 800; }
.xsp-label { flex: 1; }
.xsp-cta { font-size: 12.5px; font-weight: 700; color: var(--accent); white-space: nowrap; }
.xsp-cta::after { content: "Δείξε"; }
.xsp[open] .xsp-cta::after { content: "Κρύψε"; }
.xsp-body { padding: 0 16px 14px; font-size: 15.5px; line-height: 1.6; }
.xsp-body p:first-child { margin-top: 0; }
.xsp-body p:last-child { margin-bottom: 0; }

/* ── Πίνακες σύγκρισης ── */
.xcmp-wrap { margin: 28px 0; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: var(--card); }
.xcmp-title { padding: 13px 16px; font-family: var(--font-display); font-size: 19px; font-weight: 800; border-bottom: 1px solid var(--line); background: var(--bg-soft); }
.xcmp-wrap > table, .xcmp-wrap.plain table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.xcmp-wrap { overflow-x: auto; }
.xcmp thead th, .xcmp-wrap.plain th { background: var(--bg-soft); font-size: 11.5px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-2); text-align: left; padding: 11px 14px; white-space: nowrap; }
.xcmp tbody th { text-align: left; font-weight: 700; padding: 11px 14px; background: var(--bg-soft); position: sticky; left: 0; }
.xcmp td, .xcmp-wrap.plain td { padding: 11px 14px; border-top: 1px solid var(--line); vertical-align: middle; }
.xcmp tbody tr th { border-top: 1px solid var(--line); }
.xcmp .yes { color: var(--score); font-weight: 800; font-size: 16px; }
.xcmp .no { color: var(--bad); font-weight: 800; font-size: 16px; }

@media (max-width: 600px) {
	.xyt-play { width: 62px; }
	.xcmp tbody th { position: static; }
}
@media (prefers-reduced-motion: reduce) {
	.xyt-btn img, .xyt-btn:hover img { transition: none; transform: none; }
}
