/* Louder FM theme styles. Design tokens (colors/fonts) come in as CSS custom
   properties from inc/customizer.php (see wp_head output), so this file
   reads var(--louderfm-*) rather than hardcoding the palette. */

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

html { -webkit-text-size-adjust: 100%; }

body {
	margin: 0;
	background: var( --louderfm-bg );
	color: var( --louderfm-text );
	font-family: var( --louderfm-font-body );
	line-height: 1.5;
	-webkit-font-smoothing: antialiased;
	overflow-x: hidden;
}

a { color: inherit; }

img { max-width: 100%; display: block; }

button { font-family: inherit; }

.lfm-content { display: block; }

/* ---- Header / nav ------------------------------------------------------ */

.lfm-header {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding: clamp( 14px, 3vw, 28px ) clamp( 18px, 4vw, 56px );
	border-bottom: 1px solid rgba( 245, 244, 240, .1 );
}

.lfm-logo {
	display: flex;
	align-items: center;
	gap: 12px;
	text-decoration: none;
	cursor: pointer;
}

.lfm-logo-mark {
	width: 30px;
	height: 30px;
	border-radius: 50%;
	flex: none;
	transform: rotate( 45deg );
	background-image: conic-gradient( var( --louderfm-text ) 90deg, var( --louderfm-bavaria-blue ) 90deg 180deg, var( --louderfm-text ) 180deg 270deg, var( --louderfm-bavaria-blue ) 270deg );
	background-size: 10px 10px;
	box-shadow: 0 0 0 2px var( --louderfm-text );
}

.lfm-logo-word {
	font-family: var( --louderfm-font-display );
	font-size: 19px;
	letter-spacing: 1px;
	line-height: 1;
	text-transform: uppercase;
}

.lfm-nav {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: clamp( 16px, 3vw, 40px );
	font-size: 14px;
	font-weight: 600;
	letter-spacing: .5px;
	text-transform: uppercase;
}

.lfm-nav-link {
	color: rgba( 245, 244, 240, .6 );
	text-decoration: none;
	cursor: pointer;
}
.lfm-nav-link.is-active { color: var( --louderfm-text ); }

.lfm-pill {
	display: flex;
	align-items: center;
	gap: 8px;
	background: var( --louderfm-accent );
	color: var( --louderfm-bg );
	padding: 10px 18px;
	border-radius: 999px;
	font-weight: 800;
	white-space: nowrap;
	text-decoration: none;
	cursor: pointer;
}

.lfm-pill-dot, .lfm-dot {
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: var( --louderfm-bg );
	flex: none;
}
.lfm-nowplaying-label .lfm-dot {
	background: var( --louderfm-accent );
	box-shadow: 0 0 0 4px color-mix( in srgb, var( --louderfm-accent ) 18%, transparent );
}
.lfm-dot--live { background: var( --louderfm-live-red ); }

/* ---- Live video banner -------------------------------------------------- */

.lfm-live-banner-wrap { margin: clamp( 18px, 3vw, 40px ) clamp( 18px, 4vw, 56px ) 14px; }

.lfm-live-banner {
	position: relative;
	border: 2px solid var( --louderfm-accent );
	border-radius: 10px;
	overflow: hidden;
	background: #000;
}

.lfm-live-player { width: 100%; aspect-ratio: 16 / 9; display: block; }

.lfm-live-badge {
	position: absolute;
	top: 16px;
	left: 16px;
	z-index: 2;
	display: flex;
	align-items: center;
	gap: 8px;
	background: rgba( 0, 0, 0, .55 );
	padding: 7px 12px;
	border-radius: 999px;
	font-size: 11px;
	font-weight: 800;
	letter-spacing: 1px;
	text-transform: uppercase;
	pointer-events: none;
}

.lfm-live-caption {
	margin-top: 10px;
	display: flex;
	flex-wrap: wrap;
	gap: 4px 10px;
	align-items: baseline;
}
.lfm-live-caption-title { font-size: clamp( 13px, 2vw, 16px ); font-weight: 700; }
.lfm-live-caption-sub { font-size: clamp( 11px, 1.6vw, 13px ); color: var( --louderfm-text-muted ); }

.lfm-audio-links {
	margin: 0 clamp( 18px, 4vw, 56px ) clamp( 40px, 6vw, 90px );
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px;
	font-size: 13px;
	color: var( --louderfm-text-muted );
}
.lfm-audio-links a { color: var( --louderfm-accent ); font-weight: 700; text-decoration: none; cursor: pointer; }
.lfm-audio-links-sep { opacity: .4; }

/* ---- "Jetzt läuft" widget + timeline ------------------------------------ */

.lfm-nowplaying {
	margin: 0 clamp( 18px, 4vw, 56px ) clamp( 40px, 6vw, 90px );
	border-radius: 12px;
	background: rgba( 240, 180, 41, .12 );
	background: color-mix( in srgb, var( --louderfm-accent ) 12%, transparent );
	padding: 20px 24px 24px;
}
.lfm-programm-days + .lfm-nowplaying { margin: 20px clamp( 18px, 4vw, 56px ) 0; padding: 18px 22px; }

.lfm-nowplaying-head {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 18px;
	cursor: pointer;
	text-decoration: none;
	color: inherit;
}
.lfm-nowplaying-info { flex: 1 1 240px; }
.lfm-nowplaying-label {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 11px;
	font-weight: 800;
	letter-spacing: 1px;
	color: var( --louderfm-accent );
	text-transform: uppercase;
}
.lfm-nowplaying-title {
	font-family: var( --louderfm-font-display );
	font-weight: 800;
	font-size: clamp( 19px, 2.6vw, 22px );
	margin-top: 6px;
	color: var( --louderfm-accent );
	text-transform: uppercase;
}
.lfm-nowplaying-meta { font-size: 13px; color: var( --louderfm-text-muted ); margin-top: 3px; }
.lfm-nowplaying-cta {
	font-size: 13px;
	font-weight: 700;
	color: var( --louderfm-accent );
	text-transform: uppercase;
	letter-spacing: .5px;
	white-space: nowrap;
}

.lfm-timeline { margin-top: 22px; overflow-x: auto; }
.lfm-timeline-inner { min-width: 640px; }

.lfm-timeline-header {
	position: relative;
	height: 18px;
	margin-left: 90px;
	border-bottom: 1px solid rgba( 245, 244, 240, .15 );
	padding-bottom: 8px;
}
.lfm-timeline-tick { position: absolute; top: 0; font-size: 11.5px; color: rgba( 245, 244, 240, .45 ); white-space: nowrap; }

.lfm-timeline-row { display: flex; align-items: center; padding: 12px 0; }
.lfm-timeline-row-label { flex: 0 0 90px; font-size: 12px; color: var( --louderfm-text-muted ); }
.lfm-timeline-track {
	flex: 1;
	position: relative;
	height: 44px;
	background: var( --louderfm-card-bg );
	border-radius: 8px;
	overflow: hidden;
	display: flex;
}
.lfm-timeline-seg {
	flex: none;
	border-left: 1px solid var( --louderfm-bg );
	display: flex;
	align-items: center;
	padding: 0 10px;
	overflow: hidden;
	font-weight: 700;
	font-size: 12px;
	color: var( --louderfm-text );
	white-space: nowrap;
}
.lfm-timeline-seg:first-child { border-left: none; }
.lfm-timeline-seg span { overflow: hidden; text-overflow: ellipsis; }
.lfm-timeline-seg.is-current { background: var( --louderfm-accent ); color: var( --louderfm-bg ); font-weight: 800; }
.lfm-timeline-now-line { position: absolute; top: -6px; bottom: -6px; width: 2px; background: #fff; }
.lfm-timeline-now-label { margin-left: 90px; font-size: 11px; color: rgba( 245, 244, 240, .45 ); margin-top: -4px; }
.lfm-timeline-empty { font-size: 13px; color: var( --louderfm-text-muted ); padding: 10px 0; }

/* ---- Section headers ----------------------------------------------------- */

.lfm-section { padding: 0 clamp( 18px, 4vw, 56px ) clamp( 50px, 7vw, 90px ); }
.lfm-section-head {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	justify-content: space-between;
	gap: 10px;
	margin-bottom: clamp( 20px, 3vw, 32px );
}
.lfm-section-title { font-family: var( --louderfm-font-display ); font-size: clamp( 28px, 4.5vw, 38px ); text-transform: uppercase; margin: 0; }
.lfm-section-link { font-size: 14px; font-weight: 700; color: var( --louderfm-accent ); text-transform: uppercase; letter-spacing: .5px; text-decoration: none; cursor: pointer; white-space: nowrap; }

.lfm-page-head { padding: clamp( 40px, 6vw, 64px ) clamp( 18px, 4vw, 56px ) 10px; }
.lfm-page-title { font-family: var( --louderfm-font-display ); font-size: clamp( 38px, 7vw, 56px ); text-transform: uppercase; margin: 0; }
.lfm-page-sub { font-size: 16px; color: var( --louderfm-text-muted ); margin-top: 10px; max-width: 560px; }

.lfm-empty { color: var( --louderfm-text-muted ); font-size: 14px; }

/* ---- Placeholder media (no photo attached yet) --------------------------- */

.lfm-media-placeholder {
	width: 100%;
	height: 100%;
	min-height: 160px;
	background: repeating-linear-gradient( 135deg, #3a3a3a, #3a3a3a 14px, #2a2a2a 14px, #2a2a2a 28px );
}
.lfm-media-placeholder--blue { background: repeating-linear-gradient( 135deg, var( --louderfm-bavaria-blue ), var( --louderfm-bavaria-blue ) 14px, #152f5c 14px, #152f5c 28px ); }

.louderfm-media-photo { width: 100%; height: 100%; object-fit: cover; }

/* ---- Events -------------------------------------------------------------- */

.lfm-events-grid { display: grid; grid-template-columns: repeat( auto-fit, minmax( 260px, 1fr ) ); gap: 20px; }

.lfm-event-card {
	display: block;
	text-decoration: none;
	color: inherit;
	background: var( --louderfm-card-bg );
	border: 1px solid rgba( 245, 244, 240, .08 );
	border-radius: 12px;
	overflow: hidden;
	cursor: pointer;
}
.lfm-event-card--grid .lfm-event-card-media,
.lfm-event-card--grid .louderfm-media-photo,
.lfm-event-card--grid .lfm-media-placeholder { aspect-ratio: 16 / 9; }
.lfm-event-card-body { padding: 22px 24px; }
.lfm-event-card-date { font-size: 12px; font-weight: 800; color: var( --louderfm-accent ); letter-spacing: 1px; text-transform: uppercase; margin-bottom: 10px; }
.lfm-event-card-title { font-family: var( --louderfm-font-display ); font-size: clamp( 20px, 3vw, 26px ); text-transform: uppercase; margin-bottom: 8px; }
.lfm-event-card-desc { font-size: 14px; color: var( --louderfm-text-muted ); }

.lfm-events-list { display: flex; flex-direction: column; gap: 18px; padding: 24px clamp( 18px, 4vw, 56px ) clamp( 50px, 7vw, 90px ); }
.lfm-event-card--list { display: flex; flex-wrap: wrap; }
.lfm-event-card--list .lfm-event-card-media { flex: 1 1 220px; min-height: 160px; }
.lfm-event-card--list .lfm-event-card-body { flex: 2 1 320px; display: flex; flex-direction: column; justify-content: center; }

/* ---- Team ------------------------------------------------------------------ */

.lfm-team-preview-grid { display: grid; grid-template-columns: repeat( auto-fit, minmax( 120px, 1fr ) ); gap: 14px; }
.lfm-team-card--preview { display: block; text-decoration: none; color: inherit; }
.lfm-team-preview-tile {
	position: relative;
	aspect-ratio: 1;
	border-radius: 10px;
	overflow: hidden;
	background: repeating-linear-gradient( 45deg, #2a2a2a, #2a2a2a 10px, #222 10px, #222 20px );
	display: flex;
	align-items: flex-end;
	cursor: pointer;
}
.lfm-team-preview-tile .louderfm-media-photo,
.lfm-team-preview-tile .lfm-media-placeholder { position: absolute; inset: 0; }
.lfm-team-preview-name {
	position: relative;
	z-index: 1;
	padding: 12px;
	font-weight: 700;
	font-size: 13px;
	text-shadow: 0 1px 4px rgba( 0, 0, 0, .6 );
}

.lfm-team-grid { display: grid; grid-template-columns: repeat( auto-fit, minmax( 150px, 1fr ) ); gap: 18px; padding: 24px clamp( 18px, 4vw, 56px ) clamp( 40px, 6vw, 60px ); }
.lfm-team-card--grid {
	display: block;
	text-decoration: none;
	color: inherit;
	border-radius: 12px;
	overflow: hidden;
	background: var( --louderfm-card-bg );
	border: 1px solid rgba( 245, 244, 240, .08 );
	cursor: pointer;
}
.lfm-team-card--grid .lfm-team-card-media,
.lfm-team-card--grid .louderfm-media-photo,
.lfm-team-card--grid .lfm-media-placeholder { aspect-ratio: 1; }
.lfm-team-card-body { padding: 14px 16px; }
.lfm-team-card-name { font-weight: 800; font-size: 15px; }
.lfm-team-card-tag { font-size: 12px; color: var( --louderfm-text-muted ); margin-top: 4px; }

/* ---- Detail pages (event + dj) --------------------------------------------- */

.lfm-detail-wrap { padding: clamp( 30px, 5vw, 44px ) clamp( 18px, 4vw, 56px ) clamp( 50px, 7vw, 90px ); }
.lfm-back-link {
	display: inline-block;
	font-size: 13px;
	font-weight: 700;
	color: var( --louderfm-accent );
	text-transform: uppercase;
	letter-spacing: .5px;
	text-decoration: none;
	cursor: pointer;
	margin-bottom: clamp( 24px, 4vw, 36px );
}

.lfm-detail-card { display: flex; flex-wrap: wrap; background: var( --louderfm-card-bg ); border: 1px solid rgba( 245, 244, 240, .08 ); border-radius: 12px; overflow: hidden; }
.lfm-detail-media { flex: 1 1 320px; min-height: 300px; }
.lfm-detail-media .louderfm-media-photo,
.lfm-detail-media .lfm-media-placeholder { width: 100%; height: 100%; min-height: 300px; }
.lfm-detail-body { flex: 2 1 380px; padding: clamp( 24px, 4vw, 40px ); }
.lfm-detail-date { font-size: 12px; font-weight: 800; color: var( --louderfm-accent ); letter-spacing: 1px; text-transform: uppercase; margin-bottom: 14px; }
.lfm-detail-title { font-family: var( --louderfm-font-display ); font-size: clamp( 28px, 5vw, 40px ); text-transform: uppercase; margin: 0 0 16px; }
.lfm-detail-desc { font-size: 15px; line-height: 1.75; color: rgba( 245, 244, 240, .75 ); }
.lfm-detail-desc p:first-child { margin-top: 0; }

.lfm-dj-detail { display: flex; flex-wrap: wrap; gap: clamp( 24px, 5vw, 44px ); }
.lfm-dj-detail-media { flex: 1 1 260px; max-width: 340px; aspect-ratio: 1; border-radius: 12px; overflow: hidden; background: repeating-linear-gradient( 45deg, #2a2a2a, #2a2a2a 10px, #222 10px, #222 20px ); }
.lfm-dj-detail-media .louderfm-media-photo,
.lfm-dj-detail-media .lfm-media-placeholder { width: 100%; height: 100%; }
.lfm-dj-detail-body { flex: 2 1 360px; }
.lfm-dj-detail-tag { font-size: 13px; color: var( --louderfm-text-muted ); font-style: italic; margin-top: 4px; }
.lfm-dj-detail-body .lfm-detail-desc { margin-top: 20px; }
.lfm-dj-detail-links { display: flex; gap: 14px; margin-top: 22px; }
.lfm-dj-detail-links a { color: var( --louderfm-accent ); font-weight: 700; font-size: 13px; text-decoration: none; cursor: pointer; }

/* ---- Programm page ---------------------------------------------------------- */

.lfm-programm-days {
	display: flex;
	gap: 8px;
	padding: 24px clamp( 18px, 4vw, 56px ) 4px;
	overflow-x: auto;
}
.lfm-day-pill {
	flex: none;
	padding: 9px 18px;
	border-radius: 999px;
	font-weight: 800;
	font-size: 12.5px;
	letter-spacing: .06em;
	text-transform: uppercase;
	cursor: pointer;
	background: var( --louderfm-card-bg );
	color: var( --louderfm-text-muted );
	border: none;
}
.lfm-day-pill.is-active { background: var( --louderfm-accent ); color: var( --louderfm-bg ); }

.lfm-programm-schedule { padding: 6px clamp( 18px, 4vw, 56px ) clamp( 50px, 7vw, 90px ); display: flex; flex-direction: column; }
.lfm-schedule-row { display: flex; gap: 16px; align-items: baseline; padding: 16px 0; border-top: 1px solid rgba( 245, 244, 240, .1 ); }
.lfm-schedule-row:first-child { border-top: none; }
.lfm-schedule-time { width: 52px; flex: none; font-size: 13px; color: rgba( 245, 244, 240, .4 ); font-weight: 700; }
.lfm-schedule-title { font-weight: 800; font-size: 15px; }
.lfm-schedule-desc { font-size: 13px; color: rgba( 245, 244, 240, .55 ); margin-top: 3px; }

/* ---- Footer ------------------------------------------------------------------ */

.lfm-footer {
	border-top: 1px solid rgba( 245, 244, 240, .1 );
	padding: clamp( 20px, 3vw, 32px ) clamp( 18px, 4vw, 56px );
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 14px;
	font-size: 13px;
	color: var( --louderfm-text-muted );
}
.lfm-footer-links { display: flex; flex-wrap: wrap; gap: clamp( 14px, 2vw, 28px ); text-transform: uppercase; letter-spacing: .5px; font-weight: 600; }
.lfm-footer-links a { text-decoration: none; color: inherit; cursor: pointer; }
