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

:root {
    color-scheme: dark;
    --entry-bg: var(--kp-bg, #0E0A14);
    --entry-panel: rgba(23, 17, 31, .9);
    --entry-panel-strong: var(--kp-surface-raised, #21172B);
    --entry-border: var(--kp-border, rgba(236, 238, 245, .11));
    --entry-text: var(--kp-text, #F5F4FA);
    --entry-muted: var(--kp-muted, #A49BAD);
    --entry-yellow: var(--kp-yellow, #FF7A00);
    --entry-blue: var(--color-navigation-hover, #9C5BFF);
    --entry-pink: var(--color-navigation, #8A3FFC);
    --entry-green: #72e6ad;
    --entry-radius: 24px;
}

* { box-sizing: border-box; }

html { min-height: 100%; background: var(--entry-bg); }

body {
    min-height: 100vh;
    margin: 0;
    overflow-x: hidden;
    background:
        radial-gradient(circle at 50% -20%, rgba(138, 63, 252, .16), transparent 44%),
        var(--entry-bg);
    color: var(--entry-text);
    font-family: 'Inter', sans-serif;
}

a { color: inherit; }

.entry-glow {
    position: fixed;
    width: 460px;
    height: 460px;
    border-radius: 50%;
    filter: blur(130px);
    opacity: .13;
    pointer-events: none;
}

.entry-glow-left { left: -240px; top: 12%; background: var(--entry-pink); }
.entry-glow-right { right: -260px; bottom: 2%; background: var(--entry-blue); }

.entry-header,
.detail-header {
    position: relative;
    z-index: 2;
    width: min(1180px, calc(100% - 48px));
    min-height: 94px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--entry-border);
}

.brand-link img,
.detail-header img { display: block; width: 142px; height: auto; }

.quiet-link,
.back-link {
    color: #d7d9e5;
    font-size: .88rem;
    font-weight: 600;
    text-decoration: none;
}

.quiet-link { padding: 10px 16px; border: 1px solid var(--entry-border); border-radius: 999px; }
.quiet-link:hover,
.back-link:hover { color: #fff; border-color: rgba(255, 255, 255, .28); }

.entry-shell {
    position: relative;
    z-index: 1;
    width: min(1180px, calc(100% - 48px));
    margin: 0 auto;
    padding: 72px 0 54px;
}

.entry-intro { max-width: 800px; margin-bottom: 68px; }

.eyebrow,
.group-kicker,
.singer-label {
    margin: 0;
    color: var(--entry-pink);
    font: 800 .76rem/1.2 'Montserrat', sans-serif;
    letter-spacing: .18em;
}

.entry-intro h1,
.detail-hero h1,
.display-message h1 {
    margin: 13px 0 16px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 900;
    line-height: 1.04;
    letter-spacing: -.045em;
}

.entry-intro h1 { max-width: 760px; font-size: clamp(2.35rem, 5.2vw, 5rem); }
.entry-lead { max-width: 680px; margin: 0; color: var(--entry-muted); font-size: clamp(1rem, 1.5vw, 1.18rem); line-height: 1.7; }

.mode-group + .mode-group { margin-top: 62px; }

.group-heading { display: flex; align-items: center; gap: 16px; margin-bottom: 22px; }
.group-number { color: #74798f; font: 700 .78rem/1 'Montserrat', sans-serif; }
.group-kicker { margin-bottom: 5px; color: #74798f; }
.group-heading h2 { margin: 0; font: 800 clamp(1.35rem, 2vw, 1.8rem)/1.2 'Montserrat', sans-serif; }

.mode-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }

.mode-card {
    position: relative;
    min-height: 320px;
    padding: 28px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    overflow: hidden;
    border: 1px solid var(--entry-border);
    border-radius: var(--entry-radius);
    background: linear-gradient(145deg, rgba(33, 23, 43, .96), rgba(14, 10, 20, .94));
    box-shadow: 0 24px 60px rgba(0, 0, 0, .24);
    text-decoration: none;
    transition: transform .22s ease, border-color .22s ease, background .22s ease;
}

.mode-card::after {
    content: '';
    position: absolute;
    inset: auto -80px -120px auto;
    width: 250px;
    height: 250px;
    border-radius: 50%;
    background: var(--entry-blue);
    filter: blur(80px);
    opacity: .11;
}

.mode-card-primary { border-color: var(--kp-lilac-line, rgba(138, 63, 252,.38)); }
.mode-card-primary::after { background: var(--entry-pink); opacity: .13; }
.mode-card:hover { transform: translateY(-4px); border-color: rgba(255, 255, 255, .28); }
.mode-card:focus-visible { outline: 3px solid var(--entry-yellow); outline-offset: 4px; }

.mode-status {
    display: inline-flex;
    align-items: center;
    min-height: 27px;
    padding: 5px 10px;
    border-radius: 999px;
    font-size: .68rem;
    font-weight: 800;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.status-ready { color: #07140e; background: var(--entry-green); }
.status-building { color: #fff3bc; background: rgba(255, 122, 0, .12); border: 1px solid rgba(255, 122, 0, .28); }
.mode-icon,
.detail-icon { font-family: sans-serif; font-weight: 400; color: var(--entry-pink); line-height: 1; }
.mode-icon { width: 58px; height: 58px; margin: 28px 0 20px; display: grid; place-items: center; }
.mode-icon svg { width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; filter: drop-shadow(0 0 14px rgba(138, 63, 252, .18)); }
.mode-copy { position: relative; z-index: 1; display: flex; flex-direction: column; gap: 9px; }
.mode-copy strong { font: 800 clamp(1.25rem, 2.2vw, 1.75rem)/1.2 'Montserrat', sans-serif; }
.mode-copy small { max-width: 480px; color: var(--entry-muted); font-size: .93rem; line-height: 1.55; }
.mode-action { position: relative; z-index: 1; margin-top: auto; padding-top: 26px; color: #fff; font-size: .86rem; font-weight: 700; }


.singer-callout {
    margin-top: 62px;
    padding: 26px 28px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    border: 1px solid var(--color-social-line, rgba(255, 79, 216, .44));
    border-radius: var(--entry-radius);
    background: var(--color-social-soft, rgba(255, 79, 216, .14));
}

.singer-callout strong { display: block; margin: 8px 0 5px; font: 700 1.05rem/1.4 'Montserrat', sans-serif; }
.singer-label { display: inline-flex; align-items: center; gap: 8px; }
.singer-label svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.singer-callout p { margin: 0; color: var(--entry-muted); font-size: .88rem; line-height: 1.55; }
.singer-callout a,
.primary-action,
.secondary-action {
    flex: 0 0 auto;
    padding: 13px 19px;
    border-radius: 12px;
    font-size: .85rem;
    font-weight: 700;
    text-align: center;
    text-decoration: none;
}
.singer-callout a { border: 1px solid var(--color-social-line, rgba(255, 79, 216, .44)); }
.singer-callout a:hover { background: var(--color-social-soft, rgba(255, 79, 216, .14)); }
.entry-footer { padding: 0 24px 30px; color: #686c7d; font-size: .76rem; text-align: center; }

.detail-header { min-height: 82px; }
.detail-header img { width: 116px; }
.detail-shell,
.display-shell { position: relative; z-index: 1; width: min(980px, calc(100% - 40px)); margin: 0 auto; padding: 70px 0; }
.detail-hero { max-width: 760px; }
.detail-icon { display: block; margin-bottom: 26px; font-size: 4rem; }
.detail-hero h1,
.display-message h1 { max-width: 800px; font-size: clamp(2.25rem, 5vw, 4.5rem); }
.detail-hero > p:last-of-type,
.display-message > p:last-of-type { max-width: 720px; color: var(--entry-muted); font-size: 1.05rem; line-height: 1.75; }
.development-badge { display: inline-flex; margin-top: 24px; padding: 8px 12px; border: 1px solid var(--color-state-warning, #FFBF47); border-radius: 999px; color: var(--color-state-warning, #FFBF47); background: var(--color-state-warning-soft, rgba(255, 191, 71, .14)); font-size: .74rem; font-weight: 700; }

.role-preview { margin-top: 58px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.role-preview article,
.connection-card { padding: 24px; border: 1px solid var(--entry-border); border-radius: 20px; background: var(--entry-panel); }
.role-preview span { color: var(--entry-pink); font: 700 .72rem/1 'Montserrat', sans-serif; }
.role-preview h2 { margin: 34px 0 8px; font: 800 1.1rem/1.2 'Montserrat', sans-serif; }
.role-preview p { margin: 0; color: var(--entry-muted); font-size: .84rem; line-height: 1.6; }
.detail-actions { margin-top: 38px; display: flex; flex-wrap: wrap; gap: 12px; }
.primary-action { color: #080a12; background: var(--entry-yellow); }
.primary-action:hover { background: var(--color-action-primary-hover, #FF922E); }
.secondary-action { border: 1px solid var(--entry-border); color: #f2f2f8; }
.secondary-action:hover { border-color: rgba(255, 255, 255, .3); }

.display-shell { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(340px, .75fr); gap: 54px; align-items: center; min-height: calc(100vh - 82px); padding-top: 50px; }
.display-message { align-self: center; }
.display-icon { font-size: 5.4rem; }
.connection-card { padding: 30px; }
.connection-card h2 { margin: 24px 0 18px; font: 800 1.35rem/1.25 'Montserrat', sans-serif; }
.connection-card ol { margin: 0; padding-left: 21px; color: #e4e5ec; }
.connection-card li { padding: 0 0 15px 5px; line-height: 1.55; }
.connection-card > p { margin: 12px 0 0; padding-top: 18px; border-top: 1px solid var(--entry-border); color: var(--entry-muted); font-size: .84rem; line-height: 1.6; }
.display-actions { grid-column: 1 / -1; margin-top: -20px; }

@media (max-width: 780px) {
    .entry-header,
    .detail-header { width: min(100% - 32px, 1180px); min-height: 76px; }
    .brand-link img { width: 116px; }
    .entry-shell { width: min(100% - 32px, 1180px); padding-top: 48px; }
    .entry-intro { margin-bottom: 50px; }
    .entry-intro h1 { font-size: clamp(2.3rem, 11vw, 3.6rem); }
    .mode-grid,
    .role-preview,
    .display-shell { grid-template-columns: 1fr; }
    .mode-card { min-height: 280px; padding: 23px; }
    .singer-callout { align-items: flex-start; flex-direction: column; gap: 20px; }
    .singer-callout a { width: 100%; }
    .detail-shell,
    .display-shell { width: min(100% - 32px, 980px); padding: 48px 0; }
    .detail-header { flex-direction: row-reverse; }
    .detail-hero h1,
    .display-message h1 { font-size: clamp(2.15rem, 11vw, 3.5rem); }
    .role-preview { margin-top: 42px; }
    .display-shell { min-height: auto; gap: 30px; }
    .display-actions { grid-column: auto; margin-top: 0; }
    .detail-actions a { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}

/* Cabine do DJ no celular */
.mobile-control-page {
    min-height: 100dvh;
    background:
        radial-gradient(circle at 20% -10%, rgba(138, 63, 252, .18), transparent 34%),
        radial-gradient(circle at 100% 40%, rgba(255, 79, 216, .08), transparent 32%),
        var(--entry-bg);
}

.mobile-control-page [hidden] { display: none !important; }

.mobile-control-page button:disabled {
    cursor: wait;
    opacity: .62;
}

.mobile-control-header {
    position: sticky;
    top: 0;
    z-index: 20;
    min-height: 68px;
    padding: max(12px, env(safe-area-inset-top)) 18px 12px;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    border-bottom: 1px solid var(--entry-border);
    background: var(--color-bg-overlay, rgba(14, 10, 20, .94));
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.mobile-control-header img { width: 112px; display: block; }
.mobile-control-header .back-link { justify-self: start; font-size: .78rem; }
.header-text-button {
    justify-self: end;
    padding: 8px 10px;
    border: 0;
    color: #cdd0dd;
    background: transparent;
    font: 600 .78rem/1 'Inter', sans-serif;
    cursor: pointer;
}

.mobile-control-shell {
    position: relative;
    z-index: 1;
    width: min(100% - 28px, 680px);
    margin: 0 auto;
    padding: 26px 0 calc(42px + env(safe-area-inset-bottom));
}

.mobile-state-card {
    width: min(100%, 520px);
    margin: min(10vh, 72px) auto 0;
    padding: 28px;
    border: 1px solid var(--entry-border);
    border-radius: 26px;
    background: linear-gradient(150deg, rgba(33, 23, 43, .96), rgba(14, 10, 20, .96));
    box-shadow: 0 30px 80px rgba(0, 0, 0, .34);
}

#mobileDjLoading { text-align: center; color: var(--entry-muted); }
.mobile-loader {
    display: block;
    width: 34px;
    height: 34px;
    margin: 0 auto 16px;
    border: 3px solid rgba(255, 255, 255, .12);
    border-top-color: var(--entry-yellow);
    border-radius: 50%;
    animation: mobile-spin .8s linear infinite;
}

@keyframes mobile-spin { to { transform: rotate(360deg); } }

.mobile-state-card h1 {
    margin: 12px 0 12px;
    font: 800 clamp(1.75rem, 8vw, 2.5rem)/1.08 'Montserrat', sans-serif;
    letter-spacing: -.035em;
}

.state-description { margin: 0 0 28px; color: var(--entry-muted); font-size: .92rem; line-height: 1.65; }

.google-auth-button {
    width: 100%;
    min-height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border: 0;
    border-radius: 13px;
    color: #161824;
    background: #f5f6fa;
    font: 700 .9rem/1 'Inter', sans-serif;
    cursor: pointer;
}

.google-auth-button span {
    width: 25px;
    height: 25px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    color: #3154d7;
    background: #fff;
    box-shadow: 0 1px 4px rgba(0, 0, 0, .18);
    font-weight: 800;
}

.mobile-auth-divider { margin: 20px 0; display: flex; align-items: center; gap: 12px; color: #666b7e; font-size: .72rem; }
.mobile-auth-divider::before,
.mobile-auth-divider::after { content: ''; flex: 1; height: 1px; background: var(--entry-border); }

.mobile-auth-form,
.room-code-form { display: grid; gap: 15px; }
.mobile-auth-form label,
.room-code-form label { display: grid; gap: 7px; color: #c5c8d6; font-size: .76rem; font-weight: 600; }
.mobile-auth-form input,
.room-code-form input {
    width: 100%;
    min-height: 50px;
    padding: 0 15px;
    border: 1px solid var(--entry-border);
    border-radius: 13px;
    outline: none;
    color: #fff;
    background: rgba(14, 10, 20, .72);
    font: 500 1rem/1 'Inter', sans-serif;
}
.mobile-auth-form input:focus,
.room-code-form input:focus { border-color: var(--entry-yellow); box-shadow: 0 0 0 3px rgba(255, 122, 0, .1); }
.mobile-auth-form .primary-action,
.room-code-form .primary-action { width: 100%; min-height: 50px; border: 0; font-family: 'Inter', sans-serif; cursor: pointer; }
.room-code-form input { height: 68px; text-align: center; font: 800 2rem/1 'Montserrat', sans-serif; letter-spacing: .25em; text-transform: uppercase; }
.mobile-error { margin: 16px 0 0; padding: 11px 13px; border: 1px solid rgba(255, 100, 116, .28); border-radius: 11px; color: #ffadb6; background: rgba(255, 77, 96, .08); font-size: .78rem; line-height: 1.5; }
.mobile-identity { margin: 18px 0 0; color: #777b8d; font-size: .74rem; text-align: center; }

.mobile-dashboard { display: grid; gap: 16px; padding-bottom: 88px; }
.mobile-party-heading { padding: 8px 3px 12px; display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.connection-label { margin: 0 0 7px; color: var(--entry-green); font: 800 .66rem/1 'Montserrat', sans-serif; letter-spacing: .13em; }
.connection-label.is-offline { color: #ff8c98; }
.mobile-party-heading h1 { margin: 0 0 6px; font: 800 clamp(1.7rem, 8vw, 2.5rem)/1.1 'Montserrat', sans-serif; letter-spacing: -.035em; }
.mobile-party-heading > div > p:last-child { margin: 0; color: #85899b; font-size: .76rem; }
.icon-text-button { flex: 0 0 auto; padding: 9px 11px; border: 1px solid var(--entry-border); border-radius: 10px; color: #d8dae4; background: rgba(255, 255, 255, .03); font: 600 .7rem/1 'Inter', sans-serif; cursor: pointer; }

.now-playing-card,
.mobile-catalog-card,
.mobile-queue-card,
.mobile-role-switch {
    border: 1px solid var(--entry-border);
    border-radius: 24px;
    background: var(--entry-panel);
    box-shadow: 0 20px 50px rgba(0, 0, 0, .2);
}

.now-playing-card { padding: 24px 20px 20px; overflow: hidden; }
.now-playing-label { display: flex; align-items: center; gap: 8px; color: #8c90a2; font: 800 .65rem/1 'Montserrat', sans-serif; letter-spacing: .13em; }
.playback-dot { width: 8px; height: 8px; border-radius: 50%; background: #646879; }
.playback-dot.is-playing { background: var(--entry-green); box-shadow: 0 0 12px rgba(114, 230, 173, .7); animation: playback-pulse 1.5s infinite; }
@keyframes playback-pulse { 50% { opacity: .45; } }
.now-playing-card h2 { margin: 18px 0 7px; font: 800 clamp(1.35rem, 7vw, 2rem)/1.12 'Montserrat', sans-serif; letter-spacing: -.025em; }
.now-playing-card > p { min-height: 22px; margin: 0; color: var(--entry-muted); font-size: .84rem; line-height: 1.5; }

.mobile-playback-controls { margin: 26px -4px 22px; display: grid; grid-template-columns: 1fr 1.18fr 1fr; gap: 10px; align-items: center; }
.mobile-playback-controls button {
    min-width: 0;
    min-height: 78px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 7px;
    border: 1px solid var(--entry-border);
    border-radius: 18px;
    color: #e8e9ef;
    background: rgba(255, 255, 255, .035);
    cursor: pointer;
}
.mobile-playback-controls button span { font-size: 1.55rem; line-height: 1; }
.mobile-playback-controls button small { color: #a8abbb; font: 600 .65rem/1 'Inter', sans-serif; }
.mobile-playback-controls .main-control { min-height: 94px; color: #090b12; border-color: transparent; background: var(--entry-yellow); }
.mobile-playback-controls .main-control span { font-size: 1.8rem; }
.mobile-playback-controls .main-control small { color: #090b12; font-weight: 800; }
.mobile-playback-controls button:active { transform: scale(.97); }

.mobile-adjustments { padding-top: 18px; border-top: 1px solid var(--entry-border); }
.mobile-adjustments > label { display: flex; justify-content: space-between; color: #aeb1c0; font-size: .75rem; font-weight: 600; }
.mobile-adjustments output { color: #fff; }
.mobile-adjustments input[type='range'] { width: 100%; margin: 14px 0 18px; accent-color: var(--entry-blue); }
.tone-buttons { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.tone-buttons button { min-height: 40px; border: 1px solid var(--entry-border); border-radius: 11px; color: #dadce5; background: rgba(255, 255, 255, .035); font: 700 .72rem/1 'Inter', sans-serif; cursor: pointer; }
.tone-buttons button:disabled { cursor: default; opacity: .3; }
.mobile-mode-note { display: block; margin-top: 10px; color: #85899a; font-size: .66rem; line-height: 1.45; text-align: center; }
.mobile-secret-score { width: 100%; min-height: 50px; margin-top: 14px; padding: 9px 13px; display: flex; align-items: center; justify-content: center; gap: 10px; border: 1px dashed rgba(255, 122, 0,.28); border-radius: 13px; color: #d8d9e1; background: rgba(255, 122, 0,.035); cursor: pointer; }
.mobile-secret-score > span:first-child { color: var(--entry-yellow); font-size: 1rem; }
.mobile-secret-score > span:last-child { display: grid; gap: 2px; text-align: left; }
.mobile-secret-score small { color: #777c8d; font: 800 .52rem/1 'Montserrat',sans-serif; letter-spacing: .12em; }
.mobile-secret-score strong { font: 700 .72rem/1.2 'Inter',sans-serif; }
.mobile-secret-score.is-armed { border-style: solid; border-color: var(--entry-yellow); color: #090b12; background: var(--entry-yellow); }
.mobile-secret-score.is-armed > span:first-child, .mobile-secret-score.is-armed small { color: #090b12; }
.mobile-secret-score:disabled { cursor: default; opacity: .3; }

.mobile-catalog-card { padding: 20px; overflow: hidden; }
.mobile-catalog-search { position: relative; margin-top: 17px; display: block; }
.mobile-catalog-search > span { position: absolute; top: 50%; left: 14px; color: #74798b; font-size: 1.25rem; line-height: 1; transform: translateY(-52%); pointer-events: none; }
.mobile-catalog-search input {
    width: 100%;
    min-height: 50px;
    padding: 0 14px 0 43px;
    border: 1px solid var(--entry-border);
    border-radius: 13px;
    outline: none;
    color: #fff;
    background: rgba(14, 10, 20, .72);
    font: 500 .88rem/1 'Inter', sans-serif;
}
.mobile-catalog-search input:focus { border-color: var(--entry-yellow); box-shadow: 0 0 0 3px rgba(255, 122, 0, .09); }
.mobile-catalog-search input::-webkit-search-cancel-button { filter: invert(1); opacity: .55; }
.mobile-catalog-status { padding: 22px 4px 5px; color: #777b8d; font-size: .76rem; text-align: center; }
.mobile-song-results { max-height: 430px; margin: 12px 0 0; padding: 0; overflow-y: auto; list-style: none; overscroll-behavior: contain; }
.mobile-song-results li { min-height: 72px; padding: 11px 0; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; align-items: center; border-top: 1px solid rgba(255, 255, 255, .07); }
.mobile-song-results li > div { min-width: 0; }
.mobile-song-results strong,
.mobile-song-results span,
.mobile-song-results small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mobile-song-results strong { color: #f2f3f7; font-size: .82rem; }
.mobile-song-results span { margin-top: 3px; color: #9296a7; font-size: .72rem; }
.mobile-song-results small { margin-top: 5px; color: #686d7e; font: 700 .56rem/1 'Montserrat', sans-serif; letter-spacing: .07em; }
.mobile-song-results button { min-height: 36px; padding: 0 12px; border: 1px solid var(--color-action-primary-line, rgba(255, 122, 0, .46)); border-radius: 10px; color: var(--entry-text); background: var(--color-action-primary-soft, rgba(255, 122, 0, .14)); font: 700 .68rem/1 'Inter', sans-serif; cursor: pointer; }
.mobile-song-results button:disabled { cursor: default; opacity: .3; }
.mobile-search-requests { margin-top: 16px; padding: 13px; border: 1px solid rgba(255,122,0,.24); border-radius: 14px; background: rgba(255,122,0,.035); }
.mobile-search-requests-heading { display: flex; justify-content: space-between; font-size: .72rem; }
.mobile-search-request { padding: 10px 0; border-top: 1px solid var(--entry-border); }
.mobile-search-request:first-child { margin-top: 8px; }
.mobile-search-request strong,.mobile-search-request small { display: block; overflow-wrap: anywhere; }
.mobile-search-request strong { font-size: .78rem; }.mobile-search-request small { margin-top: 4px; color: #8d91a1; font-size: .66rem; }
.mobile-search-request-actions { display: grid; grid-template-columns: 1fr 1fr auto; gap: 6px; margin-top: 9px; }
.mobile-search-request-actions button { min-height: 38px; border: 1px solid var(--entry-border); border-radius: 9px; color: #dfe1e8; background: rgba(255,255,255,.04); font-size: .63rem; }
.mobile-youtube-form { display: grid; gap: 10px; margin-top: 18px; padding-top: 17px; border-top: 1px solid var(--entry-border); }
.mobile-youtube-form p { margin: 0 0 2px; }
.mobile-youtube-form label { display: grid; gap: 6px; color: #b9bdca; font-size: .7rem; font-weight: 700; }
.mobile-youtube-form input { box-sizing: border-box; width: 100%; min-height: 46px; padding: 0 12px; border: 1px solid var(--entry-border); border-radius: 11px; color: #fff; background: var(--color-bg-deep,#09060D); }
.mobile-youtube-form button { min-height: 46px; border: 0; border-radius: 11px; color: #111318; background: var(--entry-yellow); font-weight: 800; }

.mobile-queue-card { padding: 20px; }
.mobile-section-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 14px; }
.mobile-section-heading h2 { margin: 6px 0 0; font: 800 1.3rem/1.2 'Montserrat', sans-serif; }
.mobile-section-heading > span { color: #85899a; font-size: .7rem; }
.mobile-queue-list { margin: 18px 0 0; padding: 0; list-style: none; }
.mobile-queue-list li { min-height: 62px; padding: 12px 0; display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 12px; align-items: center; border-top: 1px solid rgba(255, 255, 255, .07); }
.mobile-queue-list li.is-current { color: var(--entry-text); }
.mobile-queue-position { color: #777b8d; font: 800 .61rem/1.2 'Montserrat', sans-serif; letter-spacing: .05em; }
.mobile-queue-list li.is-current .mobile-queue-position { color: var(--entry-pink); }
.mobile-queue-list li div { min-width: 0; }
.mobile-queue-list strong,
.mobile-queue-list li div span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mobile-queue-list strong { font-size: .87rem; }
.mobile-queue-list li div span { margin-top: 3px; color: #898d9f; font-size: .72rem; }
.mobile-queue-list .empty-mobile-queue { display: block; min-height: 0; padding: 22px 0 5px; color: #777b8d; font-size: .78rem; text-align: center; }
.mobile-queue-actions { grid-column: 2; display: grid; grid-template-columns: minmax(74px, 1fr) repeat(3, 38px); gap: 6px; margin-top: -2px; }
.mobile-queue-actions button { min-width: 0; min-height: 34px; padding: 0 8px; border: 1px solid var(--entry-border); border-radius: 9px; color: #c9ccda; background: rgba(255, 255, 255, .035); font: 700 .68rem/1 'Inter', sans-serif; cursor: pointer; }
.mobile-queue-actions .queue-next-action { color: var(--entry-text); border-color: var(--color-action-primary-line, rgba(255, 122, 0, .46)); background: var(--color-action-primary-soft, rgba(255, 122, 0, .14)); }
.mobile-queue-actions .queue-remove-action { color: #ffadb6; }
.mobile-queue-actions button:disabled { cursor: default; opacity: .28; }
.mobile-dashboard.is-host-offline .now-playing-card,
.mobile-dashboard.is-host-offline .mobile-catalog-card,
.mobile-dashboard.is-host-offline .mobile-queue-card { border-color: rgba(255, 100, 116, .18); }

body.has-mobile-sheet { overflow: hidden; }
.mobile-song-sheet { position: fixed; inset: 0; z-index: 100; display: flex; align-items: flex-end; justify-content: center; }
.mobile-song-sheet[hidden] { display: none; }
.mobile-song-sheet-backdrop { position: absolute; inset: 0; width: 100%; border: 0; background: rgba(1, 3, 8, .76); backdrop-filter: blur(5px); -webkit-backdrop-filter: blur(5px); cursor: pointer; }
.mobile-song-sheet-panel {
    position: relative;
    z-index: 1;
    width: min(100%, 680px);
    padding: 12px 20px calc(22px + env(safe-area-inset-bottom));
    border: 1px solid rgba(255, 255, 255, .11);
    border-bottom: 0;
    border-radius: 26px 26px 0 0;
    background: var(--entry-panel-strong);
    box-shadow: 0 -24px 70px rgba(0, 0, 0, .46);
}
.mobile-song-sheet-handle { width: 42px; height: 4px; margin: 0 auto 22px; border-radius: 999px; background: var(--color-text-subtle, #756D7D); }
.mobile-song-sheet-panel h2 { margin: 10px 0 5px; font: 800 1.45rem/1.15 'Montserrat', sans-serif; letter-spacing: -.025em; }
.mobile-selected-artist { margin: 0 0 22px; color: #9397a8; font-size: .78rem; }
.mobile-song-sheet-panel form > label { display: block; margin-bottom: 8px; color: #c4c7d3; font-size: .74rem; font-weight: 600; }
.mobile-singer-input { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; }
.mobile-singer-input input { width: 100%; min-width: 0; min-height: 50px; padding: 0 14px; border: 1px solid var(--entry-border); border-radius: 12px; outline: none; color: var(--entry-text); background: var(--color-bg-deep, #09060D); font: 500 .9rem/1 'Inter', sans-serif; }
.mobile-singer-input input:focus { border-color: var(--entry-yellow); box-shadow: 0 0 0 3px rgba(255, 122, 0, .09); }
.mobile-singer-input button { min-width: 52px; border: 1px solid var(--entry-border); border-radius: 12px; color: #d7d9e2; background: rgba(255,255,255,.04); font: 700 .75rem/1 'Inter', sans-serif; cursor: pointer; }
.mobile-song-sheet-actions { margin-top: 18px; display: grid; grid-template-columns: auto 1fr 1.2fr; gap: 8px; }
.mobile-song-sheet-actions button { min-height: 46px; padding: 0 12px; border-radius: 12px; font: 700 .72rem/1 'Inter', sans-serif; cursor: pointer; }
.sheet-secondary-action { border: 1px solid var(--entry-border); color: #aeb1bf; background: transparent; }
.sheet-next-action { border: 1px solid var(--color-navigation-line, rgba(138, 63, 252, .46)); color: var(--entry-text); background: var(--color-navigation-soft, rgba(138, 63, 252, .14)); }
.sheet-primary-action { border: 0; color: #111318; background: var(--entry-yellow); }
.mobile-song-sheet-actions button:disabled { cursor: default; opacity: .35; }

.mobile-role-switch { padding: 18px; display: flex; align-items: center; justify-content: space-between; gap: 16px; border-color: var(--color-social-line, rgba(255, 79, 216, .44)); background: var(--color-social-soft, rgba(255, 79, 216, .14)); }
.mobile-role-switch span,
.mobile-role-switch strong { display: block; }
.mobile-role-switch span { color: #b5a2bb; font-size: .68rem; }
.mobile-role-switch strong { margin-top: 3px; font-size: .78rem; }
.mobile-role-switch a { flex: 0 0 auto; color: #f5c7ff; font-size: .72rem; font-weight: 700; text-decoration: none; }

.mobile-dj-dock {
    position: fixed;
    left: 50%;
    bottom: max(10px, env(safe-area-inset-bottom));
    z-index: 45;
    width: min(calc(100% - 20px), 660px);
    min-height: 68px;
    padding: 8px 9px 8px 14px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 50px 44px 55px;
    gap: 7px;
    align-items: center;
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: 18px;
    background: var(--color-bg-overlay, rgba(14, 10, 20, .94));
    box-shadow: 0 18px 48px rgba(0, 0, 0, .52);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    transform: translateX(-50%);
}
.mobile-dj-dock-song { min-width: 0; }
.mobile-dj-dock-song span, .mobile-dj-dock-song strong { display: block; }
.mobile-dj-dock-song span { margin-bottom: 5px; color: var(--entry-pink); font: 800 .55rem/1 'Montserrat', sans-serif; letter-spacing: .12em; }
.mobile-dj-dock-song strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .73rem; }
.mobile-dj-dock button, .mobile-dj-dock a {
    min-width: 0;
    height: 46px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    border: 1px solid var(--entry-border);
    border-radius: 13px;
    color: #e9eaf0;
    background: rgba(255, 255, 255, .04);
    font: 700 .7rem/1 'Inter', sans-serif;
    text-decoration: none;
}
.mobile-dj-dock .mobile-dj-dock-play { color: #090b12; border-color: transparent; background: var(--entry-yellow); font-size: 1.1rem; }
.mobile-dj-dock a { color: var(--entry-text); border-color: var(--color-social-line, rgba(255, 79, 216, .44)); background: var(--color-social-soft, rgba(255, 79, 216, .14)); font-size: .92rem; }
.mobile-dj-dock a small { font-size: .52rem; }
.mobile-dj-dock button:disabled { opacity: .35; }

.mobile-command-feedback {
    position: fixed;
    left: 50%;
    bottom: calc(90px + env(safe-area-inset-bottom));
    z-index: 50;
    max-width: calc(100% - 32px);
    margin: 0;
    padding: 11px 15px;
    border: 1px solid rgba(114, 230, 173, .28);
    border-radius: 999px;
    color: #c9f8df;
    background: rgba(13, 31, 24, .94);
    box-shadow: 0 12px 36px rgba(0, 0, 0, .34);
    font-size: .72rem;
    opacity: 0;
    pointer-events: none;
    transform: translate(-50%, 18px);
    transition: opacity .2s ease, transform .2s ease;
}
.mobile-command-feedback.is-visible { opacity: 1; transform: translate(-50%, 0); }
.mobile-command-feedback.is-error { color: #ffd0d5; border-color: rgba(255, 100, 116, .3); background: rgba(45, 16, 22, .95); }

@media (max-width: 390px) {
    .mobile-control-shell { width: min(100% - 20px, 680px); }
    .mobile-state-card { padding: 22px 18px; }
    .mobile-party-heading { padding-inline: 4px; }
    .mobile-playback-controls { gap: 7px; }
    .mobile-playback-controls button { min-height: 72px; border-radius: 15px; }
    .mobile-playback-controls .main-control { min-height: 88px; }
    .mobile-role-switch { align-items: flex-start; flex-direction: column; }
    .mobile-queue-list li { grid-template-columns: 54px minmax(0, 1fr); gap: 9px; }
    .mobile-queue-actions { grid-template-columns: minmax(68px, 1fr) repeat(3, 36px); }
}
