/* ==========================================================================
   versuri-versuri.ro - mobile-first stylesheet
   Same palette as the original site: charcoal #464548, rust #C85E35,
   cream links on dark boxes #FFFCD1, green action #ABC43C.
   ========================================================================== */

:root {
	--ink: #2b2a2c;
	--ink-soft: #464548;
	--muted: #6d6b6e;
	--line: #e3dfdb;
	--bg: #f4f2ef;
	--card: #ffffff;
	--brand: #C85E35;
	--brand-dark: #a9481f;
	--brand-soft: #fbeee8;
	--link: #2f73a3;
	--link-hover: #C3593C;
	--cream: #FFFCD1;
	--green: #8fa62c;
	--green-dark: #74881f;
	--radius: 10px;
	--shadow: 0 1px 2px rgba(40, 30, 20, .06), 0 2px 8px rgba(40, 30, 20, .05);
	--wrap: 1180px;
	--tap: 44px;
	--font: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
	--font-head: "Trebuchet MS", "Segoe UI", Arial, sans-serif;
}

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

html { -webkit-text-size-adjust: 100%; scroll-padding-top: 12px; }

body {
	margin: 0;
	font: 16px/1.55 var(--font);
	color: var(--ink);
	background: var(--bg);
	overflow-wrap: anywhere;
}

a { color: var(--link); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--link-hover); }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, summary:focus-visible {
	outline: 3px solid #f0a37f;
	outline-offset: 2px;
	border-radius: 4px;
}

img { max-width: 100%; height: auto; }

h1, h2, h3 { font-family: var(--font-head); line-height: 1.25; color: var(--ink-soft); }
h1 { font-size: 1.5rem; margin: 0 0 .35rem; letter-spacing: -.01em; }
h2 { font-size: 1.15rem; margin: 0 0 .6rem; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }
.muted { color: var(--muted); font-weight: normal; }
.small { font-size: .85em; }
.empty { color: var(--muted); font-style: italic; }

.skip-link { position: absolute; left: -9999px; top: 0; background: #fff; padding: 8px 12px; z-index: 100; }
.skip-link:focus { left: 8px; top: 8px; }

/* ---------- buttons ---------- */
.btn {
	display: inline-flex; align-items: center; justify-content: center; gap: .4em;
	min-height: var(--tap); padding: 8px 16px;
	border: 1px solid var(--line); border-radius: 999px;
	background: #fff; color: var(--ink-soft);
	font: 600 .95rem var(--font); text-decoration: none; cursor: pointer;
}
.btn:hover { border-color: var(--brand); color: var(--brand-dark); }
.btn-primary { background: var(--green); border-color: var(--green-dark); color: #fff; }
.btn-primary:hover { background: var(--green-dark); color: #fff; }
.btn-video { background: var(--brand-soft); border-color: #f1cdbd; color: var(--brand-dark); }
.btn-light { min-width: var(--tap); padding: 0; font-size: 1.3rem; }

/* ==========================================================================
   Header
   ========================================================================== */
.site-header { background: #fff; }

.brand-row { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 14px; padding-top: 12px; padding-bottom: 10px; }
.brand {
	font: bold 1.65rem/1.1 var(--font-head);
	letter-spacing: -1px;
	color: var(--ink-soft);
	text-decoration: none;
}
.brand span { color: var(--brand); }
.brand:hover { color: var(--ink-soft); }
.tagline { margin: 0; color: var(--muted); font-size: .85rem; }

/* search */
.search-band { background: var(--ink-soft); padding: 12px 0; }
.search-label {
	display: block; color: #d9d6d2; font-size: .85rem; font-weight: 600; margin-bottom: 6px;
}
.search-box { position: relative; display: flex; }
.search-box input {
	flex: 1; min-width: 0;
	height: 48px; padding: 0 14px;
	font: 16px var(--font); /* 16px: no zoom on iOS */
	color: var(--ink);
	border: 2px solid #fff; border-right: 0;
	border-radius: var(--radius) 0 0 var(--radius);
	background: #fff;
	-webkit-appearance: none; appearance: none;
}
.search-box input::-webkit-search-cancel-button { cursor: pointer; }
.search-btn {
	display: inline-flex; align-items: center; gap: 6px;
	height: 48px; padding: 0 16px;
	border: 0; border-radius: 0 var(--radius) var(--radius) 0;
	background: var(--brand); color: #fff;
	font: bold 1rem var(--font); cursor: pointer;
}
.search-btn:hover { background: var(--brand-dark); }
.search-btn span { display: none; }

/* autocomplete dropdown */
.suggestions {
	position: absolute; left: 0; right: 0; top: calc(100% + 6px); z-index: 50;
	background: #fff; border-radius: var(--radius);
	box-shadow: 0 10px 30px rgba(0, 0, 0, .22);
	max-height: min(70vh, 460px); overflow-y: auto;
	padding: 6px 0;
}
.suggestions[hidden] { display: none; }
.sugg-group {
	padding: 8px 14px 4px; font-size: .72rem; font-weight: 700;
	text-transform: uppercase; letter-spacing: .06em; color: var(--muted);
}
.sugg-item {
	display: flex; align-items: center; gap: 10px;
	min-height: var(--tap); padding: 6px 14px;
	color: var(--ink); text-decoration: none; cursor: pointer;
}
.sugg-item:hover, .sugg-item.active { background: var(--brand-soft); color: var(--ink); }
.sugg-icon {
	flex: none; width: 30px; height: 30px; border-radius: 50%;
	display: grid; place-items: center;
	background: var(--ink-soft); color: #fff; font-size: .8rem; font-weight: 700;
}
.sugg-item.song .sugg-icon { background: var(--brand); }
.sugg-text { min-width: 0; display: flex; flex-direction: column; line-height: 1.25; }
.sugg-text strong { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sugg-text small { color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sugg-text mark { background: none; color: var(--brand-dark); font-weight: 800; }
.sugg-all { border-top: 1px solid var(--line); margin-top: 4px; font-weight: 600; color: var(--link); }
.sugg-empty { padding: 10px 14px; color: var(--muted); }

/* quick links: one swipeable row on phones */
.quick-links { border-bottom: 1px solid var(--line); background: #fff; }
.quick-links .wrap {
	display: flex; gap: 6px; overflow-x: auto; padding-top: 8px; padding-bottom: 8px;
	scrollbar-width: none; -webkit-overflow-scrolling: touch;
}
.quick-links .wrap::-webkit-scrollbar { display: none; }
.quick-links a {
	flex: none; padding: 7px 12px; border-radius: 999px;
	background: #f1eeea; color: var(--ink-soft); font-size: .88rem; font-weight: 600;
	text-decoration: none; white-space: nowrap;
}
.quick-links a:hover { background: var(--brand-soft); color: var(--brand-dark); }
.quick-links a.accent { background: var(--green); color: #fff; }

/* A-Z navigation */
.az-band { background: #f8f6f3; border-bottom: 1px solid var(--line); }
.az > summary {
	list-style: none; cursor: pointer;
	display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
	min-height: var(--tap); padding: 8px 0;
	font-weight: 700; color: var(--ink-soft);
}
.az > summary::-webkit-details-marker { display: none; }
.az > summary::before {
	content: ""; width: 9px; height: 9px; margin-right: 2px;
	border-right: 2px solid currentColor; border-bottom: 2px solid currentColor;
	transform: rotate(-45deg); transition: transform .15s;
}
.az[open] > summary::before { transform: rotate(45deg); }
.az > summary .muted { font-size: .85rem; }

.az-tabs { display: none; gap: 6px; margin-bottom: 10px; }
.js .az-tabs { display: flex; }
.az-tab {
	flex: 1; min-height: 40px; border: 1px solid var(--line); border-radius: 999px;
	background: #fff; color: var(--ink-soft); font: 600 .9rem var(--font); cursor: pointer;
}
.az-tab.active { background: var(--ink-soft); border-color: var(--ink-soft); color: #fff; }

.az-panel { padding-bottom: 12px; }
.js .az-panel:not(.active) { display: none; }
.az-title { font-size: .8rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); margin: 0 0 6px; }
.js .az-title { position: absolute; left: -9999px; }

.letters {
	list-style: none; margin: 0; padding: 0;
	display: grid; grid-template-columns: repeat(auto-fill, minmax(40px, 1fr)); gap: 6px;
}
.letters a {
	display: grid; place-items: center; height: 40px;
	border-radius: 8px; background: var(--brand); color: #fff;
	font-weight: 700; text-decoration: none;
}
.letters a:hover, .letters a[aria-current] { background: var(--ink-soft); color: #fff; }
.letters .all { grid-column: span 2; }
.letters .all a { background: #fff; color: var(--brand-dark); border: 1px solid #efc9b8; }

/* ==========================================================================
   Layout
   ========================================================================== */
.layout { display: grid; gap: 16px; padding-top: 16px; padding-bottom: 24px; }
.main { min-width: 0; outline: none; }

.card {
	background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow);
	padding: 16px; margin-bottom: 16px;
}
.card-title { padding-bottom: 8px; border-bottom: 2px solid var(--brand-soft); }
.card-title a { color: inherit; }
.intro p { margin: 0; color: var(--muted); }
.more { margin: 14px 0 0; text-align: center; }
.kicker { color: var(--brand); }
.by { margin: 0 0 12px; color: var(--muted); }
.sep { margin: 0 4px; }
h2.sub { font-size: 1rem; margin: 16px 0 8px; }

/* breadcrumb */
.breadcrumb ol {
	list-style: none; margin: 0 0 10px; padding: 0;
	display: flex; flex-wrap: wrap; gap: 2px 0; font-size: .85rem; color: var(--muted);
}
.breadcrumb li + li::before { content: "\203A"; margin: 0 7px; color: #b5afa9; }
.breadcrumb a { color: var(--muted); }

/* lists of songs / bands / albums */
.item-list { list-style: none; margin: 8px 0 0; padding: 0; }
.item-list li { border-bottom: 1px solid #f0ece8; }
.item-list:not(.latest) li > a, .item-list.latest li {
	display: flex; flex-direction: column; justify-content: center;
	min-height: var(--tap); padding: 7px 4px; text-decoration: none;
}
.item-list.latest li { padding: 8px 4px; }
.item-list.latest a { display: block; }
.item-list:not(.latest) li > a:hover { background: #fdf8f5; }
.item-list .t { color: var(--link); font-weight: 600; line-height: 1.3; }
.item-list .s { color: var(--muted); font-size: .85rem; line-height: 1.3; }
.item-list.latest a { text-decoration: none; }
.item-list.latest a.t:hover { text-decoration: underline; }
.item-list.latest a.s:hover { color: var(--brand-dark); }
.tracklist { list-style: decimal inside; }
.tracklist li { padding-left: 4px; color: var(--muted); }
.tracklist li > a { display: inline-flex; min-height: var(--tap); vertical-align: middle; }

.chips { list-style: none; margin: 8px 0 12px; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chips a {
	display: inline-flex; align-items: center; min-height: 38px; padding: 6px 12px;
	border-radius: 999px; background: #f1eeea; color: var(--ink-soft);
	text-decoration: none; font-size: .9rem; font-weight: 600;
}
.chips a:hover { background: var(--brand-soft); color: var(--brand-dark); }

/* lyrics page */
.lyrics-head h1 { font-size: 1.6rem; }
.lyrics-text {
	margin: 8px 0 0; padding: 16px 0 4px;
	border-top: 1px solid var(--line);
	font-size: 1.08rem; line-height: 1.75; color: #232224;
}
.lyrics-text p { margin: 0; }
.lyrics-foot { margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line); }
.lyrics-foot .btn { width: 100%; white-space: normal; text-align: center; }

/* pagination */
.pagination { margin-top: 18px; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 8px; }
.pagination ul { list-style: none; margin: 0; padding: 0; display: flex; justify-content: center; flex-wrap: wrap; gap: 4px; }
.pagination li a, .pagination li span, .pg-prev, .pg-next {
	display: grid; place-items: center; min-width: 40px; height: 40px; padding: 0 10px;
	border-radius: 8px; text-decoration: none; font-weight: 700; font-size: .92rem;
}
.pagination li a { background: #f1eeea; color: var(--ink-soft); }
.pagination li a:hover { background: var(--brand-soft); color: var(--brand-dark); }
.pagination li span[aria-current] { background: var(--brand); color: #fff; }
.pagination .gap { color: var(--muted); align-self: center; padding: 0 2px; }
.pg-prev, .pg-next { background: var(--ink-soft); color: #fff; }
.pg-prev:hover, .pg-next:hover { background: var(--brand); color: #fff; }
.pg-prev.disabled, .pg-next.disabled { background: #ebe7e3; color: #aaa49e; }
.pg-info { grid-column: 1 / -1; margin: 0; text-align: center; font-size: .82rem; color: var(--muted); }
/* phones: only the numbers near the current page */
@media (max-width: 479px) {
	.pagination li:not(:has(span[aria-current])):not(.gap) { display: none; }
	.pagination li.gap { display: none; }
	.pg-prev, .pg-next { padding: 0 12px; }
}

/* forms */
.form { max-width: 640px; }
.field { margin-bottom: 14px; }
.field label { display: block; font-weight: 700; margin-bottom: 5px; color: var(--ink-soft); }
.field input, .field textarea {
	width: 100%; padding: 11px 12px;
	font: 16px var(--font); color: var(--ink);
	border: 1px solid #cfc9c3; border-radius: 8px; background: #fff;
}
.field textarea { min-height: 260px; line-height: 1.5; resize: vertical; }
.field input:focus, .field textarea:focus { border-color: var(--brand); outline: none; box-shadow: 0 0 0 3px rgba(200, 94, 53, .18); }
.field.has-error input, .field.has-error textarea { border-color: #c0392b; }
.err { margin: 5px 0 0; color: #b0321f; font-weight: 600; font-size: .9rem; }
.captcha-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.captcha-row img { border-radius: 6px; border: 1px solid var(--line); }
.captcha-row input { flex: 1; min-width: 120px; width: auto; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }

.notice { padding: 12px 14px; border-radius: 8px; margin-bottom: 14px; font-weight: 600; }
.notice.ok { background: #eef5dc; border-left: 5px solid var(--green); }
.notice.error { background: #fdece6; border-left: 5px solid #c0392b; }

/* "last videos" HTML that comes from videoclipuri.versuri-versuri.ro */
.last-videos { overflow: hidden; }
.last-videos::after { content: ""; display: block; clear: both; }
.last-videos img { max-width: 100%; height: auto; }
.last-videos table { max-width: 100%; }

/* ads (Google AdSense, placements set in Admin > Reclame) */
.ad { text-align: center; margin: 0 0 16px; overflow: hidden; clear: both; }
.ad-fixed { min-height: var(--ad-h, 60px); }
.ad-auto { min-height: 90px; }
.ad .ad-mobile { display: none; }
.ad.ad-narrow .ad-mobile { display: block; }
.ad ins.adsbygoogle { max-width: 100%; }
.sidebar .ad { margin: 0 auto 16px; }

/* ==========================================================================
   Sidebar (same look as the old orange right column)
   ========================================================================== */
.sidebar { min-width: 0; }
.side-box {
	background: var(--brand); color: #fee1d5;
	border-radius: var(--radius); padding: 14px 16px; margin-bottom: 14px;
	font-size: .92rem;
}
.side-box h2 { font-size: .98rem; color: #fff; margin-bottom: 8px; }
.side-box ol { margin: 0; padding-left: 1.4em; }
.side-box li { padding: 3px 0; }
.side-box a { color: var(--cream); }
.side-box a:hover { color: #fff; }
.side-box .empty { list-style: none; margin-left: -1.4em; color: #fee1d5; }
.side-link {
	margin: 0 0 14px; padding: 10px 16px;
	background: var(--brand); border-radius: var(--radius);
}
.side-link a { color: var(--cream); font-weight: 600; }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer { background: var(--ink-soft); color: #cfcbc7; padding: 22px 0 28px; font-size: .9rem; }
.site-footer a { color: #f3c4ae; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-bottom: 12px; }
.footer-nav a { color: #fff; font-weight: 600; }
.partners { line-height: 1.9; margin: 0 0 10px; }
/* partner links look exactly like the surrounding text */
.partners a, .partners a:hover, .partners a:visited, .partners a:focus {
	color: inherit; text-decoration: none; cursor: text;
}
.copyright { margin: 0; color: #a9a5a1; }

/* ==========================================================================
   Larger screens
   ========================================================================== */
@media (min-width: 600px) {
	h1 { font-size: 1.75rem; }
	.search-btn span { display: inline; }
	.item-list.cols { column-count: 2; column-gap: 24px; }
	.item-list.cols li { break-inside: avoid; }
	.lyrics-foot .btn { width: auto; }
	.sidebar { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; align-items: start; }
	.sidebar .ad, .sidebar .side-link { grid-column: span 2; }
}

@media (min-width: 900px) {
	.brand { font-size: 2rem; }
	.brand-row { padding-top: 16px; }
	.search-band .wrap { display: flex; align-items: center; gap: 16px; }
	.search-label { margin: 0; flex: none; }
	.search { display: flex; align-items: center; gap: 16px; width: 100%; }
	.search-box { flex: 1; }
	.layout { grid-template-columns: minmax(0, 1fr) 300px; gap: 24px; padding-top: 22px; }
	.sidebar { display: block; }
	.card { padding: 22px 24px; }
	.lyrics-text { font-size: 1.12rem; }
	/* A-Z: always open on desktop, tabs side by side */
	.az-tabs { max-width: 420px; }
	.letters { grid-template-columns: repeat(auto-fill, minmax(34px, 1fr)); gap: 5px; }
	.letters a { height: 34px; }
}

@media (min-width: 1100px) {
	.item-list.cols { column-count: 2; }
	.page-ultimele_versuri .item-list.cols { column-count: 3; }
}

@media print {
	.site-header, .sidebar, .site-footer, .ad, .pagination, .lyrics-foot { display: none !important; }
	body { background: #fff; }
	.card { box-shadow: none; padding: 0; }
}

@media (prefers-reduced-motion: reduce) {
	* { transition: none !important; }
}
