/* ═══════════════════════════════════════════════════
   MOOVE – Estilos globales
   ═══════════════════════════════════════════════════ */

:root {
  --bg-base:      #0a0a0a;
  --bg-elevated:  #141414;
  --bg-surface:   #1e1e1e;
  --bg-hover:     #2a2a2a;
  --text-1:       #ffffff;
  --text-2:       #a3a3a3;
  --text-3:       #525252;
  --accent:       #c084fc;
  --accent-2:     #f472b6;
  --accent-grad:  linear-gradient(135deg, #a855f7, #ec4899);
  --danger:       #ef4444;
  --success:      #22c55e;
  --border:       rgba(255,255,255,0.08);
  --radius-sm:    6px;
  --radius-md:    10px;
  --radius-lg:    16px;
  --radius-xl:    24px;
  --shadow-card:  0 4px 24px rgba(0,0,0,0.6);
  --shadow-modal: 0 24px 80px rgba(0,0,0,0.8);
  --header-h:     60px;
  --t:            0.2s ease;
}

/* ── Reset ────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', system-ui, sans-serif;
  background: var(--bg-base);
  color: var(--text-1);
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a  { color: inherit; text-decoration: none; }
button { cursor: pointer; border: none; background: none; color: inherit; font: inherit; }
input, textarea { font: inherit; }

/* ── Scrollbar ────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--bg-hover); border-radius: 99px; }

/* ═══════════════════════════════════════════════════
   HEADER
   ═══════════════════════════════════════════════════ */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: var(--header-h);
  background: linear-gradient(to bottom, rgba(10,10,10,0.98) 0%, rgba(10,10,10,0) 100%);
  transition: background var(--t);
}
.site-header.solid { background: rgba(10,10,10,0.97); backdrop-filter: blur(12px); }

.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 100%; padding: 0 40px;
}
.header-left  { display: flex; align-items: center; gap: 32px; }
.header-right { display: flex; align-items: center; gap: 12px; }

.site-logo {
  height: 28px; width: auto;
  filter: brightness(0) invert(1);
  transition: opacity var(--t);
}
.site-logo:hover { opacity: .8; }

.logo-link { flex-shrink: 0; }

.btn-hamburger { display: none; }

/* Primary nav */
.primary-nav { display: flex; gap: 4px; }
.nav-item {
  padding: 6px 12px; border-radius: var(--radius-sm);
  font-size: 0.875rem; font-weight: 500; color: var(--text-2);
  transition: color var(--t), background var(--t);
}
.nav-item:hover   { color: var(--text-1); background: var(--bg-hover); }
.nav-item.active  { color: var(--text-1); }

/* Icon buttons */
.btn-icon {
  width: 36px; height: 36px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--text-2); transition: background var(--t), color var(--t);
}
.btn-icon:hover { background: var(--bg-hover); color: var(--text-1); }

/* User avatar */
.user-avatar {
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--accent-grad);
  display: flex; align-items: center; justify-content: center;
  font-size: .75rem; font-weight: 700; cursor: pointer;
  flex-shrink: 0;
}

/* ═══════════════════════════════════════════════════
   SEARCH OVERLAY
   ═══════════════════════════════════════════════════ */
.search-overlay {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(0,0,0,0.92); backdrop-filter: blur(16px);
  display: flex; align-items: flex-start; justify-content: center;
  padding-top: 80px;
  opacity: 0; pointer-events: none;
  transition: opacity var(--t);
}
.search-overlay.open { opacity: 1; pointer-events: all; }

.search-inner { width: 100%; max-width: 680px; padding: 0 24px; position: relative; }

.btn-search-close {
  position: absolute; right: 24px; top: -48px;
  width: 40px; height: 40px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--bg-surface); color: var(--text-2);
}
.btn-search-close:hover { color: var(--text-1); }

.search-input {
  width: 100%; padding: 16px 20px;
  background: var(--bg-surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); color: var(--text-1); font-size: 1rem;
  outline: none; transition: border-color var(--t);
}
.search-input:focus { border-color: var(--accent); }
.search-input::placeholder { color: var(--text-3); }

.search-results { margin-top: 12px; display: flex; flex-direction: column; gap: 8px; }

.search-item {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 14px; border-radius: var(--radius-md);
  background: var(--bg-surface); cursor: pointer;
  transition: background var(--t);
}
.search-item:hover { background: var(--bg-hover); }
.search-item-thumb {
  width: 44px; height: 78px; border-radius: var(--radius-sm);
  object-fit: cover; flex-shrink: 0; background: var(--bg-hover);
}
.search-item-info { min-width: 0; }
.search-item-title { font-size: .875rem; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.search-item-meta  { font-size: .75rem; color: var(--text-2); margin-top: 2px; }
.search-empty { text-align: center; color: var(--text-3); padding: 32px 0; font-size: .875rem; }

/* ═══════════════════════════════════════════════════
   MOBILE DRAWER
   ═══════════════════════════════════════════════════ */
.mobile-drawer {
  position: fixed; top: 0; left: 0; bottom: 0; z-index: 300;
  width: 260px; background: var(--bg-elevated);
  border-right: 1px solid var(--border);
  transform: translateX(-100%); transition: transform 0.3s ease;
  overflow-y: auto;
}
.mobile-drawer.open { transform: translateX(0); }

.drawer-backdrop {
  position: fixed; inset: 0; z-index: 299;
  background: rgba(0,0,0,0.5); backdrop-filter: blur(4px);
  opacity: 0; pointer-events: none; transition: opacity var(--t);
}
.drawer-backdrop.open { opacity: 1; pointer-events: all; }

.drawer-body { padding: 32px 20px; }
.drawer-logo { height: 24px; filter: brightness(0) invert(1); margin-bottom: 32px; }
.drawer-nav  { display: flex; flex-direction: column; gap: 4px; }
.drawer-item {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 14px; border-radius: var(--radius-md);
  font-size: .9rem; font-weight: 500; color: var(--text-2);
  transition: background var(--t), color var(--t);
}
.drawer-item:hover, .drawer-item.active { background: var(--bg-hover); color: var(--text-1); }

/* ═══════════════════════════════════════════════════
   VIEWS / PAGES
   ═══════════════════════════════════════════════════ */
.site-main { padding-top: var(--header-h); min-height: 100vh; }
.page-view  { display: none; }
.page-view.active { display: block; }

/* ═══════════════════════════════════════════════════
   HERO SECTION
   ═══════════════════════════════════════════════════ */
.hero-section {
  position: relative; height: 70vh; min-height: 420px; max-height: 720px;
  overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center top;
  filter: brightness(0.5);
}
.hero-grad {
  position: absolute; inset: 0;
  background: linear-gradient(to right, rgba(10,10,10,0.95) 0%, rgba(10,10,10,0.4) 60%, transparent 100%),
              linear-gradient(to top,   rgba(10,10,10,1)    0%, transparent 60%);
}
.hero-content {
  position: relative; z-index: 1;
  height: 100%; display: flex; flex-direction: column;
  justify-content: flex-end; padding: 0 60px 56px;
  max-width: 540px;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--accent-grad); color: #fff;
  font-size: .7rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  padding: 4px 10px; border-radius: 99px; margin-bottom: 14px; width: fit-content;
}
.hero-title {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 800; line-height: 1.15; margin-bottom: 10px;
}
.hero-desc {
  font-size: .9rem; color: rgba(255,255,255,0.75); line-height: 1.6;
  max-width: 400px; margin-bottom: 24px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.hero-actions { display: flex; gap: 12px; align-items: center; }
.btn-primary {
  display: flex; align-items: center; gap: 8px;
  padding: 11px 24px; border-radius: var(--radius-md);
  background: var(--text-1); color: #0a0a0a;
  font-size: .875rem; font-weight: 700;
  transition: background var(--t), transform var(--t);
}
.btn-primary:hover { background: rgba(255,255,255,.85); transform: scale(1.02); }
.btn-secondary {
  display: flex; align-items: center; gap: 8px;
  padding: 11px 24px; border-radius: var(--radius-md);
  background: rgba(255,255,255,0.15); color: #fff; backdrop-filter: blur(4px);
  font-size: .875rem; font-weight: 600;
  transition: background var(--t);
}
.btn-secondary:hover { background: rgba(255,255,255,0.25); }
.hero-author {
  margin-top: 16px; font-size: .8rem; color: var(--text-2);
}
.hero-author strong { color: var(--text-1); }

/* ═══════════════════════════════════════════════════
   CATALOG – CATEGORY ROWS
   ═══════════════════════════════════════════════════ */
.catalog { padding-bottom: 48px; }

.cat-row { margin-bottom: 8px; }

.cat-row-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 24px 60px 12px;
}
.cat-row-name {
  font-size: 1.1rem; font-weight: 700;
  display: flex; align-items: center; gap: 8px;
}
.cat-row-name .cat-icon { font-size: 1rem; }

.btn-see-more {
  font-size: .8rem; font-weight: 600; color: var(--accent);
  display: flex; align-items: center; gap: 4px;
  padding: 6px 12px; border-radius: var(--radius-sm);
  transition: background var(--t);
}
.btn-see-more:hover { background: rgba(192,132,252,0.1); }
.btn-see-more svg { transition: transform var(--t); }
.btn-see-more:hover svg { transform: translateX(3px); }

/* Horizontal scrollable row */
.cat-row-scroll {
  display: flex; gap: 12px;
  overflow-x: auto; scroll-snap-type: x mandatory;
  padding: 4px 60px 16px;
  scrollbar-width: none; -ms-overflow-style: none;
}
.cat-row-scroll::-webkit-scrollbar { display: none; }

/* ═══════════════════════════════════════════════════
   VIDEO CARD
   ═══════════════════════════════════════════════════ */
.video-card {
  flex: 0 0 auto; width: 170px;
  scroll-snap-align: start; border-radius: var(--radius-md);
  overflow: hidden; cursor: pointer; position: relative;
  background: var(--bg-surface);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.video-card:hover { transform: scale(1.05); box-shadow: var(--shadow-card); z-index: 5; }

.card-thumb-wrap {
  position: relative; aspect-ratio: 9/16; overflow: hidden;
}
.card-thumb {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.4s ease;
}
.video-card:hover .card-thumb { transform: scale(1.06); }

.card-play-overlay {
  position: absolute; inset: 0;
  background: rgba(0,0,0,0.3);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transition: opacity var(--t);
}
.video-card:hover .card-play-overlay { opacity: 1; }
.card-play-circle {
  width: 48px; height: 48px; border-radius: 50%;
  background: rgba(255,255,255,0.9);
  display: flex; align-items: center; justify-content: center;
  transform: scale(0.8); transition: transform var(--t);
}
.video-card:hover .card-play-circle { transform: scale(1); }
.card-play-circle svg { color: #0a0a0a; margin-left: 3px; }

.card-duration {
  position: absolute; bottom: 8px; right: 8px;
  background: rgba(0,0,0,0.75); color: #fff;
  font-size: .68rem; font-weight: 600; padding: 2px 6px; border-radius: 4px;
}

.card-info { padding: 10px; }
.card-title {
  font-size: .8rem; font-weight: 600; line-height: 1.3;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.card-author { font-size: .72rem; color: var(--text-2); margin-top: 4px; }
.card-views  { font-size: .7rem; color: var(--text-3); margin-top: 2px; }

/* ═══════════════════════════════════════════════════
   CATEGORY PAGE – FULL GRID
   ═══════════════════════════════════════════════════ */
.cat-page-header {
  display: flex; align-items: center; gap: 20px;
  padding: 32px 60px 20px;
}
.btn-back {
  display: flex; align-items: center; gap: 6px;
  font-size: .875rem; font-weight: 500; color: var(--text-2);
  padding: 8px 14px; border-radius: var(--radius-sm);
  transition: background var(--t), color var(--t);
}
.btn-back:hover { background: var(--bg-hover); color: var(--text-1); }

.cat-page-title { font-size: 1.6rem; font-weight: 800; }

.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: 16px; padding: 0 60px 60px;
}

/* ═══════════════════════════════════════════════════
   DESKTOP VIDEO MODAL
   ═══════════════════════════════════════════════════ */
.video-modal {
  position: fixed; inset: 0; z-index: 500;
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
  opacity: 0; pointer-events: none;
  transition: opacity 0.25s ease;
}
.video-modal.open { opacity: 1; pointer-events: all; }

.modal-backdrop {
  position: absolute; inset: 0;
  background: rgba(0,0,0,0.85); backdrop-filter: blur(8px);
}
.modal-box {
  position: relative; z-index: 1;
  display: flex; gap: 0;
  background: var(--bg-elevated);
  border-radius: var(--radius-xl);
  overflow: hidden; max-height: 90vh;
  box-shadow: var(--shadow-modal);
  width: 100%; max-width: 900px;
  transform: scale(0.95); transition: transform 0.25s ease;
}
.video-modal.open .modal-box { transform: scale(1); }

.modal-close-btn {
  position: absolute; top: 14px; right: 14px; z-index: 10;
  width: 36px; height: 36px; border-radius: 50%;
  background: rgba(0,0,0,0.5); color: var(--text-2);
  display: flex; align-items: center; justify-content: center;
  transition: background var(--t), color var(--t);
}
.modal-close-btn:hover { background: rgba(255,255,255,0.1); color: var(--text-1); }

/* Player column */
.modal-player-col {
  flex: 0 0 auto;
  width: min(340px, 42%);
}
.player-wrap {
  position: relative; height: 100%;
  background: #000; display: flex; flex-direction: column;
}
.modal-video-el {
  flex: 1; width: 100%; object-fit: cover; min-height: 0;
  display: block; cursor: pointer;
}

/* Center overlay (flash on play/pause) */
.player-center-overlay {
  position: absolute; inset: 0; pointer-events: none;
  display: flex; align-items: center; justify-content: center;
}
.center-play-anim {
  width: 72px; height: 72px; border-radius: 50%;
  background: rgba(0,0,0,0.5);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transform: scale(1); pointer-events: none;
  transition: none;
}
.center-play-anim.flash {
  animation: centerFlash 0.4s ease forwards;
}
@keyframes centerFlash {
  0%   { opacity: 1; transform: scale(0.7); }
  50%  { opacity: 1; transform: scale(1.1); }
  100% { opacity: 0; transform: scale(1.2); }
}

/* Product shelf */
.product-shelf {
  position: absolute; bottom: 52px; left: 0; right: 0;
  background: rgba(10,10,10,0.85); backdrop-filter: blur(8px);
  border-top: 1px solid var(--border);
  transition: max-height 0.3s ease;
  overflow: hidden; max-height: 50px;
}
.product-shelf.expanded { max-height: 140px; }
.shelf-toggle {
  display: flex; align-items: center; gap: 6px; width: 100%;
  padding: 10px 12px; font-size: .72rem; color: var(--text-2);
  font-weight: 600;
}
.shelf-toggle:hover { color: var(--text-1); }
.shelf-chevron { margin-left: auto; transition: transform var(--t); }
.product-shelf.expanded .shelf-chevron { transform: rotate(180deg); }

.shelf-products {
  display: flex; gap: 8px; padding: 0 12px 12px;
  overflow-x: auto; scrollbar-width: none;
}
.shelf-products::-webkit-scrollbar { display: none; }

.shelf-prod-item {
  flex: 0 0 auto; width: 62px; cursor: pointer;
  border-radius: var(--radius-sm); overflow: hidden; position: relative;
  background: var(--bg-surface);
  transition: transform var(--t);
}
.shelf-prod-item:hover { transform: scale(1.05); }
.shelf-prod-img {
  width: 62px; height: 62px; object-fit: cover;
  background: var(--bg-hover);
}
.shelf-prod-heart {
  position: absolute; top: 3px; right: 3px;
  width: 18px; height: 18px; border-radius: 50%;
  background: rgba(0,0,0,0.6);
  display: flex; align-items: center; justify-content: center;
}
.shelf-prod-heart svg { width: 9px; height: 9px; color: #fff; }
.shelf-prod-tooltip {
  position: absolute; bottom: 100%; left: 50%; transform: translateX(-50%);
  background: var(--bg-hover); color: var(--text-1);
  font-size: .65rem; font-weight: 500; padding: 4px 8px;
  border-radius: 4px; white-space: nowrap; margin-bottom: 4px;
  opacity: 0; pointer-events: none; transition: opacity var(--t);
  z-index: 10;
}
.shelf-prod-item:hover .shelf-prod-tooltip { opacity: 1; }

/* Player controls */
.player-controls {
  position: absolute; bottom: 0; left: 0; right: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.95), transparent);
  padding: 16px 10px 10px;
}
.progress-wrap { padding: 6px 0; cursor: pointer; }
.progress-track {
  height: 3px; background: rgba(255,255,255,0.2);
  border-radius: 99px; position: relative;
  transition: height var(--t);
}
.progress-wrap:hover .progress-track { height: 5px; }
.progress-buffer {
  position: absolute; top: 0; left: 0; height: 100%;
  background: rgba(255,255,255,0.25); border-radius: 99px;
}
.progress-fill {
  position: absolute; top: 0; left: 0; height: 100%;
  background: var(--accent-grad); border-radius: 99px; width: 0%;
}
.progress-knob {
  position: absolute; top: 50%; right: -6px; transform: translateY(-50%);
  width: 12px; height: 12px; border-radius: 50%; background: var(--text-1);
  opacity: 0; transition: opacity var(--t);
}
.progress-wrap:hover .progress-knob { opacity: 1; }

.controls-row {
  display: flex; align-items: center; gap: 6px; padding-top: 4px;
}
.ctrl-btn {
  width: 28px; height: 28px; border-radius: 4px;
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,0.75); transition: color var(--t), background var(--t);
}
.ctrl-btn:hover { color: #fff; background: rgba(255,255,255,0.1); }

.vol-group { display: flex; align-items: center; gap: 4px; }
.vol-slider {
  width: 64px; height: 4px; appearance: none; -webkit-appearance: none;
  background: rgba(255,255,255,0.3); border-radius: 99px; cursor: pointer; outline: none;
}
.vol-slider::-webkit-slider-thumb {
  appearance: none; -webkit-appearance: none;
  width: 12px; height: 12px; border-radius: 50%; background: #fff; cursor: pointer;
}

.time-display { font-size: .68rem; color: rgba(255,255,255,0.7); margin: 0 4px; flex: 1; }
.ctrl-pip { margin-left: auto; }

/* Info column */
.modal-info-col {
  flex: 1; overflow-y: auto; padding: 28px 28px 28px;
  display: flex; flex-direction: column; gap: 14px;
}

.vid-author {
  display: flex; align-items: center; gap: 10px; flex-shrink: 0;
}
.author-ava {
  width: 38px; height: 38px; border-radius: 50%;
  background: var(--accent-grad);
  display: flex; align-items: center; justify-content: center;
  font-size: .8rem; font-weight: 700; flex-shrink: 0;
}
.author-meta { flex: 1; min-width: 0; }
.author-name  { font-size: .875rem; font-weight: 700; display: block; }
.upload-date  { font-size: .75rem; color: var(--text-2); }
.btn-follow {
  flex-shrink: 0; padding: 6px 14px; border-radius: 99px;
  border: 1.5px solid var(--text-1); font-size: .75rem; font-weight: 600;
  color: var(--text-1); transition: background var(--t), color var(--t);
}
.btn-follow:hover { background: var(--text-1); color: #0a0a0a; }

.vid-title { font-size: 1.05rem; font-weight: 700; line-height: 1.3; }
.vid-desc  { font-size: .85rem; color: var(--text-2); line-height: 1.65; }

.vid-tags  { display: flex; flex-wrap: wrap; gap: 6px; }
.tag-pill  {
  font-size: .72rem; font-weight: 500; color: var(--accent);
  background: rgba(192,132,252,0.1); padding: 3px 10px;
  border-radius: 99px; border: 1px solid rgba(192,132,252,0.2);
}

.vid-stats { font-size: .78rem; color: var(--text-2); display: flex; gap: 8px; align-items: center; }
.stat-dot  { color: var(--text-3); }

/* Action row */
.action-row { display: flex; gap: 8px; flex-wrap: wrap; }
.action-pill {
  display: flex; align-items: center; gap: 6px;
  padding: 8px 14px; border-radius: 99px; font-size: .8rem; font-weight: 600;
  background: var(--bg-surface); border: 1px solid var(--border);
  color: var(--text-2); transition: all var(--t);
}
.action-pill:hover { background: var(--bg-hover); color: var(--text-1); border-color: rgba(255,255,255,0.15); }
.action-pill.active { background: rgba(192,132,252,0.15); color: var(--accent); border-color: rgba(192,132,252,0.3); }

/* Related section */
.related-section { flex: 1; min-height: 0; }
.related-title { font-size: .875rem; font-weight: 700; margin-bottom: 12px; color: var(--text-2); }
.related-list  { display: flex; flex-direction: column; gap: 10px; }
.related-item {
  display: flex; gap: 10px; cursor: pointer; border-radius: var(--radius-sm);
  padding: 6px; transition: background var(--t);
}
.related-item:hover { background: var(--bg-hover); }
.related-thumb {
  width: 52px; height: 92px; border-radius: var(--radius-sm);
  object-fit: cover; flex-shrink: 0; background: var(--bg-hover);
}
.related-info  { min-width: 0; padding-top: 2px; }
.related-item-title  { font-size: .8rem; font-weight: 600; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.related-item-author { font-size: .72rem; color: var(--text-2); margin-top: 4px; }
.related-item-views  { font-size: .7rem; color: var(--text-3); margin-top: 2px; }

/* ═══════════════════════════════════════════════════
   MOBILE FULLSCREEN FEED
   ═══════════════════════════════════════════════════ */
.mobile-feed {
  position: fixed; inset: 0; z-index: 400;
  background: #000;
  transform: translateX(100%); transition: transform 0.3s ease;
}
.mobile-feed.open { transform: translateX(0); }

.feed-back-btn {
  position: absolute; top: 16px; left: 16px; z-index: 10;
  width: 38px; height: 38px; border-radius: 50%;
  background: rgba(0,0,0,0.5); color: #fff;
  display: flex; align-items: center; justify-content: center;
}
.feed-sound-btn {
  position: absolute; top: 16px; right: 16px; z-index: 10;
  width: 38px; height: 38px; border-radius: 50%;
  background: rgba(0,0,0,0.5); color: #fff;
  display: flex; align-items: center; justify-content: center;
  transition: background var(--t);
}
.feed-sound-btn:active { background: rgba(255,255,255,0.15); }

.feed-scroll {
  height: 100%; overflow-y: auto;
  scroll-snap-type: y mandatory;
  scrollbar-width: none; -ms-overflow-style: none;
}
.feed-scroll::-webkit-scrollbar { display: none; }

/* Feed item */
.feed-item {
  height: 100vh; position: relative; overflow: hidden;
  scroll-snap-align: start; background: #000;
  display: flex; align-items: center; justify-content: center;
}
.feed-video {
  width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0;
}

/* Feed overlay gradient */
.feed-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0) 50%),
              linear-gradient(to bottom, rgba(0,0,0,0.4) 0%, rgba(0,0,0,0) 25%);
  pointer-events: none;
}

/* Feed right action bar */
.feed-actions {
  position: absolute; right: 14px; bottom: 180px;
  display: flex; flex-direction: column; gap: 20px; align-items: center;
}
.feed-action-btn {
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  color: #fff; cursor: pointer;
}
.feed-action-icon {
  width: 44px; height: 44px; border-radius: 50%;
  background: rgba(255,255,255,0.12); backdrop-filter: blur(4px);
  display: flex; align-items: center; justify-content: center;
  transition: background var(--t), transform var(--t);
}
.feed-action-btn:active .feed-action-icon { transform: scale(0.9); }
.feed-action-btn.active .feed-action-icon { background: rgba(192,132,252,0.3); color: var(--accent); }
.feed-action-label { font-size: .65rem; font-weight: 600; opacity: .85; }

/* Feed bottom info */
.feed-bottom {
  position: absolute; bottom: 0; left: 0; right: 66px;
  padding: 0 16px 24px;
}
.feed-author-row {
  display: flex; align-items: center; gap: 8px; margin-bottom: 8px;
}
.feed-author-ava {
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--accent-grad);
  display: flex; align-items: center; justify-content: center;
  font-size: .7rem; font-weight: 700;
}
.feed-author-name { font-size: .85rem; font-weight: 700; }
.feed-follow-btn {
  margin-left: 8px; padding: 3px 10px; border-radius: 99px;
  border: 1.5px solid #fff; font-size: .7rem; font-weight: 600; color: #fff;
}
.feed-video-title { font-size: .9rem; font-weight: 700; margin-bottom: 4px; line-height: 1.3; }
.feed-video-desc  {
  font-size: .78rem; color: rgba(255,255,255,0.8); line-height: 1.5;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  margin-bottom: 8px;
}
.feed-tags { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 12px; }
.feed-tag  { font-size: .72rem; color: rgba(255,255,255,0.7); }

/* Feed product shelf (mobile) */
.feed-shelf {
  display: flex; gap: 8px; overflow-x: auto;
  padding-bottom: 4px; scrollbar-width: none;
}
.feed-shelf::-webkit-scrollbar { display: none; }
.feed-shelf-item {
  flex: 0 0 auto; width: 58px; cursor: pointer; border-radius: var(--radius-sm);
  overflow: hidden; background: var(--bg-surface); position: relative;
}
.feed-shelf-img { width: 58px; height: 58px; object-fit: cover; background: var(--bg-hover); }
.feed-shelf-heart {
  position: absolute; top: 2px; right: 2px;
  width: 16px; height: 16px; border-radius: 50%;
  background: rgba(0,0,0,0.5); display: flex; align-items: center; justify-content: center;
}

/* Feed tap-to-pause indicator */
.feed-pause-indicator {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  pointer-events: none; opacity: 0;
}
.feed-pause-circle {
  width: 70px; height: 70px; border-radius: 50%;
  background: rgba(0,0,0,0.4);
  display: flex; align-items: center; justify-content: center;
}
.feed-item.paused .feed-pause-indicator { opacity: 1; }

/* ═══════════════════════════════════════════════════
   TOAST NOTIFICATIONS
   ═══════════════════════════════════════════════════ */
.toast-stack {
  position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%);
  z-index: 9999; display: flex; flex-direction: column; gap: 8px;
  align-items: center; pointer-events: none;
}
.toast {
  padding: 10px 20px; border-radius: 99px;
  background: var(--bg-hover); color: var(--text-1);
  font-size: .82rem; font-weight: 500;
  box-shadow: 0 4px 16px rgba(0,0,0,0.4);
  animation: toastIn 0.25s ease, toastOut 0.25s ease 2.5s forwards;
  pointer-events: auto;
}
.toast.success { background: rgba(34,197,94,0.2); color: #4ade80; border: 1px solid rgba(34,197,94,0.25); }
.toast.error   { background: rgba(239, 68, 68,0.2); color: #f87171; border: 1px solid rgba(239,68,68,0.25); }
@keyframes toastIn  { from { opacity:0; transform: translateY(8px); } to { opacity:1; transform: translateY(0); } }
@keyframes toastOut { to   { opacity:0; transform: translateY(-8px); } }

/* ═══════════════════════════════════════════════════
   NO VIDEO / PLACEHOLDER STATE
   ═══════════════════════════════════════════════════ */
.no-video-placeholder {
  width: 100%; height: 100%;
  background: var(--bg-surface);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 8px; color: var(--text-3); font-size: .8rem;
}
.no-video-placeholder svg { opacity: .4; }

/* ═══════════════════════════════════════════════════
   RESPONSIVE – TABLET (≤ 1024px)
   ═══════════════════════════════════════════════════ */
@media (max-width: 1024px) {
  .header-inner { padding: 0 24px; }
  .header-left  { gap: 20px; }

  .primary-nav  { gap: 2px; }
  .nav-item     { padding: 6px 8px; font-size: .82rem; }

  .hero-content { padding: 0 24px 40px; }
  .cat-row-header  { padding: 24px 24px 12px; }
  .cat-row-scroll  { padding: 4px 24px 16px; }
  .cat-page-header { padding: 24px 24px 16px; }
  .video-grid      { padding: 0 24px 60px; }
}

/* ═══════════════════════════════════════════════════
   RESPONSIVE – MOBILE (≤ 768px)
   ═══════════════════════════════════════════════════ */
@media (max-width: 768px) {
  .btn-hamburger { display: flex; }
  .primary-nav   { display: none; }
  .header-inner  { padding: 0 16px; }

  .hero-section      { height: 55vh; }
  .hero-content      { padding: 0 20px 32px; }
  .hero-title        { font-size: 1.4rem; }
  .hero-desc         { display: none; }
  .hero-actions      { gap: 8px; }
  .btn-primary,
  .btn-secondary     { padding: 9px 16px; font-size: .8rem; }

  .cat-row-header    { padding: 20px 16px 8px; }
  .cat-row-scroll    { padding: 4px 16px 14px; gap: 10px; }
  .cat-page-header   { padding: 20px 16px 12px; }
  .video-grid        { padding: 0 16px 48px; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }

  .video-card        { width: 140px; }

  /* Modal → hidden on mobile (use feed instead) */
  .video-modal       { display: none; }

  /* Feed is primary on mobile */
  .modal-player-col  { display: none; }
}

/* ═══════════════════════════════════════════════════
   RESPONSIVE – SMALL MOBILE (≤ 480px)
   ═══════════════════════════════════════════════════ */
@media (max-width: 480px) {
  .video-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; padding: 0 12px 48px; }
  .video-card { width: 100%; }
  .cat-row-scroll { padding: 4px 12px 14px; }
  .cat-row-header { padding: 18px 12px 8px; }
  .hero-content   { padding: 0 16px 28px; }
}

/* ═══════════════════════════════════════════════════
   UTILITY
   ═══════════════════════════════════════════════════ */
.visually-hidden { position: absolute; width:1px; height:1px; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; }
