/*
Theme Name: SPKTR Gallery
Theme URI: https://spktr.ru/
Author: SPKTR
Description: Визуальная библиотека промптов и изображений на токенах MeiGen Gallery.
Version: 1.0.0
Requires at least: 6.0
Text Domain: spktr-gallery
*/

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&display=swap');

:root {
  --ink: #292c33;
  --muted: #717987;
  --line: rgba(33, 37, 45, .10);
  --soft: #f7f8fa;
  --surface: rgba(255,255,255,.88);
  --primary: #191a1c;
  --accent: #2c86ff;
  --radius-lg: 26px;
  --radius-md: 18px;
  --shadow: 0 24px 60px rgba(56, 65, 78, .11);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: #f6f7f9;
  font-family: "Poppins", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 14px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
button { border: 0; }
img { display: block; max-width: 100%; }

.mesh-bg {
  position: fixed;
  inset: -18%;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(44% 42% at 8% 4%, rgba(255, 194, 161, .31), transparent 72%),
    radial-gradient(45% 55% at 92% 14%, rgba(127, 182, 255, .28), transparent 70%),
    radial-gradient(42% 46% at 48% 88%, rgba(198, 151, 255, .19), transparent 72%),
    #f7f8fa;
  filter: blur(26px);
}

.site-frame { min-height: 100vh; display: flex; }
.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 20;
  width: clamp(288px, 17.6vw, 360px);
  display: flex;
  flex-direction: column;
  padding: 40px 18px 22px;
  background: rgba(255,255,255,.88);
  border-right: 1px solid var(--line);
  backdrop-filter: blur(18px);
}
.brand {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 0 12px;
  margin-bottom: 28px;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -.045em;
}
.brand-mark { width: 25px; height: 21px; position: relative; overflow: hidden; }
.brand-mark::before, .brand-mark::after {
  content: ""; position: absolute; bottom: 0; width: 0; height: 0;
  border-left: 12px solid transparent; border-right: 12px solid transparent;
  border-bottom: 21px solid #191a1c;
}
.brand-mark::before { left: 0; opacity: .92; }
.brand-mark::after { left: 10px; transform: scale(.72); transform-origin: bottom; opacity: .42; }
.brand-word { white-space: nowrap; }
.brand-word em { margin-left: 4px; font-family: Georgia, serif; font-size: 16px; font-weight: 700; letter-spacing: -.02em; }
.side-nav { display: flex; flex-direction: column; gap: 3px; }
.nav-link {
  display: flex; align-items: center; gap: 16px; min-height: 40px; padding: 0 12px;
  border-radius: 12px; color: #414650; transition: background .2s ease, color .2s ease, transform .2s ease;
}
.nav-link:hover { background: rgba(31, 34, 40, .055); color: var(--ink); transform: translateX(2px); }
.nav-link svg { width: 20px; height: 20px; stroke: currentColor; fill: none; stroke-width: 1.8; }
.nav-link .new { margin-left: auto; color: #188dff; font-size: 11px; font-weight: 600; font-style: italic; }
.nav-label { font-weight: 500; }
.nav-section { margin: 23px 10px 8px; color: #747d8b; font-size: 12px; font-weight: 500; }
.sidebar-spacer { flex: 1; }
.side-links { display: flex; flex-direction: column; gap: 2px; margin-bottom: 18px; }
.side-links .nav-link { min-height: 36px; font-size: 13px; }
.side-links .nav-link svg { width: 17px; height: 17px; }
.legal { display: flex; gap: 7px; padding: 0 10px 16px; color: #707986; font-size: 11px; }
.legal a:hover { color: var(--ink); }
.credits-card { padding: 15px 14px; border: 1px solid var(--line); border-radius: 17px; background: rgba(255,255,255,.72); }
.credits-card strong { display: block; font-size: 13px; }
.credits-card span { display: block; margin-top: 2px; color: var(--muted); font-size: 12px; }
.gift { float: right; margin-top: -24px; width: 29px; height: 29px; display: grid; place-items: center; border-radius: 10px; background: #f5f6f8; font-size: 17px; }
.get-started { display: flex; align-items: center; justify-content: space-between; margin-top: 16px; padding: 4px 4px 4px 16px; border-radius: 13px; background: var(--primary); color: #fff; font-weight: 600; }
.get-started .free { color: #747b87; font-size: 12px; font-weight: 500; transform: translateX(76px); white-space: nowrap; }
.get-started .arrow { display: grid; place-items: center; width: 39px; height: 36px; border-radius: 10px; background: #2e3034; font-size: 20px; }

.main-area { width: calc(100% - clamp(288px, 17.6vw, 360px)); min-width: 0; margin-left: clamp(288px, 17.6vw, 360px); padding: 42px clamp(22px, 2.15vw, 44px) 78px; }
.content-shell { max-width: 1600px; margin: 0 auto; padding: 0 2px; }
.toolbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin: 2px 1px 11px; }
.filter-row, .sort-row { display: flex; align-items: center; gap: 10px; scrollbar-width: none; }
.filter-row::-webkit-scrollbar, .sort-row::-webkit-scrollbar { display: none; }
.filter-btn, .sort-btn { display: inline-flex; align-items: center; gap: 7px; padding: 7px 12px; border-radius: 12px; background: rgba(255,255,255,.38); color: #667080; font-size: 13px; font-weight: 500; cursor: pointer; transition: background .2s ease, color .2s ease; }
.filter-btn:hover, .sort-btn:hover { color: var(--ink); background: rgba(255,255,255,.78); }
.filter-btn.active { background: rgba(255,255,255,.72); color: #4c5562; }
.filter-btn .emoji { font-size: 17px; }
.sort-btn.active { background: rgba(255,255,255,.78); color: #3e4651; }
.sort-btn { font-size: 14px; }
.sort-btn:first-child { background: rgba(255,255,255,.72); }
.gallery {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 1.02fr) minmax(0, .98fr);
  gap: 16px;
  align-items: start;
}
.gallery-col { display: grid; gap: 16px; min-width: 0; }
.gallery-card { position: relative; display: block; overflow: hidden; min-height: 160px; border-radius: 19px; background: #dfe3e8; box-shadow: 0 4px 20px rgba(40,50,65,.05); transform: translateZ(0); }
.gallery-card img { width: 100%; height: 100%; min-height: 190px; object-fit: cover; transition: transform .55s cubic-bezier(.2,.8,.2,1), filter .35s ease; }
.gallery-card:hover img { transform: scale(1.035); filter: saturate(1.05); }
.gallery-card--hero { min-height: 690px; }
.gallery-card--hero img { min-height: 690px; }
.gallery-card--wide { min-height: 300px; }
.gallery-card--wide img { min-height: 300px; }
.gallery-card--short { min-height: 270px; }
.gallery-card--short img { min-height: 270px; }
.card-label { position: absolute; left: 14px; bottom: 14px; padding: 7px 10px; border-radius: 10px; background: rgba(20,22,26,.68); color: #fff; font-size: 11px; opacity: 0; transform: translateY(7px); transition: .25s ease; backdrop-filter: blur(10px); }
.gallery-card:hover .card-label { opacity: 1; transform: translateY(0); }

.floating-dock { position: fixed; left: calc(50% + clamp(144px, 8.8vw, 180px)); bottom: 22px; z-index: 18; display: flex; gap: 10px; align-items: center; padding: 10px 13px; border: 1px solid rgba(255,255,255,.86); border-radius: 20px; background: rgba(255,255,255,.78); box-shadow: 0 20px 50px rgba(31,39,49,.17); backdrop-filter: blur(18px); transform: translateX(-50%); }
.dock-btn { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 11px; background: rgba(241,243,246,.78); color: #24282e; cursor: pointer; transition: .2s ease; }
.dock-btn:hover { background: #fff; transform: translateY(-2px); box-shadow: 0 5px 12px rgba(31,39,49,.12); }
.dock-btn svg { width: 19px; height: 19px; stroke: currentColor; fill: none; stroke-width: 1.8; }

.prompt-body { background: #f1f2f3; overflow-x: hidden; }
.prompt-view { display: grid; grid-template-columns: minmax(0, 1fr) minmax(480px, 35vw); min-height: 100svh; }
.prompt-stage { position: relative; display: grid; place-items: center; min-height: 100svh; padding: clamp(58px, 8vh, 92px) clamp(24px, 6vw, 96px); background: linear-gradient(135deg, #f2f3f4 0%, #e5e7e9 100%); }
.prompt-stage::before { content: ""; position: absolute; inset: -10%; background: radial-gradient(circle at 58% 42%, rgba(255,255,255,.82), transparent 35%), radial-gradient(circle at 18% 78%, rgba(190,210,255,.15), transparent 32%); pointer-events: none; }
.prompt-main-image { position: relative; z-index: 1; width: min(100%, 600px); max-height: calc(100svh - 116px); aspect-ratio: .667; object-fit: cover; border-radius: 24px; box-shadow: 0 25px 70px rgba(28,35,45,.22); }
.prompt-controls { position: absolute; top: 20px; right: 22px; z-index: 2; display: flex; gap: 8px; }
.round-control { display: grid; place-items: center; min-width: 44px; height: 44px; padding: 0 12px; border: 0; border-radius: 50%; background: rgba(255,255,255,.82); color: #343840; cursor: pointer; }
.round-control.wide { display: flex !important; flex-direction: row; flex-wrap: nowrap; align-items: center; justify-content: center; width: 112px; min-width: 112px; gap: 12px; border-radius: 28px; white-space: nowrap; }
.round-control svg { width: 19px; height: 19px; stroke: currentColor; fill: none; stroke-width: 1.8; }
.prompt-panel { display: flex; min-width: 0; flex-direction: column; min-height: 100svh; overflow: auto; background: #fff; }
.prompt-panel-inner { padding: 26px 28px 22px; }
.author { display: flex; align-items: center; justify-content: space-between; }
.author-profile { display: flex; align-items: center; gap: 14px; }
.avatar { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; }
.author-name { font-size: 20px; font-weight: 600; letter-spacing: -.03em; }
.author-handle { color: #68707c; font-size: 15px; }
.provider { display: flex; align-items: center; gap: 8px; color: #6a7280; font-size: 16px; font-weight: 500; }
.provider-mark { display: grid; place-items: center; width: 19px; height: 19px; border-radius: 50%; background: conic-gradient(#4285f4 0 25%, #34a853 0 50%, #fbbc05 0 75%, #ea4335 0); color: #fff; font-size: 11px; font-weight: 700; }
.prompt-actions { display: flex; align-items: center; gap: 24px; margin: 20px 0 24px; color: #22252a; }
.action { display: inline-flex; align-items: center; gap: 8px; color: inherit; background: none; font-size: 15px; cursor: pointer; }
.action svg { width: 24px; height: 24px; stroke: currentColor; fill: none; stroke-width: 1.8; }
.action .filled { fill: #24272b; }
.related-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.related-item { aspect-ratio: .74; overflow: hidden; border-radius: 14px; background: #e4e7ea; }
.related-item:nth-child(2) { aspect-ratio: .82; }
.related-item:nth-child(3) { aspect-ratio: .82; }
.related-item:nth-child(4) { aspect-ratio: .76; }
.related-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.related-item:hover img { transform: scale(1.04); }
.prompt-footer { margin-top: auto; padding: 16px 28px 22px; border-top: 1px solid var(--line); }
.prompt-buttons { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.prompt-button { min-height: 44px; border-radius: 13px; background: #191a1c; color: #fff; font-size: 14px; font-weight: 600; cursor: pointer; transition: background .2s ease; }
.prompt-button:hover { background: #303238; }
.prompt-button svg { width: 18px; height: 18px; margin-right: 9px; vertical-align: -4px; stroke: currentColor; fill: none; stroke-width: 1.8; }
.copy-toast { position: fixed; left: 50%; bottom: 26px; z-index: 50; padding: 10px 15px; border-radius: 12px; background: #191a1c; color: #fff; font-size: 13px; opacity: 0; transform: translate(-50%, 12px); pointer-events: none; transition: .2s ease; }
.copy-toast.is-visible { opacity: 1; transform: translate(-50%, 0); }

/* Контентные страницы Reelo используют тот же спокойный светлый ритм, что и галерея. */
.reelo-content-shell { max-width: 1180px; margin: 0 auto; padding: 28px 0 72px; }
.reelo-wp-page { padding: clamp(24px, 4vw, 56px); border: 1px solid var(--line); border-radius: var(--radius-lg); background: rgba(255,255,255,.88); box-shadow: var(--shadow); }
.reelo-wp-page #content { max-width: 860px; margin: 0 auto; }
.reelo-wp-page .breadcrumbs { margin-bottom: 28px; color: var(--muted); font-size: 12px; }
.reelo-wp-page .breadcrumbs ol { display: flex; flex-wrap: wrap; gap: 7px 14px; margin: 0; padding: 0; list-style: none; }
.reelo-wp-page .breadcrumbs li { display: inline-flex; align-items: center; }
.reelo-wp-page .breadcrumbs li + li::before { margin-right: 14px; color: var(--muted); content: '/'; }
.reelo-wp-page .breadcrumbs a { color: var(--ink); font-weight: 600; }
.reelo-wp-page .page-header { padding-bottom: 26px; border-bottom: 1px solid var(--line); }
.reelo-wp-page .page-header h1 { max-width: 780px; margin: 0; color: var(--primary); font-size: clamp(28px, 4vw, 52px); letter-spacing: -.065em; line-height: 1.03; }
.reelo-wp-page .publication-dates, .reelo-wp-page .verification-status { margin: 13px 0 0; color: var(--muted); font-size: 12px; }
.reelo-wp-page .verification-status strong { color: var(--ink); font-weight: 600; }
.reelo-wp-page .visual-recipe, .reelo-wp-page .ai-task-guide { color: var(--ink); font-size: 15px; }
.reelo-wp-page .visual-recipe > p:first-child, .reelo-wp-page .ai-task-guide > p:first-child { margin-top: 30px; color: var(--ink); font-size: 18px; line-height: 1.65; }
.reelo-wp-page h2 { margin: 42px 0 14px; color: var(--primary); font-size: 22px; letter-spacing: -.04em; }
.reelo-wp-page h3 { margin: 28px 0 10px; color: var(--primary); font-size: 16px; }
.reelo-wp-page p { margin: 0 0 14px; line-height: 1.75; }
.reelo-wp-page ul, .reelo-wp-page ol { margin: 0 0 22px; padding-left: 21px; }
.reelo-wp-page li + li { margin-top: 8px; }
.reelo-wp-page pre, .reelo-wp-page code, .reelo-wp-page .data-card, .reelo-wp-page table { border-radius: 14px; background: var(--soft); }
.reelo-wp-page pre { overflow: auto; margin: 18px 0; padding: 18px; color: var(--ink); font: 13px/1.7 ui-monospace, SFMono-Regular, Menlo, monospace; white-space: pre-wrap; }
.reelo-wp-page code { padding: 2px 5px; color: var(--ink); font: 13px/1.5 ui-monospace, SFMono-Regular, Menlo, monospace; }
.reelo-wp-page pre code { padding: 0; background: transparent; }
.reelo-wp-page .data-card { margin: 20px 0; padding: 18px; }
.reelo-wp-page table { width: 100%; margin: 20px 0; border-collapse: collapse; overflow: hidden; }
.reelo-wp-page th, .reelo-wp-page td { padding: 11px 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.reelo-wp-page th { color: var(--muted); font-size: 12px; font-weight: 600; }
.reelo-wp-page .related-guides { margin-top: 42px; padding-top: 24px; border-top: 1px solid var(--line); }
.reelo-wp-page .related-guides h2 { margin-top: 0; }
.reelo-wp-page .related-guides a, .reelo-wp-page .page-sources a { color: var(--accent); font-weight: 600; }
.reelo-wp-page .reelo-cta { margin: 38px 0 24px; padding: 20px 22px; border-radius: var(--radius-md); background: var(--primary); color: #fff; }
.reelo-wp-page .reelo-cta a { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.reelo-wp-page .source-note, .reelo-wp-page .page-sources { color: var(--muted); font-size: 12px; }
.reelo-wp-page .page-sources { margin-top: 42px; padding-top: 24px; border-top: 1px solid var(--line); }
.reelo-wp-page .page-sources h2 { margin-top: 0; font-size: 18px; }
.reelo-wp-page .page-context-note { color: var(--muted); font-size: .86em; }

@media (max-width: 820px) {
  .reelo-content-shell { padding: 16px 0 56px; }
  .reelo-wp-page { padding: 22px 18px; border-radius: 18px; }
  .reelo-wp-page .page-header h1 { font-size: clamp(27px, 9vw, 42px); }
  .reelo-wp-page .visual-recipe > p:first-child, .reelo-wp-page .ai-task-guide > p:first-child { font-size: 16px; }
  .reelo-wp-page table { display: block; overflow-x: auto; }
}

@media (max-width: 1100px) {
  .sidebar { width: 220px; }
  .main-area { width: calc(100% - 220px); margin-left: 220px; padding-inline: 18px; }
  .floating-dock { left: calc(50% + 110px); }
  .prompt-view { grid-template-columns: minmax(0, 1fr) 410px; }
}
@media (max-width: 820px) {
  .sidebar { position: static; width: 100%; height: auto; padding: 14px 16px; border-right: 0; border-bottom: 1px solid var(--line); }
  .brand { margin-bottom: 10px; }
  .side-nav { display: grid; grid-template-columns: repeat(3, 1fr); }
  .side-nav .nav-link:nth-child(n+4), .nav-section, .sidebar-spacer, .side-links, .legal, .credits-card, .get-started { display: none; }
  .site-frame { display: block; }
  .main-area { width: 100%; margin-left: 0; padding: 16px 12px 84px; }
  .toolbar { align-items: flex-start; flex-direction: column; }
  .filter-row, .sort-row { max-width: 100%; overflow-x: auto; padding-bottom: 2px; }
  .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .gallery-col { gap: 10px; }
  .gallery-card--hero, .gallery-card--hero img { min-height: 540px; }
  .floating-dock { left: 50%; bottom: 14px; }
  .prompt-view { display: block; }
  .prompt-view { min-height: auto; }
  .prompt-stage { min-height: 70svh; padding: 70px 18px 24px; }
  .prompt-main-image { max-height: 62svh; }
  .prompt-panel { min-height: auto; border-left: 0; }
  .prompt-footer { position: sticky; bottom: 0; background: rgba(255,255,255,.94); backdrop-filter: blur(14px); }
}
@media (max-width: 480px) {
  .side-nav { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .nav-link { justify-content: center; gap: 7px; padding-inline: 5px; font-size: 12px; }
  .nav-link svg { width: 17px; height: 17px; }
  .filter-btn { padding-inline: 10px; }
  .gallery { grid-template-columns: 1fr; }
  .gallery-card--hero, .gallery-card--hero img { min-height: 470px; }
  .prompt-stage { min-height: 66vh; }
  .prompt-panel-inner, .prompt-footer { padding-inline: 18px; }
  .provider { font-size: 13px; }
  .prompt-buttons { gap: 8px; }
  .prompt-button { font-size: 13px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

/* SPKTR: та же MeiGen-геометрия, но с более точным масштабом интерфейса. */
.edsense-gallery-shell {
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
}
.sidebar { width: clamp(272px, 17.6vw, 344px); padding: 32px 16px 20px; }
.brand { margin-bottom: 24px; font-size: 20px; }
.nav-link { min-height: 38px; gap: 14px; }
.nav-section { margin-top: 20px; }
.main-area { width: calc(100% - clamp(272px, 17.6vw, 344px)); margin-left: clamp(272px, 17.6vw, 344px); padding: 34px clamp(18px, 2vw, 40px) 64px; }
.toolbar { margin-bottom: 9px; }
.filter-row, .sort-row { gap: 7px; }
.filter-btn, .sort-btn { padding: 6px 10px; border-radius: 10px; font-size: 12px; }
.filter-btn .emoji { font-size: 15px; }
.sort-btn { font-size: 13px; }
.gallery { gap: 14px; }
.gallery-col { gap: 14px; }
.gallery-card { border-radius: 17px; box-shadow: none; }
.gallery-card--hero, .gallery-card--hero img { min-height: 640px; }
.gallery-card--wide, .gallery-card--wide img { min-height: 280px; }
.gallery-card--short, .gallery-card--short img { min-height: 248px; }
.floating-dock { gap: 8px; padding: 8px 10px; border: 0; border-radius: 17px; box-shadow: 0 12px 32px rgba(31,39,49,.12); }
.dock-btn { width: 37px; height: 37px; border-radius: 10px; }
.dock-btn:hover { transform: none; box-shadow: none; }
.prompt-stage { padding: clamp(50px, 7vh, 78px) clamp(20px, 5vw, 74px); }
.prompt-main-image { width: min(100%, 580px); border-radius: 22px; box-shadow: 0 18px 46px rgba(28,35,45,.15); }
.prompt-controls { top: 18px; right: 18px; gap: 7px; }
.round-control { min-width: 42px; height: 42px; }
.round-control.wide { width: 106px; min-width: 106px; gap: 10px; }
.prompt-panel-inner { padding: 24px 26px 20px; }
.avatar { width: 44px; height: 44px; }
.author-name { font-size: 18px; }
.author-handle { font-size: 13px; }
.provider { font-size: 14px; }
.prompt-actions { gap: 20px; margin: 18px 0 20px; }
.action { font-size: 14px; }
.action svg { width: 22px; height: 22px; }
.related-grid { gap: 8px; }
.related-item { border-radius: 12px; }
.prompt-footer { padding: 14px 26px 20px; }
.prompt-buttons { gap: 9px; }
.prompt-button { min-height: 42px; border-radius: 12px; font-size: 13px; }
.reelo-wp-page { box-shadow: none; }
@media (max-width: 1100px) {
  .sidebar { width: 220px; }
  .main-area { width: calc(100% - 220px); margin-left: 220px; }
  .gallery-card--hero, .gallery-card--hero img { min-height: 520px; }
}
@media (max-width: 820px) {
  .sidebar { padding: 14px 16px; }
  .main-area { width: 100%; margin-left: 0; padding: 18px 14px 56px; }
  .gallery { gap: 10px; }
  .gallery-col { gap: 10px; }
  .gallery-card--hero, .gallery-card--hero img { min-height: 360px; }
  .gallery-card--wide, .gallery-card--wide img { min-height: 190px; }
  .gallery-card--short, .gallery-card--short img { min-height: 170px; }
  .prompt-view { grid-template-columns: 1fr; }
  .prompt-stage { min-height: 72svh; padding: 74px 18px 28px; }
  .prompt-panel { min-height: auto; overflow: visible; }
  .prompt-main-image { max-height: 68svh; }
}

/* Динамический WordPress-контент использует те же MeiGen-паттерны. */
.screen-reader-text { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.site-nav > ul, .site-nav .menu-list { margin: 0; padding: 0; list-style: none; }
.site-nav .menu-item > a { display: flex; align-items: center; gap: 16px; min-height: 40px; padding: 0 12px; border-radius: 12px; color: #414650; transition: background .2s ease, color .2s ease, transform .2s ease; }
.site-nav .menu-item > a:hover, .site-nav .menu-item.current-menu-item > a { background: rgba(31, 34, 40, .055); color: var(--ink); transform: translateX(2px); }
.site-nav .menu-item > a::before { width: 20px; color: #68717e; content: '◇'; font-size: 17px; line-height: 1; text-align: center; }
.gallery-card[hidden] { display: none; }
.filter-empty { margin: 18px 0; padding: 20px; border: 1px dashed var(--line); border-radius: 14px; color: var(--muted); text-align: center; }
.prompt-heading { margin-top: 24px; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.prompt-heading .eyebrow { margin: 0 0 8px; color: var(--muted); font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.prompt-heading h1 { margin: 0; color: var(--primary); font-size: clamp(24px, 2.8vw, 34px); letter-spacing: -.055em; line-height: 1.1; }
.prompt-date { margin: 9px 0 0; color: var(--muted); font-size: 12px; }
.action-copy { margin-left: auto; }
.prompt-copy-block { padding: 21px 0 22px; border-bottom: 1px solid var(--line); }
.block-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.block-heading h2 { margin: 0; color: var(--primary); font-size: 15px; }
.block-heading button { padding: 0; background: transparent; color: var(--accent); cursor: pointer; font-size: 12px; font-weight: 600; }
.prompt-copy-block p { margin: 11px 0 0; color: var(--ink); font-size: 13px; line-height: 1.75; }
.prompt-button--secondary { background: #f5f6f8; color: var(--primary); border: 1px solid var(--line); }
.prompt-button--secondary:hover { background: #fff; }
.reelo-wp-page .page-excerpt { max-width: 780px; margin: 22px 0 0; color: var(--ink); font-size: 15px; line-height: 1.7; }
.reelo-wp-page .reelo-article-content { margin-top: 28px; }
.reelo-wp-page .article-footer { margin-top: 38px; padding-top: 22px; border-top: 1px solid var(--line); }
.reelo-wp-page .text-link { color: var(--accent); font-weight: 600; }

/* MeiGen reference alignment: fixed gallery rail, masonry columns and prompt viewer spacing. */
@media (min-width: 1101px) {
  .sidebar { width: 256px; padding: 31px 16px 20px; background: #fff; border-right-color: #edf0f2; backdrop-filter: none; }
  .brand { margin-bottom: 24px; padding-inline: 8px; font-size: 20px; }
  .main-area { width: calc(100% - 256px); margin-left: 256px; padding: 32px 32px 64px; }
  .content-shell { padding-inline: 0; min-width: 0; }
  .toolbar { min-width: 0; margin-inline: 0; }
  .filter-row { min-width: 0; max-width: calc(100% - 260px); flex-wrap: nowrap; overflow-x: auto; }
  .sort-row { flex: 0 0 auto; flex-wrap: nowrap; white-space: nowrap; }
  .filter-btn { flex: 0 0 auto; white-space: nowrap; }
}

.site-nav .menu-item > a { min-height: 38px; padding-inline: 8px; border-radius: 10px; font-size: 13px; }
.site-nav .menu-item > a::before { width: 18px; font-size: 16px; }
.site-nav .menu-item > a:hover { background: #f5f6f7; transform: none; }
.site-nav .menu-item.current-menu-item > a { background: transparent; transform: none; }
.site-nav .menu-icon { display: none; }
.credits-card { padding: 13px 14px; border-color: #e2e5e8; background: #fff; }
.credits-card strong { font-size: 12px; }
.credits-card span { font-size: 11px; }
.get-started { min-height: 42px; margin-top: 14px; padding-left: 14px; border-radius: 12px; }
.get-started .free { margin-left: auto; margin-right: 4px; transform: none; font-size: 11px; }
.get-started .arrow { width: 30px; height: 30px; border-radius: 9px; font-size: 18px; }

.gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.gallery-col { display: grid; align-content: start; gap: 12px; min-width: 0; }
.gallery-card { min-height: 0; aspect-ratio: 1 / 1; border-radius: 16px; box-shadow: none; }
.gallery-card img { min-height: 0; height: 100%; aspect-ratio: auto; object-fit: cover; }
.gallery-card--hero { aspect-ratio: .5625; }
.gallery-card--wide { aspect-ratio: 1; }
.gallery-card--tall { aspect-ratio: .68; }
.gallery-card--short { aspect-ratio: .84; }
.card-label { left: 12px; bottom: 12px; }
.floating-dock { left: 50%; bottom: 22px; gap: 14px; padding: 10px 18px; border: 1px solid #edf0f2; border-radius: 22px; background: rgba(255,255,255,.9); box-shadow: 0 14px 34px rgba(31,39,49,.14); }
.dock-btn { width: 40px; height: 40px; background: transparent; }
.dock-btn:hover { background: #f2f3f5; }

.prompt-view { grid-template-columns: minmax(0, 1fr) 480px; height: 100svh; min-height: 100svh; overflow: hidden; }
.prompt-stage { height: 100%; min-height: 0; padding: 64px 32px; background: #f7f7f7; }
.prompt-stage::before { display: none; }
.prompt-main-image { width: auto; max-width: 100%; height: auto; max-height: calc(100svh - 128px); aspect-ratio: auto; object-fit: contain; border-radius: 0; box-shadow: none; }
.prompt-controls { top: 16px; right: 20px; gap: 7px; }
.round-control { min-width: 36px; height: 36px; padding: 0 10px; border: 1px solid #eceff1; background: #fff; box-shadow: 0 2px 8px rgba(30,35,40,.05); font-size: 13px; }
.round-control.media-count { min-width: 54px; border-radius: 20px; }
.round-control.wide { width: 82px; min-width: 82px; gap: 9px; border-radius: 20px; }
.prompt-panel { height: 100%; min-height: 0; overflow: auto; }
.prompt-panel-inner { padding: 50px 20px 0; }
.author-profile { gap: 10px; }
.avatar { width: 36px; height: 36px; }
.author-name { font-size: 15px; }
.author-handle { font-size: 12px; }
.provider { gap: 6px; font-size: 12px; }
.provider-mark { width: 17px; height: 17px; font-size: 9px; }
.prompt-heading { display: none; }
.prompt-actions { gap: 20px; margin: 26px 0 28px; }
.action { gap: 7px; font-size: 13px; white-space: nowrap; }
.action svg { width: 20px; height: 20px; }
.action-copy { margin-left: 0; }
.prompt-copy-block { padding: 0 0 8px; border-bottom: 0; }
.prompt-copy-block .block-heading h2 { color: #8b9097; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; }
.prompt-copy-block .block-heading button { display: none; }
.prompt-copy-block p { display: -webkit-box; overflow: hidden; margin-top: 6px; color: #25272a; font-size: 13px; line-height: 1.48; -webkit-box-orient: vertical; -webkit-line-clamp: 5; }
.prompt-copy-block p.is-expanded { display: block; -webkit-line-clamp: unset; }
.prompt-show-more { display: inline-block; margin-top: 3px; padding: 0; background: transparent; color: #1d2024; font-size: 12px; font-weight: 600; cursor: pointer; }
.related-section { margin-top: 0; }
.related-section .block-heading { margin-bottom: 12px; }
.related-section .block-heading h2 { color: #1f2125; font-size: 18px; }
.related-grid { gap: 8px; }
.related-item { border-radius: 14px; background: #f8f6f2; }
.prompt-footer { position: sticky; bottom: 0; z-index: 3; padding: 10px 20px 14px; border-top: 1px solid #edf0f2; background: rgba(255,255,255,.96); }
.prompt-button, .prompt-button--secondary { min-height: 52px; border: 0; border-radius: 12px; background: #191a1c; color: #fff; font-size: 12px; }
.prompt-button--secondary:hover { background: #303238; }

@media (max-width: 820px) {
  .sidebar { width: 100%; padding: 16px; }
  .brand { margin-bottom: 12px; padding-inline: 8px; }
  .site-nav > ul { display: flex; flex-direction: row; flex-wrap: nowrap; gap: 6px; overflow-x: auto; padding: 0; scrollbar-width: none; }
  .site-nav > ul::-webkit-scrollbar { display: none; }
  .site-nav > ul .menu-item { flex: 0 0 auto; }
  .site-nav > ul .menu-item > a { min-height: 36px; padding-inline: 10px; font-size: 12px; }
  .sidebar > .nav-section, .sidebar > .side-nav, .sidebar > .sidebar-spacer, .sidebar > .side-links, .sidebar > .legal, .sidebar > .credits-card, .sidebar > .get-started { display: none; }
  .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .gallery-col { gap: 10px; }
  .gallery-card { border-radius: 13px; }
  .gallery-card--hero { aspect-ratio: .7; }
  .gallery-card--tall { aspect-ratio: .78; }
  .gallery-card--short { aspect-ratio: .9; }
  .floating-dock { gap: 8px; padding: 8px 10px; bottom: 12px; }
  .dock-btn { width: 36px; height: 36px; }

  .prompt-body { background: #fff; }
  .prompt-view { display: block; height: auto; min-height: 100svh; overflow: visible; }
  .prompt-stage { display: block; height: 0; min-height: 0; padding: 0; background: #fff; }
  .prompt-main-image { display: none; }
  .prompt-controls { position: fixed; top: 16px; right: 16px; z-index: 30; }
  .prompt-panel { height: auto; min-height: 100svh; max-height: none; overflow: visible; }
  .prompt-panel-inner { padding: 52px 16px 0; }
  .prompt-actions { gap: 14px; margin-top: 25px; margin-bottom: 28px; }
  .prompt-copy-block p { -webkit-line-clamp: 5; }
  .prompt-footer { position: static; margin-top: 24px; padding: 16px; background: #fff; }
  .prompt-buttons { gap: 8px; }
  .prompt-button, .prompt-button--secondary { min-height: 48px; padding-inline: 8px; font-size: 11px; }
}

@media (max-width: 480px) {
  .main-area { padding: 16px 12px 72px; }
  .toolbar { gap: 10px; }
  .filter-row, .sort-row { max-width: 100%; overflow-x: auto; }
  .filter-btn, .sort-btn { flex: 0 0 auto; }
  .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .prompt-panel-inner { padding-inline: 16px; }
  .prompt-controls { right: 12px; gap: 5px; }
  .round-control.wide { width: 78px; min-width: 78px; }
}

/* SPKTR sidebar categories and grid hover states. */
.sidebar { overflow: hidden; }
.category-heading { flex: 0 0 auto; }
.category-nav {
  flex: 0 0 auto;
  min-height: 0;
  height: clamp(210px, 31vh, 300px);
  max-height: none;
  overflow-y: auto;
  padding-right: 4px;
  scrollbar-width: thin;
  scrollbar-color: #dfe3e7 transparent;
}
.category-nav::-webkit-scrollbar { width: 4px; }
.category-nav::-webkit-scrollbar-thumb { border-radius: 999px; background: #dfe3e7; }
.category-link {
  min-height: 34px;
  gap: 10px;
  padding-inline: 8px;
  font-size: 13px;
}
.category-link svg { width: 17px; height: 17px; color: #727a85; }
.category-link .nav-label { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.category-link.is-active,
.category-link[aria-current="page"] { background: #f2f4f5; color: var(--ink); font-weight: 600; }
.category-link.is-active svg,
.category-link[aria-current="page"] svg { color: var(--ink); }
.toolbar { justify-content: flex-end; }
.sort-row { margin-left: auto; }

.gallery-card { isolation: isolate; }
.gallery-card::after {
  position: absolute;
  z-index: 1;
  inset: 0;
  background: linear-gradient(180deg, rgba(18, 21, 25, 0) 42%, rgba(18, 21, 25, .72) 100%);
  content: '';
  opacity: 0;
  pointer-events: none;
  transition: opacity .24s ease;
}
.gallery-card img { position: relative; z-index: 0; transition: transform .45s cubic-bezier(.2,.8,.2,1), filter .35s ease; }
.gallery-card:hover img,
.gallery-card:focus-visible img { transform: scale(1.035); filter: saturate(1.04); }
.gallery-card:hover::after,
.gallery-card:focus-visible::after { opacity: 1; }
.gallery-card:focus-visible { outline: 2px solid #272a2f; outline-offset: 3px; }
.card-hover {
  position: absolute;
  z-index: 2;
  right: 14px;
  bottom: 14px;
  left: 14px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  color: #fff;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity .24s ease, transform .24s ease;
}
.gallery-card:hover .card-hover,
.gallery-card:focus-visible .card-hover { opacity: 1; transform: translateY(0); }
.card-hover-copy { min-width: 0; }
.card-hover-copy strong,
.card-hover-copy small { display: block; overflow: hidden; text-overflow: ellipsis; }
.card-hover-copy strong { display: -webkit-box; max-width: 100%; font-size: 13px; font-weight: 600; line-height: 1.25; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.card-hover-copy small { margin-top: 3px; color: rgba(255,255,255,.76); font-size: 11px; line-height: 1.25; white-space: nowrap; }
.card-hover-action { display: grid; flex: 0 0 auto; place-items: center; width: 32px; height: 32px; border: 1px solid rgba(255,255,255,.38); border-radius: 50%; background: rgba(18,21,25,.3); font-size: 16px; }

@media (hover: none) {
  .gallery-card::after { opacity: .42; }
  .card-hover { opacity: 1; transform: none; }
}

@media (max-width: 820px) {
  .sidebar > .category-heading { display: block; margin: 12px 8px 6px; }
  .sidebar > .category-nav { display: flex; flex-direction: row; gap: 6px; width: 100%; height: auto; max-height: none; overflow-x: auto; overflow-y: hidden; padding: 0 0 3px; scrollbar-width: none; }
  .sidebar > .category-nav::-webkit-scrollbar { display: none; }
  .category-link { flex: 0 0 auto; min-height: 34px; padding-inline: 10px; background: #f7f8f9; }
  .category-link svg { display: none; }
  .category-link .nav-label { max-width: 190px; }
}
