* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: Inter, Arial, sans-serif;
}

body {
  background: #000;
  color: #fff;
}

/* =======================
   FEED (MOBILE - TIKTOK)
======================= */
.feed {
  height: 100vh;
  overflow-y: scroll;
  scroll-snap-type: y mandatory;
  -webkit-overflow-scrolling: touch;
}

/* =======================
   ITEM
======================= */
.item {
  height: 100vh;
  width: 100%;
  position: relative;
  scroll-snap-align: start;
  overflow: hidden;
  background: #000;
}

/* MEDIA MOBILE (TikTok crop) */
.item video,
.item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* =======================
   OVERLAY
======================= */
.item {
  position: relative;
}

.item::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(0,0,0,0.75),
    rgba(0,0,0,0.15),
    transparent
  );
  pointer-events: none;
  z-index: 1;
}

/* =======================
   INTRO
======================= */
.intro-box {
  position: absolute;
  left: 24px;
  right: 24px;
  bottom: 40px;
  z-index: 2;
  max-width: 700px;
}

.intro-box h1 {
  font-size: 42px;
  margin-bottom: 10px;
}
.intro-box h2 {
  margin-bottom: 16px;
}

.intro-box .subtext {
  margin-top: 0;
  line-height: 1.6;
  font-size: 0.95rem;
  opacity: 0.8;
}

.intro-box h3 {
  font-size: 16px;
  opacity: 0.9;
  margin-bottom: 10px;
}

.intro-box p {
  font-size: 14px;
  line-height: 1.5;
  opacity: 0.85;
}

/* =======================
   UI (NO PANEL ON MOBILE)
======================= */
.ui {
  position: absolute;
  bottom: 20px;
  left: 20px;
  right: 20px;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  z-index: 2;
  gap: 14px;
  pointer-events: none;
}

.ui .left,
.ui .right {
  pointer-events: auto;
}

.ui .left h2 {
  font-size: 16px;
  margin-bottom: 4px;
}

.ui .left p {
  font-size: 12px;
  opacity: 0.7;
}

.right {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.btn {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,0.12);
  color: #fff;
  font-size: 16px;
  cursor: pointer;
  backdrop-filter: blur(10px);
}

/* =======================
   DESKTOP (CLEAN GRID + LETTERBOX)
======================= */
@media (min-width: 900px) {

  body {
    overflow: auto;
    background: #0b0b0b;
  }

  .feed {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    padding: 40px;
    height: auto;
    overflow: visible;
    width: 100%;
  }

  .item {
    height: 340px;
    border-radius: 16px;
    overflow: hidden;
    background: #000;
    transition: transform 0.2s ease;
  }

/* 🖼️ IMAGES → CROP (fill container) */
.item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* 🎥 VIDEOS → NO CROP (letterbox) */
.item video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000;
}

  /* hover subtle */
  .item:hover {
    transform: translateY(-4px);
  }

  /* 🔥 REMOVE UI PANEL (NO FRAME) */
  .ui {
    opacity: 1;
    background: none;
    padding: 0;
    border-radius: 0;
    backdrop-filter: none;
  }

  .ui .left h2 {
    font-size: 18px;
  }

  .ui .left p {
    font-size: 13px;
    opacity: 0.9;
  }

  .btn {
    background: rgba(255,255,255,0.14);
    border: 1px solid rgba(255,255,255,0.18);
  }

  .btn:active {
    transform: scale(0.96);
  }
}

/* =======================
   MOBILE TWEAKS
======================= */
@media (max-width: 900px) {
  .intro-box h1 {
    font-size: 34px;
  }

  .btn {
    width: 38px;
    height: 38px;
  }
}

/* =======================
   LIGHTBOX
======================= */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;

  opacity: 0;
  pointer-events: none;
  transition: 0.25s ease;
}

.lightbox.active {
  opacity: 1;
  pointer-events: auto;
}

.lightbox video {
  width: 90vw;
  height: 80vh;
  max-width: 1100px;
  max-height: 820px;
  border-radius: 18px;
  object-fit: contain;
  background: #000;
}
