/* EPL Poll Hub - front end */
.eplph-hub, .eplph-poll {
	--purple: #38003c;
	--violet: #6b1fa8;
	--magenta: #e90052;
	--cyan: #04f5ff;
	--green: #00ff85;
	--yellow: #ffd23f;
	--ink: #1a0b2e;
	font-family: "Bricolage Grotesque", system-ui, -apple-system, "Segoe UI", sans-serif;
	box-sizing: border-box;
}
.eplph-hub *, .eplph-poll * { box-sizing: border-box; }

/* ---------- Poll ---------- */
.eplph-poll {
	--ca: #e90052; --cb: #04f5ff;
	margin: 0 0 2rem;
	padding: 1.25rem;
	border-radius: 22px;
	color: #fff;
	background:
		linear-gradient(115deg, var(--ca) 0 48%, transparent 48.2%),
		linear-gradient(115deg, transparent 0 51%, var(--cb) 51.2%),
		var(--purple);
	box-shadow: 0 14px 40px rgba(56, 0, 60, .35);
	position: relative;
	overflow: hidden;
}
.eplph-poll::before {
	content: ""; position: absolute; inset: 0;
	background: rgba(26, 11, 46, .55);
}
.eplph-poll > * { position: relative; }
.eplph-poll__top { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem; margin-bottom: 1rem; }
.eplph-live {
	display: inline-flex; align-items: center; gap: .4rem;
	background: var(--yellow); color: var(--ink);
	font-weight: 800; font-size: .8rem; padding: .3rem .7rem; border-radius: 999px;
}
.eplph-live i { width: .55rem; height: .55rem; border-radius: 50%; background: var(--magenta); animation: eplph-pulse 1.4s infinite; }
@keyframes eplph-pulse { 50% { opacity: .25; } }
.eplph-poll__q { margin: 0; color: #fff; font-size: clamp(1.2rem, 3.2vw, 1.8rem); font-weight: 800; line-height: 1.15; }
.eplph-poll__vote { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: .6rem; }
.eplph-btn {
	appearance: none; border: 3px solid #fff; cursor: pointer; color: #fff;
	border-radius: 16px; padding: 1rem .75rem; font: inherit; text-align: center;
	display: flex; flex-direction: column; gap: .15rem; min-height: 84px; justify-content: center;
	transition: transform .15s ease, box-shadow .15s ease;
}
.eplph-btn span { font-size: clamp(1.05rem, 3vw, 1.5rem); font-weight: 800; line-height: 1.1; }
.eplph-btn small { font-size: .78rem; opacity: .9; }
.eplph-btn--a { background: var(--ca); }
.eplph-btn--b { background: var(--cb); }
.eplph-btn:hover:not(:disabled) { transform: translateY(-3px); box-shadow: 0 8px 0 rgba(0, 0, 0, .35); }
.eplph-btn:focus-visible, .eplph-share a:focus-visible, .eplph-share button:focus-visible, .eplph-tabs button:focus-visible { outline: 3px solid var(--yellow); outline-offset: 3px; }
.eplph-btn.is-picked { box-shadow: 0 0 0 5px var(--yellow); }
.eplph-poll.is-voted .eplph-btn:not(.is-picked) { opacity: .6; }
.eplph-vs {
	width: 3rem; height: 3rem; border-radius: 50%; background: var(--yellow); color: var(--ink);
	display: grid; place-items: center; font-weight: 800; border: 3px solid var(--purple);
}
.eplph-bar { display: flex; height: 2.2rem; margin-top: 1rem; border-radius: 999px; overflow: hidden; border: 3px solid #fff; background: #fff; }
.eplph-bar__a, .eplph-bar__b { display: flex; align-items: center; padding: 0 .75rem; transition: width .6s ease; min-width: 2.6rem; }
.eplph-bar__a { background: var(--ca); }
.eplph-bar__b { background: var(--cb); justify-content: flex-end; }
.eplph-bar b { font-size: .95rem; }
.eplph-poll__meta { display: flex; justify-content: space-between; gap: .5rem; flex-wrap: wrap; margin: .6rem 0 0; font-size: .9rem; font-weight: 700; }
.eplph-total { color: var(--yellow); }
.eplph-msg { min-height: 1.3em; margin: .4rem 0 0; font-weight: 700; color: var(--green); }
.eplph-share { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: .5rem; }
.eplph-share a, .eplph-share button {
	appearance: none; cursor: pointer; text-decoration: none; font: inherit; font-weight: 800; font-size: .9rem;
	padding: .65rem 1.1rem; border-radius: 999px; border: 0;
}
.eplph-share__wa { background: #25d366; color: #05290f; }
.eplph-share__copy { background: #fff; color: var(--ink); }
.eplph-poll.is-compact { margin: 0; }

/* ---------- Hub ---------- */
.eplph-hub { color: var(--ink); max-width: 1100px; margin: 0 auto; }
.eplph-hero {
	display: grid; gap: 1.25rem; padding: clamp(1.25rem, 4vw, 2.5rem); border-radius: 28px; color: #fff;
	background: linear-gradient(135deg, var(--purple), var(--violet) 55%, var(--magenta));
	grid-template-columns: 1fr;
}
@media (min-width: 860px) { .eplph-hero { grid-template-columns: 5fr 7fr; align-items: center; } }
.eplph-hero__title h2 { margin: 0 0 .5rem; color: #fff; font-size: clamp(2.2rem, 6vw, 3.8rem); font-weight: 800; line-height: .95; letter-spacing: -.02em; }
.eplph-hero__title p { margin: 0; font-size: 1.1rem; color: #f3e8ff; max-width: 34ch; }
.eplph-tabs { display: flex; gap: .5rem; overflow-x: auto; padding: 1.25rem 0 .75rem; scrollbar-width: thin; }
.eplph-tabs button {
	appearance: none; cursor: pointer; white-space: nowrap; font: inherit; font-weight: 800; font-size: .95rem;
	padding: .7rem 1.2rem; border-radius: 999px; border: 3px solid var(--purple); background: #fff; color: var(--purple);
}
.eplph-tabs button:nth-child(2) { border-color: var(--magenta); color: var(--magenta); }
.eplph-tabs button:nth-child(3) { border-color: #0aa6ad; color: #0aa6ad; }
.eplph-tabs button:nth-child(4) { border-color: #d88a00; color: #a86800; }
.eplph-tabs button:nth-child(5) { border-color: var(--violet); color: var(--violet); }
.eplph-tabs button.is-active { background: var(--purple); color: #fff; border-color: var(--purple); }
.eplph-panel { display: none; padding-top: .5rem; }
.eplph-panel.is-active { display: block; }
.eplph-empty { padding: 1.5rem; border-radius: 16px; background: #f6edff; font-weight: 700; }

.eplph-grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); }
.eplph-card {
	display: flex; flex-direction: column; text-decoration: none; color: var(--ink); background: #fff;
	border: 3px solid var(--accent, var(--magenta)); border-radius: 18px; overflow: hidden;
	box-shadow: 6px 6px 0 var(--accent, var(--magenta)); transition: transform .15s ease;
}
.eplph-card:hover { transform: translate(-2px, -2px); }
.eplph-card img { width: 100%; height: auto; display: block; aspect-ratio: 1200/630; object-fit: cover; }
.eplph-card__t { padding: .8rem 1rem 1rem; font-weight: 800; line-height: 1.2; }

.eplph-day { margin: 1.5rem 0 .6rem; font-size: 1.25rem; font-weight: 800; color: var(--purple); }
.eplph-fixlist { display: grid; gap: .5rem; }
.eplph-fix {
	display: grid; grid-template-columns: 5.5rem 1fr auto 1fr; align-items: center; gap: .75rem;
	padding: .75rem 1rem; border-radius: 14px; background: #fff; border: 2px solid #e6d3fa;
}
.eplph-fix:nth-child(odd) { background: #fbf6ff; }
.eplph-fix__time { background: var(--magenta); color: #fff; border-radius: 10px; padding: .4rem .5rem; text-align: center; font-weight: 800; line-height: 1.1; }
.eplph-fix__time small { display: block; font-size: .65rem; opacity: .85; }
.eplph-fix__t { font-weight: 800; }
.eplph-fix__h { text-align: right; }
.eplph-fix b { color: var(--violet); }

.eplph-rank { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; counter-reset: r; }
.eplph-rank li {
	counter-increment: r; display: grid; grid-template-columns: 2rem 2.2rem 1fr auto; align-items: center; gap: .75rem;
	padding: .6rem 1rem; border-radius: 14px; background: #fff; border: 2px solid #d5f9f6;
}
.eplph-rank li::before { content: counter(r); font-weight: 800; font-size: 1.2rem; color: var(--magenta); }
.eplph-rank li:nth-child(-n+3) { background: linear-gradient(90deg, #fff7d6, #fff); border-color: var(--yellow); }
.eplph-rank img { width: 32px; height: 32px; object-fit: contain; }
.eplph-rank__n { font-weight: 800; }
.eplph-rank__n small, .eplph-rank__v small { display: block; font-weight: 600; opacity: .7; font-size: .75rem; }
.eplph-rank__v { text-align: center; font-size: 1.7rem; font-weight: 800; color: var(--purple); line-height: 1; }

.eplph-stad {
	padding: 1rem 1.1rem; border-radius: 18px; color: #fff; background: var(--accent, var(--purple));
	display: flex; flex-direction: column; gap: .15rem; min-height: 110px; position: relative; overflow: hidden;
}
.eplph-stad::after { content: ""; position: absolute; right: -30px; bottom: -30px; width: 110px; height: 110px; border-radius: 50%; background: rgba(255, 255, 255, .18); }
.eplph-stad b { font-size: 1.15rem; line-height: 1.15; text-shadow: 0 1px 2px rgba(0,0,0,.35); }
.eplph-stad span { font-weight: 700; text-shadow: 0 1px 2px rgba(0,0,0,.35); }
.eplph-stad em { font-style: normal; font-size: .85rem; margin-top: auto; background: rgba(0,0,0,.28); align-self: flex-start; padding: .15rem .6rem; border-radius: 999px; }

@media (max-width: 560px) {
	.eplph-poll__vote { grid-template-columns: 1fr 1fr; }
	.eplph-vs { display: none; }
	.eplph-fix { grid-template-columns: 4.6rem 1fr auto 1fr; gap: .4rem; padding: .6rem; font-size: .9rem; }
}
@media (prefers-reduced-motion: reduce) {
	.eplph-live i { animation: none; }
	.eplph-btn, .eplph-card, .eplph-bar__a, .eplph-bar__b { transition: none; }
}
