.thumbnail:first-of-type {
    border-top-left-radius: 10px;
    border-bottom-left-radius: 10px;
}

.thumbnail:last-of-type {
    border-top-right-radius: 10px;
    border-bottom-right-radius: 10px;
}



body {
    font-family: Arial, sans-serif;
    margin: 0;
}

.timelines {
    position: relative;
    /*width: 10000px;*/
    height: 200px;
}


/* For Firefox */
html {
  scrollbar-width: thin; /* Options: auto | thin | none */
}


.timeline-container .scroll {
  touch-action: pan-x; /* allow horizontal scrolling */
  overflow-x: scroll;
  -webkit-overflow-scrolling: touch;
  padding: 0;
}

/* Horizontal scrollbar thickness */
.timeline-container .scroll::-webkit-scrollbar {
  height: 15px; /* Make horizontal scrollbar thicker */
  padding: 0px;
}

/* Track */
.timeline-container .scroll::-webkit-scrollbar-track {
  background: transparent; /* Match your dark theme */
}

/* Thumb */
.timeline-container .scroll::-webkit-scrollbar-thumb {
  background-color: #59636d;
  border-radius: 12px;    /* Rounded corners */
  padding: 5px;
}

/* Hover effect */
.timeline-container .scroll::-webkit-scrollbar-thumb:hover {
  background-color: #bbb;
}

/*.timelines {
    background-image: url(/images/no-feed.jpg);
    background-repeat: repeat;
    background-size: 44px 21px;
    z-index: -1;
}*/

#timeline .timelines::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url(/images/no-feed.jpg);
  background-repeat: repeat;
  background-size: 44px 21px;    /* your tile size */
  pointer-events: none;          /* don't block drags/clicks */
  z-index: 0;                    /* behind clips */
}



#timeline .timelines .clip {
  position: absolute;
  z-index: 1;
  /* pointer-events: auto;  // default, add if you set it elsewhere */
}

#timeline .timelines .clip.grabbed {
  z-index: 2;
  cursor: grabbing;
}

.clip {
    pointer-events: auto;
    position: relative;
    display: block;
    /*background-color: black;*/
    /*padding: 10px;
    margin: 10px; */
    /*border-radius: 20px;*/
    overflow: hidden;
    /*min-height: 40px;*/
    /*min-width: 40px;*/
}

.timeline {
    position: relative;
    width: 100%;
    height: 50px;
    border-bottom: 2px solid #000;
    overflow: hidden;
}

.time-label {
    position: absolute;
    bottom: 0;
    /*transform: translateX(-50%);*/
    font-size: 14px;
}


.timeline-container {
    width: 100%;
    /*margin-top: 50px;*/
    overflow: hidden;
    overflow-x: scroll;
    bottom: 100px;
    position: fixed;
    z-index: 2;
    contain: inline-size;
}

.time-indicator {
    position: absolute;
    top: 0px;
    width: 2px;
    height: 700px;
    background-color: #ff6347;
    /*pointer-events: none;*/
}

.time-display {
    position: absolute;
    top: 0px;
    height: 16px;
    left: 0;
    transform: translateX(-50%);
    font-size: 14px;
    background-color: #fff;
    padding: 2px 5px;
    border-radius: 3px;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.3);
    display: none;
}

.time-bubble {
    pointer-events: none;
    position: absolute;
    display: inline-flex;
    /*background-color: black;*/
    /*padding: 10px;
    margin: 10px; */
    border-radius: 20px;
    overflow: hidden;
    overflow: visible;
}

.clip, .time-indicator { touch-action: none; }



.tick {
    position: absolute;
    /*bottom: 0;*/
    border-left: 1px solid #999;
    transform: translateX(-0.5px);   /* crisp 1‑px line */
  }
  
  .tick.minor {
    height: 4px;
  }
  
  .tick.major {
    height: 8px;
    font-size: 10px;
    line-height: 8px;
    padding-left: 2px;       /* a little gap before the label */
    color: #666;
  }