@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&display=swap');

:root {
    --accent: #ffff00;
    --accent-strong: #e7e700;
    --accent-soft: #fff799;
    --bg: #f6f6f3;
    --bg-strong: #ffffff;
    --surface: rgba(255, 255, 255, 0.82);
    --surface-solid: #ffffff;
    --surface-elevated: #ffffff;
    --line: rgba(21, 21, 21, 0.2);
    --text: #151515;
    --muted: #686b63;
    --shadow-soft: none;
    --shadow-card: none;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;
    color: var(--text);
    overflow-x: hidden;
    font-family: "Outfit", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    font-weight: 300;
    background: var(--bg);
}

body.event-inactive {
    overflow: hidden;
}

.event-inactive-overlay {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(0, 0, 0, 0.95);
    z-index: 220;
}

.event-inactive-overlay.is-visible {
    display: flex;
}

.event-inactive-content {
    width: min(560px, 100%);
    text-align: center;
}

.event-inactive-language {
    margin: 0 auto 15px;
    width: fit-content;
    border-color: rgba(255, 255, 255, 0.45);
    background: rgba(0, 0, 0, 0.42);
}

.event-inactive-language .language-toggle-btn {
    color: #1a1a1a;
    background: rgba(255, 255, 255, 0.78);
}

.event-inactive-language .language-toggle-btn.is-active {
    color: #101010;
    background: linear-gradient(135deg, var(--accent), var(--accent-strong));
}

.event-inactive-title {
    color: #ffffff;
    font-size: clamp(1.5rem, 5vw, 2rem);
    font-weight: 500;
    line-height: 1.2;
}

.event-inactive-subtitle {
    margin-top: 14px;
    color: #b6b6a4;
    font-size: 0.88rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.event-inactive-name {
    margin-top: 10px;
    color: #ffff00;
    font-size: clamp(1.25rem, 4vw, 1.7rem);
    font-weight: 500;
    line-height: 1.22;
}

.event-inactive-date {
    margin-top: 6px;
    color: #d2d2c2;
    font-size: clamp(0.98rem, 3.2vw, 1.15rem);
    line-height: 1.3;
    text-transform: capitalize;
}

.btn-vote.btn-vote-modal.event-inactive-btn {
    margin-top: 42px;
    display: inline-flex;
    width: min(270px, 100%);
    max-width: 270px;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.sticky-header {
    position: relative;
    padding: 20px 14px 14px;
    background: rgba(246, 246, 243, 0.92);
    border-bottom: 0;
    backdrop-filter: blur(16px) saturate(145%);
    -webkit-backdrop-filter: blur(16px) saturate(145%);
    transition: padding 180ms ease, background 180ms ease;
}

.sticky-header-spacer {
    height: 0;
}

.sticky-header.is-compact-fixed {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 90;
    padding: 8px 14px 6px;
    animation: header-reveal 260ms cubic-bezier(0.2, 0.9, 0.2, 1);
}

.sticky-header.is-compact-fixed .header-top {
    margin-bottom: 8px;
}

.sticky-header.is-compact-fixed .brand-title {
    font-size: 1.16rem;
}

.sticky-header.is-compact-fixed .brand-subtitle {
    font-size: 0.76rem;
}

.sticky-header.is-compact-fixed .event-name {
    font-size: 0.94rem;
}

.sticky-header.is-compact-fixed .event-date {
    font-size: 0.78rem;
}

.sticky-header.is-compact-fixed .search-input {
    min-height: 36px;
    padding-top: 8px;
    padding-bottom: 8px;
}

.sticky-header.is-compact-fixed .filter-btn {
    padding: 5px 12px;
    font-size: 0.8rem;
}

.sticky-header.is-compact-fixed .theme-toggle {
    width: 34px;
    height: 34px;
    min-width: 34px;
    min-height: 34px;
}

.sticky-header.is-compact-fixed .theme-toggle-icon {
    width: 16px;
    height: 16px;
}

.sticky-header.is-compact-fixed .language-toggle-btn {
    min-width: 34px;
    height: 30px;
    padding: 0 8px;
    font-size: 0.72rem;
}

.header-top {
    width: min(560px, 100%);
    margin: 0 auto 24px;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
}

.brand-block {
    min-width: 0;
}

.brand-title {
    color: #151515;
    font-size: 1.42rem;
    font-weight: 500;
    line-height: 1.15;
    letter-spacing: 0.01em;
}

.brand-live {
    background: #000;
    padding: 1px 3px;
    color: #e7e700;
}

.brand-subtitle {
    margin-top: 2px;
    color: #8d8f89;
    font-size: 0.9rem;
    font-weight: 400;
    line-height: 1.2;
}

.event-meta {
    margin: 2px 0 0;
    text-align: right;
}

.event-name {
    font-size: 1.12rem;
    font-weight: 500;
    color: var(--text);
    line-height: 1.3;
}

.event-date {
    margin-top: 2px;
    font-size: 0.94rem;
    font-weight: 400;
    color: var(--muted);
    text-transform: capitalize;
}

.search-field {
    position: relative;
    width: min(560px, 100%);
    margin: 0 auto 8px;
}

.search-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    width: 18px;
    height: 18px;
    transform: translateY(-50%);
    color: #81847e;
    pointer-events: none;
}

.search-icon svg {
    width: 100%;
    height: 100%;
    display: block;
}

.search-input {
    width: 100%;
    margin: 0;
    min-height: 46px;
    padding: 10px 44px 10px 42px;
    border-radius: 999px;
    border: 1px solid #9a9a9a;
    background: #ffffff;
    color: #5d605a;
    font-family: inherit;
    font-size: 0.92rem;
    line-height: 1.2;
    outline: none;
    transition: border-color 160ms ease;
}

.search-input::placeholder {
    color: #9a9a9a;
}

.search-input:focus {
    border-color: #ffff00;
}

.search-clear {
    position: absolute;
    right: 7px;
    top: 50%;
    width: 30px;
    height: 30px;
    border: 0;
    border-radius: 999px;
    padding: 0;
    transform: translateY(-50%);
    display: none;
    align-items: center;
    justify-content: center;
    background: transparent;
    color: #8a8d86;
    font-size: 1.08rem;
    line-height: 1;
    cursor: pointer;
}

.search-field.has-value .search-clear {
    display: inline-flex;
}

.search-clear:hover {
    color: #181818;
    background: rgba(0, 0, 0, 0.08);
}

.search-clear:focus-visible {
    outline: 1px solid #ffff00;
    outline-offset: 1px;
}

.filters-row {
    display: flex;
    align-items: center;
    gap: 10px;
    width: min(560px, 100%);
    margin: 0 auto;
}

.theme-toggle {
    width: 40px;
    height: 40px;
    min-width: 40px;
    min-height: 40px;
    border-radius: 999px;
    border: 1px solid #8f928b;
    background: #ffffff;
    color: #2f312c;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    cursor: pointer;
    transition: transform 180ms ease, border-color 180ms ease, background 180ms ease, color 180ms ease;
}

.theme-toggle:active {
    transform: scale(0.96);
}

.theme-toggle:focus-visible {
    outline: 1px solid #ffff00;
    outline-offset: 1px;
}

.theme-toggle-icon {
    width: 18px;
    height: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.theme-toggle-icon svg {
    width: 100%;
    height: 100%;
    display: block;
}

.theme-toggle .icon-light {
    display: none;
}

.language-toggle {
    display: inline-flex;
    align-items: center;
    border: 1px solid #8f928b;
    background: #ffffff;
    border-radius: 999px;
    padding: 2px;
}

.language-toggle-btn {
    border: 0;
    background: transparent;
    color: #51544e;
    min-width: 38px;
    height: 34px;
    padding: 0 10px;
    border-radius: 999px;
    font-family: inherit;
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    cursor: pointer;
    transition: background 160ms ease, color 160ms ease;
}

.language-toggle-btn.is-active {
    background: linear-gradient(135deg, var(--accent), var(--accent-strong));
    color: #101010;
}

.language-toggle-btn:focus-visible {
    outline: 1px solid #ffff00;
    outline-offset: 1px;
}

.filter-bar {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    width: auto;
    margin: 0;
    flex: 1 1 auto;
    justify-content: flex-start;
    padding: 8px 0;
    scrollbar-width: none;
}

.filter-bar::-webkit-scrollbar {
    display: none;
}

.filter-btn {
    border: 1px solid #8f928b;
    background: var(--surface-elevated);
    color: #2f312c;
    padding: 9px 16px;
    border-radius: 999px;
    cursor: pointer;
    white-space: nowrap;
    font-family: inherit;
    font-size: 0.92rem;
    font-weight: 500;
    letter-spacing: 0.01em;
    transition: transform 180ms ease, background 180ms ease, color 180ms ease, border-color 180ms ease;
}

.filter-btn:active {
    transform: scale(0.97);
}

.filter-btn.active {
    color: #101010;
    border-color: transparent;
    background: linear-gradient(135deg, var(--accent), var(--accent-strong));
}

.song-list {
    max-width: 560px;
    margin: 0 auto;
    padding: 4px 14px 30px;
    min-height: 100vh;
    opacity: 1;
    transform: translateY(0);
    transition: opacity 180ms ease, transform 180ms ease;
    will-change: opacity, transform;
}

body.now-playing-visible .song-list {
    padding-bottom: 30px;
}

.site-footer {
    width: min(560px, calc(100% - 28px));
    margin: 4px auto 18px;
    color: #6d7069;
    font-size: 0.82rem;
    line-height: 1.45;
    text-align: center;
}

.site-footer a {
    color: #e7e700;
    text-decoration: none;
}

.site-footer a:hover {
    text-decoration: underline;
}

body.now-playing-visible .site-footer {
    margin-bottom: 90px;
}

.vote-cooldown {
    display: none;
    width: min(560px, calc(100% - 28px));
    margin: 2px auto 0;
    padding: 10px 14px;
    border-radius: 12px;
    border: 1px solid transparent;
    font-size: 0.9rem;
    font-weight: 500;
    line-height: 1.2;
}

.vote-cooldown.active {
    display: block;
    color: #4c4700;
    background: rgba(255, 255, 0, 0.26);
    border-color: rgba(199, 199, 0, 0.45);
}

.vote-cooldown.ready {
    display: block;
    color: #1f5e2b;
    background: rgba(76, 217, 100, 0.18);
    border-color: rgba(76, 217, 100, 0.34);
}

.song-list.fade-out {
    opacity: 0;
    transform: translateY(6px);
    pointer-events: none;
}

.song-card {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-bottom: 0;
    padding: 12px 0;
    border-radius: 0;
    border: 0;
    background: transparent;
    transition: transform 220ms ease, opacity 220ms ease, filter 220ms ease;
}

.song-card.voteable {
    cursor: pointer;
}

.song-card.voteable:hover {
    transform: translateX(2px);
}

.song-card.played {
    opacity: 0.58;
    filter: grayscale(0.35);
    transform: scale(0.985);
    pointer-events: none;
}

.song-card.playing {
    opacity: 0.8;
    filter: saturate(0.85);
    pointer-events: none;
}

.album-art {
    width: 84px;
    height: 84px;
    border-radius: 14px;
    object-fit: cover;
    border: 1px solid rgba(0, 0, 0, 0.14);
    flex-shrink: 0;
}

.info {
    flex: 1;
    min-width: 0;
}

.info b {
    display: block;
    margin-bottom: 3px;
    font-size: 1.03rem;
    font-weight: 300;
    line-height: 1.24;
    color: #151515;
}

.info span {
    display: block;
    color: var(--muted);
    font-size: 0.9rem;
}

.tag-container {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-top: 10px;
}

.tag {
    padding: 4px 8px;
    border-radius: 999px;
    border: 1px solid #b7b9b2;
    background: transparent;
    color: #a1a49d;
    font-size: 0.62rem;
    font-weight: 500;
    letter-spacing: 0.01em;
    text-transform: capitalize;
    line-height: 1;
}

.btn-vote {
    flex-shrink: 0;
    border: 0;
    border-radius: 999px;
    padding: 10px 14px;
    color: #0f0f0f;
    font-size: 0.88rem;
    font-weight: 500;
    letter-spacing: 0.01em;
    cursor: pointer;
    background: linear-gradient(135deg, var(--accent), var(--accent-strong));
    transition: transform 170ms ease, filter 170ms ease, opacity 170ms ease;
}

.btn-vote-card {
    width: 44px;
    height: 44px;
    min-width: 44px;
    min-height: 44px;
    padding: 0;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    font-weight: 400;
    line-height: 1;
}

.btn-vote:active {
    transform: scale(0.96);
}

.btn-vote-modal {
    width: 100%;
    min-height: 56px;
    padding: 16px 16px;
    margin-top: 2px;
    font-size: 0.95rem;
    font-weight: 600;
}

.btn-vote.is-loading {
    opacity: 0.72;
    cursor: wait;
    pointer-events: none;
    filter: saturate(0.82);
}

.song-status-played {
    color: #8a8d86;
    font-size: 0.78rem;
    font-weight: 500;
    letter-spacing: 0.04em;
}

.song-status-playing {
    margin-left: auto;
    width: 24px;
    height: 24px;
    border-radius: 999px;
    border: 2px solid rgba(0, 0, 0, 0.24);
    border-top-color: #000000;
    animation: now-playing-loader-spin 3.6s linear infinite;
    flex-shrink: 0;
    font-size: 0;
    line-height: 0;
}

.now-playing-bar {
    display: none;
    position: fixed;
    left: 50%;
    bottom: 12px;
    transform: translateX(-50%);
    width: min(560px, calc(100% - 20px));
    border: 0;
    border-radius: 14px;
    border: 1px solid #d4d7cf;
    background: #ffffff;
    padding: 10px 12px;
    z-index: 80;
    align-items: center;
    gap: 12px;
}

.now-playing-bar.is-visible {
    display: flex;
}

.now-playing-image {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    object-fit: cover;
    border: 1px solid rgba(0, 0, 0, 0.14);
    flex-shrink: 0;
}

.now-playing-text {
    min-width: 0;
}

.now-playing-loader {
    margin-left: auto;
    width: 24px;
    height: 24px;
    border-radius: 999px;
    border: 2px solid rgba(0, 0, 0, 0.24);
    border-top-color: #000000;
    animation: now-playing-loader-spin 3.6s linear infinite;
    flex-shrink: 0;
}

.now-playing-label {
    display: inline-flex;
    align-items: center;
    color: #111111;
    background: var(--accent);
    padding: 2px 7px;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    line-height: 1.1;
}

.now-playing-title {
    display: block;
    color: #1a1a1a;
    font-size: 0.98rem;
    font-weight: 500;
    line-height: 1.22;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.now-playing-artist {
    display: block;
    color: #7e827a;
    font-size: 0.84rem;
    line-height: 1.22;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

#modal {
    position: fixed;
    inset: 0;
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 100;
    padding: 18px;
    background: rgba(0, 0, 0, 0.38);
    backdrop-filter: blur(14px) saturate(140%);
    -webkit-backdrop-filter: blur(14px) saturate(140%);
}

.modal-content {
    width: min(420px, 100%);
    padding: 22px;
    border-radius: 28px;
    border: 1px solid #d9dcd4;
    background: #ffffff;
    animation: pop 260ms cubic-bezier(0.2, 0.9, 0.3, 1);
}

.modal-song-preview {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0 0 12px;
    padding: 10px;
    border-radius: 14px;
    border: 1px solid rgba(231, 231, 0, 0.42);
    background: rgba(255, 255, 0, 0.16);
}

.modal-choice-label {
    margin: 0 0 20px;
    color: var(--text);
    font-size: 1.2rem;
    font-weight: 600;
    letter-spacing: 0.02em;
}

.modal-song-image {
    width: 56px;
    height: 56px;
    border-radius: 10px;
    object-fit: cover;
    flex-shrink: 0;
}

.modal-song-details {
    min-width: 0;
}

.modal-song-title {
    margin: 0 0 3px;
    color: var(--text);
    font-size: 1.02rem;
    font-weight: 500;
    line-height: 1.25;
}

.modal-song-artist {
    color: var(--muted);
    font-size: 0.9rem;
    font-weight: 400;
    line-height: 1.25;
}

input {
    width: 100%;
    margin: 0 0 16px;
    min-height: 58px;
    padding: 14px 14px;
    border-radius: 14px;
    border: 0;
    background: #f1f2ed;
    color: #4f534b;
    font-family: inherit;
    font-size: 0.95rem;
    transition: border-color 170ms ease, background-color 170ms ease;
}

input::placeholder {
    color: #94988f;
}

input:focus:not(.search-input) {
    outline: none;
    border: 0;
    background: #eceee8;
    color: #3e423b;
}

.floating-field {
    position: relative;
    margin: 0 0 16px;
}

.floating-field input {
    margin: 0;
    min-height: 64px;
    padding: 26px 14px 10px;
}

.floating-field label {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #676a63;
    font-size: 0.95rem;
    pointer-events: none;
    transition: top 160ms ease, transform 160ms ease, font-size 160ms ease, color 160ms ease;
}

.floating-field input:focus + label,
.floating-field input:not(:placeholder-shown) + label {
    top: 8px;
    transform: none;
    font-size: 0.72rem;
    color: #2f322c;
}

.form-feedback {
    display: none;
    margin: 4px 0 12px;
    padding: 10px 12px;
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: 500;
    line-height: 1.4;
    border: 1px solid transparent;
}

.form-feedback.error {
    display: block;
    color: #ffb3bb;
    background: rgba(255, 69, 58, 0.2);
    border-color: rgba(255, 69, 58, 0.34);
}

.form-feedback.success {
    display: block;
    color: #111111;
    background: rgba(255, 255, 0, 0.8);
    border-color: rgba(255, 255, 0, 0.95);
}

.form-feedback.warning {
    display: block;
    color: #7a2e00;
    background: rgba(255, 195, 74, 0.26);
    border-color: rgba(255, 174, 0, 0.5);
}

.modal-cancel-btn {
    width: 100%;
    margin-top: 12px;
    padding: 8px;
    border: 0;
    border-radius: 10px;
    background: transparent;
    color: #2b2d28;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
}

.modal-cancel-btn:hover {
    color: #111111;
}

@keyframes pop {
    from {
        opacity: 0;
        transform: translateY(8px) scale(0.97);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes header-reveal {
    from {
        transform: translateY(-100%);
    }
    to {
        transform: translateY(0);
    }
}

@keyframes now-playing-loader-spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

body[data-theme="dark"] {
    --bg: #000000;
    --bg-strong: #121212;
    --surface: rgba(16, 16, 16, 0.78);
    --surface-solid: #121212;
    --surface-elevated: rgba(24, 24, 24, 0.95);
    --line: rgba(255, 255, 0, 0.24);
    --text: #f5f5ed;
    --muted: #adad95;
}

body[data-theme="dark"] .sticky-header {
    background: rgba(10, 10, 10, 0.92);
}

body[data-theme="dark"] .brand-title {
    color: #ffffff;
}

body[data-theme="dark"] .brand-subtitle {
    color: #cfcfcf;
}

body[data-theme="dark"] .brand-live {
    background: #e7e700;
    padding: 1px 3px;
    color: #000;
}

body[data-theme="dark"] .search-icon {
    color: #9a9a9a;
}

body[data-theme="dark"] .search-input {
    border-color: #9a9a9a;
    background: #171717;
    color: #9a9a9a;
}

body[data-theme="dark"] .search-clear {
    color: #9a9a9a;
}

body[data-theme="dark"] .search-clear:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.08);
}

body[data-theme="dark"] .theme-toggle {
    border-color: #ffffff;
    background: #121212;
    color: #ffffff;
}

body[data-theme="dark"] .language-toggle {
    border-color: #ffffff;
    background: #121212;
}

body[data-theme="dark"] .language-toggle-btn {
    color: #ffffff;
}

body[data-theme="dark"] .language-toggle-btn.is-active {
    color: #101010;
}

body[data-theme="dark"] .theme-toggle .icon-light {
    display: inline-flex;
}

body[data-theme="dark"] .theme-toggle .icon-dark {
    display: none;
}

body[data-theme="dark"] .filter-btn {
    border-color: #ffffff;
    background: var(--surface-elevated);
    color: #ffffff;
}

body[data-theme="dark"] .filter-btn.active,
body[data-theme="dark"] .filter-btn.active:focus-visible {
    color: #101010;
    border-color: transparent;
    background: linear-gradient(135deg, var(--accent), var(--accent-strong));
}

body[data-theme="dark"] .site-footer {
    color: #9fa09d;
}

body[data-theme="dark"] .vote-cooldown.active {
    color: #fff5a6;
    background: rgba(255, 255, 0, 0.12);
    border-color: rgba(255, 255, 0, 0.24);
}

body[data-theme="dark"] .vote-cooldown.ready {
    color: #c9ffd0;
    background: rgba(76, 217, 100, 0.14);
    border-color: rgba(76, 217, 100, 0.28);
}

body[data-theme="dark"] .album-art {
    border-color: rgba(255, 255, 0, 0.16);
}

body[data-theme="dark"] .info b {
    color: #ffffff;
}

body[data-theme="dark"] .tag {
    border-color: #b3b3b3;
    color: #b3b3b3;
}

body[data-theme="dark"] .song-status-played {
    color: #7f7f6f;
}

body[data-theme="dark"] .song-status-playing {
    border-color: rgba(255, 255, 255, 0.28);
    border-top-color: #ffff00;
    background: transparent;
}

body[data-theme="dark"] .now-playing-bar {
    border-color: transparent;
    background: #171717;
}

body[data-theme="dark"] .now-playing-image {
    border-color: rgba(255, 255, 0, 0.2);
}

body[data-theme="dark"] .now-playing-loader {
    border-color: rgba(255, 255, 255, 0.28);
    border-top-color: #ffff00;
}

body[data-theme="dark"] .now-playing-title {
    color: #ffffff;
}

body[data-theme="dark"] .now-playing-label {
    color: var(--accent);
    background: transparent;
    padding: 0;
    border-radius: 0;
}

body[data-theme="dark"] .now-playing-artist {
    color: #b5b5b5;
}

body[data-theme="dark"] #modal {
    background: rgba(0, 0, 0, 0.62);
}

body[data-theme="dark"] .modal-content {
    border-color: rgba(255, 255, 0, 0.2);
    background: #000000;
}

body[data-theme="dark"] .modal-song-preview {
    border-color: rgba(255, 255, 0, 0.2);
    background: rgba(255, 255, 0, 0.06);
}

body[data-theme="dark"] input {
    background: #171717;
    color: #babbb8;
}

body[data-theme="dark"] input::placeholder {
    color: #7c7c6b;
}

body[data-theme="dark"] input:focus:not(.search-input) {
    background: #171717;
    color: #babbb8;
}

body[data-theme="dark"] .floating-field label {
    color: #ffffff;
}

body[data-theme="dark"] .floating-field input:focus + label,
body[data-theme="dark"] .floating-field input:not(:placeholder-shown) + label {
    color: #ffffff;
}

body[data-theme="dark"] .form-feedback.warning {
    color: #ffd7a6;
    background: rgba(172, 89, 0, 0.24);
    border-color: rgba(255, 166, 0, 0.38);
}

body[data-theme="dark"] .modal-cancel-btn {
    color: #ffffff;
}

body[data-theme="dark"] .modal-cancel-btn:hover {
    color: #ffffff;
}

@media (max-width: 520px) {
    body.now-playing-visible .song-list {
        padding-bottom: 30px;
    }

    .site-footer {
        font-size: 0.78rem;
        margin-bottom: 14px;
    }

    body.now-playing-visible .site-footer {
        margin-bottom: 82px;
    }

    .now-playing-bar {
        bottom: 10px;
        padding: 9px 10px;
        border-radius: 12px;
        gap: 10px;
    }

    .now-playing-image {
        width: 42px;
        height: 42px;
        border-radius: 9px;
    }

    .now-playing-loader {
        width: 20px;
        height: 20px;
    }

    .song-status-playing {
        width: 20px;
        height: 20px;
    }

    .now-playing-title {
        font-size: 0.9rem;
    }

    .now-playing-artist {
        font-size: 0.8rem;
    }

    .sticky-header.is-compact-fixed {
        padding: 7px 12px 5px;
    }

    .sticky-header.is-compact-fixed .header-top {
        margin-bottom: 6px;
    }

    .sticky-header.is-compact-fixed .brand-title {
        font-size: 1.04rem;
    }

    .sticky-header.is-compact-fixed .event-name {
        font-size: 0.9rem;
    }

    .sticky-header.is-compact-fixed .event-date {
        font-size: 0.74rem;
    }

    .sticky-header.is-compact-fixed .search-input {
        min-height: 34px;
        padding-top: 7px;
        padding-bottom: 7px;
    }

    .sticky-header.is-compact-fixed .filter-btn {
        padding: 4px 10px;
        font-size: 0.78rem;
    }

    .sticky-header.is-compact-fixed .theme-toggle {
        width: 32px;
        height: 32px;
        min-width: 32px;
        min-height: 32px;
    }

    .sticky-header.is-compact-fixed .language-toggle-btn {
        min-width: 34px;
        height: 30px;
        padding: 0 8px;
        font-size: 0.72rem;
    }

    .sticky-header.is-compact-fixed .theme-toggle-icon {
        width: 15px;
        height: 15px;
    }

    .header-top {
        margin-bottom: 18px;
    }

    .brand-title {
        font-size: 1.22rem;
    }

    .brand-subtitle {
        font-size: 0.84rem;
    }

    .event-name {
        font-size: 1rem;
    }

    .event-date {
        font-size: 0.86rem;
    }

    .search-input {
        font-size: 16px;
    }

    .song-card {
        padding: 12px 0;
        gap: 12px;
    }

    .album-art {
        width: 74px;
        height: 74px;
        border-radius: 12px;
    }

    .btn-vote {
        padding: 9px 12px;
    }

    .btn-vote-card {
        width: 42px;
        height: 42px;
        min-width: 42px;
        min-height: 42px;
        font-size: 1.65rem;
    }

    /* iOS: évite le zoom auto des champs quand la police est < 16px */
    .modal-content input {
        font-size: 16px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .song-list,
    .song-card,
    .sticky-header,
    .search-input,
    .filter-btn,
    .btn-vote,
    .modal-content,
    input {
        transition: none;
    }

    .modal-content {
        animation: none;
    }

    .sticky-header.is-compact-fixed {
        animation: none;
    }

    .now-playing-loader {
        animation: none;
    }

    .song-status-playing {
        animation: none;
    }
}
