* {
    user-select: none;
    box-sizing: border-box;
}

:root {
    --bento-gap: 20px;
    --glass-bg: rgba(var(--mdui-color-surface-container-low), 0.7);
}

::-webkit-scrollbar {
    width: 4px;
}

::-webkit-scrollbar-thumb {
    background: rgba(var(--mdui-color-primary), 0.2);
    border-radius: 10px;
}

body {
    font-family: 'Plus Jakarta Sans', 'Roboto', sans-serif;
    color: rgb(var(--mdui-color-on-surface));
    margin: 0;
    min-height: 100vh;
    overflow-x: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

body::before {
    content: '';
    position: fixed;
    inset: -60%;
    background-image: linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
    background-size: 48px 48px;
    transform: rotateX(58deg) translateY(0);
    transform-origin: center;
    animation: subtleFlow 18s linear infinite;
    pointer-events: none;
    will-change: transform;
}

.depth-layer {
    position: fixed;
    inset: -10%;
    z-index: 0;
    background: linear-gradient(120deg, rgba(var(--mdui-color-primary), 0.08), transparent 40%), linear-gradient(-120deg, rgba(var(--mdui-color-secondary), 0.06), transparent 50%);
    transform: rotate(-3deg) scale(1.1);
    filter: blur(60px);
}

#app-container {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    z-index: 1;
}

.bento-grid {
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: auto;
    gap: var(--bento-gap);
    width: 90%;
    max-width: 1200px;
    padding: 40px 20px 120px;
}

.bento-item {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(var(--mdui-color-outline), 0.1);
    border-radius: 32px;
    padding: 32px;
    display: flex;
    flex-direction: column;
    transition: border 0.3s ease;
    min-width: 0;
}

.bento-item:hover {
    border-color: rgb(var(--mdui-color-primary));
}

.item-full {
    grid-column: span 4;
}

.item-half {
    grid-column: span 2;
}

.player-info-card {
    align-items: center;
    justify-content: center;
    text-align: center;
}

.cover-img-large {
    width: 200px;
    height: 200px;
    object-fit: cover;
    border-radius: 50%;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.3);
}

.spin-anim {
    animation: spin 20s linear infinite;
}

.spin-anim.paused {
    animation-play-state: paused;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.song-title {
    font-size: 1.8rem;
    font-weight: 800;
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    width: 100%;
}

.song-artist {
    font-size: 1.1rem;
    opacity: 0.7;
    margin: 8px 0 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.lyrics-card {
    justify-content: center;
}

.lyrics-container {
    height: 320px;
    overflow-y: auto;
    position: relative;
    mask-image: linear-gradient(to bottom, transparent 0%, black 15%, black 85%, transparent 100%);
    -webkit-mask-image: linear-gradient(to bottom, transparent 0%, black 15%, black 85%, transparent 100%);
    scrollbar-width: none;
    scroll-behavior: smooth;
}

.lyrics-container::-webkit-scrollbar {
    display: none;
}

.lyrics-list {
    list-style: none;
    padding: 50% 0;
    margin: 0;
    text-align: center;
}

.lyric-line {
    font-size: 1rem;
    opacity: 0.4;
    margin: 20px 0;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    transform: scale(0.95);
    cursor: pointer;
}

.lyric-line:hover {
    opacity: 0.8;
}

.lyric-line.active {
    opacity: 1;
    transform: scale(1.15);
    color: rgb(var(--mdui-color-primary));
    font-weight: 700;
    text-shadow: 0 0 16px rgba(var(--mdui-color-primary), 0.3);
}

.player-bottom-card {
    flex-direction: row;
    align-items: center;
    flex-wrap: wrap;
    gap: 24px;
    justify-content: space-evenly;
}

.controls-main {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
}

.controls-main .play-btn {
    transform: scale(1.6);
}

#playlist-container mdui-list-item[active] {
    background: rgba(var(--mdui-color-primary), 0.1);
    border-radius: 12px;
}

.blog-scroll {
    max-height: 55vh;
    overflow-y: auto;
    padding-right: 8px;
}

.floating-dock {
    position: fixed;
    background: rgba(var(--mdui-color-surface-container-high), 0.8);
    backdrop-filter: blur(20px);
    padding: 12px 24px;
    border-radius: 40px;
    display: flex;
    gap: 16px;
    border: 1px solid rgba(var(--mdui-color-outline), 0.2);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    z-index: 100;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
}

.about-avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
    border: 2px solid rgba(var(--mdui-color-primary), 0.3);
}

@keyframes subtleFlow {
    from {
        transform: rotateX(58deg) translateY(0);
    }

    to {
        transform: rotateX(58deg) translateY(48px);
    }
}

@media (max-width: 900px) {
    .bento-grid {
        grid-template-columns: 1fr;
        padding: 24px 14px 120px;
    }

    .item-half,
    .item-full {
        grid-column: 1 / -1;
    }

    .m-col {
        flex-direction: column;
        align-items: flex-start !important;
        gap: 16px;
    }

    .search-box {
        width: 100%;
        display: flex;
        align-items: center;
        gap: 8px;
        flex-wrap: wrap;
    }

    .search-box>div {
        max-width: 100% !important;
    }

    .cover-img-large {
        width: 160px;
        height: 160px;
    }

    .lyrics-container {
        height: 260px;
    }

    .player-bottom-card {
        flex-direction: column;
    }

    .progress-area {
        width: 100%;
    }
}

.text-primary {
    color: rgb(var(--mdui-color-primary));
}

.text-tertiary {
    color: rgb(var(--mdui-color-tertiary));
}

.text-error {
    color: rgb(var(--mdui-color-error));
}

.text-center {
    text-align: center;
}

.w-100 {
    width: 100%;
}

.mt-24 {
    margin-top: 24px;
}

.mt-12 {
    margin-top: 12px;
}

.mt-8 {
    margin-top: 8px;
}

.mb-20 {
    margin-bottom: 20px;
}

.mb-8 {
    margin-bottom: 8px;
}

.m-0 {
    margin: 0;
}

.gap-16 {
    gap: 16px;
}

.opacity-70 {
    opacity: 0.7;
}

.fs-08rem {
    font-size: 0.8rem;
}

.fw-600 {
    font-weight: 600;
}

.flex-between-center {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.section-title {
    font-weight: 600;
    opacity: 0.6;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.hero-name {
    font-size: 2.8rem;
    font-weight: 800;
    margin: 0;
    letter-spacing: -2px;
}

.hero-subtitle {
    font-size: 1.1rem;
    opacity: 0.7;
    margin: 8px 0 0;
}