@import url("https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500&family=Poppins:wght@400;500&display=swap");

:root {
    --primary: #8a50ff;
}

body {
    -webkit-tap-highlight-color: rgba(255, 255, 255, .05);
    -webkit-touch-callout: none; /* iOS Safari */
    -webkit-user-select: none; /* Safari */
    -moz-user-select: none; /* Firefox */
    -ms-user-select: none; /* Internet Explorer/Edge */
    user-select: none;
    background: #121212;
    color: #cccccc;
    height: 100vh;
    height: 100svh;
    margin: 0;
    font-family: "Montserrat";
}

#droppable-zone {
    background: rgba(25, 25, 25, .9);
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
}

.body {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.track-list-wrapper {
    overflow: auto;
    flex: 1 0 0;
    padding: .75rem .5rem;
}

.track-list {
    position: relative;
    display: flex;
    flex-direction: column;
}

.track-list-item {
    background: #121212;
    overflow: hidden;
    cursor: pointer;
    transition: all .5s;
    border-radius: .25rem;
    display: flex;
    flex: 0 0 auto;
    padding: .5rem 1rem;
}

.track-list-item:not(.progress):hover {
    background: #161616;
}

.track-list-item.selected {
    color: var(--primary);
}

.track-list-item.progress {
    opacity: .3;
    cursor: inherit;
}

.track-item-index {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    width: 1rem;
    padding-right: 1rem;
    font-size: 1.25rem;
    font-weight: 600;
}

.track-item-duration {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    width: 4rem;
    font-weight: 500;
}

.track-item-content {
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
    flex: 1 0 0;
    padding: 0 1rem;
}

.track-item-cover {
    object-fit: cover;
    border-radius: .25rem;
    width: 64px;
    height: 64px;
}

.track-item-title {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-weight: 600;
}

.track-item-artist {
    margin-top: .25rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.player {
    background: #151515;
}

.player-progress-bar {
    overflow: hidden;
    background: rgb(35 35 35);
    height: 10px;
}

.player-progress {
    transition: transform 1s linear;
    background: var(--primary);
    border-top-right-radius: 5rem;
    border-bottom-right-radius: 5rem;
    height: 100%;
    width: 100%;
}

.notice {
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    padding: 2rem;
    text-align: center;
    font-size: 1.25rem;
}




.replay-wrapper {
    background: color-mix(in srgb, var(--primary) 8%, black);
    color: #fefefe;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.replay-participants {
    overflow: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    margin: auto;
    gap: 1.5rem;
    padding: 5rem 2rem;
    padding-top: 2.5rem;
}

.replay-user-avatar {
    overflow: hidden;
    position: relative;
    border: 4px solid #262626;
    border-radius: 50%;
}

.replay-user-avatar img {
    pointer-events: none;
    display: block;
    overflow: hidden;
    border-radius: 50%;
    padding: .25rem;
    width: 128px;
    height: 128px;
}

.replay-icon {
    background: #1b1b1bd6;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    color: #FFF;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
}

.replay-user {
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 160px;
    position: relative;
}

.replay-user.streamMuted {
    opacity: .35;
}

.replay-user-username {
    margin-top: 0.5rem;
    text-align: center;
    font-size: 1.15rem;
    font-weight: 600;
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
    width: 100%;
}

.replay-user-avatar.speaking {
    border: 4px solid var(--primary);
}

.replay-controls, .replay-channel {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: .5rem;
    background: #202020;
    gap: .75rem;
    color: #d2d2d2;
}

.replay-controls-item {
    cursor: pointer;
    overflow: hidden;
    border-radius: 50%;
    background: var(--primary);
    color: #ffffff;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
}

.replay-channel-name {
    margin: auto;
    font-weight: 600;
    font-size: .85rem;
    padding: .5rem;
    background: #2d2d2d;
    border-radius: .5rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.context-menu-wrapper {
    overflow: hidden;
    border-radius: .5rem;
    position: fixed;
    left: 0;
    top: 0;
    z-index: 2000;
}

.context-menu {
    background: #080808;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, .25);
}

.context-menu-item {
    border-bottom: 1px solid #151515;
    cursor: pointer;
    display: flex;
    align-items: center;
    padding: 0.75rem 0.75rem;
    padding-right: 1rem;
}

.context-menu-item:last-child {
    border-bottom: 0;
}

.context-menu-item:hover {
    background: #111111;
}

.context-menu-item i {
    margin-right: 0.5rem;
    width: 24px;
    font-size: 1.15rem;
    text-align: center;
}

.context-menu-item.dangerous {
    color: #e04506;
}

.modal-wrapper {
    position: fixed;
    background: #151515e8;
    width: 100%;
    height: 100%;
    z-index: 999;
    display: flex;
    box-shadow: 0 0.125rem 0.25rem rgba(0,0,0,.25);
    overflow: auto;
}

.modal-content {
    background: #101010;
    margin: auto;
    width: 600px;
    max-width: 100%;
    border-radius: .5rem;
}

.modal-title {
    padding: 1rem;
    text-align: center;
    border-bottom: 1px solid #151515;
}

.select-menu {
    margin: 1rem;
    border: 1px solid #e04506;
    border-radius: .5rem;
    overflow: hidden;
}

.select-menu-selected {
    padding: 1rem;
    background: #101010;
    cursor: pointer;
    color: #e04506;
    display: flex;
}

.select-menu-selected .icon {
    margin: auto;
}

.select-menu-value {
    flex: 1 0 0;
}

.select-menu-option {
    padding: 1rem;
    border-top: 1px solid #232323;
    cursor: pointer;
}

.select-menu-label {
    font-weight: 500;
}

.select-menu-description {
    color: #747474;
    margin-top: .25rem;
    line-height: 1.35rem;
}

.select-menu-option:last-child {
    border-bottom: 0;
}

.select-menu-options {
    display: flex;
    flex-direction: column;
    background: #181818;
}

.replay-progress-wrapper {
    width: max(60%, 600px);
    margin: 1rem auto;
    max-width: 100%;
    cursor: pointer;
    padding: 1rem;
    position: fixed;
    bottom: 5rem;
    left: 50%;
    transform: translateX(-50%);
    box-sizing: border-box;
}

.replay-progress-bar {
    background: #262626;
    border-radius: 5rem;
    width: 100%;
    height: .5rem;
}

.replay-progress {
    position: relative;
    width: 60%;
    background: var(--primary);
    height: 100%;
    border-top-left-radius: 5rem;
    border-bottom-left-radius: 5rem;
}

.replay-progress-circle {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #FFF;
    position: absolute;
    right: 0;
    top: 50%;
    transform: translate(50%, -50%);
}










.records-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 1rem;
}

.records-list-item {
    display: flex;
    background: #1d1d1d;
    border-radius: .25rem;
    color: inherit;
    text-decoration: none;
    padding: 1rem;
}

.records-list-item-icon {
    margin: auto 0;
    background: #151515;
    border-radius: 50%;
    flex: 0 0 56px;
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
}

.records-list-item-content {
    flex: 1 0 0;
}

.records-list-item-channel {
    font-weight: 700;
}

.records-list-item-users {
    display: flex;
    margin-top: .5rem;
    height: 48px;
}

.records-list-item-arrow.material-symbols-outlined {
    margin: auto 0;
    background: #151515;
    border-radius: 50%;
    padding: .5rem;
}

.records-list-item-user-avatar {
    position: relative;
    width: 34px;
    height: 48px;
}

.records-list-item-user-avatar img,
.records-list-item-user-avatar-content {
    position: absolute;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 4px solid #1d1d1d;
    background: #101010;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-size: .95rem;
    font-weight: 700;
    box-sizing: border-box;
    left: 0;
    top: 0;
}

.records-list-item-user-avatar-content {
    background: var(--primary);
    color: #FFF;
}



.player-controls {
    display: flex;
    justify-content: center;
    position: relative;
    gap: 1rem;
    padding: 0.5rem;
}

.player-control-item {
    cursor: pointer;
    font-size: 2rem;
    padding: .75rem;
    border-radius: 50%;
}

.player-control-item.active {
    background: var(--primary);
}

.player-control-item.disabled {
    filter: grayscale(1);
    opacity: .25;
}

.player-control-like,
.player-control-repeat {
    background: rgba(255, 255, 255, .5);
    font-size: 1.25rem;
    margin: auto;
}

.player-control-like.active {
    background: var(--primary);
}

.track-input {
    background: #232323;
    display: flex;
    align-items: center;
    border-radius: .15rem;
    padding: 0 .75rem;
}

.track-input input {
    outline: 0;
    border: 0;
    background: unset;
    padding: .75rem .5rem;
    flex: 1 0 0;
    color: #FFF;
}

.track-list-header {
    text-align: center;
    background: var(--primary);
    margin: 0 0.5rem;
    padding: 0.5rem;
    border-radius: 0.15rem;
    margin-top: 0;
}

.track-header {
    padding: .5rem;
}



















.fade-enter-active,
.fade-leave-active {
    transition: opacity .2s ease-in-out;
}

.fade-enter-from,
.fade-leave-to {
    opacity: 0 !important;
}

.move-move,
.move-enter-active,
.move-leave-active {
    transition: all 1.5s cubic-bezier(0.55, 0, 0.1, 1);
}

.move-enter-from,
.move-leave-to {
    opacity: 0 !important;
}

.move-leave-active {
    box-sizing: border-box;
    position: absolute;
    z-index: -1;
    width: 100%;
}

.serverMute .replay-icon,
.serverDeaf .replay-icon {
    color: #ea2a16;
    background: #4c2e2ed6;
}

.replay-current-timestamp {
    font-weight: 600;
    font-family: monospace;
    font-size: .85rem;
    background: #2d2d2d;
    border-radius: .5rem;
    padding: .5rem;
    white-space: nowrap;
}
.replay-current-time {
    font-weight: 600;
    font-family: monospace;
    font-size: .85rem;
    background: #2d2d2d;
    border-radius: .5rem;
    padding: .5rem;
    color: #bcbcbc;
    white-space: nowrap;
}

.replay-user.streamMuted .replay-icon {
    color: #FFF !important;
}

.replay-author-icon {
    color: orange;
    font-size: 1.5rem;
    position: absolute;
    top: 4.5px;
    transform: translateY(-100%);
}

.record-tracks-view {
    position: relative;
    display: flex;
    flex-direction: column;
    flex: 1 0 0;
    overflow: auto;
    background: #131313;
}

.record-track {
    display: flex;
    height: 64px;
    border: 1px solid #121212;
    border-left: 0;
    border-right: 0;
    background: #1a1a1a;
}

.record-track-fragments {
    position: relative;
}

.record-track-participant {
    overflow: hidden;
    display: flex;
    padding: .5rem;
    box-sizing: border-box;
    border-bottom: 1px solid #1e1e1e;
    height: 64px;
    cursor: pointer;
}

.record-tracks-view .replay-user-avatar {
    height: 48px;
    width: 48px;
    box-sizing: border-box;
    flex: 0 0 48px;
    margin: auto;
    margin-right: .5rem;
    border-width: 2px;
    transition: .2s;
    transition-property: border-color, opacity;
}

.record-tracks-view .replay-icon {
    font-size: 1.25rem;
}

.record-tracks-view .replay-user-avatar img {
    width: 100%;
    height: 100%;
    border: 0;
    padding: 0;
}

.record-tracks-view .replay-user-username {
    font-size: .95rem;
    text-align: left;
    margin: auto;
    transition: opacity .2s;
}

.record-track-fragments {
    padding: .5rem;
    height: 64px;
    border-bottom: 1px solid #1f1f1f;
    box-sizing: border-box;
}

.record-tracks-no-mans-land {
    background: rgb(25, 25, 25);
    flex: 1 0 0;
}

.record-track-fragment, .record-track-fragment-special {
    background: var(--primary);
    border-radius: .25rem;
    display: flex;
    align-items: center;
    transition: opacity .2s;
}

.record-tracks-cursor {
    background: #FFF;
    position: absolute;
    top: 0;
    bottom: 0;
    width: 4px;
    z-index: 500;
    filter: drop-shadow(0px 0px 6px black);
    border-radius: 5rem;
    transform: translateX(-50%);
}

.record-tracks-view-container {
    position: relative;
    display: flex;
    flex: 1 0 0;
}

.record-tracks-fragments {
    display: flex;
    flex: 1 0 0;
    position: relative;
    cursor: pointer;
    height: max-content;
    min-height: 100%;
    outline: 0;
    overflow: auto;
}

.record-tracks-participants {
    border-right: 1px solid #202020;
    background: #101010;
}

.record-track-muted .record-track-fragment,
.record-track-is-not-present .record-track-fragment {
    opacity: .1;
}

.record-track-participant.record-track-muted .replay-user-avatar,
.record-track-participant.record-track-muted .replay-user-username,
.record-track-participant.record-track-is-not-present .replay-user-avatar,
.record-track-participant.record-track-is-not-present .replay-user-username {
    opacity: .25;
}

.record-track-is-recorder .record-track-fragment {
    background: orange;
}

.record-tracks-view .replay-author-icon {
    position: initial;
    font-size: 1rem;
    margin: auto;
    transform: unset;
}

.record-track-fragment-representation {
    background: #00000060;
    width: 4px;
}

.record-track-is-recorder .replay-user-avatar.speaking {
    border-color: orange;
}

@media screen and (min-width: 720px) {
    .replay-channel-name {
        font-size: 1rem;
    }

    .replay-current-timestamp, .replay-current-time {
        font-weight: 500;
        font-size: .95rem;
    }

    .record-track-participant {
        width: 250px;
    }
}

.context-menu-header {
    display: none;
}

@media screen and (max-width: 720px) {
    .record-tracks-view .replay-user-username, .replay-author-icon {
        display: none;
    }

    .record-tracks-view .replay-user-avatar {
        margin: 0;
    }

    .context-menu-wrapper {
        background: rgb(20 17 20 / 85%);
        left: 0 !important;
        top: 0 !important;
        bottom: 0;
        right: 0;
        display: flex;
        flex-direction: column;
        justify-content: flex-end;
    }

    .context-menu {
        overflow: hidden;
        border-top-left-radius: 1.5rem;
        border-top-right-radius: 1.5rem;
        background: #211d24;
    }

    .context-menu-item {
        border-bottom: 1px solid #2b2b2b;
        padding: 1rem;
    }

    .context-menu-item:hover {
        background: hsl(274 11% 16% / 1);
    }

    .context-menu-item i {
        margin-right: 0.75rem;
    }

    .context-menu-header {
        background: hsl(274 11% 10% / 1);
        display: flex;
        flex-direction: column;
        padding: 1.5rem;
        align-items: center;
    }

    .context-menu-user-avatar {
        box-shadow: 0 0 6px rgba(0, 0, 0, .25);
        background: black;
        border-radius: 50%;
        object-fit: contain;
        width: 96px;
        height: 96px;
    }

    .context-menu-user-displayname {
        margin-top: .75rem;
        font-size: 1.25rem;
        font-weight: 600;
    }

    .context-menu-user-username {
        cursor: pointer;
        margin-top: .5rem;
        font-size: 1rem;
        font-weight: 500;
        color: hsl(276 10% 60% / 1);
        background: hsl(276 10% 25% / 1);
        border-radius: .5rem;
        padding: .25rem;
    }
}
