/* --- Shelf --- */
.section { margin-top: 32px; }
.section-head { display:flex; align-items:center; gap:12px; }
.section-head h2 { font-size:1.4rem; font-weight:800; }

.vitos-row,
.ritos-row{
  margin-top:14px;
  display:grid;
  grid-auto-flow:column;
  gap:12px;
  overflow-x:auto;
  padding-bottom:8px;
  scroll-snap-type:x mandatory;
}

.vitos-row{ grid-auto-columns: clamp(220px, 26vw, 320px); }
.ritos-row{ grid-auto-columns: clamp(140px, 18vw, 220px); /* responsive width */ }

.vitos-row > .vito-card,
.ritos-row > .rito-card{
  scroll-snap-align:start;
  border-radius:14px;
  overflow:hidden;
  background:#0b1220;
  cursor:pointer;
  display:grid;
  grid-template-rows: auto 1fr;
}

.vito-card .thumb-wrap,
.rito-card .thumb-wrap{
  position:relative;
  width:100%;
  background:
    radial-gradient(120% 90% at 30% 10%, rgba(255,255,255,.06), transparent 60%),
    linear-gradient(180deg,#0e1626,#0a1120);
}

/* Vito (16:9) */
.vito-card .thumb-wrap{ aspect-ratio: 16 / 9; }
/* Rito (9:16) */
.rito-card .thumb-wrap{ aspect-ratio: 9 / 16; }

.vito-card .thumb,
.rito-card .thumb{
  position:absolute; inset:0;
  width:100%; height:100%;
  object-fit:cover; display:block;
}

.vito-card .thumb.skeleton,
.rito-card .thumb.skeleton{
  animation: sk 1.2s linear infinite;
  background: linear-gradient(90deg, rgba(255,255,255,.06), rgba(255,255,255,.12), rgba(255,255,255,.06));
  background-size: 200% 100%;
}
@keyframes sk { 0%{background-position:200% 0} 100%{background-position:-200% 0} }

.vito-card .meta,
.rito-card .meta{
  padding:8px 8px 10px;
  font-size:.9rem; line-height:1.25;
  min-height: 40px;
}

/* --- Viewer (full screen) --- */
.rv{ position:fixed; inset:0; background:rgba(0,0,0,.96); display:grid; grid-template-rows:1fr; z-index:70; }
.rv.hidden{ display:none; }
.rv-close{
  position:absolute; top:12px; right:12px; z-index:5; width:40px; height:40px; border-radius:999px;
  background:rgba(0,0,0,.5); border:1px solid rgba(255,255,255,.25); color:#fff;
}

/* vertical slides */
.rv-track{
  height:100%; overflow:auto; scroll-snap-type:y mandatory; -webkit-overflow-scrolling:touch;
}
.rv-slide{
  height:100%; scroll-snap-align:start; display:grid; place-items:center; position:relative;
}
.rv-video{
  height:100vh; max-height:100dvh; aspect-ratio:9/16; width:auto; object-fit:cover; background:#000; border-radius:22px;
  box-shadow: 0 30px 80px rgba(0,0,0,.6);
}

/* overlay actions (reusing your Vito styles) */
.rv-actions{ position:absolute; right:18px; top:50%; transform:translateY(-50%); display:grid; gap:14px; align-items:center; justify-items:center; }
.rv-bottom { position:absolute; left:18px; right:18px; bottom:14px; color:#fff; display:grid; grid-template-columns:1fr auto; gap:12px; }

.rv-btn{
  width:50px; height:50px; border-radius:50%; display:grid; place-items:center;
  background:rgba(0,0,0,.55); border:1px solid rgba(255,255,255,.28); color:#fff;
}

.rv-btn.is-active,
.rv-btn.voted{
  background:rgba(59,130,246,.75);
  border-color:rgba(59,130,246,.95);
}

.rv-score{
  min-width:48px;
  text-align:center;
  font-weight:600;
  color:#fff;
  font-size:1rem;
}

.rv-meta-block{
  display:flex;
  flex-direction:column;
  gap:10px;
  align-items:flex-end;
}

.rv-ctas{
  display:flex;
  gap:10px;
}

.rv-btn__count{
  display:block;
  margin-top:4px;
  font-size:.78rem;
  font-weight:600;
}

.rv-btn--vote{
  width:48px;
  height:48px;
}

.rv-btn--comment{
  min-width:58px;
  height:auto;
  padding:10px 16px;
  grid-template-rows:auto auto;
  row-gap:2px;
  border-radius:18px;
}

.rv-btn--comment .rv-btn__count{
  margin-top:0;
}

.rv-btn--report{
  width:48px;
  height:48px;
}

/* progress bar */
.rv-progress{ position:absolute; left:18px; right:18px; bottom:8px; height:6px; border-radius:999px; background:rgba(255,255,255,.25); overflow:hidden; cursor:pointer; }
.rv-progress .bar{ height:100%; width:0%; background:#4cc9f0; }

/* hide scrollbars visually but keep wheel/touch */
.rv-track{ scrollbar-width:thin; }

/* --- Vito Viewer (wide) --- */
.vv{ position:fixed; inset:0; background:rgba(0,0,0,.96); display:grid; z-index:70; }
.vv.hidden{ display:none; }
.vv-close{
  position:absolute; top:12px; right:12px; width:42px; height:42px; border-radius:999px;
  background:rgba(0,0,0,.55); border:1px solid rgba(255,255,255,.28); color:#fff; z-index:5;
}
.vv-track{ height:100%; overflow:auto; scroll-snap-type:y mandatory; -webkit-overflow-scrolling:touch; }
.vv-slide{ height:100%; scroll-snap-align:start; display:grid; place-items:center; position:relative; padding:48px 0; }
.vv-video{
  width:min(90vw, 1200px);
  max-height:calc(100dvh - 160px);
  aspect-ratio:16 / 9;
  object-fit:cover;
  background:#000;
  border-radius:20px;
  box-shadow:0 30px 80px rgba(0,0,0,.6);
}

/* Rito only */
.rito-card .collapsible-text {
  max-height: 90px;
  overflow: hidden;
}

.rito-card .collapsible-text.expanded {
  max-height: none;
}

.rito-card .see-more-btn {
  cursor: pointer;
  background: none;
  border: 0;
  color: #1b82f1;
  font-weight: 600;
  padding: 0;
}

.vito-viewer-root {
  height: 100vh;
  overflow-y: auto;
  scroll-snap-type: y mandatory;
  background: #050810;
}

.vito-slide {
  height: 100vh;
  scroll-snap-align: start;
  display: flex;
  align-items: center;
  justify-content: center;
}

.vito-slide > .vito-card {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: min(calc(82vh * 9 / 16), 430px, 92vw);
  max-height: 85vh;
  aspect-ratio: 9 / 16;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.55);
  background: #000;
}

.vito-slide > .vito-card video,
.vito-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.rito-card .rito-carousel {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: 12px;
}

.rito-card .rito-carousel-viewport {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.rito-card .rito-carousel img,
.rito-card .rito-carousel video {
  max-width: 100%;
  max-height: 100%;
  object-fit: cover;
}

.rito-card .rito-carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  padding: .25rem .5rem;
  border: none;
  border-radius: 9999px;
  box-shadow: 0 1px 4px rgba(0,0,0,.2);
  background: rgba(255,255,255,.9);
}

.rito-card .rito-carousel-btn.prev {
  left: .5rem;
}

.rito-card .rito-carousel-btn.next {
  right: .5rem;
}

.rito-card .rito-carousel-dots {
  position: absolute;
  bottom: .5rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: .25rem;
}

.rito-card .rito-carousel-dots > span {
  width: .4rem;
  height: .4rem;
  border-radius: 9999px;
  background: #d1d5db;
  opacity: .8;
}

.rito-card .rito-carousel-dots > span.active {
  background: #111827;
  opacity: 1;
}
.vv-actions{ position:absolute; right:18px; top:50%; transform:translateY(-50%); display:grid; gap:14px; }
.vv-btn{ width:50px; height:50px; border-radius:50%; display:grid; place-items:center; background:rgba(0,0,0,.55); border:1px solid rgba(255,255,255,.28); color:#fff; }
.vv-bottom{ position:absolute; left:18px; right:18px; bottom:14px; color:#fff; display:grid; grid-template-columns:1fr auto; gap:12px; }
.vv-progress{ position:absolute; left:18px; right:18px; bottom:8px; height:6px; border-radius:999px; background:rgba(255,255,255,.25); overflow:hidden; cursor:pointer; }
.vv-progress .bar{ height:100%; width:0%; background:#4cc9f0; }

/* Rito gallery */
.rito-card .rito-gallery {
  position: relative;
  display: grid;
  grid-auto-flow: dense;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-auto-rows: minmax(120px, 1fr);
  gap: 6px;
  border-radius: 18px;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.25), rgba(15, 23, 42, 0.75));
  padding: 6px;
}

.rito-card .rito-gallery[data-count="1"] {
  grid-template-columns: 1fr;
}

.rito-card .rito-gallery[data-count="2"] {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.rito-card .rito-gallery[data-count="3"] {
  grid-template-columns: 2fr 1fr;
  grid-template-rows: repeat(2, minmax(0, 1fr));
}

.rito-card .rito-gallery[data-count="3"] .rito-gallery__cell:nth-child(1) {
  grid-row: span 2;
}

.rito-card .rito-gallery[data-count="4"] {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-rows: repeat(2, minmax(0, 1fr));
}

.rito-card .rito-gallery__cell {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.16);
  background: rgba(15, 23, 42, 0.55);
  cursor: pointer;
  display: block;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.rito-card .rito-gallery__cell::before {
  content: '';
  display: block;
  padding-bottom: 100%;
}

.rito-card .rito-gallery[data-count="3"] .rito-gallery__cell:nth-child(1)::before {
  padding-bottom: 200%;
}

.rito-card .rito-gallery__cell > img,
.rito-card .rito-gallery__cell > video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.rito-card .rito-gallery__cell:focus-visible,
.rito-card .rito-gallery__cell:hover {
  outline: none;
  transform: translateY(-2px);
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.45);
  border-color: rgba(148, 163, 184, 0.35);
}

.rito-card .rito-gallery__overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(15, 23, 42, 0.72);
  color: #f8fafc;
  font-size: clamp(1.6rem, 4vw, 2.6rem);
  font-weight: 700;
  letter-spacing: 0.08em;
}

.rito-card .rito-gallery__chip {
  position: absolute;
  top: 12px;
  left: 12px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.75);
  color: #e2e8f0;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.45);
}

.rito-card .rito-gallery__chip-icon {
  font-size: 0.9rem;
}

.rito-card .rito-gallery__chip-label {
  line-height: 1;
}

@media (min-width: 768px) {
  .rito-card .rito-gallery {
    grid-auto-rows: minmax(160px, 1fr);
    gap: 8px;
    padding: 10px;
  }
}

/* Rito viewer */
.rito-viewer {
  position: fixed;
  inset: 0;
  display: none;
  place-items: center;
  padding: clamp(16px, 5vw, 40px);
  background: rgba(15, 23, 42, 0.72);
  z-index: 1050;
}

.rito-viewer.is-open {
  display: grid;
}

body.rito-viewer-open {
  overflow: hidden;
}

.rito-viewer__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.65);
}

.rito-viewer__dialog {
  position: relative;
  z-index: 1;
  width: min(960px, 100%);
  background: rgba(15, 23, 42, 0.92);
  border: 1px solid rgba(148, 163, 184, 0.25);
  border-radius: 26px;
  box-shadow: 0 28px 68px rgba(15, 23, 42, 0.55);
  display: grid;
  grid-template-rows: auto 1fr auto;
  padding: clamp(16px, 4vw, 28px);
  color: #f8fafc;
  gap: clamp(16px, 3vw, 24px);
}

.rito-viewer__stage {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: clamp(12px, 3vw, 24px);
  align-items: center;
}

.rito-viewer__actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(12px, 3vw, 24px);
}

.rito-viewer__vote {
  display: flex;
  align-items: center;
  gap: 12px;
}

.rito-viewer__vote-btn {
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: none;
  background: rgba(59, 130, 246, 0.18);
  color: #f8fafc;
  font-size: 1.35rem;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

.rito-viewer__vote-btn.is-active {
  background: rgba(59, 130, 246, 0.38);
}

.rito-viewer__vote-btn:hover,
.rito-viewer__vote-btn:focus-visible {
  outline: none;
  background: rgba(37, 99, 235, 0.75);
  transform: translateY(-1px);
}

.rito-viewer__vote-count {
  font-weight: 600;
  font-size: 1.1rem;
  color: #e2e8f0;
}

.rito-viewer__buttons {
  display: flex;
  align-items: center;
  gap: clamp(10px, 2.5vw, 18px);
}

.rito-viewer__action-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: none;
  border-radius: 999px;
  padding: 10px 18px;
  background: rgba(15, 23, 42, 0.55);
  color: #f8fafc;
  font-size: 0.95rem;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

.rito-viewer__action-btn:hover,
.rito-viewer__action-btn:focus-visible {
  outline: none;
  background: rgba(96, 165, 250, 0.55);
  transform: translateY(-1px);
}

.rito-viewer__action-btn span {
  display: inline-block;
  min-width: 1.5em;
  text-align: center;
}

.rito-viewer__media {
  position: relative;
  border-radius: 20px;
  background: rgba(15, 23, 42, 0.7);
  display: grid;
  place-items: center;
  min-height: clamp(240px, 60vh, 600px);
  overflow: hidden;
}

.rito-viewer__media img,
.rito-viewer__media video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000;
}

.rito-viewer__nav {
  width: 48px;
  height: 48px;
  border-radius: 999px;
  border: none;
  background: rgba(30, 64, 175, 0.7);
  color: #f8fafc;
  display: grid;
  place-items: center;
  font-size: 1.6rem;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

.rito-viewer__nav:hover,
.rito-viewer__nav:focus-visible {
  outline: none;
  background: rgba(37, 99, 235, 0.85);
  transform: translateY(-1px);
}

.rito-viewer__nav:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.rito-viewer__close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  border: none;
  background: rgba(15, 23, 42, 0.75);
  color: #f8fafc;
  font-size: 1.5rem;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: background 0.2s ease, transform 0.2s ease;
}

.rito-viewer__close:hover,
.rito-viewer__close:focus-visible {
  outline: none;
  background: rgba(239, 68, 68, 0.85);
  transform: scale(1.05);
}

.rito-viewer__dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  padding: 0 clamp(8px, 2.5vw, 16px);
}

.rito-viewer__dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  border: none;
  background: rgba(148, 163, 184, 0.45);
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease;
}

.rito-viewer__dot.is-active {
  background: #38bdf8;
  transform: scale(1.1);
}

.rito-viewer__dot:hover,
.rito-viewer__dot:focus-visible {
  outline: none;
  background: #60a5fa;
  transform: scale(1.08);
}

/* --- Vito Viewer page --- */
:root {
  --viewer-header-height: 72px;
}

body.viewer-active {
  overflow: hidden;
}

.viewer-header {
  position: fixed;
  inset: 0 0 auto 0;
  height: var(--viewer-header-height);
  display: flex;
  align-items: center;
  background: rgba(5, 11, 22, 0.92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  z-index: 50;
}

.viewer-header .container {
  width: 100%;
}

.vito-viewer-page {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  padding-bottom: 0;
  --vito-comments-width: min(420px, 38vw);
  --vito-nav-offset: 0px;
  --vito-surface: rgba(12, 18, 34, 0.72);
  --vito-surface-strong: rgba(7, 11, 21, 0.92);
  --vito-outline: rgba(148, 163, 184, 0.32);
  --vito-accent: #38bdf8;
  --vito-accent-2: #22d3ee;
  --vito-glow: rgba(56, 189, 248, 0.35);
  --vito-card-bg: #070b15;
  background:
    radial-gradient(120% 120% at 10% 0%, rgba(56, 189, 248, 0.12), rgba(2, 6, 23, 0.15) 45%),
    radial-gradient(90% 90% at 85% 15%, rgba(34, 211, 238, 0.1), rgba(2, 6, 23, 0) 55%),
    linear-gradient(165deg, #050913 0%, #03060f 55%, #02040a 100%);
}

.vito-viewer-page .navbar.feed-navbar {
  height: auto;
  min-height: 0;
  padding-top: 0;
  padding-bottom: 0;
}

.vito-viewer-page .feed-navbar__icon svg,
.vito-viewer-page .feed-navbar__menu-icon svg,
.vito-viewer-page .feed-search__icon svg,
.vito-viewer-page #notifBtn svg {
  width: 16px;
  height: 16px;
  display: block;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.vito-viewer-page .vito-viewer-root {
  flex: 1 1 auto;
  margin-top: 0;
  height: auto;
  min-height: 0;
  padding-right: 0;
  transition: padding-right 0.3s ease;
}

.vito-viewer-page .vito-slide {
  height: 100%;
}

.vito-comments-open .vito-viewer-root {
  padding-right: var(--vito-comments-width);
}

.vito-comments-panel {
  position: fixed;
  top: var(--vito-nav-offset, 0px);
  right: 0;
  height: calc(100vh - var(--vito-nav-offset, 0px));
  width: var(--vito-comments-width);
  background: rgba(8, 13, 24, 0.98);
  border-left: 1px solid rgba(148, 163, 184, 0.2);
  box-shadow: -14px 0 36px rgba(2, 6, 23, 0.65);
  display: flex;
  flex-direction: column;
  z-index: 40;
}

.vito-comments-panel[hidden] {
  display: none;
}

.vito-comments-panel__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 18px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.2);
}

.vito-comments-panel__title {
  margin: 0;
  font-size: 1.05rem;
}

.vito-comments-panel__close {
  border: none;
  background: rgba(148, 163, 184, 0.2);
  color: #e2e8f0;
  width: 32px;
  height: 32px;
  border-radius: 999px;
  cursor: pointer;
}

.vito-comments-panel__body {
  padding: 16px 18px;
  overflow-y: auto;
  display: grid;
  gap: 12px;
  flex: 1 1 auto;
}

.vito-comments-panel__comment {
  background: rgba(15, 23, 42, 0.75);
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 14px;
  padding: 10px 12px;
  color: #e2e8f0;
}

.vito-comments-panel__meta {
  font-size: 0.85rem;
  color: rgba(148, 163, 184, 0.9);
  margin-bottom: 6px;
}

.vito-comments-panel__footer {
  display: flex;
  gap: 10px;
  padding: 14px 18px;
  border-top: 1px solid rgba(148, 163, 184, 0.2);
}

.vito-comments-panel__footer input {
  flex: 1 1 auto;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.35);
  background: rgba(15, 23, 42, 0.8);
  color: #e2e8f0;
  padding: 10px 14px;
}

.vito-comments-panel__footer button {
  border: none;
  border-radius: 999px;
  padding: 10px 16px;
  background: #38bdf8;
  color: #02151f;
  font-weight: 600;
  cursor: pointer;
}

.vito-scroll-arrows {
  position: fixed;
  right: 20px;
  top: calc(50% + var(--vito-nav-offset, 0px) / 2);
  transform: translateY(-50%);
  display: grid;
  gap: 10px;
  z-index: 35;
}

.vito-comments-open .vito-scroll-arrows {
  right: calc(var(--vito-comments-width) + 20px);
}

.vito-scroll-arrow {
  width: 42px;
  height: 42px;
  border-radius: 999px;
  border: 1px solid var(--vito-outline);
  background: rgba(12, 18, 34, 0.85);
  color: #e2e8f0;
  cursor: pointer;
  display: grid;
  place-items: center;
  font-size: 0;
  line-height: 0;
  backdrop-filter: blur(12px);
  box-shadow: 0 12px 26px rgba(2, 6, 23, 0.45);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.vito-scroll-arrow:hover:not(:disabled),
.vito-scroll-arrow:focus-visible:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 16px 30px rgba(2, 6, 23, 0.5);
  border-color: rgba(56, 189, 248, 0.55);
}

.vito-scroll-arrow:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.vito-scroll-arrow__icon svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
}

@media (max-width: 900px) {
  .vito-comments-panel {
    width: 100%;
  }

  .vito-comments-open .vito-viewer-root {
    padding-right: 0;
  }

  .vito-scroll-arrows {
    display: none;
  }
}

.viewer-nav {
  display: flex;
  align-items: center;
  gap: 16px;
  justify-content: space-between;
}

.viewer-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  text-transform: none;
  padding: 10px 18px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.16);
  transition: background 0.2s ease, border-color 0.2s ease;
}

.viewer-back:hover,
.viewer-back:focus-visible {
  background: rgba(255, 255, 255, 0.18);
  border-color: rgba(255, 255, 255, 0.28);
}

.viewer-logo img {
  height: 36px;
  width: auto;
}

.viewer-logo {
  display: inline-flex;
  align-items: baseline;
  gap: 4px;
  font-weight: 700;
  letter-spacing: -0.02em;
  font-size: 1.4rem;
  color: #fff;
  text-decoration: none;
}

.viewer-logo-mark {
  background: linear-gradient(135deg, #4cc9f0 0%, #4361ee 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.viewer-logo-word {
  opacity: 0.88;
}

.viewer-spacer {
  flex: 1 1 auto;
}

.vito-viewer-root {
  position: relative;
  margin-top: var(--viewer-header-height);
  height: calc(100vh - var(--viewer-header-height));
  overflow-y: auto;
  scroll-snap-type: y mandatory;
  -webkit-overflow-scrolling: touch;
  background:
    radial-gradient(120% 120% at 15% 10%, rgba(56, 189, 248, 0.18), rgba(3, 7, 16, 0.9) 55%),
    radial-gradient(80% 80% at 85% 20%, rgba(34, 211, 238, 0.12), rgba(3, 7, 16, 0) 60%),
    linear-gradient(180deg, rgba(7, 11, 21, 0.98), rgba(2, 6, 23, 0.98));
  touch-action: pan-y;
  overscroll-behavior-y: contain;
}

.vito-viewer-root::-webkit-scrollbar {
  width: 6px;
}

.vito-viewer-root::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.2);
  border-radius: 999px;
}

.vito-slide {
  scroll-snap-align: start;
  scroll-snap-stop: always;
  height: calc(100vh - var(--viewer-header-height));
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px 16px 48px;
}

.vito-slide > .vito-card {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: min(calc(82vh * 9 / 16), 430px, 92vw);
  max-height: min(85vh, calc(100% - 24px));
  aspect-ratio: 9 / 16;
  border-radius: 24px;
  overflow: visible;
  z-index: 0;
  border: 1px solid var(--vito-outline);
  background: linear-gradient(160deg, rgba(12, 18, 34, 0.96), rgba(3, 6, 14, 0.98));
  box-shadow: 0 30px 70px rgba(2, 6, 23, 0.65), 0 0 0 1px rgba(56, 189, 248, 0.12);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.vito-slide > .vito-card::before {
  content: '';
  position: absolute;
  inset: -16px;
  border-radius: 28px;
  background: radial-gradient(60% 60% at 50% 20%, rgba(56, 189, 248, 0.32), rgba(2, 6, 23, 0) 70%);
  filter: blur(18px);
  opacity: 0.65;
  z-index: -1;
  pointer-events: none;
}

.vito-slide.is-active > .vito-card {
  transform: translateY(-2px);
  border-color: rgba(56, 189, 248, 0.45);
  box-shadow: 0 34px 84px rgba(2, 6, 23, 0.72), 0 0 38px rgba(56, 189, 248, 0.22);
}

.vito-slide > .vito-card video,
.vito-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
  transition: transform 0.45s ease;
  background: #05060b;
}

.vito-slide.is-active .vito-video {
  transform: scale(1.012);
}

.vito-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 32px 24px 36px;
  pointer-events: none;
  color: #fff;
  z-index: 1;
  border-radius: inherit;
  overflow: hidden;
}

.vito-overlay::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(2, 6, 23, 0) 0%, rgba(2, 6, 23, 0.32) 38%, rgba(2, 6, 23, 0.88) 100%);
  border-radius: inherit;
  pointer-events: none;
}

.vito-overlay__top {
  position: absolute;
  top: 16px;
  left: 16px;
  right: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  pointer-events: auto;
  z-index: 2;
}

.vito-top-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 999px;
  padding: 8px 12px;
  background: var(--vito-surface);
  border: 1px solid var(--vito-outline);
  color: #e2e8f0;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  backdrop-filter: blur(12px);
  box-shadow: 0 10px 24px rgba(2, 6, 23, 0.35);
}

.vito-btn__icon {
  display: inline-flex;
  width: 18px;
  height: 18px;
}

.vito-btn__icon svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  fill: currentColor;
  stroke-width: 1.6;
}

.vito-btn__label {
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.vito-top-btn:focus-visible,
.vito-top-btn:hover {
  background: var(--vito-surface-strong);
  border-color: rgba(56, 189, 248, 0.4);
}

.vito-overlay__bottom {
  position: relative;
  z-index: 1;
  width: 100%;
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  gap: 20px;
  pointer-events: auto;
}

.vito-scrub {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 18px;
  height: 4px;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.35);
  overflow: hidden;
  pointer-events: none;
  z-index: 2;
}

.vito-scrub__fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #22d3ee 0%, #38bdf8 55%, #3b82f6 100%);
  border-radius: inherit;
  transition: width 0.1s linear;
}


.vito-overlay__info {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: min(68%, 420px);
  text-shadow: 0 10px 26px rgba(0, 0, 0, 0.55);
}

.vito-profile-row {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.vito-profile {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.vito-profile__avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(255, 255, 255, 0.6);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.45);
}

.vito-profile__meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
  line-height: 1.2;
}

.vito-profile__handle {
  font-weight: 700;
  font-size: 1rem;
}

.vito-profile__name {
  font-size: 0.85rem;
  opacity: 0.9;
}

.vito-profile__follow {
  backdrop-filter: blur(18px);
  padding: 8px 18px;
  border-radius: 999px;
  font-weight: 600;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.35);
}

.vito-profile__caption {
  font-size: 0.98rem;
  line-height: 1.35;
  max-width: clamp(220px, 72vw, 460px);
  overflow-wrap: anywhere;
}

.vito-action-stack {
  position: absolute;
  right: calc(-1 * clamp(60px, 6vw, 92px));
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  pointer-events: auto;
  text-shadow: 0 10px 24px rgba(0, 0, 0, 0.55);
}

.vito-action-stack__votes {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.vito-action-stack__action {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  color: inherit;
}

.vito-action-stack__btn {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: 1px solid var(--vito-outline);
  background: var(--vito-surface);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 0;
  line-height: 0;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
  backdrop-filter: blur(16px);
  box-shadow: 0 12px 24px rgba(2, 6, 23, 0.35);
}

.vito-action-stack__btn:hover,
.vito-action-stack__btn:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 16px 30px rgba(2, 6, 23, 0.4);
  border-color: rgba(56, 189, 248, 0.55);
}

.vito-action-stack__btn svg {
  width: 22px;
  height: 22px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
}

.vito-action-stack__count,
.vito-action-stack__label {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.vito-action-stack__label {
  text-transform: uppercase;
  opacity: 0.85;
}

.vito-action-stack__action.is-copied .vito-action-stack__label::after {
  content: ' copied!';
  text-transform: none;
  letter-spacing: 0.01em;
  font-weight: 500;
  opacity: 0.9;
}

.vito-vote-btn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid var(--vito-outline);
  background: var(--vito-surface);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0;
  line-height: 0;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease, background 0.18s ease;
  backdrop-filter: blur(16px);
  box-shadow: 0 10px 22px rgba(2, 6, 23, 0.35);
}

.vito-vote-btn:hover,
.vito-vote-btn:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 14px 28px rgba(2, 6, 23, 0.4);
  border-color: rgba(56, 189, 248, 0.55);
}

.vito-vote-btn.active {
  background: linear-gradient(140deg, #38bdf8 0%, #0ea5e9 100%);
  border-color: rgba(56, 189, 248, 0.9);
  color: #fff;
}

.vito-vote-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.vito-vote-score {
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
  text-shadow: 0 10px 24px rgba(0, 0, 0, 0.55);
}

.vito-vote-btn svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
}

.vito-volume-btn {
  font-size: 1.1rem;
}

.vito-volume-btn__icon {
  font-size: 1.1rem;
}

.vito-play-indicator {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  pointer-events: none;
  opacity: 0;
  transform: scale(0.9);
  transition: opacity 0.2s ease, transform 0.2s ease;
  z-index: 2;
}

.vito-play-indicator.is-visible {
  opacity: 1;
}

.vito-play-indicator.is-active {
  transform: scale(1);
}

.vito-play-indicator__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 86px;
  height: 86px;
  border-radius: 50%;
  background: rgba(12, 16, 28, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.28);
  backdrop-filter: blur(18px);
  font-size: 2.4rem;
  color: #fff;
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.45);
}

.vito-play-indicator__icon svg {
  width: 36px;
  height: 36px;
  stroke: currentColor;
  fill: currentColor;
  stroke-width: 1.6;
}

@media (min-width: 768px) {
  .vito-overlay {
    padding: 42px 36px 56px;
  }
}

@media (max-width: 1024px) {
  .vito-slide > .vito-card {
    overflow: hidden;
  }

  .vito-action-stack {
    right: 16px;
  }
}

@media (max-width: 768px) {
  .vito-slide {
    padding: 32px 0 48px;
  }
  .vito-slide > .vito-card {
    width: 100vw;
    max-width: 100vw;
    height: calc(100vw * 16 / 9);
    max-height: 100vh;
    border-radius: 0;
    box-shadow: 0 18px 48px rgba(0, 0, 0, 0.55);
  }

  .vito-overlay::before {
    border-radius: 0;
  }

  .vito-profile__caption {
    max-width: 90%;
  }

  .vito-action-stack {
    right: 16px;
    top: auto;
    bottom: clamp(110px, 22vh, 200px);
    transform: none;
  }
}

@media (max-width: 480px) {
  .vito-overlay {
    padding: 28px 18px 40px;
  }

  .vito-overlay__bottom {
    gap: 16px;
  }

  .vito-overlay__info {
    max-width: 65%;
  }

  .vito-action-stack__btn {
    width: 52px;
    height: 52px;
  }
}

