﻿:root {
  --black:      #0e0c0a;
  --charcoal:   #161412;
  --charcoal2:  #1e1b18;
  --charcoal3:  #252118;
  --orange:     #f05c00;
  --orange2:    #ff7a1a;
  --orange3:    #ff9944;
  --cream:      #f0e8d8;
  --cream2:     #e0d4be;
  --cream3:     #c8bca0;
  --white:      #faf6f0;
  --muted:      #8a8070;
  --muted2:     #5a5040;
  --border:     #2e2820;
  --border2:    #3e3628;
  --blue:       #1a8fff;
  --red:        #cc2200;

  --font-title:  'Bebas Neue', sans-serif;
  --font-cond:   'Barlow Condensed', sans-serif;
  --font-body:   'Barlow', sans-serif;
  --font-mono:   'IBM Plex Mono', monospace;

  --header-top-h: 178px;
  --header-nav-h: 46px;
  --header-pad-x: 34px;
  --header-pad-y: 12px;
  --chrome-h: calc(var(--header-top-h) + var(--header-nav-h) + 3px);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  background: var(--black);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

/* Noise texture */
body::before {
  content: '';
  position: fixed; inset: 0; z-index: 0;
  pointer-events: none; opacity: 0.032;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 180px;
}

a { text-decoration: none; color: inherit; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
input, textarea { font-family: inherit; }
[hidden] { display: none !important; }

/* â”€â”€ SCROLLBAR â”€â”€ */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--charcoal); }
::-webkit-scrollbar-thumb { background: var(--border2); border-radius: 0; }
::-webkit-scrollbar-thumb:hover { background: var(--orange); }

/* ============================================================
   HEADER
============================================================ */
.site-header {
  position: sticky; top: 0; z-index: 200;
  background: var(--black);
  border-bottom: 3px solid var(--orange);
  box-shadow: 0 4px 24px rgba(240,92,0,0.18);
}

.header-top {
  position: relative;
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 18px var(--header-pad-x) 22px;
  height: var(--header-top-h);
  border-bottom: 1px solid var(--border);
  overflow: visible;
}

.site-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  height: 130px;
  padding: 10px 24px 22px;
  flex-shrink: 0;
  position: relative;
  isolation: isolate;
}

.site-logo::before {
  content: '';
  position: absolute;
  inset: 18px 6px 12px;
  z-index: -1;
  border-radius: 50%;
  background:
    radial-gradient(ellipse at center,
      rgba(255,122,26,0.55) 0%,
      rgba(240,92,0,0.28) 34%,
      rgba(240,92,0,0.08) 58%,
      transparent 74%);
  filter: blur(12px);
  transform: scaleX(1.1);
  animation: logo-eclipse-pulse 3.1s ease-in-out infinite;
  will-change: opacity, transform;
}

.site-logo::after {
  content: '';
  position: absolute;
  inset: 26px 24px 18px;
  z-index: -2;
  border-radius: 50%;
  background: radial-gradient(ellipse at center,
    rgba(255,122,26,0.38) 0%,
    rgba(240,92,0,0.2) 42%,
    transparent 72%);
  filter: blur(22px);
  opacity: 0.35;
  transform: scale(0.82);
  animation: logo-eclipse-aura 3.1s ease-in-out infinite;
  will-change: opacity, transform;
}

.site-logo-img {
  display: block;
  width: auto;
  height: 118px;
  max-width: 420px;
  object-fit: contain;
  filter:
    drop-shadow(0 0 10px rgba(240,92,0,0.72))
    drop-shadow(0 0 26px rgba(240,92,0,0.38))
    drop-shadow(0 8px 18px rgba(0,0,0,0.7));
}

@keyframes logo-eclipse-pulse {
  0%, 100% {
    opacity: 0.55;
    transform: scaleX(1.02) scaleY(0.92);
  }
  50% {
    opacity: 1;
    transform: scaleX(1.26) scaleY(1.1);
  }
}

@keyframes logo-eclipse-aura {
  0%, 100% {
    opacity: 0.18;
    transform: scale(0.8);
  }
  50% {
    opacity: 0.58;
    transform: scale(1.08);
  }
}

.logo-tagline {
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--muted);
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-left: 14px;
  align-self: center;
  border-left: 2px solid var(--border2);
  padding-left: 14px;
  line-height: 1.3;
  display: none; /* shown on wider screens via media query */
}

.header-search {
  position: absolute;
  left: 50%;
  top: 50%;
  width: min(520px, 38vw);
  transform: translate(-50%, -50%);
}

.header-search::before {
  content: '';
  position: absolute;
  inset: -5px;
  border: 1px solid transparent;
  background:
    linear-gradient(var(--charcoal), var(--charcoal)) padding-box,
    linear-gradient(90deg, transparent, rgba(240,92,0,0.9), transparent) border-box;
  opacity: 0;
  transform: scaleX(0.72);
  transition: opacity 0.22s ease, transform 0.22s ease, filter 0.22s ease;
  pointer-events: none;
}

.header-search:hover::before,
.header-search:focus-within::before {
  opacity: 1;
  transform: scaleX(1);
  filter: drop-shadow(0 0 12px rgba(240,92,0,0.4));
}

.header-search input {
  width: 100%;
  height: 48px;
  background: var(--charcoal2);
  border: 1px solid var(--border2);
  color: var(--white);
  padding: 0 44px 0 18px;
  font-size: 18px;
  outline: none;
  position: relative;
  z-index: 1;
  transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
}
.header-search input::placeholder { color: var(--muted2); }
.header-search:hover input,
.header-search input:focus {
  border-color: var(--orange);
  background: #211b14;
  box-shadow: inset 0 0 0 1px rgba(240,92,0,0.28), 0 0 22px rgba(240,92,0,0.16);
}
.search-icon {
  position: absolute; right: 10px; top: 50%; transform: translateY(-50%);
  z-index: 2;
  color: var(--muted); pointer-events: none;
  transition: color 0.2s, filter 0.2s;
}
.header-search:hover .search-icon,
.header-search:focus-within .search-icon {
  color: var(--orange3);
  filter: drop-shadow(0 0 8px rgba(240,92,0,0.55));
}

.header-actions {
  position: absolute;
  right: var(--header-pad-x);
  top: 50%;
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: nowrap;
  transform: translateY(-50%);
  white-space: nowrap;
}

.btn-logout {
  font-family: var(--font-cond);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #d28b66;
  background: transparent;
  border: 1px solid rgba(184,79,45,0.52);
  padding: 6px 16px;
  transition: border-color 0.2s, color 0.2s, box-shadow 0.2s;
}
.btn-logout:hover {
  border-color: #b84f2d;
  color: #ffb088;
  box-shadow: 0 0 18px rgba(184,79,45,0.16);
}
.btn-publicar {
  font-family: var(--font-cond);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--black);
  background: var(--orange);
  padding: 7px 18px;
  border: 2px solid var(--orange);
  transition: background 0.15s, transform 0.1s;
}
.btn-publicar:hover { background: var(--orange2); transform: translateY(-1px); }

/* Nav bar */
.header-nav {
  display: flex;
  align-items: center;
  gap: 0;
  padding: 0 20px;
  height: var(--header-nav-h);
  overflow-x: auto;
  background: var(--charcoal);
}
.header-nav::-webkit-scrollbar { height: 2px; }

.content-type-nav {
  display: flex;
  align-items: center;
  min-width: 0;
}

.nav-link {
  font-family: var(--font-cond);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--muted);
  padding: 0 22px;
  height: var(--header-nav-h);
  display: flex; align-items: center;
  border-right: 1px solid var(--border);
  white-space: nowrap;
  transition: color 0.15s, background 0.15s;
  position: relative;
}
.nav-link:first-child { border-left: 1px solid var(--border); }
.nav-link::after {
  content: '';
  position: absolute; bottom: 0; left: 0; right: 0;
  height: 2px; background: var(--orange);
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.2s;
}
.nav-link:hover { color: var(--white); background: var(--charcoal2); }
.nav-link:hover::after, .nav-link.active::after { transform: scaleX(1); }
.nav-link.active { color: var(--orange); }

/* ============================================================
   MAIN LAYOUT
============================================================ */
.site-main {
  position: relative; z-index: 1;
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr) 340px;
  gap: 0;
  max-width: 1680px;
  margin: 0 auto;
  height: calc(100vh - var(--chrome-h));
  min-height: 0;
  overflow: hidden;
}

/* ============================================================
   LEFT SIDEBAR - FOROS
============================================================ */
.sidebar-left {
  border-right: 1px solid var(--border);
  background: var(--charcoal);
  padding: 0;
  min-height: 0;
  height: 100%;
  overflow: hidden;
}

.sidebar-section {
  padding: 0;
  border-bottom: 1px solid var(--border);
}

.sidebar-title {
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--muted);
  padding: 14px 20px 12px;
  border-bottom: 1px solid var(--border);
  background: var(--charcoal2);
}

.forum-link {
  --section-accent: var(--cream2);
  --section-border: var(--border);
  --section-bg: var(--charcoal2);
  --section-glow: transparent;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
  font-family: var(--font-cond);
  font-size: 21px;
  font-weight: 600;
  color: var(--section-accent);
  border-bottom: 1px solid rgba(255,255,255,0.03);
  transition: background 0.15s, color 0.15s;
  cursor: pointer;
}
.forum-link:hover, .forum-link.active {
  background: var(--charcoal3);
  color: var(--section-accent);
}
.forum-link .fl-label {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  flex: 1;
  text-align: center;
}

.forum-link .fl-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--section-accent);
  margin-right: 10px;
  flex-shrink: 0;
  opacity: 0;
  transition: opacity 0.15s;
  box-shadow: 0 0 12px var(--section-glow);
}
.forum-link:hover .fl-dot, .forum-link.active .fl-dot { opacity: 1; }
.forum-link.type-all,
.forum-link.type-texto {
  --section-accent: var(--orange3);
  --section-border: rgba(240,92,0,0.58);
  --section-bg: rgba(240,92,0,0.08);
  --section-glow: rgba(240,92,0,0.22);
}
.forum-link.type-youtube {
  --section-accent: #e84b35;
  --section-border: rgba(184,58,46,0.62);
  --section-bg: rgba(184,58,46,0.12);
  --section-glow: rgba(184,58,46,0.2);
}
.forum-link.type-tiktok {
  --section-accent: #69c9d0;
  --section-border: rgba(105,201,208,0.62);
  --section-bg: rgba(105,201,208,0.1);
  --section-glow: rgba(105,201,208,0.2);
}
.forum-link.type-instagram {
  --section-accent: #ff69bf;
  --section-border: rgba(214,70,154,0.68);
  --section-bg: rgba(214,70,154,0.12);
  --section-glow: rgba(214,70,154,0.2);
}
.forum-link.type-imagen {
  --section-accent: #a8ff5a;
  --section-border: rgba(120,201,69,0.56);
  --section-bg: rgba(120,201,69,0.1);
  --section-glow: rgba(120,201,69,0.2);
}
.forum-link.type-audio {
  --section-accent: #b985ff;
  --section-border: rgba(139,88,217,0.56);
  --section-bg: rgba(139,88,217,0.11);
  --section-glow: rgba(139,88,217,0.2);
}
.forum-link.type-video {
  --section-accent: #6fa8ff;
  --section-border: rgba(77,120,216,0.56);
  --section-bg: rgba(77,120,216,0.11);
  --section-glow: rgba(77,120,216,0.2);
}

/* ============================================================
   FEED
============================================================ */
.feed {
  border-right: 1px solid var(--border);
  background: var(--charcoal);
  min-height: 0;
  height: 100%;
  overflow-y: auto;
  overscroll-behavior: contain;
}
.feed.is-loading .post-card { display: none; }
.feed-loading {
  padding: 28px 24px;
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--muted2);
  text-transform: uppercase;
  letter-spacing: 1px;
}
.feed-sentinel {
  min-height: 1px;
}

/* â”€â”€ POST CARD â”€â”€ */
.post-card {
  border-bottom: 1px solid var(--border);
  background: var(--charcoal);
  transition: background 0.18s, border-color 0.18s, box-shadow 0.18s;
  position: relative;
  overflow: hidden;
}
.post-card::before {
  content: '';
  position: absolute; left: 0; top: 0; bottom: 0;
  width: 3px;
  background: var(--orange);
  transform: scaleY(0); transform-origin: top;
  transition: transform 0.25s ease;
}
.post-card:hover {
  background: var(--charcoal2);
  border-color: rgba(240,92,0,0.5);
  box-shadow:
    inset 0 0 0 1px rgba(240,92,0,0.16),
    inset 14px 0 28px rgba(240,92,0,0.08),
    0 0 28px rgba(240,92,0,0.08);
}
.post-card:hover::before { transform: scaleY(1); }

/* Post title */
.post-title {
  font-family: var(--font-cond);
  font-size: 31px;
  font-weight: 700;
  color: var(--white);
  line-height: 1.2;
  margin-bottom: 8px;
  letter-spacing: 0;
  transition: color 0.15s;
  cursor: pointer;
}
.post-card:hover .post-title { color: var(--orange3); }

/* DB-backed feed rows */
.feed-bardo-card {
  padding: 18px 20px 0;
  border-top: 1px solid rgba(240, 92, 0, 0.16);
  cursor: pointer;
}
.feed-bardo-card + .feed-bardo-card {
  margin-top: -1px;
}
.feed-bardo-card:hover {
  background:
    linear-gradient(90deg, rgba(240, 92, 0, 0.11), transparent 48%),
    var(--charcoal2);
}
.feed-bardo-card:focus-visible {
  outline: 1px solid var(--orange);
  outline-offset: -3px;
}
.feed-bardo-card::before {
  width: 4px;
}
.feed-bardo-meta,
.feed-bardo-footer {
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--cream2);
}
.feed-bardo-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}
.feed-bardo-type {
  border: 1px solid var(--orange);
  color: var(--orange);
  background: rgba(240,92,0,0.08);
  padding: 4px 9px;
  text-transform: uppercase;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 600;
}
.feed-bardo-type.type-youtube {
  color: #e84b35;
  border-color: #b83a2e;
  background: rgba(184,58,46,0.12);
  box-shadow: inset 0 0 0 1px rgba(232,75,53,0.08), 0 0 14px rgba(184,58,46,0.1);
}
.feed-bardo-type.type-instagram {
  color: #ff69bf;
  border-color: #d6469a;
  background: rgba(214,70,154,0.12);
  box-shadow: inset 0 0 0 1px rgba(255,105,191,0.08), 0 0 14px rgba(214,70,154,0.1);
}
.feed-bardo-type.type-tiktok {
  color: #69c9d0;
  border-color: #4caeb5;
  background: rgba(105,201,208,0.1);
  box-shadow: inset 0 0 0 1px rgba(105,201,208,0.08), 0 0 14px rgba(105,201,208,0.1);
}
.feed-bardo-type.type-imagen {
  color: #a8ff5a;
  border-color: #78c945;
  background: rgba(120,201,69,0.1);
  box-shadow: inset 0 0 0 1px rgba(168,255,90,0.08), 0 0 14px rgba(120,201,69,0.1);
}
.feed-bardo-type.type-audio {
  color: #b985ff;
  border-color: #8b58d9;
  background: rgba(139,88,217,0.11);
  box-shadow: inset 0 0 0 1px rgba(185,133,255,0.08), 0 0 14px rgba(139,88,217,0.1);
}
.feed-bardo-type.type-video {
  color: #6fa8ff;
  border-color: #4d78d8;
  background: rgba(77,120,216,0.11);
  box-shadow: inset 0 0 0 1px rgba(111,168,255,0.08), 0 0 14px rgba(77,120,216,0.1);
}
.feed-bardo-source {
  color: var(--cream2);
}
.feed-bardo-title {
  font-family: var(--font-cond);
  font-size: clamp(28px, 2.1vw, 37px);
  line-height: 0.98;
  margin-bottom: 12px;
  text-transform: uppercase;
}
.feed-youtube-media {
  width: min(780px, calc(100% - 40px));
  aspect-ratio: 16 / 9;
  margin: 0 auto 14px;
  position: relative;
  overflow: hidden;
  background:
    repeating-linear-gradient(135deg, rgba(232,75,53,0.08) 0 1px, transparent 1px 12px),
    #0a0807;
  border: 1px solid rgba(184,58,46,0.62);
  box-shadow:
    inset 0 0 0 1px rgba(232,75,53,0.08),
    0 0 24px rgba(184,58,46,0.11);
}
.feed-youtube-media.is-short {
  width: min(360px, calc(100% - 40px));
  aspect-ratio: 9 / 16;
}
.feed-youtube-media.is-playing {
  background: #050403;
}
.feed-youtube-thumb,
.feed-youtube-frame {
  width: 100%;
  height: 100%;
  display: block;
  border: 0;
}
.feed-youtube-thumb {
  position: relative;
  overflow: hidden;
  padding: 0;
  background: transparent;
}
.feed-youtube-thumb img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  opacity: 1;
  filter: saturate(1.02) contrast(1.02) brightness(1);
  transition: opacity 0.18s, filter 0.18s, transform 0.22s;
}
.feed-youtube-thumb::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    radial-gradient(circle at 50% 50%, rgba(240,92,0,0.06), transparent 34%),
    linear-gradient(180deg, transparent 70%, rgba(0,0,0,0.18));
  pointer-events: none;
}
.feed-youtube-thumb:hover img,
.feed-youtube-thumb:focus-visible img {
  opacity: 1;
  filter: saturate(1.08) contrast(1.05) brightness(1.04);
  transform: scale(1.025);
}
.feed-youtube-thumb:focus-visible {
  outline: 2px solid #e84b35;
  outline-offset: -4px;
}
.feed-youtube-label {
  position: absolute;
  right: 12px;
  bottom: 10px;
  z-index: 2;
  padding: 4px 9px;
  color: #ffb69f;
  background: rgba(14,12,10,0.74);
  border: 1px solid rgba(184,58,46,0.7);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}
.feed-tiktok-media {
  width: min(430px, calc(100% - 40px));
  height: 820px;
  margin: 0 auto 14px;
  position: relative;
  overflow: hidden;
  background:
    repeating-linear-gradient(135deg, rgba(105,201,208,0.08) 0 1px, transparent 1px 12px),
    #080808;
  border: 1px solid rgba(105,201,208,0.62);
  box-shadow:
    inset 0 0 0 1px rgba(105,201,208,0.08),
    0 0 24px rgba(105,201,208,0.11);
}
.feed-tiktok-frame {
  width: 100%;
  height: 100%;
  display: block;
  border: 0;
  background: #050505;
}
.feed-tiktok-label {
  position: absolute;
  right: 12px;
  bottom: 10px;
  z-index: 2;
  padding: 4px 9px;
  color: #d7fbff;
  background: rgba(14,12,10,0.74);
  border: 1px solid rgba(105,201,208,0.7);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  pointer-events: none;
}
.feed-tiktok-fallback {
  width: min(520px, calc(100% - 40px));
  min-height: 118px;
  display: grid;
  align-content: center;
  gap: 8px;
  margin: 0 auto 14px;
  padding: 18px;
  color: var(--cream2);
  background:
    repeating-linear-gradient(135deg, rgba(105,201,208,0.08) 0 1px, transparent 1px 12px),
    var(--charcoal2);
  border: 1px solid rgba(105,201,208,0.62);
  box-shadow: inset 0 0 0 1px rgba(105,201,208,0.08), 0 0 24px rgba(105,201,208,0.1);
}
.feed-tiktok-fallback strong {
  color: #69c9d0;
  font-family: var(--font-cond);
  font-size: 25px;
  font-weight: 800;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}
.feed-tiktok-fallback span {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.4;
}
.feed-tiktok-fallback:hover,
.feed-tiktok-fallback:focus-visible {
  border-color: #69c9d0;
  box-shadow: inset 0 0 0 1px rgba(105,201,208,0.18), 0 0 30px rgba(105,201,208,0.16);
  outline: none;
}
.feed-instagram-media {
  width: min(540px, calc(100% - 40px));
  height: 820px;
  margin: 0 auto 14px;
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 18% 12%, rgba(255,105,191,0.11), transparent 28%),
    repeating-linear-gradient(135deg, rgba(214,70,154,0.08) 0 1px, transparent 1px 12px),
    #0a0809;
  border: 1px solid rgba(214,70,154,0.68);
  box-shadow:
    inset 0 0 0 1px rgba(255,105,191,0.08),
    0 0 24px rgba(214,70,154,0.12);
}
.feed-instagram-media.is-reel {
  width: min(430px, calc(100% - 40px));
  height: 800px;
}
.feed-instagram-frame {
  width: 100%;
  height: 100%;
  display: block;
  border: 0;
  background: #050405;
}
.feed-instagram-label {
  position: absolute;
  right: 12px;
  bottom: 10px;
  z-index: 2;
  padding: 4px 9px;
  color: #ffd7ef;
  background: rgba(14,12,10,0.78);
  border: 1px solid rgba(214,70,154,0.76);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  pointer-events: none;
}
.feed-instagram-fallback {
  width: min(520px, calc(100% - 40px));
  min-height: 118px;
  display: grid;
  align-content: center;
  gap: 8px;
  margin: 0 auto 14px;
  padding: 18px;
  color: var(--cream2);
  background:
    repeating-linear-gradient(135deg, rgba(214,70,154,0.08) 0 1px, transparent 1px 12px),
    var(--charcoal2);
  border: 1px solid rgba(214,70,154,0.68);
  box-shadow: inset 0 0 0 1px rgba(255,105,191,0.08), 0 0 24px rgba(214,70,154,0.11);
}
.feed-instagram-fallback strong {
  color: #ff69bf;
  font-family: var(--font-cond);
  font-size: 25px;
  font-weight: 800;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}
.feed-instagram-fallback span {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.4;
}
.feed-instagram-fallback:hover,
.feed-instagram-fallback:focus-visible {
  border-color: #ff69bf;
  box-shadow: inset 0 0 0 1px rgba(255,105,191,0.18), 0 0 30px rgba(214,70,154,0.16);
  outline: none;
}
.feed-file-media {
  width: min(760px, calc(100% - 40px));
  margin: 0 auto 14px;
  overflow: hidden;
  background:
    repeating-linear-gradient(135deg, rgba(240,92,0,0.07) 0 1px, transparent 1px 12px),
    #0a0807;
  border: 1px solid rgba(240,92,0,0.42);
  box-shadow: inset 0 0 0 1px rgba(240,92,0,0.06), 0 0 24px rgba(240,92,0,0.1);
}
.feed-imagen-media {
  background:
    repeating-linear-gradient(135deg, rgba(168,255,90,0.07) 0 1px, transparent 1px 12px),
    #070a05;
  border-color: rgba(120,201,69,0.56);
  box-shadow: inset 0 0 0 1px rgba(168,255,90,0.07), 0 0 24px rgba(120,201,69,0.1);
}
.feed-imagen-media img {
  width: 100%;
  max-height: 520px;
  display: block;
  object-fit: contain;
  background: #050403;
}
.feed-video-media {
  aspect-ratio: 16 / 9;
  background:
    repeating-linear-gradient(135deg, rgba(111,168,255,0.07) 0 1px, transparent 1px 12px),
    #05070d;
  border-color: rgba(77,120,216,0.56);
  box-shadow: inset 0 0 0 1px rgba(111,168,255,0.07), 0 0 24px rgba(77,120,216,0.1);
}
.feed-video-media video,
.feed-video-media img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  background: #050403;
}
.feed-audio-media {
  padding: 18px;
  background:
    repeating-linear-gradient(135deg, rgba(185,133,255,0.07) 0 1px, transparent 1px 12px),
    #09060d;
  border-color: rgba(139,88,217,0.56);
  box-shadow: inset 0 0 0 1px rgba(185,133,255,0.07), 0 0 24px rgba(139,88,217,0.1);
}
.feed-audio-media audio {
  width: 100%;
  display: block;
  accent-color: #b985ff;
}
.feed-file-fallback {
  width: min(520px, calc(100% - 40px));
  min-height: 118px;
  display: grid;
  align-content: center;
  gap: 8px;
  margin: 0 auto 14px;
  padding: 18px;
  color: var(--cream2);
  background:
    repeating-linear-gradient(135deg, rgba(240,92,0,0.08) 0 1px, transparent 1px 12px),
    var(--charcoal2);
  border: 1px solid rgba(240,92,0,0.52);
  box-shadow: inset 0 0 0 1px rgba(240,92,0,0.08), 0 0 24px rgba(240,92,0,0.1);
}
.feed-file-fallback strong {
  color: var(--orange3);
  font-family: var(--font-cond);
  font-size: 25px;
  font-weight: 800;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}
.feed-file-fallback span {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.4;
}
@media (max-width: 600px) {
  .feed-tiktok-media {
    width: min(430px, calc(100% - 28px));
    height: min(800px, calc((100vw - 28px) * 2.05));
    min-height: 660px;
  }
  .feed-instagram-media,
  .feed-instagram-media.is-reel {
    width: min(430px, calc(100% - 28px));
    height: min(820px, calc((100vw - 28px) * 2.05));
    min-height: 640px;
  }
  .feed-file-media,
  .feed-file-fallback {
    width: min(100%, calc(100vw - 28px));
  }
}
.feed-bardo-body {
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.45;
  color: var(--cream2);
  margin-bottom: 14px;
}
.feed-bardo-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}
.feed-bardo-tags span {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--cream2);
  background: var(--charcoal3);
  border: 1px solid var(--border2);
  padding: 5px 9px;
}
.feed-bardo-tags span::before { content: '#'; opacity: 0.5; }
.feed-bardo-footer {
  display: grid;
  grid-template-columns: minmax(80px, auto) minmax(80px, auto) 1fr auto;
  align-items: center;
  gap: 16px;
  border-top: 1px solid var(--border);
  margin: 0 -20px;
  padding: 12px 20px;
}
.feed-bardo-footer strong {
  color: var(--cream);
  font-family: var(--font-cond);
  font-size: 16px;
}
.feed-bardo-footer .author-profile-link {
  color: var(--cream);
  font-family: var(--font-cond);
  font-size: 16px;
  font-weight: 700;
  text-decoration: none;
}
.feed-bardo-footer .author-profile-link:hover,
.feed-bardo-footer .author-profile-link:focus-visible {
  color: var(--orange3);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.feed-bardo-actions {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
}
.feed-bardo-action {
  min-width: 86px;
  border: 1px solid var(--border2);
  background: transparent;
  color: var(--orange3);
  padding: 8px 14px;
  font-family: var(--font-title);
  font-size: 18px;
  line-height: 1;
  text-align: center;
  text-decoration: none;
  text-transform: uppercase;
  cursor: pointer;
  transition: border-color 0.16s, color 0.16s, background 0.16s;
}
.feed-bardo-action:hover,
.feed-bardo-action:focus-visible {
  border-color: var(--orange);
  background: rgba(240, 92, 0, 0.1);
  color: var(--white);
  outline: none;
}
.feed-bardo-source-link {
  color: var(--cream);
  border-color: rgba(205, 185, 153, 0.34);
}
.feed-bardo-source-link:hover,
.feed-bardo-source-link:focus-visible {
  border-color: var(--cream2);
  background: rgba(205, 185, 153, 0.08);
}

/* ============================================================
   RIGHT SIDEBAR
============================================================ */
.sidebar-right {
  background: var(--charcoal);
  min-height: 0;
  height: 100%;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.widget {
  border-bottom: 1px solid var(--border);
  padding: 0;
}

.widget-title {
  font-family: var(--font-body);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--orange);
  padding: 14px 20px 12px;
  border-bottom: 1px solid var(--border);
  background: var(--charcoal2);
  display: flex;
  align-items: center;
  gap: 8px;
}
.widget-title::before {
  content: '';
  display: block;
  width: 8px; height: 8px;
  background: var(--orange);
  flex-shrink: 0;
}

/* Trending tags */
.tag-cloud {
  padding: 16px 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.tag-cloud .tag-item {
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--cream2);
  padding: 5px 11px;
  border: 1px solid var(--border2);
  background: var(--charcoal3);
  line-height: 1.2;
  text-align: left;
  transition: all 0.15s;
  cursor: pointer;
}
.tag-cloud .tag-item:hover { color: var(--orange3); border-color: var(--orange); }
.tag-cloud .tag-item::before { content: '#'; opacity: 0.5; }
.tag-cloud .tag-item.hot { border-color: var(--orange); color: var(--orange3); }

/* Top users */
.user-list { padding: 8px 0; }
.user-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 20px;
  border-bottom: 1px solid rgba(255,255,255,0.03);
  transition: background 0.15s;
}
.user-item:hover { background: var(--charcoal2); }
.user-rank {
  font-family: var(--font-mono);
  font-size: 16px;
  color: var(--muted2);
  width: 22px;
  flex-shrink: 0;
  text-align: right;
}
.user-rank.top { color: var(--orange); font-weight: 600; }
.user-avatar {
  width: 36px; height: 36px;
  background: var(--charcoal3);
  border: 1px solid var(--border2);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-title);
  font-size: 18px;
  color: var(--cream);
  flex-shrink: 0;
}
.user-info { flex: 1; min-width: 0; }
.user-name {
  font-family: var(--font-cond);
  font-size: 21px;
  font-weight: 600;
  color: var(--cream2);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.user-posts {
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--muted2);
}

/* Top posts */
.top-bardos-list { padding: 8px 0; }
.top-bardo-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 12px 20px;
  border-bottom: 1px solid rgba(255,255,255,0.03);
  color: inherit;
  text-decoration: none;
  transition: background 0.15s, color 0.15s;
}
.top-bardo-item:hover {
  background: var(--charcoal2);
}
.top-bardo-info {
  min-width: 0;
  flex: 1;
  display: grid;
  gap: 3px;
}
.top-bardo-title {
  font-family: var(--font-cond);
  font-size: 19px;
  font-weight: 700;
  line-height: 1.02;
  color: var(--cream2);
  text-transform: uppercase;
}
.top-bardo-item:hover .top-bardo-title { color: var(--orange3); }
.top-bardo-score {
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--muted2);
}

/* ============================================================
   TOAST NOTIFICATION
============================================================ */
.toast {
  position: fixed;
  bottom: 24px; right: 24px; z-index: 2000;
  background: var(--charcoal2);
  border: 1px solid var(--border2);
  border-left: 3px solid var(--orange);
  padding: 12px 18px;
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--cream);
  letter-spacing: 0.5px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.4);
  transform: translateX(120%);
  transition: transform 0.3s cubic-bezier(0.4,0,0.2,1);
  pointer-events: none;
}
.toast.show { transform: translateX(0); }

/* ============================================================
   EMPTY STATE
============================================================ */
.no-results {
  display: none;
  padding: 48px 20px;
  text-align: center;
}
.no-results.show { display: block; }
.no-results-icon {
  font-family: var(--font-title);
  font-size: 48px;
  color: var(--orange);
  margin-bottom: 12px;
  display: block;
}
.no-results-text {
  font-family: var(--font-cond);
  font-size: 18px;
  color: var(--muted);
  letter-spacing: 1px;
}

/* ============================================================
   FOOTER
============================================================ */
.site-footer {
  position: relative; z-index: 1;
  background: var(--charcoal2);
  border-top: 2px solid var(--border2);
  padding: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-logo {
  font-family: var(--font-title);
  font-size: 20px;
  letter-spacing: 1px;
}
.footer-logo span { color: var(--orange); }
.footer-copy {
  font-family: var(--font-body);
  font-size: 13px;
  color: var(--muted2);
  letter-spacing: 1px;
}
.footer-links {
  display: flex;
  gap: 20px;
}
.footer-links a {
  font-family: var(--font-body);
  font-size: 13px;
  color: var(--muted2);
  letter-spacing: 1px;
  text-transform: uppercase;
  transition: color 0.15s;
}
.footer-links a:hover { color: var(--orange3); }

/* ============================================================
   RESPONSIVE
============================================================ */
@media (min-width: 861px) {
  html,
  body {
    height: 100%;
    overflow: hidden;
  }

  .site-footer {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .site-logo::before,
  .site-logo::after {
    animation: none;
  }
}

@media (min-width: 900px) {
  .logo-tagline { display: block; }
}

@media (max-width: 1560px) {
  .logo-tagline {
    display: none;
  }
}

@media (max-width: 1100px) {
  .site-main { grid-template-columns: minmax(0, 1fr) 300px; }
  .sidebar-left {
    display: none;
  }
  .post-title {
    font-size: 29px;
  }
  .feed-bardo-footer {
    grid-template-columns: 1fr 1fr;
  }
  .feed-bardo-actions {
    grid-column: 1 / -1;
    justify-content: flex-start;
  }
}

@media (max-width: 1560px) {
  .header-search {
    left: auto;
    right: calc(var(--header-pad-x) + 210px);
    width: min(460px, calc(100vw - 600px));
    transform: translateY(-50%);
  }
}

@media (max-width: 980px) {
  .header-search {
    width: min(380px, calc(100vw - 500px));
  }
}

@media (max-width: 860px) {
  .site-main {
    grid-template-columns: 1fr;
    height: auto;
    overflow: visible;
  }
  .feed {
    height: auto;
    overflow: visible;
  }
  .sidebar-left, .sidebar-right {
    display: none;
  }
}

@media (max-width: 720px) {
  :root {
    --header-top-h: 224px;
    --header-pad-x: 18px;
    --header-pad-y: 18px;
  }

  .header-top {
    align-items: flex-start;
    justify-content: center;
    padding: var(--header-pad-y) var(--header-pad-x);
  }

  .header-actions {
    top: var(--header-pad-y);
    right: var(--header-pad-x);
    transform: none;
  }

  .site-logo {
    height: 132px;
    padding: 14px 24px;
  }

  .site-logo-img {
    height: 106px;
    max-width: min(320px, calc(100vw - 56px));
  }

  .header-search {
    left: var(--header-pad-x);
    right: var(--header-pad-x);
    top: auto;
    bottom: 20px;
    width: auto;
    transform: none;
  }
}

@media (max-width: 600px) {
  :root {
    --header-top-h: 216px;
    --header-pad-x: 14px;
    --header-pad-y: 16px;
  }
  .header-top {
    padding: var(--header-pad-y) var(--header-pad-x);
    gap: 10px;
  }
  .header-actions {
    gap: 6px;
  }
  .btn-publicar,
  .btn-logout {
    padding-left: 12px;
    padding-right: 12px;
  }
  .site-logo-img {
    height: 102px;
    max-width: min(300px, calc(100vw - 48px));
  }
  .site-logo {
    height: 128px;
    padding: 14px 22px;
  }
  .site-logo::before {
    inset: 14px 0 10px;
    filter: blur(10px);
  }
  .site-logo::after {
    inset: 20px 10px 12px;
    filter: blur(16px);
  }
  .header-search {
    left: var(--header-pad-x);
    right: var(--header-pad-x);
    top: auto;
    bottom: 18px;
    width: auto;
    min-width: 150px;
    transform: none;
  }
}
