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

body {
    background-color: white;
    min-height: 100vh;
    overflow: hidden;
    font-family: 'Rubik', sans-serif;
}

.intro-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    transition: opacity 1s ease-in-out;
}

.intro-overlay.fade-out {
    opacity: 0;
    pointer-events: none;
}

.dark-mode .intro-overlay {
    background-color: #1a1a1a;
}

.welcome-text {
    font-family: 'Rubik', sans-serif;
    font-size: 36px;
    color: black;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 1s ease-out forwards;
}

.dark-mode .welcome-text {
    color: white;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.vignette {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    transition: background 0.1s ease-out;
}

.top-links {
    position: fixed;
    top: 20px;
    left: 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    z-index: 1000;
}

.btn-animate-chars {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    color: #666;
    cursor: pointer;
    border-radius: .25em;
    justify-content: center;
    align-items: center;
    max-width: 12em;
    padding: 0.8em 1.2em;
    font-size: 14px;
    line-height: 1;
    text-decoration: none;
    display: flex;
    position: relative;
    font-family: 'Rubik', sans-serif;
    z-index: 1000;
}

.btn-animate-chars__text {
    white-space: nowrap;
    line-height: 1.3;
}

/* Characters */
.btn-animate-chars [data-button-animate-chars] {
    overflow: hidden;
    position: relative;
    display: inline-block;
}

.btn-animate-chars [data-button-animate-chars] span {
    display: inline-block;
    position: relative;
    text-shadow: 0px 1.3em currentColor;
    transform: translateY(0em) rotate(0.001deg);
    transition: transform 0.6s cubic-bezier(0.625, 0.05, 0, 1);
}

.btn-animate-chars:hover [data-button-animate-chars] span {
    transform: translateY(-1.3em) rotate(0.001deg);
}

/* Background */
.btn-animate-chars__bg {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: .25em;
    position: absolute;
    inset: 0;
    transition: inset 0.6s cubic-bezier(0.625, 0.05, 0, 1);
}

.btn-animate-chars:hover .btn-animate-chars__bg {
    inset: 0.125em;
}



.twitter-link {
    color: black;
    text-decoration: none;
    font-family: 'Rubik', sans-serif;
    font-size: 16px;
    transition: opacity 0.2s ease;
    display: inline-block;
    width: fit-content;
}

.twitter-link:hover {
    opacity: 0.7;
}

.nav-link {
    color: #666;
    text-decoration: none;
    font-family: 'Rubik', sans-serif;
    font-size: 14px;
    transition: all 0.2s ease;
    display: inline-block;
    width: fit-content;
}

.nav-link:hover {
    color: #000;
}

.nav-link[onclick="toggleMusic"] {
    position: relative;
    transition: all 0.3s ease;
}

.nav-link[onclick="toggleMusic"].playing {
    color: #000;
    text-shadow: 0 0 8px rgba(0, 0, 0, 0.2);
}

.dark-mode .nav-link[onclick="toggleMusic"].playing {
    color: #fff;
    text-shadow: 0 0 8px rgba(255, 255, 255, 0.2);
}



.ca-text:hover {
    color: #000;
}

.ca-text::after {
    content: 'Copied!';
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    opacity: 0;
    pointer-events: none;
    transition: all 0.2s ease;
}

.ca-text.copied::after {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.container {
    position: relative;
    width: 100vw;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

.parallax {
    position: absolute;
    width: 45vh;
    height: 45vh;
    transform: translate3d(0, 5vh, 0);
    will-change: transform;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    user-select: none;
    -webkit-user-select: none;
    -webkit-user-drag: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

img.parallax {
    object-fit: contain;
    margin: auto;
    inset: 0;
    pointer-events: none;
    transition: transform 0.1s ease-out;
}

/* Ensure mouth animation works with parallax */
img[alt="mouth"].parallax {
    transition: transform 0.1s ease-out;
    will-change: transform;
}

.text-container {
    position: absolute;
    top: 35%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 100;
}

.typing-text {
    font-family: 'Rubik', sans-serif;
    font-size: 24px;
    font-weight: 400;
    color: black;
    white-space: pre;
    visibility: hidden;
    margin-bottom: 20px;
}



/* Navigation bar styles */
.nav-bar {
    position: fixed;
    bottom: 100px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
}

.nav-list {
    flex-flow: row;
    justify-content: center;
    align-items: flex-end;
    margin-bottom: 0;
    padding-left: 0;
    display: flex;
    font-size: 0.8vw;
}

.nav-item {
    justify-content: center;
    align-items: center;
    width: 3em;
    transition: width .5s cubic-bezier(.16, 1, .3, 1);
    display: flex;
    position: relative;
}

.nav-item__link {
    z-index: 1;
    pointer-events: auto;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
    padding-left: .5em;
    padding-right: .5em;
    display: flex;
    position: relative;
}

.image {
    object-fit: contain;
    width: 100%;
}

/* Icon styles for nav bar */
.nav-item__link svg,
.nav-item__link img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    color: #333;
    transition: color 0.3s ease;
    filter: brightness(0) saturate(100%);
}

.nav-item__link img {
    filter: brightness(0) saturate(100%);
}

.nav-item__tooltip {
    z-index: 0;
    background-color: var(--color-neutral-100, rgba(255, 255, 255, 0.95));
    opacity: 0;
    white-space: nowrap;
    border-radius: .25em;
    padding: .3em .4em;
    font-size: 0.8em;
    transition: transform .5s cubic-bezier(.16, 1, .3, 1), opacity .5s cubic-bezier(.16, 1, .3, 1);
    position: absolute;
    top: 0;
    transform: translate(0, -80%);
    font-weight: 400;
}

.nav-item.sibling-far {
    width: 3.5em;
}

.nav-item.sibling-close {
    width: 4em;
}

.nav-item.hover {
    width: 4.5em;
}

.nav-item:hover .nav-item__tooltip{
    opacity: 1;
    transform:translate(0px, -140%);
}

/* Dark mode styles for nav bar */
.dark-mode .nav-item__tooltip {
    background-color: rgba(26, 26, 26, 0.95);
    color: #e0e0e0;
    border-color: rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}

.dark-mode .nav-item__link svg,
.dark-mode .nav-item__link img {
    color: #e0e0e0;
    filter: brightness(0) saturate(100%) invert(1);
}

/* Dark mode styles for button */
.dark-mode .btn-animate-chars {
    color: #999;
}

.dark-mode .btn-animate-chars__bg {
    background-color: rgba(26, 26, 26, 0.95);
    border-color: rgba(255, 255, 255, 0.1);
}

.input-container {
    position: fixed;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    max-width: 600px;
    z-index: 1000;
    display: flex;
    align-items: center;
    gap: 15px;
}

.input-icon {
    width: 30px;
    height: 30px;
    user-select: none;
    -webkit-user-select: none;
    -webkit-user-drag: none;
    transform-origin: center;
    transform: rotate(0deg);
    transition: transform 0.5s ease-out;
}

.input-icon.rotating {
    transition: none;
    animation: continuousRotation 2s linear infinite;
}

.input-icon.finish-rotation {
    animation: none;
    transition: transform 0.5s ease-out;
}

@keyframes continuousRotation {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.chat-input {
    width: 100%;
    height: 40px;
    padding: 0 20px;
    border: 1px solid #000;
    border-radius: 20px;
    font-family: 'Rubik', sans-serif;
    font-size: 16px;
    background: transparent;
    outline: none;
    transition: border-color 0.2s ease;
}

.chat-input:focus {
    border-color: #000;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.chat-input:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    background-color: rgba(200, 200, 200, 0.3);
}

.chat-input::placeholder {
    color: #999;
    font-family: 'Rubik', sans-serif;
}

/* Dark Mode */
.dark-mode {
    background-color: #1a1a1a;
}

.dark-mode .typing-text,
.dark-mode .twitter-link {
    color: white;
}

.dark-mode .nav-link {
    color: #999;
}

.dark-mode .nav-link:hover {
    color: white;
}

.dark-mode .chat-input {
    border-color: white;
    color: white;
    background: rgba(255, 255, 255, 0.1);
}

.dark-mode .chat-input::placeholder {
    color: #666;
}

.dark-mode .chat-input:disabled {
    background-color: rgba(100, 100, 100, 0.3);
}

.dark-mode .vignette {
    background: radial-gradient(circle at 50% 50%, transparent 20%, rgba(255,255,255,0.05) 100%) !important;
}

/* Dropdowns */
.roadmap-dropdown,
.tokenomics-dropdown {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.3s ease-out, opacity 0.3s ease-out;
    margin-left: 20px;
}

.tokenomics-dropdown.show,
.roadmap-dropdown.show {
    max-height: 200px;
    opacity: 1;
}

.tokenomics-item,
.roadmap-item {
    font-family: 'Rubik', sans-serif;
    font-size: 14px;
    color: #666;
    margin: 8px 0;
    transform: translateY(-10px);
    opacity: 0;
    transition: transform 0.3s ease-out, opacity 0.3s ease-out;
    position: relative;
    overflow: hidden;
    cursor: default;
}

.roadmap-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
}

/* Status indicators */
.status {
    font-size: 11px;
    padding: 3px 10px;
    border-radius: 4px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-left: 10px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    white-space: nowrap;
}

.status.in-progress {
    color: #ffd700;
}

.status.upcoming {
    color: #ff4444;
}

/* Continuous shine effect */
.tokenomics-item,
.roadmap-item .phase-text {
    background: linear-gradient(
        90deg,
        #666 0%,
        #666 45%,
        rgba(255, 255, 255, 0.9) 50%,
        #666 55%,
        #666 100%
    );
    background-size: 200% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: textShine 3s linear infinite;
}

@keyframes textShine {
    0% { background-position: 100% 0; }
    100% { background-position: -100% 0; }
}

.tokenomics-dropdown.show .tokenomics-item,
.roadmap-dropdown.show .roadmap-item {
    transform: translateY(0);
    opacity: 1;
}

.tokenomics-dropdown.show .tokenomics-item:nth-child(1),
.roadmap-dropdown.show .roadmap-item:nth-child(1) { transition-delay: 0.1s; }
.tokenomics-dropdown.show .tokenomics-item:nth-child(2),
.roadmap-dropdown.show .roadmap-item:nth-child(2) { transition-delay: 0.2s; }
.tokenomics-dropdown.show .tokenomics-item:nth-child(3),
.roadmap-dropdown.show .roadmap-item:nth-child(3) { transition-delay: 0.3s; }
.tokenomics-dropdown.show .tokenomics-item:nth-child(4),
.roadmap-dropdown.show .roadmap-item:nth-child(4) { transition-delay: 0.4s; }

/* Dark mode styles for dropdowns */
.dark-mode .tokenomics-item,
.dark-mode .roadmap-item {
    color: #999;
}

.dark-mode .status.in-progress {
    color: #ffe44d;
}

.dark-mode .status.upcoming {
    color: #ff6666;
}

/* Dark mode adjustments */
.dark-mode .tokenomics-item,
.dark-mode .roadmap-item .phase-text {
    background: linear-gradient(
        90deg,
        #999 0%,
        #999 45%,
        rgba(255, 255, 255, 0.7) 50%,
        #999 55%,
        #999 100%
    );
    background-size: 200% 100%;
    -webkit-background-clip: text;
    background-clip: text;
}

/* Ensure text is visible while loading webfonts */
.tokenomics-item,
.roadmap-item .phase-text {
    color: #666;
}

.dark-mode .tokenomics-item,
.dark-mode .roadmap-item .phase-text {
    color: #999;
}

/* Sniper Modal */
.sniper-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    width: 90%;
    max-width: 900px;
    background: white;
    border-radius: 20px;
    padding: 30px;
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 2000;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.sniper-modal.show {
    opacity: 1;
    pointer-events: auto;
    transform: translate(-50%, -50%) scale(1);
}

.sniper-content {
    position: relative;
}

.close-button {
    position: absolute;
    top: -20px;
    right: -20px;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: #666;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 20px;
    transition: all 0.2s ease;
}

.close-button:hover {
    background: #000;
}

.sniper-modal h2 {
    text-align: center;
    margin-bottom: 30px;
    font-size: 24px;
    color: #333;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background: rgba(0, 0, 0, 0.03);
    padding: 20px;
    border-radius: 15px;
    text-align: center;
    transition: all 0.2s ease;
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.stat-card.highlight {
    background: rgba(255, 215, 0, 0.1);
}

.stat-value {
    font-size: 24px;
    font-weight: 500;
    margin-bottom: 5px;
    color: #333;
}

.stat-label {
    font-size: 14px;
    color: #666;
    margin-bottom: 5px;
}

.stat-change {
    font-size: 12px;
    color: #666;
}

.input-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

.input-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.input-group label {
    font-size: 14px;
    color: #666;
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.input-wrapper input {
    width: 100%;
    height: 40px;
    padding: 0 40px 0 15px;
    border: 1px solid #ddd;
    border-radius: 10px;
    font-family: 'Rubik', sans-serif;
    font-size: 14px;
    background: transparent;
    outline: none;
    transition: all 0.2s ease;
}

.input-wrapper input:focus {
    border-color: #666;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.input-wrapper span {
    position: absolute;
    right: 15px;
    color: #666;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.feature-card {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px;
    background: rgba(0, 0, 0, 0.03);
    border-radius: 15px;
    transition: all 0.2s ease;
}

.feature-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.feature-icon {
    font-size: 24px;
}

.feature-text {
    font-size: 14px;
    color: #666;
    line-height: 1.4;
}

/* Dark mode styles for sniper modal */
.dark-mode .sniper-modal {
    background: #1a1a1a;
}

.dark-mode .sniper-modal h2 {
    color: #fff;
}

.dark-mode .stat-card {
    background: rgba(255, 255, 255, 0.05);
}

.dark-mode .stat-card.highlight {
    background: rgba(255, 215, 0, 0.05);
}

.dark-mode .stat-value {
    color: #fff;
}

.dark-mode .stat-label,
.dark-mode .stat-change,
.dark-mode .input-group label,
.dark-mode .feature-text {
    color: #999;
}

.dark-mode .input-wrapper input {
    border-color: #333;
    color: #fff;
}

.dark-mode .input-wrapper input:focus {
    border-color: #666;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.1);
}

.dark-mode .feature-card {
    background: rgba(255, 255, 255, 0.05);
}

/* Premise Modal */
.premise-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    width: 90%;
    max-width: 600px;
    background: white;
    border-radius: 20px;
    padding: 30px;
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 2000;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    will-change: transform;
}

.premise-modal.show {
    opacity: 1;
    pointer-events: auto;
    transform: translate(-50%, -50%) scale(1);
}

.premise-modal.dragging {
    transition: none;
    user-select: none;
}

.premise-content {
    position: relative;
    transition: cursor 0.2s ease;
}

.premise-content:hover {
    cursor: grab;
}

.premise-content:active {
    cursor: grabbing;
}

.premise-content h2 {
    font-family: 'Rubik', sans-serif;
    font-size: 24px;
    color: #333;
    margin-bottom: 20px;
    text-align: center;
}

.premise-content h3 {
    font-family: 'Rubik', sans-serif;
    font-size: 18px;
    color: #333;
    margin: 20px 0 10px 0;
}

.premise-content p {
    font-family: 'Rubik', sans-serif;
    font-size: 14px;
    color: #666;
    line-height: 1.6;
    margin-bottom: 15px;
}

.premise-content ul {
    font-family: 'Rubik', sans-serif;
    font-size: 14px;
    color: #666;
    line-height: 1.6;
    margin: 10px 0 15px 20px;
}

.premise-content li {
    margin-bottom: 8px;
}

.premise-content strong {
    color: #333;
    font-weight: 500;
}

/* Dark mode styles for premise modal */
.dark-mode .premise-modal {
    background: #1a1a1a;
}

.dark-mode .premise-content h2,
.dark-mode .premise-content h3 {
    color: #fff;
}

.dark-mode .premise-content p,
.dark-mode .premise-content ul {
    color: #999;
}

.dark-mode .premise-content strong {
    color: #fff;
}

[data-theme-status="dark"] .nav-item__link svg {
    color: #e0e0e0;
}

/* Modal System Styles */
.modal {
    z-index: 100;
    opacity: 0;
    pointer-events: none;
    visibility: hidden;
    justify-content: center;
    align-items: center;
    padding: 3em 2em;
    display: flex;
    position: fixed;
    inset: 0;
    overflow: hidden;
    transition: all 0.2s linear;
}

.modal[data-modal-group-status="active"] {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.modal__dark {
    opacity: .5;
    pointer-events: auto;
    cursor: pointer;
    background-color: #131313;
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
}

.modal__card {
    pointer-events: auto;
    background-color: #efeeec;
    border-radius: 2em;
    width: 80%;
    max-width: 45em;
    height: 50vh;
    max-height: 50vh;
    padding: .75em;
    display: none;
    position: relative;
}

.modal__card[data-modal-status="active"] {
    display: flex;
}

.modal__scroll {
    grid-column-gap: 1.5em;
    grid-row-gap: 1.5em;
    background-color: #e2e1df;
    border-radius: 1.25em;
    flex-flow: column;
    width: 100%;
    height: 100%;
    display: flex;
    position: relative;
    overflow-y: auto;
    overflow-x: hidden;
}

.modal__content {
    grid-column-gap: 1em;
    grid-row-gap: 1em;
    flex-flow: column;
    padding: 1em;
    display: flex;
}

.modal__h2 {
    margin-top: 0;
    margin-bottom: 0.8em;
    font-size: 2em;
    font-weight: 500;
    line-height: 1.175;
}

.modal__h3 {
    margin-top: 1.2em;
    margin-bottom: 0.4em;
    font-size: 1.2em;
    font-weight: 500;
    line-height: 1.2;
}

.modal__p {
    margin-bottom: 0.8em;
    font-size: 0.9em;
    line-height: 1.4;
}

.modal__list {
    margin: 0.8em 0;
    padding-left: 1.5em;
    font-size: 0.9em;
    line-height: 1.4;
}

.modal__list li {
    margin-bottom: 0.3em;
}

.modal__btn-close {
    background-color: #efeeec;
    border-radius: 50%;
    justify-content: center;
    align-items: center;
    width: 3.5em;
    height: 3.5em;
    display: flex;
    position: absolute;
    top: 2.5em;
    right: 2.5em;
    cursor: pointer;
}

.modal__btn-close-bar {
    background-color: currentColor;
    width: .125em;
    height: 40%;
    position: absolute;
    transform: rotate(45deg);
}

.modal__btn-close-bar.is--second {
    transform: rotate(-45deg);
}

/* Dark mode styles for modals */
.dark-mode .modal__card {
    background-color: #1a1a1a;
}

.dark-mode .modal__scroll {
    background-color: #2a2a2a;
}

.dark-mode .modal__h2 {
    color: #fff;
}

.dark-mode .modal__h3 {
    color: #fff;
}

.dark-mode .modal__p {
    color: #e0e0e0;
}

.dark-mode .modal__list {
    color: #e0e0e0;
}

.dark-mode .modal__btn-close {
    background-color: #1a1a1a;
    color: #fff;
}

/* Custom Minimalist Apple-like Music Player */
.music-player {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 320px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 16px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
  z-index: 1000;
  
  /* Hidden by default - off screen and scaled down */
  display: block;
  transform: translateY(120px) scale(0.8);
  opacity: 0;
  visibility: hidden;
  transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.175);
  transition-property: transform, opacity, visibility;
}

.music-player.show {
  transform: translateY(0) scale(1);
  opacity: 1;
  visibility: visible;
  animation: musicPlayerBounce 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.175);
}

.music-player.hiding {
  transform: translateY(120px) scale(0.85);
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s cubic-bezier(0.55, 0.085, 0.68, 0.53);
}

@keyframes musicPlayerBounce {
  0% {
    transform: translateY(120px) scale(0.8);
    opacity: 0;
  }
  60% {
    transform: translateY(-8px) scale(1.02);
    opacity: 0.9;
  }
  80% {
    transform: translateY(2px) scale(0.99);
    opacity: 1;
  }
  100% {
    transform: translateY(0) scale(1);
    opacity: 1;
  }
}

.music-player__content {
  padding: 20px;
  transform: translateY(10px);
  opacity: 0;
  transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  transition-delay: 0.1s;
}

.music-player.show .music-player__content {
  transform: translateY(0);
  opacity: 1;
}

/* Staggered animations for internal elements */

.music-player__info {
  display: flex;
  align-items: center;
  margin-bottom: 16px;
  gap: 12px;
  transform: translateY(5px);
  opacity: 0;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  transition-delay: 0.15s;
}

.music-player.show .music-player__info {
  transform: translateY(0);
  opacity: 1;
}

.music-player__artwork {
  width: 48px;
  height: 48px;
  border-radius: 8px;
  overflow: hidden;
  flex-shrink: 0;
}

.music-player__artwork-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.music-player__text {
  flex: 1;
  min-width: 0;
}

.music-player__title {
  font-size: 16px;
  font-weight: 600;
  color: #000;
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.2;
}

.music-player__artist {
  font-size: 14px;
  color: #666;
  margin: 2px 0 0 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.2;
}

.music-player__controls {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  margin-bottom: 16px;
  transform: translateY(5px);
  opacity: 0;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  transition-delay: 0.2s;
}

.music-player.show .music-player__controls {
  transform: translateY(0);
  opacity: 1;
}

.music-player__btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #000;
  transition: all 0.2s ease;
}

.music-player__btn:hover {
  background: rgba(0, 0, 0, 0.05);
}

.music-player__btn--play {
  width: 44px;
  height: 44px;
  background: #000;
  color: #fff;
}

.music-player__btn--play:hover {
  background: #333;
}

.music-player__progress {
  display: flex;
  align-items: center;
  gap: 12px;
  transform: translateY(5px);
  opacity: 0;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  transition-delay: 0.25s;
}

.music-player.show .music-player__progress {
  transform: translateY(0);
  opacity: 1;
}

.music-player__time {
  font-size: 12px;
  color: #666;
  font-weight: 500;
  min-width: 32px;
  text-align: center;
}

.music-player__timeline {
  flex: 1;
  height: 4px;
  background: #e5e5e5;
  border-radius: 2px;
  position: relative;
  cursor: pointer;
  padding: 8px 0; /* Increase click area */
  margin: -8px 0; /* Compensate for padding */
  transition: all 0.2s ease;
}

.music-player__timeline:hover {
  height: 6px;
  margin-top: -9px;
  margin-bottom: -9px;
}

.music-player__timeline-bg {
  width: 100%;
  height: 4px;
  background: #e5e5e5;
  border-radius: 2px;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  transition: height 0.2s ease;
}

.music-player__timeline:hover .music-player__timeline-bg {
  height: 6px;
}

.music-player__timeline-fill {
  position: absolute;
  top: 50%;
  left: 0;
  height: 4px;
  background: #000;
  border-radius: 2px;
  width: 0%;
  transform: translateY(-50%);
  transition: height 0.2s ease;
  will-change: width;
}

.music-player__timeline:hover .music-player__timeline-fill {
  height: 6px;
}

.music-player__timeline-handle {
  position: absolute;
  top: 50%;
  left: 0%;
  width: 14px;
  height: 14px;
  background: #000;
  border: 2px solid #fff;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  opacity: 0;
  transition: all 0.2s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  will-change: opacity, left;
}

.music-player__timeline:hover .music-player__timeline-handle {
  opacity: 1;
}

.music-player__timeline.dragging .music-player__timeline-handle {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1.2);
}

.music-player__timeline.dragging {
  cursor: grabbing !important;
}

.music-player__timeline.dragging .music-player__timeline-fill {
  transition: none; /* Disable transition during drag for instant response */
}

.music-player__timeline.dragging .music-player__timeline-handle {
  transition: transform 0.1s ease; /* Keep some transition for smooth scaling */
}





/* Dark mode styles for music player */
.dark-mode .music-player {
    background: rgba(0, 0, 0, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.dark-mode .music-player__title {
    color: #fff;
}

.dark-mode .music-player__artist {
    color: #aaa;
}

.dark-mode .music-player__btn {
    color: #fff;
}

.dark-mode .music-player__btn:hover {
    background: rgba(255, 255, 255, 0.1);
}

.dark-mode .music-player__btn--play {
    background: #fff;
    color: #000;
}

.dark-mode .music-player__btn--play:hover {
    background: #ccc;
}

.dark-mode .music-player__time {
    color: #aaa;
}

.dark-mode .music-player__timeline-bg {
    background: #333;
}

.dark-mode .music-player__timeline-fill {
    background: #fff;
}

.dark-mode .music-player__timeline-handle {
    background: #fff;
    border: 2px solid #000;
}






