.modul-pc-contest {
	--pc-gap: 1.5rem;
	margin: 1.5rem 0;
}

.modul-pc-honeypot {
	display: none !important;
	visibility: hidden !important;
	position: absolute !important;
	left: -9999px !important;
	height: 0 !important;
	width: 0 !important;
	opacity: 0 !important;
	pointer-events: none !important;
}

.pc-grid {
	display: grid;
	gap: var(--pc-gap);
	grid-template-columns: repeat(var(--pc-cols-mobile, 1), minmax(0, 1fr));
}

@media (min-width: 1025px) {
	.pc-grid {
		grid-template-columns: repeat(var(--pc-cols-desktop, 4), minmax(0, 1fr));
	}
}

.pc-card {
	background: #fff;
	border: 1px solid #e5e7eb;
	border-radius: 8px;
	overflow: hidden;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
	display: flex;
	flex-direction: column;
}

.pc-card__image-btn {
	display: block;
	width: 100%;
	padding: 0;
	border: none;
	background: none;
	cursor: zoom-in;
	line-height: 0;
}

.pc-card__image-btn:hover .pc-card__image {
	transform: scale(1.02);
}

.pc-card__image {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 4 / 3;
	object-fit: cover;
	transition: transform 0.2s ease;
}

.pc-card__body {
	padding: 1rem 1rem 1.1rem;
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
	flex: 1;
}

.pc-card__title {
	margin: 0;
	font-size: 1.1rem;
	line-height: 1.35;
	color: #111827;
}

.pc-card__description {
	margin: 0;
	font-size: 0.92rem;
	line-height: 1.5;
	color: #4b5563;
}

.pc-card__actions {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	flex-wrap: wrap;
	margin-top: auto;
	padding-top: 0.35rem;
}

.pc-vote-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0.55rem 1.1rem;
	border: none;
	border-radius: 8px;
	background: #ef4444;
	color: #fff;
	font: inherit;
	font-weight: 600;
	cursor: pointer;
	transition: background 0.15s ease, opacity 0.15s ease;
}

.pc-vote-btn:hover:not(.disabled):not(.is-loading) {
	background: #dc2626;
}

.pc-vote-btn.disabled,
.pc-vote-btn.is-loading {
	opacity: 0.55;
	cursor: not-allowed;
}

.pc-vote-btn.is-loading {
	cursor: wait;
}

.pc-bid-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0.55rem 1.1rem;
	border: none;
	border-radius: 8px;
	font: inherit;
	font-weight: 600;
	text-decoration: none;
	line-height: 1.2;
	cursor: pointer;
	transition: opacity 0.15s ease;
}

.pc-bid-btn:hover,
.pc-bid-btn:focus {
	opacity: 0.9;
	text-decoration: none;
}

.pc-heart {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	background: none;
	border: none;
	cursor: pointer;
	padding: 0;
	font: inherit;
	color: #374151;
	transition: transform 0.15s ease;
}

.pc-heart:hover:not(.disabled) {
	transform: scale(1.05);
}

.pc-heart.disabled {
	cursor: not-allowed;
	opacity: 0.55;
}

.pc-heart.disabled:not(.is-loading) {
	pointer-events: auto;
}

.pc-heart.is-loading {
	cursor: wait;
	opacity: 0.75;
	pointer-events: none;
}

.pc-heart__icon {
	fill: #9ca3af;
	transition: fill 0.2s ease;
}

.pc-heart.is-voted .pc-heart__icon {
	fill: #ef4444;
}

.pc-votes-static,
.pc-heart__count {
	margin: 0;
	font-size: 0.95rem;
}

.pc-status-msg {
	margin: 0;
	font-size: 0.8rem;
	color: #6b7280;
}

.modul-pc-message {
	margin-top: 1rem;
	padding: 0.75rem 1rem;
	border-radius: 6px;
}

.modul-pc-message--error {
	background: #fef2f2;
	color: #b91c1c;
}

.modul-pc-message--info {
	background: #eff6ff;
	color: #1d4ed8;
}

.modul-pc-message[hidden] {
	display: none !important;
}

.modul-pc-login-required {
	padding: 1rem;
	background: #fffbeb;
	border: 1px solid #fcd34d;
	border-radius: 6px;
}

.modul-pc-popup-overlay {
	position: fixed;
	inset: 0;
	z-index: 999999;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 1rem;
	background: rgba(15, 23, 42, 0.55);
}

.modul-pc-popup-overlay[hidden] {
	display: none !important;
}

.modul-pc-popup {
	width: min(100%, 420px);
	background: #fff;
	border-radius: 12px;
	padding: 1.5rem 1.5rem 1.25rem;
	box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
	text-align: center;
}

.modul-pc-popup__icon {
	font-size: 2rem;
	line-height: 1;
	margin-bottom: 0.75rem;
}

.modul-pc-popup__text {
	margin: 0 0 1.25rem;
	font-size: 1.05rem;
	line-height: 1.5;
	color: #111827;
}

.modul-pc-popup-overlay--error .modul-pc-popup__text {
	color: #b91c1c;
}

.modul-pc-popup__close {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 120px;
	padding: 0.65rem 1.25rem;
	border: none;
	border-radius: 8px;
	background: #ef4444;
	color: #fff;
	font: inherit;
	font-weight: 600;
	cursor: pointer;
}

.modul-pc-popup-overlay--info .modul-pc-popup__close {
	background: #2563eb;
}

.modul-pc-popup__close:hover {
	opacity: 0.92;
}

.modul-pc-contest--hide-votes .pc-heart__count,
.modul-pc-contest--hide-votes .pc-votes-static {
	display: none !important;
}

.modul-pc-lightbox {
	position: fixed;
	inset: 0;
	z-index: 999998;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 1.5rem;
	background: rgba(0, 0, 0, 0.88);
	overflow-y: auto;
}

.modul-pc-lightbox[hidden] {
	display: none !important;
}

.modul-pc-lightbox__panel {
	display: flex;
	flex-direction: column;
	align-items: center;
	max-width: min(100%, 900px);
	width: 100%;
	max-height: calc(100vh - 3rem);
}

.modul-pc-lightbox__img {
	max-width: 100%;
	max-height: min(70vh, 800px);
	width: auto;
	height: auto;
	object-fit: contain;
	border-radius: 8px;
	box-shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
}

.modul-pc-lightbox__panel:has(.modul-pc-lightbox__content:not([hidden])) .modul-pc-lightbox__img {
	border-radius: 8px 8px 0 0;
}

.modul-pc-lightbox__content {
	width: 100%;
	background: #fff;
	border-radius: 0 0 8px 8px;
	padding: 1rem 1.25rem 1.25rem;
	box-shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
	max-height: 30vh;
	overflow-y: auto;
}

.modul-pc-lightbox__title {
	margin: 0 0 0.5rem;
	font-size: 1.15rem;
	line-height: 1.35;
	color: #111827;
}

.modul-pc-lightbox__description {
	margin: 0;
	font-size: 0.95rem;
	line-height: 1.55;
	color: #374151;
}

.modul-pc-lightbox__description p {
	margin: 0 0 0.75rem;
}

.modul-pc-lightbox__description p:last-child {
	margin-bottom: 0;
}

.modul-pc-lightbox__description h1,
.modul-pc-lightbox__description h2,
.modul-pc-lightbox__description h3 {
	margin: 0 0 0.5rem;
	font-size: 1.1rem;
	line-height: 1.35;
	color: #111827;
}

.modul-pc-lightbox__description ul,
.modul-pc-lightbox__description ol {
	margin: 0 0 0.75rem 1.25rem;
	padding: 0;
}

.modul-pc-lightbox__description li {
	margin-bottom: 0.35rem;
}

.modul-pc-lightbox__description a {
	color: #2563eb;
}

.modul-pc-lightbox__title[hidden],
.modul-pc-lightbox__description[hidden],
.modul-pc-lightbox__content[hidden] {
	display: none !important;
}

.modul-pc-lightbox__close {
	position: absolute;
	top: 1rem;
	right: 1rem;
	width: 44px;
	height: 44px;
	border: none;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.15);
	color: #fff;
	font-size: 1.75rem;
	line-height: 1;
	cursor: pointer;
}

.modul-pc-lightbox__close:hover {
	background: rgba(255, 255, 255, 0.28);
}

.modul-pc-single-wrap {
	max-width: 720px;
	margin: 2rem auto;
	padding: 0 1rem;
}

.modul-pc-contest--single .modul-pc-single {
	display: block;
}

.modul-pc-contest--single .pc-card--single {
	max-width: 100%;
}

.modul-pc-contest--single .pc-card__image-wrap {
	line-height: 0;
	background: #f3f4f6;
}

.modul-pc-contest--single .pc-card__image--single {
	width: 100%;
	height: auto;
	max-height: 70vh;
	object-fit: contain;
}

.modul-pc-contest--single .pc-card__title {
	font-size: 1.75rem;
	margin: 0;
}

.modul-pc-contest--single .pc-card__description--full {
	font-size: 1rem;
	line-height: 1.6;
	color: #374151;
}

.modul-pc-contest--single .pc-card__description--full p {
	margin: 0 0 0.75rem;
}

.modul-pc-single-body {
	background: #f9fafb;
}
