/*
 * Figma Footer
 * Desktop 1:148 bg #2a2a2a · 1512×550 · ink #f1f1f1
 * Nav/Stream 1:150–1:151 Futura 33/40
 * Legal 1:308–310 Inter 14/20 · Social 1:149
 * Logos AM + Approved · “Play more music from” + wordmark
 * Mobile 1:690 stacked · centered display links · legal|social row
 */

.elementor-section.atrin-footer-section,
.elementor-section.atrin-footer-section > .elementor-container,
.elementor-section.atrin-footer-section > .elementor-container > .elementor-column,
.elementor-section.atrin-footer-section > .elementor-container > .elementor-column > .elementor-widget-wrap,
.elementor-section.atrin-footer-section .elementor-widget-atrin_footer,
.elementor-section.atrin-footer-section .elementor-widget-container,
.elementor-section.Last-screen-section.atrin-footer-section,
.elementor-section.Last-screen-section.atrin-footer-section > .elementor-container,
.elementor-section.Last-screen-section.atrin-footer-section > .elementor-container > .elementor-column,
.elementor-section.Last-screen-section.atrin-footer-section > .elementor-container > .elementor-column > .elementor-widget-wrap {
	max-width: none !important;
	min-height: 0 !important;
	height: auto !important;
	margin: 0 !important;
	padding: 0 !important;
	align-items: stretch !important;
	background: transparent !important;
	background-image: none !important;
}

.elementor-section.atrin-footer-section > .elementor-container,
.elementor-section.Last-screen-section.atrin-footer-section > .elementor-container {
	display: block !important;
}

/* Keep footer inside the viewport — long DE nav must not expand section width */
.elementor-section.atrin-footer-section,
.elementor-section.Last-screen-section.atrin-footer-section,
.elementor-section.atrin-footer-section .elementor-container,
.elementor-section.atrin-footer-section .elementor-column,
.elementor-section.atrin-footer-section .elementor-widget-wrap,
.elementor-widget-atrin_footer,
.elementor-widget-atrin_footer .elementor-widget-container {
	width: 100% !important;
	max-width: 100% !important;
	box-sizing: border-box !important;
}

/* Cookie banner must not sit in document flow under the footer (extra bottom gap) */
body .cc-window.cc-banner {
	position: fixed !important;
	left: 0 !important;
	right: 0 !important;
	bottom: 0 !important;
	top: auto !important;
	z-index: 100000 !important;
	width: 100% !important;
	margin: 0 !important;
}


.atrin-footer {
	--atrin-footer-bg: #2a2a2a;
	--atrin-footer-ink: #f1f1f1;
	--atrin-footer-font: 'Inter', Helvetica, Arial, sans-serif;
	--atrin-footer-display: Futura, 'Futura PT', 'Century Gothic', 'itc-avant-garde-gothic-pro', sans-serif;
	--atrin-frame: 1512;

	box-sizing: border-box;
	position: relative;
	z-index: 1;
	width: 100%;
	max-width: 100%;
	margin: 0;
	/* Figma 1:835: ~78px under social baseline; extra clears fixed cookie bar */
	padding: calc(42 * var(--atrin-u)) 0 calc(72 * var(--atrin-u));
	background: var(--atrin-footer-bg);
	color: var(--atrin-footer-ink);
	font-family: var(--atrin-footer-font);
	/* Wordmark / play line must not be clipped on the right */
	overflow-x: visible;
	overflow-y: visible;
}

.atrin-footer *,
.atrin-footer *::before,
.atrin-footer *::after {
	box-sizing: border-box;
}

.atrin-footer__inner {
	box-sizing: border-box;
	width: 100%;
	max-width: none; /* Figma grid: full-bleed like hero/events */
	min-height: calc(480 * var(--atrin-u));
	margin: 0;
	padding: 0 var(--atrin-gutter-x);
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	gap: calc(48 * var(--atrin-u));
}

.atrin-footer__top {
	display: flex;
	align-items: flex-start;
	width: 100%;
	min-width: 0;
	gap: 0;
}

.atrin-footer__col--nav {
	flex: 0 0 auto;
	margin-right: calc(111 * var(--atrin-u)); /* Figma: stream x393 − nav end (20+262) */
	min-width: 0;
}

.atrin-footer__col--stream {
	flex: 0 0 auto;
	min-width: 0;
}

.atrin-footer__col--legal {
	flex: 0 0 auto;
	/* Desktop position set in ≥992 media — Figma x1015, not flush to logos */
	margin-left: 0;
	margin-right: 0;
	width: auto;
	min-width: calc(84 * var(--atrin-u));
}

.atrin-footer__col--legal .atrin-footer__list--meta {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 0;
}

.atrin-footer__col--legal .atrin-footer__item {
	margin: 0;
	padding: 0;
	line-height: 0;
}

.atrin-footer__col--legal .atrin-footer__link {
	display: block;
	font-family: var(--atrin-footer-font) !important;
	font-weight: 400 !important;
	font-size: calc(14 * var(--atrin-u)) !important;
	line-height: calc(20 * var(--atrin-u)) !important;
	letter-spacing: 0;
	text-transform: none !important;
	color: var(--atrin-footer-ink) !important;
	text-decoration: none !important;
	white-space: nowrap;
}

.atrin-footer__col--marks {
	flex: 0 0 auto;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: flex-start;
	gap: 0;
	width: calc(103 * var(--atrin-u));
	margin-left: auto; /* keep logos on the right edge (Figma x1389) */
}

.atrin-footer__logos {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: flex-start;
	gap: 16px;
	width: 100%;
}

.atrin-footer__list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.atrin-footer__list--display {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 0;
}

.atrin-footer__list--display .atrin-footer__item {
	margin: 0;
	padding: 0;
	line-height: calc(40 * var(--atrin-u));
}

.atrin-footer__list--display .atrin-footer__link {
	font-family: var(--atrin-footer-display);
	font-weight: 500;
	font-size: calc(33 * var(--atrin-u));
	line-height: calc(40 * var(--atrin-u));
	color: var(--atrin-footer-ink) !important;
	text-decoration: none !important;
	text-transform: none !important;
	text-rendering: geometricPrecision;
	-webkit-font-smoothing: antialiased;
	white-space: nowrap;
}

.atrin-footer__list--meta .atrin-footer__link {
	font-family: var(--atrin-footer-font);
	font-weight: 400;
	font-size: calc(14 * var(--atrin-u));
	line-height: calc(20 * var(--atrin-u));
	color: var(--atrin-footer-ink) !important;
	text-decoration: none !important;
	text-transform: none;
}

.atrin-footer__link {
	display: inline-block;
	transition: opacity 0.2s ease;
}

.atrin-footer__link:hover,
.atrin-footer__link:focus-visible {
	opacity: 0.65;
	outline: none;
}

.atrin-footer__link.is-active,
.atrin-footer__link[aria-current='true'] {
	opacity: 1;
	font-weight: 600;
}

.atrin-footer__list--display .atrin-footer__link.is-active,
.atrin-footer__list--display .atrin-footer__link[aria-current='true'] {
	font-weight: 500;
}

.atrin-footer__am {
	display: block;
	width: 103px;
	height: auto;
	margin-left: auto;
	margin-right: auto;
}

.atrin-footer__approved {
	display: block;
	width: 68px;
	height: auto;
	margin-left: auto;
	margin-right: auto;
}

.atrin-footer__bottom {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: calc(24 * var(--atrin-u));
	width: 100%;
	min-width: 0;
}

.atrin-footer__list--social {
	display: flex;
	flex-wrap: nowrap;
	align-items: center;
	gap: 0 calc(10 * var(--atrin-u));
	margin: 0;
	padding: 0;
	list-style: none;
}

.atrin-footer__list--social .atrin-footer__item {
	margin: 0;
	padding: 0;
	line-height: calc(20 * var(--atrin-u));
}

.atrin-footer__list--social .atrin-footer__link {
	font-family: var(--atrin-footer-font);
	font-weight: 400;
	font-size: calc(14 * var(--atrin-u));
	line-height: calc(20 * var(--atrin-u));
	color: var(--atrin-footer-ink) !important;
	text-decoration: none !important;
	white-space: nowrap;
}

.atrin-footer__sep {
	font-family: var(--atrin-footer-font);
	font-size: calc(14 * var(--atrin-u));
	line-height: calc(20 * var(--atrin-u));
	opacity: 0.7;
	user-select: none;
}

.atrin-footer__brand {
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	gap: calc(8 * var(--atrin-u));
	/* Figma brand block ~476 — do not flex-shrink under the wordmark */
	flex: 0 0 auto;
	width: calc(476 * var(--atrin-u));
	max-width: calc(476 * var(--atrin-u));
	min-width: 0;
}

.atrin-footer__play {
	margin: 0;
	padding: 0;
	font-family: var(--atrin-footer-display);
	font-weight: 500;
	font-size: calc(23 * var(--atrin-u));
	line-height: calc(40 * var(--atrin-u));
	color: var(--atrin-footer-ink);
	text-align: right;
	white-space: nowrap;
}

.atrin-footer__wordmark {
	display: block;
	width: 100%;
	max-width: 100%;
	height: auto;
}

/* Mobile duplicate social — desktop hidden */
.atrin-footer__social-mobile {
	display: none;
}

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

/* Desktop ≥992 — pin legal to Figma x1015 (1:308–310) */
@media (min-width: 992px) {
	.atrin-footer__inner {
		position: relative;
	}

	.atrin-footer__col--legal {
		position: absolute;
		/* Figma legal block @ frame x1015 (absolute vs full-bleed inner) */
		left: calc(1015 * var(--atrin-u));
		top: 0;
		right: auto;
		margin: 0;
		width: auto;
		min-width: calc(84 * var(--atrin-u));
		z-index: 1;
	}
}

/* Mid desktop — keep proportions via --atrin-u (no competing left/right) */
@media (max-width: 1511px) and (min-width: 992px) {
	.atrin-footer {
		padding: calc(42 * var(--atrin-u)) 0 calc(72 * var(--atrin-u));
	}

	.atrin-footer__col--nav {
		margin-right: calc(111 * var(--atrin-u));
	}

	.atrin-footer__col--legal {
		right: auto;
	}
}

/* Mobile — Figma 1:690 · bg stays #2a2a2a gray · logos full white (not muted) */
@media (max-width: 991px) {
	.atrin-footer {
		/* Extend under iOS Safari floating address bar */
		padding: 40px 0 calc(21px + env(safe-area-inset-bottom, 0px));
		background: #2a2a2a;
		--atrin-footer-bg: #2a2a2a;
		--atrin-footer-ink: #f1f1f1;
	}

	.atrin-footer__inner {
		min-height: 0;
		padding: 0 10px;
		gap: 39px;
		position: relative;
	}

	.atrin-footer__top {
		display: flex;
		flex-direction: column;
		align-items: stretch;
		gap: 40px;
	}

	.atrin-footer__col--nav,
	.atrin-footer__col--stream {
		width: 100%;
	}

	.atrin-footer__list--display {
		text-align: center;
		align-items: center;
	}

	.atrin-footer__list--display .atrin-footer__link {
		width: 100%;
		text-align: center;
		font-size: 33px;
		line-height: 40px;
	}

	/* Legal left + social right (Figma 1:695) */
	.atrin-footer__col--legal {
		position: absolute;
		/* placed via mobile meta row below */
		display: none;
	}

	.atrin-footer__col--marks {
		display: none; /* repositioned in flow via order tricks — use dedicated mobile block */
	}

	/* Rebuild mobile order with CSS grid on inner */
	.atrin-footer__inner {
		display: grid;
		grid-template-columns: 1fr 1fr;
		grid-template-areas:
			'nav nav'
			'stream stream'
			'legal socialm'
			'marks marks'
			'brand brand';
		row-gap: 39px;
		column-gap: 0;
	}

	.atrin-footer__top {
		display: contents;
	}

	.atrin-footer__col--nav {
		grid-area: nav;
	}

	.atrin-footer__col--stream {
		grid-area: stream;
	}

	.atrin-footer__col--legal {
		display: block;
		grid-area: legal;
		justify-self: start;
		position: static;
		left: auto;
		right: auto;
		width: auto;
		margin: 0;
	}

	.atrin-footer__col--marks {
		display: flex;
		flex-direction: row;
		align-items: center;
		justify-content: center;
		grid-area: marks;
		width: 100%;
		max-width: 320px;
		margin: 0 auto;
		gap: 0;
	}

	.atrin-footer__logos {
		flex-direction: row;
		align-items: center;
		justify-content: space-between;
		width: 100%;
		gap: 48px;
	}

	.atrin-footer__am {
		width: 80px;
		margin: 0;
		/* Figma 1:690 — solid white marks on gray #2a2a2a (not muted gray) */
		opacity: 1 !important;
		filter: none !important;
	}

	.atrin-footer__approved {
		width: 57px;
		margin: 0;
		opacity: 1 !important;
		filter: none !important;
	}

	.atrin-footer__wordmark {
		opacity: 1 !important;
		filter: none !important;
	}

	.atrin-footer__am img,
	.atrin-footer__approved img,
	.atrin-footer__wordmark img {
		opacity: 1 !important;
		filter: none !important;
	}

	.atrin-footer__bottom {
		display: contents;
	}

	.atrin-footer__social {
		display: none;
	}

	.atrin-footer__social-mobile {
		display: block;
		grid-area: socialm;
		justify-self: end;
		text-align: right;
	}

	.atrin-footer__list--social-m {
		text-align: right;
	}

	.atrin-footer__list--social-m .atrin-footer__link {
		display: block;
		text-align: right;
	}

	.atrin-footer__brand {
		grid-area: brand;
		align-items: stretch;
		max-width: none;
		width: 100%;
	}

	.atrin-footer__play {
		text-align: right;
		font-size: 17.764px;
		line-height: 30.895px;
		width: 100%;
		padding-right: 0;
	}

	.atrin-footer__wordmark {
		width: 100%;
		max-width: none;
	}
}


/* Elementor editor/preview: keep footer section + widget visible in the canvas */
.elementor-editor-active .elementor-section.atrin-footer-section,
.elementor-editor-preview .elementor-section.atrin-footer-section,
.elementor-editor-active .elementor-section.Last-screen-section,
.elementor-editor-preview .elementor-section.Last-screen-section,
.elementor-editor-active .elementor-widget-atrin_footer,
.elementor-editor-preview .elementor-widget-atrin_footer,
.elementor-editor-active .elementor-widget-atrin_footer .elementor-widget-container,
.elementor-editor-preview .elementor-widget-atrin_footer .elementor-widget-container,
.elementor-editor-active .atrin-footer,
.elementor-editor-preview .atrin-footer {
	display: block !important;
	opacity: 1 !important;
	visibility: visible !important;
	width: 100% !important;
	max-width: 100% !important;
	min-height: 0 !important;
	height: auto !important;
	overflow: visible !important;
	transform: none !important;
	position: relative !important;
}


