*,
*::after,
*::before {
    box-sizing: border-box;
}

body {
    background-color: #1A1F16;
    color: white;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    height: 100vh;
    width: 100vw;
    overflow: hidden;

}

.section {
    display:grid;
    width: 100%;
    height: 100%;
    grid-template-columns: 4fr 400px;
    grid-auto-rows: 100vh;
}
.section>div {
    width: 100%;
    height: 100%;
}

.main {
    display: flex;
    flex-direction: column;
    padding: 30px;
} 

#presetrow {
    border: 2px dashed red;
    padding: 10px 0;
}

.tag {
    font-size: 10pt;
    background-color: rgba(255,255,255,30%);
    display: inline;
    border-radius: 10px;
    padding: 3px 10px;
    color: whitesmoke;
    white-space: nowrap;
    border: none;
    overflow-y: hidden;
    overflow-x: auto;

}

.tag:hover {
    cursor: pointer;
}

.tag:active {
    background-color: rgba(255,255,255,40%);
}


.sidebar {
    display: flex;
    flex-direction: column;
    position: relative;
}
.sidebar>.topbar {
    flex-shrink: 1;
    border-bottom: 2px solid rgb(95, 95, 95);
    padding:10px;
}
.sidebar>.tracklist {
    flex:1;
    overflow-y:scroll;

}

.playergrid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-auto-rows: 1fr;
    flex: 3;
    gap: 10px;

}

.player-container {
    position:relative;
    width: 100%;
    height: 100%;
    display:flex;
    flex-direction: column;
}

.player {
    width: 100%;
    height: 100%;
    flex:1;
}

.player-container .header, .player-container .footer {
    background-color: #1a1a1a;
    flex-shrink: 1;
}

.player-container .header {
    font-size: 1rem;
    font-weight: bold;
    display: flex;
    align-items: center;
    padding:5px;
    padding-left:10px;
}

.dropper{
    width: 100%;
    height: 100%;
    background-color: rgba(141, 190, 206, 0.301);
    border: 3px dashed lightblue;
    z-index: 3;
    position: absolute;
    top: 0;
    left: 0;
}


.controls {
    display: flex;
    flex-shrink: 1;
    margin: 10px 0;

}

.controls>.ctrlsm,.controls>.ctrlmed {
    display: flex;
    padding: 0 10px;
}

.controls>.ctrlsm>label,.controls>.ctrlmed>label {
    flex-shrink: 1;
}

.controls>.ctrlsm{
    flex-shrink: 1;
}
.controls>.ctrlmed{
    flex: 1;
}

.controls input[type="range"] {
    flex: 1;
    margin-left: 20px;
}


/* video list */

.topbar > select {
    width: 200px;
}


.tracklist {
    margin: 10px 0;
    padding: 10px;
    height: 100%;
}

.vid {
    display: grid;
    width: 100%;
    padding:5px;
    max-height: 100px;
    margin: 3px 0 ;
    border-radius: 10px;
    grid-template-columns: 150px 1fr;

    gap:10px;
}

.vid:hover {
    background-color: #1f1f1f;
    transition: background-color 0.15s ease-in-out;
    cursor:grab;
}

.vid:end

.vid:active {
    cursor: grabbing;
}

.vid * {
    pointer-events: none;
}

.vid .thumbnail{
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    max-height: 150px;
    overflow: hidden;
}

.vid .thumbnail img {
    object-fit: contain;
    height: 100%;
    width: 100%;
    border-radius: 10px;
}

.vid .titlebox {
    display: flex;
    flex-direction: column;
    flex-grow:1;

}

.vid .title {
    flex-shrink:1;
    color: white;
    text-decoration: underline;
    margin-bottom:5px;
    font-size: 1rem;

    line-height: 1.5em;
    max-height: 3em;
    overflow: hidden;
}

.vid .info {
    flex-shrink:1;

    font-style: italic;
    font-size: 0.7rem;
    color:gray;
    width:100%;
    overflow:hidden;

    line-height: 1.3em;
    max-height: 2.6em;

}


.collection-tags {
    margin-bottom:10px;
    line-height: 1.75rem;
}








.no-select {
  -webkit-user-select: none; /* Safari, Chrome */
  -moz-user-select: none;    /* Firefox */
  -ms-user-select: none;     /* Internet Explorer/Edge */
  user-select: none;         /* Standard (Chrome, Opera, etc.) */
}



/* Apply rounded corners to both track and thumb */
::-webkit-scrollbar {
  width: 8px; /* Vertical scrollbar width */
  height: 8px; /* Horizontal scrollbar height */
}

::-webkit-scrollbar-track {
  background: #1f1f1f;
  border-radius: 10px; /* Rounded track */
}

::-webkit-scrollbar-thumb {
  background: #5e5e5e;
  border-radius: 10px; /* Rounded thumb */
  border: 2px solid #f1f1f1; /* Optional: adds a border for visual separation */
}