@keyframes logoFloat {
    0% { transform: translateY(0); }
    100% { transform: translateY(-24px); }
}
/* index.css - Extracted from index.html inline styles */

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    height: 100vh;
    height: 100dvh;
    min-height: 100vh;
    min-height: 100dvh;
    background: linear-gradient(90deg, #5872ff, #f868c9);
}
body.djq-layout { overflow-x: visible; }

@media screen and (max-width: 768px) {
    html, body {
        height: 100%;
        min-height: -webkit-fill-available;
    }
}

/* Animations */
.fade-in {
    animation: fadeIn 0.5s ease-in;
}
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}
.step-enter {
    opacity: 0;
    transform: translateY(30px);
}
.step-enter.visible {
    animation: fadeInUp 0.6s ease-out forwards;
}
.step-panel {
    overflow: visible;
}
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Song autocomplete dropdown */
.song-autocomplete-dropdown {
    position: fixed;
    z-index: 99999;
    background: #1f2937;
    border: 1px solid rgba(255,255,255,0.3);
    border-radius: 12px;
    max-height: 240px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    box-shadow: 0 10px 40px rgba(0,0,0,0.5);
}

.submission-flow {
    min-height: 100vh;
    min-height: 100dvh;
}

/* Guest request: welcome/content above, song field docked at bottom */
body.submission-flow #mainContainer {
    align-items: stretch;
    justify-content: flex-start;
    min-height: 100vh;
    min-height: 100dvh;
    padding-left: 0;
    padding-right: 0;
}
body.submission-flow #contentWrapper {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 100%;
    width: 100%;
    max-width: none;
}
#songRequestForm.submission-flow {
    display: flex;
    flex-direction: column;
    flex: 1;
    width: 100%;
    min-height: 100vh;
    min-height: 100dvh;
}
.submission-form {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 100%;
    width: 100%;
}
.submission-step:not(.hidden) {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 100vh;
    min-height: 100dvh;
    width: 100%;
    text-align: left;
}
.step-panel.hidden {
    display: none !important;
}
.submission-scroll {
    flex: 1 1 auto;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: max(1.75rem, env(safe-area-inset-top)) 1.5rem calc(1.5rem + env(safe-area-inset-bottom, 0px));
    width: 100%;
    max-width: 28rem;
    margin: 0 auto;
    text-align: left;
}
/* Guest screen: the heading + composer block bottoms out just past the
   vertical middle (so the input sits mid-screen), and the vote list follows
   immediately below it — no dead space between the button and the list. */
.submission-centerpiece {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    min-height: 52vh;
    min-height: 52dvh;
}
.submission-hero {
    margin-top: 0;
    margin-bottom: 1.25rem;
    text-align: left;
}
.submission-hero #songPromptHeading {
    font-size: clamp(2rem, 7vw, 2.75rem);
    line-height: 1.1;
    letter-spacing: -0.03em;
}
.submission-composer {
    width: 100%;
    padding: 0;
    background: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}
.submission-composer .input-wrapper,
.submission-composer #submitBtn {
    max-width: none;
}
.submission-composer-input:focus,
#songOrArtist:focus {
    transform: none;
    box-shadow: none;
    outline: none;
}
/* Simple guest request (voting off, no custom copy): center the composer. */
.submission-step--centered {
    justify-content: center;
    text-align: center;
}
.submission-step--centered .submission-scroll {
    display: flex;
    flex-direction: column;
    justify-content: center;
    flex: 1;
    overflow: visible;
    padding-top: 1.5rem;
    padding-bottom: calc(1.5rem + env(safe-area-inset-bottom, 0px));
}
.submission-step--centered .submission-hero,
.submission-step--centered .form-vote-section,
.submission-step--centered #inlineTipSection {
    display: none !important;
}

/* Guest vote list — glass cards matching request screen */
.form-vote-section {
    text-align: left;
}
.form-vote-heading {
    color: #fff;
    font-size: 1.05rem;
    font-weight: 600;
    margin: 0 0 0.85rem;
    letter-spacing: -0.01em;
}
.vote-card {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.65rem 0.75rem;
    border-radius: 1rem;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.28);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 8px 24px rgba(80, 20, 90, 0.12);
    animation: voteCardIn 0.35s ease-out both;
}
@keyframes voteCardIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}
.vote-card-art {
    width: 3rem;
    height: 3rem;
    border-radius: 0.65rem;
    object-fit: cover;
    flex-shrink: 0;
    background: rgba(255, 255, 255, 0.12);
}
.vote-card-art--placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.55);
}
.vote-card-meta {
    min-width: 0;
    flex: 1;
}
.vote-card-title {
    color: #fff;
    font-size: 0.95rem;
    font-weight: 700;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.vote-card-artist {
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.8rem;
    margin-top: 0.15rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.vote-card-actions {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    flex-shrink: 0;
}
.vote-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.4rem 0.85rem;
    border-radius: 999px;
    border: 1.5px solid rgba(255, 255, 255, 0.85);
    background: transparent;
    color: #fff;
    font-size: 0.85rem;
    font-weight: 600;
    line-height: 1;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease, transform 0.15s ease;
}
.vote-btn:hover:not([data-voted="true"]) {
    background: rgba(255, 255, 255, 0.18);
}
.vote-btn:active {
    transform: scale(0.96);
}
/* Tapping a voted button removes the vote — kept clickable, not disabled.
   Fill/color for the voted state are also set inline (see vote.js) as a
   caching fallback; this rule is the source of truth when the stylesheet
   loads normally. */
.vote-btn[data-voted="true"] {
    background: #fff;
    color: #111;
    border-color: #fff;
}
.vote-btn svg {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
}
.vote-count {
    min-width: 1.5rem;
    text-align: right;
    color: rgba(255, 255, 255, 0.78);
    font-size: 0.95rem;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
}
.submission-step--voting .submission-composer {
    margin-bottom: 0.25rem;
}
.submission-tip-step {
    flex: 1;
    min-height: 100vh;
    min-height: 100dvh;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: calc(2rem + env(safe-area-inset-bottom, 0px));
}
.song-autocomplete-dropdown.autocomplete-up {
    box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.5);
}

.rotation-screen {
    background: linear-gradient(90deg, #5872ff, #f868c9);
}

/* Hide Settings scrollbar entirely (panel still scrolls via wheel/touch). */
.settings-panel {
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* legacy Edge */
}

.settings-panel::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Edge */
    width: 0;
    height: 0;
}

/* Clear button styles */
.input-wrapper {
    position: relative;
    overflow: visible;
}

.clear-btn {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    padding: 4px;
    display: none;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    transition: all 0.2s ease;
    z-index: 10;
}

.clear-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.9);
}

.clear-btn.visible {
    display: flex;
}

.input-wrapper input {
    padding-right: 40px;
}

/* Autocomplete items – plain CSS, no Tailwind (dynamic innerHTML) */
.autocomplete-item {
    padding: 12px 16px;
    cursor: pointer;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    text-align: left;
    transition: background 0.15s;
}
.autocomplete-item:last-child { border-bottom: none; }
.autocomplete-item:hover,
.autocomplete-item:active { background: rgba(255,255,255,0.12); }
.autocomplete-item .song-name { color: #fff; font-weight: 500; font-size: 15px; }
.autocomplete-item .song-artist { color: rgba(255,255,255,0.6); font-size: 13px; margin-top: 2px; }

/* Native app feel: disable callouts, touch handling */
* { -webkit-touch-callout: none; -webkit-user-select: none; user-select: none; -webkit-tap-highlight-color: transparent; }
* { -webkit-overflow-scrolling: touch; }
input, textarea { -webkit-user-select: text; user-select: text; }
button, a { -webkit-tap-highlight-color: transparent; }
button:active, .btn:active { transform: scale(0.98); opacity: 0.9; }
body { overscroll-behavior-y: contain; }
@supports (padding: max(0px)) {
    body { padding-left: max(0px, env(safe-area-inset-left)); padding-right: max(0px, env(safe-area-inset-right)); padding-bottom: max(0px, env(safe-area-inset-bottom)); }
}

/* Haptic & shake animations */
@keyframes haptic { 0%, 100% { transform: scale(1); } 50% { transform: scale(0.98); } }
.haptic-feedback:active { animation: haptic 0.1s ease-in-out; }
@keyframes shake { 0%, 100% { transform: translateX(0); } 20% { transform: translateX(-8px); } 40% { transform: translateX(8px); } 60% { transform: translateX(-6px); } 80% { transform: translateX(6px); } }
.shake { animation: shake 0.5s ease-in-out; }

/* Index: native-like inputs & buttons */
input[type="text"] { font-size: 16px; border-radius: 12px; transition: all 0.2s ease; }
input[type="text"]:focus { transform: scale(1.01); box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15); }
button { cursor: pointer; font-size: 16px; font-weight: 600; letter-spacing: -0.01em; transition: all 0.15s cubic-bezier(0.4, 0, 0.2, 1); }
button:active { transform: scale(0.97); }

/* Shimmer loading effect */
@keyframes shimmer { 0% { background-position: -468px 0; } 100% { background-position: 468px 0; } }
.loading { background: linear-gradient(90deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0.2) 50%, rgba(255,255,255,0.1) 100%); background-size: 468px 100%; animation: shimmer 1.2s ease-in-out infinite; }

/* DJ Home layout */
.dj-home-container {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    max-width: 100%;
    gap: 4rem;
    padding: 1rem;
    overflow: visible;
}
.dj-home-logo-wrap {
    width: 50%;
    min-width: min(35vw, 35vh, 1120px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    flex-shrink: 0;
    overflow: visible;
}
.dj-home-logo {
    flex-shrink: 0;
    width: min(35vw, 35vh, 1120px);
    height: min(35vw, 35vh, 1120px);
    overflow: visible;
}
.dj-home-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    display: block;
    animation: logo-float 2.5s ease-in-out infinite;
}
@keyframes logo-float {
    0%, 100% { transform: translateX(0); }
    50% { transform: translateX(8px); }
}
.dj-home-panel-slot {
    flex: 1;
    min-width: 0;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
}
.dj-home-content {
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}
#djHomeContent[hidden],
#sessionCreation[hidden] {
    display: none !important;
    visibility: hidden !important;
    pointer-events: none !important;
}
#djHome.is-naming-session #djHomeContent {
    display: none !important;
    visibility: hidden !important;
    pointer-events: none !important;
}
#djHome.is-naming-session #sessionCreation {
    display: flex !important;
    visibility: visible !important;
    pointer-events: auto !important;
}

/* Mobile DJ home layout */
@media (max-width: 640px) {
    .dj-home-container {
        flex-direction: column;
        gap: 0.75rem;
    }
    .dj-home-logo-wrap { order: 1; width: 100%; }
    .dj-home-logo { width: min(35vw, 35vh, 280px); height: min(35vw, 35vh, 280px); }
    .dj-home-logo img { width: 100%; height: 100%; object-fit: contain; }
    .dj-home-panel-slot { order: 2; }
    .partner-logos-desktop { display: none !important; }
    .partner-logos-mobile {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: wrap !important;
        order: 3;
        margin-top: 0.25rem;
        padding-top: 0.6rem;
    }
}
@media (min-width: 641px) {
    .partner-logos-mobile { display: none !important; }
}
.partner-logos-mobile {
    display: none;
    flex-direction: row;
    flex-wrap: wrap;
    margin-top: 0.5rem;
    padding-top: 0.75rem;
    border-top: 1px solid rgba(255,255,255,0.3);
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}
.partner-logos-section {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

/* Tip calculator slider */
#tipCalcSlider::-webkit-slider-thumb { -webkit-appearance: none; appearance: none; width: 18px; height: 18px; border-radius: 50%; background: white; cursor: pointer; }
#tipCalcSlider::-moz-range-thumb { width: 18px; height: 18px; border-radius: 50%; background: white; cursor: pointer; border: none; }
