/*
Theme Name: RadioFLR (flr.dinfm.dk)
Theme URI: https://flr.dinfm.dk
Author: RadioFLR
Description: Custom theme for flr.dinfm.dk - schedule, hosts, news and chat, backed by radioflr.dk's public API.
Version: 1.0.0
Requires PHP: 7.4
Text Domain: flr-dinfm
*/

:root {
	/* Palette read off an actual screenshot of skala.fm (2023 archive,
	   /vaerter-2/): deep navy-purple header/hero gradient, blue CTA
	   buttons and podcast-platform badges. */
	--paper: #f8f4eb;
	--ink: #151515;
	--bg-a: #241b4a;
	--bg-b: #5b2a7a;
	--bg-c: #2f7fe0;
	--line: #e6e9ec;
	--accent: #2f7fe0;
	--accent-dark: #1f5db0;
	--cyan: #fcb92c;
	--ok: #0c8f50;
	--mono: "JetBrains Mono", "Consolas", "Menlo", monospace;
	--sans: "Trebuchet MS", "Segoe UI", sans-serif;
	--nav-sans: "Inter", var(--sans);
	--display: "Fredoka", var(--sans);
}

* { box-sizing: border-box; }

html, body {
	margin: 0;
	padding: 0;
	height: 100%;
}

body {
	color: var(--ink);
	background: var(--paper);
	font-family: var(--sans);
	min-height: 100vh;
	display: flex;
	flex-direction: column;
	line-height: 1.5;
}

a { color: var(--accent-dark); text-decoration: none; }
a:hover { text-decoration: underline; }

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

.flr-container {
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 20px;
}

/* ---------- Layout (sticky footer) ---------- */

.flr-main {
	flex: 1 0 auto;
	display: flex;
	flex-direction: column;
	width: 100%;
}

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

.flr-header {
	background: linear-gradient(140deg, var(--bg-a), var(--bg-b));
	color: #fff;
}

.flr-header-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding: 16px 20px;
	flex-wrap: wrap;
}

.flr-logo {
	display: flex;
	align-items: center;
	gap: 10px;
	color: #fff;
	font-family: var(--display);
	font-weight: 600;
	font-style: italic;
	font-size: 22px;
	letter-spacing: 0.2px;
}

.flr-header-cta {
	background: #fff;
	color: var(--bg-a);
	font-family: var(--nav-sans);
	font-weight: 700;
	font-size: 13px;
	padding: 10px 18px;
	border-radius: 999px;
	white-space: nowrap;
}

.flr-header-cta:hover { background: rgba(255, 255, 255, 0.85); text-decoration: none; }

.flr-logo .dot {
	width: 12px;
	height: 12px;
	border-radius: 50%;
	background: var(--accent);
	box-shadow: 0 0 10px 2px rgba(47, 127, 224, 0.7);
}

.flr-nav {
	display: flex;
	gap: 4px;
	flex-wrap: wrap;
}

.flr-nav a {
	color: rgba(255, 255, 255, 0.85);
	padding: 8px 14px;
	border-radius: 999px;
	font-family: var(--nav-sans);
	font-weight: 600;
	font-size: 14px;
}

.flr-nav a:hover,
.flr-nav a.is-active {
	color: #fff;
	background: rgba(255, 255, 255, 0.14);
	text-decoration: none;
}

/* ---------- Hero / now playing ---------- */

.flr-hero {
	position: relative;
	background: linear-gradient(140deg, var(--bg-a), var(--bg-b));
	color: #fff;
	padding: 56px 0 96px;
	overflow: hidden;
}

.flr-eyebrow {
	display: block;
	font-family: var(--nav-sans);
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 2px;
	text-transform: uppercase;
	color: rgba(255, 255, 255, 0.85);
	margin: 0 0 12px;
}

.flr-hero-title {
	font-family: var(--display);
	font-style: italic;
	font-size: clamp(36px, 7vw, 68px);
	line-height: 1.05;
	margin: 0 0 24px;
	font-weight: 600;
	text-wrap: balance;
}

.flr-hero-cta {
	display: inline-block;
	background: #fff;
	color: var(--bg-a);
	font-family: var(--nav-sans);
	font-weight: 700;
	font-size: 14px;
	padding: 14px 26px;
	border-radius: 999px;
	margin-bottom: 40px;
}

.flr-hero-cta:hover { background: rgba(255, 255, 255, 0.85); text-decoration: none; }

.flr-wave {
	position: absolute;
	left: 0;
	right: 0;
	bottom: -1px;
	width: 100%;
	height: auto;
	display: block;
	line-height: 0;
}

.flr-hero-sub {
	color: rgba(255, 255, 255, 0.75);
	margin: 0 0 28px;
	font-size: 16px;
}

.flr-nowplaying {
	background: rgba(255, 255, 255, 0.08);
	border: 1px solid rgba(255, 255, 255, 0.18);
	border-radius: 18px;
	padding: 20px 24px;
	display: flex;
	align-items: center;
	gap: 18px;
	backdrop-filter: blur(4px);
}

.flr-nowplaying .badge {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	background: var(--accent);
	color: #fff;
	font-size: 11px;
	font-weight: 800;
	letter-spacing: 1px;
	padding: 5px 10px;
	border-radius: 999px;
	white-space: nowrap;
}

.flr-nowplaying .badge .pulse {
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: #fff;
	animation: flr-pulse 1.4s infinite;
}

@keyframes flr-pulse {
	0%, 100% { opacity: 1; }
	50% { opacity: 0.25; }
}

.flr-nowplaying-info h2 {
	margin: 0 0 4px;
	font-size: 20px;
}

.flr-nowplaying-info p {
	margin: 0;
	color: rgba(255, 255, 255, 0.7);
	font-size: 14px;
}

.flr-nowplaying-empty {
	color: rgba(255, 255, 255, 0.7);
	font-size: 14px;
}

/* ---------- Pulse play button (listen-live CTA) ---------- */

.flr-pulse-btn {
	flex-shrink: 0;
	width: 64px;
	height: 64px;
	border-radius: 50%;
	background: var(--accent);
	display: grid;
	place-items: center;
	color: #fff;
	box-shadow: 0 0 0 0 rgba(47, 127, 224, 0.55);
	animation: flr-pulse-ring 1.8s cubic-bezier(0.66, 0, 0, 1) infinite;
}

.flr-pulse-btn:hover {
	background: var(--accent-dark);
	text-decoration: none;
}

.flr-pulse-btn svg {
	width: 24px;
	height: 24px;
	fill: #fff;
	margin-left: 3px;
}

@keyframes flr-pulse-ring {
	to { box-shadow: 0 0 0 18px rgba(47, 127, 224, 0); }
}

@media (prefers-reduced-motion: reduce) {
	.flr-pulse-btn { animation: none; }
}

/* ---------- Sections ---------- */

.flr-section {
	padding: 48px 0;
}

.flr-section-head {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	margin-bottom: 22px;
}

.flr-section-head h2 {
	font-family: var(--display);
	font-style: italic;
	font-weight: 600;
	font-size: 28px;
	margin: 0;
	color: var(--bg-a);
}

.flr-section-head a {
	display: inline-block;
	background: var(--accent);
	color: #fff;
	font-family: var(--nav-sans);
	font-size: 13px;
	font-weight: 700;
	padding: 9px 18px;
	border-radius: 999px;
	white-space: nowrap;
}

.flr-section-head a:hover { background: var(--accent-dark); text-decoration: none; }

/* ---------- Cards ---------- */

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

.flr-card {
	background: #fff;
	border: 1px solid var(--line);
	border-radius: 14px;
	overflow: hidden;
	display: flex;
	flex-direction: column;
}

.flr-card-img {
	aspect-ratio: 16/9;
	background: linear-gradient(140deg, var(--bg-a), var(--bg-b));
	display: flex;
	align-items: center;
	justify-content: center;
	color: rgba(255, 255, 255, 0.5);
	font-size: 13px;
}

.flr-card-img img { width: 100%; height: 100%; object-fit: cover; }

.flr-card-body { padding: 16px 18px 18px; flex: 1; display: flex; flex-direction: column; }

.flr-card-body h3 { margin: 0 0 8px; font-size: 17px; }

.flr-card-body p { margin: 0 0 12px; font-size: 14px; color: #555; flex: 1; }

.flr-card-meta { font-size: 12px; color: #888; }

.flr-card-body .flr-readmore { font-size: 13px; font-weight: 700; }

/* ---------- Host cards (round photo) ---------- */

.flr-host-card { text-align: center; padding: 22px 16px; }

.flr-host-photo {
	width: 96px;
	height: 96px;
	border-radius: 50%;
	margin: 0 auto 14px;
	background: linear-gradient(140deg, var(--bg-a), var(--bg-b));
	display: flex;
	align-items: center;
	justify-content: center;
	color: #fff;
	font-weight: 800;
	font-size: 28px;
	overflow: hidden;
}

.flr-host-photo img { width: 100%; height: 100%; object-fit: cover; }

.flr-host-card h3 { margin: 0 0 6px; font-size: 16px; }

.flr-host-card p { color: #666; font-size: 13px; margin: 0; }

/* ---------- Schedule page ---------- */

.flr-page-hero {
	background: linear-gradient(140deg, var(--bg-a), var(--bg-b));
	color: #fff;
	padding: 40px 0;
}

.flr-page-hero h1 { margin: 0; font-size: clamp(26px, 4vw, 38px); }

.flr-daytabs {
	display: flex;
	gap: 6px;
	overflow-x: auto;
	padding: 24px 0 0;
	border-bottom: 2px solid var(--line);
}

.flr-daytab {
	border: none;
	background: none;
	font: inherit;
	font-weight: 700;
	font-size: 14px;
	padding: 10px 16px;
	color: #666;
	cursor: pointer;
	white-space: nowrap;
	border-bottom: 3px solid transparent;
}

.flr-daytab.is-active {
	color: var(--accent-dark);
	border-bottom-color: var(--accent);
}

.flr-day-panel { display: none; padding: 24px 0 8px; }
.flr-day-panel.is-active { display: block; }

.flr-slot {
	display: flex;
	align-items: center;
	gap: 16px;
	padding: 14px 16px;
	border: 1px solid var(--line);
	border-radius: 12px;
	margin-bottom: 12px;
	background: #fff;
}

.flr-slot.is-live { border-color: var(--accent); box-shadow: 0 0 0 2px rgba(47, 127, 224, 0.15); }

.flr-slot-time {
	font: 700 13px var(--mono);
	color: #444;
	min-width: 96px;
}

.flr-slot-color {
	width: 6px;
	align-self: stretch;
	border-radius: 4px;
	flex-shrink: 0;
}

.flr-slot-body { flex: 1; }

.flr-slot-body h4 { margin: 0 0 4px; font-size: 15px; }

.flr-slot-hosts { font-size: 12px; color: #888; }

.flr-live-badge {
	background: var(--accent);
	color: #fff;
	font-size: 10px;
	font-weight: 800;
	letter-spacing: 0.5px;
	padding: 3px 8px;
	border-radius: 999px;
	flex-shrink: 0;
}

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

.flr-footer {
	background: var(--ink);
	color: rgba(255, 255, 255, 0.6);
	padding: 24px 0;
	font-size: 13px;
}

.flr-footer a { color: rgba(255, 255, 255, 0.85); }

.flr-footer-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	flex-wrap: wrap;
}

.flr-footer-social { display: flex; gap: 10px; }

.flr-footer-social a {
	width: 30px;
	height: 30px;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.08);
	display: grid;
	place-items: center;
}

.flr-footer-social a:hover { background: var(--accent); }
.flr-footer-social svg { width: 14px; height: 14px; fill: #fff; }

/* ---------- Chat (classic IRC client look: mIRC/AdiIRC/lightIRC style) ---------- */

.flr-irc-wrap {
	flex: 1;
	display: flex;
	padding: 20px;
	min-height: 0;
}

.flr-irc-app {
	flex: 1;
	display: flex;
	flex-direction: column;
	min-height: 480px;
	max-width: 1100px;
	width: 100%;
	margin: 0 auto;
	border-radius: 12px;
	overflow: hidden;
	border: 1px solid rgba(255, 255, 255, 0.15);
	box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
	background: linear-gradient(150deg, var(--bg-a), var(--bg-b) 70%);
}

.flr-irc-top {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 12px 16px;
	background: var(--paper);
	border-bottom: 2px solid var(--line);
	flex-shrink: 0;
}

.flr-irc-brand {
	display: flex;
	align-items: center;
	gap: 10px;
}

.flr-irc-logo {
	width: 30px;
	height: 30px;
	border-radius: 7px;
	display: grid;
	place-items: center;
	background: var(--accent);
	color: #fff;
	font-weight: 800;
	font-size: 11px;
}

.flr-irc-brand h1 {
	margin: 0;
	font-size: 16px;
	font-family: var(--mono);
	color: var(--ink);
}

.flr-irc-chan {
	color: var(--accent-dark);
	font-weight: 700;
	margin-left: 6px;
}

.flr-irc-status {
	border-radius: 999px;
	border: 1px solid #cbbda4;
	background: #fff;
	font: 11px var(--mono);
	padding: 6px 10px;
	color: #996100;
}

.flr-irc-status.ok { color: var(--ok); border-color: #b7dcc4; }
.flr-irc-status.warn { color: #996100; }
.flr-irc-status.error { color: #96263a; border-color: #e3b8c1; }

.flr-irc-main {
	flex: 1;
	display: grid;
	grid-template-columns: 1fr 220px;
	min-height: 0;
}

.flr-irc-chat {
	background: #fff;
	display: flex;
	flex-direction: column;
	min-height: 0;
	border-right: 2px dashed var(--line);
}

.flr-irc-feed {
	flex: 1;
	overflow-y: auto;
	padding: 12px 14px;
	display: flex;
	flex-direction: column;
	gap: 5px;
	background-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.02) 1px, transparent 1px);
	background-size: 100% 26px;
	min-height: 0;
}

.flr-irc-row {
	display: grid;
	grid-template-columns: 62px 110px 1fr;
	gap: 8px;
	font: 13px var(--mono);
	line-height: 1.4;
}

.flr-irc-row .c-time { color: #999; font-size: 11px; padding-top: 1px; }
.flr-irc-row .c-nick { font-weight: 700; color: #20456e; word-break: break-word; }
.flr-irc-row .c-msg { color: var(--ink); word-break: break-word; white-space: pre-wrap; }

.flr-irc-row.system .c-msg,
.flr-irc-row.system .c-nick { color: #888; font-style: italic; }

.flr-irc-row.join .c-msg { color: var(--ok); }
.flr-irc-row.part .c-msg { color: #96263a; }

.flr-irc-row.bot .c-msg {
	color: var(--accent-dark);
	font-weight: 600;
}

.flr-irc-row.mention {
	background: rgba(47, 127, 224, 0.12);
	border-left: 3px solid var(--accent);
	margin-left: -3px;
	padding-left: 5px;
	border-radius: 4px;
}

.flr-irc-row.mention .c-msg {
	font-weight: 600;
	color: var(--accent-dark);
}

.flr-irc-gate {
	margin: auto;
	max-width: 380px;
	width: 100%;
	background: linear-gradient(150deg, var(--bg-a), var(--bg-b) 70%);
	border: 1px solid rgba(255, 255, 255, 0.15);
	box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
	border-radius: 14px;
	padding: 34px 30px;
	text-align: center;
	color: #fff;
}

.flr-irc-gate-logo {
	width: 46px;
	height: 46px;
	border-radius: 10px;
	margin: 0 auto 14px;
	display: grid;
	place-items: center;
	background: var(--accent);
	color: #fff;
	font-weight: 800;
	font-size: 14px;
}

.flr-irc-gate h1 {
	margin: 0 0 8px;
	font-size: 20px;
	font-family: var(--mono);
}

.flr-irc-gate-server {
	font-size: 12px;
	font-family: var(--mono);
	color: rgba(255, 255, 255, 0.65);
	margin: 0 0 22px;
	line-height: 1.6;
}

.flr-irc-gate-server strong { color: rgba(255, 255, 255, 0.9); }

.flr-irc-gate label {
	display: block;
	text-align: left;
	font-size: 11px;
	text-transform: uppercase;
	letter-spacing: 0.6px;
	color: rgba(255, 255, 255, 0.55);
	margin-bottom: 6px;
}

.flr-irc-gate input[type="text"] {
	display: block;
	width: 100%;
	border: 1px solid rgba(255, 255, 255, 0.25);
	background: rgba(255, 255, 255, 0.08);
	color: #fff;
	border-radius: 6px;
	padding: 10px 12px;
	font: 14px var(--mono);
	margin-bottom: 14px;
}

.flr-irc-gate input[type="text"]::placeholder { color: rgba(255, 255, 255, 0.4); }

.flr-irc-gate button {
	width: 100%;
	border: 0;
	border-radius: 6px;
	padding: 11px 22px;
	background: var(--accent);
	color: #fff;
	font-weight: 700;
	cursor: pointer;
}

.flr-irc-gate button:disabled { background: rgba(255, 255, 255, 0.15); cursor: not-allowed; }

.flr-irc-gate-status {
	min-height: 16px;
	margin: 14px 0 0;
	font: 12px var(--mono);
	color: rgba(255, 255, 255, 0.6);
}

.flr-irc-gate-status.warn { color: #ffcf8a; }
.flr-irc-gate-status.error { color: #ff9797; }

.flr-irc-disconnect-btn {
	width: 100%;
	margin-top: 10px;
	border: 1px solid rgba(255, 255, 255, 0.2);
	background: transparent;
	color: rgba(255, 255, 255, 0.75);
	border-radius: 6px;
	padding: 7px 0;
	font-size: 12px;
	cursor: pointer;
}

.flr-irc-disconnect-btn:hover { background: rgba(255, 255, 255, 0.08); color: #fff; }

.flr-irc-composer {
	display: flex;
	gap: 8px;
	padding: 10px 12px;
	border-top: 1px solid var(--line);
	background: #fafafa;
	flex-shrink: 0;
}

.flr-irc-composer input[type="text"] {
	flex: 1;
	border: 1px solid var(--line);
	border-radius: 6px;
	padding: 9px 12px;
	font: 13px var(--mono);
}

.flr-irc-composer button {
	border: 0;
	border-radius: 6px;
	padding: 0 18px;
	background: #1f3f64;
	color: #fff;
	font-weight: 700;
	cursor: pointer;
}

.flr-irc-composer button:disabled { background: #ccc; cursor: not-allowed; }

.flr-irc-side {
	background: rgba(255, 255, 255, 0.06);
	color: #fff;
	overflow-y: auto;
	padding: 12px;
}

.flr-irc-panel {
	background: rgba(255, 255, 255, 0.06);
	border: 1px solid rgba(255, 255, 255, 0.12);
	border-radius: 8px;
	padding: 10px 12px;
	margin-bottom: 10px;
}

.flr-irc-panel-grow { flex: 1; }

.flr-irc-panel h2 {
	margin: 0 0 8px;
	font-size: 11px;
	text-transform: uppercase;
	letter-spacing: 0.6px;
	color: rgba(255, 255, 255, 0.6);
}

.flr-irc-meta {
	font: 12px var(--mono);
	color: rgba(255, 255, 255, 0.85);
	margin-bottom: 4px;
}

.flr-irc-users {
	list-style: none;
	margin: 0;
	padding: 0;
	font: 12px var(--mono);
}

.flr-irc-users li {
	padding: 3px 0;
	color: rgba(255, 255, 255, 0.85);
}

.flr-irc-users li.role-op { color: #ffb27a; font-weight: 700; }
.flr-irc-users li.role-halfop,
.flr-irc-users li.role-voice { color: #9fd3ff; }
.flr-irc-users li.flr-irc-empty { color: rgba(255, 255, 255, 0.4); font-style: italic; }

@media (max-width: 900px) {
	.flr-irc-main { grid-template-columns: 1fr; }
	.flr-irc-chat { border-right: 0; }
	.flr-irc-side { border-top: 2px dashed rgba(255, 255, 255, 0.15); max-height: 160px; }
	.flr-irc-row { grid-template-columns: 54px 90px 1fr; }
}

/* ---------- Vaert dashboard (Messenger-style conversation view) ---------- */

.flr-vaert-wrap {
	flex: 1;
	display: flex;
	padding: 20px;
	min-height: 0;
}

.flr-vaert-card {
	max-width: 380px;
	margin: auto;
	background: #fff;
	border: 1px solid var(--line);
	border-radius: 16px;
	padding: 28px 26px;
	text-align: center;
}

.flr-vaert-sub {
	font-size: 13px;
	color: #777;
	margin: 4px 0 18px;
}

.flr-vaert-card input {
	display: block;
	width: 100%;
	border: 1px solid var(--line);
	border-radius: 10px;
	padding: 10px 14px;
	font: inherit;
	margin-bottom: 12px;
	text-align: center;
}

.flr-vaert-card button {
	width: 100%;
	background: var(--accent);
	color: #fff;
	border: none;
	border-radius: 999px;
	padding: 10px 0;
	font-weight: 700;
	cursor: pointer;
}

.flr-vaert-card button:disabled {
	background: #ccc;
	cursor: not-allowed;
}

.flr-vaert-error {
	color: #b3261e;
	font-size: 13px;
	margin-top: 12px;
}

.flr-msgr-app {
	flex: 1;
	display: flex;
	min-height: 480px;
	max-width: 1000px;
	width: 100%;
	margin: 0 auto;
	border: 1px solid var(--line);
	border-radius: 16px;
	overflow: hidden;
	background: #fff;
}

.flr-msgr-sidebar {
	width: 280px;
	flex-shrink: 0;
	border-right: 1px solid var(--line);
	background: #faf7f0;
	overflow-y: auto;
	display: flex;
	flex-direction: column;
}

.flr-msgr-sidebar-head {
	padding: 14px 16px;
	border-bottom: 1px solid var(--line);
	display: flex;
	align-items: center;
	justify-content: space-between;
}

.flr-msgr-sidebar-head h2 {
	margin: 0;
	font-size: 15px;
}

.flr-msgr-logout {
	background: none;
	border: 1px solid var(--line);
	border-radius: 999px;
	padding: 4px 12px;
	font-size: 12px;
	cursor: pointer;
}

.flr-msgr-contact {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 12px 16px;
	cursor: pointer;
	border-bottom: 1px solid rgba(0, 0, 0, 0.04);
}

.flr-msgr-contact:hover { background: rgba(0, 0, 0, 0.03); }

.flr-msgr-contact.is-active {
	background: rgba(47, 127, 224, 0.1);
	border-left: 3px solid var(--accent);
}

.flr-msgr-avatar {
	width: 40px;
	height: 40px;
	border-radius: 50%;
	background: linear-gradient(140deg, var(--bg-a), var(--bg-b));
	color: #fff;
	display: flex;
	align-items: center;
	justify-content: center;
	font-weight: 800;
	flex-shrink: 0;
}

.flr-msgr-contact-info {
	min-width: 0;
	flex: 1;
}

.flr-msgr-contact-name {
	font-weight: 700;
	font-size: 14px;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.flr-msgr-contact-preview {
	font-size: 12px;
	color: #888;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	margin-top: 2px;
}

.flr-msgr-contact-time {
	font-size: 10px;
	color: #aaa;
	flex-shrink: 0;
	align-self: flex-start;
}

.flr-msgr-conversation {
	flex: 1;
	display: flex;
	flex-direction: column;
	min-width: 0;
	min-height: 0;
}

.flr-msgr-conv-head {
	padding: 14px 20px;
	border-bottom: 1px solid var(--line);
	display: flex;
	align-items: center;
	gap: 10px;
	flex-shrink: 0;
}

.flr-msgr-conv-head h3 {
	margin: 0;
	font-size: 15px;
}

.flr-msgr-conv-head small {
	color: #888;
	font-weight: normal;
	display: block;
	font-size: 12px;
}

.flr-msgr-messages {
	flex: 1;
	overflow-y: auto;
	padding: 20px;
	display: flex;
	flex-direction: column;
	gap: 6px;
	min-height: 0;
}

.flr-msgr-bubble-row {
	display: flex;
}

.flr-msgr-bubble-row.is-out { justify-content: flex-end; }

.flr-msgr-bubble {
	max-width: 65%;
	padding: 10px 14px;
	border-radius: 18px;
	font-size: 14px;
	line-height: 1.4;
	background: #f0f0f0;
	color: var(--ink);
	position: relative;
}

.flr-msgr-bubble-row.is-out .flr-msgr-bubble {
	background: var(--accent);
	color: #fff;
	border-bottom-right-radius: 4px;
}

.flr-msgr-bubble-row.is-in .flr-msgr-bubble {
	border-bottom-left-radius: 4px;
}

.flr-msgr-bubble-time {
	font-size: 10px;
	opacity: 0.6;
	margin-top: 4px;
	text-align: right;
}

.flr-msgr-composer {
	display: flex;
	gap: 8px;
	padding: 14px 20px;
	border-top: 1px solid var(--line);
	flex-shrink: 0;
}

.flr-msgr-composer input {
	flex: 1;
	border: 1px solid var(--line);
	border-radius: 999px;
	padding: 10px 16px;
	font: inherit;
}

.flr-msgr-composer button {
	background: var(--accent);
	color: #fff;
	border: none;
	border-radius: 999px;
	padding: 0 22px;
	font-weight: 700;
	cursor: pointer;
}

.flr-msgr-composer button:disabled {
	background: #ccc;
	cursor: not-allowed;
}

.flr-vaert-empty {
	margin: auto;
	text-align: center;
	color: #888;
	padding: 30px 0;
}

@media (max-width: 760px) {
	.flr-msgr-app { flex-direction: column; height: auto; }
	.flr-msgr-sidebar { width: 100%; max-height: 220px; }
}

/* ---------- Responsive ---------- */

@media (max-width: 900px) {
	.flr-grid { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
}

@media (max-width: 640px) {
	.flr-header-inner { flex-direction: column; align-items: flex-start; }
	.flr-header-cta { order: 3; }
	.flr-nav { order: 2; }
	.flr-nowplaying { flex-direction: column; align-items: flex-start; }
	.flr-hero { padding: 40px 0 72px; }
	.flr-section-head { flex-direction: column; align-items: flex-start; gap: 10px; }
	.flr-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
}

@media (max-width: 420px) {
	.flr-grid { grid-template-columns: 1fr; }
	.flr-hero-cta, .flr-header-cta { width: 100%; text-align: center; }
}
