:root {
    --bg-color: #000000;
    --header-bg: #0f3d8a;
    --card-bg: #1a1f29;
    --card-border: #cba043;
    --text-gold: #eeb846;
    --text-white: #ffffff;
    --play-btn-color: #3b82f6;
    --divider-color: #3b82f6;
}

* {
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

body {
    user-select: none;
    margin: 0;
    /* Added top padding to accommodate the fixed header */
    padding: 80px 16px 16px 16px;
    background-color: var(--bg-color);
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    color: var(--text-white);
}

/* --- Fixed Header CSS --- */
.fixed-header {
    position: fixed;
    top: 0;
    left: 0;
    border-bottom: 2px solid var(--text-gold);
    width: 100%;
    background-color: var(--bg-color);
    z-index: 1000;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

.header-content {
    max-width: 600px;
    margin: 0 auto;
    padding: 10px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.header-title {
    font-size: 1.25rem;
    font-weight: bold;
    color: var(--text-white);
}

@media (min-width: 768px) {
    .header-content {
        max-width: 900px;
    }
}
/* ------------------------- */

.container {
    max-width: 600px;
    margin: 0 auto;
    width: 100%;
}

@media (min-width: 768px) {
    .container {
        max-width: 900px;
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 20px;
        align-items: start;
    }
    .section-header, .description {
        grid-column: 1 / -1;
    }
}

/* --- Toggle Switch CSS --- */
.toggle-container {
    display: flex;
    justify-content: flex-end;
}

.toggle-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.switch {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 24px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0; left: 0; right: 0; bottom: 0;
    background-color: #555; /* Default off color */
    transition: .4s;
    border-radius: 24px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

input:checked + .slider {
    background-color: var(--play-btn-color); /* On color */
}

input:checked + .slider:before {
    transform: translateX(20px);
}

.toggle-text {
    font-size: 0.70rem;
    color: var(--text-white);
    margin-top: 4px;
    text-align: center;
    max-width: 120px;
    line-height: 1.2;
}
/* ------------------------- */

.section-header {
    background-color: var(--header-bg);
    padding: 12px 16px;
    font-size: 1.2rem;
    font-weight: bold;
    color: white;
    margin-bottom: 12px;
    border-radius: 4px;
}

.card {
    background-color: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 8px;
    padding: 12px;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    position: relative;
    cursor: pointer;
    transition: opacity 0.3s, border-color 0.3s, box-shadow 0.3s;
}

.card.disabled {
    opacity: 0.5;
    pointer-events: none;
}

.card.playing {
    opacity: 1;
    border-color: var(--text-gold);
    box-shadow: 0 0 15px rgba(238, 184, 70, 0.2);
}

.card-img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 4px;
    border: 1px solid var(--card-border);
    margin-right: 12px;
    flex-shrink: 0;
}

.card-content {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
}

.etuno-text {
    color: var(--text-gold);
    font-size: 1.3rem;
    font-style: italic;
    font-weight: bold;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.english-text {
    color: var(--text-white);
    font-size: 1rem;
}

.separator {
    height: 3px;
    background-color: var(--divider-color);
    border: none;
    margin: 4px 0 8px 0;
    width: 90%;
    border-radius: 2px;
}

.play-icon {
    color: var(--play-btn-color);
    font-size: 2rem;
    padding-left: 12px;
    cursor: pointer;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
    transition: color 0.3s ease; 
}

.card.playing .play-icon {
    color: var(--text-gold);
}

.description {
    color: #ddd;
    margin-bottom: 16px;
    line-height: 1.5;
}

