/* LRC Player Styles */
.lrc-wrapper {
    max-width: 800px;
    margin: 30px auto;
    padding: 0 20px;
    position: relative;
    z-index: 20;
}

.lrc-controls {
    margin-bottom: 10px;
    text-align: right;
}

.lrc-autoscroll-label {
    color: #FFD700;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.lrc-autoscroll-label input[type="checkbox"] {
    cursor: pointer;
}

.lrc-container {
    background: rgba(0, 0, 0, 0.95);
    border: 2px solid #FFD700;
    border-radius: 15px;
    height: 400px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.8);
    z-index: 21;
    isolation: isolate;
}

.lrc-content {
    height: 100%;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 20px;
    scroll-behavior: auto; /* Changed from smooth to prevent conflicts */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    -webkit-overflow-scrolling: touch; /* Better mobile scrolling */
}

.lrc-line {
    font-size: 1.2rem;
    line-height: 2;
    color: #666;
    margin: 15px 0;
    padding: 10px 20px;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
}

/* Add padding to first and last lines to center them */
.lrc-line:first-child {
    margin-top: 150px;
}

.lrc-line:last-child {
    margin-bottom: 150px;
}

.lrc-line.past {
    color: #999;
    opacity: 0.5;
}

.lrc-line.active {
    color: #FFD700;
    font-size: 1.5rem;
    font-weight: bold;
    text-shadow: 0 0 10px #FFD700;
    transform: scale(1.1);
}

.lrc-loading, .lrc-error {
    text-align: center;
    color: #666;
    padding: 50px;
}

/* Scrollbar */
.lrc-content::-webkit-scrollbar {
    width: 8px;
}

.lrc-content::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
}

.lrc-content::-webkit-scrollbar-thumb {
    background: #FFD700;
    border-radius: 4px;
}

/* Click to seek */
.lrc-line:hover {
    color: #FFD700;
    opacity: 0.8;
}