[x-cloak] {
    display: none !important;
}

/*---------------------- TOASTR --------------------*/
.toast {
    opacity: 1 !important;
}

/*---------------------- LOCK SCROLLING --------------------*/
#feed {
    overflow-y: scroll; /* allow programmatic scrolling */
    scroll-behavior: auto; /* disable native smooth scroll */
    scroll-snap-type: none; /* disable snap for manual animation */
    -webkit-overflow-scrolling: auto;
    touch-action: none; /* prevent native swipe momentum */
}


/*---------------------- GENERAL --------------------*/
:where([class^="ri-"])::before {
    content: "\f3c2";
}

body {
    font-family: 'Inter', sans-serif;
    height: 100vh;
    overflow: hidden;
}

.media-container {
    position: relative;
    height: calc(100dvh - 4rem);
    overflow: hidden;
}

.media-container-no-more-media  {
    height: calc(100dvh);
}

.media-overlay {
    background: linear-gradient(to bottom, transparent 70%, rgba(0, 0, 0, 0.7) 100%);
}

.action-bar button {
    transition: all 0.2s;
}

.action-bar button:hover {
    transform: scale(1.1);
}

.action-bar button:active {
    transform: scale(0.95);
}

.bottom-nav {
    height: 4rem;
    background: #000;
}

.upload-btn {
    margin-top: -1.5rem;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
}

.music-info {
    max-width: 200px;
    overflow: hidden;
    white-space: nowrap;
}

.music-text {
    display: inline-block;
    animation: marquee 10s linear infinite;
}

@keyframes marquee {
    0% {
        transform: translateX(100%);
    }
    100% {
        transform: translateX(-100%);
    }
}

input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    background: #FF2D55;
    border-radius: 50%;
    cursor: pointer;
}

.custom-checkbox {
    position: relative;
    display: inline-block;
    width: 20px;
    height: 20px;
    margin-right: 8px;
}

.custom-checkbox input {
    opacity: 0;
    width: 0;
    height: 0;
}

.checkmark {
    position: absolute;
    top: 0;
    left: 0;
    width: 20px;
    height: 20px;
    background-color: #eee;
    border-radius: 4px;
}

.custom-checkbox input:checked ~ .checkmark {
    background-color: #FF2D55;
}

.checkmark:after {
    content: "";
    position: absolute;
    display: none;
}

.custom-checkbox input:checked ~ .checkmark:after {
    display: block;
}

.custom-checkbox .checkmark:after {
    left: 7px;
    top: 3px;
    width: 6px;
    height: 12px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.custom-switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 24px;
}

.custom-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .4s;
    border-radius: 34px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

input:checked + .slider {
    background-color: #FF2D55;
}

input:checked + .slider:before {
    transform: translateX(26px);
}

.tab-active {
    color: #FF2D55;
    border-bottom: 2px solid #FF2D55;
}

.hidden-view {
    display: none;
}

.active-view {
    display: block;
}

.profile_urls a {
    text-decoration: underline;
}

/* -------------------- SOCIAL LOGIN BUTTONS ----------------------- */
.social-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px 20px;
    margin-top: 10px;
    border-radius: 6px;
    font-weight: bold;
    text-decoration: none;
    color: white;
    transition: transform 0.2s, box-shadow 0.2s;
}

.social-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.twitter-btn {
    background-color: #1DA1F2;
}

.twitter-btn svg {
    margin-right: 8px;
}