:root{
  --irui-action-size: 56px;
  --irui-gap: 14px;
  --irui-overlay-gradient: linear-gradient(180deg, rgba(0,0,0,0.0) 0%, rgba(0,0,0,0.55) 60%, rgba(0,0,0,0.85) 100%);
}
/* Overlay */
.irui-overlay{
  position: fixed;
  inset: 0;
  background: #000;
  z-index: 99999;
  display: none;
  align-items: center;
  justify-content: center;
}
.irui-overlay[aria-hidden="false"]{
  display: flex;
}
.irui-close{
  position: fixed;
  top: 16px;
  right: 16px;
  z-index: 100000;
  font-size: 1.35rem;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  line-height: 1;
}
/* Centered canvas for desktop */
.irui-centered-canvas{
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2vh;
  box-sizing: border-box;
}
.irui-feed{
  position: relative;
  width: 100%;
  height: 100vh;
  max-width: 460px;
  border-radius: 18px;
  overflow-y: scroll;
  scroll-snap-type: y mandatory;
  -webkit-overflow-scrolling: touch;
  box-shadow: 0 30px 60px rgba(0,0,0,.6);
  background: #000;
}
/* For mobile make it full-viewport (no max-width) */
@media (max-width: 767px){
  .irui-feed{
    max-width: none;
    width: 100%;
    height: 100vh;
    border-radius: 0;
  }
  .irui-close{ right: 10px; top: 10px; }
}
.irui-reel{
  position: relative;
  height: 100vh;
  width: 100%;
  scroll-snap-align: start;
  overflow: hidden;
  background: #000;
}
.irui-video, .irui-video iframe{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
  background: #000;
}
.irui-overlay-top, .irui-overlay-bottom{
  position: absolute;
  left: 0;
  right: 0;
  z-index: 4;
  pointer-events: none;
}
.irui-overlay-top{ top: 0; padding-top: 1rem; }
.irui-overlay-bottom{
  bottom: 0;
  padding-top: 5rem;
  background: var(--irui-overlay-gradient);
  padding-bottom: 3rem;
}
.irui-avatar{
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,.9);
  object-fit: cover;
}
.irui-caption{ font-size: 1rem; color: #fff; margin-bottom: .25rem; }
.irui-audio{ font-size: .9rem; color: rgba(255,255,255,.9); margin-bottom: .5rem; }
.irui-actions{
  position: absolute;
  z-index: 5;
  right: 12px;
  bottom: 100px;
  pointer-events: auto;
}
.irui-action{
  width: var(--irui-action-size);
  height: var(--irui-action-size);
  border-radius: 999px;
  display: grid;
  place-items: center;
  opacity: .95;
  box-shadow: 0 8px 22px rgba(0,0,0,.45);
  border: 1px solid rgba(255,255,255,.12);
  padding: 0;
  background: rgba(0,0,0,.45);
}
.irui-action i{ font-size: 1.25rem; color: #fff; }
.irui-action span{ display:block; color:#fff; font-size:.75rem; margin-top:4px; opacity:.95; }
.irui-album{ width:48px; height:48px; border-radius:12px; overflow:hidden; border:2px solid rgba(255,255,255,.9); animation: irui-rotate 6s linear infinite; }
.irui-album img{ width:100%; height:100%; object-fit:cover; display:block; }
@keyframes irui-rotate{ from{ transform: rotate(0);} to{ transform: rotate(360deg);} }
.irui-progress{ position: relative; width: 100%; height: 3px; background: rgba(255,255,255,.18); border-radius:999px; overflow:hidden; margin-top:.5rem; }
.irui-progress-fill{ position:absolute; left:0; top:0; bottom:0; width:0%; background:#fff; }
/* smaller screens tweak */
@media (max-width: 576px){
  .irui-action{ width:50px; height:50px; }
  .irui-avatar{ width:40px; height:40px; }
  .irui-actions{ right:8px; bottom:90px; }
}


/* Reel actions container */
.reel-actions {
  position: absolute;
  right: 15px;
  bottom: 100px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  z-index: 5;
}

/* Each action button */
.reel-actions button {

  border: none;
  color: #fff;
  font-size: 22px;
  border-radius: 50%;
  padding: 12px;
  cursor: pointer;
  transition: background 0.3s;
}



/* Mobile adjustments */
@media (max-width: 768px) {
  .reel-actions {
    right: 10px;
    bottom: 80px;
    gap: 15px;
  }
  .reel-actions button {
    font-size: 20px;
    padding: 10px;
  }
}

.like-btn.liked {
  background-color: blue !important; /* test with !important first */
  color: #fff;
}



.reel-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.reel-container {
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  background: #000;
}

