:root {
    --bg-dark: #081a57;
    --bg-mid: #123a9b;
    --bg-light: #3ea9ff;
    --nav-dark: #061548;
    --nav-border: rgba(255, 255, 255, 0.08);

    --text-main: #ffffff;
    --text-dim: rgba(255, 255, 255, 0.68);

    --cyan-1: #93ecff;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    min-height: 100vh;
    background: #ffffff;
    color: #0a1749;
}

a {
    text-decoration: none;
    color: inherit;
}

button {
    border: none;
    background: none;
    cursor: pointer;
    font: inherit;
}

.app-shell {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.top-bar {
    height: 78px;
    background: var(--nav-dark);
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 0 20px;
    border-bottom: 1px solid var(--nav-border);
}

.menu-btn {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: linear-gradient(180deg, rgba(113, 223, 255, 0.22), rgba(31, 95, 217, 0.35));
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 4px;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.16);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.menu-btn span {
    display: block;
    width: 16px;
    height: 2px;
    background: white;
    border-radius: 10px;
}

.app-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-main);
}

.top-tabs,
.bottom-tabs {
    height: 68px;
    background: var(--nav-dark);
    display: flex;
    align-items: center;
    justify-content: space-around;
    border-bottom: 1px solid var(--nav-border);
}

.bottom-tabs {
    border-top: 1px solid var(--nav-border);
    border-bottom: none;
    margin-top: auto;
}

.tab-link {
    position: relative;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    color: var(--text-dim);
    padding-bottom: 10px;
    font-weight: 900;
}

.tab-link.active {
    color: var(--cyan-1);
}

.tab-link.active::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 38px;
    height: 2px;
    background: var(--cyan-1);
    border-radius: 20px;
}

.main-area {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px 20px;
}

.play-wrapper {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.play-image-btn {
    position: relative;
    display: inline-block;
    border: none;
    background: transparent;
    cursor: pointer;
    animation: floatButton 2.8s ease-in-out infinite;
    transition: transform 0.2s ease;
}

.play-image-btn:hover {
    transform: scale(1.04);
}

.play-image-btn:active {
    transform: scale(0.96);
}

.play-image {
    width: 210px;
    max-width: 80vw;
    height: auto;
    display: block;
    filter: drop-shadow(0 18px 28px rgba(6, 25, 90, 0.45));
}

.play-label {
    position: absolute;
    top: 52%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
    pointer-events: none;
    color: #1093E6;
    font-size: 36px;
    font-weight: 900;
    letter-spacing: 1px;
    text-shadow: 0 0.01em currentColor;
    
    /* text-shadow: 0 1px 0 rgba(255, 255, 255, 0.35); */
}

@keyframes floatButton {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

@media (max-width: 480px) {
    .top-bar {
        padding: 0 16px;
        gap: 14px;
    }

    .app-title {
        font-size: 15px;
    }

    .tab-link {
        font-size: 14px;
    }

    .play-image {
        width: 180px;
    }

    .play-label {
        font-size: 20px;
    }
}

.top-bar,
.top-tabs {
    background: #061548;
}

.top-bar,
.bottom-tabs {
    background: #1093E6;
}

.hidden {
    display: none !important;
}

/* extra css */

/* extra */
/* SCROLL ONLY THE PLAY AREA, KEEP TOP/BOTTOM BARS VISIBLE */
html,
body {
    height: 100% !important;
}

body {
    overflow: hidden !important;
}

.app-shell {
    height: 100dvh !important;
    min-height: 100dvh !important;
    display: flex !important;
    flex-direction: column !important;
    overflow: hidden !important;
}

.top-bar,
.top-tabs,
.bottom-tabs {
    flex-shrink: 0 !important;
}

.main-area {
    flex: 1 1 auto !important;
    min-height: 0 !important;
    overflow: hidden !important;
    padding: 8px 12px !important;
}

.play-wrapper {
    flex: 1 1 auto !important;
    min-height: 0 !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    -webkit-overflow-scrolling: touch !important;
    padding: 12px 0 !important;
}

/* MAKE PLAY WRAPPER TALLER / FILL AVAILABLE HEIGHT */
.main-area {
    display: flex !important;
    flex: 1 1 auto !important;
    min-height: 0 !important;
    overflow: hidden !important;
}

.play-wrapper {
    flex: 1 1 100% !important;
    height: 100% !important;
    min-height: 0 !important;
    align-self: stretch !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
}

