body.modal-open .ad-html-block,
body.modal-open img[alt="Banner"] {
  display: none !important;
}
@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Space+Grotesk:wght@400;500;700&display=swap');

/* ======================================================
  SM HUB - Estilos do site publico
   ====================================================== */

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

:root {
  --bg:        #24232c;
  --bg2:       #16171f;
  --card-bg:   rgba(16, 18, 28, 0.78);
  --border:    rgba(102, 247, 217, 0.18);
  --text:      #eef5ff;
  --muted:     #b7bfd4;
  --accent:    #22efcb;
  --accent-2:  #8f1fff;
  --accent-3:  #ff6d5e;

  --yt:        #ff4b57;
  --ig:        #f566a9;
  --fb:        #55a6ff;
  --tt:        #71f4e2;

  --radius:    18px;
  --shadow:    0 24px 60px rgba(0,0,0,0.35);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Space Grotesk', 'Segoe UI', sans-serif;
  background:
    linear-gradient(180deg, #2d2c36 0%, #25252f 22%, #171923 56%, #10131c 100%);
  background-attachment: fixed;
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
}

body.theme-light {
  --bg: #f4f6fa;
  --bg2: #e9eef5;
  --card-bg: rgba(255, 255, 255, 0.9);
  --border: rgba(85, 102, 128, 0.18);
  --text: #182433;
  --muted: #5f7187;
  --shadow: 0 20px 46px rgba(30, 41, 59, 0.12);
  background: linear-gradient(180deg, #f8fafc 0%, #f2f5f9 26%, #e8edf4 100%);
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
svg { display: inline-block; vertical-align: middle; }

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

.site-header {
  --ufo-left: clamp(34px, 12vw, 132px);
  --ufo-top: 10px;
  --ufo-width: clamp(132px, 15vw, 196px);
  --ufo-height: clamp(26px, 3.2vw, 36px);
  --beam-width: clamp(178px, 20vw, 264px);
  --beam-height: clamp(148px, 18vw, 236px);
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid rgba(var(--accent-3-rgb, 255, 109, 94), 0.12);
  background:
    linear-gradient(180deg, rgba(12,13,20,0.10) 0%, rgba(12,13,20,0.0) 100%);
}

.site-header.has-cover {
  background: var(--site-cover-image) center center / cover no-repeat;
}

.site-header.has-cover::before,
.site-header.has-cover::after,
.site-header.has-cover .container::before,
.site-header.has-cover .container::after {
  content: none;
}

.site-header::before,
.site-header::after {
  content: none;
}

.site-header .container {
  position: relative;
  min-height: 194px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-end;
  text-align: left;
  padding-top: 28px;
  padding-bottom: 24px;
}

.site-header.has-logo .container {
  display: grid;
  grid-template-columns: minmax(180px, 360px) minmax(0, 760px);
  justify-content: space-between;
  align-items: center;
  gap: 28px;
}

.site-header.logo-only .container {
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding-left: 24px;
  padding-right: 24px;
}

.site-header .container::before,
.site-header .container::after {
  content: none;
}

.hero-mark {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  width: min(100%, 360px);
  min-height: 110px;
}

.site-header.logo-only .hero-mark {
  width: min(100%, 420px);
  min-height: 128px;
  justify-content: center;
  margin: 0 auto;
}

.hero-mark img {
  width: 100%;
  max-height: 172px;
  object-fit: contain;
  object-position: left center;
}

.site-header.logo-only .hero-mark img {
  object-position: center center;
}

.hero-copy {
  position: relative;
  z-index: 1;
  max-width: 760px;
  margin-left: auto;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.logo {
  position: relative;
  display: inline-block;
  max-width: 760px;
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(3.4rem, 7vw, 6.6rem);
  line-height: 0.9;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--accent);
  text-shadow: 0 0 18px rgba(34,239,203,0.12);
}

.logo:hover { color: var(--accent-2); }

.tagline {
  position: relative;
  z-index: 1;
  max-width: 580px;
  color: var(--accent-3);
  font-size: clamp(1.05rem, 2vw, 1.85rem);
  font-weight: 500;
  margin-top: 8px;
  text-wrap: balance;
}

.site-header.has-cover .logo,
.site-header.has-cover .tagline {
  text-shadow: 0 3px 18px rgba(0,0,0,0.52);
}

.site-header.has-cover .hero-mark img {
  filter: drop-shadow(0 10px 24px rgba(0,0,0,0.28));
}


body.theme-light .site-header {
  border-bottom-color: rgba(85, 102, 128, 0.14);
  background: linear-gradient(180deg, rgba(255,255,255,0.44) 0%, rgba(255,255,255,0.18) 100%);
}

body.theme-light .site-header.has-cover {
  background: var(--site-cover-image) center center / cover no-repeat;
}



body.theme-light .site-header.has-cover .logo,
body.theme-light .site-header.has-cover .tagline {
  text-shadow: 0 3px 18px rgba(255,255,255,0.24), 0 2px 10px rgba(0,0,0,0.18);
}

body.theme-light .site-header.has-cover .hero-mark img {
  filter: drop-shadow(0 10px 24px rgba(255,255,255,0.16)) drop-shadow(0 3px 12px rgba(0,0,0,0.16));
}

.filter-bar {
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 14px 0;
  background: rgba(11, 14, 22, 0.78);
  border-bottom: 1px solid rgba(var(--accent-3-rgb, 255, 109, 94), 0.14);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

body.theme-light .filter-bar {
  background: rgba(255,255,255,0.84);
  border-bottom-color: rgba(85, 102, 128, 0.12);
}

.filters {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
}

.filter-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 9px 18px;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--muted);
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(var(--accent-3-rgb, 255, 109, 94), 0.16);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.04);
  transition: all 0.2s ease;
  cursor: pointer;
  line-height: 1;
}

body.theme-light .filter-btn {
  color: #516174;
  background: rgba(255,255,255,0.7);
  border-color: rgba(85, 102, 128, 0.14);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.7);
}

.filter-btn .filter-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  opacity: 0.9;
  flex: 0 0 16px;
  line-height: 0;
}

.filter-btn .filter-icon svg {
  display: block;
  width: 16px;
  height: 16px;
}

.filter-btn .cnt {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.73rem;
  background: rgba(255,255,255,0.08);
  border-radius: 999px;
  padding: 2px 7px;
  line-height: 1;
}

body.theme-light .filter-btn .cnt {
  background: rgba(15,23,42,0.08);
}

.filter-btn:hover {
  color: var(--text);
  border-color: rgba(var(--accent-3-rgb, 255, 109, 94), 0.42);
  transform: translateY(-1px);
}

body.theme-light .filter-btn:hover {
  border-color: rgba(var(--accent-3-rgb, 255, 109, 94), 0.34);
}

.filter-btn.active { color: #08131d; border-color: transparent; }
.filter-btn.active.plat-all       { background: linear-gradient(135deg, var(--accent), #97fff0); }
.filter-btn.active.plat-youtube   { background: linear-gradient(135deg, #ff7b76, var(--yt)); color: #fff; }
.filter-btn.active.plat-instagram { background: linear-gradient(135deg, #ffb36d, #ef4ca3 56%, #7f32ff); color: #fff; }
.filter-btn.active.plat-facebook  { background: linear-gradient(135deg, #8ec8ff, var(--fb)); color: #fff; }
.filter-btn.active.plat-tiktok    { background: linear-gradient(135deg, #07131a, #173640); border: 1px solid var(--tt); color: var(--tt); }

.main-content { padding: 32px 0 32px 0; }

.posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 22px;
}

.post-card {
  position: relative;
  background: linear-gradient(180deg, rgba(var(--accent-2-rgb, 143, 31, 255), 0.18) 0%, rgba(12,15,24,0.94) 100%);
  border: 1px solid rgba(var(--accent-3-rgb, 255, 109, 94), 0.14);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 390px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.03);
}

body.theme-light .post-card {
  background: linear-gradient(180deg, rgba(var(--accent-2-rgb, 143, 31, 255), 0.08) 0%, rgba(255,255,255,0.98) 100%);
  border-color: rgba(85, 102, 128, 0.14);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.78), 0 10px 24px rgba(15,23,42,0.05);
}

.post-card.is-clickable {
  cursor: pointer;
}

.post-card.is-clickable:focus {
  outline: none;
  border-color: rgba(var(--accent-3-rgb, 255, 109, 94), 0.36);
  box-shadow: 0 0 0 3px rgba(var(--accent-3-rgb, 255, 109, 94), 0.14), inset 0 1px 0 rgba(255,255,255,0.03);
}

body.theme-light .post-card.is-clickable:focus {
  border-color: rgba(var(--accent-3-rgb, 255, 109, 94), 0.34);
  box-shadow: 0 0 0 3px rgba(var(--accent-3-rgb, 255, 109, 94), 0.12), inset 0 1px 0 rgba(255,255,255,0.78);
}

.post-card::before {
  content: '';
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent-2), var(--accent), var(--accent-3));
  opacity: 0.8;
}

.post-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 24px 50px rgba(0,0,0,0.32), 0 0 0 1px rgba(var(--accent-3-rgb, 255, 109, 94), 0.08);
  border-color: rgba(var(--accent-3-rgb, 255, 109, 94), 0.28);
}

body.theme-light .post-card:hover {
  box-shadow: 0 22px 42px rgba(15,23,42,0.12), 0 0 0 1px rgba(var(--accent-3-rgb, 255, 109, 94), 0.08);
  border-color: rgba(var(--accent-3-rgb, 255, 109, 94), 0.24);
}

.card-thumb {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background: linear-gradient(145deg, rgba(var(--accent-2-rgb, 143, 31, 255), 0.42), rgba(var(--accent-rgb, 34, 239, 203), 0.10) 38%, rgba(7,15,26,0.95) 100%);
}

body.theme-light .card-thumb {
  background: linear-gradient(145deg, rgba(var(--accent-2-rgb, 143, 31, 255), 0.22), rgba(var(--accent-rgb, 34, 239, 203), 0.08) 38%, rgba(243,247,252,0.96) 100%);
}

.card-thumb::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(2,4,10,0.18) 0%, rgba(var(--accent-3-rgb, 255, 109, 94), 0.08) 26%, rgba(var(--accent-2-rgb, 143, 31, 255), 0.10) 48%, rgba(3,6,12,0.82) 72%, rgba(3,6,12,0.96) 100%);
}

body.theme-light .card-thumb::after {
  background: linear-gradient(180deg, rgba(255,255,255,0.04) 0%, rgba(var(--accent-3-rgb, 255, 109, 94), 0.04) 26%, rgba(var(--accent-2-rgb, 143, 31, 255), 0.08) 48%, rgba(241,245,250,0.82) 72%, rgba(236,242,248,0.96) 100%);
}

.card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.post-card:hover .card-thumb img { transform: scale(1.05); }

.thumb-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.thumb-placeholder .plat-icon-lg { width: 48px; height: 48px; opacity: 0.55; }

.platform-badge {
  position: absolute;
  z-index: 1;
  top: 12px;
  left: 12px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 11px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.platform-badge .badge-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 13px;
  height: 13px;
  flex: 0 0 13px;
  line-height: 0;
}

.platform-badge .badge-icon svg {
  display: block;
  width: 13px;
  height: 13px;
}

.plat-youtube   .platform-badge, .platform-badge.plat-youtube   { background: rgba(255,75,87,0.86); color: #fff; }
.plat-instagram .platform-badge, .platform-badge.plat-instagram { background: rgba(245,102,169,0.88); color: #fff; }
.plat-facebook  .platform-badge, .platform-badge.plat-facebook  { background: rgba(85,166,255,0.88); color: #fff; }
.plat-tiktok    .platform-badge, .platform-badge.plat-tiktok    { background: rgba(7,19,26,0.82); color: var(--tt); border: 1px solid rgba(113,244,226,0.55); }

.play-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle, rgba(var(--accent-3-rgb, 255, 109, 94), 0.12) 0%, rgba(0,0,0,0.16) 45%, rgba(0,0,0,0.44) 100%);
  font-size: 2.7rem;
  color: rgba(255,255,255,0.92);
  opacity: 0;
  transition: opacity 0.2s ease;
}

body.theme-light .play-overlay {
  background: radial-gradient(circle, rgba(var(--accent-rgb, 34, 239, 203), 0.12) 0%, rgba(255,255,255,0.08) 45%, rgba(15,23,42,0.18) 100%);
  color: rgba(24,36,51,0.88);
}

.post-card:hover .play-overlay { opacity: 1; }

.card-body {
  position: relative;
  z-index: 2;
  padding: 158px 18px 16px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  background: linear-gradient(180deg, rgba(4,7,14,0) 0%, rgba(var(--accent-rgb, 34, 239, 203), 0.06) 20%, rgba(var(--accent-2-rgb, 143, 31, 255), 0.10) 64%, rgba(4,7,14,0.94) 100%);
}

body.theme-light .card-body {
  background: linear-gradient(180deg, rgba(255,255,255,0) 0%, rgba(var(--accent-rgb, 34, 239, 203), 0.04) 20%, rgba(var(--accent-2-rgb, 143, 31, 255), 0.08) 64%, rgba(247,250,253,0.96) 100%);
}

.card-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.35;
  margin-bottom: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-desc {
  font-size: 0.82rem;
  color: rgba(231,244,255,0.82);
  line-height: 1.55;
  flex: 1;
  margin-bottom: 12px;
  text-shadow: 0 3px 16px rgba(0,0,0,0.44);
}

body.theme-light .card-desc {
  color: rgba(44,57,76,0.84);
  text-shadow: none;
}

.card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
  gap: 12px;
  padding-top: 10px;
  border-top: 1px solid rgba(255,255,255,0.10);
  font-size: 0.78rem;
}

body.theme-light .card-footer {
  border-top-color: rgba(85,102,128,0.12);
}

.card-time { color: rgba(224,236,247,0.7); }
.card-link { color: #cfe8ff; position: relative; z-index: 3; }
.card-link:hover { color: #c1e3ff; }

body.theme-light .card-time { color: #617286; }
body.theme-light .card-link { color: #2d63aa; }
body.theme-light .card-link:hover { color: #1f4f90; }

.expand-btn {
  display: block;
  width: 100%;
  position: relative;
  z-index: 2;
  background: linear-gradient(90deg, rgba(var(--accent-2-rgb, 143, 31, 255), 0.18), rgba(var(--accent-rgb, 34, 239, 203), 0.14));
  border: none;
  border-top: 1px solid rgba(255,255,255,0.10);
  padding: 11px;
  color: #f0fbff;
  font-size: 0.83rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease;
  font-family: inherit;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

body.theme-light .expand-btn {
  border-top-color: rgba(85,102,128,0.10);
  color: #17304b;
}

.expand-btn:hover { background: linear-gradient(90deg, rgba(var(--accent-2-rgb, 143, 31, 255), 0.24), rgba(var(--accent-rgb, 34, 239, 203), 0.22)); }

.pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 40px;
  flex-wrap: wrap;
}

.page-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 12px;
  border-radius: 10px;
  border: 1px solid rgba(var(--accent-3-rgb, 255, 109, 94), 0.16);
  color: var(--muted);
  font-size: 0.88rem;
  background: rgba(255,255,255,0.02);
  transition: all 0.18s ease;
}

body.theme-light .page-btn {
  background: rgba(255,255,255,0.74);
  border-color: rgba(85,102,128,0.16);
  color: #5d6e83;
}

.page-btn:hover { border-color: rgba(var(--accent-3-rgb, 255, 109, 94), 0.38); color: var(--text); }
.page-btn.active { background: linear-gradient(135deg, var(--accent-2), var(--accent)); border-color: transparent; color: #fff; }

body.theme-light .page-btn.active {
  background: linear-gradient(135deg, var(--accent-2), var(--accent));
  border-color: transparent;
  color: #fff;
}

.empty-state {
  text-align: center;
  padding: 90px 20px;
  background: rgba(11,14,22,0.48);
  border: 1px solid rgba(var(--accent-3-rgb, 255, 109, 94), 0.14);
  border-radius: 28px;
  box-shadow: var(--shadow);
}

body.theme-light .empty-state {
  background: rgba(255,255,255,0.76);
  border-color: rgba(85,102,128,0.14);
}

.empty-icon { font-size: 4rem; margin-bottom: 20px; }
.empty-state h2 { font-size: 1.7rem; margin-bottom: 10px; }
.empty-state p  { color: var(--muted); margin-bottom: 24px; }

.btn-primary {
  display: inline-block;
  background: linear-gradient(135deg, var(--accent-2), var(--accent));
  color: #fff;
  padding: 11px 26px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.9rem;
  border: none;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  font-family: inherit;
  box-shadow: 0 12px 24px rgba(var(--accent-3-rgb, 255, 109, 94), 0.18);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 28px rgba(var(--accent-3-rgb, 255, 109, 94), 0.22);
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(4,6,10,0.84);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

body.theme-light .modal-backdrop {
  background: rgba(236,242,248,0.78);
}

.modal-box {
  position: relative;
  background: linear-gradient(180deg, rgba(20,24,35,0.96) 0%, rgba(10,13,22,0.98) 100%);
  border: 1px solid rgba(var(--accent-3-rgb, 255, 109, 94), 0.16);
  border-radius: 22px;
  width: 100%;
  max-width: 800px;
  max-height: 90vh;
  overflow-y: auto;
  z-index: 1;
  box-shadow: var(--shadow);
}

body.theme-light .modal-box {
  background: linear-gradient(180deg, rgba(255,255,255,0.98) 0%, rgba(244,247,252,0.98) 100%);
  border-color: rgba(85,102,128,0.16);
}

.modal-close {
  position: absolute;
  top: 10px;
  right: 14px;
  background: none;
  border: none;
  color: var(--muted);
  font-size: 1.8rem;
  cursor: pointer;
  line-height: 1;
  z-index: 2;
  transition: color 0.15s;
}

.modal-close:hover { color: var(--text); }

#embed-content { padding: 24px; }

#embed-content iframe,
#embed-content video {
  width: 100%;
  max-width: 100%;
  border-radius: 12px;
}

#embed-content .card-title {
  margin-bottom: 12px;
  font-size: 1.14rem;
}

.social-preview {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.social-preview-media {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: min(68vh, 720px);
  padding: 14px;
  border-radius: 18px;
  overflow: hidden;
  background:
    radial-gradient(circle at top, rgba(var(--accent-3-rgb, 255, 109, 94), 0.16), transparent 45%),
    linear-gradient(180deg, rgba(255,255,255,0.05) 0%, rgba(255,255,255,0.02) 100%);
  border: 1px solid rgba(var(--accent-3-rgb, 255, 109, 94), 0.12);
}

body.theme-light .social-preview-media {
  background:
    radial-gradient(circle at top, rgba(var(--accent-3-rgb, 255, 109, 94), 0.12), transparent 45%),
    linear-gradient(180deg, rgba(255,255,255,0.9) 0%, rgba(245,248,252,0.9) 100%);
  border-color: rgba(85,102,128,0.12);
}

.social-preview-media-link {
  text-decoration: none;
  cursor: pointer;
}

.social-preview-media-link:hover {
  border-color: rgba(var(--accent-3-rgb, 255, 109, 94), 0.28);
  box-shadow: 0 18px 34px rgba(0,0,0,0.24);
}

body.theme-light .social-preview-media-link:hover {
  border-color: rgba(var(--accent-3-rgb, 255, 109, 94), 0.24);
  box-shadow: 0 18px 34px rgba(15,23,42,0.12);
}

.social-preview-media::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(143,31,255,0.14) 0%, rgba(8,14,24,0.18) 100%);
  pointer-events: none;
}

body.theme-light .social-preview-media::before {
  background: linear-gradient(180deg, rgba(var(--accent-2-rgb, 143, 31, 255), 0.08) 0%, rgba(255,255,255,0.08) 100%);
}

.social-preview-image {
  position: relative;
  z-index: 1;
  display: block;
  width: auto;
  max-width: 100%;
  max-height: min(64vh, 680px);
  border-radius: 14px;
  object-fit: contain;
  box-shadow: 0 20px 36px rgba(0,0,0,0.28);
}

body.theme-light .social-preview-image {
  box-shadow: 0 18px 30px rgba(15,23,42,0.16);
}

.social-preview-media-link .social-preview-image {
  cursor: pointer;
}

.social-preview-body {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
}

.social-preview-description {
  font-size: 0.92rem;
  color: #d6deea;
  line-height: 1.65;
  margin: 0;
  max-height: 16vh;
  overflow-y: auto;
  padding-right: 4px;
}

body.theme-light .social-preview-description {
  color: #44556a;
}

.social-preview-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--accent-2), var(--accent));
  color: #fff;
  font-size: 0.9rem;
  font-weight: 700;
  box-shadow: 0 12px 24px rgba(var(--accent-3-rgb, 255, 109, 94), 0.18);
}

.social-preview-link:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 28px rgba(var(--accent-3-rgb, 255, 109, 94), 0.22);
}

@media (max-width: 680px) {
  .social-preview-media {
    min-height: auto;
    padding: 10px;
  }

  .social-preview-image {
    width: 100%;
    max-height: 58vh;
  }

  .social-preview-description {
    max-height: none;
  }
}

.site-footer {
  border-top: 1px solid rgba(var(--accent-3-rgb, 255, 109, 94), 0.10);
  text-align: center;
  padding: 24px 20px 34px;
  color: var(--muted);
  font-size: 0.82rem;
  background: rgba(10,12,18,0.4);
}

body.theme-light .site-footer {
  border-top-color: rgba(85,102,128,0.10);
  background: rgba(255,255,255,0.52);
}

.site-footer a { color: #92c9ff; }
.site-footer a:hover { color: #c1e3ff; }

body.theme-light .site-footer a { color: #2b66ae; }
body.theme-light .site-footer a:hover { color: #1f4f90; }

@media (max-width: 900px) {
  .site-header {
    --ufo-left: 22px;
    --ufo-top: 10px;
    --ufo-width: 150px;
    --ufo-height: 30px;
    --beam-width: 196px;
    --beam-height: 164px;
  }

  .site-header .container {
    min-height: 175px;
    padding-left: 156px;
  }

  .site-header.has-logo .container {
    grid-template-columns: minmax(132px, 30vw) minmax(0, 1fr);
    padding-left: 24px;
  }

  .site-header.logo-only .container {
    padding-left: 24px;
    padding-right: 24px;
    justify-content: center;
  }

  .hero-mark {
    width: min(100%, 280px);
    min-height: 92px;
  }

  .hero-mark img {
    max-height: 142px;
  }

  .logo { font-size: clamp(2.8rem, 10vw, 4.8rem); }
}

@media (max-width: 680px) {
  .site-header {
    --ufo-left: calc(50% - 61px);
    --ufo-top: 10px;
    --ufo-width: 122px;
    --ufo-height: 28px;
    --beam-width: 168px;
    --beam-height: 136px;
  }

  .site-header .container {
    min-height: 224px;
    justify-content: flex-end;
    align-items: center;
    text-align: center;
    padding-top: 86px;
    padding-bottom: 22px;
  }

  .site-header.has-logo .container {
    min-height: 210px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;
    text-align: center;
    padding-top: 32px;
    padding-bottom: 20px;
    gap: 14px;
  }

  .site-header.logo-only .container {
    min-height: 176px;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding-top: 24px;
    padding-bottom: 18px;
    padding-left: 18px;
    padding-right: 18px;
  }

  .hero-copy {
    margin-left: 0;
    align-items: center;
  }

  .site-header.has-logo .hero-copy {
    width: 100%;
    max-width: 460px;
    align-items: center;
  }

  .hero-mark {
    width: min(100%, 180px);
    min-height: 72px;
    justify-content: center;
  }

  .hero-mark img {
    max-height: 112px;
    object-position: center center;
  }

  .site-header .container::before,
  .site-header .container::after {
    opacity: 0.5;
  }

  .site-header.has-cover {
    background: var(--site-cover-image) center 32% / cover no-repeat;
  }
}

@media (max-width: 600px) {
  .posts-grid { grid-template-columns: 1fr; }
  .post-card { min-height: 340px; }
  .card-body { padding: 132px 16px 14px; }
  .card-desc { font-size: 0.8rem; margin-bottom: 10px; }
  .filter-btn { padding: 7px 12px; font-size: 0.81rem; }
  .tagline { font-size: 1rem; }

  .site-header.has-logo .container {
    gap: 12px;
  }

  .site-header.logo-only .container {
    min-height: 148px;
    padding-top: 18px;
    padding-bottom: 16px;
    padding-left: 16px;
    padding-right: 16px;
    justify-content: center;
  }

  .hero-mark {
    width: min(100%, 132px);
  }

  .hero-mark img {
    max-height: 84px;
  }

  .site-header.logo-only .hero-mark {
    width: min(100%, 176px);
  }

  .site-header.has-logo:not(.logo-only) .hero-copy {
    max-width: 320px;
  }
}

@media (max-width: 768px) {
  .posts-grid { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
}
