:root {
  --accent:       #670117;
  --accent-light: #cf110c;
  --card:         #ffffff;
  --line:         #edf0f4;
  --ink:          #0c1222;
  --ink-soft:     #525866;
}

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

html, body {
  margin: 0;
  padding: 0;
  overflow: hidden;
  height: 100%;
  background: #000;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}

.feed-body { height: 100dvh; height: 100vh; }

/* ── Floating header ── */
.feed-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  background: linear-gradient(to bottom, rgba(0,0,0,0.55) 0%, transparent 100%);
  pointer-events: none; /* let touches pass through background */
}

.feed-back,
.feed-mute-btn { pointer-events: all; }

.feed-back {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(0,0,0,0.35);
  backdrop-filter: blur(6px);
  color: #fff;
  text-decoration: none;
  transition: background 0.15s;
}

.feed-back:hover { background: rgba(0,0,0,0.55); }

.feed-brand {
  display: flex;
  align-items: center;
  pointer-events: none;
}

.feed-brand-logo {
  display: block;
  height: 32px;
  width: auto;
}

.feed-mute-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(0,0,0,0.35);
  backdrop-filter: blur(6px);
  border: 0;
  color: #fff;
  cursor: pointer;
  transition: background 0.15s;
}

.feed-mute-btn:hover { background: rgba(0,0,0,0.55); }

/* ── Scroll container ── */
.feed-scroll {
  height: 100vh;
  height: 100dvh;
  overflow-y: scroll;
  scroll-snap-type: y mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
}

.feed-scroll::-webkit-scrollbar { display: none; }

/* ── Individual feed item ── */
.feed-item {
  position: relative;
  height: 100vh;
  height: 100dvh;
  scroll-snap-align: start;
  overflow: hidden;
  background: #000;
}

/* ── Video ── */
.feed-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ── Gradient overlay ── */
.feed-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0,0,0,0.0) 0%,
    rgba(0,0,0,0.0) 40%,
    rgba(0,0,0,0.55) 70%,
    rgba(0,0,0,0.78) 100%
  );
  pointer-events: none;
}

/* ── Right sidebar (likes) ── */
.feed-sidebar {
  position: absolute;
  right: 14px;
  bottom: 140px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  z-index: 10;
}

.feed-action {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  background: none;
  border: 0;
  color: #fff;
  cursor: pointer;
  padding: 0;
  font-family: inherit;
}

.feed-action-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s, transform 0.15s;
}

.feed-action:hover .feed-action-icon { background: rgba(255,255,255,0.25); }

.feed-action.liked .feed-action-icon {
  background: rgba(255, 45, 85, 0.25);
}

.feed-action.liked svg {
  fill: #ff2d55;
  color: #ff2d55;
  animation: like-pop 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

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

.feed-action-count {
  font-size: 12px;
  font-weight: 700;
  color: #fff;
  text-shadow: 0 1px 3px rgba(0,0,0,0.5);
}

/* ── Bottom info panel ── */
.feed-info {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 68px; /* leave room for sidebar */
  padding: 18px 20px 28px;
  z-index: 10;
}

/* Event info */
.feed-event-name {
  font-size: 18px;
  font-weight: 780;
  color: #fff;
  letter-spacing: -0.1px;
  text-shadow: 0 1px 6px rgba(0,0,0,0.4);
  margin-bottom: 4px;
  line-height: 1.2;
}

.feed-event-meta {
  font-size: 13px;
  color: rgba(255,255,255,0.7);
  text-shadow: 0 1px 3px rgba(0,0,0,0.4);
  margin-bottom: 10px;
}

/* Description */
.feed-desc { margin-bottom: 14px; }

.feed-desc-text {
  font-size: 13.5px;
  color: rgba(255,255,255,0.85);
  text-shadow: 0 1px 3px rgba(0,0,0,0.35);
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.feed-desc-text.expanded {
  display: block;
  -webkit-line-clamp: unset;
}

.feed-desc-toggle {
  background: none;
  border: 0;
  padding: 0;
  margin-top: 4px;
  font-size: 12.5px;
  font-weight: 700;
  color: rgba(255,255,255,0.65);
  cursor: pointer;
  font-family: inherit;
  display: block;
}

.feed-desc-toggle:hover { color: #fff; }

/* Event link button */
.feed-event-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 38px;
  padding: 0 18px;
  border-radius: 100px;
  background: #fff;
  color: var(--ink);
  font-size: 13.5px;
  font-weight: 700;
  text-decoration: none;
  transition: background 0.15s, transform 0.1s;
  box-shadow: 0 2px 12px rgba(0,0,0,0.2);
}

.feed-event-link:hover { background: #f0f2f5; }
.feed-event-link:active { transform: scale(0.97); }

/* ── Swipe hint (first load) ── */
.swipe-hint {
  position: fixed;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 60;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  opacity: 1;
  transition: opacity 0.4s;
  pointer-events: none;
  animation: hint-bounce 1.2s ease-in-out 1s 2;
}

.swipe-hint.hidden { opacity: 0; }

.swipe-hint-icon {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255,255,255,0.2);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
}

.swipe-hint-label {
  font-size: 11px;
  font-weight: 600;
  color: rgba(255,255,255,0.65);
  letter-spacing: 0.04em;
}

@keyframes hint-bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(-8px); }
}

/* ── Play indicator (tap to play) ── */
.feed-play-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 5;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s;
}

.feed-play-overlay.visible { opacity: 1; }

.feed-play-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(0,0,0,0.5);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
}

/* ── Mobile safe area ── */
@supports (padding-bottom: env(safe-area-inset-bottom)) {
  .feed-info { padding-bottom: calc(28px + env(safe-area-inset-bottom)); }
}
