/* ═══════════════════════════════════════════════════════
   LyricsWorld – Main Stylesheet
   ═══════════════════════════════════════════════════════ */

/* ── Google Fonts ──────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Nunito+Sans:wght@400;600;700&family=Poppins:wght@600;700&display=swap');

/* ── CSS Variables ─────────────────────────────────────── */
:root {
  --primary: #005af0;
  --primary-light: #3d7ff5;
  --primary-dark: #0041b5;
  --bg: #fafafc;
  --bg2: #ffffff;
  --bg3: #f0f1f5;
  --text: #48525c;
  --text-dark: #161617;
  --text-muted: #767676;
  --border: #ebeced;
  --shadow: 0 4px 20px rgba(0, 0, 0, .07);
  --shadow-md: 0 8px 30px rgba(0, 0, 0, .1);
  --radius: 8px;
  --radius-lg: 14px;
  --sidebar-w: 240px;
  --header-h: 60px;
  --font-body: 'Nunito Sans', sans-serif;
  --font-head: 'Poppins', sans-serif;
  --transition: all .2s ease;
}

.dark-mode {
  --bg: #1a1a2e;
  --bg2: #16213e;
  --bg3: #0f3460;
  --text: #cdd2d8;
  --text-dark: #f0f0f0;
  --text-muted: #8892a4;
  --border: rgba(255, 255, 255, .08);
  --shadow: 0 4px 20px rgba(0, 0, 0, .3);
}

/* ── Reset ─────────────────────────────────────────────── */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  overflow-x: hidden;
  transition: background .3s, color .3s;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: var(--primary-light);
}

img {
  max-width: 100%;
  display: block;
}

ul {
  list-style: none;
}

button {
  cursor: pointer;
  border: none;
  background: none;
  font: inherit;
}

select {
  font: inherit;
}

svg {
  display: inline-block;
  vertical-align: middle;
}

/* ── Layout ────────────────────────────────────────────── */
.nav-toggle-input {
  display: none;
}

.site-wrapper {
  display: flex;
  min-height: 100vh;
}

.main-wrapper {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  padding-left: var(--sidebar-w);
  transition: padding-left .2s ease;
}

/* ── Sidebar ───────────────────────────────────────────── */
#sidebar {
  position: fixed;
  top: 0;
  left: 0;
  width: var(--sidebar-w);
  height: 100vh;
  background: var(--bg2);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  z-index: 200;
  overflow-y: auto;
  overflow-x: hidden;
  transition: transform .25s ease, width .25s ease;
  box-shadow: 2px 0 12px rgba(0, 0, 0, .05);
}

.sidebar-logo {
  padding: 20px 20px 16px;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}

.sidebar-logo a {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-dark);
  font-weight: 700;
  font-family: var(--font-head);
  font-size: 1.15rem;
}

.logo-icon {
  font-size: 1.5rem;
}

.sidebar-nav {
  flex: 1;
  padding: 12px 0;
}

.sidebar-nav ul {
  padding: 0;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 20px;
  color: var(--text);
  font-weight: 600;
  font-size: .9rem;
  border-left: 3px solid transparent;
  transition: var(--transition);
  width: 100%;
  text-align: left;
}

.nav-item:hover,
.nav-item.active {
  background: rgba(0, 90, 240, .06);
  color: var(--primary);
  border-left-color: var(--primary);
}

.nav-item svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
  flex-shrink: 0;
}

.has-sub .sub-nav {
  display: none;
  background: rgba(0, 0, 0, .02);
}

.has-sub.open .sub-nav {
  display: block;
}

.has-sub.open .nav-expand .arrow {
  transform: rotate(180deg);
}

.nav-expand .arrow {
  margin-left: auto;
  width: 20px;
  height: 20px;
  fill: currentColor;
  transition: transform .2s;
}

.sub-nav .nav-item {
  padding-left: 40px;
  font-size: .85rem;
  font-weight: 400;
  border-left: none;
}

.sub-nav .nav-item::before {
  content: "#";
  color: var(--primary);
  font-size: .75rem;
}

.sidebar-footer {
  padding: 16px 20px;
  border-top: 1px solid var(--border);
  flex-shrink: 0;
}

.lang-label {
  font-size: .78rem;
  color: var(--text-muted);
  display: block;
  margin-bottom: 6px;
  font-weight: 600;
}

.lang-selector-wrap select,
.lang-select-header select {
  width: 100%;
  padding: 6px 10px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--bg);
  color: var(--text);
  font-size: .85rem;
  cursor: pointer;
}

.social-links {
  display: flex;
  gap: 12px;
  margin-top: 14px;
}

.social-links a svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: var(--text-muted);
  stroke-width: 2;
  transition: var(--transition);
}

.social-links a:hover svg {
  stroke: var(--primary);
}

/* ── Header ────────────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  background: var(--bg2);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 24px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, .06);
}

.header-left {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
}

.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-dark);
  border-radius: 2px;
  transition: var(--transition);
}

.header-logo {
  display: none;
  align-items: center;
  gap: 8px;
  color: var(--text-dark);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1rem;
}

.header-search {
  flex: 1;
  max-width: 500px;
  position: relative;
}

.header-search form {
  display: flex;
  align-items: center;
  background: var(--bg3);
  border-radius: 50px;
  overflow: hidden;
  padding: 0 16px;
  gap: 8px;
  transition: box-shadow .2s;
}

.header-search form:focus-within {
  box-shadow: 0 0 0 2px var(--primary);
}

.header-search input {
  flex: 1;
  border: none;
  background: transparent;
  padding: 10px 0;
  font-size: .9rem;
  color: var(--text-dark);
  outline: none;
}

.header-search input::placeholder {
  color: var(--text-muted);
}

.header-search button {
  background: none;
  border: none;
  color: var(--text-muted);
  display: flex;
  align-items: center;
}

.header-search button svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.5;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
  flex-shrink: 0;
}

.dark-toggle {
  font-size: 1.1rem;
  padding: 6px;
  border-radius: 50px;
  background: var(--bg3);
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.dark-toggle:hover {
  background: var(--border);
}

.lang-select-header {
  display: none;
}

.admin-link {
  font-size: .8rem;
  font-weight: 600;
  padding: 6px 14px;
  background: var(--primary);
  color: #fff;
  border-radius: 6px;
  transition: var(--transition);
}

.admin-link:hover {
  background: var(--primary-dark);
  color: #fff;
}

/* ── Ad Banner ─────────────────────────────────────────── */
.ad-banner {
  padding: 8px 24px;
}

.ad-placeholder {
  background: linear-gradient(90deg, var(--bg3), var(--border), var(--bg3));
  border-radius: 6px;
  height: 90px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: .78rem;
  letter-spacing: 1px;
  text-transform: uppercase;
}

/* ── Main Content ──────────────────────────────────────── */
.app-content {
  flex: 1;
  padding: 24px;
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
}

/* ── Spinner ───────────────────────────────────────────── */
.spinner-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 300px;
}

.spinner {
  width: 44px;
  height: 44px;
  border: 4px solid var(--border);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin .8s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* ── Search Dropdown ───────────────────────────────────── */
.search-dropdown {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  z-index: 300;
  max-height: 320px;
  overflow-y: auto;
}

.search-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  cursor: pointer;
  transition: var(--transition);
}

.search-item:hover {
  background: var(--bg3);
}

.search-item img {
  width: 44px;
  height: 44px;
  object-fit: cover;
  border-radius: 6px;
  flex-shrink: 0;
  background: var(--bg3);
}

.search-item .si-info .si-title {
  font-weight: 600;
  font-size: .88rem;
  color: var(--text-dark);
}

.search-item .si-info .si-artist {
  font-size: .78rem;
  color: var(--text-muted);
}

/* ── Home Page ─────────────────────────────────────────── */
.page-home {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 28px;
}

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.section-title {
  font-family: var(--font-head);
  font-size: 1.1rem;
  color: var(--text-dark);
  font-weight: 700;
  position: relative;
  padding-left: 14px;
}

.section-title::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: var(--primary);
  border-radius: 4px;
}

.view-all {
  font-size: .82rem;
  color: var(--primary);
  font-weight: 600;
}

/* ── Article Grid ──────────────────────────────────────── */
.articles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.article-card {
  background: var(--bg2);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: transform .2s ease, box-shadow .2s ease;
  cursor: pointer;
}

.article-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.card-thumb {
  position: relative;
  padding-top: 55%;
  overflow: hidden;
  background: var(--bg3);
}

.card-thumb img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .3s ease;
}

.article-card:hover .card-thumb img {
  transform: scale(1.05);
}

.card-thumb .no-img {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
}

.card-body {
  padding: 14px;
}

.card-labels {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 8px;
}

.card-label {
  font-size: .7rem;
  padding: 2px 8px;
  border-radius: 50px;
  background: rgba(0, 90, 240, .1);
  color: var(--primary);
  font-weight: 700;
}

.card-title {
  font-family: var(--font-head);
  font-size: .92rem;
  color: var(--text-dark);
  font-weight: 700;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-artist {
  font-size: .78rem;
  color: var(--text-muted);
  margin-top: 6px;
}

.card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 10px;
  font-size: .72rem;
  color: var(--text-muted);
}

.card-views {
  display: flex;
  align-items: center;
  gap: 4px;
}

.card-views svg {
  width: 14px;
  height: 14px;
  fill: var(--text-muted);
}

/* ── Sidebar Widgets ───────────────────────────────────── */
.widget {
  background: var(--bg2);
  border-radius: var(--radius-lg);
  padding: 20px;
  box-shadow: var(--shadow);
  margin-bottom: 22px;
}

.widget-title {
  font-family: var(--font-head);
  font-size: .95rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--border);
}

/* Popular Posts */
.popular-item {
  display: flex;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
  transition: var(--transition);
}

.popular-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.popular-item:hover .pop-title {
  color: var(--primary);
}

.pop-num {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  background: var(--bg3);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: .75rem;
  color: var(--primary);
  font-family: var(--font-head);
}

.pop-info {
  min-width: 0;
}

.pop-title {
  font-size: .83rem;
  font-weight: 600;
  color: var(--text-dark);
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.pop-artist {
  font-size: .72rem;
  color: var(--text-muted);
  margin-top: 2px;
}

/* Categories Widget */
.cat-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.cat-chip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--bg3);
  border-radius: 8px;
  padding: 8px 10px;
  cursor: pointer;
  transition: var(--transition);
  font-size: .8rem;
  font-weight: 600;
  color: var(--text-dark);
}

.cat-chip:hover {
  background: rgba(0, 90, 240, .1);
  color: var(--primary);
}

.cat-chip .cat-count {
  font-size: .68rem;
  background: var(--border);
  padding: 2px 6px;
  border-radius: 50px;
}

/* ── Article Page ──────────────────────────────────────── */
.page-article {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 28px;
}

.article-main .article-hero {
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 24px;
  position: relative;
  padding-top: 40%;
  background: var(--bg3);
}

.article-main .article-hero img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.article-breadcrumb {
  font-size: .78rem;
  color: var(--text-muted);
  margin-bottom: 12px;
  display: flex;
  gap: 6px;
  align-items: center;
  flex-wrap: wrap;
}

.article-breadcrumb a {
  color: var(--text-muted);
}

.article-breadcrumb a:hover {
  color: var(--primary);
}

.article-breadcrumb .sep {
  color: var(--border);
}

.article-genre-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.genre-badge {
  padding: 4px 14px;
  border-radius: 50px;
  background: rgba(0, 90, 240, .1);
  color: var(--primary);
  font-size: .78rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
}

.genre-badge:hover {
  background: var(--primary);
  color: #fff;
}

.article-title {
  font-family: var(--font-head);
  font-size: 1.75rem;
  color: var(--text-dark);
  line-height: 1.3;
  margin-bottom: 8px;
}

.article-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: .8rem;
  color: var(--text-muted);
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.article-meta .meta-item {
  display: flex;
  align-items: center;
  gap: 5px;
}

.article-meta svg {
  width: 15px;
  height: 15px;
  fill: var(--text-muted);
}

.article-divider {
  border: none;
  border-top: 2px solid var(--border);
  margin: 24px 0;
}

.article-content {
  font-size: 1rem;
  line-height: 1.85;
  color: var(--text);
}

.article-content h1,
.article-content h2,
.article-content h3,
.article-content h4 {
  font-family: var(--font-head);
  color: var(--text-dark);
  margin: 1.5em 0 .6em;
  line-height: 1.3;
}

.article-content h1 {
  font-size: 1.5rem;
}

.article-content h2 {
  font-size: 1.3rem;
  border-bottom: 2px solid var(--border);
  padding-bottom: 6px;
}

.article-content h3 {
  font-size: 1.1rem;
}

.article-content p {
  margin: 1em 0;
}

.article-content pre {
  background: #1e1e2e;
  color: #cdd6f4;
  padding: 20px 24px;
  border-radius: var(--radius);
  font-size: .88rem;
  line-height: 1.7;
  overflow-x: auto;
  margin: 1.5em 0;
  font-family: 'Fira Mono', monospace;
}

.article-content blockquote {
  border-left: 4px solid var(--primary);
  margin: 1.5em 0;
  padding: 14px 20px;
  background: rgba(0, 90, 240, .04);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-style: italic;
}

.article-content a {
  color: var(--primary);
  font-weight: 600;
}

.article-content strong {
  color: var(--text-dark);
}

.article-content hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: 2em 0;
}

.article-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}

.tag-chip {
  font-size: .75rem;
  padding: 4px 12px;
  border-radius: 50px;
  background: var(--bg3);
  color: var(--text-muted);
  cursor: pointer;
  transition: var(--transition);
}

.tag-chip:hover {
  background: var(--primary);
  color: #fff;
}

.tag-chip::before {
  content: "#";
}

/* Share Buttons */
.share-section {
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}

.share-title {
  font-family: var(--font-head);
  font-size: .95rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 14px;
}

.share-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.share-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 18px;
  border-radius: 8px;
  font-size: .82rem;
  font-weight: 700;
  color: #fff;
  transition: var(--transition);
  flex: 1;
  justify-content: center;
  min-width: 120px;
}

.share-btn:hover {
  opacity: .85;
  transform: translateY(-1px);
}

.share-fb {
  background: #3b5998;
}

.share-tw {
  background: #1da1f2;
}

.share-wa {
  background: #25d366;
}

.share-btn svg {
  width: 16px;
  height: 16px;
  fill: #fff;
}

/* Related Articles */
.related-section {
  margin-top: 40px;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.related-card {
  background: var(--bg2);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  cursor: pointer;
  transition: transform .2s;
}

.related-card:hover {
  transform: translateY(-3px);
}

.related-thumb {
  padding-top: 60%;
  position: relative;
  background: var(--bg3);
  overflow: hidden;
}

.related-thumb img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.related-info {
  padding: 10px;
}

.related-title {
  font-size: .78rem;
  font-weight: 700;
  color: var(--text-dark);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.35;
}

.related-artist {
  font-size: .7rem;
  color: var(--text-muted);
  margin-top: 4px;
}

/* ── Pagination ────────────────────────────────────────── */
.pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 32px;
  flex-wrap: wrap;
}

.page-btn {
  padding: 8px 16px;
  border-radius: 8px;
  font-size: .85rem;
  font-weight: 600;
  background: var(--bg2);
  color: var(--text);
  border: 1px solid var(--border);
  cursor: pointer;
  transition: var(--transition);
}

.page-btn:hover,
.page-btn.active {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

.page-btn:disabled {
  opacity: .4;
  cursor: not-allowed;
}

/* ── Category / Search Page ────────────────────────────── */
.page-list .articles-grid {
  grid-template-columns: repeat(3, 1fr);
}

.page-header-block {
  margin-bottom: 24px;
}

.page-header-block h1 {
  font-family: var(--font-head);
  font-size: 1.5rem;
  color: var(--text-dark);
}

.page-header-block p {
  color: var(--text-muted);
  font-size: .9rem;
  margin-top: 4px;
}

/* ── Static Pages ──────────────────────────────────────── */
.static-page {
  max-width: 780px;
}

.static-page h1 {
  font-family: var(--font-head);
  font-size: 2rem;
  color: var(--text-dark);
  margin-bottom: 20px;
}

.static-page h2 {
  font-family: var(--font-head);
  font-size: 1.25rem;
  color: var(--text-dark);
  margin: 2em 0 .7em;
}

.static-page p {
  margin: 1em 0;
  line-height: 1.8;
}

.static-page ul {
  padding-left: 20px;
  list-style: disc;
}

.static-page a {
  color: var(--primary);
}

/* Contact Form */
.contact-form {
  max-width: 560px;
}

.form-group {
  margin-bottom: 18px;
}

.form-group label {
  display: block;
  font-weight: 600;
  font-size: .88rem;
  color: var(--text-dark);
  margin-bottom: 6px;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--bg);
  color: var(--text-dark);
  font: inherit;
  font-size: .9rem;
  transition: var(--transition);
  outline: none;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(0, 90, 240, .12);
}

.form-group textarea {
  min-height: 130px;
  resize: vertical;
}

.btn-primary {
  padding: 12px 28px;
  background: var(--primary);
  color: #fff;
  border-radius: 8px;
  font-size: .9rem;
  font-weight: 700;
  font-family: var(--font-head);
  cursor: pointer;
  transition: var(--transition);
  border: none;
}

.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
}

.form-success {
  background: #e8f5e9;
  border: 1px solid #4caf50;
  color: #2e7d32;
  padding: 12px 16px;
  border-radius: 8px;
  margin-top: 14px;
  display: none;
}

/* Sitemap */
.sitemap-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.sitemap-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  background: var(--bg2);
  border-radius: 8px;
  box-shadow: var(--shadow);
  cursor: pointer;
  transition: var(--transition);
}

.sitemap-item:hover {
  background: rgba(0, 90, 240, .05);
}

.sitemap-num {
  font-family: var(--font-head);
  font-size: 1.1rem;
  color: rgba(0, 90, 240, .25);
  font-weight: 700;
  width: 32px;
  flex-shrink: 0;
}

.sitemap-item-info .sit-title {
  font-size: .9rem;
  font-weight: 700;
  color: var(--text-dark);
}

.sitemap-item-info .sit-artist {
  font-size: .75rem;
  color: var(--text-muted);
}

/* ── Footer ────────────────────────────────────────────── */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 24px;
  margin-top: auto;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin-bottom: 14px;
}

.footer-links a {
  font-size: .82rem;
  color: var(--text-muted);
  transition: var(--transition);
}

.footer-links a:hover {
  color: var(--primary);
}

.footer-credit p {
  font-size: .78rem;
  color: var(--text-muted);
}

/* ── Language Selector ─────────────────────────────────── */

/* ── Nav Overlay (mobile) ──────────────────────────────── */
.nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, .4);
  z-index: 150;
}

/* ── Responsive ─────────────────────────────────────────── */
@media (max-width: 1100px) {

  .page-home,
  .page-article {
    grid-template-columns: 1fr 280px;
  }

  .articles-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .related-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  :root {
    --sidebar-w: 0px;
  }

  .main-wrapper {
    padding-left: 0;
  }

  #sidebar {
    transform: translateX(-100%);
    width: 260px;
  }

  .nav-toggle-input:checked~.site-wrapper #sidebar {
    transform: translateX(0);
  }

  .nav-toggle-input:checked~.nav-overlay {
    display: block;
  }

  .hamburger {
    display: flex;
  }

  .header-logo {
    display: flex;
  }

  .page-home,
  .page-article {
    grid-template-columns: 1fr;
  }

  .sidebar-widget-col {
    display: none;
  }

  .app-content {
    padding: 16px;
  }

  .lang-select-header {
    display: block;
  }

  .admin-link {
    display: none;
  }

  .related-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .articles-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .article-title {
    font-size: 1.3rem;
  }
}

@media (max-width: 360px) {
  .articles-grid {
    grid-template-columns: 1fr;
  }

  .related-grid {
    grid-template-columns: 1fr;
  }
}

/* ── Load More Button ──────────────────────────────────── */
.load-more-wrap {
  text-align: center;
  margin-top: 24px;
}

.load-more-btn {
  padding: 12px 36px;
  border-radius: 50px;
  border: 2px solid var(--primary);
  color: var(--primary);
  font-weight: 700;
  font-size: .9rem;
  cursor: pointer;
  background: transparent;
  transition: var(--transition);
}

.load-more-btn:hover {
  background: var(--primary);
  color: #fff;
}

.load-more-btn:disabled {
  opacity: .4;
  cursor: not-allowed;
}

/* ── Empty State ───────────────────────────────────────── */
.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-muted);
}

.empty-state .empty-icon {
  font-size: 3rem;
  margin-bottom: 12px;
  opacity: .5;
}

.empty-state p {
  font-size: .95rem;
}

/* ── Filter Bar ────────────────────────────────────────── */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}

.filter-chip {
  padding: 6px 16px;
  border-radius: 50px;
  border: 1px solid var(--border);
  font-size: .82rem;
  font-weight: 600;
  cursor: pointer;
  background: var(--bg2);
  color: var(--text);
  transition: var(--transition);
}

.filter-chip:hover,
.filter-chip.active {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

/* ── Toast ─────────────────────────────────────────────── */
#toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--text-dark);
  color: #fff;
  padding: 10px 24px;
  border-radius: 50px;
  font-size: .85rem;
  z-index: 9999;
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s;
}

#toast.show {
  opacity: 1;
}

/* ── Song Info Table ────────────────────────────────────── */
.song-info-table {
  width: 100%;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--border);
  margin: 18px 0 24px;
  font-size: .92rem;
}

.song-info-row {
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--border);
}

.song-info-row:last-child {
  border-bottom: none;
}

.song-info-row:nth-child(odd) {
  background: var(--bg3);
}

.song-info-row:nth-child(even) {
  background: var(--bg2);
}

.song-info-label {
  flex: 0 0 140px;
  padding: 11px 16px;
  font-weight: 700;
  font-size: .8rem;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--text-muted);
  border-right: 1px solid var(--border);
  background: rgba(0, 0, 0, .02);
}

.dark-mode .song-info-label {
  background: rgba(255, 255, 255, .03);
}

.song-info-value {
  flex: 1;
  padding: 11px 16px;
  color: var(--text-dark);
  font-weight: 500;
}

@media (max-width: 480px) {
  .song-info-label {
    flex: 0 0 110px;
    font-size: .72rem;
  }
}

/* ── YouTube Embed ──────────────────────────────────────── */
.yt-embed-wrap {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 24px;
  background: #000;
  box-shadow: var(--shadow-md);
  aspect-ratio: 16/9;
}

.yt-embed-wrap iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

/* Click-to-play thumbnail overlay */
.yt-thumb-overlay {
  position: relative;
  width: 100%;
  height: 100%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #000;
}

.yt-thumb-overlay img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: opacity .2s;
}

.yt-thumb-overlay:hover img {
  opacity: .85;
}

.yt-play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(1);
  transition: transform .2s;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, .5));
  pointer-events: none;
}

.yt-thumb-overlay:hover .yt-play-btn {
  transform: translate(-50%, -50%) scale(1.12);
}

.yt-watch-link {
  position: absolute;
  bottom: 12px;
  right: 14px;
  background: rgba(0, 0, 0, .7);
  color: #fff;
  font-size: .78rem;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 20px;
  text-decoration: none;
  backdrop-filter: blur(4px);
  transition: background .2s;
  z-index: 2;
}

.yt-watch-link:hover {
  background: rgba(255, 0, 0, .85);
}

/* ── Tag Cloud (sidebar) ───────────────────────────────── */
.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag-cloud .tag-chip {
  text-decoration: none;
  display: inline-block;
  font-size: .78rem;
  padding: 5px 14px;
  border-radius: 50px;
  background: var(--bg3);
  color: var(--text-muted);
  transition: var(--transition);
  font-weight: 600;
}

.tag-cloud .tag-chip:hover {
  background: var(--primary);
  color: #fff;
}

/* ══════════════════════════════════════════════════════════
   AI Lyrics Generator Page
   ══════════════════════════════════════════════════════════ */
.gen-wrapper {
  max-width: 820px;
  margin: 0 auto;
  padding: 0 0 40px;
}

/* Hero */
.gen-hero {
  background: linear-gradient(135deg, #1e1b4b 0%, #312e81 45%, #7c3aed 100%);
  border-radius: 20px;
  padding: 2.5rem 2rem;
  text-align: center;
  margin-bottom: 1.5rem;
  position: relative;
  overflow: hidden;
  box-shadow: 0 8px 40px rgba(124, 58, 237, .25);
}

.gen-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 70% 30%, rgba(6, 182, 212, .12) 0%, transparent 65%);
  pointer-events: none;
}

.gen-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: rgba(255, 255, 255, .1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, .15);
  border-radius: 50px;
  padding: 5px 16px;
  font-size: .72rem;
  font-weight: 700;
  color: #c4b5fd;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 1rem;
  position: relative;
  z-index: 1;
}

.gen-hero-title {
  font-size: 1.9rem;
  font-weight: 800;
  background: linear-gradient(135deg, #fff 0%, #c4b5fd 50%, #67e8f9 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin: 0 0 .6rem;
  position: relative;
  z-index: 1;
  line-height: 1.25;
}

.gen-hero-sub {
  font-size: .95rem;
  color: rgba(255, 255, 255, .72);
  margin: 0 auto;
  max-width: 520px;
  line-height: 1.6;
  position: relative;
  z-index: 1;
}

.gen-live-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 1.25rem;
  position: relative;
  z-index: 1;
}

.gen-live-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 50px;
  padding: 5px 14px;
  font-size: .75rem;
  font-weight: 500;
  color: rgba(255, 255, 255, .85);
}

.gen-live-pill b {
  color: #fff;
}

.gen-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #34d399;
  animation: genBlink 1.5s ease-in-out infinite;
}

@keyframes genBlink {

  0%,
  100% {
    opacity: 1
  }

  50% {
    opacity: .25
  }
}

/* Cards */
.gen-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.75rem;
  margin-bottom: 1.25rem;
}

.gen-label {
  font-size: .75rem;
  font-weight: 700;
  color: #7c3aed;
  text-transform: uppercase;
  letter-spacing: 1.3px;
  margin: 0 0 .85rem;
}

/* Genre buttons */
.gen-genres {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(105px, 1fr));
  gap: 10px;
  margin-bottom: 1.5rem;
}

.gen-gbtn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  padding: 12px 8px;
  border: 2px solid var(--border);
  border-radius: 12px;
  background: transparent;
  color: var(--text);
  cursor: pointer;
  font-size: .8rem;
  font-weight: 600;
  transition: all .25s ease;
  opacity: .65;
}

.gen-gicon {
  font-size: 1.4rem;
  line-height: 1;
}

.gen-gbtn:hover {
  border-color: #a78bfa;
  opacity: 1;
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(124, 58, 237, .15);
}

.gen-gbtn.active {
  border-color: #7c3aed;
  background: rgba(124, 58, 237, .1);
  opacity: 1;
  color: #7c3aed;
  box-shadow: 0 0 18px rgba(124, 58, 237, .18);
}

/* Prompt */
.gen-prompt-wrap {
  margin-bottom: 1.25rem;
}

.gen-prompt {
  width: 100%;
  min-height: 80px;
  padding: 12px 14px;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  background: var(--bg3);
  color: var(--text);
  font-size: .9rem;
  line-height: 1.55;
  resize: vertical;
  outline: none;
  transition: border-color .25s ease;
  font-family: var(--font);
}

.gen-prompt:focus {
  border-color: #7c3aed;
  box-shadow: 0 0 0 3px rgba(124, 58, 237, .1);
}

.gen-prompt::placeholder {
  opacity: .4;
  font-style: italic;
}

.gen-tip {
  font-size: .73rem;
  color: var(--text-muted);
  margin: 6px 0 0;
}

/* Generate button */
.gen-btn {
  width: 100%;
  padding: 15px 28px;
  background: linear-gradient(135deg, #7c3aed 0%, #6d28d9 50%, #06b6d4 100%);
  background-size: 200% auto;
  color: #fff;
  border: none;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-transform: uppercase;
  letter-spacing: .8px;
  transition: all .35s ease;
  position: relative;
  overflow: hidden;
}

.gen-btn:hover {
  background-position: right center;
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(124, 58, 237, .4);
}

.gen-btn:disabled {
  opacity: .75;
  cursor: not-allowed;
  transform: none;
}

.gen-spinner {
  display: none;
  width: 18px;
  height: 18px;
  border: 3px solid rgba(255, 255, 255, .3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: genSpin .7s linear infinite;
}

@keyframes genSpin {
  to {
    transform: rotate(360deg);
  }
}

/* Output */
.gen-out-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  padding-bottom: 1rem;
  margin-bottom: .5rem;
  border-bottom: 1px solid var(--border);
}

.gen-out-btns {
  display: flex;
  gap: 8px;
}

.gen-abtn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 14px;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  background: transparent;
  color: var(--text);
  cursor: pointer;
  font-size: .78rem;
  font-weight: 500;
  transition: all .2s ease;
  opacity: .7;
}

.gen-abtn:hover {
  opacity: 1;
  border-color: #7c3aed;
}

.gen-abtn.copied {
  border-color: #34d399;
  color: #34d399;
  opacity: 1;
}

.gen-output-pre {
  font-family: 'JetBrains Mono', 'Fira Mono', 'Consolas', monospace;
  font-size: .88rem;
  line-height: 1.9;
  padding: .5rem 0;
  margin: 0;
  color: var(--text);
  white-space: pre-wrap;
  word-wrap: break-word;
  min-height: 180px;
  max-height: 580px;
  overflow-y: auto;
  background: transparent;
  border: none;
}

.gen-section {
  color: #7c3aed;
  font-weight: 700;
  font-size: .78rem;
  letter-spacing: 2px;
}

.gen-empty-ph {
  opacity: .45;
  font-family: var(--font);
  font-style: italic;
  padding: 2rem 0;
  text-align: center;
}

/* Stats */
.gen-stats {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  padding-top: .85rem;
  border-top: 1px solid var(--border);
  margin-top: .5rem;
}

.gen-stat {
  font-size: .75rem;
  color: var(--text-muted);
}

.gen-stat b {
  color: #7c3aed;
}

/* Tips grid */
.gen-tips-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(145px, 1fr));
  gap: 10px;
}

.gen-tip-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1rem;
  font-size: .8rem;
  line-height: 1.5;
  text-align: center;
  transition: border-color .2s ease;
}

.gen-tip-card:hover {
  border-color: #a78bfa;
}

.gen-tip-card small {
  color: var(--text-muted);
  font-size: .72rem;
}

@media (max-width: 600px) {
  .gen-hero-title {
    font-size: 1.35rem;
  }

  .gen-genres {
    grid-template-columns: repeat(4, 1fr);
  }

  .gen-card {
    padding: 1.25rem;
  }
}

/* ══════════════════════════════════════════════════════════
   Cookie Consent Banner (kept below)
   ══════════════════════════════════════════════════════════ */

.cookie-banner {
  position: fixed;
  bottom: -200px;
  left: 0;
  right: 0;
  z-index: 9999;
  padding: 20px 24px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 -8px 40px rgba(0, 0, 0, 0.12);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  transition: bottom 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
  flex-wrap: wrap;
}

.cookie-banner.show {
  bottom: 0;
}

.dark-mode .cookie-banner {
  background: rgba(22, 22, 35, 0.95);
  border-top-color: rgba(255, 255, 255, 0.08);
  box-shadow: 0 -8px 40px rgba(0, 0, 0, 0.5);
}

.cookie-banner-inner {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  flex: 1;
  min-width: 0;
}

.cookie-icon {
  font-size: 2rem;
  flex-shrink: 0;
  animation: cookieWiggle 2s ease-in-out infinite;
}

@keyframes cookieWiggle {

  0%,
  100% {
    transform: rotate(-8deg);
  }

  50% {
    transform: rotate(8deg);
  }
}

.cookie-content {
  min-width: 0;
}

.cookie-title {
  font-family: var(--font-head);
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-dark);
  margin: 0 0 6px;
}

.cookie-text {
  font-size: .82rem;
  color: var(--text-muted);
  line-height: 1.55;
  margin: 0;
}

.cookie-actions {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
  align-items: center;
  flex-wrap: wrap;
}

.cookie-btn {
  padding: 10px 20px;
  border-radius: 50px;
  font-size: .83rem;
  font-weight: 700;
  font-family: var(--font-head);
  cursor: pointer;
  border: none;
  transition: all .2s ease;
  white-space: nowrap;
}

.cookie-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, .15);
}

.cookie-btn:active {
  transform: translateY(0);
}

/* Privacy Policy button */
.cookie-btn-policy {
  background: transparent;
  border: 2px solid var(--border);
  color: var(--text-muted);
  padding: 8px 16px;
  font-size: .78rem;
}

.cookie-btn-policy:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: rgba(0, 90, 240, .05);
}

/* Decline button */
.cookie-btn-decline {
  background: var(--bg3);
  color: var(--text);
}

.cookie-btn-decline:hover {
  background: #e8e8e8;
}

.dark-mode .cookie-btn-decline:hover {
  background: rgba(255, 255, 255, .1);
}

/* Accept button — primary CTA */
.cookie-btn-accept {
  background: linear-gradient(135deg, var(--primary), #0052e0);
  color: #fff;
  box-shadow: 0 4px 20px rgba(0, 90, 240, .35);
  padding: 11px 26px;
  font-size: .88rem;
}

.cookie-btn-accept:hover {
  box-shadow: 0 6px 28px rgba(0, 90, 240, .5);
  background: linear-gradient(135deg, #0052e0, var(--primary));
}

/* Responsive */
@media (max-width: 640px) {
  .cookie-banner {
    flex-direction: column;
    align-items: stretch;
    padding: 18px 16px;
  }

  .cookie-actions {
    justify-content: stretch;
  }

  .cookie-btn {
    flex: 1;
    text-align: center;
  }
}

/* ══════════════════════════════════════════════════════════
   Generator Below-fold Content — FAQ · Article · Reviews
   ══════════════════════════════════════════════════════════ */

/* Section wrapper */
.gen-section-wrap {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 2rem;
  margin-top: 1.5rem;
}

/* Section heading */
.gen-section-heading {
  font-size: 1.25rem;
  font-weight: 800;
  margin: 0 0 1.5rem;
  background: linear-gradient(135deg, #a78bfa 0%, #67e8f9 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── FAQ Accordion ─────────────────────────────── */
.gen-faq-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.gen-faq-item {
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  transition: border-color .2s;
}

.gen-faq-item:hover {
  border-color: #a78bfa;
}

.gen-faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 1rem 1.25rem;
  background: transparent;
  border: none;
  cursor: pointer;
  color: var(--text);
  font-size: .92rem;
  font-weight: 600;
  text-align: left;
  line-height: 1.4;
}

.gen-faq-q:hover {
  background: rgba(124, 58, 237, .04);
}

.gen-faq-icon {
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1.5px solid var(--border);
  font-size: 1.1rem;
  font-weight: 700;
  color: #7c3aed;
  transition: transform .2s ease;
}

.gen-faq-a {
  padding: 0 1.25rem 1.1rem;
  font-size: .88rem;
  line-height: 1.7;
  color: var(--text-muted);
  animation: genFadeIn .2s ease;
}

@keyframes genFadeIn {
  from {
    opacity: 0;
    transform: translateY(-4px)
  }

  to {
    opacity: 1;
    transform: none
  }
}

/* ── Article Body ──────────────────────────────── */
.gen-article-wrap {
  margin-top: 1.5rem;
}

.gen-article-body {
  font-size: .9rem;
  line-height: 1.8;
  color: var(--text);
}

.gen-article-body h3 {
  font-size: 1rem;
  font-weight: 700;
  color: #a78bfa;
  margin: 1.5rem 0 .6rem;
}

.gen-article-body p {
  margin: 0 0 .9rem;
  color: var(--text-muted);
}

.gen-article-body strong {
  color: var(--text);
}

.gen-article-body ul {
  padding-left: 1.4rem;
  margin: 0 0 1rem;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.gen-article-body li {
  font-size: .88rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.gen-article-body blockquote {
  margin: 1rem 0;
  padding: 1rem 1.25rem;
  border-left: 3px solid #7c3aed;
  background: rgba(124, 58, 237, .06);
  border-radius: 0 10px 10px 0;
  font-size: .85rem;
  line-height: 1.8;
  color: var(--text-muted);
  font-style: italic;
}

/* ── Reviews Grid ──────────────────────────────── */
.gen-reviews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 14px;
}

.gen-review-card {
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1.25rem;
  transition: border-color .2s ease, transform .2s ease;
}

.gen-review-card:hover {
  border-color: #a78bfa;
  transform: translateY(-2px);
}

.gen-review-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: .85rem;
}

.gen-review-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, #7c3aed, #06b6d4);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
}

.gen-review-name {
  font-size: .88rem;
  font-weight: 700;
  color: var(--text);
}

.gen-review-role {
  font-size: .72rem;
  color: var(--text-muted);
  margin-top: 1px;
}

.gen-review-stars {
  margin-left: auto;
  font-size: .9rem;
  color: #f59e0b;
  letter-spacing: 1px;
}

.gen-review-text {
  font-size: .83rem;
  line-height: 1.65;
  color: var(--text-muted);
  margin: 0;
}

/* ── CTA Strip ─────────────────────────────────── */
.gen-cta-wrap {
  margin-top: 1.5rem;
  background: linear-gradient(135deg, #1e1b4b 0%, #312e81 45%, #7c3aed 100%);
  border-radius: 16px;
  padding: 2rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.gen-cta-text {
  font-size: 1.15rem;
  font-weight: 800;
  background: linear-gradient(135deg, #fff 0%, #c4b5fd 60%, #67e8f9 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.gen-cta-btn {
  padding: 13px 32px;
  background: rgba(255, 255, 255, .12);
  backdrop-filter: blur(10px);
  border: 1.5px solid rgba(255, 255, 255, .25);
  border-radius: 50px;
  color: #fff;
  font-size: .9rem;
  font-weight: 700;
  cursor: pointer;
  letter-spacing: .5px;
  transition: all .25s ease;
}

.gen-cta-btn:hover {
  background: rgba(255, 255, 255, .22);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, .25);
}

@media (max-width: 600px) {
  .gen-section-wrap {
    padding: 1.25rem;
  }

  .gen-reviews-grid {
    grid-template-columns: 1fr;
  }
}

.gen-gbtn-desc {
  display: block;
  font-size: .7rem;
  color: var(--text-muted);
  margin-top: 3px;
  font-weight: 400;
  line-height: 1.3;
}