:root {
    --primary: #6c5ce7;
    --primary-dark: #4834d4;
    --bg-dark: #2d3436;
    --bg-panel: #1e272e;
    --text-light: #dfe6e9;
    --text-dark: #2d3436;
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-light);
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

.container {
    background: var(--bg-panel);
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    width: 100%;
    max-width: 600px;
}

h1 {
    text-align: center;
    color: var(--primary);
    margin-bottom: 20px;
}

.form-group {
    margin-bottom: 15px;
}

label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

input[type="text"], input[type="file"], textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #555;
    border-radius: 6px;
    background: #2b2b2b;
    color: white;
    box-sizing: border-box;
}

textarea {
    resize: vertical;
}

.btn {
    width: 100%;
    padding: 12px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    cursor: pointer;
    transition: background 0.3s;
    margin-top: 10px;
}

.btn:hover {
    background: var(--primary-dark);
}

#status {
    margin-top: 15px;
    text-align: center;
    font-weight: bold;
}

/* Editor & Player Styles */
.app-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 800px;
    margin: 20px auto;
}

.player-box {
    position: relative;
    width: 100%;
    aspect-ratio: 16/9;
    background-size: cover;
    background-position: center;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.lyrics-display {
    font-size: 2.5em;
    font-weight: bold;
    color: rgba(255, 255, 255, 0.3);
    text-shadow: 0 4px 10px rgba(0,0,0,0.5);
    transition: all 0.3s ease;
    z-index: 10;
    padding: 20px;
    text-align: center;
    max-width: 90%;
}

.lyrics-display.active {
    color: #fff;
    transform: scale(1.1);
    text-shadow: 0 0 20px var(--primary), 0 4px 10px rgba(0,0,0,0.8);
}

.controls {
    margin-top: 20px;
    display: flex;
    gap: 10px;
}

.lyrics-list {
    margin-top: 20px;
    width: 100%;
    background: var(--bg-panel);
    padding: 20px;
    border-radius: 12px;
    max-height: 400px;
    overflow-y: auto;
}

.lyric-item {
    display: flex;
    justify-content: space-between;
    padding: 10px;
    border-bottom: 1px solid #444;
    cursor: pointer;
    transition: background 0.2s;
}

.lyric-item:hover {
    background: rgba(255, 255, 255, 0.05);
}

.lyric-item.current {
    background: linear-gradient(90deg, rgba(108, 92, 231, 0.4), transparent);
    border-left: 4px solid var(--primary);
    transform: translateX(5px);
    color: #fff;
}

.lyric-item.current .text {
    font-weight: bold;
}

.timing-info {
    font-size: 0.8em;
    color: #aaa;
}

.overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.4);
}
