body:has(.reels-container) {
  overflow: hidden !important;
  background: #000 !important;
  padding-bottom: 0 !important;
}
body:has(.reels-container) .mobile-bottom-navbar {
  display: none !important;
}

.reels-container {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100dvh;
  background: #000;
  z-index: 999;
  overflow: hidden;
}

.reels-content {
  width: 100%;
  height: 100%;
  position: relative;
}

.reel-item {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100dvh;
  background: #000;
  overflow: hidden;
}

.reel-top-home {
  position: absolute;
  top: calc(16px + env(safe-area-inset-top, 0px));
  left: 16px;
  z-index: 10;
}

.reel-top-home a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.4);
  color: #fff;
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: background 0.2s ease, transform 0.2s ease;
}

.reel-top-home a:active {
  transform: scale(0.9);
  background: rgba(255, 255, 255, 0.2);
}

.reel-top-home svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.reel-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.reel-video video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #000;
  display: block;
}

.reel-info {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 20px 80px calc(24px + env(safe-area-inset-bottom, 0px)) 20px;
  color: #fff;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.4) 50%, transparent 100%);
  z-index: 5;
  pointer-events: none;
}

.reel-info > * {
  pointer-events: auto;
}

.reel-user {
  display: flex;
  align-items: center;
  margin-bottom: 10px;
}

.reel-user img {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  margin-right: 10px;
  object-fit: cover;
  border: 1.5px solid #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

.reel-user strong {
  font-size: 16px;
  font-weight: 700;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
}

.reel-caption {
  font-size: 14px;
  line-height: 1.4;
  color: #e7e9ea;
  word-break: break-word;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
}

.reel-actions {
  position: absolute;
  right: 12px;
  bottom: calc(100px + env(safe-area-inset-bottom, 0px));
  display: flex;
  flex-direction: column;
  gap: 24px;
  z-index: 6;
}

.reel-action {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #fff;
  cursor: pointer;
  transition: transform 0.15s ease;
  -webkit-tap-highlight-color: transparent;
}

.reel-action:active {
  transform: scale(0.85);
}

.reel-action svg {
  width: 32px;
  height: 32px;
  fill: #fff;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.6));
  transition: fill 0.2s ease;
}

.reel-action span {
  font-size: 13px;
  font-weight: 700;
  margin-top: 6px;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
  font-variant-numeric: tabular-nums;
}

.reel-action.liked svg {
  fill: #f91880;
}

.reel-action.liked span {
  color: #f91880;
}

.timeline-alert-container {
  position: absolute;
  top: 80px;
  left: 16px;
  right: 16px;
  z-index: 10;
  pointer-events: none;
}

.timeline-alert {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: rgba(29, 155, 240, 0.15);
  border: 1px solid rgba(29, 155, 240, 0.3);
  border-radius: 12px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  pointer-events: auto;
}

.timeline-alert__icon svg {
  width: 20px;
  height: 20px;
  fill: var(--accent);
}

.timeline-alert__text {
  font-size: 13px;
  font-weight: 500;
  color: #fff;
  line-height: 1.4;
}

.timeline-alert__text a {
  color: var(--accent);
  font-weight: 700;
  text-decoration: none;
}