/* =========================
SoundCharts TikTok Mobile
Prefix: sctm_
Current HTML version
Mobile only
========================= */

.sctm_wrap,
.sctm_panel,
.sctm_overlay,
.sctm_sheetwrap,
.sctm_sheet,
.sctm_list,
.sctm_form,
.sctm_comment {
    display: none;
}

@media (max-width: 768px) {
    html,
    body {
        max-width: 100%;
        overflow-x: hidden !important;
    }

    html.sctm_lock,
    body.sctm_lock {
        overflow: hidden !important;
        height: 100% !important;
        touch-action: none;
    }

    .sctm_wrap {
        display: block;
    }

    /* =========================
     Right action panel
     ========================= */
    .sctm_panel {
        position: fixed;
        right: 2px;
        bottom: 120px;
        z-index: 10020;
        display: flex;
        flex-direction: column;
        gap: 18px;
        transition: opacity .22s ease, transform .22s ease;
    }

    .sctm_panel.sctm_panel--hidden {
        opacity: 0;
        pointer-events: none;
        transform: translateX(10px);
    }

    .sctm_panel__item {
        width: 44px;
        border: 0;
        padding: 0;
        margin: 0;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        background: transparent !important;
        box-shadow: none !important;
        border-radius: 0;
        -webkit-appearance: none;
        appearance: none;
    }

    .sctm_panel__item,
    .sctm_panel__item * {
        background: transparent !important;
    }

    .sctm_panel__icon {
        font-size: 26px;
        line-height: 1;
        margin-bottom: 2px;
        color: #fff;
        display: block;
    }

    .sctm_panel__icon svg {
        display: block;
        width: 24px;
        height: 24px;
        fill: #fff;
    }

    .sctm_panel__num {
        font-size: 11px;
        line-height: 1;
        color: #fff;
        font-weight: 600;
        margin: 0;
        padding: 0;
        display: block;
        text-align: center;
    }

    /* =========================
     Overlay
     ========================= */
    .sctm_overlay {
        position: fixed;
        inset: 0;
        background: rgba(0,0,0,.34);
        z-index: 10030;
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transition: opacity .22s ease, visibility .22s ease;
    }

    .sctm_overlay.sctm_open {
        display: block;
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }

    /* =========================
     Bottom sheet wrapper
     ========================= */
    .sctm_sheetwrap {
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 10040;
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transform: translateY(100%);
        transition: transform .24s ease, opacity .22s ease, visibility .22s ease;
    }

    .sctm_sheetwrap.sctm_open {
        display: block;
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        transform: translateY(0);
    }

    /* =========================
     Comments sheet
     ========================= */
    .sctm_sheet {
        position: relative;
        z-index: 10041;
        display: flex;
        flex-direction: column;
        height: 70vh;
        background: #fff;
        border-radius: 22px 22px 0 0;
        box-sizing: border-box;
        box-shadow: 0 -10px 34px rgba(0,0,0,.18);
        overflow: hidden;
    }

    .sctm_sheet__grab {
        width: 46px;
        height: 5px;
        border-radius: 999px;
        background: #d9d9d9;
        margin: 10px auto 8px;
        display: block;
        flex: 0 0 auto;
    }

    .sctm_sheet__head {
        position: sticky;
        top: 0;
        z-index: 5;
        padding: 0 18px 12px;
        display: block;
        background: #fff;
        flex: 0 0 auto;
    }

    .sctm_sheet__meta {
        display: flex;
        align-items: center;
        gap: 10px;
        padding-right: 40px;
    }

    .sctm_sheet__title {
        font-size: 14px;
        line-height: 1.35;
        font-weight: 700;
        color: #111;
        display: inline;
    }

    .sctm_sheet__title--muted {
        color: #6a6a6a;
        font-weight: 600;
    }

    .sctm_sheet__sep {
        color: #b2b2b2;
        font-size: 14px;
        line-height: 1;
    }

    .sctm_sheet__close {
        position: absolute;
        top: -2px;
        right: 14px;
        width: 32px;
        height: 32px;
        border: 0;
        background: transparent !important;
        color: #111;
        font-size: 30px;
        line-height: 1;
        padding: 0;
        -webkit-appearance: none;
        appearance: none;
    }

    .sctm_sheet__divider {
        position: sticky;
        top: 49px;
        z-index: 5;
        height: 1px;
        background: #ececec;
        margin: 0;
        display: block;
        flex: 0 0 auto;
    }

    /* =========================
     Comment list
     ========================= */
    .sctm_list {
        flex: 1 1 auto;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        padding: 12px 16px 14px;
        box-sizing: border-box;
        display: block;
        background: #fff;
        min-height: 0;
    }

    .sctm_comment {
        display: block;
        padding: 0 0 14px;
        margin: 0 0 14px;
        border-bottom: 1px solid #f1f1f1;
    }

    .sctm_comment:last-child {
        border-bottom: 0;
        margin-bottom: 0;
        padding-bottom: 0;
    }

    .sctm_comment--empty {
        border-bottom: 0;
    }

    .sctm_comment__head {
        display: flex;
        align-items: center;
        gap: 6px;
        margin-bottom: 6px;
    }

    .sctm_comment__index {
        font-size: 12px;
        line-height: 1.3;
        font-weight: 700;
        color: #9a9a9a;
        margin-right: 4px;
    }

    .sctm_comment__name {
        font-size: 13px;
        line-height: 1.3;
        font-weight: 700;
        color: #111;
    }

    .sctm_comment__role {
        font-size: 12px;
        line-height: 1.3;
        color: #8d8d8d;
    }

    .sctm_comment__text {
        font-size: 14px;
        line-height: 1.45;
        color: #111;
        word-break: break-word;
    }

    .sctm_comment__date {
        margin-top: 6px;
        font-size: 12px;
        line-height: 1.3;
        color: #9a9a9a;
    }

    /* =========================
     Bottom input row
     ========================= */
    .sctm_form {
        position: sticky;
        bottom: 0;
        left: 0;
        right: 0;
        z-index: 10;
        display: flex;
        align-items: center;
        gap: 10px;
        padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
        background: #fff;
        border-top: 1px solid #ececec;
        box-sizing: border-box;
        flex: 0 0 auto;
    }

    .sctm_form__input {
        flex: 1;
        height: 44px;
        border: 0;
        border-radius: 12px;
        background: #f3f3f4;
        padding: 0 16px;
        font-size: 14px;
        line-height: 44px;
        color: #9a9a9a;
        box-sizing: border-box;
        display: block;
        outline: none;
        -webkit-appearance: none;
        appearance: none;
    }

    .sctm_form__input::placeholder {
        color: #b0b0b0;
    }

    .sctm_form__send {
        width: 48px !important;
        height: 48px !important;
        flex: 0 0 48px !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        border-radius: 50% !important;
        background: #454545 !important;
        color: #f3c44f !important;
        margin: 0 !important;
        padding: 0 !important;
        box-sizing: border-box !important;
        box-shadow: none !important;
        border: 0 !important;
        outline: none !important;
        cursor: pointer !important;
        line-height: 1 !important;
        text-decoration: none !important;
        vertical-align: middle !important;
        -webkit-appearance: none !important;
        appearance: none !important;
    }

    .sctm_form__send svg {
        display: block !important;
        width: 18px !important;
        height: 18px !important;
        color: #f3c44f !important;
        fill: currentColor !important;
        pointer-events: none !important;
    }

    .sctm_form__send:active {
        transform: scale(.95);
    }
}

@media (min-width: 769px) {
    .sctm_wrap,
    .sctm_panel,
    .sctm_overlay,
    .sctm_sheetwrap,
    .sctm_sheet,
    .sctm_list,
    .sctm_form,
    .sctm_comment {
        display: none !important;
    }
}


/* =========================
Center popup comment form
========================= */

.sctm_popup,
.sctm_popup__overlay,
.sctm_popup__box,
.sctm_popup__close,
.sctm_popup__title,
.sctm_popup__body,
.sctm_popup__footer,
.sctm_popup__send {
    display: none;
}

@media (max-width: 768px) {

    .sctm_popup {
        position: fixed;
        inset: 0;
        z-index: 10100;
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transition: opacity .2s ease, visibility .2s ease;
        display: block;
    }

    .sctm_popup.sctm_popup--open {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }

    .sctm_popup__overlay {
        position: absolute;
        inset: 0;
        background: rgba(0,0,0,.28);
        backdrop-filter: blur(14px);
        -webkit-backdrop-filter: blur(14px);
        display: block;
    }

    .sctm_popup__box {
        position: absolute;
        left: 16px;
        right: 16px;
        top: 50%;
        transform: translateY(-50%);
        border-radius: 24px;
        padding: 18px 18px 20px;
        box-sizing: border-box;
        box-shadow: 0 14px 40px rgba(0,0,0,.32);
        display: block;
        max-width: 520px;
        margin: 0 auto;
        overflow: hidden;
        background: #454545;
		isolation: isolate;
    }

.sctm_popup__box::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(180deg, rgba(20,20,20,0.42), rgba(20,20,20,0.78)),
        var(--popup-bg);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transform: scale(1.12);
    filter: blur(22px) saturate(1.15);
    opacity: 0.96;
    pointer-events: none;
    z-index: 0;
}




    .sctm_popup__box > * {
        position: relative;
        z-index: 1;
    }

    .sctm_popup__close {
        position: absolute;
        top: 14px;
        right: 14px;
        width: 42px;
        height: 42px;
        border: 0;
        border-radius: 18px;
        background: rgba(255,255,255,.12);
        color: #fff;
        font-size: 30px;
        line-height: 1;
        padding: 0;
        -webkit-appearance: none;
        appearance: none;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .sctm_popup__title {
        display: block;
        font-size: 24px;
        line-height: 1.2;
        font-weight: 800;
        color: #fff;
        margin: 0 56px 16px 0;
    }

    .sctm_popup__body {
        display: block;
    }

    .sctm_popup__body textarea {
        width: 100%;
        min-height: 170px;
        border: 0;
        border-radius: 18px;
        background: #5a5a5a;
        color: #fff;
        font-size: 16px;
        line-height: 1.45;
        padding: 16px;
        box-sizing: border-box;
        outline: none;
        resize: none;
        -webkit-appearance: none;
        appearance: none;
    }

    .sctm_popup__body textarea::placeholder {
        color: rgba(255,255,255,0.5);
    }

    .sctm_popup__footer {
        display: flex;
        justify-content: center;
        margin-top: 18px;
    }

    .sctm_popup__send {
        width: 54px;
        height: 54px;
        border-radius: 50%;
        background: #454545;
        color: #f3c44f;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
    }

    .sctm_popup__send svg {
        display: block;
        width: 20px;
        height: 20px;
        fill: currentColor;
    }

    .sctm_popup__send:active {
        transform: scale(.95);
    }
}


.sctm_notify {
    position: fixed;
    left: 50%;
    bottom: 120px;
    transform: translateX(-50%) translateY(20px);

    background: rgba(20,20,20,0.9);
    color: #fff;

    padding: 12px 18px;
    border-radius: 18px;
    font-size: 18px;
    font-weight: 500;

    z-index: 11000;

    opacity: 0;
    visibility: hidden;
    transition: .3s ease;
}

.sctm_notify.sctm_notify--show {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.icon_rep {
    width: 24px;
    height: 24px;
    display: block;
    background: url('/img/rep.png') center center / contain no-repeat;
}

.sctm_panel__item--share .icon_rep {
    background: url('/img/rep.png') center / contain no-repeat !important;
}

.sctm_panel {
    align-items: center;
}

.sctm_panel__item--artist {
    width: 44px !important;
    min-width: 44px !important;
    max-width: 44px !important;
    padding: 0 !important;
    margin: 0 0 10px 0 !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    text-decoration: none !important;
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    -webkit-appearance: none !important;
    appearance: none !important;
}

.sctm_panel__avatar {
    width: 38px !important;
    height: 38px !important;
    min-width: 38px !important;
    min-height: 38px !important;
    max-width: 38px !important;
    max-height: 38px !important;
    margin: 0 !important;
    padding: 0 !important;
    border-radius: 50% !important;
    overflow: hidden !important;
    display: block !important;
    box-sizing: border-box !important;
    border: 2px solid #fff !important;
    line-height: 0 !important;
    font-size: 0 !important;
    background: #222 !important;
}

.sctm_panel__avatar img {
    width: 100% !important;
    height: 100% !important;
    display: block !important;
    object-fit: cover !important;
    border-radius: 50% !important;
}

