.media-container {
    gap: var(--tearinbot-space-6);
    display: flex;
    flex-direction: column;
}

@media screen and (min-width: 48em) {
    .media-container {
        gap: var(--tearinbot-space-12);
        flex-direction: row;
    }
}

.media-info-stack {
    display: flex;
    -webkit-box-pack: center;
    justify-content: center;
    flex-direction: column;
    gap: 0.5rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    flex: 1 1 0%;
}

.media-header {
    display: flex;
    -webkit-box-align: center;
    align-items: center;
    flex-direction: row;
    gap: var(--tearinbot-space-4);
}

.media-meta {
    display: flex;
    -webkit-box-align: center;
    align-items: center;
    flex-direction: row;
    gap: var(--tearinbot-space-2);
    font-size: var(--tearinbot-fontSizes-sm);
    color: var(--tearinbot-colors-textSecondary);
}

.media-link {
    transition-property: var(--tearinbot-transition-property-common);
    transition-duration: var(--tearinbot-transition-duration-fast);
    transition-timing-function: var(--tearinbot-transition-easing-ease-out);
    cursor: pointer;
    outline-offset: 2px;
    font-size: var(--tearinbot-fontSizes-sm);
    font-weight: 600;
    color: var(--tearinbot-colors-textPrimary);
    text-decoration: none;
    outline: transparent solid 2px;
    white-space: pre-wrap;
}

@media screen and (min-width: 48em) {
    .media-link {
        font-size: var(--tearinbot-fontSizes-3xl);
    }
}

.avatar {
    border-radius: var(--tearinbot-radii-full);
    display: inline-flex;
    -webkit-box-align: center;
    align-items: center;
    -webkit-box-pack: center;
    justify-content: center;
    text-align: center;
    text-transform: uppercase;
    font-weight: var(--tearinbot-fontWeights-medium);
    position: relative;
    flex-shrink: 0;
    font-size: calc(3rem / 2.5);
    color: var(--tearinbot-colors-white);
    border-color: #1e2025;
    vertical-align: top;
    width: var(--tearinbot-sizes-4);
    height: var(--tearinbot-sizes-4);
    --avatar-border-color: var(--tearinbot-colors-white);
    --avatar-size: 3rem;
    --avatar-font-size: calc(3rem / 2.5);
}

.avatar-images {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: var(--tearinbot-radii-full);
}

.text-ellipsis {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.media-player-container {
    position: relative;
    border-width: 0px;
    border-radius: var(--tearinbot-radii-lg);
    box-shadow: var(--tearinbot-shadows-base);
    background-color: var(--tearinbot-colors-backgroundPrimary);
    border-color: var(--tearinbot-colors-borderSecondary);
    padding: 0px;
    overflow: hidden;
    display: none;
}

@media screen and (min-width: 48em) {
    .media-player-container {
        flex: 1 1 0%;
    }
}

.media-player-container::before {
    height: 0px;
    content: "";
    display: block;
    padding-bottom: 56.25%;
}

.media-player-container > :not(style) {
    position: absolute;
    display: flex;
    -webkit-box-pack: center;
    justify-content: center;
    -webkit-box-align: center;
    align-items: center;
    width: 100%;
    height: 100%;
    overflow: hidden;
    inset: 0px;
}

.badge {
    display: inline-flex;
    vertical-align: top;
    max-width: 100%;
    font-weight: var(--tearinbot-fontWeights-medium);
    line-height: 1.2;
    outline-offset: 2px;
    min-height: 1.25rem;
    min-width: 1.25rem;
    font-size: 0.75rem;
    padding-inline-start: 0.5rem;
    padding-inline-end: 0.5rem;
    width: fit-content;
    -webkit-box-align: center;
    align-items: center;
    background-color: var(--tearinbot-colors-backgroundTertiary);
    color: var(--tearinbot-colors-textSecondary);
    outline: transparent solid 2px;
    border-radius: var(--tearinbot-radii-md);
    gap: var(--tearinbot-space-2);
}

.meta-text {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: var(--tearinbot-fontSizes-sm);
    color: var(--tearinbot-colors-textSecondary);
}

.loading-container {
    position: relative;
    border-width: 0;
    border-radius: var(--tearinbot-radii-lg);
    box-shadow: var(--tearinbot-shadows-base);
    background: var(--sceleton-background-colors);
    background-size: 400% 400%;
    border-color: var(--tearinbot-colors-borderSecondary);
    animation: loading 1.5s ease infinite;
    padding: 0;
    overflow: hidden;
}

@media screen and (min-width: 48em) {
    .loading-container {
        flex: 1 1 0%;
    }
}

.loading-container::before {
    height: 0px;
    content: "";
    display: block;
    padding-bottom: 56.25%;
}

@keyframes loading {
    0% {
        background-position: 0 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0 50%;
    }
}

.seek-slider, .volume-slider {
    width: 100%;
    background: #35373b;
}

.progressbar-slider {
    -webkit-appearance: none;
    position: relative;
    overflow: hidden;
    height: 4px;
    width: 100%;
    cursor: pointer;
    border-radius: 50%;
}

.progressbar-slider::-webkit-slider-runnable-track {
    background: #ddd;
}

.progressbar-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 0;
    height: 0;
    background: #fff;
    box-shadow: -100vw 0 0 100vw #4c6ef5;
    border: 0 solid #999;
}

.progressbar-slider::-moz-range-track {
    height: 40px;
    background: #ddd;
}

.progressbar-slider::-moz-range-thumb {
    background: #fff;
    height: 40px;
    width: 0;
    border: 0 solid #999;
    border-radius: 0 !important;
    box-shadow: -100vw 0 0 100vw dodgerblue;
    box-sizing: border-box;
}

.progressbar-slider::-ms-fill-lower {
    background: dodgerblue;
}

.progressbar-slider::-ms-thumb {
    background: #fff;
    border: 0 solid #999;
    height: 40px;
    width: 0;
    box-sizing: border-box;
}

.progressbar-slider::-ms-ticks-after {
    display: none;
}

.progressbar-slider::-ms-ticks-before {
    display: none;
}

.progressbar-slider::-ms-track {
    background: #ddd;
    color: transparent;
    height: 40px;
    border: none;
}

.progressbar-slider::-ms-tooltip {
    display: none;
}

.player-controls {
    background: var(--container-bg);
    border-color: var(--border-color);
    border-style: solid;
    border-width: 1px;
    padding: 8px;
    border-radius: 0.5rem;
    margin-top: 1rem;
    min-height: 100px;
}

.controls {
    display: flex;
    gap: 1rem;
    align-items: center;
    justify-content: center;
}

.controls button {
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: solid 1px var(--border-color);
    border-radius: .25rem;
    width: 34px;
    height: 34px;
    background-color: #fff;
    color: white;
    border-color: var(--border-color);
    padding: 0;
    transition: all 0.3s ease-in-out;
}

.controls button:hover {
    border-radius: 20%;
    background: white;
    color: black;
}

.controls button:focus {
    box-shadow: none;
}

.controls .play-pause {
    height: 36px;
    width: 36px;
    display: flex;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: white;
}

.play-pause::before {
    position: absolute;
    content: "";
    height: 43px;
    width: 43px;
    border-radius: inherit;
    background: #ffffff;
}

.play-pause div {
    height: 43px;
    width: 43px;
    line-height: 40px;
    text-align: center;
    background: inherit;
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    position: absolute;
}

.play-pause div:hover {
    transition: none;
}

.control-panel {
    margin-top: 15px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
}

.volume-section {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.volume-icon {
    width: 30px;
    height: 30px;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #f0f0f0;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.volume-icon:hover {
    background-color: #e0e0e0;
}

.volume-svg {
    width: 18px;
    height: 18px;
    fill: #333;
}

.volume-slider {
    -webkit-appearance: none;
    appearance: none;
    width: 100px;
    height: 6px;
    border-radius: 12px;
    outline: none;
    transition: all 0.3s;
}

.volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 14px;
    height: 14px;
    background: #4c6ef5;
    border: 0.25rem solid #fff;
    border-radius: 12px;
    cursor: pointer;
    transition: background 0.3s;
}

.volume-slider::-moz-range-thumb {
    width: 14px;
    height: 14px;
    background: #333;
    border-radius: 50%;
    cursor: pointer;
}

.slider-wrapper {
    position: relative;
    display: inline-flex;
    align-items: center;
}

.volume-slider:hover + .slider-tooltip {
    opacity: 1;
}

.slider-tooltip {
    position: absolute;
    top: -42px;
    transform: translateX(-50%);
    background-color: var(--tearinbot-colors-gray-700);
    color: white;
    font-size: 12px;
    padding: 4px 8px;
    border-radius: 4px;
    white-space: nowrap;
    pointer-events: none;
    opacity: 0;
}

.slider-tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border-width: 5px;
    border-style: solid;
    border-color: var(--tearinbot-colors-gray-700) transparent transparent transparent;
}

.control-btn {
    background: #f0f0f0;
    border: none;
    border-radius: 8px;
    padding: 8px;
    margin: 0 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.control-btn:hover {
    background: #e0e0e0;
}

.control-btn svg {
    width: 24px;
    height: 24px;
    fill: #333;
}

.search-actions-row {
    display: flex;
    -webkit-box-align: center;
    align-items: center;
    -webkit-box-pack: justify;
    justify-content: space-between;
    flex-direction: row;
    gap: 0.5rem;
}

td.tearinbot-table-td {
    color: var(--bs-font-color);
    padding: 16px;
}

.tearinbot-songdescription {
    width: 100%;
    gap: 16px;
    -webkit-user-select: none;
    -moz-user-select: none;
    user-select: none;
    align-items: center;
    display: inline-flex;
    flex-direction: row;
    overflow: hidden;
}

.tearinbot-song-description {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.tearinbot-song-description-text {
    -webkit-tap-highlight-color: transparent;
    -webkit-text-decoration: none;
    text-decoration: none;
    font-size: 14px;
    line-height: 1.45;
    font-weight: normal;
    margin: 0;
    padding: 0;
    color: var(--tearinbot-colors-textSecondary);
}

.avatar-module {
    -webkit-tap-highlight-color: transparent;
    position: relative;
    display: block;
    -webkit-user-select: none;
    -moz-user-select: none;
    user-select: none;
    overflow: hidden;
    border-radius: 6px;
    text-decoration: none;
    padding: 0;
    width: calc(2.375rem * 1);
    height: calc(2.375rem * 1);
    min-width: calc(2.375rem * 1);
}

.avatar-module-circle {
    -webkit-tap-highlight-color: transparent;
    position: relative;
    display: block;
    -webkit-user-select: none;
    -moz-user-select: none;
    user-select: none;
    overflow: hidden;
    border-radius: 24px;
    text-decoration: none;
    padding: 0;
    width: calc(2.375rem * 1);
    height: calc(2.375rem * 1);
    min-width: calc(2.375rem * 1);
}

.avatar-image {
    -o-object-fit: cover;
    object-fit: cover;
    width: 100%;
    height: 100%;
    display: block;
}

.avatar-imageplaceholder {
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    -webkit-user-select: none;
    -moz-user-select: none;
    user-select: none;
    border-radius: 6px;
    font-size: calc(calc(2.375rem * 1) / 2.5);;
    background: var(--tearinbot-colors-gray-750);
    border: calc(0.0625rem * 1) solid transparent;;
    color: #f1f1f2;
}

.tearinbot-songinfo {
    display: flex;
    flex: 1 1 0;
    width: 0;
    flex-direction: column;
}

.songinfo {
    white-space: nowrap;
    color: var(--bs-font-color);
    overflow: hidden;
    text-overflow: ellipsis;
}

.tearinbot-songinfo a {
    text-decoration: none;
    color: inherit;
}

.tearinbot-songinfo a:hover {
    text-decoration: underline;
    color: inherit;
}

.tearinbot-requester-container {
    display: flex;
    gap: 4px;
    flex-direction: column;
    text-align: right;
    white-space: nowrap;
}

.tearintbot-customtime {
    -webkit-tap-highlight-color: transparent;
    -webkit-text-decoration: none;
    text-decoration: none;
    font-size: 16px;
    line-height: 1.55;
    font-weight: normal;
    margin: 0;
    padding: 0;
    color: var(--bs-font-color);
}

.tearinbot-relativetime {
    -webkit-tap-highlight-color: transparent;
    -webkit-text-decoration: none;
    text-decoration: none;
    font-size: 14px;
    line-height: 1.45;
    font-weight: normal;
    margin: 0;
    padding: 0;
    color: var(--tearinbot-colors-textSecondary);
}

.tearinbot-small-icon {
    width: 12px;
    height: 12px;
}

.filter-container {
    display: flex;
    align-items: center;
    gap: 10px;
}

.checkbox-label {
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    user-select: none;
}

.description {
    display: none;
    position: absolute;
    top: -90px;
    left: 0;
    background: #f0f0f0;
    padding: 8px 12px;
    border-radius: 4px;
    font-size: 13px;
    color: #333;
    width: 240px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    z-index: 10;
}

.checkbox-label:hover .description {
    display: block;
}

.heading-text {
    font-family: var(--tearinbot-fonts-heading);
    font-weight: var(--tearinbot-fontWeights-bold);
    font-size: var(--tearinbot-fontSizes-md);
    line-height: 0.4;
}

.settings-panel {
    display: flex;
    border-width: 1px;
    border-style: solid;
    border-radius: var(--tearinbot-radii-lg);
    box-shadow: var(--tearinbot-shadows-sm);
    background-color: var(--tearinbot-colors-backgroundPrimary);
    border-color: var(--tearinbot-colors-borderSecondary);
    gap: var(--tearinbot-space-4);
    padding: var(--tearinbot-space-4);
    -webkit-box-align: center;
    align-items: center;
}

.icon-wrapper {
    width: 1em;
    height: 1em;
    display: inline-block;
    line-height: 1em;
    flex-shrink: 0;
    color: currentcolor;
    background-color: var(--tearinbot-colors-borderSecondary);
    padding: var(--tearinbot-space-3);
    border-radius: var(--tearinbot-radii-md);
}

.panel-content {
    display: flex;
    flex-direction: column;
    gap: 2px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.panel-title {
    font-family: var(--tearinbot-fonts-heading);
    font-weight: var(--tearinbot-fontWeights-bold);
    font-size: var(--tearinbot-fontSizes-sm);
    line-height: 1.2;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.panel-subtitle {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: var(--tearinbot-colors-textSecondary);
    font-size: var(--tearinbot-fontSizes-sm);
    font-weight: var(--tearinbot-fontWeights-normal);
}

.action-container {
    display: flex;
    justify-content: right;
    width: 100%;
    max-width: 200px;
    margin-left: auto;
}

.head-text {
    margin: 0;
    font-weight: 700;
    font-size: 14px;
    line-height: 1.3;
    font-family: -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Helvetica,
    Arial, sans-serif, Apple Color Emoji, Segoe UI Emoji;
    font-family: var(--tearinbot-fonts-heading);
}

.input-number {
    width: 100%;
    height: 2.5rem;
    font-size: 1rem;
    padding-inline-start: 1rem;
    padding-inline-end: calc(1.5rem + 0.5rem);
    border-radius: var(--tearinbot-radii-md);
    min-width: 0;
    outline: transparent solid 2px;
    outline-offset: 2px;
    position: relative;
    appearance: none;
    transition-property: var(--tearinbot-transition-property-common);
    transition-duration: var(--tearinbot-transition-duration-normal);
    vertical-align: top;
    border-width: 2px;
    border-style: solid;
    border-image: initial;
    border-color: var(--tearinbot-colors-transparent);
    background: var(--tearinbot-colors-inputBackground);
    color: var(--bs-font-color);
}

.input-number:hover {
    background: var(--tearinbot-colors-inputBackgroundHover);
}

.input-number:focus-visible {
    background: var(--tearinbot-colors-transparent);
    border-color: rgb(99, 177, 250);
}

#song-form.form-control:focus {
    box-shadow: none;
}

#song-form textarea.form-control {
    min-height: 5rem;
}

#song-form.form-control::placeholder {
    color: var(--tearinbot-colors-tearinbot-placeholder-color) !important;
}

#song-form.form-control {
    min-width: 0;
    outline: transparent solid 2px;
    outline-offset: 2px;
    position: relative;
    transition-property: background-color, border-color, color, fill, stroke, opacity, box-shadow, transform;
    transition-duration: 200ms;
    border-width: 1px;
    border-style: solid;
    border-image: none;
    border-color: var(--tearinbot-colors-tearinbot-border-color);
    background: var(--tearinbot-colors-backgroundSecondary);
    color: var(--tearinbot-colors-textPrimary);
}

#import-form.form-control:focus {
    box-shadow: none;
}

#import-form textarea.form-control {
    min-height: 5rem;
}

#import-form.form-control::placeholder {
    color: var(--tearinbot-colors-tearinbot-placeholder-color) !important;
}

#import-form.form-control {
    min-width: 0;
    outline: transparent solid 2px;
    outline-offset: 2px;
    position: relative;
    transition-property: background-color, border-color, color, fill, stroke, opacity, box-shadow, transform;
    transition-duration: 200ms;
    border-width: 1px;
    border-style: solid;
    border-image: none;
    border-color: var(--tearinbot-colors-tearinbot-border-color);
    background: var(--tearinbot-colors-backgroundSecondary);
    color: var(--tearinbot-colors-textPrimary);
}