.public-events-page,
.public-event-detail {
	color: var(--av-text);
	background: #f6f8fb;
}

.events-hero {
	padding: 90px 0 58px;
	color: #ffffff;
	background: #24374a;
}

.events-hero-copy {
	max-width: 760px;
}

.events-kicker {
	margin: 0 0 12px;
	color: var(--av-amber);
	font-size: 13px;
	font-weight: 900;
	letter-spacing: 0;
	text-transform: uppercase;
}

.events-hero h1,
.event-detail-hero h1 {
	margin: 0 0 18px;
	font-size: 48px;
	font-weight: 900;
	line-height: 1.08;
}

.events-hero p,
.event-detail-copy p {
	max-width: 660px;
	margin: 0 0 26px;
	color: rgba(255, 255, 255, 0.84);
	font-size: 18px;
	line-height: 1.7;
}

.event-search {
	display: grid;
	grid-template-columns: 1fr 220px auto;
	gap: 12px;
	max-width: 900px;
	padding: 12px;
	background: #ffffff;
	border: 1px solid rgba(255, 255, 255, 0.36);
	border-radius: 8px;
	box-shadow: 0 24px 56px rgba(14, 28, 42, 0.28);
}

.event-search input,
.event-search select {
	width: 100%;
	min-height: 58px;
	padding: 0 18px;
	color: var(--av-text);
	font-size: 17px;
	border: 1px solid #cfd9e3;
	border-radius: 8px;
	outline: none;
}

.event-search input:focus,
.event-search select:focus {
	border-color: var(--av-primary);
	box-shadow: 0 0 0 4px rgba(21, 101, 216, 0.12);
}

.events-section {
	padding: 64px 0;
	background: #ffffff;
}

.events-trending-section,
.nominees-section {
	background: #f6f8fb;
}

.events-section-heading {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 18px;
	margin-bottom: 26px;
}

.events-section-heading h2 {
	margin: 0;
	font-size: 32px;
	font-weight: 900;
	line-height: 1.18;
}

.events-section-heading .events-kicker {
	color: var(--av-teal);
}

.event-card-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 22px;
}

.event-card {
	overflow: hidden;
	background: #ffffff;
	border: 1px solid var(--av-line);
	border-radius: 8px;
	box-shadow: 0 16px 38px rgba(23, 33, 47, 0.08);
}

.event-card-media {
	position: relative;
	display: block;
	aspect-ratio: 16 / 10;
	overflow: hidden;
	background: #22394f;
}

.event-card-media img,
.event-detail-media img,
.nominee-public-photo img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.event-card-fallback,
.event-detail-media span,
.nominee-public-photo span {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
	color: #ffffff;
	font-size: 52px;
	font-weight: 900;
	background: #2f9d8f;
}

.event-card-body {
	padding: 20px;
}

.event-card-meta,
.event-card-facts,
.category-public-card div {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.event-card-meta {
	margin-bottom: 12px;
}

.event-card-meta span,
.event-card-facts span,
.category-public-card span {
	padding: 6px 9px;
	color: #425267;
	font-size: 12px;
	font-weight: 800;
	background: #eef3f7;
	border-radius: 999px;
}

.event-card h3 {
	margin: 0 0 10px;
	font-size: 20px;
	font-weight: 900;
	line-height: 1.28;
}

.event-card h3 a {
	color: var(--av-text);
}

.event-card p,
.category-public-card p,
.nominee-public-card p {
	margin: 0 0 16px;
	color: var(--av-muted);
	line-height: 1.6;
}

.event-card-actions {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 10px;
	margin-top: 16px;
}

.event-card-actions .btn {
	width: 100%;
}

.events-empty {
	padding: 28px;
	background: #ffffff;
	border: 1px solid var(--av-line);
	border-radius: 8px;
}

.events-empty h3 {
	margin: 0 0 8px;
	font-size: 22px;
	font-weight: 900;
}

.events-empty p {
	margin: 0;
	color: var(--av-muted);
}

.voting-window-alert {
	margin-bottom: 20px;
	background: #fff8e8;
	border-color: #f6dfac;
}

.vote-now-btn[disabled] {
	opacity: 0.62;
	cursor: not-allowed;
	transform: none;
	box-shadow: none;
}

.event-detail-hero {
	padding: 72px 0;
	color: #ffffff;
	background: #17212f;
}

.event-detail-grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(340px, 500px);
	gap: 34px;
	align-items: center;
}

.event-detail-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
}

.event-detail-actions .btn-default {
	color: #ffffff;
	background: rgba(255, 255, 255, 0.1);
	border-color: rgba(255, 255, 255, 0.38);
}

.event-detail-media {
	aspect-ratio: 16 / 10;
	overflow: hidden;
	background: #2f9d8f;
	border: 1px solid rgba(255, 255, 255, 0.18);
	border-radius: 8px;
	box-shadow: 0 24px 58px rgba(0, 0, 0, 0.28);
}

.event-info-strip {
	display: grid;
	grid-template-columns: repeat(6, minmax(0, 1fr));
	gap: 14px;
	margin-bottom: 18px;
}

.event-info-strip div,
.category-public-card,
.nominee-public-card {
	background: #ffffff;
	border: 1px solid var(--av-line);
	border-radius: 8px;
	box-shadow: 0 12px 30px rgba(23, 33, 47, 0.07);
}

.event-info-strip div {
	padding: 18px;
}

.event-info-strip span {
	display: block;
	color: var(--av-muted);
	font-size: 12px;
	font-weight: 900;
	text-transform: uppercase;
}

.event-info-strip strong {
	display: block;
	margin-top: 6px;
	font-size: 20px;
}

.event-countdown-card {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	gap: 18px;
	align-items: center;
	margin-bottom: 42px;
	padding: 24px;
	color: #ffffff;
	background: #17212f;
	border: 1px solid rgba(255, 255, 255, 0.14);
	border-radius: 8px;
	box-shadow: 0 18px 44px rgba(23, 33, 47, 0.16);
}

.event-countdown-card .events-kicker {
	margin-bottom: 8px;
}

.event-countdown-card h2 {
	margin: 0;
	font-size: 28px;
	font-weight: 900;
}

.countdown-grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(74px, 1fr));
	gap: 10px;
}

.countdown-grid div {
	min-width: 74px;
	padding: 14px;
	text-align: center;
	background: rgba(255, 255, 255, 0.09);
	border: 1px solid rgba(255, 255, 255, 0.14);
	border-radius: 8px;
}

.countdown-grid strong {
	display: block;
	font-size: 28px;
	font-weight: 900;
	line-height: 1;
}

.countdown-grid span {
	display: block;
	margin-top: 7px;
	color: rgba(255, 255, 255, 0.72);
	font-size: 11px;
	font-weight: 900;
	text-transform: uppercase;
}

.event-countdown-card.is-ended {
	background: #5f6b7a;
}

.category-public-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 18px;
}

.category-public-card {
	padding: 22px;
}

.category-public-card h3,
.nominee-public-card h3 {
	margin: 0 0 9px;
	font-size: 20px;
	font-weight: 900;
}

.event-detail-bottom-actions {
	display: flex;
	justify-content: center;
	margin-top: 34px;
}

.nominee-public-grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 18px;
}

.nominee-filter-bar {
	display: grid;
	grid-template-columns: 280px minmax(0, 1fr);
	gap: 14px;
	align-items: end;
	margin-bottom: 22px;
	padding: 16px;
	background: #ffffff;
	border: 1px solid var(--av-line);
	border-radius: 8px;
	box-shadow: 0 12px 30px rgba(23, 33, 47, 0.07);
}

.nominee-filter-bar-large {
	grid-template-columns: 340px minmax(0, 1fr);
	gap: 18px;
	padding: 22px;
	margin-bottom: 30px;
}

.nominee-filter-bar .form-group {
	margin-bottom: 0;
}

.nominee-filter-bar label {
	margin-bottom: 10px;
	font-size: 15px;
}

.nominee-filter-bar .form-control {
	height: 58px;
	padding: 14px 16px;
	font-size: 17px;
	border-width: 2px;
}

.nominee-public-card {
	overflow: hidden;
}

.nominee-public-card > div:last-child {
	padding: 16px;
}

.nominee-public-card .btn {
	width: 100%;
	margin-top: 4px;
}

.nominee-filter-empty {
	display: none;
}

.nominee-public-photo {
	aspect-ratio: 1 / 1;
	background: #22394f;
}

.modal {
	position: fixed;
	inset: 0;
	z-index: 10000;
	display: none;
	overflow-y: auto;
	padding: 24px 12px;
	background: rgba(23, 33, 47, 0.72);
	outline: 0;
}

.modal[hidden] {
	display: none !important;
}

.modal.show {
	display: block !important;
}

.modal-open {
	overflow: hidden;
}

.modal-dialog {
	width: min(900px, calc(100% - 24px));
	margin: 28px auto;
}

.modal-dialog-centered {
	display: flex;
	align-items: center;
	min-height: calc(100vh - 56px);
}

.modal-content {
	width: 100%;
	overflow: hidden;
	background: #ffffff;
	border: 1px solid var(--av-line);
	border-radius: 8px;
	box-shadow: 0 30px 80px rgba(0, 0, 0, 0.3);
}

.modal-header {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 16px;
	padding: 22px 24px 14px;
	border-bottom: 1px solid var(--av-line);
}

.modal-title {
	margin: 0;
	font-size: 28px;
	font-weight: 900;
	line-height: 1.18;
}

.modal-header .events-kicker {
	margin-bottom: 6px;
	color: var(--av-teal);
}

.modal-body {
	padding: 24px;
}

.close.vote-modal-close {
	flex: 0 0 auto;
	width: 40px;
	height: 40px;
	padding: 0;
	color: var(--av-text);
	font-size: 30px;
	font-weight: 400;
	line-height: 1;
	background: #ffffff;
	border: 1px solid var(--av-line);
	border-radius: 8px;
	cursor: pointer;
}

.vote-modal-row {
	align-items: stretch;
}

.vote-modal-photo {
	height: 100%;
	min-height: 320px;
	max-height: 440px;
	overflow: hidden;
	background: #22394f;
	border-radius: 8px;
}

.vote-modal-photo img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.vote-modal-photo span {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
	color: #ffffff;
	font-size: 78px;
	font-weight: 900;
	background: #2f9d8f;
}

.vote-modal-form {
	height: 100%;
}

.vote-total-box {
	display: grid;
	grid-template-columns: 1fr auto;
	gap: 10px 16px;
	margin: 20px 0;
	padding: 18px;
	background: #f4f8fb;
	border: 1px solid var(--av-line);
	border-radius: 8px;
}

.vote-total-box span {
	color: var(--av-muted);
	font-weight: 800;
}

.vote-total-box strong {
	font-size: 20px;
	font-weight: 900;
}

.vote-modal-actions {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 10px;
}

.public-results-page .events-section {
	background: #f6f8fb;
}

.results-summary-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 16px;
	margin-bottom: 26px;
}

.results-summary-card,
.results-panel {
	background: #ffffff;
	border: 1px solid var(--av-line);
	border-radius: 8px;
	box-shadow: 0 12px 30px rgba(23, 33, 47, 0.07);
}

.results-summary-card {
	padding: 22px;
}

.results-summary-card span,
.public-result-main span,
.public-category-results span {
	display: block;
	color: var(--av-muted);
	font-size: 12px;
	font-weight: 900;
	text-transform: uppercase;
}

.results-summary-card strong {
	display: block;
	margin: 8px 0;
	font-size: 28px;
	font-weight: 900;
	line-height: 1.12;
}

.results-summary-card p {
	margin: 0;
	color: var(--av-muted);
}

.results-layout {
	display: grid;
	grid-template-columns: minmax(0, 1.45fr) minmax(300px, 0.55fr);
	gap: 22px;
	align-items: start;
}

.results-panel {
	padding: 22px;
}

.results-panel .events-section-heading {
	margin-bottom: 16px;
}

.public-result-groups,
.public-results-list,
.public-category-results {
	display: grid;
	gap: 10px;
}

.public-result-groups {
	gap: 18px;
}

.public-result-group {
	overflow: hidden;
	border: 1px solid var(--av-line);
	border-radius: 8px;
}

.public-result-group-heading {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 14px;
	padding: 16px;
	background: #f4f8fb;
	border-bottom: 1px solid var(--av-line);
}

.public-result-group-heading span {
	display: block;
	color: var(--av-muted);
	font-size: 12px;
	font-weight: 900;
	text-transform: uppercase;
}

.public-result-group-heading h3 {
	margin: 4px 0 0;
	font-size: 20px;
	font-weight: 900;
}

.public-result-group-heading strong {
	white-space: nowrap;
}

.public-result-group .public-results-list {
	padding: 12px;
}

.public-result-row {
	display: grid;
	grid-template-columns: 42px 58px minmax(0, 1fr) auto;
	gap: 12px;
	align-items: center;
	padding: 12px;
	background: #f8fbfd;
	border: 1px solid var(--av-line);
	border-radius: 8px;
}

.public-result-rank {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	color: #17212f;
	font-weight: 900;
	background: var(--av-amber);
	border-radius: 8px;
}

.public-result-avatar {
	width: 58px;
	height: 58px;
	overflow: hidden;
	background: #22394f;
	border-radius: 8px;
}

.public-result-avatar img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.public-result-avatar span {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
	color: #ffffff;
	font-weight: 900;
	background: #2f9d8f;
}

.public-result-main strong,
.public-category-results strong {
	display: block;
	font-weight: 900;
}

.public-result-row b {
	white-space: nowrap;
}

.public-category-results div {
	display: flex;
	justify-content: space-between;
	gap: 12px;
	padding: 14px;
	background: #f8fbfd;
	border: 1px solid var(--av-line);
	border-radius: 8px;
}

@media (max-width: 991px) {
	.event-card-grid,
	.category-public-grid,
	.results-summary-grid,
	.nominee-public-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.event-detail-grid,
	.results-layout {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 767px) {
	.events-hero,
	.event-detail-hero {
		padding: 54px 0 42px;
	}

	.events-hero h1,
	.event-detail-hero h1 {
		font-size: 34px;
	}

	.event-search,
	.events-section-heading,
	.event-info-strip,
	.results-summary-grid,
	.event-countdown-card {
		grid-template-columns: 1fr;
	}

	.countdown-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.events-section-heading {
		align-items: flex-start;
	}

	.event-card-grid,
	.category-public-grid,
	.nominee-public-grid {
		grid-template-columns: 1fr;
	}

	.nominee-filter-bar,
	.nominee-filter-bar-large {
		grid-template-columns: 1fr;
	}

	.event-card-actions {
		grid-template-columns: 1fr;
	}

	.modal {
		padding: 10px;
	}

	.modal-dialog,
	.modal-dialog-centered {
		display: block;
		width: 100%;
		min-height: 0;
		margin: 0 auto;
	}

	.modal-header,
	.modal-body {
		padding: 18px;
	}

	.vote-modal-photo {
		height: auto;
		min-height: 260px;
		max-height: 280px;
		margin-bottom: 18px;
	}

	.vote-modal-actions {
		grid-template-columns: 1fr;
	}

	.public-result-row {
		grid-template-columns: 38px 48px minmax(0, 1fr);
	}

	.public-result-row b {
		grid-column: 3;
	}

	.public-result-group-heading {
		align-items: flex-start;
		flex-direction: column;
	}
}
