@import url('https://fonts.googleapis.com/css2?family=Inter+Tight:ital,wght@0,100..900;1,100..900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Oswald:wght@400;500;600;700&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

label, span {
    cursor: default;
}

/* Color schemes */
:root {
    --hs-lightgrey: #9a9a9a;
    --hs-mediumgrey: #444;
    --hs-darkergrey: #1e1e1e;
    --hs-darkgrey: #0b0c11;
    --hs-red: #380000;
    --hs-darkred: #050000;
    --hs-brightred: #aa0000;
    --hs-white: #e9e9e9;
    --hs-taggrey: #252525;
    --hs-form-backgroundcolor: rgba(56, 0, 0, 0.5);
    --modern-purple: #11101d;
    --input-gray: #3e0000;
    --border-gray: rgba(89, 89, 89, 0.51);
}

/* Flash messages */
.flash-container {
    top: 24px;
    right: 24px;
    max-width: min(360px, 90vw);
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 12px;
    pointer-events: none;
}

.flash-container .flash-message {
    pointer-events: auto;
    background: rgba(11, 12, 17, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 12px 44px 12px 18px;
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.2px;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    margin-bottom: 0;
}

.flash-container .flash-message:before {
    content: "";
    left: 0;
    width: 4px;
    border-radius: 12px 0 0 12px;
}

.flash-container .flash-message .flash-progress {
    height: 4px;
    background: rgba(255, 255, 255, 0.25);
}

.flash-container .flash-message.flash-success {
    background: linear-gradient(135deg, rgba(18, 56, 31, 0.95), rgba(11, 12, 17, 0.95)) !important;
    border-color: rgba(76, 175, 80, 0.5);
}

.flash-container .flash-message.flash-success:before {
    background-color: #4caf50;
}

.flash-container .flash-message.flash-success .flash-progress {
    background: rgba(76, 175, 80, 0.6);
}

.flash-container .flash-message.flash-info {
    background: linear-gradient(135deg, rgba(15, 43, 74, 0.95), rgba(11, 12, 17, 0.95));
    border-color: rgba(0, 116, 217, 0.5);
}

.flash-container .flash-message.flash-info:before {
    background-color: #0074d9;
}

.flash-container .flash-message.flash-info .flash-progress {
    background: rgba(0, 116, 217, 0.6);
}

.flash-container .flash-message.flash-warning {
    background: linear-gradient(135deg, rgba(86, 55, 12, 0.95), rgba(11, 12, 17, 0.95));
    border-color: rgba(255, 133, 27, 0.6);
}

.flash-container .flash-message.flash-warning:before {
    background-color: #ff851b;
}

.flash-container .flash-message.flash-warning .flash-progress {
    background: rgba(255, 133, 27, 0.6);
}

.flash-container .flash-message.flash-danger,
.flash-container .flash-message.flash-error {
    background: linear-gradient(135deg, rgba(86, 12, 16, 0.95), rgba(11, 12, 17, 0.95));
    border-color: rgba(255, 65, 54, 0.6);
}

.flash-container .flash-message.flash-danger:before,
.flash-container .flash-message.flash-error:before {
    background-color: #ff4136;
}

.flash-container .flash-message.flash-danger .flash-progress,
.flash-container .flash-message.flash-error .flash-progress {
    background: rgba(255, 65, 54, 0.6);
}

/* Targets all elements with a warning attribute (like delete video links) */
a[warning] {
    color: red !important;
}

.disabled {
    background-color: grey !important;
    transition: none !important;
    cursor: default !important;
}

.disabled:hover {
    background-color: grey !important;
}

/* Utility classes */
.flex { display: flex; }
.flex-1 { flex: 1; }
.flex-column { display: flex; flex-direction: column; }
.justify-between { justify-content: space-between; }
.justify-around { justify-content: space-around; }
.flex-wrap { flex-wrap: wrap; }
.mw-1000px { min-width: 1000px; }
.pt-1 { padding-top: 1rem; }
.overflow-y-auto { overflow-y: auto !important; }
.pb-1 { padding-bottom: 1rem; }
.pl-1-25 { padding-left: 1.25rem; }
.pr-1-25 { padding-right: 1.25rem; }
.border-bottom-light { border-bottom: 1px solid rgba(0, 0, 0, 0.08) }
.br-top-0-75 { border-radius: 0.75rem 0.75rem 0 0;  }
.red-background { background-color: var(--hs-red); }
.w-2-5 { width: 2.5rem; }
.maWidth-2-5 { max-width: 2.5rem; }
.cursor { cursor: pointer; }
.w-25 { width: 25%; }
.w-70 { width: 70%; }
.w-80 { width: 80%; }
.w-90 { width: 90%; }
.w-66 { width: 66%; }
.w-33 { width: 33%; }
.w-100 { width: 100%; }
.w-10rem { width: 10rem; }
.h-100 { height: 100%; }
.h-50 { height: 50%; }
.h-90 { height: 90%; }
.height-2-5 { height: 2.5rem; }
.br-50 { border-radius: 50%; }
.height-50 { height: 50rem; }
.jc-space-around { justify-content: space-around; }
.jc-space-between { justify-content: space-between; }
.background-color { background: var(--hs-form-backgroundcolor); }
.red-border { border: 1px solid var(--hs-brightred); }
.br-0-75 { border-radius: 0.75rem; }
.miHeight-50 { min-height: 50rem; }
.miHeight-3 { min-height: 3rem; }
.mh-100 { min-height: 100%; }
.p-0 { padding: 0 !important; }
.p-0-5 { padding: 0.5rem; }
.overflow-y-scroll { overflow-y: scroll; }
.jc-fend { justify-content: flex-end !important; }
.z-999 { z-index: 999 !important; }
.absolute { position: absolute !important; }
.mx-auto { margin-left: auto; margin-right: auto; }
.mb-4 { margin-bottom: 4rem; }
.px-1 { padding: 0 1rem; }
.text-center { text-align: center; }
.italic { font-style: italic; }
.object-contain { object-fit: contain; }
.relative { position: relative; }
.debug { border: 1px solid red; }
.icon-sm { height: 1.5rem; margin-right: 0.5rem; }
.pt-td-sm td { padding-top: 0.5rem; }
.nav-arrow { width: 4%; }
.block { display: block; }
.max-w-80rem { max-width: 80rem; }
.w-30 { width: 30%; }
.hidden { display: none; }
.mt-0-75 { margin-top: 0.75rem; }
.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.ta-right { text-align: right; }
.ta-left { text-align: left; }
.justify-right { justify-content: right !important; }
.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }
.mb-0-1 { margin-bottom: 0.1rem !important; }
.mb-0 { margin-bottom: 0; }
.grid-list { display: grid; width: 90%; margin: auto; }
.grid-min-260 { grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)); }
.h-10rem { height: 10rem; }
.w-7rem { width: 7rem; }
.w-350px { width: 350px; max-width: 350px; min-width: 350px; }
.h-210px { height: 210px; }
.max-w-full { max-width: 100%; }
.max-h-40rem { max-height: 40rem; }
.fw-600 { font-weight: 600; }
.fw-700 { font-weight: 700; }
.text-sm { font-size: 1rem; }
.text-lg { font-size: 1.2rem; }
.justify-center { justify-content: center; }
.items-center { align-items: center; }
.rounded-full { border-radius: 50%; }
.object-cover { object-fit: cover; }
.fs-0-9 { font-size: 0.9rem; }
.fs-1-5 { font-size: 1.5rem; }
.white { color: var(--hs-white); }
.light-grey { color: var(--hs-lightgrey); }
.w-4rem { width: 4rem; }
.h-4rem { height: 4rem; }
.w-8rem { width: 8rem; }
.h-8rem { height: 8rem; }
.m-0-5 { margin: 0.5rem; }
.ml-1 { margin-left: 1rem; }
.grid-center-left { display: grid; place-items: center left; }
.text-3rem { font-size: 3rem; }
.text-2rem { font-size: 2rem; }
.avatar-xl { width: 150px; height: 150px; }
.w-75 { width: 75%; }
.mx-2-5p { margin-left: 2.5%; margin-right: 2.5%; }
.transition-size, .vjs-tech { transition: width 100ms ease, height 100ms ease; will-change: width, height; }
.rounded-sm { border-radius: 8px; }
.rounded-lg { border-radius: 16px; }
.rounded-t-sm { border-radius: 8px 8px 0 0; }
.rounded-b-lg { border-radius: 0 0 16px 16px; }
.bg-darkred { background-color: var(--hs-darkred); }
.gap-0-3 { gap: 0.3rem; }
.gap-0-4 { gap: 0.4rem; }
.gap-0-5 { gap: 0.5rem; }
.gap-0-75 { gap: 0.75rem; }
.gap-0-25 { gap: 0.25em; }
.fs-1-25 { font-size: 1.25rem; }
.maHeight-520px { max-height: 520px; }
.maHeight-27 { max-height: 27rem; }
.icon-btn { width: 2rem; object-fit: contain; cursor: pointer; display: flex; align-items: center; padding-top: 0.3rem; }
.icon-btn.already-reported { cursor: default; }
.ml-0-5 { margin-left: 0.5rem; }
.ml-0 { margin-left: 0 !important; }
.w-25px { width: 25px; }
.grid-center { display: grid; place-items: center; }
.break-all { word-break: break-all; }
.w-100-minus-4rem { width: calc(100% - 4rem); }
.p-1 { padding: 1rem; }
.mt-n0-3 { margin-top: -0.3rem; }
.w-30rem { width: 30rem; }
.overflow-y-scroll { overflow-y: scroll; }
.scroll-smooth { scroll-behavior: smooth; }
.grid { display: grid; }
.grid-cols-auto-fit-360 { grid-template-columns: repeat(auto-fit, minmax(min(360px, 100%), 1fr)); }
.space-y-5 > * { margin-bottom: 5rem; }
.border-light { border: 1px solid var(--hs-darkergrey); }
.ta-center { text-align: center; }
.ai-center { align-items: center; }
#similars > * { margin-bottom: 5rem; }

.tag-list .is-active {
    background: var(--hs-brightred);
}

.croppie-group {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

@media (max-width: 1500px) {
    .lg-flex-wrap { flex-wrap: wrap; }
    .lg-w-100 { width: 100%; }
    .lg-grid { display: grid; }
    .lg-m-1 { margin: 1rem auto; }
    .lg-rounded-lg { border-radius: 16px; }
    .lg-grid-cols-auto-fit-360 { grid-template-columns: repeat(auto-fit, minmax(min(360px, 100%), 1fr)); }
}

@media (max-width: 1000px) {
    .wrapper {
        width: calc(100% - 128px);
        margin-left: 128px;
    }
    .md-w-8rem { width: 8rem; }
    .md-h-8rem { height: 8rem; }
    .md-ml-1 { margin-left: 1rem; }
    .md-text-3rem { font-size: 3rem; }
    .md-text-2rem { font-size: 2rem; }
    .md-avatar-xxl { width: 200px; height: 200px; }
    .md-text-4rem { font-size: 4rem; }
    .md-w-50 { width: 50%; }
    .md-flex-column { flex-direction: column; }
    .md-w-100 { width: 100% !important; }
    .md-h-3rem { height: 3rem !important; }
    .md-h-4rem { height: 4rem !important; }
    .md-mb-2 { margin-bottom: 2rem; }
    .md-mr-0 { margin-right: 0; }
    .md-w-40 { width: 40%; }
    .md-w-3rem { width: 3rem !important; }
    .md-h-6rem { height: 6rem !important; }
    .md-text-1-6rem { font-size: 1.6rem; }
    .md-w-90 { width: 90%; }
    .md-overflow-y-visible { overflow-y: visible !important; }
    .md-grid-cols-1 { grid-template-columns: 1fr !important; }
    .md-space-y-7 > * { margin-bottom: 7rem; }
    #similars > * {
        margin-bottom: 8rem;
    }
}
.hover-grow { transition: transform 0.2s ease; }
.hover-grow:hover { transform: scale(1.05); }
.modal-nav {
    position: absolute;
    color: #fff;
    font-size: 4rem;
    cursor: pointer;
    user-select: none;
    transition: opacity 0.3s;
    z-index: 120;
}

.media-container {
    width: 100%;
    text-align: center;

    & > * {
        width: 100%;
        max-width: 100%;
        max-height: 50vh;
        margin: 0 auto 1rem auto;
        object-fit: contain;
    }
}

/* Generic card component */
.card {
    background-color: rgb(15, 15, 15);
    overflow: hidden;
    text-align: center;
    position: relative;
    border-radius: 16px;
    box-shadow: -6px -3px 5px rgba(0, 0, 0, 0.544);

    & > h1 {
        position: absolute;
        top: 1.2rem;
        left: 50%;
        transform: translate(-50%, -50%);
        z-index: 1;
        background: linear-gradient(to top, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.801) 50%, rgb(0, 0, 0, 1) 100%);
        padding: 0.2rem;
        border-radius: 8px;
        width: 100%;
        margin-top: 0;
    }

    & > p {
        position: absolute;
        bottom: -1rem;
        left: 50%;
        transform: translate(-50%, -50%);
        z-index: 1;
        background: linear-gradient(to bottom, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.801) 50%, rgb(0, 0, 0) 100%);
        padding: 0.2rem;
        border-radius: 8px;
        width: 100%;
    }

    & > .new {
        position: absolute;
        bottom: 0;
        right: 0;
        width: 50px;
        z-index: 3;
        filter: drop-shadow(0px 0px 5px var(--hs-darkred));
    }

    & > a > .thumbnail {
        width: 100%;
        height: 100%;
        z-index: 2;
    }
}

@media (max-width: 1000px) {
    .card {
        width: 90% !important;
        max-width: none;
        height: auto !important;

        & > h1 {
            font-size: 3rem;
            top: 2.2rem;
            padding-top: 1rem;
        }

        & > p {
            font-size: 2.5rem;
            bottom: -2.2rem;
            padding-bottom: 1rem;
            background: linear-gradient(to bottom, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.801) 50%, rgb(0, 0, 0) 100%);
        }

        & > .new {
            width: 100px;
        }
    }
}

/* Tabs component */
.tabs {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    height: 5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tabs-bar {
    position: absolute;
    top: 0;
    left: 0;
    display: flex;
    width: 100%;
    height: 32px;
    z-index: 2;
    border-radius: 8px;
}

.tab-option {
    flex: 1;
    text-align: center;
    line-height: 32px;
    cursor: pointer;
    padding: 0 10px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: color 200ms ease-out;
    border-radius: 8px;
}

.tab-option.active {
    color: var(--hs-white);
}

.tab-option:hover {
    color: var(--hs-brightred);
}

.tab-option.active:hover {
    color: inherit;
    cursor: default;
}

.tabs-track {
    position: absolute;
    top: 0;
    left: 0;
    height: 32px;
    width: 100%;
    z-index: 1;
    pointer-events: none;
}

.wrapper .container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 40px 20px;
}


.creator-page .container.relative.rounded-sm.border-light {
    position: relative;
    overflow: visible;
}

.creator-page .container.relative.rounded-sm.border-light > *:not(#creator-particles) {
    position: relative;
    z-index: 1;
}

.creator-page #creator-particles {
    position: absolute;
    inset: 0;
    border-radius: inherit;
    pointer-events: none;
    mix-blend-mode: screen;
    opacity: 0;
    transition: opacity 450ms ease;
}

.creator-page #creator-particles.is-visible {
    opacity: 0.9;
}

.profile-header,
.personal-info,
.social-links {
    display: flex;
}

.creator-banner {
    height: 250px;
    position: absolute !important;
    top: 0;
    left: 0;
    right: 0;
    border-radius: 8px 8px 0 0;
}

.profile-header,
.personal-info {
    flex-wrap: wrap;
}

.profile-header {
    gap: 30px;
    align-items: center;
}

.creator-banner #creator-avatar {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
    margin-top: 155px;
    margin-left: 20px;
}

.profile-info {
    flex: 1;
}

.profile-info h1 {
    font-size: 2.4em;
    margin-bottom: 5px;
    margin-top: 0 !important;
}

.aliases {
    color: var(--hs-lightgrey);
    font-style: italic;
    margin-bottom: 10px;
}

.custom-progress {
    height: 10px;
    margin: 10px 0;
    background-color: var(--hs-mediumgrey);
    border-radius: 5px;
    overflow: hidden;
}

.custom-progress-bar {
    width: 0;
    height: 100%;
    background-color: var(--hs-brightred);
    animation: fillBar 2s ease forwards;
}

@keyframes fillBar {
    from {
        width: 0;
    }
    to {
        width: var(--target-width);
    }
}

.profile-description,
.social-links a,
.stat-number,
.birthday,
.nationality {
    color: var(--hs-white);
}

.social-links a,
.stat-number {
    font-weight: bold;
}

.profile-description {
    margin-top: 15px;
}

.personal-info,
.social-links {
    gap: 10px;
}

.personal-info {
    margin-top: 1rem;
}

.birthday,
.nationality {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border-radius: 20px;
    font-size: 0.95em;
    line-height: 1.2em;
    white-space: nowrap;
    background-color: var(--hs-darkred);
}

.creator-verified {
    width: 1.2rem;
    height: 1.2rem;
    object-fit: contain;
    flex-shrink: 0;
}

.flag-icon {
    width: 1.4rem;
    height: auto;
    object-fit: contain;
    border-radius: 2px;
}

.social-links {
    margin-top: 15px;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    text-decoration: none;
}

.social-links img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 50%;
}

#danId {
    -moz-appearance: textfield;
}

#danId::-webkit-inner-spin-button,
#danId::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

#load-dan-data {
    background-color: var(--hs-red);
    border-radius: 50%;
    transition: all 200ms ease-in-out;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    padding: 0;
    font-size: 1.25rem;
    line-height: 1;
}

#load-dan-data:hover {
    background-color: var(--hs-brightred);
    cursor: pointer;
}

.container .stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
    margin: 40px 0;
    height: 6rem;
}

.stat-box {
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    background-color: var(--hs-red);
}

.stat-number {
    font-size: 1.6em;
}

.stat-label {
    font-size: 0.9em;
    color: var(--hs-lightgrey);
}

.view-profile-page {
    & .sub-wrapper {
        max-width: 1500px;
        margin: 40px auto;
        padding: 0 20px;
        display: grid;
        grid-template-columns: 2fr 1fr;
        gap: 20px;

        & > .main-col, & > .side-col {
            display: flex;
            flex-direction: column;
            gap: 20px;

            & .card {
                border-radius: 10px;
                padding: 20px;
                box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);

                & h2 {
                    margin-bottom: 0.5rem;
                }

                & .user-info {
                    text-align: left;

                    & .badges {
                        margin-top: 8px;
                        display: flex;
                        gap: 8px;

                        & .badge {
                            width: 40px;
                            height: 40px;
                            display: flex;
                            align-items: center;
                            justify-content: center;

                            & > .badge-icon {
                                height: 100%;
                                width: 100%;
                                object-fit: cover;
                            }

                            & .badge-icon.max-rank {
                                animation: pulseGlow 2.5s ease-in-out infinite;
                                filter:
                                        drop-shadow(0 0 6px rgba(255, 50, 50, 0.7))
                                        drop-shadow(0 0 12px rgba(255, 0, 0, 0.5))
                                        drop-shadow(0 0 18px rgba(255, 100, 100, 0.3));
                                transition: filter 0.3s ease;
                            }
                        }
                    }
                }

                & .meta {
                    color: var(--hs-lightgrey);
                    font-size: 14px;
                }

                & .stats-grid {
                    display: grid;
                    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
                    gap: 15px;
                    margin-top: 15px;

                    & .stat {
                        background: var(--hs-darkgrey);
                        padding: 12px;
                        border-radius: 6px;
                        border-bottom: 1px solid var(--hs-brightred);
                        border-top: 1px solid var(--hs-brightred);
                        text-align: center;
                        height: 100px;
                        align-content: center;

                        & .number {
                            font-size: 22px;
                            font-weight: bold;
                            color: var(--hs-white);
                        }

                        & .label {
                            color: var(--hs-lightgrey);
                            font-size: 13px;
                        }
                    }
                }
            }

            & .admin-panel {
                & .actions {
                    display: grid;
                    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
                    gap: 12px;
                    margin-top: 15px;

                    & button {
                        background: var(--hs-red);
                        color: var(--hs-white);
                        border: none;
                        border-radius: 4px;
                        padding: 8px 14px;
                        cursor: pointer;
                        transition: background 0.2s;
                    }

                    & button:hover {
                        background: var(--hs-brightred);
                    }
                }
            }

            & .activity, & .favorite-tags {
                border-radius: 8px;
                padding: 15px;

                & .activity-chart-wrapper {
                    display: flex;
                    flex-direction: column;
                    align-items: center;
                    gap: 8px;

                    & .activity-chart {
                        position: relative;
                        display: flex;
                        justify-content: space-between;
                        align-items: flex-end;
                        height: 120px;
                        border-radius: 6px;
                        padding: 10px 10px 0 10px;
                        overflow: hidden;
                        width: 100%;
                        background: repeating-linear-gradient(
                                to top,
                                rgba(255, 255, 255, 0.05) 0px,
                                rgba(255, 255, 255, 0.05) 1px,
                                transparent 2px,
                                transparent 20px
                        );

                        & div {
                            width: 12%;
                            background: linear-gradient(to top, var(--hs-brightred), #ff6666);
                            border-radius: 4px 4px 0 0;
                            box-shadow: 0 0 6px rgba(255, 0, 0, 0.3);
                            transform-origin: bottom;
                            transform: scaleY(0);
                            animation: profileFillBar 1s ease forwards;
                        }

                    }

                    & .activity-timestamps {
                        display: flex;
                        justify-content: space-between;
                        width: 100%;
                        font-size: 11px;
                        color: var(--hs-lightgrey);
                        opacity: 0.8;
                    }
                }

                & .tag-row {
                    display: flex;
                    justify-content: space-between;
                    align-items: center;
                    width: 100%;
                    margin-bottom: 8px;
                }

                & .tag-bar {
                    flex: 1;
                    margin-left: 10px;
                    background: var(--hs-mediumgrey);
                    height: 8px;
                    border-radius: 4px;
                    position: relative;
                    overflow: hidden;

                    & > span {
                        display: block;
                        height: 100%;
                        width: 0;
                        background: linear-gradient(to right, var(--hs-brightred), #ff4444);
                        border-radius: 4px;
                        animation: fillTag 1.2s ease forwards;
                    }
                }
            }
        }

        & .header {
            display: flex;
            align-items: center;
            gap: 20px;

            & #username {
                font-size: 2.5rem;
                text-align: left;
                margin: 0;
            }

            & .avatar {
                width: 200px;
                height: 200px;
                border-radius: 50%;
                border: 2px solid var(--hs-brightred);

                & > .status-indicator {
                    position: absolute;
                    bottom: 6px;
                    right: 6px;
                    width: 14px;
                    height: 14px;
                    border-radius: 50%;
                    background: gray;
                    border: 1px solid rgba(0, 0, 0, 0.3);
                    opacity: 0;
                    transform: scale(0.9);
                    transition: opacity 0.25s ease-in-out, transform 0.25s ease-in-out;
                }

                & .status-indicator.online {
                    background: #2ecc71;
                    border: 1px solid #1e8449;
                    box-shadow:
                            0 0 3px rgba(46, 204, 113, 0.8),
                            0 0 6px rgba(46, 204, 113, 0.6);
                    opacity: 1;
                    transform: scale(1);
                }
            }

            & .role {
                display: inline-block;
                margin: 0 0 6px 0;
                padding: 4px 10px;
                border-radius: 8px;
                font-weight: bold;
                font-size: 13px;
                border: 1px solid transparent;
                box-shadow: 0 0 8px rgba(0, 0, 0, 0.4);
                transition: all 0.3s ease;
            }

            & .role.Administrator {
                background: rgba(152, 0, 255, 0.47);
                border-color: #6a0dad;
                color: var(--hs-white);
                text-shadow: 0 0 6px rgba(106, 13, 173, 0.6);
            }

            & .role.Moderator {
                background: rgba(30, 77, 183, 0.2);
                border-color: #1e4db7;
                color: #1e4db7;
                text-shadow: 0 0 6px rgba(30, 77, 183, 0.6);
            }

            & .role.User {
                background: rgba(255, 255, 255, 0.1);
                border-color: var(--hs-lightgrey);
                color: var(--hs-white);
                text-shadow: 0 0 6px rgba(255, 255, 255, 0.4);
            }
        }
    }
    & .available-sparks-container {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 24px;
        padding: 20px;
        text-align: center;

        & .spark-balance {
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 18px;
        }

        & .spark-emblem {
            position: relative;
            width: 130px;
            height: 130px;
            display: grid;
            place-items: center;
        }

        & .spark-emblem .star {
            width: 100px;
            height: 100px;
            filter: drop-shadow(0 6px 22px rgba(168, 85, 247, 0.38));
            animation: starGlow 3s ease-in-out infinite;
        }

        & .spark-emblem .star path {
            vector-effect: non-scaling-stroke;
            stroke-linejoin: round;
            stroke-width: 0.6px;
            stroke: rgba(0, 0, 0, 0.08);
        }

        & .spark-ring {
            position: absolute;
            inset: 0;
            border-radius: 50%;
            border: 2px dashed rgba(168, 85, 247, 0.45);
            filter: drop-shadow(0 0 18px rgba(168, 85, 247, 0.35));
            animation: ringSpin 14s linear infinite;
        }

        & .spark-ring.secondary {
            inset: 10px;
            border-style: solid;
            border-color: rgba(124, 58, 237, 0.35);
            animation-duration: 10s;
            animation-direction: reverse;
        }

        & .spark-info {
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 6px;
        }

        & .spark-info .label {
            font-size: 1.2rem;
            font-weight: 700;
            display: flex;
            align-items: center;
            gap: 10px;
            color: #f3f4f6;
            text-shadow: 0 2px 12px rgba(0, 0, 0, 0.25);
        }

        & .spark-info .label .count {
            padding: 6px 10px;
            border-radius: 999px;
            background: linear-gradient(135deg, rgba(168, 85, 247, 0.25), rgba(124, 58, 237, 0.35));
            border: 1px solid rgba(255, 255, 255, 0.14);
            box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.08);
        }

        @media (max-width: 768px) {
            .view-profile-page .available-sparks-container {
                flex-direction: column;
                align-items: center;
            }

            .view-profile-page .spark-balance {
                flex-direction: column;
                align-items: center;
            }
        }
    }
}

@media (max-width: 1000px) {
    .view-profile-page .sub-wrapper {
        grid-template-columns: 1fr;
    }

    .view-profile-page .main-col > .card {
        width: 100% !important;
    }

    .view-profile-page .activity-chart-wrapper {
        height: 40rem;
    }

    .view-profile-page .activity-chart {
        height: 95%;
    }
}
.tab-indicator {
    background: var(--hs-brightred, red);
    height: 32px;
    width: var(--tab-indicator-width, 25%);
    transform: translateX(0%);
    transition: transform 200ms cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 8px;
}

.tab-panel {
    margin: 5rem auto;
    width: 80%;
    max-width: 60rem;
    border-radius: 16px;
    padding: 1rem;
    display: none;
    opacity: 0;
    transform: translateX(0);
    transition: transform 300ms ease, opacity 300ms ease;
}

.tab-panel ul {
    margin: 0.5rem 0 0.5rem 2rem;
    width: 100%;
    font-size: 0.8rem;
    cursor: default;
}

.tab-panel a {
    margin: 2rem auto;
    display: block;
    width: 10rem !important;
    text-align: center;
}

.tab-panel strong {
    font-weight: bold;
    display: block;
    margin-top: 1rem;
}

.tab-panel p {
    font-size: 0.8rem;
    width: 100%;
}

.crawler-domain-row, .social-platform-row, .creator-type-row  {
    display: flex;
    align-items: center;
}

.delete-icon {
    height: 1rem;
    width: 1rem;
    cursor: pointer;
    margin-left: 1rem;
}

.row-icon {
    height: 2rem;
    width: 2rem;
}

.tab-panel .regular-link {
    display: inline-block !important;
    margin: 0 !important;
    width: auto !important;
}

.tab-panel.show {
    display: block;
    opacity: 1;
}

/* Slide animations */
.slide-in-left {
    animation: slide-in-left 300ms ease forwards;
}

.slide-in-right {
    animation: slide-in-right 300ms ease forwards;
}

@keyframes slide-in-left {
    from {
        transform: translateX(-50px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slide-in-right {
    from {
        transform: translateX(50px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@media (max-width: 1000px) {
    .tabs {
        margin: 0 auto;
        width: 90%;
    }

    .tabs-bar .tab-option {
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 2rem;
        height: 6rem;
        text-align: center;
        white-space: normal;
        word-break: break-word;
    }

    .tabs-track .tab-indicator {
        height: 6rem;
    }

    .tab-panel ul {
        font-size: 2rem;
    }

    .tab-panel strong {
        margin: 5rem 0 1rem 0;
    }

    .tab-panel p {
        font-size: 2rem;
    }

    .tab-panel .button {
        margin-top: 5rem;
        font-size: 4rem;
        width: 20rem !important;
    }

    .mobile-m-0 {
        margin: 0 !important;
    }
}

form {
    background-color: var(--hs-darkred);
    width: 80%;
    margin: auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    padding: 2rem 3% 2rem 3%;
    border: 1px solid rgba(255, 255, 255, 0.144);
    border-radius: 14px;
    max-width: 45rem;
}

form h1 {
    margin-top: 0;
}

form > .input-container > label {
    width: 100%;
    display: inline;
    font-weight: 400;
    margin-bottom: 0.2rem;
}

form > .input-container .switch-label {
    width: 100%;
    display: grid;
    place-items: center left;
    font-weight: 400;
}

form > .actions {
    width: 100%;
    display: flex;
    justify-content: space-between;
    margin-top: 1rem;
}

form > .actions > input, form > .actions > button {
    width: 6rem;
}

h1 {
    font-family: 'Oswald', sans-serif;
    font-optical-sizing: auto;
    font-weight: 500;
    font-style: normal;
    font-size: 2rem;
    letter-spacing: 0.02em;
    cursor: default;
    text-align: center;
    margin-bottom: 1rem;
    margin-top: 3rem;
}

h1.left {
    text-align: left;
}

h2 {
    text-align: center;
    font-weight: 200;
    cursor: default;
}

.flex-end {
    justify-content: flex-end !important;
}

nav a {
    font-family: "Inter Tight", sans-serif;
    font-optical-sizing: auto;
    font-weight: 300;
    font-style: normal;
}

a {
    text-decoration: none;
    cursor: pointer !important;
}

p {
    cursor: default;
}

body {
    color: var(--hs-white);
    font-family: 'Inter Tight', sans-serif;
    font-weight: 200;
    background: var(--hs-darkgrey) radial-gradient(
            circle,
            var(--hs-darkgrey) 60%,
            rgba(0, 0, 0, 0.95) 100%
    );
}

.warning {
    color: yellow;
    font-size: 1rem;
    text-align: center;
    width: 100%;
    margin-bottom: 1rem;

    & > .warning-icon {
        height: 1rem;
        width: 1rem;
        object-fit: contain;
        margin-right: 0.5rem;
        margin-bottom: -0.15rem;
    }
}

/* jquery-confirm dialog styling */
.jconfirm .jconfirm-box {
    background: var(--hs-darkergrey) !important;
    color: var(--hs-white);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
    border-radius: 12px;
    width: min(90vw, 420px);
    font-family: 'Inter Tight', sans-serif;
}

.jconfirm .jconfirm-title {
    color: var(--hs-white);
}

.jconfirm .jconfirm-closeIcon {
    color: var(--hs-white) !important;
}

.jconfirm .jconfirm-bg {
    background-color: transparent !important;
}

.jconfirm .jconfirm-box .jconfirm-content {
    color: var(--hs-lightgrey);
}

.jconfirm .jconfirm-box .jconfirm-buttons button {
    font-family: 'Montserrat', sans-serif;
    font-weight: 300;
    border-radius: 7px;
    padding: 8px 14px;
}

.jconfirm .jconfirm-box .btn-confirm {
    background-color: var(--hs-red);
    color: var(--hs-white);
}

.jconfirm .jconfirm-box .btn-confirm:hover {
    background-color: var(--hs-brightred);
}

.jconfirm .jconfirm-box .btn-cancel {
    background-color: transparent;
    color: var(--hs-white);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.jconfirm .jconfirm-box .btn-cancel:hover {
    border-color: rgba(255, 255, 255, 0.45);
}

/*Everything regarding croppie thumbnails*/
.round {
    border-radius: 50%;
}

.croppie-container {
    height: auto !important;
}

.croppie-dropzone {
    border: 1px dashed var(--hs-white);
    padding: 20px;
    text-align: center;
    cursor: pointer;
    position: relative;
    border-radius: 8px;
    transition: all 0.3s ease;
    width: 100%;
}

.croppie-dropzone.dragover {
    background-color: var(--hs-brightred);
    border-color: #007bff;
}

.croppie-dropzone:hover {
    background-color: var(--hs-brightred);
}

.croppie-dropzone__label {
    margin: 0;
    pointer-events: none;
}

.croppie-dropzone__input {
    display: none;
}

/*CUSTOM SCROLLBAR GLOBALLY*/
::-webkit-scrollbar {
    width: 20px;
}

::-webkit-scrollbar-thumb {
    background-color: var(--hs-white);
    border-radius: 20px;
    border: 6px solid transparent;
    background-clip: content-box;
}

::-webkit-scrollbar-corner {
    background: rgba(0, 0, 0, 0);
}

.wrapper {
    width: calc(100% - 60px);
    min-height: 100vh;
    margin-left: 60px;
    padding-top: 2rem;
}

.video-list {
    display: grid;
    width: 90%;
    margin: 0 auto;
    height: auto;
    scroll-behavior: smooth;
    border-radius: 16px;
    grid-template-columns: repeat(auto-fit, minmax(min(360px, 100%), 1fr));
    row-gap: 3rem;
    column-gap: 2rem;
}

.loading-icon {
    width: 100%;
    height: 5rem;
    object-fit: contain;
    text-align: center;
}

.tag {
    color: inherit;
    text-decoration: none;
    display: inline-block;
    padding: 0.3rem 0.8rem;
    border: 1px solid #555;
    border-radius: 20px;
    cursor: pointer;
    transition: background 0.2s, color 0.2s, border 0.2s;
    user-select: none;
    margin-bottom: 0.5rem;
    white-space: nowrap;
}

.tag:hover {
    background-color: var(--hs-brightred);
}

.progress-bar {
    accent-color: var(--hs-brightred);
    width: 100%;
    height: 16px;
    border-radius: 8px;
    overflow: hidden;
    background-color: var(--hs-darkred);
}

.progress-bar::-webkit-progress-bar {
    background-color: var(--hs-darkred);
    border-radius: 8px;
}

.progress-bar::-webkit-progress-value,
.progress-bar::-moz-progress-bar {
    background: repeating-linear-gradient(
            45deg,
            var(--hs-brightred),
            var(--hs-brightred) 10px,
            #ff6666 10px,
            #ff6666 20px
    );
    border-radius: 8px;
    animation: fillProgress var(--progress-animation-duration, 2s) forwards;
}

@keyframes fillProgress {
    0% { width: 0; }
    100% { width: 100%; }
}

.blur-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
    z-index: 998;
    display: none;
}

.glow {
    transition: filter 250ms;
}

.glow:hover {
    -webkit-filter: drop-shadow(0px 0px 5px var(--hs-white));
    filter: drop-shadow(0px 0px 5px var(--hs-white));
}

.glow-colored img {
    transition: filter 0.3s ease, transform 0.3s ease;
}

.glow-colored:hover {
    filter: brightness(0) saturate(100%) invert(16%) sepia(90%) saturate(7500%) hue-rotate(-10deg) brightness(85%) contrast(105%);
    transform: scale(1.1); /* optional: slight zoom effect */
}

.button {
    width: 5rem;
    font-family: 'Montserrat', sans-serif;
    font-weight: lighter;
    padding: 10px;
    background-color: var(--hs-red);
    color: var(--hs-white);
    border-radius: 7px;
    border: 0;
    cursor: pointer;
    transition: background-color 200ms;
}

.button:hover {
    background-color: var(--hs-brightred);
}

.moderator-actions {
    background-color: var(--hs-darkred);
    padding: 2rem 3%;
    border: 1px solid rgba(255, 255, 255, 0.144);
    border-radius: 14px;
    max-width: 45rem;
}

.save-button {
    width: 30%;
    margin: 1rem auto;
}

form.editor-form > h2 {
    margin-bottom: 1rem;
}

.editor-form > .import-button-container {
    height: 5rem;
}


#source-spinner {
    height: 1.5rem;
    margin-bottom: -0.4rem;
    display: none;
}

#copy-to-clipboard {
    width: 8%;
    height: 1.95rem;
}

.editor-form > #advanced-properties > h2:not(:first-child) {
    margin-top: 2rem;
}


.regular-link {
    color: var(--hs-white);
    text-decoration: none;
    transition: color 200ms;
    cursor: pointer !important;
}

.regular-link:hover {
    color: var(--hs-brightred);
}

textarea {
    width: 100%;
    resize: none;
    height: 4rem;
}

input[type=file],
select {
    cursor: pointer;
}

input[type=radio] {
    accent-color: var(--hs-brightred);
    cursor: pointer;
}

input[type=checkbox] {
    accent-color: var(--hs-brightred);
    cursor: pointer;
    height: 2rem;
    margin-top: 1.1rem;
}

.input-container {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    position: relative;
    margin-bottom: 1rem;

    & > .croppie-dropzone {
        margin-top: 0.2rem;
    }
}

.input-element,
textarea,
input[type="text"],
input[type="search"],
input[type="date"],
input[type="file"],
select {
    padding: 0.3rem 0.5rem;
    background-color: var(--input-gray);
    color: var(--hs-white);
    border-radius: 6px;
    border: 1px solid var(--border-gray);
    cursor: text;
    font-family: 'Montserrat', sans-serif;
    transition: background-color 200ms ease, border-color 200ms ease;
    width: 100%;
    font-size: 0.9rem !important;
    line-height: 1.5;
}

/* Uniform height for all single-line inputs */
.input-element:not(textarea),
input[type="text"],
input[type="search"],
input[type="date"],
input[type="file"],
select {
    height: 2.15rem;
}

.input-element:hover,
textarea:hover,
input[type="text"]:hover,
input[type="search"]:hover,
input[type="date"]:hover,
input[type="file"]:hover,
select:hover,
.input-element:focus,
textarea:focus,
select:focus,
input[type="text"]:focus,
input[type="search"]:focus,
input[type="date"]:focus,
input[type="file"]:focus {
    background-color: var(--input-gray);
    border-color: var(--hs-brightred);
    outline: none;
}

.input-element::placeholder,
textarea::placeholder,
input[type="text"]::placeholder,
input[type="search"]::placeholder,
input[type="date"]::placeholder {
    color: #424242;
}

input[type=file] {
    padding-right: 1rem;
    cursor: pointer;
}

input[type=file]::file-selector-button {
    padding: 0.2rem 0.8rem;
    margin-right: 0.7rem;
    border: none;
    border-radius: 6px;
    background: var(--hs-red);
    color: var(--hs-white);
    cursor: pointer;
    font-size: 0.85rem;
    transition: transform 120ms ease, box-shadow 200ms ease, filter 180ms ease;
}

.pagination {
    margin-top: 4rem;
    text-align: center;
    width: 100%;
    padding-bottom: 1rem;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.3rem;
}

.pagination a,
.pagination span {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 2.2rem;
    height: 2.2rem;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 500;
    transition: background-color 200ms, transform 100ms;
}

.pagination a {
    color: var(--hs-white);
    background-color: var(--hs-red);
    text-decoration: none;
    cursor: pointer;
}

.pagination a:hover {
    background-color: var(--hs-brightred);
    transform: scale(1.1);
}

.pagination .active-page,
.pagination span.active-page {
    background-color: var(--hs-brightred);
    color: var(--hs-white);
    cursor: default;
    font-weight: 600;
}

.pagination span {
    background-color: transparent;
    color: var(--hs-white);
    cursor: default;
}


#feedback {
    width: 50%;
    cursor: pointer;
    text-align: center;
    background-color: #00000067;
    border-radius: 8px;
    display: none;
    padding: 0.5rem 0 0.5rem 0;
    margin: 1rem auto;
}

input[type=submit]:disabled {
    background-color: rgb(55, 55, 55);
    cursor: default;
}

#img-404 {
    display: block;
    margin: 5rem auto;
    height: 50vh;
}

/*For the custom select2 element*/
.select2 {
    width: 100% !important;
    cursor: pointer !important;
}

.select2-container .select2-selection--single {
    height: 2.15rem !important;
    line-height: 2.15rem !important;

    border-radius: 6px !important;
    border: 1px solid var(--border-gray) !important;
    background-color: var(--input-gray) !important;
    color: var(--hs-white) !important;
    transition: border-color 200ms ease;
    cursor: pointer !important;
}

.select2-container .select2-selection--single:hover,
.select2-container .select2-selection--single:focus {
    border-color: var(--hs-brightred) !important;
    outline: none !important;
    cursor: pointer !important;
}

.select2-dropdown {
    background-color: rgb(18, 19, 24) !important;
    color: var(--hs-white) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    cursor: pointer !important;
}

.select2-results__option--selected {
    background-color: var(--hs-red) !important;
    color: var(--hs-white) !important;
    cursor: pointer !important;
}

.select2-selection__placeholder {
    color: var(--hs-white) !important;
    cursor: pointer !important;
}

.select2-selection__rendered {
    color: var(--hs-white) !important;
    cursor: pointer !important;
}

.select2-results__option {
    border-radius: 7px !important;
    transition: background-color 200ms ease;
    cursor: pointer !important;
}

.select2-results__option--highlighted {
    background-color: var(--hs-brightred) !important;
    cursor: pointer !important;
}

.select2-selection__rendered,
.select2-selection__placeholder {
    line-height: calc(2.15rem - 2px) !important;
    padding: 0 0.4rem !important;
    cursor: pointer !important;
}

.select2-results__option {
    padding: 10px 0.4rem !important;
    cursor: pointer !important;
}

.select2-selection__arrow {
    height: calc(2.15rem - 2px) !important;
    width: 1.5rem !important;
    margin-top: 0 !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23e9e9e9' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    cursor: pointer !important;
}

.select2-selection__arrow b {
    display: none;
}

.select2-search__field {
    border-radius: 4px !important;
    border: none !important;
    background-color: var(--hs-red);
    color: var(--hs-white) !important;
    transition: border 200ms ease-in;
}

.select2-search__field:hover {
    border-radius: 4px !important;
    outline: 1px solid var(--hs-brightred) !important;
    color: var(--hs-white) !important;
}

.select2-container--default .select2-results__option[aria-selected=true] {
    background-color: var(--hs-brightred) !important;
}

.select2-container .select2-selection--single {
    font-size: 0.8rem !important;
    font-family: 'Montserrat', sans-serif !important;
}

.select2-container .select2-results__option {
    font-size: 0.8rem !important;
    font-family: 'Montserrat', sans-serif !important;
}

/*for custom switches*/
.switch {
    position: relative;
    display: inline-block;
    width: 45px;
    height: 20px;
    margin-right: 0.5rem;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--hs-red);
    -webkit-transition: .4s;
    transition: .4s;
}

.slider:before {
    position: absolute;
    content: "";
    height: 12px;
    width: 12px;
    left: 4px;
    top: 50%;
    transform: translateY(-50%);
    background-color: var(--hs-white);
    -webkit-transition: .4s;
    transition: .4s;
}

input:checked + .slider {
    background-color: var(--hs-brightred);
}

input:checked + .slider:before {
    -webkit-transform: translate(26px, -50%);
    -ms-transform: translate(26px, -50%);
    transform: translate(26px, -50%);
}

.slider.round {
    border-radius: 34px;
}

.slider.round:before {
    border-radius: 50%;
}

.select2-results__options {
    border-radius: 7px !important;
}

#go-to-page-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 998;
    display: none;
}

#go-to-page-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    z-index: 1000;
    display: none;
}

#toggle-filter-modal {
    height: 3rem;
    object-fit: contain;
    cursor: pointer;
    transition: filter 150ms ease;
    width: 5rem;
    display: block; /* make it block so margin works */
    margin-left: auto;
    margin-right: auto;
}

/*TAGLIST PROPERTIES*/
.tag-list {
    width: 90%;
    margin: 0.5rem auto;
    overflow-x: scroll;
    padding: 1rem 1rem 1rem 0;
    border-radius: 8px;
}

.heading-container > .tag-info {
    font-size: 1rem;
    color: grey;
}

.filter-tag {
    display: inline-block;
    padding: 0.3rem 0.8rem;
    border: 1px solid #555;
    border-radius: 20px;
    font-size: 0.85rem;
    cursor: pointer;
    transition: background 0.2s, color 0.2s, border 0.2s;
    user-select: none;
    margin-bottom: 0.5rem;
}

.filter-tag:hover {
    background-color: var(--hs-brightred);
    color: var(--hs-white);
}

.selected-tag {
    background-color: var(--hs-brightred);
    color: var(--hs-white);
    border-color: var(--hs-brightred);
}

.removed-tag {
    background-color: var(--hs-mediumgrey);
    color: var(--hs-lightgrey);
    border-color: var(--hs-lightgrey);
    text-decoration: line-through;
}

.deleted-comment .comment-content {
    color: var(--hs-brightred);
}

#post-image-comment, #post-comment {
    margin-top: 0.5rem;
}

/*Everything regarding creators*/
.creator-menu {
    display: flex;
    flex-wrap: nowrap;
    justify-content: space-around;
    align-items: stretch;
    margin-top: 1rem;
}

#creator-list {
    min-height: 900px;

    /* The empty-state message is a grid item, so it has to span every
       column to stay centred under the filters. */
    & > .message-container {
        grid-column: 1 / -1;
    }
}

#creator-list, .creator-menu {
    & > .creator-container {
        flex: 1;
        min-width: 175px;
        max-width: 175px;
        max-height: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
        margin-bottom: 2rem;

        & > h2 {
            font-size: min(5vw, 18px);
            white-space: nowrap;
            margin: 0 0 0.25rem 0;
            text-align: center;
        }

        & > .creator-link {
            position: relative;
            width: 80%;

            & > .creator-type-badge {
                position: absolute;
                bottom: 4%;
                right: 4%;
                width: 26%;
                aspect-ratio: 1;
                border-radius: 50%;
                background: var(--hs-brightred);
                border: 2px solid var(--hs-darkred);
                display: flex;
                align-items: center;
                justify-content: center;
                font-size: 1rem;
                color: var(--hs-white);
            }
        }

        & > .creator-link > .creator-avatar {
            border-radius: 50%;
            width: 100%;
            box-shadow: -6px -3px 5px rgba(0, 0, 0, 0.544);
            transition: all 200ms ease-in-out;
        }

        & > .creator-link > .creator-avatar:hover {
            filter: brightness(1.50);
        }

        & > .creator-starred {
            display: grid;
            place-items: center center;
            color:rgba(255, 255, 255, 0.466);
        }
    }
}

/*creator boxes for displaying on videos*/
#video-creators {
    display: flex;
    flex-wrap: wrap;
    margin-top: 0.5rem;

    & > .creator-container {
        width: auto;
        margin-bottom: 1rem;

        & > a {
            display: flex;
            padding: 0.2rem 0.5rem 0.2rem 0.2rem;
            border-radius: 8px;
            color: white;
            cursor: pointer;
            transition: background-color 200ms ease;
            margin-right: 1rem;

            & > img {
                border-radius: 50%;
                height: 2rem;
                object-fit: contain;
            }

            & > p {
                display: flex;
                place-items: center center;
                cursor: pointer;
                word-break: break-all;
                margin-left: 0.5rem;
            }
        }

        & > a:hover {
            background-color: var(--hs-brightred);
        }
    }
}

#video-characters {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.5rem;
    border-radius: 8px;

    & > .character-container {
        & > .character-card {
            display: flex;
            align-items: center;
            gap: 0.4rem;
            padding: 0.2rem 0.5rem;
            border-radius: 6px;
            background-color: rgba(0, 0, 0, 0.25);
            border: 1px dashed rgba(255, 255, 255, 0.25);
        }

        & .character-avatar {
            height: 2rem;
            width: 2rem;
            border-radius: 50%;
            object-fit: cover;
        }

        & .character-name {
            margin: 0;
            word-break: break-word;
        }
    }
}

.custom-radiobuttons-container {
    margin-top: 1rem;

    label {
        display: flex;
        cursor: pointer !important;
        font-weight: 500;
        position: relative;
        overflow: hidden;

        input {
            position: absolute;
            left: -9999px;
            background: transparent;
            border: none;
            appearance: none;
            -webkit-appearance: none;
            cursor: pointer !important;

            &:checked + span {
                background-color: mix(var(--hs-darkgrey), var(--hs-darkred), 100%);

                &:before {
                    box-shadow: inset 0 0 0 1em var(--hs-brightred);
                }
            }
        }

        input:focus {
            outline: none;
        }

        span {
            display: flex;
            align-items: center;
            padding: 0.375em 0.75em 0.375em 0.375em;
            border-radius: 99em;
            transition: 0.25s ease;
            cursor: pointer;
            font-size: 0.8em;

            &:hover {
                background-color: mix(var(--hs-darkgrey), var(--hs-brightred), 100%);
            }

            &:before {
                display: flex;
                flex-shrink: 0;
                content: "";
                background-color: var(--hs-darkgrey);
                width: 1.4em;
                height: 1.4em;
                border-radius: 50%;
                margin-right: 0.375em;
                transition: 0.25s ease;
                box-shadow: inset 0 0 0 0.125em var(--hs-brightred);
            }
        }
    }
}

@media (max-width: 1000px) {
    .wrapper {
        width: calc(100% - 128px);
        margin-left: 128px;
    }

    h1 {
        font-size: 4rem;
    }

    h2 {
        font-size: 2.5rem;
    }

    .HeartAnimation {
        width: 80px;
        height: 80px;
    }

    /* Responsive utility classes */
    .nav-arrow { width: 10%; }
    .w-100-mobile { width: 100%; }
    .text-center-mobile { text-align: center; }
    .mobile-w-50 { width: 50%; }
    .mobile-text-lg { font-size: 2rem; }
    .mobile-mt-2 { margin-top: 2rem; }
    .icon-sm { height: 2.5rem; }
    .social-icon { height: 1rem; margin-right: 1rem; }

    form {
        width: 90%;
        max-width: none;
    }

    form label {
        font-size: 2rem;
    }

    form > .input-container label {
        font-size: 2rem !important;
    }

    form > .actions > input, form > .actions > button {
        width: 12rem;
    }

    .button {
        width: 10rem !important;
        padding: 10px ;
        border-radius: 7px;
        font-size: 2rem;
    }

    .input-element {
        font-size: 2rem;
    }

    select {
        height: 4rem;
    }

    .language-picker {
        display: none !important;
    }

    #toggle-filter-modal {
        display: none !important;
    }

    .heading-container h1 {
        font-size: 3rem;
    }

    .creator-menu {
        overflow-y: scroll;
        gap: 2rem;

        & > .creator-container {
            min-height: 250px;
            max-height: 250px;
            min-width: 250px;
            max-width: 250px;

            & > h2 {
                font-size: 1.3rem;
                max-width: 100%;
                overflow: hidden;
                text-overflow: ellipsis;
            }

            & > .creator-starred {
                font-size: 1.5rem;
            }
        }
    }

    /* Creators overview: the cards are sized for the desktop grid (175px wide,
       18px names). The mobile layout viewport is ~3x wider than the device, so
       everything has to scale up to stay legible after the browser zooms out. */
    #creator-list {
        width: 90%;
        /* Two columns at the ~980px phone layout viewport, dropping to one if
           the page is ever laid out narrower (a resized desktop window). */
        grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
        column-gap: 2rem;

        /* Util.displayNoResults sizes the empty state inline for desktop. */
        & > .message-container > h1 {
            font-size: 2.5rem !important;
            margin-top: 0;
        }

        /* Skeletons sizes the bones inline for the desktop card, so the mobile
           loading state needs !important to match the cards it stands in for. */
        & > .bone {
            min-width: 0 !important;
            max-width: 100% !important;
            width: 100%;
            margin-bottom: 4rem !important;

            /* name placeholder / "starred in" placeholder */
            & > div:first-child {
                height: 2rem !important;
                margin-bottom: 0.5rem !important;
            }

            & > div:last-child {
                height: 1.7rem !important;
                margin-top: 0.5rem !important;
            }
        }

        & > .creator-container {
            min-width: 0;
            max-width: 100%;
            width: 100%;
            margin-bottom: 4rem;

            & > h2 {
                font-size: 2rem;
                line-height: 1.25;
                white-space: normal;
                display: -webkit-box;
                -webkit-line-clamp: 2;
                -webkit-box-orient: vertical;
                overflow: hidden;
                margin-bottom: 0.5rem;
            }

            /* The grid stretches every card in a row to the same height, so
               pushing the avatar down absorbs the extra line of a wrapped name
               above it and keeps the avatars of a row aligned. */
            & > .creator-link {
                margin-top: auto;
            }

            & > .creator-link > .creator-type-badge {
                font-size: 2.5rem;
                border-width: 4px;
            }

            & > .creator-starred {
                font-size: 1.7rem;
                margin-top: 0.5rem;
            }
        }
    }

    .tag-list {
        margin-top: 1rem;
        display: flex;
        padding: 0 !important;
        overflow-y: hidden;
    }

    .tag-list .filter-tag {
        font-size: 3rem;
        height: 4rem;
        margin: 0 1rem 0 0 !important;
        width: auto !important;
        text-wrap: nowrap;
    }

    .tag-list .tag {
        font-size: 2rem;
        text-wrap: nowrap;
        margin-right: 1rem;
        height: 3rem;
    }

    /*Hide tag info as this isn't correct on mobile anymore, users cant right click.*/
    .heading-container > .tag-info {
        display: none;
    }

    /*Tag filtering isn't usable on the home feed on mobile (no right-click to hide, cramped scroll strip), so hide it like the other filters.*/
    .heading-container:has(.tag-title) {
        display: none !important;
    }

    .home-tag-list {
        display: none !important;
    }

    .video-list, .video-list-recommended {
        grid-template-columns: 1fr !important;
        row-gap: 8rem !important;
        padding-bottom: 8rem !important;
    }

    .switch {
        width: 90px;
        height: 40px;
    }

    .slider:before {
        height: 24px;
        width: 24px;
        left: 8px;
    }

    input:checked + .slider:before {
        transform: translate(52px, -50%);
    }

    .title {
        font-size: 4rem;
    }

    #video-creators {
        & > .creator-container {
            width: auto;
            height: 6rem;

            & > a {
                height: 100%;
                padding: 1rem 2rem 1rem 1.5rem;

                & > .creator-name {
                    font-size: 2rem;
                }

                & > .creator-thumbnail {
                    height: 100%;
                }
            }
        }
    }

    #video-characters {

        & > .character-container {
            & > .character-card {
                padding: 0.4rem 0.8rem;
            }

            & .character-avatar {
                height: 3rem;
                width: 3rem;
                border-radius: 50%;
            }

            & .character-name {
                font-size: 2rem;
            }
        }
    }
}

/* Gallery */
.image-modal {
    position: fixed;
    top: 0;
    left: 50px;
    width: calc(100% - 50px);
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 100;

    & > #favorite, & > #favorite-image {
        position: absolute;
        z-index: 999;
        left: 5rem;
        bottom: 5rem;
    }

    & > #score {
        position: absolute;
        z-index: 999;
        left: 12rem;
        bottom: 5rem;
    }

    & > .modal-close { top: 20px; right: 30px; }
    & > .modal-prev { top: 50%; left: 20px; transform: translateY(-50%); }
    & > .modal-next { top: 50%; right: 20px; transform: translateY(-50%); }

    & > .modal-content {
        & > #modal-image {
            max-width: 90%;
            max-height: 90%;
            z-index: 110;
        }
    }
}


#image-list {
    height: calc(100vh - 300px);
    min-height: 400px;
    overflow-y: auto;
    overflow-x: hidden;

    & > .image-grid {
        margin: 0 auto 10px auto;
    }
}

@media (max-width: 1000px) {
    .image-modal {
        & > .modal-close { top: 0; font-size: 8rem; }
        & > .modal-prev,
        & > .modal-next { height: 50%; font-size: 8rem; }
        & > .modal-prev { left: 30px; }
        & > .modal-next { right: 30px; }
    }

    #image-list {
        width: 100%;
        height: calc(100vh - 200px);

        & > .image-grid {
            margin: 0 auto;
            width: 90%;
        }
    }
}

#creator-filters {
    width: 100%;
    max-width: 900px;
    margin: 1.5rem auto 2rem auto;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;

    & > .input-container {
        display: flex;
        flex-direction: column;
        flex: 1 1 0;
        min-width: 220px;
    }

    /* On mobile the three filters stack, and every control has to be scaled up:
       the shared input/select2 rules are pinned with !important, so the
       overrides need the #creator-filters id to win. */
    @media (max-width: 1000px) {
        width: 90%;
        max-width: none;
        flex-direction: column;
        align-items: stretch;
        flex-wrap: nowrap;
        gap: 1.5rem;
        margin: 2rem auto 3rem auto;

        & > .input-container {
            width: 100%;
            min-width: 0;
            flex: 0 0 auto;
            margin-bottom: 0;
        }

        & label {
            font-size: 2rem;
            margin-bottom: 0.4rem;
        }

        & .input-element,
        & input[type="search"] {
            height: 4rem;
            font-size: 2rem !important;
        }

        & .select2-container .select2-selection--single {
            height: 4rem !important;
            line-height: 4rem !important;
            font-size: 2rem !important;
        }

        & .select2-selection__rendered {
            line-height: calc(4rem - 2px) !important;
            padding: 0 1rem !important;
        }

        & .select2-selection__arrow {
            height: calc(4rem - 2px) !important;
            width: 3rem !important;
        }
    }
}

/* The creator filters pass dropdownParent so select2 renders the option list
   inside #creator-filters instead of <body>, which keeps the mobile scale-up
   below scoped to this page. (dropdownCssClass is not an option here: it only
   exists in select2's full build, and this project ships the core one.) */
@media (max-width: 1000px) {
    #creator-filters .select2-results__option {
        font-size: 2rem !important;
        padding: 1rem !important;
    }
}

.croppie-rotate-button {
    display: inline-flex;
    background: var(--hs-mediumgrey);
    color: var(--hs-white);
    border: none;
    border-radius: 999px;
    width: 2rem;
    height: 2rem;
    font-size: 1.25rem;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    line-height: 1;
    padding: 0;
    flex-shrink: 0;
}

.croppie-rotate-button:hover {
    background: var(--hs-lightgrey);
    color: white;
}
@keyframes starGlow {
      0%, 100% { filter: drop-shadow(0 6px 22px rgba(168, 85, 247, 0.28)); }
      50% { filter: drop-shadow(0 10px 30px rgba(168, 85, 247, 0.55)); }
  }
@keyframes ringSpin {
      from { transform: rotate(0deg) scale(1); }
      to { transform: rotate(360deg) scale(1); }
  }
@keyframes emberPulse {
      0%, 100% { opacity: 0.35; transform: scale(0.96); }
      50% { opacity: 0.7; transform: scale(1.06); }
  }
@keyframes profileFillBar {
    to { transform: scaleY(1); }
}
@keyframes fillTag {
    to { width: var(--fill-width, 100%); }
}
@keyframes pulseGlow {
    0%,
    100% {
        filter:
                drop-shadow(0 0 6px rgba(255, 50, 50, 0.7))
                drop-shadow(0 0 12px rgba(255, 0, 0, 0.5))
                drop-shadow(0 0 18px rgba(255, 100, 100, 0.3));
    }
    50% {
        filter:
                drop-shadow(0 0 10px rgba(255, 0, 0, 0.9))
                drop-shadow(0 0 20px rgba(255, 40, 40, 0.7))
                drop-shadow(0 0 30px rgba(255, 100, 100, 0.5));
    }
}

/* Croppie zoom slider */
.croppie-container > .cr-slider-wrap {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.2rem !important;
}

.croppie-container .cr-slider {
    flex: 1 1 0;
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 10px;
    border-radius: 999px;
    box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.45);
    cursor: pointer;
    transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.croppie-container .cr-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, var(--hs-brightred), #810000 55%, #3c0000 100%);
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.45);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.croppie-container .cr-slider::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, var(--hs-brightred), #810000 55%, #3c0000 100%);
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.45);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.croppie-container .cr-slider:hover::-webkit-slider-thumb,
.croppie-container .cr-slider:focus-visible::-webkit-slider-thumb,
.croppie-container .cr-slider:hover::-moz-range-thumb,
.croppie-container .cr-slider:focus-visible::-moz-range-thumb {
    transform: scale(1.05);
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.55);
}

.croppie-container .cr-slider::-moz-range-track {
    height: 10px;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--hs-darkred), var(--hs-brightred));
    border: 1px solid var(--hs-brightred);
    box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.45);
}

.timestamp-link {
    color: #6a8cff;
    cursor: pointer;
    font-weight: 500;
}

.timestamp-link:hover {
    text-decoration: underline;
}

.styled-label {
    background-color: var(--hs-brightred);
    padding: 0.1rem 0.2rem;
    border-radius: 4px;
    font-size: 0.8rem;
    line-height: 0.8rem;
    font-family: Consolas, serif;
}

.settings-tiles {
    display: flex;
    align-items: flex-end;
    margin: 1.5rem auto 0;
    width: 90%;
    max-width: 1100px;
    border-bottom: 2px solid var(--border-gray);
    overflow-x: auto;
}

.settings-tile {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.65rem 1.25rem;
    border: none;
    border-bottom: 2px solid transparent;

    background: transparent;
    color: rgba(255, 255, 255, 0.45);
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
    transition: color 0.2s, border-color 0.2s;
    white-space: nowrap;
    border-radius: 0;

    & i { font-size: 1rem; }
}

.settings-tile:hover,
.settings-tile:focus-visible {
    color: var(--hs-white);
    border-bottom-color: rgba(255, 255, 255, 0.2);
}

.settings-tile.is-active {
    color: var(--hs-white);
    border-bottom-color: var(--hs-brightred);
}

.settings-panel {
    display: none;
    padding: 2rem 1.5rem 1.5rem;
    margin: 0 auto 2rem;
    width: 90%;
    max-width: 1100px;
}

.settings-panel.is-active {
    display: block;
}

.settings-panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.settings-panel-header h2 {
    margin: 0;
}

.settings-panel-close {
    border: none;
    background: transparent;
    color: var(--hs-brightred);
    font-weight: 600;
    cursor: pointer;
}

.settings-panel-close:hover,
.settings-panel-close:focus-visible {
    text-decoration: underline;
}

/* Creator face images section */
.facial-recognition-adder {
    margin: 2rem auto;
    border-top: 1px solid var(--border-gray);
    border-bottom: 1px solid var(--border-gray);
    border-radius: 16px;

    & > h2 {
        margin: 1rem auto;
    }
}

#face-image-manager {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    width: 100%;
}

#face-images-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem;
}

.face-images-empty {
    color: var(--hs-lightgrey, #aaa);
    font-style: italic;
    margin: 0;
    width: 100%;
    text-align: center;
}

#face-images-list:has(> .face-images-empty) {
    justify-content: center;
}

.face-image-item {
    position: relative;
    width: 100px;
    height: 100px;
    border-radius: 6px;
    overflow: hidden;
    border: 2px solid var(--hs-darkgrey, #333);
}

.face-image-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.face-image-delete-btn {
    position: absolute;
    top: 2px;
    right: 2px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    border: none;
    background: rgba(0, 0, 0, 0.7);
    color: #fff;
    font-size: 14px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    opacity: 0;
    transition: opacity 150ms;
}

.face-image-item:hover .face-image-delete-btn {
    opacity: 1;
}

#add-face-image-btn {
    width: 100px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    border: 2px solid var(--hs-darkred, #333);
    cursor: pointer;
    color: inherit;
    padding: 0;
    flex-shrink: 0;
    transition: all 200ms ease-in-out;
    border-radius: 4px;
    background-color: var(--hs-red);
}

#add-face-image-btn:hover:not(:disabled),
#add-face-image-btn.dragover {
    background-color: var(--hs-brightred);
}

#add-face-image-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

#face-image-modal {
    width: 420px;
    display: none;
}

#face-image-croppie-container {
    margin: 1rem 0;
    min-height: 0px;
}

#face-image-modal-actions {
    display: flex;
    gap: 0.75rem;
    justify-content: flex-end;
    margin-top: 1rem;
}

.section-description {
    color: var(--hs-lightgrey, #aaa);
    font-size: 0.9rem;
    margin-bottom: 0.75rem;
    margin-top: -0.5rem;
}

#edit-creator-form {
    #thumbnail-preview {
        max-width: 150px;
        max-height: 150px;
        object-fit: contain;
    }
}

input[type="search"] {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 256 256' fill='%23888888'%3E%3Cpath d='M229.66,218.34l-50.07-50.06a88.11,88.11,0,1,0-11.31,11.31l50.06,50.07a8,8,0,0,0,11.32-11.32ZM40,112a72,72,0,1,1,72,72A72.08,72.08,0,0,1,40,112Z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: 0.55rem center;
    background-size: 0.85rem 0.85rem;
    padding-left: 2rem !important;
}

@media (max-width: 1000px) {
    input[type="search"] {
        background-position: 0.8rem center;
        background-size: 1.6rem 1.6rem;
        padding-left: 3.5rem !important;
    }
}

/* ---------------------------------------------------------------------------
   Upload pages (upload.twig / upload_image.twig) on mobile.

   The site ships no viewport meta, so phones lay out at ~980px and zoom the
   page out; the form needs one scaled-up type ramp or the labels land at 2rem
   next to 0.9rem inputs. The shared input rules are pinned with !important and
   the shared label rule only reaches direct children of the form, so these
   overrides are keyed on #upload-form.uploadform — which is exactly these two
   pages, and never the control panel form that reuses the id.
   --------------------------------------------------------------------------- */
@media (max-width: 1000px) {
    #upload-form.uploadform {
        /* Field labels. Section headings keep the global 2.5rem; togglers and
           sub-headings sit one step below so the hierarchy still reads. */
        & label,
        & .switch-label {
            font-size: 2rem !important;
        }

        & h3,
        & .text-lg,
        & .form-toggler,
        & #display-cue-builder,
        & #upload-video-set-toggle,
        & #upload-image-set-toggle {
            font-size: 2rem;
        }

        & .input-element,
        & input[type="text"],
        & input[type="url"],
        & input[type="date"],
        & input[type="number"],
        & input[type="search"],
        & textarea,
        & select {
            font-size: 2rem !important;
        }

        & .input-element:not(textarea),
        & input[type="text"],
        & input[type="url"],
        & input[type="date"],
        & input[type="number"],
        & input[type="search"],
        & select {
            height: 4rem;
        }

        /* .h-10rem holds ~11 lines at the desktop font but only three at 2rem. */
        & textarea {
            height: 16rem;
        }

        /* .button is pinned to 10rem wide on mobile, which is narrower than
           most of these labels at 2rem ("Set thumbnail" wrapped out of its
           own box), so let them size to their text instead. */
        & .button {
            width: auto !important;
            min-width: 12rem;
            padding: 1rem 2rem;
            height: auto;
        }

        /* The fixed 5rem could not hold a 2rem button, so "Import from
           storage" overlapped the switch underneath it. */
        & > .import-button-container {
            height: auto;
            margin-bottom: 2rem;
        }

        /* Fields need more air once the labels are 2rem. */
        & > .input-container {
            margin-bottom: 2rem;
        }

        & .croppie-dropzone__label {
            font-size: 2rem;
            margin: 3rem 0;
        }

        & #load-dan-data {
            width: 4rem;
            height: 4rem;
            font-size: 2rem;
        }

        /* Cue rows: the shared cue sizes are pinned with !important, and the
           row height is an inline style on the cells. */
        & #cue-builder th {
            font-size: 2rem;
        }

        & #cue-builder td {
            height: 5rem !important;
        }

        & .cue-input,
        & .cue-select {
            height: 4rem !important;
            font-size: 2rem !important;
        }

        & .cue-icon {
            height: 4rem;
        }

        & #add-cue {
            font-size: 2rem;
        }
    }

    .upload-overlay__text {
        font-size: 2.5rem;
    }

    .upload-overlay__hint {
        font-size: 2rem;
    }
}
