html {
    font-size: 16px;
}

:root {
    /* Color variables */
    /* Base */
    --black: hsl(0, 0%, 0%);
    --black-800: hsl(0, 0%, 5%);

    --base-900: hsla(0, 0%, 5%, 0.9);
    --base-800: hsla(0, 0%, 10%, 0.8);
    --base-700: hsla(0, 0%, 10%, 0.7);
    --base-600: hsla(0, 0%, 10%, 0.6);
    --base-500: hsla(0, 0%, 10%, 0.5);
    --base-400: hsla(0, 0%, 0%, 0.4);
    --base-300: hsla(0, 0%, 10%, 0.3);
    --base-200: hsla(0, 0%, 10%, 0.2);
    --base-100: hsla(0, 0%, 10%, 0.1);
    --base-000: hsla(0, 0%, 10%, 0.05);

    /* White */

    --white: hsl(0, 0%, 100%);
    --white-800: hsla(0, 0%, 100%, 0.8);
    --white-700: hsla(0, 0%, 100%, 0.7);
    --white-600: hsla(0, 0%, 100%, 0.6);
    --white-500: hsla(0, 0%, 100%, 0.5);
    --white-400: hsla(0, 0%, 100%, 0.4);
    --white-300: hsla(0, 0%, 100%, 0.3);
    --white-200: hsla(0, 0%, 100%, 0.2);
    --white-100: hsla(0, 0%, 100%, 0.1);
    --white-000: hsla(0, 0%, 100%, 0.05);

    /* Gray */
    /* --gray-1000: hsla(240, 6%, 3% 0.9); */
    --gray-900: hsl(240, 6%, 9%);
    --gray-800: hsl(240, 4%, 17%);
    --gray-700: hsl(240, 5%, 26%);
    --gray-600: hsl(240, 5%, 34%);
    --gray-500: hsl(240, 3%, 47%);
    --gray-400: hsl(240, 5%, 65%);
    --gray-300: hsl(240, 4%, 82%);
    --gray-200: hsl(240, 5%, 90%);
    --gray-100: hsl(240, 5%, 95%);
    --gray-000: hsl(0, 0%, 98%);

    /* Overlay */
    --gray-overlay-800: hsla(240, 5%, 16%, 0.8);
    --gray-overlay-700: hsla(240, 5%, 16%, 0.7);
    --gray-overlay-600: hsla(240, 5%, 16%, 0.6);
    --black-overlay-1: hsla(0, 0%, 0%, 0.7);

    /* Light Blue */
    --light-blue-900: hsl(202, 95%, 20%);
    --light-blue-800: hsl(201, 90%, 27%);
    --light-blue-700: hsl(201, 96%, 32%);
    --light-blue-600: hsl(200, 100%, 40%);
    --light-blue-500: hsl(199, 89%, 48%);
    --light-blue-400: hsl(198, 93%, 60%);
    --light-blue-300: hsl(199, 95%, 74%);
    --light-blue-200: hsl(201, 94%, 86%);
    --light-blue-100: hsl(203, 94%, 93%);
    --light-blue-000: hsl(204, 100%, 98%);

    /* Red */
    --red-500: hsl(6, 89%, 54%);

    /* Color styles */
    --primary: var(--light-blue-700);
    --primary-2: var(--light-blue-900);

    --text-primary: var(--white);
    --text-secondary: var(--white-500);
    --text-tertiary: var(--white-200);

    --surface-0: var(--black);
    --surface-1: var(--gray-800);
    --surface-2: var(--gray-700);

    /* Shadow */
    --text-shadow-1: 0px 0.5px 8px hsla(0, 0%, 0%, 0.6);
    --text-shadow-2: 0px 0.25px 8px hsla(0, 0%, 0%, 0.5);
    --box-0: 0px 1px 3px rgba(0, 0, 0, 0.25);
    --box-1: 0px 2px 8px hsla(0, 0%, 0%, 0.6);
    --box-2: 0px 2px 16px hsla(0, 0%, 0%, 1);
    --glow-0: 0px 2px 96px hsla(0, 0%, 100%, 1);

    /* COMPONENT COLORS ========================================================================================== */
    --card-surface: var(--gray-900);
    --card-surface-2: var(--base-800);
    --card-surface-3: var(--gray-900);
    --secondary-button: var(--gray-overlay-800);
    --secondary-button-hover: var(--black-800);
    --secondary-button-active: var(--light-blue-800);
    --input-field: var(--gray-800);
}

body {
    /* margin: 0; */
    font-family: -apple-system, BlinkMacSystemFont, Segoe UI, Roboto,
        Helvetica Neue, Arial, Noto Sans, Liberation Sans, sans-serif,
        "Apple Color Emoji", "Segoe UI Emoji", Segoe UI Symbol,
        "Noto Color Emoji";
    font-size: 0.875rem;
    font-weight: 400;
    line-height: 1.5;
    color: var(--text-primary);
    text-align: left;
    background-color: var(--black);
}

.bg-secondary {
    background-color: var(--surface-1) !important;
}

a.bg-secondary:hover,
a.bg-secondary:focus,
button.bg-secondary:hover,
button.bg-secondary:focus {
    background-color: var(--primary-2) !important;
}

/* SECTION ———————————————————————————————————————————————————————————————— type styles */

h1,
h2,
h3,
h4,
h5,
h6,
.h1,
.h2,
.h3,
.h4,
.h5,
.h6 {
    margin-bottom: 0.5rem;
    font-weight: 500;
    line-height: 1.2;
}

h1,
.h1 {
    font-size: 1.5rem !important;
    font-weight: 800;
    margin-bottom: 1rem;
    margin-left: 0.75rem;
}
h2,
.h2 {
    font-size: 2rem;
}
h3,
.h3 {
    font-size: 1.75rem;
}
h4,
.h4 {
    font-size: 1.5rem;
}
h5,
.h5 {
    font-weight: 600;
    font-size: 1.25rem;
}
h6,
.h6 {
    font-size: 1rem;
}

/* SECTION ———————————————————————————————————————————————————————————————— navbar */

/* Changes the background color of the navbar */
.bg-dark {
    background-color: var(--black) !important;
}

.navbar-brand {
    padding: 0px !important;
}
/* 
.btn-toolbar {
    margin-top: 1rem;
} */

button.minimal.donate.btn.btn-primary {
    display: none;
}

.sticky.detail-header {
    display: block;
    min-height: 50px;
    padding: unset;
    position: fixed;
    top: 40px;
    z-index: 10;
}

/* SECTION ———————————————————————————————————————————————————————————————— button */

.btn {
    display: inline-block;
    font-weight: 500;
    text-align: center;
    vertical-align: middle;
    user-select: none;
    border: 0px solid transparent;
    padding: 0.45rem 0.75rem;
    height: 100% !important;
    font-size: 0.875rem !important;
    line-height: 1.5;
    border-radius: 0.5rem;
    /* transition: color 0.15s ease-in-out, background-color 0.15s ease-in-out,
        border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out; */
}

.favorite-button {
    height: 36px !important;
}

.btn-primary {
    color: var(--text-primary);
    /* background-color: var(--primary); */
    border: none !important;
    /* height: 100%; */
    transition: all 0.1s !important;
    /* border-radius: 0.5rem; */
    /* box-shadow: var(--shadow-sm); */
}

/* .btn-primary,
.btn-secondary {
    box-shadow: var(--box-0);
} */

button.btn.favorite-button.favorite {
    color: #ff7373;
    filter: drop-shadow(0 0 2px rgba(0, 0, 0, 0.9));
}

.btn-secondary {
    color: var(--text-primary);
    background-color: var(--secondary-button);
    border: none !important;
    /* height: 100%; */
    transition: all 0.1s !important;
    /* box-shadow: var(--shadow-sm); */
}

.btn-secondary:hover {
    color: var(--text-primary);
    background-color: var(--secondary-button-hover);
    border: none;
}
.btn-secondary:focus,
.btn-secondary.focus {
    color: var(--text-primary);
    background-color: var(--surface-1);
    border-color: #25313a;
    box-shadow: 0 0 0 0.2rem rgba(87, 102, 114, 0.5);
}
.btn.disabled,
.btn:disabled {
    color: var(--text-secondary);
    opacity: 0.4;
}

.btn-secondary.disabled,
.btn-secondary:disabled {
    background-color: var(--surface-2);
}

.btn-secondary:not(:disabled):not(.disabled):active,
.btn-secondary:not(:disabled):not(.disabled).active,
.show > .btn-secondary.dropdown-toggle {
    color: var(--text-primary);
    background-color: var(--secondary-button-active);
    /* border: #f00; */
}

/* .btn-secondary:not(:disabled):not(.disabled):active:hover,
.btn-secondary:not(:disabled):not(.disabled).active:hover {
    color: var(--text-primary);
    background-color: var(--red);
} */

.btn-secondary:not(:disabled):not(.disabled):active:focus,
.btn-secondary:not(:disabled):not(.disabled).active:focus,
.show > .btn-secondary.dropdown-toggle:focus {
    box-shadow: 0 0 0 0.2rem rgba(87, 102, 114, 0.5);
}

.dropdown 
/* .dropdown-toggle .btn .btn-secondary */ {
    height: 100%;
}

.react-datepicker__input-container .btn-secondary {
    border-radius: 0rem 0.5rem 0.5rem 0rem;
}

.star-fill-0,
.star-fill-100 {
    padding: 0px !important;
}

.rating-stars .btn-secondary {
    box-shadow: none !important;
}
/* 
.detail-header-image .btn {
    height: 100% !important;
} */

.btn.active:not(.disabled),
.btn.active.minimal:not(.disabled) {
    background-color: var(--primary);
    color: var(--white);
}

/* SECTION ———————————————————————————————————————————————————————————————— buttons / pagination buttons */

.pagination {
    display: flex;
    padding-left: 0;
    list-style: none;
    border-radius: 0.25rem;
}

/* .filter-container,
.operation-container {
    align-items: center;
    display: flex;
    justify-content: center;
    margin: 1rem auto;
} */

/* SECTION ———————————————————————————————————————————————————————————————— input */

/* div.react-select__control {
    background-color: var(--black);
    border-color: #394b59;
    color: #f5f8fa;
    cursor: pointer;
    white-space: nowrap;
} */

.form-control::placeholder {
    color: var(--text-tertiary);
    opacity: 1;
}

.form-control,
div.react-select__control {
    width: 100%;
    font-size: 0.875rem;
    font-weight: 400;
    line-height: 1.5;
    color: var(--text-primary) !important;
    background-color: var(--input-field) !important;
    border: 0px solid var(--gray-800) !important;
    border-radius: 0.5rem;
}

.input-control,
.text-input {
    border: 0;
    box-shadow: none;
    color: #f5f8fa;
    height: 36px;
}

.query-text-field-clear .fa-icon {
    align-self: center;
    aspect-ratio: 1/1;
    display: block;
}

.query-text-field-clear {
    background-color: transparent !important;
    color: var(--text-tertiary) !important;
    font-size: 0.875rem;
    margin: 0.25rem 0.25rem !important;
    padding: 0.5rem;
    /* height: calc(100% - 0.5rem); */
    aspect-ratio: 1/1;
    position: absolute;
    z-index: 4;
    align-self: center;
    border-radius: 0.3rem;
    box-shadow: none !important;
}

.query-text-field-clear:hover,
.query-text-field-clear:focus,
.query-text-field-clear:active,
.query-text-field-clear:not(:disabled):not(.disabled):active,
.query-text-field-clear:not(:disabled):not(.disabled):active:focus {
    color: var(--white-400) !important;
}

div.react-select__menu,
div.dropdown-menu {
    color: var(--text-primary);
    z-index: 16;
    box-shadow: var(--box-2);
    margin-top: 0.5rem;
    background-color: var(--surface-1);
}

/* div.react-select__control {
    background-color: #394b59;
    border-color: #394b59;
    color: #f5f8fa;
    cursor: pointer;
    white-space: nowrap;
} */
div.react-select__control .react-select__single-value,
div.react-select__control .react-select__input-container {
    color: #f5f8fa;
}
div.react-select__control .react-select__multi-value {
    background-color: var(--surface-0);
    border-radius: 0.25rem;
}

div.react-select__control .react-select__multi-value .performer-disambiguation {
    color: var(--text-secondary);
    font-weight: 300;
    font-size: 0.75rem;
}

.react-select__multi-value__label {
    color: var(--text-primary);
    font-weight: 500;
    font-size: 0.75rem !important;
    /* font-size: 100% !important; */
}

.react-select__multi-value__remove:hover {
    background-color: var(--surface-0) !important;
    color: var(--red-500);
}

/* SECTION ———————————————————————————————————————————————————————————————— modals */

.modal-header,
.modal-body,
.modal-footer {
    background-color: transparent;
    color: var(--text-primary);
}

.edit-filter-dialog .modal-body {
    padding: 0px;
}

.edit-filter-dialog .criterion-list {
    flex-direction: column;
    flex-wrap: nowrap;
    max-height: 550px;
    overflow-y: auto;
    padding: 8px;
}

.edit-filter-dialog .criterion-list .card {
    border: 1px solid var(--overlay-black-2);
    box-shadow: none;
    margin: 0 0 -1px;
    padding: 0;
}

.edit-filter-dialog .filter-tags {
    border-top: 0px solid var(--text-primary);
    padding: 16px;
    background-color: transparent;
    margin: 8px;
    border-radius: 8px;
}

.accordion > .card > .card-header {
    border-radius: 0;
    margin-bottom: 0px;
}

.modal-backdrop.show {
    opacity: 0.7;
    background-color: rgb(0, 0, 0);
}

.modal {
    backdrop-filter: blur(4px);
}

.modal-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    padding: 1rem;
    border-bottom: 1px solid var(--text-primary) fff2b;
    border-top-left-radius: calc(0.3rem - 1px);
    border-top-right-radius: calc(0.3rem - 1px);
}

.modal-content {
    position: relative;
    display: flex;
    flex-direction: column;
    width: 100%;
    pointer-events: auto;
    background-color: rgba(20, 20, 20, 1);
    backdrop-filter: blur(48px);
    background-clip: padding-box;
    border: 2px solid rgba(255, 255, 255, 0.05);
    border-radius: 0.75rem;
    outline: 0;
    box-shadow: 0px 8px 40px 2px rgba(0, 0, 0, 0.6);
}

@media (min-width: 576px) {
    .modal-dialog {
        max-width: 700px;
        margin: 1.75rem auto;
    }
}

/* SECTION ———————————————————————————————————————————————————————————————— table */

.markdown table {
    display: block;
    margin-bottom: 16px;
    overflow: auto;
    width: 100%;
    border: 2px solid rgb(39, 39, 39);
    border-radius: 12px;
}
.markdown table tr {
    border-top: 1px solid rgb(38, 38, 38);
    background-color: #000000 !important;
}

.markdown table th {
    border-top: 1px solid rgba(0, 0, 0, 0.1) !important;
    background-color: rgb(23, 23, 23) !important;
}

/* .markdown table tr:nth-child(2n) {
    background-color: rgb(19, 19, 19) !important;
} */
.markdown table td,
.markdown table th {
    border: 0px solid rgb(255, 255, 255, 0);
    padding: 10px 16px;
}

/* SECTION ———————————————————————————————————————————————————————————————— filter tags */

.filter-tags {
    margin: 0.6rem auto 1rem auto !important;
}

/* SECTION ———————————————————————————————————————————————————————————————— tag item */

.tag-item {
    background-color: var(--surface-1);
    color: var(--text-primary);
    font-size: 12px;
    font-weight: 400;
    line-height: 16px;
    margin: 5px;
    padding: 5px 12px;
    border-radius: 0.5rem;
    height: 26px;
}

.tag-item .btn {
    opacity: 1;
    color: var(--white-100);
    /* background-color: #00000000; */
    border-radius: 3px;
    display: none;
}

.tag-item:active .btn,
.tag-item:hover .btn {
    opacity: 1;
    color: var(--red-500);
    background-color: transparent !important;
    border-radius: 3px;
    display: inline-block;
    transition: display 0.5s;
    height: 16px;
}

.badge-info {
    color: #fff;
    background-color: var(--primary);
}

/* SECTION ———————————————————————————————————————————————————————————————— scene tagger */

.search-item {
    background-color: var(--bg-2);
    border-radius: 3px;
    padding: 1rem;
}

.input-group-text {
    display: flex;
    align-items: center;
    padding: 0.375rem 0.75rem;
    margin-bottom: 0;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.5;
    color: var(--text-secondary);
    text-align: center;
    white-space: nowrap;
    background-color: var(--surface-0);
    border: 1px solid var(--surface-0);
    border-radius: 0.25rem;
}

.search-result {
    background-color: var(--bg-1);
    padding: 1rem 0;
}

.search-result:hover {
    background-color: var(--bg-1);
    cursor: pointer;
}

.tagger-container .scene-card-preview {
    border-radius: 3px;
    margin-bottom: 0;
    max-height: 240px;
    overflow: hidden;
    width: 300px;
}

/* SECTION ———————————————————————————————————————————————————————————————— card */

.card {
    background-color: var(--card-surface);
    border-radius: 0.75rem;
    margin: 0.5rem;
    margin-bottom: 1rem;
    box-shadow: none;
}

.grid-card .progress-bar {
    background-color: var(--base-300);
    bottom: 5px;
    display: block;
    height: 3px;
    position: absolute;
    width: 100%;
}

.grid-card .progress-indicator {
    background-color: var(primary);
    height: 3px;
}

.grid-card:hover .progress-bar,
.grid-card:hover .progress-indicator {
    opacity: 0;
    transition: opacity 0.5s;
}

/* grid card checkbox */

.grid-card .card-check {
    left: 0.5rem;
    margin-top: -12px;
    opacity: 0;
    padding-left: 15px;
    position: absolute;
    top: 0.8rem;
    width: 1.5rem;
    z-index: 1;
}

.grid-card:hover .card-check {
    opacity: 0.1;
    transition: opacity 0.3s;
}

.grid-card:hover .card-check:checked {
    opacity: 0.75;
}

.grid-card .card-check:checked {
    opacity: 0.75;
}

/* SECTION ———————————————————————————————————————————————————————————————— scene performers cards */

.scene-performers .performer-card {
    width: 13rem;
}

.scene-performers .performer-card .performer-name {
    font-size: 1.125rem;
    font-weight: 700;
    line-height: 0.9rem;
}

.scene-performers .performer-card .performer-card__age {
    font-size: 0.75rem;
    font-weight: 400;
    line-height: 0.5;
    display: none;
}

.scene-performers .performer-card .btn-primary {
    font-size: 0.75rem !important;
    font-weight: 400;
    line-height: 0.5;
}

.scene-performers .performer-card .card-section {
    font-size: 0.75rem !important;
    font-weight: 400;
    line-height: 0.5;
    padding: 0.5rem 1rem 0.5rem;
}

.scene-performers .performer-card .performer-card-image {
    height: 18rem;
}

.scene-performers .performer-card .btn-primary .fa-icon {
    margin: 0rem 0.5rem 0rem 0rem;
}

.scene-performers .gender-icon {
    display: none;
}

/* card popovers ————————— */

.card-popovers .btn {
    font-size: 0.75rem;
    padding: 0.25rem !important;
    vertical-align: middle;
}

.card-popovers .btn span {
    top: auto;
}

.card-popovers .btn .fa-icon {
    height: 0.75rem;
    vertical-align: middle;
    margin: 0 0.5rem;
}

/* SECTION ———————————————————————————————————————————————————————————————— scene card */

.scene-specs-overlay {
    bottom: 1rem;
    background-color: var(--base-300);
    backdrop-filter: blur(4px);
    border-radius: 0.5rem;
    padding: 0.2rem 0.4rem;
    color: #f5f8fa;
    display: block;
    font-weight: 500;
    letter-spacing: -0.03rem;
    position: absolute;
    right: 0.7rem;
    text-shadow: 0px 0.25px 8px hsla(0, 0%, 0%, 0.5);
    font-size: 0.75rem;
}

.card-section {
    padding: 0.5rem;
}

/* .scene-card-preview-image,
.scene-card-preview-video,
.gallery-card-image,
.movie-card-image {
    border-radius: 0.75rem !important;
} */

.movie-card-image {
    aspect-ratio: 2/3;
    object-fit: cover;
}

/* Set Opacity Studio Logo to 100% */
.studio-overlay {
    opacity: 100%;
}

.scene-card .scene-specs-overlay,
.scene-card .rating-banner,
.scene-card .scene-studio-overlay,
.gallery-card .scene-specs-overlay,
.gallery-card .rating-banner,
.gallery-card .scene-studio-overlay {
    transition: opacity 0.5s;
}

.scene-card:hover .scene-specs-overlay,
.scene-card:hover .rating-banner,
.scene-card:hover .scene-studio-overlay,
.scene-card:active .scene-specs-overlay,
.scene-card:active .rating-banner,
.scene-card:active .scene-studio-overlay,
.gallery-card:hover .scene-specs-overlay,
.gallery-card:hover .rating-banner,
.gallery-card:hover .scene-studio-overlay,
.gallery-card:active .scene-specs-overlay,
.gallery-card:active .rating-banner,
.gallery-card:active .scene-studio-overlay {
    opacity: 0;
    transition: opacity 0.5s;
}

.overlay-resolution {
    font-weight: 800;
}

.scene-card__date {
    color: var(--text-tertiary);
    font-weight: 600;
    line-height: 2;
}

.scene-card__description {
    color: var(--text-secondary);
    font-size: 0.75rem;
    line-height: 1.25;
    -webkit-line-clamp: 5 !important;
}

.tooltip-inner {
    text-align: left;
}

:focus-visible {
    outline: -webkit-focus-ring-color auto 0px;
}

/* SECTION ———————————————————————————————————————————————————————————————— card thumbnail sizing */

/* slightly enlarge the thumbnail of portrait video thumbnail image in scene cards */
/* .portrait .scene-card-preview-image {
    height: 125%;
    align-self: center;
}

.scene-card:hover .scene-card-preview-image {
    opacity: 0;
    transition: opacity 0.3s;
}

.scene-card .scene-card-preview-image {
    opacity: 1;
    transition: opacity 0.3s;
}

.scene-card-preview {
    overflow: hidden;
}

@media (min-width: 576px) {
    .zoom-0 {
        width: 240px;
    }
    .zoom-0 .scene-card-preview {
        height: 135px;
    }
    .zoom-0 .portrait {
        height: 135px;
    }
    .zoom-0 .gallery-card-image,
    .zoom-0 .tag-card-image {
        max-height: 180px;
    }
    .zoom-1 {
        width: 320px;
    }
    .zoom-1 .scene-card-preview {
        height: 180px;
    }
    .zoom-1 .portrait {
        height: 180px;
    }
    .zoom-1 .gallery-card-image,
    .zoom-1 .tag-card-image {
        max-height: 240px;
    }
    .zoom-1 .image-card-preview {
        height: 240px;
    }
    .zoom-2 {
        width: 480px;
    }
    .zoom-2 .scene-card-preview {
        height: 270px;
    }
    .zoom-2 .portrait {
        height: 270px;
    }
    .zoom-2 .gallery-card-image,
    .zoom-2 .tag-card-image {
        max-height: 360px;
    }
    .zoom-2 .image-card-preview {
        height: 360px;
    }
    .zoom-3 {
        width: 640px;
    }
    .zoom-3 .scene-card-preview {
        height: 360px;
    }
    .zoom-3 .portrait {
        height: 360px;
    }
    .zoom-3 .tag-card-image,
    .zoom-3 .gallery-card-image {
        max-height: 480px;
    }
    .zoom-3 .image-card-preview {
        height: 480px;
    }
} */

/* SECTION ———————————————————————————————————————————————————————————————— card / popovers */

.popover {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1060;
    display: block;
    max-width: 276px;
    font-family: -apple-system, BlinkMacSystemFont, Segoe UI, Roboto,
        Helvetica Neue, Arial, Noto Sans, Liberation Sans, sans-serif,
        "Apple Color Emoji", "Segoe UI Emoji", Segoe UI Symbol,
        "Noto Color Emoji";
    font-style: normal;
    font-weight: 400;
    line-height: 1.5;
    text-align: left;
    text-align: start;
    text-decoration: none;
    text-shadow: none;
    text-transform: none;
    letter-spacing: normal;
    word-break: normal;
    white-space: normal;
    word-spacing: normal;
    line-break: auto;
    font-size: 0.875rem;
    word-wrap: break-word;
    background-color: var(--base-800);
    backdrop-filter: blur(40px);
    /* background-clip: padding-box; */
    border: 1px solid rgba(0, 0, 0, 0.2);
    border-radius: 0.875rem;
    padding: 6px 10px 4px 10px;
}

.popover .arrow:before,
.popover .arrow:after {
    position: absolute;
    display: block;
    content: "";
    border-color: transparent;
    border-style: solid;
    /* color: #ff0000; */
}

/* Zoom Performers image when Hover*/
.hover-popover-content {
    max-width: initial;
    vertical-align: middle;
}
.image-thumbnail:hover {
    /* height: 120px; */
    transition: 0.1s;
}

.tag-popover-card {
    padding: 0px;
    text-align: left;
}
.tag-popover-card .card {
    border-radius: 0px !important;
    margin: 4px 0px 0px 0px;
}

.tag-popover-card .tag-card-image {
    border-radius: 0.25rem;
}

/* SECTION ———————————————————————————————————————————————————————————————— rating banner */

.rating-banner {
    color: var(--text-primary);
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.3px;
    line-height: 1rem;
    padding: 2px 8px;
    position: absolute;
    text-align: center;
    text-size-adjust: none;
    text-transform: uppercase;
    top: 8px;
    left: 8px;
    transform: rotate(0deg);
    border-radius: 0.5rem;
    border: 1pt solid hsla(0, 0%, 100%, 0.1);
    box-shadow: 1px 1px 8px #00000016;
    text-shadow: 0px 0.5px 8px #00000099;
    backdrop-filter: blur(4px);
}

.rating-5 {
    background: hsla(36, 100%, 49%, 0.4);
}

.rating-4 {
    background: hsla(0, 80%, 63%, 0.4);
}

.rating-3 {
    background: hsla(328, 48%, 45%, 0.4);
}

.rating-2 {
    background: hsla(267, 33%, 33%, 0.4);
}

.rating-1 {
    background: hsla(206, 75%, 19%, 0.4);
}

/* SECTION ———————————————————————————————————————————————————————————————— tag, image, and gallery card */

.tag-card,
.gallery-card,
.image-card {
    padding: 0rem;
}

.tag-card-image,
.gallery-card-image {
    /* aspect-ratio: 1/1; */
    display: block;
    margin: 0 auto;
    object-fit: cover;
}

.image-card-preview.portrait,
.image-card-preview-image {
    object-fit: contain;
    object-position: center center !important;
}

.zoom-1 .image-card-preview {
    height: 320px;
}

.zoom-1 .gallery-card-image,
.zoom-1 .tag-card-image {
    max-height: 360px;
    height: 360px;
    object-fit: contain;
}

.gallery-card-image {
    object-fit: contain !important;
}

/* SECTION ———————————————————————————————————————————————————————————————— image lightbox */

.Lightbox {
    background-color: var(--black-overlay-1);
    backdrop-filter: blur(4px);
}

/* SECTION ———————————————————————————————————————————————————————————————— performers, studios, tags */

#performer-page .detail-header .background-image-container {
    bottom: -0.2rem;
    left: 0;
    opacity: 0.3 !important;
    position: absolute;
    right: 0;
    top: -0.2rem;
    z-index: auto;
    width: 100% !important;
    object-position: 50% 50% !important;
}

#performer-page .detail-header .background-image-container .background-image {
    filter: blur(12px) !important;
    height: 100%;
    object-fit: cover;
    object-position: 50% 20% !important;
    width: 100% !important;
}

#performer-page .detail-header-image img {
    max-width: 20rem;
    /* aspect-ratio: 3/4; */
    object-fit: cover;
    object-position: top;
    transition: 0.5s;
}

#performer-page .detail-header.collapsed .detail-header-image img {
    max-width: 10rem;
    aspect-ratio: 2/3;
    object-fit: cover;
    object-position: top;
    transition: 0.5s;
}

#performer-page .detail-header.edit .detail-header-image img {
    max-width: 24rem;
    object-fit: cover;
    object-position: top;
    transition: 0.5s;
}

#performer-page .detail-item .details,
#group-page .detail-item .synopsis {
    max-width: 600px;
    /* font-size: 12px; */
}

#performer-page .detail-item-value {
    color: var(text-primary);
}

/*---------*/

#studio-page .detail-header .background-image-container {
    bottom: -0.2rem;
    left: 0;
    opacity: 0.25 !important;
    position: absolute;
    right: 0;
    top: -0.2rem;
    z-index: auto;
    width: 100% !important;
    object-position: 50% 50% !important;
}

#studio-page .detail-header .background-image-container .background-image {
    filter: blur(32px) !important;
    height: 100%;
    object-fit: cover;
    object-position: 50% 50% !important;
    width: 100% !important;
}

/* .details-edit {
    box-shadow: var(--box-2);
} */

/* SECTION ———————————————————————————————————————————————————————————————— settings */

@media (min-width: 576px) and (min-height: 200px) {
    #tasks-panel .tasks-panel-queue {
        /* background-color: var(--surface-0); */
        margin-top: 1rem;
        margin-bottom: 1rem;
        padding: 1rem;
        position: sticky;
        top: 2.8rem;
        z-index: 2;
        backdrop-filter: blur(8px);
        box-shadow: var(--box-2);
        border: 1px solid var(--white-100);
        background-color: var(--card-surface-2);
        border-radius: 1rem;
        display: flex;
        flex-direction: column;
        height: 100%;
        max-height: 250px;
        transition: height 0.5s ease;
    }
}

.job-table.card {
    height: 100%;
    margin-bottom: 20px;
    overflow-y: auto;
    padding: 0.5rem;
    background-color: var(--bg-1);
    border-radius: 0.75rem;
    width: 100%;
}

.setting-section .card {
    background-color: var(--card-surface-3);
    border-radius: 0.5rem;
    padding: 0px !important;
}

#setting-dialog .sub-heading {
    font-size: 0.8rem;
    margin-top: 0.5rem;
}

.setting-section .sub-heading {
    font-size: 0.8rem;
    margin-top: 0.5rem;
    color: var(--text-secondary);
}

.setting-section .setting-group > .setting:first-child {
    border-bottom: none;
    padding-bottom: 0.5rem;
}

.setting-section .setting > div:first-child {
    flex-grow: 0;
    max-width: 75%;
}

.folder-list {
    list-style-type: none;
    margin: 0;
    max-height: 95vw;
    overflow-x: auto;
    padding-bottom: 0.5rem;
    padding-top: 1rem;
    /* font-size: 1.25rem; */
}

.folder-list-item span {
    font-size: 1rem;
    line-height: 2.1;
    font-weight: 500;
    /* color: var(--text-secondary); */
    /* opacity: 0.8; */
}

.folder-list-item:hover span {
    opacity: 1;
}

.folder-list-item:hover {
    background-color: var(--black);
}

.folder-list-item .btn-link:hover {
    text-decoration: none !important;
}

/* SECTION ———————————————————————————————————————————————————————————————— scene */

#scene-edit-details .edit-buttons-container {
    background-color: var(--surface-0);
    position: sticky;
    top: 0;
    z-index: 3;
}

#scene-edit-details .edit-buttons-container .btn,
#scene-edit-details .edit-buttons-container .btn-group {
    height: 36px;
}

/* #scene-edit-details .edit-buttons-container .btn-secondary {
    height: 100px;
} */

.scene-tabs,
.scene-player-container {
    padding-left: 15px;
    position: relative;
    width: 100%;
    /* background-color: var(--bg-1); */
}

.scene-header-container .TruncatedText {
    -webkit-box-orient: vertical;
    display: block;
    overflow: hidden;
    white-space: pre-line;
}

/* .scene-tabs {
    flex: 0 0 500px;
    max-width: 500px;
    overflow: auto;
} */

/* .scene-player-container {
    flex: 0 0 calc(100% - 515px);
    max-width: calc(100% - 515px);
    padding-left: 0;
} */

/* SECTION ———————————————————————————————————————————————————————————————— scene / video player */

.video-js .vjs-big-play-button,
.video-js .vjs-big-play-button:hover,
.video-js .vjs-big-play-button:focus,
.video-js:hover .vjs-big-play-button {
    /* background-color: #1a1a1a4a; */
    /* backdrop-filter: blur(8px); */
    border: 0px solid hsla(0, 0%, 100%, 0.1);
    text-shadow: 0px 4px 48px #000000fa;
    font-size: 10em;
    /* text-shadow: 0px 0px 8px hsla(0%, 0%, 0%, 1); */
}

.video-js .vjs-big-play-button .vjs-icon-placeholder {
    box-shadow: 0px 2px 8px hsla(0%, 0%, 0%, 1) !important;
    /* backdrop-filter: blur(16px); */
}

/* SECTION ———————————————————————————————————————————————————————————————— stats */

.stats .title,
.stats .heading {
    text-align: left;
}

.stats .title {
    margin-bottom: 0rem;
    font-weight: 800;
    font-size: 3vw;
    letter-spacing: 0.1px;
}

.stats .heading {
    margin-bottom: 4rem;
    font-weight: 600;
    color: var(--text-tertiary);
}

.stats-element {
    /* flex-grow: 5; */
    /* width: 2rem !important; */
}

.col-sm-8 {
    flex: 0 0 66.66666667%;
    max-width: 90%;
}

.detail-header {
    background-color: #000000;
    min-height: 15rem;
    overflow: hidden;
    padding: 1rem;
    position: relative;
    transition: 0.3s;
    width: 100%;
    z-index: 11;
}

.detail-header .background-image-container {
    bottom: -0.2rem;
    left: 0;
    opacity: 0.2;
    position: absolute;
    right: 0;
    top: -0.2rem;
    z-index: auto;
}

.detail-header .background-image-container .background-image {
    filter: blur(16px);
    height: 100%;
    object-fit: cover;
    object-position: 50% 30%;
    width: 100%;
}

