body {
    margin: 0;
    padding: 0;
    background: #000;
    color: #fff;
    font-family: Arial, sans-serif;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    overflow: hidden;
}

.hidden {
    display: none !important;
}

.play-button {
    width: 120px;
    height: 120px;
    border: 4px solid #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.play-button:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: scale(1.1);
}

.play-icon {
    width: 0;
    height: 0;
    border-left: 30px solid #fff;
    border-top: 20px solid transparent;
    border-bottom: 20px solid transparent;
    margin-left: 8px;
}

.countdown {
    font-size: 120px;
    font-weight: bold;
    text-align: center;
    animation: pulse 1s ease-in-out;
}

@keyframes pulse {
    0% { transform: scale(0.8); opacity: 0.5; }
    50% { transform: scale(1.2); opacity: 1; }
    100% { transform: scale(1); opacity: 1; }
}

.player-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    max-width: 90vw;
}

.chord-display {
    margin-bottom: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 40px;
    width: 100%;
}

.chord-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.chord-section.current {
    flex: 0 0 auto;
}

.chord-section.previous,
.chord-section.next {
    flex: 0 0 auto;
    opacity: 0.4;
    transform: scale(0.8); /* Changed from 0.8 to match 80% size */
}

.chord-name {
    font-size: 48px;
    font-weight: bold;
    margin-bottom: 20px;
    min-height: 60px;
}

.chord-section.previous .chord-name,
.chord-section.next .chord-name {
    font-size: 38px; /* Changed from 24px to 80% of 48px */
    min-height: 48px; /* Changed from 30px to 80% of 60px */
    margin-bottom: 16px; /* Changed from 10px to 80% of 20px */
}

.chord-diagram {
    margin: 0 auto 20px;
    width: 200px;
    height: 250px;
}
.chord-section.previous .chord-diagram,
.chord-section.next .chord-diagram {
    margin: 0 auto 16px;
    width: 160px;
    height: 200px;
}

.beat-indicator {
    font-size: 24px;
    color: #888;
    margin-top: 10px;
}

.chord-section.previous .beat-indicator,
.chord-section.next .beat-indicator {
    font-size: 19px; /* Changed from 12px to 80% of 24px */
    margin-top: 8px; /* Changed from 5px to 80% of 10px */
}

.chord-lyrics {
    font-size: 18px;
    color: #ccc;
    margin-top: 10px;
    min-height: 25px;
    max-width: 200px;
    word-wrap: break-word;
    text-align: center;
}

.chord-section.previous .chord-lyrics,
.chord-section.next .chord-lyrics {
    font-size: 14px; /* Changed from 12px to 80% of 18px */
    margin-top: 8px; /* Changed from 5px to 80% of 10px */
    min-height: 20px; /* Changed from 15px to 80% of 25px */
    max-width: 160px; /* Changed from 120px to 80% of 200px */
    opacity: 0.7;
}

.song-title {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 36px;
    font-weight: bold;
    color: #fff;
    text-align: center;
    z-index: 100;
    width: 100%;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.song-info {
    position: fixed;
    top: 80px; /* Moved down to make room for title */
    left: 20px;
    font-size: 18px;
    color: #ccc;
}

.controls {
    position: fixed;
    bottom: 20px;
    right: 20px;
    display: flex;
    gap: 15px;
}

.control-btn {
    width: 50px;
    height: 50px;
    border: 2px solid #fff;
    border-radius: 50%;
    background: transparent;
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.control-btn:hover {
    background: rgba(255, 255, 255, 0.1);
}

textarea {
    position: absolute;
    top: -9999px;
    left: -9999px;
}

/* Remove this CSS block for the player launch button */
/*
.player-launch-btn {
    background: #007bff;
    color: #fff;
    border: none;
    border-radius: 5px;
    padding: 10px 20px;
    font-size: 16px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.player-launch-btn:hover {
    background: #0056b3;
}
*/

.lyrics-display {
    font-size: 24px;
    color: #fff;
    margin-top: 20px;
    text-align: center;
    width: 80%;
    line-height: 1.4;
}

.lyrics-section {
    margin: 10px 0;
    min-height: 30px;
}

.lyrics-section.previous,
.lyrics-section.next {
    color: #666;
    font-size: 18px;
    opacity: 0.6;
}

.lyrics-section.current {
    color: #fff;
    font-size: 24px;
    font-weight: bold;
}

/* Close button container */
.close-container {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    pointer-events: none !important;
    z-index: 9999 !important;
}

/* Close button */
.close-btn {
    position: absolute !important;
    top: 20px !important;
    right: 20px !important;
    width: 40px !important;
    height: 40px !important;
    background: rgba(0, 0, 0, 0.8) !important;
    border: 2px solid #fff !important;
    border-radius: 50% !important;
    color: #fff !important;
    font-size: 24px !important;
    font-weight: bold !important;
    cursor: pointer !important;
    display: block !important;
    line-height: 36px !important;
    text-align: center !important;
    transition: all 0.3s ease !important;
    z-index: 10000 !important;
    margin: 0 !important;
    padding: 0 !important;
    outline: none !important;
    pointer-events: auto !important;
}

.close-btn:hover {
    background: rgba(255, 255, 255, 0.3) !important;
    transform: scale(1.1) !important;
}