body {
    font-family: 'Open Sans', sans-serif;
    padding: 20px 40px;
    margin:0;
    border-top:20px solid #3F916D;
}

.layout {
    display: flex;
    align-items: flex-start;
    gap: 2rem;
}
.song-list {
    flex: 0 0 auto;
    min-width: 20rem;
}
.lyrics-panel {
    flex: 1 1 auto;
    position: sticky;
    top: 1rem;
    line-height:1.6em;
}
.lyrics-panel .placeholder {
    color: #888;
}
.panel-tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
    border-bottom: 1px solid #ddd;
}
.panel-tab {
    padding: 0.5rem 1rem;
    border: none;
    background: none;
    cursor: pointer;
    font-size: 0.95rem;
    color: #888;
    border-bottom: 2px solid transparent;
}
.panel-tab:hover:not(:disabled) {
    color: #ff5e00;
}
.panel-tab.active {
    color: #ff5e00;
    border-bottom-color: #ff5e00;
}
.panel-tab:disabled {
    opacity: 0.4;
    cursor: default;
}
/* ── Learn game ───────────────────────────────────── */
.verse-tabs {
    display: flex;
    gap: 0.4rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}
.verse-tab {
    padding: 0.35rem 0.9rem;
    border: 1px solid #ddd;
    border-radius: 2rem;
    background: transparent;
    color: #888;
    cursor: pointer;
    font-size: 0.8rem;
    letter-spacing: 0.04em;
}
.verse-tab:hover:not(:disabled) {
    border-color: #ff5e00;
    color: #ff5e00;
}
.verse-tab.active {
    background: #ff5e00;
    border-color: #ff5e00;
    color: #fff;
}
.verse-tab:disabled {
    opacity: 0.4;
    cursor: default;
}
.progress-bar {
    width: 100%;
    height: 2px;
    background: #eee;
    border-radius: 2px;
    margin-bottom: 1.25rem;
    overflow: hidden;
}
.progress-fill {
    height: 100%;
    background: #ff5e00;
    border-radius: 2px;
    transition: width 0.25s ease;
    width: 0%;
}
.display-wrapper {
    width: 100%;
    position: relative;
}
.btn-view-lyrics {
    position: absolute;
    top: 0.75rem;
    right: 0.85rem;
    width: 1.6rem;
    height: 1.6rem;
    padding: 0;
    background: none;
    border: none;
    cursor: pointer;
    color: #bbb;
}
.btn-view-lyrics:hover  { color: #888; }
.btn-view-lyrics.active { color: #ff5e00; }
.btn-view-lyrics svg { width: 100%; height: 100%; }
.verse-label {
    font-size: 0.75rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #aaa;
    margin-bottom: 0.75rem;
}
.lyrics-display {
    width: 100%;
    background: #fafafa;
    border: 1px solid #eee;
    border-radius: 14px;
    padding: 2rem 2.25rem;
    font-size: 1.1rem;
    line-height: 1.95;
    min-height: 180px;
    cursor: text;
    transition: border-color 0.4s;
    word-break: break-word;
    box-sizing: border-box;
}
.lyrics-display.complete { border-color: #ff5e0088; }
.lyrics-display.preview { color: #aaa; cursor: default; }
.idle-msg { color: #999; font-style: italic; }
.c-typed  { color: #222; }
.c-hint   { color: #ff5e00; }
.c-cursor {
    background: #ff5e00;
    color: #fff;
    border-radius: 3px;
    padding: 0 2px;
    margin: 0 1px;
    animation: blink 1.1s step-end infinite;
}
.c-dot    { color: #ddd; }
.c-punct  { color: #ccc; }
.c-reveal { color: #bbb; }
@keyframes blink { 50% { opacity: 0; } }
.controls-area {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.9rem;
    margin-top: 1.5rem;
}
.hint-status {
    font-size: 0.82rem;
    color: #aaa;
    height: 1.1em;
    letter-spacing: 0.02em;
}
.hint-status.hinting { color: #ff5e00; }
.buttons { display: flex; gap: 0.75rem; align-items: center; }
.btn {
    padding: 0.55rem 1.8rem;
    border: none;
    border-radius: 2rem;
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.03em;
}
.btn:active { transform: scale(0.97); }
.btn-start { background: #ff5e00; color: #fff; }
.btn-start:hover { background: #e65400; }
.btn-next { background: #22c55e; color: #fff; }
.btn-next:hover { background: #16a34a; }
.btn-reset {
    background: transparent;
    border: 1px solid #ddd;
    color: #888;
    padding: 0.55rem 1.4rem;
}
.btn-reset:hover { border-color: #bbb; color: #555; }
.stats {
    font-size: 0.8rem;
    color: #aaa;
    display: flex;
    gap: 2rem;
    margin-top: 0.25rem;
}
.stats span { display: flex; align-items: center; gap: 0.35rem; }
@keyframes shake {
    0%,100% { transform: translateX(0); }
    20%      { transform: translateX(-5px); }
    60%      { transform: translateX(5px); }
}
.shake { animation: shake 0.25s ease; }
#capture {
    position: fixed;
    left: -9999px;
    top: 0;
    width: 1px;
    height: 1px;
    opacity: 0;
}
.lyrics-panel h2 {
    margin-top: 0;
}
.yt-embed {
    display: block;
    max-width: 100%;
    aspect-ratio: 560 / 315;
    height: auto;
    margin-bottom: 1rem;
    border: none;
}
.lyrics-panel pre {
    font-family: inherit;
    white-space: pre-wrap;
    margin: 0;
}
.section-marker {
    color: #aaa;
}
.section-marker.playable {
    cursor: pointer;
    color: #d97b3d;
    background: #fff3ea;
    border-radius: 4px;
    padding: 0.05em 0.4em;
}
.section-marker.playable:hover {
    color: #fff;
    background: #ff5e00;
}
.section-marker.playable .play-icon {
    font-size: 0.7em;
    margin-right: 0.3em;
}
.section-marker.playable.playing {
    color: #fff;
    background: #ff5e00;
}
.audio-bar {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}
.audio-bar audio {
    height: 2.25rem;
}
.loop-toggle {
    font-size: 0.85rem;
    color: #888;
    display: flex;
    align-items: center;
    gap: 0.35rem;
    white-space: nowrap;
}
ul { list-style-type: none;}
ul li { margin-bottom:0.4rem; }
.pb1 {
    padding-bottom: 0.6rem;
}
a { color: #ff5e00;}

a.yt {
    font-size: 0.8rem;
    background-color: #ff5e00;
    color:white;
    text-decoration: none;
    padding: 0.1rem 0.4rem;
}
a.yt.piano {
    background-color: #444;
}
a.song-link {
    color: inherit;
    text-decoration: none;
    cursor: pointer;
}
a.song-link:hover,
a.song-link.active {
    color: #ff5e00;
}
.lyrics-icon {
    font-size: 0.85rem;
}

h1 a { color: inherit; text-decoration:none; }
.page-header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
}
.admin-link {
    font-size: 0.9rem;
}
.song-heading-row {
    display: flex;
    align-items: baseline;
    gap: 0.75rem;
}
.edit-song-link {
    font-size: 0.85rem;
}