.lrc-player-widget {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 99999;
    font-family: inherit;
}

.lrc-toggle-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, #1f1118, #121212);
    border: 1.5px solid #ff2a75;
    padding: 9px 18px;
    border-radius: 24px;
    cursor: pointer;
    font-family: 'Syndebuk', sans-serif;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    color: #ffffff;
    font-weight: 500;
    letter-spacing: 0.3px;
    box-shadow: 0 4px 20px rgba(255, 42, 117, 0.25);
    animation: button-attention 3s infinite ease-in-out;
}

.lrc-toggle-btn:hover {
    background: linear-gradient(135deg, #2a1520, #181818);
    border-color: #ff4d8d;
    box-shadow: 0 6px 24px rgba(255, 42, 117, 0.45);
    transform: translateY(-2px);
}

.lrc-toggle-btn.active {
    background: linear-gradient(135deg, #3d0f22, #181216);
    border-color: #ff2a75;
    box-shadow: 0 4px 22px rgba(255, 42, 117, 0.55);
    animation: none;
}

@keyframes button-attention {

    0%,
    100% {
        box-shadow: 0 4px 15px rgba(255, 42, 117, 0.2);
    }

    50% {
        box-shadow: 0 4px 25px rgba(255, 42, 117, 0.45);
    }
}

.lrc-toggle-btn .pulse-dot {
    width: 18px;
    height: 18px;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.4) 0%, rgba(255, 255, 255, 0) 50%),
        radial-gradient(circle, #1a1a1a 30%, #0a0a0a 31%, #222 60%, #050505 61%, #111 100%);
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 50%;
    position: relative;
    animation: spin-vinyl 2.5s linear infinite;
    flex-shrink: 0;
}

.lrc-toggle-btn .pulse-dot::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 6px;
    height: 6px;
    background-color: #ff2a75;
    border-radius: 50%;
    box-shadow: 0 0 6px #ff2a75;
}

.lrc-toggle-btn .pulse-dot::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 2px;
    height: 2px;
    background-color: #0b0b0b;
    border-radius: 50%;
}

@keyframes spin-vinyl {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.lrc-player-drawer {
    position: absolute;
    bottom: 60px;
    right: 0;
    width: 380px;
    max-width: 90vw;
    background: rgba(18, 18, 18, 0.95);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 16px;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.6);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transform: translateY(20px) scale(0.95);
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.lrc-player-drawer.is-expanded {
    position: fixed !important;
    top: 50% !important;
    left: 50% !important;
    right: auto !important;
    bottom: auto !important;
    transform: translate(-50%, -50%) !important;
    width: 90vw !important;
    height: 70vh !important;
    max-width: 900px !important;
    max-height: 800px !important;
    z-index: 99999 !important;
    box-sizing: border-box !important;
    padding: 16px !important;
    display: flex !important;
    flex-direction: column !important;
}

.lrc-player-drawer.active {
    transform: translateY(0) scale(1);
    opacity: 1;
    pointer-events: auto;
}

@media (max-width: 768px) {
    .lrc-player-drawer.is-expanded {
        top: 0px;
        left: 0px;
        transform: none;
        width: 100vw;
        height: 100vh;
        max-width: none;
        max-height: none;
        border-radius: 0px;

        display: flex;
        flex-direction: column;
    }

    .lrc-expand-btn {
        display: none !important;
    }

    .lrc-player-drawer.is-expanded .lrc-lyrics-container {
        flex: 1 1 0% !important;
        min-height: 0 !important;
        height: 0 !important;
        max-height: none !important;
        overflow-y: auto !important;
        display: flex;
        flex-direction: column;
        padding: 30px 15px;
    }
}

.lrc-player-drawer .lrc-lyrics-container {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
}

.lrc-header {
    padding: 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.lrc-track-info h4 {
    margin: 0;
    font-size: 1rem;
    color: #fff;
}

.lrc-track-info p {
    margin: 2px 0 0 0;
    font-size: 0.8rem;
    color: #aaa;
}

.lrc-expand-btn {
    background: transparent;
    border: none;
    color: #fff;
    font-size: 1.2rem;
    cursor: pointer;
}

.lrc-expand-btn:hover {
    color: #fff;
}

.lrc-header-buttons {
    display: flex;
    align-items: center;
    gap: 8px;
}

.lrc-close-btn {
    background: transparent;
    border: none;
    color: #aaa;
    font-size: 1.2rem;
    cursor: pointer;
}

.lrc-close-btn:hover {
    color: #fff;
}

.lrc-visualizer-canvas {
    width: 100%;
    height: 40px;
    background: rgba(0, 0, 0, 0.2);
    display: block;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.lrc-player-drawer.is-expanded .lrc-visualizer-canvas {
    height: 50px;
}

.lrc-lyrics-container {
    flex: 1;
    min-height: 0;
    max-height: 300px;
    overflow-y: auto;
    padding: 20px 16px;
    text-align: center;
    scroll-behavior: smooth;
}

.lrc-lyrics-container::-webkit-scrollbar {
    width: 4px;
}

.lrc-lyrics-container::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 4px;
}

.lrc-line {
    font-size: 0.95rem;
    color: #666;
    margin: 14px 0;
    transition: all 0.25s ease;
    cursor: pointer;
}

.lrc-line:hover {
    color: #aaa;
}

.lrc-line.active {
    color: #fff;
    font-weight: bold;
    font-size: 1.05rem;
    text-shadow: 0 0 12px rgba(255, 255, 255, 0.4);
}

.lrc-player-drawer.is-expanded {
    box-sizing: border-box;
    padding: 16px;
}

.lrc-player-drawer.is-expanded .lrc-line {
    font-size: 1rem;
    margin: 10px 0;
}

.lrc-player-drawer.is-expanded .lrc-line.active {
    font-size: 1.2rem;
    font-weight: bold;
}

.lrc-controls {
    padding: 16px;
    background: rgba(0, 0, 0, 0.3);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.lrc-player-drawer.is-expanded .lrc-controls {
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
}

.lrc-progress-area {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    font-size: 0.75rem;
    color: #aaa;
}

.lrc-progress-bar {
    flex: 1;
    -webkit-appearance: none;
    appearance: none;
    height: 4px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 2px;
    outline: none;
    cursor: pointer;
}

.lrc-progress-bar::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 10px;
    height: 10px;
    background: #fff;
    border-radius: 50%;
}

.lrc-main-buttons {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
}

.lrc-btn {
    background: transparent;
    border: none;
    color: #fff;
    cursor: pointer;
    font-size: 1rem;
    padding: 8px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lrc-btn-play {
    background: #fff;
    color: #000;
    width: 36px;
    height: 36px;
}

.lrc-btn-play:hover {
    background: #e0e0e0;
}