:root {
    --mobile-width: 600px;

    --btn-right-height: 50px;
    --btn-right-marginBottom: 15%;
}

* {
    -webkit-tap-highlight-color: transparent;
}

body {
    margin: 0;
    padding: 0;
    
    /*background-color: #f0f2f5;*/
    background-color: #ff8c00;

    background-attachment: fixed;
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
    background-image: url('/assets/images/background.png');    

    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI Historic", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    font-size: 15px;
    overflow-y: scroll;
}

@media (max-width: 600px) {
    body {
        background-image: url('/assets/images/background-mobile.png');
    }
}

.btn-right {
    position: fixed;

    height: var(--btn-right-height);
    aspect-ratio: 1/1;

    background-size: 90% 90%;
    background-repeat: no-repeat;
    background-position: center;
    background-color: #fff;

    border-radius: 100% 0 0 100%;
    cursor: pointer;

    transition: background-size .15s ease;
}

.btn-right.scrollTop {
    right: 0;
    bottom: calc(var(--btn-right-marginBottom) + var(--btn-right-height) + 20px);

    background-size: 75% 75%;
    background-image: url(/assets/images/arrow-up.png);
    display: none;
}

.btn-right.scrollTop:active {
    background-size: 55% 55%;
}

.btn-right.menu {
    right: 0;
    bottom: var(--btn-right-marginBottom);

    background-image: url(/assets/images/menu.png);
}

.btn-right.menu:active {
    background-size: 70% 70%;
}

.container {
    width: var(--mobile-width);
    max-width: 100%;
    margin: 0 auto;
    padding-top: 65px;
}

.navbar-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%; 
    pointer-events: none;
    z-index: 1000;
}

.navbar {
    position: relative;
    pointer-events: auto;
    width: var(--mobile-width);
    max-width: 100%;
    height: 50px;
    margin: 0 auto;
    box-shadow: 0 4px 6px -2px rgba(0, 0, 0, 0.1);
    border-radius: 0;

    background-color: #fff;
    
    transition: background-color 0.3s ease-in-out,
                width 0.3s ease-in-out, 
                max-width 0.3s ease-in-out,
                margin-top 0.3s ease-in-out, 
                padding 0.3s ease-in-out,               
                border-radius 0.3s ease-in-out;
    
    will-change: width, max-width, margin-top, padding, border-radius;

    display: flex;
    align-items: center;
    justify-content: center;
    
    padding: 0 40px; 
    box-sizing: border-box;
    gap: 10px;
}

.navbar::before {
    content: '';
    position: fixed;
    top: 0;
    left: calc(50% - var(--mobile-width) / 2);
    width: var(--mobile-width);
    height: calc(50px + 20px + 13px);
    background-image: linear-gradient(to bottom, rgba(255, 255, 255, 0.13), transparent);
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
    pointer-events: none;
    z-index: -1;
}

.navbar.is-scrolled::before {
    opacity: 1;
}

.navbar.is-scrolled {
    width: calc(var(--mobile-width) - var(--mobile-width) * 0.2);
    max-width: 80%;
    margin: 20px auto 0 auto;
    border-radius: 55px;
    padding: 0 25px;
    background-color: rgba(255, 255, 255, 0.5);
}

.navbar-item {
    flex: 1; 
    height: 100%;
    min-width: 30px;
    box-sizing: border-box;
    border-width: 0;
    border-top: 3.5px solid transparent;
    border-bottom: 3.5px solid transparent;
    cursor: pointer;
    position: relative;
}

.navbar-item::after {
    content: attr(data-tooltip);
    position: absolute;
    
    bottom: -36px; 
    left: 50%;
    transform: translateX(-50%);
    
    background-color: rgba(0, 0, 0, 0.85);
    
    color: #E4E6EB;
    font-size: 12px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    font-weight: normal;
    
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    
    padding: 9px 14px;
    border-radius: 12px;
    
    white-space: nowrap;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    
    opacity: 0;
    pointer-events: none; 
    transition: opacity 0.15s ease 0.3s;
}

@media (hover: hover) {
    .navbar-item:hover::after {
        opacity: 1;
        transform: translateX(-50%);
    }
}

.navbar-item .navbar-item-inner {
    width: 100%;
    height: 100%;
    border-radius: 10px;

    display: flex;
    align-items: center;
    justify-content: center;
}

@media (hover: hover) {
    .navbar-item:hover .navbar-item-inner {
        background-color: rgba(0, 0, 0, 0.05);
    }
}

.navbar-item.is-activated {
    border-bottom-color: #0ABEE8;
}

@media (hover: hover) {
    .navbar-item.is-activated:hover .navbar-item-inner {
        background-color: transparent;
    }
}

.navbar-item .navbar-item-icon {
    height: 85%;
    aspect-ratio: 1/1;
    background-size: 100% 100%;
    background-repeat: no-repeat;
    background-position: center;
}

.navbar-item .navbar-item-icon.home {
    background-image: url(/assets/images/navbar-item-icon/home-0.png);
}

.navbar-item.is-activated .navbar-item-icon.home {
    background-image: url(/assets/images/navbar-item-icon/home-1.png);
}

.navbar-item .navbar-item-icon.chat {
    background-image: url(/assets/images/navbar-item-icon/chat-0.png);
}

.navbar-item.is-activated .navbar-item-icon.chat {
    background-image: url(/assets/images/navbar-item-icon/chat-1.png);
}

.navbar-item .navbar-item-icon.play {
    background-image: url(/assets/images/navbar-item-icon/play-0.png);
}

.navbar-item.is-activated .navbar-item-icon.play {
    background-image: url(/assets/images/navbar-item-icon/play-1.png);
}

.navbar-item .navbar-item-icon.me {
    background-image: url(/assets/images/navbar-item-icon/me-0.png);
}

.navbar-item.is-activated .navbar-item-icon.me {
    background-image: url(/assets/images/navbar-item-icon/me-1.png);
}

.navbar-loader {
    position: absolute;
    left: 50%;
    top: 0;
    transform: translate(-50%, -100%);
    opacity: 0;
    z-index: -2;

    height: 90%;
    aspect-ratio: 1/1;
    border-radius: 50%;
    background-color: #ffffff;

    background-image: url(/assets/images/loading-wave.gif);
    background-repeat: no-repeat;
    background-position: center;
    background-size: 70%;

    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15), 
                0 2px 6px rgba(0, 0, 0, 0.06);

    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1), 
                opacity 0.25s ease-in-out;
    
    pointer-events: none;
}

.navbar-loader.is-loading {
    opacity: 1;
    transform: translate(-50%, calc(160%)); 
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1), 
                opacity 0.6s ease-in-out 0.18s;
}

.view-container {
    width: 100%;
    padding-bottom: 30px;
}

.skeleton-item {
    width: 100%;
    height: 280px;
    margin-bottom: 15px;
    overflow: hidden;
}

.skeleton-item.is-chat {
    height: 90px;
}

.skeleton-item.is-play {
    height: 400px;
}

.skeleton-item.is-me {
    height: 700px;
}