:root {
  --font-display: 'Helvetica Neue', 'Arial Black', sans-serif;
  --ink: #0A0A0A;
  --cream: #EDEDEB;
  --muted: #6B6B6B;
  --line: #D9D9D9;
  --accent: #E63946;
}

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

html {
  scroll-behavior: smooth;
  scrollbar-gutter: stable;
  touch-action: manipulation;
}

html {
  overflow-x: hidden;
  max-width: 100%;
}

body {
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-display);
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  max-width: 100%;
}

/* LOADER GLOBAL */
#global-loader {
  position: fixed;
  inset: 0;
  background: var(--cream);
  z-index: 10000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: opacity 0.4s;
}

#global-loader.hidden {
  opacity: 0;
  pointer-events: none;
}

.loader-spinner {
  width: 24px;
  height: 24px;
  border: 2px solid var(--line);
  border-top-color: var(--ink);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin-bottom: 16px;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* ANIMATED FILM GRAIN */
.grain {
  position: fixed;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  z-index: 1;
  pointer-events: none;
  opacity: 0.06;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 256px;
  animation: grain-dance 0.4s steps(4) infinite;
}

@keyframes grain-dance {
  0% {
    transform: translate(0, 0);
  }

  25% {
    transform: translate(-2%, -2%);
  }

  50% {
    transform: translate(1%, -1%);
  }

  75% {
    transform: translate(-1%, 2%);
  }

  100% {
    transform: translate(0, 0);
  }
}

/* UTILS & TYPOGRAPHY */
.ml {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--muted)
}

.sid {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 8px
}

.sid::before {
  content: '●';
  font-size: 7px
}

/* BUTTONS */
.pill-dark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--ink);
  color: var(--cream);
  border-radius: 9999px;
  padding: 10px 24px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: .18em;
  text-transform: uppercase;
  text-decoration: none;
  border: none;
  transition: opacity .2s;
  cursor: pointer;
}

.pill-dark:hover {
  opacity: .8
}

.pill-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: transparent;
  color: var(--ink);
  border-radius: 9999px;
  padding: 10px 24px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: .18em;
  text-transform: uppercase;
  text-decoration: none;
  border: 1px solid var(--line);
  transition: border-color .2s;
  cursor: pointer;
}

.pill-outline:hover {
  border-color: var(--ink)
}

/* CATEGORY FILTERS */
.category-filters {
  display: flex;
  flex-wrap: nowrap;
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 10px;
  margin-bottom: 10px;
  -ms-overflow-style: none;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.category-filters::-webkit-scrollbar {
  display: none;
}

.cat-pill {
  flex-shrink: 0;
  background: rgba(0, 0, 0, 0.05);
  color: var(--ink);
  border: none;
  padding: 10px 20px;
  border-radius: 999px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.cat-pill:hover {
  background: rgba(0, 0, 0, 0.1);
}

.cat-pill.active {
  background: var(--ink);
  color: var(--cream);
  font-weight: 700;
}

/* NUEVOS filter pill — accent color */
.cat-pill[data-filter="nuevos"] {
  color: var(--accent);
  border: 1px solid rgba(230, 57, 70, 0.3);
}

.cat-pill[data-filter="nuevos"].active {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

/* ESTRENO cards — dark/inverted */
.yt-card.estreno {
  background: var(--ink);
  border-radius: 16px;
  overflow: hidden;
}

.yt-card.estreno .yt-thumb {
  border-radius: 0;
  margin-bottom: 0;
}

.yt-card.estreno .yt-meta {
  padding: 14px 16px 0;
}

.yt-card.estreno .yt-info h3 {
  color: var(--cream);
}

.yt-card.estreno .yt-info p {
  color: rgba(255, 255, 255, 0.45);
}

.yt-card.estreno .yt-avatar {
  background: var(--cream);
  color: var(--ink);
}

.yt-card.estreno>.pill-dark {
  background: var(--accent);
  margin: 12px 16px 16px;
  width: calc(100% - 32px);
}

.yt-card.hidden-filter {
  display: none !important;
}

/* NUEVOS banner when filter active */
#nuevos-banner {
  display: none;
  padding: 16px 20px;
  background: var(--ink);
  color: var(--cream);
  border-radius: 12px;
  margin-bottom: 24px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: .15em;
  text-transform: uppercase;
}

#nuevos-banner.visible {
  display: flex;
  align-items: center;
  gap: 12px;
}

#nuevos-banner .dot {
  width: 8px;
  height: 8px;
  background: var(--accent);
  border-radius: 50%;
  animation: pulse 1s infinite;
}

@keyframes pulse {

  0%,
  100% {
    opacity: 1
  }

  50% {
    opacity: .3
  }
}

/* APP SHELL */
#app-topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 64px;
  border-bottom: 1px solid var(--line);
  background: var(--cream);
  z-index: 500;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
}

#app-sidebar {
  position: fixed;
  top: 64px;
  left: 0;
  bottom: 0;
  width: 240px;
  border-right: 1px solid var(--line);
  background: var(--cream);
  z-index: 490;
  display: flex;
  flex-direction: column;
  padding: 24px 16px 160px;
  overflow-y: auto;
  overflow-x: hidden;
  gap: 32px;
  transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1), padding 0.3s ease;
}

.sidebar-section {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.sidebar-title {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 8px;
  padding-left: 12px;
  transition: opacity 0.2s;
  white-space: nowrap;
}

.nav-item-app {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px;
  border-radius: 8px;
  cursor: pointer;
  color: var(--ink);
  text-decoration: none;
  transition: background 0.2s, justify-content 0.3s;
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
}

.nav-item-app:hover {
  background: rgba(0, 0, 0, 0.04);
}

.nav-item-app.active {
  background: rgba(0, 0, 0, 0.08);
  font-weight: 700;
}

.nav-item-app svg,
.nav-item-app i {
  color: var(--muted);
  transition: color 0.2s;
  flex-shrink: 0;
}

.nav-item-app.active svg,
.nav-item-app.active i {
  color: var(--ink);
}

.sidebar-bottom-switch {
  position: absolute;
  bottom: 20px;
  left: 16px;
  right: 16px;
  background: var(--cream);
}

body.sidebar-collapsed #app-sidebar {
  width: 76px;
  padding: 24px 12px 80px;
}

body.sidebar-collapsed .sidebar-bottom-switch {
  left: 12px;
  right: 12px;
}

body.sidebar-collapsed .sidebar-title {
  opacity: 0;
  height: 0;
  margin: 0;
  overflow: hidden;
}

body.sidebar-collapsed .nav-item-app {
  justify-content: center;
  padding: 12px 0;
}

body.sidebar-collapsed .nav-item-app span {
  display: none;
}

.app-page {
  padding-top: 64px;
  padding-left: 240px;
  min-height: 100dvh;
  background: var(--cream);
  display: none;
  position: relative;
  z-index: 2;
  transition: padding-left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

body.sidebar-collapsed .app-page {
  padding-left: 76px;
}

.app-page.active {
  display: block;
}

/* GRID & CARDS */
.yt-feed {
  padding: 40px 32px;
  max-width: 1600px;
  margin: 0 auto;
}

.yt-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 40px 24px;
}

.yt-card {
  cursor: pointer;
  transition: transform 0.2s;
}

.yt-card:hover {
  transform: translateY(-4px);
}

.yt-thumb {
  width: 100%;
  aspect-ratio: 16/9;
  background: #222;
  border-radius: 12px;
  overflow: hidden;
  position: relative;
  margin-bottom: 14px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.yt-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(100%);
  transition: filter 0.3s;
}

.yt-card:hover .yt-thumb img {
  filter: grayscale(0%);
}

.yt-progress-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 5px;
  background: rgba(255, 255, 255, 0.3);
}

.yt-progress-fill {
  height: 100%;
  background: var(--accent);
}

.yt-meta {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.yt-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--cream);
  display: grid;
  place-items: center;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  flex-shrink: 0;
}

.yt-info h3 {
  font-size: 16px;
  font-weight: 800;
  line-height: 1.3;
  margin-bottom: 6px;
  letter-spacing: -0.01em;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.yt-info p {
  font-family: 'JetBrains Mono', monospace;
  font-size: 9px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  line-height: 1.5;
}

/* PDF SECTION */
.pdf-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
  padding-top: 24px;
}

.pdf-card {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 20px;
  background: rgba(255, 255, 255, 0.4);
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: transform 0.2s, box-shadow 0.2s;
}

.pdf-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.05);
}

.pdf-icon-wrap {
  width: 48px;
  height: 48px;
  background: var(--ink);
  color: var(--cream);
  border-radius: 10px;
  display: grid;
  place-items: center;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
}

/* WATCH PAGE */
.yt-watch {
  display: grid;
  grid-template-columns: 1fr 400px;
  height: calc(100dvh - 64px);
  overflow: hidden;
}

.yt-watch-main {
  padding: 24px 32px;
  overflow-y: auto;
}

.yt-watch-sidebar {
  border-left: 1px solid var(--line);
  overflow-y: auto;
  background: var(--cream);
}

.yt-player {
  width: 100%;
  aspect-ratio: 16/9;
  background: #000;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  position: relative;
}

.yt-player iframe,
.yt-player video {
  width: 100%;
  height: 100%;
  border: none;
  position: absolute;
  inset: 0;
}

.yt-title {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}

.yt-action-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  flex-wrap: wrap;
  gap: 16px;
}

.yt-playlist-header {
  padding: 0px 20px 14px;
  position: sticky;
  top: 0;
  background: var(--cream);
  z-index: 5;
}

/* FORM & PROFILE SECTION */
.profile-container {
  max-width: 800px;
  margin: 0;
  padding: 0 0 64px;
}

.form-section {
  border: 1px solid var(--line);
  padding: 24px;
  margin-bottom: 22px;
  background: rgba(255, 255, 255, 0.4);
  border-radius: 12px;
}

.form-section-title {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  margin-bottom: 18px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}

.form-group label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 9px;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 4px;
  display: block;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--line);
  padding: 9px 0;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 14px;
  outline: none;
  border-radius: 0;
  resize: vertical;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--ink)
}

/* ── RESPONSIVE TOKENS ──────────────────────────────────────── */
:root {
  --pad-x: 16px;
  --pad-y: calc(var(--pad-x) / 2);
}

@media(max-width:768px) {
  :root {
    --pad-x: 16px;
    --pad-y: calc(var(--pad-x) / 2);
  }
}

@media(max-width:480px) {
  :root {
    --pad-x: 16px;
    --pad-y: calc(var(--pad-x) / 2);
  }
}

/* ── HIDE / SHOW HELPERS ─────────────────────────────────────── */
.hide-mobile {
  display: flex;
}

@media(max-width:768px) {
  .hide-mobile {
    display: none !important;
  }
}

/* ── MOBILE DRAWER OVERLAY ───────────────────────────────────── */
#sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(10, 10, 10, 0.45);
  z-index: 480;
  backdrop-filter: blur(2px);
  opacity: 0;
  transition: opacity 0.25s;
}

#sidebar-overlay.open {
  opacity: 1;
}

/* ── TABLET ≤768px ───────────────────────────────────────────── */
@media(max-width:768px) {

  /* Sidebar becomes off-canvas drawer */
  #app-sidebar {
    transform: translateX(-100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), width 0s;
    width: 260px !important;
    padding: 24px 16px !important;
    box-shadow: 4px 0 24px rgba(0, 0, 0, 0.12);
  }

  #app-sidebar.drawer-open {
    transform: translateX(0);
  }

  body.sidebar-collapsed #app-sidebar {
    transform: translateX(-100%);
  }

  /* Content fills full width */
  .app-page {
    padding-left: 0 !important;
  }

  /* Feed & Grids */
  .yt-feed {
    padding: var(--pad-y) var(--pad-x);
  }

  .yt-grid {
    grid-template-columns: repeat(auto-fill, minmax(min(280px, 100%), 1fr));
    gap: 28px 16px;
  }

  .pdf-grid {
    grid-template-columns: 1fr;
  }

  /* Profile */
  .form-row {
    grid-template-columns: 1fr;
  }

  .profile-container {
    padding: 32px var(--pad-x) 48px;
  }

  /* Visor */
  .yt-watch {
    grid-template-columns: 1fr;
    height: auto;
    overflow: visible;
  }

  .yt-watch-main {
    padding: var(--pad-y) var(--pad-x);
  }

  .yt-watch-sidebar {
    border-left: none;
    border-top: 1px solid var(--line);
  }

  .yt-title {
    font-size: 18px;
  }
}

/* ── MOBILE ≤480px ───────────────────────────────────────────── */
@media(max-width:480px) {
  .yt-feed {
    padding: var(--pad-y) var(--pad-x);
  }

  .yt-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .yt-info h3 {
    font-size: 14px;
  }

  .yt-action-bar {
    flex-direction: column;
    align-items: stretch;
  }

  .yt-action-bar button {
    width: 100%;
    justify-content: center;
  }

  #app-topbar {
    padding: 0 16px;
  }
}

/* ══════════════════════════════════════════════════
   HERO BANNER
══════════════════════════════════════════════════ */
.hero-banner {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  margin-bottom: 40px;
  min-height: 260px;
  background: var(--ink);
  display: flex;
  align-items: center;
}

.hero-banner-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(40%) brightness(0.45);
}

.hero-banner-content {
  position: relative;
  z-index: 2;
  padding: 40px 48px;
  max-width: 600px;
}

.hero-estreno-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent);
  color: #fff;
  font-family: 'JetBrains Mono', monospace;
  font-size: 9px;
  letter-spacing: .18em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 4px;
  margin-bottom: 16px;
  font-weight: 700;
}

.hero-estreno-badge::before {
  content: '●';
  font-size: 7px;
  animation: blink .8s step-end infinite;
}

@keyframes blink {
  50% {
    opacity: 0;
  }
}

.hero-banner h2 {
  font-size: 36px;
  font-weight: 900;
  color: #fff;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 12px;
}

.hero-banner p {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  color: rgba(255, 255, 255, 0.55);
  letter-spacing: .1em;
  text-transform: uppercase;
  margin-bottom: 24px;
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  color: var(--ink);
  border-radius: 9999px;
  padding: 12px 28px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: .18em;
  text-transform: uppercase;
  font-weight: 700;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: opacity .2s;
}

.hero-cta:hover {
  opacity: .85;
}

/* ══════════════════════════════════════════════════
   PROMO BANNER (anuncio publicitario editable)
══════════════════════════════════════════════════ */
.promo-banner-wrap,
#promo-banner-wrap {
  margin-bottom: 10px;
}

.promo-banner-wrap:empty,
#promo-banner-wrap:empty {
  display: none;
  margin-bottom: 0;
}

.promo-banner {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  align-items: center;
  min-height: 120px;
  height: 120px;
  padding: 20px 32px;
  gap: 24px;
  box-sizing: border-box;
}

.promo-banner-bg,
picture.promo-banner-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.promo-banner-bg,
picture.promo-banner-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  opacity: 1;
}

.promo-banner-body {
  position: relative;
  z-index: 2;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.promo-banner-texts {
  flex: 1;
  min-width: 180px;
}

.promo-banner-titulo {
  font-size: 19px;
  font-weight: 900;
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin-bottom: 4px;
  text-shadow: 0 1px 4px rgba(0,0,0,0.5);
}

.promo-banner-sub {
  font-family: 'JetBrains Mono', monospace;
  font-size: 9.5px;
  letter-spacing: .16em;
  text-transform: uppercase;
  opacity: 0.85;
  text-shadow: 0 1px 3px rgba(0,0,0,0.5);
}

.promo-banner-cta {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 9999px;
  padding: 10px 22px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: .16em;
  text-transform: uppercase;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: background .2s;
}

.promo-banner-cta:hover {
  background: rgba(0, 0, 0, 0.4);
}

.promo-banner-close {
  position: relative;
  z-index: 3;
  flex-shrink: 0;
  background: rgba(0, 0, 0, 0.2);
  border: none;
  border-radius: 50%;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 14px;
  line-height: 1;
  transition: background .2s;
}

.promo-banner-close:hover {
  background: rgba(0, 0, 0, 0.4);
}

@media(max-width:600px) {
  .promo-banner {
    padding: 18px 20px;
    min-height: 70px;
  }

  .promo-banner-titulo {
    font-size: 15px;
  }
}

@media(max-width:768px) {
  .hero-banner {
    min-height: 200px;
  }

  .hero-banner-content {
    padding: 28px 24px;
  }

  .hero-banner h2 {
    font-size: 24px;
  }
}

/* ══════════════════════════════════════════════════
   CATEGORY TILES
══════════════════════════════════════════════════ */
.cat-tiles {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  margin-bottom: 40px;
  padding-bottom: 8px;
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.cat-tiles::-webkit-scrollbar {
  display: none;
}

.cat-tile {
  flex-shrink: 0;
  position: relative;
  width: 200px;
  height: 120px;
  border-radius: 16px;
  overflow: hidden;
  cursor: pointer;
  transition: transform .2s;
}

.cat-tile:hover {
  transform: translateY(-4px);
}

.cat-tile img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(100%) brightness(0.5);
  transition: filter .3s;
}

.cat-tile:hover img {
  filter: grayscale(0%) brightness(0.45);
}

.cat-tile-content {
  position: absolute;
  inset: 0;
  padding: 16px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.cat-tile-num {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.5);
  font-weight: 700;
}

.cat-tile-name {
  font-size: 16px;
  font-weight: 900;
  color: #fff;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}

.cat-tile.active-tile img {
  filter: grayscale(0%) brightness(0.45);
}

.cat-tile.active-tile .cat-tile-name {
  color: #fff;
}

@media(max-width:480px) {
  .cat-tile {
    width: 160px;
    height: 100px;
  }
}

/* ══════════════════════════════════════════════════
   COURSE CARD v2 — con badge, metadatos, instructor
══════════════════════════════════════════════════ */
.course-card {
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  cursor: pointer;
  transition: transform .2s, box-shadow .2s;
  display: flex;
  flex-direction: column;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.course-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.course-thumb {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  background: #222;
  overflow: hidden;
}

.course-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(100%);
  transition: filter .3s;
}

.course-card:hover .course-thumb img {
  filter: grayscale(0%);
}

.course-cat-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--ink);
  color: #fff;
  font-family: 'JetBrains Mono', monospace;
  font-size: 9px;
  letter-spacing: .12em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 4px;
  font-weight: 700;
}

.course-cat-badge.estreno-badge {
  background: var(--accent);
}

.course-progress-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: rgba(255, 255, 255, 0.3);
}

.course-progress-fill {
  height: 100%;
  background: var(--accent);
  transition: width .3s;
}

.course-body {
  padding: 16px 18px 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.course-instructor-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.course-avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--cream);
  display: grid;
  place-items: center;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  font-weight: 700;
  flex-shrink: 0;
}

.course-instructor-name {
  font-size: 12px;
  font-weight: 700;
  color: var(--ink);
}

.course-level-badge {
  margin-left: auto;
  font-family: 'JetBrains Mono', monospace;
  font-size: 8px;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 4px;
  background: rgba(0, 0, 0, 0.05);
  color: var(--muted);
  white-space: nowrap;
}

.course-title {
  font-size: 15px;
  font-weight: 800;
  line-height: 1.3;
  letter-spacing: -0.01em;
  margin-bottom: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.course-meta-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.course-meta-item {
  display: flex;
  align-items: center;
  gap: 4px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 9px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .05em;
}

.course-desc {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.5;
  margin-top: 0;
  margin-bottom: 16px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.course-footer {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.course-duration {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .05em;
  display: flex;
  align-items: center;
  gap: 6px;
}

.course-enroll-btn {
  width: 100%;
  background: var(--ink);
  color: var(--cream);
  border: none;
  border-radius: 9999px;
  padding: 11px 24px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: .18em;
  text-transform: uppercase;
  font-weight: 700;
  cursor: pointer;
  transition: opacity .2s;
}

.course-enroll-btn:hover {
  opacity: .8;
}

.course-enroll-btn:disabled {
  opacity: .5;
  cursor: not-allowed;
}

/* Enrolled state */
.course-card.enrolled .course-enroll-btn {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line);
}

/* Estreno card — dark */
.course-card.estreno {
  background: var(--ink);
}

.course-card.estreno .course-title {
  color: var(--cream);
}

.course-card.estreno .course-instructor-name {
  color: var(--cream);
}

.course-card.estreno .course-meta-item {
  color: rgba(255, 255, 255, 0.4);
}

.course-card.estreno .course-level-badge {
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.5);
}

.course-card.estreno .course-enroll-btn {
  background: var(--accent);
}

.course-card.hidden-filter {
  display: none !important;
}

/* ══════════════════════════════════════════════════
   VISOR: USER STATS CARD (COMPACTO)
══════════════════════════════════════════════════ */
.user-stats-card {
  margin: 14px 16px 10px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--ink);
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.user-stats-header {
  display: flex;
  align-items: center;
  gap: 10px;
}

.user-stats-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  display: grid;
  place-items: center;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  font-weight: 700;
  flex-shrink: 0;
  overflow: hidden;
  border: 1.5px solid rgba(255, 255, 255, 0.2);
}

.user-stats-info {
  min-width: 0;
  flex: 1;
}

.user-stats-name {
  font-size: 13px;
  font-weight: 800;
  color: var(--cream);
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.user-stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
}

.stat-box {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  padding: 6px 4px;
  text-align: center;
}

.stat-box-value {
  font-size: 15px;
  font-weight: 900;
  color: var(--cream);
  line-height: 1;
  margin-bottom: 2px;
  font-family: 'JetBrains Mono', monospace;
}

.stat-box-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 7.5px;
  color: rgba(255, 255, 255, 0.45);
  text-transform: uppercase;
  letter-spacing: .08em;
}

/* ══════════════════════════════════════════════════
   PLAYLIST: SECTION HEADERS
══════════════════════════════════════════════════ */
.playlist-section-hdr {
  padding: 14px 20px 6px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 9px;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--muted);
  background: var(--cream);
  position: sticky;
  top: 0;
}

/* ══════════════════════════════════════════════════
   MIS ENTRENAMIENTOS: progress card
══════════════════════════════════════════════════ */
.my-course-card {
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  cursor: pointer;
  transition: transform .2s, box-shadow .2s;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.my-course-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.my-course-thumb {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  background: #222;
  overflow: hidden;
}

.my-course-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(60%);
  transition: filter .3s;
}

.my-course-card:hover .my-course-thumb img {
  filter: grayscale(0%);
}

.my-course-progress-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 5px;
  background: rgba(255, 255, 255, 0.3);
}

.my-course-progress-fill {
  height: 100%;
  background: var(--accent);
  transition: width .4s;
}

.completed-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  background: #22c55e;
  color: #fff;
  font-family: 'JetBrains Mono', monospace;
  font-size: 8px;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 4px;
  font-weight: 700;
}

.my-course-body {
  padding: 16px 18px 18px;
}

.my-course-title {
  font-size: 15px;
  font-weight: 800;
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}

.my-course-progress-text {
  font-family: 'JetBrains Mono', monospace;
  font-size: 9px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .05em;
  margin-bottom: 8px;
}

.my-course-bar-wrap {
  height: 4px;
  background: var(--line);
  border-radius: 2px;
  overflow: hidden;
}

.my-course-bar-fill {
  height: 100%;
  background: var(--accent);
  border-radius: 2px;
  transition: width .4s;
}

.my-course-continue-btn {
  display: block;
  width: 100%;
  margin-top: 14px;
  background: var(--ink);
  color: var(--cream);
  border: none;
  border-radius: 9999px;
  padding: 10px 24px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: .18em;
  text-transform: uppercase;
  font-weight: 700;
  cursor: pointer;
  transition: opacity .2s;
  text-align: center;
}

.my-course-continue-btn:hover {
  opacity: .8;
}

/* TOAST */
#toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 350px;
  width: calc(100% - 48px);
  pointer-events: none;
}

.toast {
  pointer-events: auto;
  background: #0A0A0A;
  color: #FFFFFF;
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 12px 24px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: .08em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 12px;
  border-radius: 9999px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  transform: translateY(20px);
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.toast.toast-show {
  transform: translateY(0);
  opacity: 1;
}

.toast.toast-fade-out {
  opacity: 0;
  transform: scale(0.9);
}

.toast-icon {
  font-size: 14px;
  flex-shrink: 0;
}

.toast-success {
  color: #FFFFFF;
}

.toast-success .toast-icon {
  color: #FFFFFF;
}

.toast-error {
  color: #EF4444;
  border-color: rgba(239, 68, 68, 0.3);
}

.toast-error .toast-icon {
  color: #EF4444;
}

.toast-warning {
  color: #FFFFFF;
}

.toast-warning .toast-icon {
  color: #FFFFFF;
}

.toast-info {
  color: #FFFFFF;
}

.toast-info .toast-icon {
  color: #FFFFFF;
}

.toast-message {
  flex: 1;
  line-height: 1.4;
}

.toast-close {
  background: none;
  border: none;
  color: inherit;
  opacity: 0.5;
  cursor: pointer;
  font-size: 16px;
  padding: 0;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.2s;
}

.toast-close:hover {
  opacity: 1;
}

/* WELCOME MODAL */
.welcome-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(10, 10, 10, 0.85);
  backdrop-filter: blur(12px);
  z-index: 20000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  overflow-y: auto;
}

.welcome-modal-content {
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: 24px;
  width: 100%;
  max-width: 600px;
  padding: 36px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
}

.welcome-modal-content::-webkit-scrollbar {
  width: 6px;
}

.welcome-modal-content::-webkit-scrollbar-thumb {
  background: var(--line);
  border-radius: 99px;
}

.welcome-modal-header h2 {
  font-size: 24px;
  font-weight: 900;
  margin: 0 0 8px;
  letter-spacing: -0.02em;
}

.welcome-modal-header p {
  font-size: 13px;
  color: var(--muted);
  margin: 0;
}

/* ══════════════════════════════════════════════════
   INICIO: SINGLE COLUMN FEED
══════════════════════════════════════════════════ */
.inicio-layout {
  max-width: 800px;
  margin: 0 auto;
}

/* ══════════════════════════════════════════════════
   TIMELINE / FEED SOCIAL AESTHETIC (IG/THREADS STYLE)
══════════════════════════════════════════════════ */
.feed-card {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 18px 20px 20px;
  margin-bottom: 24px;
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.2s ease, border-color 0.2s ease;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
}

.feed-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.06);
  border-color: rgba(10, 10, 10, 0.15);
}

/* ── HEADER DEL AUTOR (SOCIAL PROFILE) ── */
.feed-author-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.feed-author-avatar-wrap {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  flex-shrink: 0;
  position: relative;
  padding: 2px;
  background: linear-gradient(135deg, var(--ink), #4a4a4a);
  display: flex;
  align-items: center;
  justify-content: center;
}

.feed-author-avatar-img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #ffffff;
  background: #ffffff;
}

.feed-author-avatar-initials {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: var(--ink);
  color: var(--cream);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  font-weight: 800;
  border: 2px solid #ffffff;
}

.feed-author-info {
  flex: 1;
  min-width: 0;
}

.feed-author-name-row {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.feed-author-name {
  font-size: 14px;
  font-weight: 800;
  color: var(--ink);
  letter-spacing: -0.01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.feed-verified-badge {
  color: #2A9D8F;
  font-size: 13px;
  display: inline-flex;
  align-items: center;
}

.feed-badge-social {
  font-family: 'JetBrains Mono', monospace;
  font-size: 8.5px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 999px;
  margin-left: auto;
}

.badge-curso {
  background: #0A0A0A;
  color: #EDEDEB;
}

.badge-gratis {
  background: rgba(42, 157, 143, 0.12);
  color: #2A9D8F;
}

.badge-song {
  background: rgba(107, 43, 255, 0.1);
  color: #6B2BFF;
}

.badge-creator {
  background: rgba(230, 57, 70, 0.1);
  color: var(--accent);
}

.feed-author-meta {
  font-family: 'JetBrains Mono', monospace;
  font-size: 9.5px;
  color: var(--muted);
  letter-spacing: 0.04em;
  margin-top: 2px;
}

/* ── SOCIAL MEDIA FULL WIDTH WRAPPER (EDGE-TO-EDGE / BORDE A BORDE) ── */
.feed-social-media-wrap {
  position: relative;
  width: calc(100% + 40px);
  margin-left: -20px;
  margin-right: -20px;
  margin-bottom: 12px;
  background: #000000;
  overflow: hidden;
}

.feed-social-cover {
  width: 100%;
  height: auto;
  max-height: 520px;
  object-fit: cover;
  display: block;
}

/* ── VIDEO / REEL FULL BLEED ── */
.feed-video-wrap {
  background: #000;
  display: flex;
  justify-content: center;
  align-items: center;
}

.feed-video-wrap video {
  width: 100%;
  height: auto;
  max-height: 75vh;
  object-fit: contain;
  display: block;
  background: #000;
}

/* ── CARRUSEL DESLIZABLE (ESTILO INSTAGRAM NATIVO) ── */
.feed-carousel-wrap {
  position: relative;
  background: #000;
}

.feed-carousel-track {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.feed-carousel-track::-webkit-scrollbar {
  display: none;
}

.feed-carousel-slide {
  min-width: 100%;
  width: 100%;
  scroll-snap-align: start;
  position: relative;
  background: #000;
}

.feed-carousel-slide img {
  width: 100%;
  height: auto;
  max-height: 560px;
  object-fit: cover;
  display: block;
}

.feed-carousel-counter {
  position: absolute;
  top: 14px;
  right: 14px;
  background: rgba(10, 10, 10, 0.72);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #ffffff;
  font-family: 'JetBrains Mono', monospace;
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 4px 10px;
  border-radius: 9999px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  pointer-events: none;
}

/* ── DEVOCIONAL PREVIEW CON BOTÓN LEER ── */
.feed-devocional-preview-wrap {
  position: relative;
}

.feed-devocional-overlay-cta {
  position: absolute;
  bottom: 16px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 5;
  padding: 0 16px;
}

.feed-devocional-open-pill {
  background: rgba(10, 10, 10, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 9999px;
  padding: 10px 22px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.feed-devocional-open-pill:hover {
  background: #ffffff;
  color: #0A0A0A;
  border-color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.5);
}

/* ── MODAL LECTOR DEVOCIONAL EDITORIAL ── */
.devocional-reader-modal {
  width: 100%;
  max-width: 680px;
  max-height: 90vh;
  background: #ffffff;
  border-radius: 20px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.3);
  animation: modalFadeIn 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modalFadeIn {
  from { opacity: 0; transform: scale(0.96) translateY(12px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

.devocional-reader-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 24px;
  border-bottom: 1px solid var(--line);
  background: #ffffff;
  z-index: 10;
}

.devocional-reader-badge {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.16em;
  color: var(--accent);
  display: flex;
  align-items: center;
  gap: 6px;
}

.devocional-reader-close {
  background: rgba(0, 0, 0, 0.05);
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
  display: grid;
  place-items: center;
  font-size: 15px;
  color: var(--ink);
  transition: all 0.2s;
}

.devocional-reader-close:hover {
  background: rgba(0, 0, 0, 0.1);
  transform: scale(1.05);
}

.devocional-reader-body {
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 40px;
}

.devocional-reader-cover-wrap {
  width: 100%;
  max-height: 340px;
  overflow: hidden;
  background: #000;
}

.devocional-reader-cover-wrap img {
  width: 100%;
  height: 320px;
  object-fit: cover;
  display: block;
}

.devocional-reader-content {
  padding: 28px 32px;
}

.devocional-reader-author-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.08em;
  color: var(--ink);
  font-weight: 700;
  margin-bottom: 14px;
  text-transform: uppercase;
}

.devocional-reader-title {
  font-size: 24px;
  font-weight: 900;
  letter-spacing: -0.02em;
  line-height: 1.25;
  color: var(--ink);
  margin: 0 0 20px;
}

.devocional-reader-text {
  font-size: 15.5px;
  line-height: 1.8;
  color: #222222;
  white-space: pre-wrap;
  word-break: break-word;
  font-family: var(--font-display);
}

/* ── EMBED CONTAINER RESPONSIVE (BORDE A BORDE NATIVO) ── */
.feed-embed-container {
  position: relative;
  width: calc(100% + 40px);
  margin-left: -20px;
  margin-right: -20px;
  margin-top: 0;
  margin-bottom: 12px;
  background: transparent;
  display: flex;
  justify-content: center;
  align-items: center;
  border: none;
  overflow: hidden;
}

.feed-embed-container iframe {
  width: 100% !important;
  max-width: 100% !important;
  border: none !important;
  border-radius: 0 !important;
  display: block;
  margin: 0 auto !important;
}

/* ── ACCIONES SOCIALES (BOTONES) ── */
.feed-social-actions-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0 6px;
  gap: 12px;
}

.feed-actions-left {
  display: flex;
  align-items: center;
  gap: 14px;
}

.feed-social-btn {
  background: transparent;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  width: auto;
  height: auto;
  color: var(--ink);
  font-size: 20px;
  transition: transform 0.15s ease, color 0.15s ease;
}

.feed-social-btn:hover {
  transform: scale(1.15);
}

.feed-social-btn:active {
  transform: scale(0.9);
}

.feed-like-btn.liked {
  color: var(--accent);
}

.feed-like-btn.liked i {
  animation: heartPop 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes heartPop {
  0% { transform: scale(1); }
  50% { transform: scale(1.35); }
  100% { transform: scale(1); }
}

.feed-action-pill {
  font-size: 10px !important;
  padding: 7px 14px !important;
  border-radius: 9999px !important;
  font-weight: 700 !important;
  letter-spacing: 0.06em !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
}

/* ── SOCIAL STATS (LIKES & SHARES) ── */
.feed-social-stats {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 4px;
  margin-bottom: 6px;
  font-size: 13px;
}

.feed-likes-summary {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}

.feed-likes-text {
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.01em;
}

.feed-likes-text strong {
  font-weight: 800;
  font-family: 'JetBrains Mono', monospace;
}

.feed-shares-text {
  font-size: 11px;
  color: var(--muted);
  font-family: 'JetBrains Mono', monospace;
}

.feed-shares-text strong {
  color: var(--ink);
}

.avatar-stack {
  display: inline-flex;
  align-items: center;
  cursor: pointer;
}

.avatar-stack-item {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 1.5px solid #ffffff;
  margin-left: -6px;
  object-fit: cover;
  background: var(--line);
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
  transition: transform 0.15s ease;
}

.avatar-stack-item:first-child {
  margin-left: 0;
}

.avatar-stack-initials {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 1.5px solid #ffffff;
  margin-left: -6px;
  background: linear-gradient(135deg, var(--ink), #4a4a4a);
  color: #fff;
  font-size: 8px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.avatar-stack-initials:first-child {
  margin-left: 0;
}

/* ── CAPTION (DESCRIPCIÓN DE LA PUBLICACIÓN) ── */
.feed-caption-box {
  margin-top: 6px;
}

.feed-caption-title {
  font-size: 14.5px;
  font-weight: 800;
  line-height: 1.35;
  color: var(--ink);
  letter-spacing: -0.015em;
  margin: 0 0 3px 0;
  display: block;
}

.feed-caption-desc {
  font-size: 13.5px;
  font-weight: 400;
  color: #444444;
  line-height: 1.5;
  margin: 0;
  white-space: pre-wrap;
  word-break: break-word;
}

@keyframes feedCardGlow {
  0% { box-shadow: 0 0 0 0 rgba(230, 57, 70, 0.4); border-color: var(--accent); }
  50% { box-shadow: 0 0 0 8px rgba(230, 57, 70, 0.2); border-color: var(--accent); }
  100% { box-shadow: 0 0 0 0 rgba(230, 57, 70, 0); border-color: var(--line); }
}

.feed-card.highlight-shared {
  animation: feedCardGlow 2.5s ease-out;
}

/* Modal Likers */
.likers-modal-card {
  max-width: 380px;
  width: 90%;
  background: #fff;
  border-radius: 16px;
  padding: 20px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

.liker-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 4px;
  border-bottom: 1px solid rgba(0,0,0,0.03);
}

.liker-row:last-child {
  border-bottom: none;
}

.liker-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--line);
}

.liker-avatar-initials {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--cream);
  font-size: 11px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
}

.liker-info {
  flex: 1;
}

.liker-name {
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.2;
}

.liker-email {
  font-size: 10px;
  color: var(--muted);
  font-family: 'JetBrains Mono', monospace;
}

/* ══════════════════════════════════════════════════
   BOTÓN FLOTANTE INTERACTIVO (Draggable) Y PANEL INTELIGENTE
══════════════════════════════════════════════════ */
#reforma-floating-trigger {
  position: fixed;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--cream);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 999;
  cursor: grab;
  user-select: none;
  font-size: 24px;
  border: 2px solid var(--cream);
  box-shadow: 0 0 0 2px var(--ink), 0 6px 24px rgba(0, 0, 0, 0.4);
  touch-action: none;
}

/* Tooltip / Globo de diálogo */
.floating-tooltip {
  position: absolute;
  right: 60px;
  top: 50%;
  transform: translateY(-50%);
  background: var(--ink);
  color: var(--cream);
  padding: 6px 12px;
  border-radius: 6px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  white-space: nowrap;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  border: 1px solid var(--cream);
  pointer-events: none;
  opacity: 0.95;
}

.floating-tooltip::after {
  content: '';
  position: absolute;
  left: 100%;
  top: 50%;
  transform: translateY(-50%);
  border-width: 5px;
  border-style: solid;
  border-color: transparent transparent transparent var(--ink);
}


#reforma-floating-trigger:active {
  cursor: grabbing;
  transform: scale(0.95);
}

#reforma-smart-panel-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  z-index: 1000;
  backdrop-filter: blur(4px);
}

#reforma-smart-panel {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translate(-50%, 100%);
  width: 100%;
  max-width: 480px;
  background: var(--cream);
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
  border-right: 1px solid var(--line);
  border-radius: 20px 20px 0 0;
  z-index: 1001;
  padding: 24px;
  box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.15);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

#reforma-smart-panel.open {
  transform: translate(-50%, 0);
}

.panel-handle {
  width: 40px;
  height: 4px;
  background: var(--line);
  border-radius: 2px;
  margin: -12px auto 16px;
  cursor: pointer;
}

/* Social accounts list in panel */
.social-accounts-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.social-account-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  border-radius: 8px;
  border: 1px solid var(--line);
  text-decoration: none;
  color: var(--ink);
  transition: background 0.2s;
}

.social-account-item:hover {
  background: rgba(0, 0, 0, 0.02);
}

.social-account-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.social-account-info i {
  font-size: 16px;
  width: 20px;
  text-align: center;
  color: var(--muted);
}

.social-account-info span {
  font-size: 12px;
  font-weight: 700;
}

.social-account-action {
  font-family: 'JetBrains Mono', monospace;
  font-size: 9px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 700;
}

/* ══════════════════════════════════════════════════
   MICRO-REPRODUCTOR PERSISTENTE (Micros de Audio)
══════════════════════════════════════════════════ */
#micros-audio-player {
  position: fixed;
  bottom: 0;
  left: 240px;
  right: 0;
  height: 64px;
  background: var(--cream);
  border-top: 1px solid var(--line);
  z-index: 80;
  display: none;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  transition: left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

body.sidebar-collapsed #micros-audio-player {
  left: 76px;
}

@media (max-width: 768px) {
  #micros-audio-player {
    left: 0 !important;
    padding: 0 16px;
    height: 72px;
  }
}

.audio-player-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  max-width: 40%;
}

.audio-player-title {
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: var(--ink);
}

.audio-player-subtitle {
  font-family: 'JetBrains Mono', monospace;
  font-size: 8px;
  color: var(--muted);
  text-transform: uppercase;
}

.audio-player-controls {
  display: flex;
  align-items: center;
  gap: 16px;
}

.audio-control-btn {
  background: transparent;
  border: none;
  color: var(--ink);
  cursor: pointer;
  font-size: 16px;
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  transition: background 0.2s;
}

.audio-control-btn:hover {
  background: rgba(0, 0, 0, 0.05);
}

.audio-player-progress-container {
  flex: 1;
  max-width: 40%;
  display: flex;
  align-items: center;
  gap: 12px;
}

.audio-player-time {
  font-family: 'JetBrains Mono', monospace;
  font-size: 9px;
  color: var(--muted);
}

.audio-player-slider-wrap {
  flex: 1;
  height: 4px;
  background: var(--line);
  border-radius: 2px;
  position: relative;
  cursor: pointer;
}

.audio-player-slider-fill {
  height: 100%;
  background: var(--ink);
  border-radius: 2px;
  width: 0%;
}

/* ══════════════════════════════════════════════════
   CUSTOM CURSOR (PUNTERO)
══════════════════════════════════════════════════ */
#cursor {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 2147483647;
  pointer-events: none;
  display: none;
}

@media (hover: hover) and (pointer: fine) {
  #cursor {
    display: block;
  }

  html,
  body,
  a,
  button,
  [data-href],
  input,
  select,
  textarea,
  [onclick],
  [role="button"],
  .cat-pill,
  .pill-dark,
  .pill-outline,
  .audio-control-btn {
    cursor: none !important;
  }
}

#cursor-dot {
  width: 8px;
  height: 8px;
  background: var(--ink);
  border-radius: 50%;
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 10000000;
}

#cursor-ring {
  width: 32px;
  height: 32px;
  border: 1px solid var(--ink);
  border-radius: 50%;
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
  opacity: .5;
  z-index: 2147483647;
  transition: width .2s ease, height .2s ease, opacity .2s ease, border-color .15s ease;
}

body.cursor-hover #cursor-ring {
  width: 36px;
  height: 36px;
  opacity: .7;
}

body.on-dark #cursor-dot {
  background: var(--cream);
}

body.on-dark #cursor-ring {
  border-color: var(--cream);
}

/* SEARCH BAR ANIMATION */
.search-container {
  display: flex;
  align-items: center;
  position: relative;
}

.search-input {
  width: 0;
  opacity: 0;
  border: none;
  border-bottom: 1px solid var(--ink);
  background: transparent;
  padding: 4px 0;
  color: var(--ink);
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  outline: none;
  transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease;
}

.search-container.active .search-input {
  width: 200px;
  opacity: 1;
  padding-right: 8px;
}

.search-btn {
  background: transparent;
  border: none;
  color: var(--ink);
  cursor: pointer;
  font-size: 16px;
  padding: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease;
}

.search-container.active .search-btn {
  transform: rotate(90deg);
}

.course-card.hidden-search {
  display: none !important;
}

@keyframes iconPulse {
  0% {
    transform: scale(0.85);
    opacity: 0.7;
  }
  50% {
    transform: scale(1.15);
    opacity: 1;
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

.icon-pulse {
  animation: iconPulse 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* ==========================================
   REFORMA HUB - PREMIUM REDESIGN
   ========================================== */

.hub-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255, 255, 255, 0.45);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 16px;
  padding: 16px;
  margin-bottom: 16px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.04);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
}

.hub-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08);
  border-color: rgba(0, 0, 0, 0.15);
  background: rgba(255, 255, 255, 0.6);
}

.song-card-content, .account-card-content {
  display: flex;
  align-items: center;
  gap: 16px;
  flex: 1;
  min-width: 0;
}

.vinyl-container {
  position: relative;
  width: 50px;
  height: 50px;
  flex-shrink: 0;
  transition: margin-left 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.vinyl-sleeve {
  position: absolute;
  width: 100%;
  height: 100%;
  background: var(--ink);
  border-radius: 8px;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--cream);
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.sleeve-placeholder-icon {
  font-size: 17px;
  opacity: 0.8;
}

.vinyl-record {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 46px;
  height: 46px;
  background: radial-gradient(circle, #000000 0%, #5a5959 70%, #1a1a1a 100%);
  border-radius: 50%;
  z-index: 1;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), left 0.4s ease;
}

/* Concentric lines for vinyl details */
.vinyl-record::after {
  content: '';
  position: absolute;
  inset: 5px;
  border: 1px dashed rgba(255, 255, 255, 0.6);
  border-radius: 50%;
  pointer-events: none;
}

.vinyl-center {
  width: 12px;
  height: 12px;
  background: var(--accent);
  border-radius: 50%;
  border: 3px solid #000;
}

/* Playing state animations */
.song-card.playing .vinyl-container {
  margin-left: 28px;
}

.song-card.playing .vinyl-record {
  left: -28px;
  animation: spinRecord 3s linear infinite;
  z-index: 1;
}

@keyframes spinRecord {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.song-details, .account-details {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.hub-badge {
  font-family: 'JetBrains Mono', monospace;
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 3px 6px;
  border-radius: 4px;
  width: fit-content;
  margin-bottom: 6px;
  text-transform: uppercase;
}

.accent-badge {
  background: rgba(230, 57, 70, 0.1);
  color: var(--accent);
}

.follow-badge {
  background: rgba(10, 10, 10, 0.08);
  color: var(--ink);
}

.song-title, .account-name {
  font-size: 15px;
  font-weight: 900;
  margin: 0 0 2px;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.song-artist, .account-platform {
  font-size: 11px;
  color: var(--muted);
  font-weight: 500;
}

/* Action button wrappers */
.play-btn-wrapper {
  position: relative;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--cream);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  transition: all 0.2s ease;
}

.play-btn-wrapper:hover {
  transform: scale(1.05);
  background: #1f1f1f;
}

.progress-ring {
  position: absolute;
  top: -4px;
  left: -4px;
  transform: rotate(-90deg);
  pointer-events: none;
}

.panel-progress-ring-circle {
  fill: transparent;
  stroke: var(--accent);
  stroke-width: 2;
  stroke-dasharray: 150.79; /* 2 * PI * 24 */
  stroke-dashoffset: 150.79;
  stroke-linecap: round;
  transition: stroke-dashoffset 0.1s linear;
}

.play-btn-inner {
  z-index: 2;
  font-size: 14px;
}

/* Equalizer visualization */
.hub-equalizer {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 3px;
  height: 0;
  opacity: 0;
  margin-top: -8px;
  margin-bottom: 16px;
  transition: all 0.3s ease;
}

.song-card.playing + .hub-equalizer {
  height: 20px;
  opacity: 1;
  margin-bottom: 24px;
}

.eq-bar {
  width: 3px;
  height: 2px;
  background: var(--accent);
  border-radius: 1.5px;
}

/* Sleeve Equalizer */
.sleeve-equalizer {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 2px;
  height: 16px !important;
  opacity: 1 !important;
  pointer-events: none;
}

.sleeve-equalizer .eq-bar {
  width: 2px;
  height: 100%;
  background: var(--cream) !important;
  border-radius: 1px;
  animation: eqPulse 1s ease-in-out infinite alternate;
}

.sleeve-equalizer .eq-bar:nth-child(1) { animation-delay: 0.1s; animation-duration: 0.8s; }
.sleeve-equalizer .eq-bar:nth-child(2) { animation-delay: 0.4s; animation-duration: 0.5s; }
.sleeve-equalizer .eq-bar:nth-child(3) { animation-delay: 0.2s; animation-duration: 0.7s; }
.sleeve-equalizer .eq-bar:nth-child(4) { animation-delay: 0.6s; animation-duration: 0.6s; }

@keyframes eqPulse {
  0% { height: 2px; }
  100% { height: 20px; }
}

/* Account card custom styling */
.avatar-container {
  position: relative;
  width: 52px;
  height: 52px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.avatar-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  padding: 2.5px;
  background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  animation: rotateRing 8s linear infinite;
}

.account-card.tiktok .avatar-ring {
  background: linear-gradient(45deg, #25f4ee 0%, #fe0979 100%);
}

.account-card.youtube .avatar-ring {
  background: linear-gradient(45deg, #ff0000 0%, #ff6b6b 100%);
}

@keyframes rotateRing {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.avatar-inner {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--cream);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  box-shadow: inset 0 2px 4px rgba(0,0,0,0.2);
}

.hub-follow-btn {
  background: var(--ink);
  color: var(--cream);
  border: none;
  border-radius: 8px;
  width: 50px;
  height: 50px;
  font-family: var(--font-display);
  cursor: pointer;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.hub-follow-btn i {
  font-size: 20px;
}

.hub-follow-btn span {
  display: none;
}

.hub-follow-btn:hover {
  transform: scale(1.04);
  background: #1f1f1f;
  color: var(--cream);
}

/* ==========================================
   FLOATING TRIGGER ANIMATIONS
   ========================================== */

.entry-spring {
  animation: entrySpring 1.2s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

.entry-bounce-down {
  animation: entryBounceDown 1s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

.entry-glide-reveal {
  animation: entryGlideReveal 1.2s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}

.idle-floating {
  animation: idleFloat 3.5s ease-in-out infinite;
}

@keyframes entrySpring {
  0% {
    transform: translate(150px, 50px) rotate(360deg) scale(0.2);
    opacity: 0;
  }
  60% {
    transform: translate(-30px, -10px) rotate(-30deg) scale(1.15);
    opacity: 1;
  }
  85% {
    transform: translate(10px, 5px) rotate(10deg) scale(0.95);
  }
  100% {
    transform: translate(0) rotate(0deg) scale(1);
    opacity: 1;
  }
}

@keyframes entryBounceDown {
  0% {
    transform: translateY(-300px) scaleY(1.5) scaleX(0.6);
    opacity: 0;
  }
  50% {
    transform: translateY(30px) scaleY(0.7) scaleX(1.3);
    opacity: 1;
  }
  75% {
    transform: translateY(-15px) scaleY(1.15) scaleX(0.85);
  }
  90% {
    transform: translateY(5px) scaleY(0.95) scaleX(1.05);
  }
  100% {
    transform: translateY(0) scale(1);
    opacity: 1;
  }
}

@keyframes entryGlideReveal {
  0% {
    transform: scale(0) rotate(-720deg);
    opacity: 0;
    filter: blur(8px);
  }
  65% {
    transform: scale(1.25) rotate(45deg);
    opacity: 1;
    filter: blur(0);
  }
  100% {
    transform: scale(1) rotate(0deg);
    opacity: 1;
  }
}

@keyframes idleFloat {
  0% {
    transform: translateY(0px);
    box-shadow: 0 0 0 2px var(--ink), 0 6px 24px rgba(0, 0, 0, 0.35);
  }
  50% {
    transform: translateY(-8px);
    box-shadow: 0 0 0 2px var(--ink), 0 14px 32px rgba(0, 0, 0, 0.25);
  }
  100% {
    transform: translateY(0px);
    box-shadow: 0 0 0 2px var(--ink), 0 6px 24px rgba(0, 0, 0, 0.35);
  }
}

/* ==========================================
   BOTTOM NAVIGATION (MOBILE)
   ========================================== */
#app-bottom-nav {
  display: none;
}

@media (max-width: 768px) {
  #btn-toggle-sidebar {
    display: none !important;
  }
  #app-sidebar {
    display: none !important;
  }
  #sidebar-overlay {
    display: none !important;
  }
  #app-bottom-nav {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: calc(62px + env(safe-area-inset-bottom, 0px));
    background: rgba(237, 237, 235, 0.95);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    z-index: 100000;
    justify-content: space-around;
    align-items: center;
    padding: 2px 4px calc(2px + env(safe-area-inset-bottom, 0px));
  }
  #app-bottom-nav .nav-item-app {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    flex: 1;
    height: 100%;
    color: var(--muted);
    cursor: pointer;
    font-size: 8px;
    font-family: 'JetBrains Mono', monospace;
    text-transform: uppercase;
    transition: color 0.25s ease, transform 0.25s ease;
    position: relative;
    padding-bottom: 8px;
    text-decoration: none;
  }
  #app-bottom-nav .nav-item-app i {
    font-size: 16px;
    width: auto !important;
    text-align: center;
    transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
  }
  #app-bottom-nav .nav-item-app::after {
    content: '';
    position: absolute;
    bottom: 4px;
    width: 3px;
    height: 3px;
    background: var(--ink);
    border-radius: 50%;
    transform: scale(0);
    transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
  }
  #app-bottom-nav .nav-item-app.active {
    color: var(--ink);
    font-weight: 700;
  }
  #app-bottom-nav .nav-item-app.active i {
    transform: translateY(-1px) scale(1.08);
  }
  #app-bottom-nav .nav-item-app.active::after {
    transform: scale(1);
  }
  #app-main {
    padding-bottom: calc(76px + env(safe-area-inset-bottom, 0px)) !important;
  }
  #micros-audio-player {
    bottom: calc(62px + env(safe-area-inset-bottom, 0px)) !important;
  }
}