/* RecomendeMe — home (React). Segue o guia de identidade visual:
   uma navy, um azul, uma fonte (Figtree), sem glow, sem gradiente decorativo. */

:root {
  --navy:        #060d1e;
  --navy-panel:  #0b1526;
  --navy-tile:   #101b30;
  --border:      rgba(255,255,255,0.08);

  --electric:    #1a6cfa;
  --electric-dk: #1454c9;
  --electric-06: rgba(26,108,250,0.06);
  --electric-15: rgba(26,108,250,0.15);
  --electric-30: rgba(26,108,250,0.30);

  --text:        #eef2f8;
  --text-soft:   rgba(238,242,248,0.72);
  --muted:       #6b7688;
  --danger:      #ef4444;

  --radius: 16px;
  --rail-w: 72px;
}

/* ── Base ─────────────────────────────────────────────────────────────── */
* { font-family: 'Figtree', sans-serif; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--navy); color: var(--text); overflow-x: hidden; min-height: 100vh; }
a { color: inherit; }
button { font: inherit; }
:focus-visible { outline: 2px solid var(--electric); outline-offset: 2px; }
.hidden { display: none !important; }

.boot { min-height: 100vh; display: flex; align-items: center; justify-content: center; }
.boot-spinner, .spinner {
  width: 28px; height: 28px; border-radius: 50%;
  border: 3px solid var(--electric-15); border-top-color: var(--electric);
  animation: spin .8s linear infinite;
}
.spinner.sm { width: 14px; height: 14px; border-width: 2px; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes fadeInUp { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes pop { 0% { transform: scale(1); } 40% { transform: scale(1.35); } 100% { transform: scale(1); } }
@keyframes burst { 0% { opacity: 0; transform: translate(-50%,-50%) scale(.4); } 25% { opacity: 1; transform: translate(-50%,-50%) scale(1.15); } 100% { opacity: 0; transform: translate(-50%,-50%) scale(1.4); } }
@keyframes shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }
.anim-up { animation: fadeInUp .4s cubic-bezier(.22,1,.36,1) both; animation-delay: var(--d, 0s); }

/* ── Layout ───────────────────────────────────────────────────────────── */
.page-wrapper {
  display: grid;
  grid-template-columns: minmax(0,630px) 320px;
  grid-template-areas: 'center right';
  justify-content: center;
  column-gap: 64px;
  margin-left: var(--rail-w);
  padding: 24px 24px 48px;
}
.feed-center { grid-area: center; min-width: 0; }
.feed-narrow { max-width: 470px; margin: 0 auto; }
.sidebar-right {
  grid-area: right; position: sticky; top: 24px; align-self: start;
  /* rola por dentro quando o conteúdo passa da altura da tela */
  max-height: calc(100vh - 48px); max-height: calc(100dvh - 48px);
  overflow-y: auto; overscroll-behavior: contain;
  scrollbar-width: none;
}
.sidebar-right::-webkit-scrollbar { display: none; }

.sidebar-left {
  position: fixed; left: 0; top: 0; bottom: 0; width: var(--rail-w); z-index: 40;
  background: var(--navy); border-right: 1px solid var(--border);
}
@media (max-width: 1140px) {
  .page-wrapper { grid-template-columns: minmax(0,630px); grid-template-areas: 'center'; }
  .sidebar-right { display: none; }
}
@media (max-width: 720px) {
  :root { --rail-w: 0px; }
  .page-wrapper { padding: 12px 12px 84px; }
  .sidebar-left { top: auto; right: 0; width: 100%; height: 56px; border-right: none; border-top: 1px solid var(--border); }
  .icon-rail { flex-direction: row !important; justify-content: space-around; padding: 0 8px !important; }
  .rail-hide-mobile { display: none !important; }
  .rail-spacer { margin-top: 0 !important; }
  #recchat { bottom: 72px !important; right: 12px !important; }
}

/* ── Rail ─────────────────────────────────────────────────────────────── */
.icon-rail { display: flex; flex-direction: column; align-items: center; gap: 4px; height: 100%; padding: 16px 0; }
.rail-logo { display: flex; align-items: center; justify-content: center; width: 48px; height: 48px; margin-bottom: 16px; }
.rail-logo img { width: 36px; height: 36px; object-fit: contain; border-radius: 8px; }
.rail-spacer { margin-top: auto; }
.icon-rail-btn {
  width: 48px; height: 48px; border-radius: 12px; position: relative;
  display: flex; align-items: center; justify-content: center;
  color: var(--text); font-size: 21px; text-decoration: none;
  background: transparent; border: none; cursor: pointer;
  transition: background .15s, color .15s, transform .12s;
}
.icon-rail-btn:hover { background: rgba(255,255,255,0.06); }
.icon-rail-btn:active { transform: scale(.92); }
.icon-rail-btn.active { background: var(--electric-15); color: var(--electric); }
.icon-rail-btn .avatar-img { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; border: 1.5px solid var(--electric-30); }
.avatar-letter { display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 800; color: #fff; background: var(--electric); }
.icon-rail-badge {
  position: absolute; top: 4px; right: 4px; min-width: 16px; height: 16px; border-radius: 99px;
  background: var(--electric); color: #fff; font-size: 9px; font-weight: 800;
  display: flex; align-items: center; justify-content: center; padding: 0 4px;
}

/* ── Popovers (notificações, criar, conta) ────────────────────────────── */
.pop {
  position: fixed; z-index: 60; border-radius: var(--radius); overflow: hidden;
  background: var(--navy-panel); border: 1px solid var(--electric-30);
  box-shadow: 0 24px 64px rgba(0,0,0,0.6);
  animation: fadeIn .15s ease both;
}
.pop-head { padding: 12px 16px; background: var(--electric-06); border-bottom: 1px solid var(--electric-30); }
.pop-label { font-size: 10px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--electric); margin: 0 0 2px; }
.pop-title { font-size: 14px; font-weight: 700; margin: 0; }
.pop-item {
  display: flex; align-items: center; gap: 10px; padding: 10px 16px;
  font-size: 13px; font-weight: 500; color: var(--text-soft); text-decoration: none;
  border-top: 1px solid rgba(255,255,255,0.04);
  transition: background .15s, color .15s, padding-left .15s;
}
.pop-item:hover { background: var(--electric-15); color: #fff; padding-left: 20px; }
.pop-item i { width: 14px; color: var(--electric); }
.pop-item.danger { color: var(--danger); }
.pop-item.danger:hover { background: rgba(239,68,68,0.1); }
.pop-divider { height: 1px; background: var(--border); margin: 4px 0; }
.notif-list { list-style: none; margin: 0; padding: 0; max-height: 288px; overflow-y: auto; }
.notif-list li { padding: 10px 14px; border-top: 1px solid var(--border); font-size: 12px; color: var(--text-soft); }
.notif-list li strong { color: var(--electric); }
.notif-list small { color: var(--muted); }
.notif-empty { text-align: center; color: var(--muted) !important; }

/* ── Setas de scroll horizontal ───────────────────────────────────────── */
.hs-wrap { position: relative; }
.hs-scroll { display: flex; overflow-x: auto; scrollbar-width: none; cursor: grab; -webkit-overflow-scrolling: touch; }
.hs-scroll::-webkit-scrollbar { display: none; }
.hs-scroll.dragging { cursor: grabbing; user-select: none; }
.hs-scroll img { -webkit-user-drag: none; }
.hs-arrow {
  position: absolute; top: var(--hs-top, 50%); transform: translateY(-50%); z-index: 5;
  width: 30px; height: 30px; border-radius: 50%; display: none; align-items: center; justify-content: center;
  background: var(--navy-tile); border: 1px solid var(--electric-30); color: var(--text); font-size: 12px; cursor: pointer;
  transition: background .15s, border-color .15s;
}
.hs-arrow:hover { background: var(--electric); border-color: var(--electric); }
.hs-arrow.show { display: flex; }
.hs-arrow.prev { left: -8px; }
.hs-arrow.next { right: -8px; }
@media (max-width: 720px) { .hs-arrow { display: none !important; } }

/* ── Stories ──────────────────────────────────────────────────────────── */
.stories { gap: 14px; padding: 4px 2px 10px; }
.story-slot { display: flex; flex-direction: column; align-items: center; gap: 7px; cursor: pointer; flex-shrink: 0; background: none; border: none; padding: 0; text-decoration: none; color: inherit; }
.story-ring { width: 64px; height: 64px; border-radius: 50%; background: var(--electric); padding: 2.5px; transition: transform .22s cubic-bezier(.22,1,.36,1); }
.story-ring.seen { background: rgba(255,255,255,0.18); }
.story-ring.more { background: transparent; border: 2px dashed var(--electric-30); padding: 0; display: flex; align-items: center; justify-content: center; color: var(--electric); font-size: 18px; }
.story-slot:hover .story-ring { transform: scale(1.08); }
.story-slot:hover .story-ring.more { border-color: var(--electric); background: var(--electric-06); }
.story-inner { width: 100%; height: 100%; border-radius: 50%; background: var(--navy); padding: 2.5px; overflow: hidden; }
.story-img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; display: block; }
.story-fallback { width: 100%; height: 100%; border-radius: 50%; background: var(--electric); display: flex; align-items: center; justify-content: center; font-size: 18px; font-weight: 800; color: #fff; }
.story-name { font-size: 11px; font-weight: 600; color: var(--muted); max-width: 64px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-align: center; }
.story-slot:hover .story-name { color: var(--text); }

.story-modal { position: fixed; inset: 0; z-index: 900; background: rgba(4,8,20,0.96); display: flex; align-items: center; justify-content: center; animation: fadeIn .2s ease both; }
.story-box { position: relative; width: min(380px,94vw); height: min(660px,90vh); border-radius: 24px; overflow: hidden; background: #000; box-shadow: 0 40px 100px rgba(0,0,0,0.8); touch-action: manipulation; }
.story-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.story-grad { position: absolute; inset: 0; background: linear-gradient(to top, rgba(6,13,30,0.98) 0%, rgba(6,13,30,0.65) 35%, rgba(6,13,30,0.15) 65%, transparent 100%); }
.story-pause { position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); z-index: 8; width: 52px; height: 52px; border-radius: 50%; background: rgba(0,0,0,0.55); display: flex; align-items: center; justify-content: center; font-size: 18px; opacity: 0; transition: opacity .15s; pointer-events: none; }
.story-box.paused .story-pause { opacity: 1; }
.story-bars { position: absolute; top: 14px; left: 14px; right: 14px; z-index: 10; display: flex; gap: 4px; }
.story-bar { flex: 1; height: 3px; border-radius: 99px; background: rgba(255,255,255,0.25); overflow: hidden; }
.story-fill { height: 100%; background: #fff; border-radius: 99px; width: 0; }
.story-head { position: absolute; top: 28px; left: 14px; right: 14px; z-index: 10; display: flex; align-items: center; gap: 10px; padding-top: 14px; }
.story-av { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; flex-shrink: 0; border: 2px solid var(--electric-30); }
.story-av.fb { background: var(--electric); display: flex; align-items: center; justify-content: center; font-size: 15px; font-weight: 800; color: #fff; }
.story-user { font-size: 13px; font-weight: 700; color: #fff; }
.story-ts { font-size: 10px; color: rgba(255,255,255,0.6); }
.story-close { margin-left: auto; width: 30px; height: 30px; border-radius: 50%; background: rgba(255,255,255,0.12); border: none; cursor: pointer; font-size: 16px; color: #fff; flex-shrink: 0; transition: background .15s; }
.story-close:hover { background: rgba(255,255,255,0.22); }
.story-bottom { position: absolute; bottom: 0; left: 0; right: 0; z-index: 10; padding: 0 18px 20px; }
.story-genre { font-size: 10px; font-weight: 600; color: rgba(255,255,255,0.5); letter-spacing: .08em; text-transform: uppercase; margin-bottom: 4px; }
.story-title { font-size: 26px; font-weight: 800; color: #fff; line-height: 1.2; margin-bottom: 6px; text-shadow: 0 2px 16px rgba(0,0,0,0.9); }
.story-desc { font-size: 12px; color: rgba(255,255,255,0.7); line-height: 1.6; margin-bottom: 14px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.story-actions { display: flex; gap: 8px; align-items: center; }
.story-tap { position: absolute; top: 0; bottom: 0; z-index: 9; width: 40%; cursor: pointer; background: none; border: none; padding: 0; }
.story-tap.prev { left: 0; } .story-tap.next { right: 0; }
.story-nav { position: absolute; top: 50%; transform: translateY(-50%); z-index: 20; width: 40px; height: 40px; border-radius: 50%; background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.15); cursor: pointer; color: #fff; font-size: 18px; display: flex; align-items: center; justify-content: center; transition: background .15s; }
.story-nav:hover { background: var(--electric); border-color: var(--electric); }
.story-nav:disabled { opacity: .25; pointer-events: none; }
.story-nav.prev { left: calc(50% - 246px); } .story-nav.next { right: calc(50% - 246px); }
@media (max-width: 560px) { .story-nav { display: none; } }

/* ── Chips de tipo e botões em cima das capas ─────────────────────────── */
.chip-type {
  display: inline-flex; align-items: center; font-size: 10px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase;
  padding: 4px 11px; border-radius: 99px; color: #fff;
  background: rgba(6,13,30,0.72); border: 1px solid rgba(255,255,255,0.18);
}
.btn-ghost {
  display: inline-flex; align-items: center; gap: 6px; padding: 6px 13px; border-radius: 99px;
  font-size: 12px; font-weight: 700; color: rgba(255,255,255,0.85); text-decoration: none; cursor: pointer;
  background: rgba(6,13,30,0.72); border: 1px solid rgba(255,255,255,0.15);
  transition: background .15s, border-color .15s, color .15s;
}
.btn-ghost:hover { border-color: var(--electric); background: var(--electric-15); color: #fff; }
.btn-ghost.liked { background: var(--electric); border-color: var(--electric); color: #fff; }
.btn-ghost.liked:hover { background: var(--electric-dk); }
.btn-ghost.ia { border-color: var(--electric-30); }
.btn-ghost.pop-anim i { animation: pop .3s ease; }
.btn-primary { display: inline-flex; align-items: center; justify-content: center; padding: 8px 20px; border-radius: 8px; font-size: 12px; font-weight: 600; color: #fff; background: var(--electric); border: none; cursor: pointer; text-decoration: none; transition: background .15s; }
.btn-primary:hover { background: var(--electric-dk); }

/* ── Player (podcast / playlists) ─────────────────────────────────────── */
.player { background: var(--navy-panel); border: 1px solid var(--border); border-radius: var(--radius); padding: 14px 16px; margin-bottom: 14px; }
.player-toggle { all: unset; display: flex; align-items: center; gap: 10px; cursor: pointer; width: 100%; box-sizing: border-box; }
.player-art-mini { width: 38px; height: 38px; border-radius: 8px; object-fit: cover; flex-shrink: 0; background: var(--navy-tile); }
.player-t { font-size: 12px; font-weight: 700; margin: 0; }
.player-s { font-size: 10px; color: var(--muted); margin: 0; }
.player-chev { display: flex; align-items: center; justify-content: center; width: 26px; height: 26px; border-radius: 50%; flex-shrink: 0; background: rgba(255,255,255,0.05); border: 1px solid var(--border); color: var(--muted); font-size: 11px; transition: transform .2s, background .15s, color .15s; }
.player.expanded .player-chev { transform: rotate(180deg); background: var(--electric-15); color: var(--electric); }
.player-body { display: none; margin-top: 12px; }
.player.expanded .player-body { display: block; animation: fadeIn .2s ease both; }
.canal-row { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 10px; }
.canal-btn { padding: 5px 12px; font-size: 11px; font-weight: 700; border-radius: 99px; border: 1px solid var(--border); color: var(--muted); background: transparent; cursor: pointer; transition: all .15s; letter-spacing: .02em; }
.canal-btn:hover { color: var(--text); border-color: var(--electric-30); }
.canal-btn.on { background: var(--electric-15); color: var(--text); border-color: var(--electric-30); }
.player-now { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.player-art { position: relative; flex-shrink: 0; }
.player-art img { width: 46px; height: 46px; border-radius: 9px; object-fit: cover; border: 1px solid var(--border); background: var(--navy-tile); display: block; }
.player-art .eq-wrap { position: absolute; bottom: 3px; right: 3px; background: rgba(0,0,0,0.65); border-radius: 3px; padding: 2px 3px; }
.player-meta { flex: 1; min-width: 0; animation: fadeIn .25s ease both; }
.player-title { font-size: 12px; font-weight: 700; margin: 0 0 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.player-quote { font-size: 10px; color: var(--muted); margin: 0; font-style: italic; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.player-frame { border-radius: 10px; overflow: hidden; border: 1px solid var(--border); margin-bottom: 8px; }
.player-frame iframe { display: block; border: 0; border-radius: 10px; width: 100%; height: 132px; }
.player-foot { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding-top: 8px; border-top: 1px solid var(--border); }
.player-link { font-size: 10px; font-weight: 600; color: var(--electric); text-decoration: none; }
.player-link:hover { text-decoration: underline; }
.people { display: flex; align-items: center; overflow: hidden; max-width: 62%; }
.people-label { font-size: 9px; text-transform: uppercase; letter-spacing: .14em; font-weight: 700; color: var(--muted); margin-right: 6px; flex-shrink: 0; }
.people-sep { width: 1px; height: 16px; background: var(--border); margin: 0 8px; }
.av { width: 26px; height: 26px; border-radius: 50%; border: 2px solid var(--navy-panel); margin-left: -5px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; font-size: 9px; font-weight: 600; background: var(--navy-tile); color: var(--text-soft); text-decoration: none; overflow: hidden; transition: transform .15s; }
.av:first-of-type { margin-left: 0; }
.av:hover { transform: translateY(-3px); }
.av img { width: 100%; height: 100%; object-fit: cover; }
.eq { display: flex; align-items: flex-end; gap: 1.5px; height: 12px; }
.eq span { width: 2px; border-radius: 1px; background: var(--electric); animation: eq 0.8s ease-in-out infinite; }
.eq span:nth-child(1) { height: 35%; animation-delay: 0s; } .eq span:nth-child(2) { height: 100%; animation-delay: .15s; }
.eq span:nth-child(3) { height: 60%; animation-delay: .3s; } .eq span:nth-child(4) { height: 80%; animation-delay: .1s; }
.eq.paused span { animation-play-state: paused; transform: scaleY(.35); }
@keyframes eq { 0%,100% { transform: scaleY(.35); } 50% { transform: scaleY(1); } }

.son-ctrls { display: flex; align-items: center; gap: 3px; flex-shrink: 0; }
.son-btn { background: none; border: none; cursor: pointer; color: var(--muted); font-size: 14px; padding: 4px; transition: color .15s; line-height: 1; }
.son-btn:hover { color: var(--text); }
.son-btn.play { width: 28px; height: 28px; border-radius: 50%; background: var(--electric); color: #fff; font-size: 12px; display: flex; align-items: center; justify-content: center; }
.son-btn.play:hover { background: var(--electric-dk); }
.son-progress { width: 100%; height: 4px; background: rgba(255,255,255,0.1); border-radius: 99px; cursor: pointer; margin: 8px 0 4px; }
.son-progress > div { height: 100%; border-radius: 99px; background: var(--electric); pointer-events: none; }
.son-times { display: flex; justify-content: space-between; font-size: 9px; color: var(--muted); margin-bottom: 8px; }
.tracklist { list-style: none; margin: 0; padding: 8px 0 0; border-top: 1px solid var(--border); display: flex; flex-direction: column; gap: 2px; }
.tracklist-label { font-size: 9px; text-transform: uppercase; letter-spacing: .14em; font-weight: 700; color: var(--muted); margin: 0 0 6px 6px; }
.track { display: flex; align-items: center; gap: 8px; padding: 5px 6px; border-radius: 8px; cursor: pointer; background: none; border: none; width: 100%; text-align: left; color: inherit; transition: background .15s; }
.track:hover, .track.on { background: var(--electric-06); }
.track.on .track-title { color: var(--electric); }
.track-cover { width: 28px; height: 28px; border-radius: 4px; object-fit: cover; background: var(--navy-tile); flex-shrink: 0; }
.track-info { flex: 1; min-width: 0; }
.track-title { font-size: 11px; font-weight: 600; margin: 0 0 1px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.track-by { font-size: 9px; color: var(--muted); margin: 0; }
.track-photo { width: 16px; height: 16px; border-radius: 50%; object-fit: cover; }
.upload-form { border-top: 1px solid var(--border); padding-top: 10px; margin-top: 8px; display: flex; flex-direction: column; gap: 6px; }
.input { background: rgba(255,255,255,0.04); border: 1px solid var(--border); border-radius: 8px; padding: 7px 10px; font-size: 12px; color: var(--text); outline: none; transition: border-color .15s, background .15s; width: 100%; }
.input:focus { border-color: var(--electric-30); background: var(--electric-06); }
.upload-form input[type=file] { font-size: 10px; color: var(--muted); flex: 1; min-width: 0; }

/* ── Filtros (fixos no topo ao rolar) ─────────────────────────────────── */
.filters { position: sticky; top: 0; z-index: 20; background: var(--navy); padding: 8px 0 10px; margin: 0 0 6px; }
.filters .hs-scroll { gap: 6px; padding-bottom: 2px; }
.filter-btn { flex-shrink: 0; padding: 7px 18px; border-radius: 99px; font-size: 12px; font-weight: 700; color: var(--muted); background: rgba(255,255,255,0.04); border: 1px solid var(--border); cursor: pointer; transition: all .15s; white-space: nowrap; letter-spacing: .02em; }
.filter-btn:hover { background: var(--electric-06); border-color: var(--electric-30); color: var(--text); }
.filter-btn.active { background: var(--electric); border-color: var(--electric); color: #fff; }

/* ── Feed ─────────────────────────────────────────────────────────────── */
.feed-list { display: flex; flex-direction: column; gap: 14px; }
.skeleton { background: linear-gradient(90deg, rgba(255,255,255,0.03) 0%, rgba(255,255,255,0.07) 50%, rgba(255,255,255,0.03) 100%); background-size: 200% 100%; animation: shimmer 1.5s infinite; aspect-ratio: 4/5; border-radius: 20px; }

.feed-card { position: relative; border-radius: 20px; overflow: hidden; border: 1px solid var(--border); background: var(--navy-panel); aspect-ratio: 4/5; transition: border-color .25s, transform .25s; cursor: pointer; }
.feed-card:hover { border-color: var(--electric-30); transform: translateY(-2px); }
.feed-card.is-playing:hover { transform: none; }
.fc-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s cubic-bezier(.22,1,.36,1), filter .3s; }
.feed-card:hover .fc-img { transform: scale(1.03); filter: brightness(.85); }
.fc-no-img { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; background: var(--navy-tile); color: var(--muted); font-size: 12px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; }
.fc-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; pointer-events: none; transition: opacity .35s; z-index: 1; }
.feed-card.is-playing .fc-video { opacity: 1; }
.fc-overlay { position: absolute; inset: 0; z-index: 2; pointer-events: none; background: linear-gradient(to top, rgba(6,13,30,0.98) 0%, rgba(6,13,30,0.82) 28%, rgba(6,13,30,0.35) 58%, rgba(6,13,30,0.08) 80%, transparent 100%); }
.fc-badge { position: absolute; top: 14px; left: 14px; z-index: 5; }
.fc-user { position: absolute; top: 12px; right: 12px; z-index: 5; display: flex; align-items: center; gap: 7px; background: rgba(6,13,30,0.72); border: 1px solid rgba(255,255,255,0.14); border-radius: 99px; padding: 4px 10px 4px 4px; text-decoration: none; transition: border-color .15s; max-width: 160px; }
.fc-user:hover { border-color: var(--electric); }
.fc-avatar { width: 26px; height: 26px; border-radius: 50%; object-fit: cover; border: 1.5px solid var(--electric-30); flex-shrink: 0; }
.fc-avatar.fb { background: var(--electric); display: flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 800; color: #fff; }
.fc-username { font-size: 11px; font-weight: 700; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fc-verified { font-size: 10px; color: var(--electric); flex-shrink: 0; }
.fc-bottom { position: absolute; bottom: 0; left: 0; right: 0; z-index: 4; padding: 0 16px 16px; }
.fc-genre { font-size: 10px; font-weight: 600; color: rgba(255,255,255,0.55); letter-spacing: .08em; text-transform: uppercase; margin-bottom: 4px; }
.fc-title { font-size: 20px; font-weight: 800; color: #fff; line-height: 1.25; margin-bottom: 6px; text-shadow: 0 2px 16px rgba(0,0,0,0.9); }
.fc-desc { font-size: 12px; color: rgba(255,255,255,0.7); line-height: 1.6; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin-bottom: 12px; }
.fc-actions { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.fc-share { margin-left: auto; padding: 6px 10px; }
.fc-sound { position: absolute; top: 52px; right: 12px; z-index: 6; background: rgba(0,0,0,0.7); color: #fff; font-size: 11px; font-weight: 700; padding: 4px 10px; border-radius: 8px; border: none; cursor: pointer; transition: top .25s, opacity .2s; opacity: 0; }
.feed-card:hover .fc-sound, .feed-card.is-playing .fc-sound { opacity: 1; }
.fc-overlay, .fc-user, .fc-bottom, .fc-badge { transition: opacity .25s; }
.feed-card.ui-hidden .fc-overlay, .feed-card.ui-hidden .fc-badge, .feed-card.ui-hidden .fc-user, .feed-card.ui-hidden .fc-bottom { opacity: 0; pointer-events: none; }
.feed-card.ui-hidden .fc-sound { top: 12px; }
.fc-burst { position: absolute; top: 50%; left: 50%; z-index: 7; font-size: 84px; color: #fff; pointer-events: none; animation: burst .7s ease both; }

.sponsored { background: var(--navy-panel); border: 1px solid var(--border); border-radius: 20px; overflow: hidden; }
.sponsored-head { padding: 12px 14px 8px; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.sponsored-label { font-size: 9px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; padding: 3px 10px; border-radius: 99px; border: 1px solid var(--border); color: var(--muted); flex-shrink: 0; }
.sponsored-media { position: relative; background: #000; max-height: 460px; overflow: hidden; }
.sponsored-media video { width: 100%; max-height: 460px; object-fit: cover; display: block; }
.sponsored-foot { padding: 10px 14px; }

.feed-end { text-align: center; padding: 28px 0 8px; font-size: 12px; font-weight: 600; color: var(--muted); }
.feed-loading { display: inline-flex; align-items: center; gap: 12px; padding: 10px 20px; border-radius: 99px; background: var(--electric-06); border: 1px solid var(--electric-15); font-size: 12px; font-weight: 600; color: var(--muted); }
.feed-sentinel { padding: 32px 0; text-align: center; }
.feed-error { color: var(--danger); font-size: 12px; }
.feed-error button { margin-left: 8px; }
.feed-empty { text-align: center; color: var(--muted); font-size: 13px; padding: 40px 0; }

/* ── Coluna direita ───────────────────────────────────────────────────── */
.sr-me { display: flex; align-items: center; gap: 12px; padding-bottom: 20px; }
.sr-avatar { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; flex-shrink: 0; border: 1px solid var(--border); background: var(--navy-tile); }
.sr-avatar.fb { display: flex; align-items: center; justify-content: center; font-size: 16px; font-weight: 800; color: #fff; background: var(--electric); }
.sr-names { flex: 1; min-width: 0; }
.sr-username { display: block; font-size: 14px; font-weight: 700; text-decoration: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sr-sub { font-size: 13px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sr-link { font-size: 12px; font-weight: 700; color: var(--electric); text-decoration: none; flex-shrink: 0; }
.sr-link:hover { text-decoration: underline; }
.sr-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.sr-head-title { font-size: 14px; font-weight: 700; color: var(--muted); }
.sr-head-all { font-size: 12px; font-weight: 700; text-decoration: none; }
.sr-head-all:hover { color: var(--electric); }
.sr-item { display: flex; align-items: center; gap: 12px; padding: 8px 0; }
.sr-verified { font-size: 11px; color: var(--electric); margin-left: 4px; }
.sr-footer { margin-top: 28px; font-size: 12px; line-height: 1.9; color: var(--muted); }
.sr-footer a { text-decoration: none; }
.sr-footer a:hover { text-decoration: underline; }
.sr-copy { margin-top: 16px; text-transform: uppercase; }
.cta { padding: 16px; background: var(--electric-06); border: 1px solid var(--electric-30); border-radius: var(--radius); margin-bottom: 20px; text-align: center; }
.cta-title { font-size: 13px; font-weight: 800; margin-bottom: 5px; }
.cta-sub { font-size: 11px; color: var(--muted); margin-bottom: 12px; line-height: 1.5; }
.cta .btn-primary { display: flex; margin-bottom: 6px; padding: 9px 12px; }
.btn-outline { display: flex; align-items: center; justify-content: center; padding: 8px 12px; border-radius: 8px; font-size: 12px; font-weight: 600; color: var(--text); background: transparent; border: 1px solid var(--electric-30); text-decoration: none; transition: background .15s, border-color .15s; }
.btn-outline:hover { background: var(--electric-06); border-color: var(--electric); }

/* ── RecChat ──────────────────────────────────────────────────────────── */
#recchat { position: fixed; right: 24px; bottom: 24px; z-index: 50; display: flex; flex-direction: column-reverse; align-items: flex-end; }
.recchat-pill { position: relative; display: flex; align-items: center; gap: 10px; padding: 12px 20px; border-radius: 99px; background: var(--navy-panel); border: 1px solid var(--border); color: var(--text); font-size: 14px; font-weight: 700; cursor: pointer; transition: border-color .15s, transform .15s; box-shadow: 0 8px 24px rgba(0,0,0,0.45); }
.recchat-pill:hover { border-color: var(--electric-30); transform: translateY(-1px); }
.recchat-unread { position: absolute; top: -4px; right: -4px; min-width: 16px; padding: 2px 6px; border-radius: 99px; background: var(--electric); color: #fff; font-size: 9px; font-weight: 800; text-align: center; }
.recchat-box { width: 320px; height: 400px; margin-bottom: 12px; border-radius: var(--radius); overflow: hidden; background: var(--navy-panel); border: 1px solid var(--electric-30); display: flex; flex-direction: column; box-shadow: 0 24px 64px rgba(0,0,0,0.6); animation: fadeInUp .25s ease both; }
.recchat-head { display: flex; align-items: center; justify-content: space-between; padding: 12px 16px; background: var(--electric); }
.recchat-head b { font-size: 13px; font-weight: 800; color: #fff; display: block; }
.recchat-head small { font-size: 10px; color: rgba(255,255,255,0.8); }
.recchat-head button { color: #fff; font-size: 20px; line-height: 1; background: none; border: none; cursor: pointer; }
.recchat-msgs { flex: 1; overflow-y: auto; padding: 12px; display: flex; flex-direction: column; gap: 8px; scroll-behavior: smooth; }
.msg { border-radius: 14px; padding: 8px 11px; border: 1px solid var(--border); background: rgba(255,255,255,0.04); }
.msg.me { background: var(--electric-15); border-color: var(--electric-30); }
.msg-top { display: flex; align-items: center; gap: 6px; margin-bottom: 2px; }
.msg-user { font-size: 10px; font-weight: 700; color: var(--text-soft); }
.msg.me .msg-user { color: var(--electric); }
.msg-time { font-size: 9px; color: var(--muted); }
.msg-text { font-size: 12px; line-height: 1.5; word-break: break-word; }
.recchat-form { display: flex; align-items: center; border-top: 1px solid var(--border); }
.recchat-form input { flex: 1; background: transparent; border: none; color: var(--text); padding: 12px; font-size: 13px; outline: none; }
.recchat-form button { margin: 8px; padding: 6px 12px; border-radius: 8px; background: var(--electric); color: #fff; border: none; font-size: 12px; font-weight: 700; cursor: pointer; transition: background .15s; }
.recchat-form button:hover { background: var(--electric-dk); }

/* ── Modal IA ─────────────────────────────────────────────────────────── */
.modal-ia { position: fixed; inset: 0; z-index: 9150; display: flex; align-items: center; justify-content: center; background: rgba(2,6,15,.9); animation: fadeIn .2s ease both; padding: 12px; }
.modal-ia-box { background: var(--navy-panel); border: 1px solid var(--border); border-radius: 20px; width: min(600px,100%); max-height: 88vh; display: flex; flex-direction: column; overflow: hidden; animation: fadeInUp .3s cubic-bezier(.22,1,.36,1) both; }
.ia-header { display: flex; align-items: center; gap: 12px; padding: 16px 22px; border-bottom: 1px solid var(--border); flex-shrink: 0; }
.ia-cover { width: 40px; height: 58px; border-radius: 8px; object-fit: cover; flex-shrink: 0; background: var(--navy-tile); }
.ia-label { font-size: 10px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--electric); margin-bottom: 2px; }
.ia-name { font-size: 15px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ia-close { margin-left: auto; background: none; border: none; color: var(--muted); font-size: 18px; cursor: pointer; transition: color .15s; }
.ia-close:hover { color: var(--text); }
.ia-body { padding: 20px 22px 24px; overflow-y: auto; overscroll-behavior: contain; }
.ia-loading { display: flex; flex-direction: column; align-items: center; gap: 14px; padding: 40px 0; color: var(--muted); font-size: 13px; }
.ia-error { text-align: center; color: var(--danger); font-size: 13px; padding: 32px 0; }
.ia-error a { color: var(--electric); }
.ia-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.ia-chip { font-size: 11px; padding: 3px 11px; border-radius: 99px; background: var(--electric-15); border: 1px solid var(--electric-30); color: var(--text); }
.ia-section { margin-bottom: 18px; }
.ia-section h4 { font-size: 11px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--electric); margin: 0 0 7px; }
.ia-section p { font-size: 14px; color: var(--text-soft); line-height: 1.75; margin: 0; }
.ia-section ul { list-style: none; padding: 0; margin: 0; }
.ia-section li { font-size: 13.5px; color: var(--text-soft); line-height: 1.6; padding: 6px 0 6px 16px; border-bottom: 1px solid rgba(255,255,255,0.05); position: relative; }
.ia-section li:last-child { border-bottom: none; }
.ia-section li::before { content: ''; position: absolute; left: 0; top: 14px; width: 5px; height: 5px; border-radius: 50%; background: var(--electric); }
.ia-warning { font-size: 12px; color: var(--danger); background: rgba(239,68,68,0.08); border: 1px solid rgba(239,68,68,0.3); border-radius: 10px; padding: 9px 12px; margin-bottom: 16px; }
.ia-foot { font-size: 11px; color: var(--muted); text-align: center; margin-top: 16px; }

/* ── Toast e voltar ao topo ───────────────────────────────────────────── */
.toast { position: fixed; left: 50%; bottom: 88px; transform: translateX(-50%); z-index: 9999; background: var(--navy-tile); border: 1px solid var(--electric-30); color: var(--text); padding: 10px 18px; border-radius: 99px; font-size: 13px; font-weight: 600; animation: fadeInUp .25s ease both; box-shadow: 0 12px 32px rgba(0,0,0,0.5); }
.to-top { position: fixed; right: 24px; bottom: 88px; z-index: 45; width: 42px; height: 42px; border-radius: 50%; background: var(--navy-panel); border: 1px solid var(--border); color: var(--text); cursor: pointer; display: flex; align-items: center; justify-content: center; animation: fadeIn .2s ease both; transition: border-color .15s; }
.to-top:hover { border-color: var(--electric); color: var(--electric); }
@media (max-width: 720px) { .to-top { right: 12px; bottom: 132px; } .toast { bottom: 140px; } }

/* ── Neve (dezembro) ──────────────────────────────────────────────────── */
#rm-snow { position: fixed; inset: 0; z-index: 9998; pointer-events: none; opacity: .5; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  #rm-snow { display: none; }
}

/* RecomendeMe — barra lateral (Premier League + filmes)
   Cole no FINAL do assets/app.css. Usa os tokens do guia de identidade
   (--navy-panel, --navy-tile, --border, --electric, --text, --muted, --danger).
   Se algum token ainda não existir no app.css, descomente o bloco abaixo. */

/*
:root{
  --navy:#060d1e; --navy-panel:#0b1526; --navy-tile:#101b30;
  --border:rgba(255,255,255,.08);
  --electric:#1a6cfa; --electric-dk:#1454c9;
  --text:#eef2f8; --muted:#6b7688; --danger:#ef4444;
}
*/

.rs-side{
  display:flex; flex-direction:column; gap:16px;
  width:100%;
  font-family:'Figtree',sans-serif; color:var(--text);
}

.rs-side{ margin:16px 0; }

.rs-card{
  background:var(--navy-panel);
  border:1px solid var(--border);
  border-radius:14px;
  padding:14px 14px 12px;
}

.rs-head{ margin-bottom:8px; }
.rs-eyebrow{
  font-size:.68rem; font-weight:700; text-transform:uppercase;
  letter-spacing:.16em; color:var(--muted);
}

/* ── Jogos ── */
.rs-day + .rs-day{ margin-top:10px; }
.rs-day-label{
  font-size:.72rem; font-weight:600; color:var(--muted);
  padding:6px 0 4px; text-transform:capitalize;
}

.rs-match{
  display:grid; grid-template-columns:1fr auto 64px; align-items:center; gap:10px;
  padding:9px 0; border-top:1px solid var(--border);
}
.rs-day-label + .rs-match{ border-top:0; }

.rs-teams{ display:flex; flex-direction:column; gap:6px; min-width:0; }
.rs-team{ display:flex; align-items:center; gap:8px; min-width:0; }
.rs-team img{ width:18px; height:18px; object-fit:contain; flex:none; }
.rs-crest-ph{ width:18px; height:18px; border-radius:50%; background:var(--navy-tile); flex:none; }
.rs-team-name{
  font-size:.86rem; font-weight:600; white-space:nowrap;
  overflow:hidden; text-overflow:ellipsis;
}

.rs-scores{
  display:flex; flex-direction:column; gap:6px; text-align:right;
  font-size:.86rem; font-weight:700; font-variant-numeric:tabular-nums;
  line-height:18px;
}
.rs-scores span{ color:var(--muted); font-weight:500; }
.rs-scores b.on{ color:var(--electric); }

.rs-meta{ text-align:right; font-size:.7rem; line-height:1.2; }
.rs-state{ color:var(--muted); font-weight:600; }
.rs-live{ color:var(--danger); font-weight:700; display:inline-flex; align-items:center; gap:5px; }
.rs-live i{
  width:6px; height:6px; border-radius:50%; background:var(--danger);
  animation:rs-pulse 1.4s ease-in-out infinite;
}
@keyframes rs-pulse{ 50%{ opacity:.25; } }

/* ── Filmes ── */
.rs-rail{
  display:flex; gap:10px; overflow-x:auto; padding-bottom:6px;
  scroll-snap-type:x proximity; scrollbar-width:thin;
  scrollbar-color:var(--navy-tile) transparent;
}
.rs-movie{
  flex:none; width:104px; position:relative; scroll-snap-align:start;
  text-decoration:none; color:var(--text);
}
.rs-movie img{
  width:104px; height:156px; object-fit:cover; display:block;
  border-radius:8px; background:var(--navy-tile);
  border:1px solid var(--border);
}
.rs-movie-title{
  display:block; margin-top:6px; font-size:.76rem; font-weight:600; line-height:1.25;
  display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden;
}
.rs-movie:hover .rs-movie-title{ color:var(--electric); }
.rs-movie-rate{
  position:absolute; top:6px; left:6px;
  background:var(--navy); color:var(--text);
  font-size:.66rem; font-weight:700; padding:2px 6px; border-radius:6px;
  border:1px solid var(--border);
}

.rs-credit{ margin:6px 0 0; font-size:.62rem; color:var(--muted); }

/* ── Estados ── */
.rs-empty{ margin:8px 0; font-size:.82rem; color:var(--muted); }
.rs-skel{ height:44px; border-radius:8px; background:var(--navy-tile); margin-top:8px; opacity:.6; }
.rs-skel-poster{ height:156px; }