/* Authentication screen styles */
.auth-wrap {
    max-width: 360px;
}

.auth-preview {
    width: 100%;
    display: flex;
    justify-content: center;
    margin-bottom: 26px;
}

.auth-preview-board {
    position: relative;
    width: min(72vw, 250px);
    aspect-ratio: 4 / 5;
    border: 1.5px solid #d7cbe1;
    border-radius: 14px;
    background-color: #fffdfd;
    background-image: radial-gradient(#111827 0.7px, transparent 0.7px);
    background-size: 14px 14px;
    box-shadow: 0 18px 38px rgba(17, 24, 39, 0.12);
    overflow: hidden;
}

.auth-preview-dot {
    position: absolute;
    left: 20%;
    top: 14%;
    width: 58px;
    height: 58px;
    border-radius: 50%;
    background: conic-gradient(from 30deg, #f9a8d4, #a78bfa, #38bdf8, #86efac, #f9a8d4);
    box-shadow: 0 10px 18px rgba(124, 58, 237, 0.18);
}

.auth-preview-dot::after {
    content: '';
    position: absolute;
    inset: 19px;
    border-radius: 50%;
    background: #fffdfd;
}

.auth-preview-note {
    position: absolute;
    right: 11%;
    top: 28%;
    width: 100px;
    min-height: 78px;
    padding: 13px 10px;
    border-radius: 6px;
    background: #ffd1e2;
    color: #1f2937;
    font-family: var(--font-serif), serif;
    font-size: 1.05rem;
    line-height: 1.05;
    transform: rotate(4deg);
    box-shadow: 0 10px 18px rgba(244, 114, 182, 0.18);
}

.auth-preview-tape {
    position: absolute;
    left: 10%;
    bottom: 26%;
    width: 78%;
    height: 16px;
    border-radius: 4px;
    background: #e8dec9;
    transform: rotate(-2deg);
}

.auth-preview-disc {
    position: absolute;
    left: 17%;
    bottom: 12%;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: radial-gradient(circle at center, #fffdfd 0 18%, #111827 19% 28%, #c084fc 29% 48%, #38bdf8 49% 72%, #f9a8d4 73%);
}

.auth-preview-star {
    position: absolute;
    right: 16%;
    bottom: 13%;
    color: #8b5cf6;
    font-size: 1.5rem;
    text-shadow: 0 2px 8px rgba(139, 92, 246, 0.24);
}

.auth-title {
    margin-bottom: 10px;
    font-family: var(--font-serif), serif;
    font-size: 2.15rem;
    font-weight: 400;
    line-height: 1.05;
}

.auth-subtitle {
    max-width: 310px;
    margin: 0 auto 24px;
    color: var(--text-secondary);
    font-size: 0.92rem;
    line-height: 1.45;
}

.auth-primary-signin {
    margin-top: 0;
}

.auth-footnote {
    max-width: 300px;
    margin: 4px auto 0;
    color: #8a8a8a;
    font-family: var(--font-ui);
    font-size: 0.74rem;
    line-height: 1.45;
}

.btn-google-signin {
    width: 100%;
    height: 48px;
    border-radius: 12px;
    border: 1.5px solid #dadce0;
    background-color: #ffffff;
    color: #3c4043;
    font-family: 'DM Sans', -apple-system, sans-serif;
    font-size: 0.9rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    cursor: pointer;
    transition: background-color 0.2s, border-color 0.2s, box-shadow 0.2s;
    box-shadow: 0 1px 2px 0 rgba(60,64,67,0.3), 0 1px 3px 1px rgba(60,64,67,0.15);
    margin-bottom: 16px;
    outline: none;
}

.btn-google-signin:hover {
    background-color: #f8f9fa;
    border-color: #d2e3fc;
    box-shadow: 0 1px 3px 0 rgba(60,64,67,0.3), 0 4px 8px 3px rgba(60,64,67,0.15);
}

.btn-google-signin:active {
    background-color: #eeeeee;
    box-shadow: 0 1px 2px 0 rgba(60,64,67,0.3);
}

.google-logo {
    flex-shrink: 0;
}

.btn-apple-signin {
    width: 100%;
    height: 48px;
    border-radius: 12px;
    border: 1.5px solid #000000;
    background-color: #000000;
    color: #ffffff;
    font-family: 'DM Sans', -apple-system, sans-serif;
    font-size: 0.9rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    cursor: pointer;
    transition: background-color 0.2s, box-shadow 0.2s;
    box-shadow: 0 1px 2px 0 rgba(0,0,0,0.3);
    margin-bottom: 16px;
    outline: none;
}

.btn-apple-signin:hover {
    background-color: #1a1a1a;
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.btn-apple-signin:active {
    background-color: #333333;
}

.apple-logo {
    flex-shrink: 0;
    fill: #ffffff;
}

/* Auth Separator */
.auth-separator {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 16px 0 20px;
    color: var(--text-muted);
    font-family: var(--font-ui);
    font-size: 0.8rem;
}

.auth-separator::before,
.auth-separator::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid var(--border-light);
}

.auth-separator:not(:empty)::before {
    margin-right: .75em;
}

.auth-separator:not(:empty)::after {
    margin-left: .75em;
}

/* Spinner inside button */
.btn-spinner {
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #ffffff;
    animation: btn-spin 0.8s linear infinite;
    display: inline-block;
}

.btn-google-signin .btn-spinner {
    border: 2px solid rgba(60, 64, 67, 0.3);
    border-top-color: #3c4043;
}

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

/* Spotify Autocomplete Search & Vinyl Album Artwork */
.song-search-wrap {
    position: relative;
    width: 100%;
}

.song-search-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    z-index: 100;
    margin-top: 4px;
    max-height: 240px;
    overflow-y: auto;
}

.song-search-results.hidden {
    display: none;
}

.song-search-item {
    display: flex;
    align-items: center;
    padding: 10px 12px;
    cursor: pointer;
    border: none;
    border-bottom: 1px solid #f1f5f9;
    background: transparent;
    width: 100%;
    text-align: left;
    transition: background-color 0.2s ease;
}

.song-search-item:last-child {
    border-bottom: none;
}

.song-search-item:hover {
    background-color: #f5f3ff; /* Very soft lavender */
}

.song-search-art {
    width: 38px;
    height: 38px;
    border-radius: 6px;
    object-fit: cover;
    margin-right: 12px;
    flex-shrink: 0;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.song-search-info {
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.song-search-title {
    font-size: 0.85rem;
    font-weight: 600;
    color: #1a1a1a;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 2px;
}

.song-search-artist {
    font-size: 0.72rem;
    color: #64748b;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.song-search-status {
    padding: 14px;
    text-align: center;
    font-size: 0.8rem;
    color: #64748b;
    font-family: var(--font-ui);
}

/* Vinyl Album Art Center Spindle */
.vinyl-record-container {
    position: absolute;
    top: var(--vinyl-top);
    left: var(--vinyl-left);
    width: var(--vinyl-size);
    height: var(--vinyl-size);
    aspect-ratio: 1 / 1;
    border-radius: 50%;
    z-index: 10;
    display: block;
    pointer-events: none;
}

.item-vinyl-player.player-variant-1 {
    --vinyl-left: 0;
    --vinyl-top: 0;
    --vinyl-size: 100%;
}

.item-vinyl-player.player-variant-2 {
    --vinyl-left: 15%;
    --vinyl-top: 21%;
    --vinyl-size: 58%;
}

.item-vinyl-player.player-variant-3 {
    --vinyl-left: 16%;
    --vinyl-top: 22%;
    --vinyl-size: 53%;
}

.item-vinyl-player.player-variant-4 {
    --vinyl-left: 14%;
    --vinyl-top: 21%;
    --vinyl-size: 58%;
}

.vinyl-art-center {
    position: absolute;
    top: 37.25%;
    left: 37.25%;
    width: 25.5%;
    height: 25.5%;
    border-radius: 50%;
    object-fit: cover;
    z-index: 3;
    pointer-events: none;
    background-color: #121212;
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.5);
}

/* Make sure the custom art inside preview card renders cleanly */
.song-preview-art-img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

/* Q&A Item on Board */
.item-qa {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    width: 220px !important;
    max-width: 220px !important;
    box-sizing: border-box !important;
    box-shadow: 0 4px 12px rgba(0,0,0,0.06);
    border-radius: 8px;
    overflow: visible;
}

.item-qa-question {
    color: var(--text-primary);
    width: 100%;
    box-sizing: border-box;
    padding: 6px 14px;
    font-family: var(--font-serif);
    font-size: 1.1rem;
    line-height: 1;
    z-index: 2;
    border-radius: 8px 8px 0 0;
    word-break: break-word;
    border: 1px solid #eaeaea;
    border-bottom: none;
}

/* Question tag colors */
.item-qa-question.default { background: #fafafa; border-color: #eaeaea; }
.item-qa-question.pink { background: var(--sticky-pink); border-color: #ffd3e2; }
.item-qa-question.yellow { background: var(--sticky-yellow); border-color: #fff8a6; }
.item-qa-question.blue { background: var(--sticky-blue); border-color: #c9efff; }
.item-qa-question.green { background: var(--sticky-green); border-color: #d6ffd0; }
.item-qa-question.lavender, .item-qa-question.purple { background: #dfccfb; border-color: #e2ceff; }
.item-qa-question.black { background: #191421; color: white; border-color: #332d3b; }

.item-qa-answer {
    color: var(--text-primary);
    width: 100%;
    box-sizing: border-box;
    padding: 20px 16px;
    margin-top: -1px;
    font-family: var(--font-serif);
    font-size: 1.8rem;
    line-height: 1.25;
    word-break: break-word;
    border-radius: 0 0 8px 8px;
    text-align: left;
    border: 1px solid #eaeaea;
}

/* Answer box colors */
.item-qa-answer.default { background: #fafafa; }
.item-qa-answer.pink { background: var(--sticky-pink); border-color: #ffd3e2; }
.item-qa-answer.yellow { background: var(--sticky-yellow); border-color: #fff8a6; }
.item-qa-answer.blue { background: var(--sticky-blue); border-color: #c9efff; }
.item-qa-answer.green { background: var(--sticky-green); border-color: #d6ffd0; }
.item-qa-answer.lavender, .item-qa-answer.purple { background: #dfccfb; border-color: #e2ceff; }
.item-qa-answer.black { background: #191421; color: white; border-color: #332d3b; }

/* Sub-tabs styling for decor */
#decor-subtabs .sheet-tab.active {
    background: #f6edff !important;
    border-color: #e4c7ff !important;
    color: #7c3aed !important;
    box-shadow: none !important;
}

/* Nested items inside folder contents list */
.folder-contents-list .inner-card.inner-qa {
    border-left: 4px solid #fbbf24;
    padding: 8px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.inner-qa-q {
    font-family: var(--font-serif), serif;
    font-size: 0.75rem;
    font-weight: 400;
    padding: 2px 4px;
    border-radius: 3px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: #1e293b;
    align-self: flex-start;
    max-width: 100%;
    box-sizing: border-box;
}
.inner-qa-q.pink { background: var(--sticky-pink); }
.inner-qa-q.yellow { background: var(--sticky-yellow); }
.inner-qa-q.blue { background: var(--sticky-blue); }
.inner-qa-q.green { background: var(--sticky-green); }
.inner-qa-q.lavender, .inner-qa-q.purple { background: #dfccfb; }

.inner-qa-a {
    font-family: var(--font-serif), serif;
    font-size: 0.85rem;
    line-height: 1.2;
    padding: 4px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 4px;
    color: #334155;
    word-break: break-word;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.inner-qa-a.default { background: #ffffff; }
.inner-qa-a.pink { background: var(--sticky-pink); border-color: #ffb8d2; }
.inner-qa-a.yellow { background: var(--sticky-yellow); border-color: #fff280; }
.inner-qa-a.blue { background: var(--sticky-blue); border-color: #a3e0ff; }
.inner-qa-a.green { background: var(--sticky-green); border-color: #adffaa; }
.inner-qa-a.lavender, .inner-qa-a.purple { background: #dfccfb; border-color: #ccb0ff; }

.folder-contents-list .inner-card.inner-cd {
    border-left: 4px solid #10b981;
    align-items: center;
    justify-content: center;
    padding: 8px;
}
.inner-cd-disk {
    width: 58px;
    height: 58px;
    border-radius: 50%;
    background: radial-gradient(circle, #334155 30%, #0f172a 70%);
    border: 3px solid #1e293b;
    position: relative;
    box-shadow: 0 3px 6px rgba(0,0,0,0.15);
    margin-bottom: 4px;
    flex-shrink: 0;
    animation: rotateVinyl 6s linear infinite;
    transform-origin: center center;
}
.inner-cd-disk::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 12px;
    height: 12px;
    background: #ffffff;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    border: 2px solid #0f172a;
}
.inner-cd-title {
    font-family: var(--font-hand), monospace;
    font-size: 0.68rem;
    color: #1e293b;
    font-weight: 600;
    text-align: center;
    width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Popout Slideshow layouts */
.popout-qa-content {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    padding: 24px;
    box-sizing: border-box;
    gap: 10px;
    background: #fdfbf7;
    overflow-y: auto;
}
.popout-qa-q {
    font-family: var(--font-serif), serif;
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.2;
    color: #374151;
    padding: 8px 12px;
    border-radius: 6px;
    align-self: flex-start;
    max-width: 90%;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    word-break: break-word;
}
.popout-qa-q.pink { background: var(--sticky-pink); }
.popout-qa-q.yellow { background: var(--sticky-yellow); }
.popout-qa-q.blue { background: var(--sticky-blue); }
.popout-qa-q.green { background: var(--sticky-green); }
.popout-qa-q.lavender { background: #dfccfb; }

.popout-qa-a {
    font-family: var(--font-serif), serif;
    font-size: 1.25rem;
    line-height: 1.3;
    color: #111827;
    padding: 12px 16px;
    border-radius: 8px;
    border: 1px dashed #cbd5e1;
    align-self: flex-end;
    max-width: 90%;
    width: auto;
    box-shadow: 0 1px 4px rgba(0,0,0,0.05);
    word-break: break-word;
}
.popout-qa-a.default { background: #ffffff; }
.popout-qa-a.pink { background: var(--sticky-pink); border-color: #ffb8d2; }
.popout-qa-a.yellow { background: var(--sticky-yellow); border-color: #fff280; }
.popout-qa-a.blue { background: var(--sticky-blue); border-color: #a3e0ff; }
.popout-qa-a.green { background: var(--sticky-green); border-color: #adffaa; }
.popout-qa-a.lavender { background: #dfccfb; border-color: #ccb0ff; }

.popout-cd-content {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
    padding: 20px;
    box-sizing: border-box;
    background: #f8fafc;
}
.popout-cd-disk-wrapper {
    flex-shrink: 0;
}
.popout-cd-disk {
    width: 110px;
    height: 110px;
    border-radius: 50%;
    background: radial-gradient(circle, #334155 30%, #0f172a 70%);
    border: 5px solid #1e293b;
    position: relative;
    box-shadow: 0 8px 16px rgba(0,0,0,0.18);
    transform-origin: center center;
}
.popout-cd-disk::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 24px;
    height: 24px;
    background: #ffffff;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    border: 3px solid #0f172a;
    z-index: 2;
}
.popout-cd-art {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    object-fit: cover;
    z-index: 1;
}
.popout-cd-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
    flex: 1;
    align-items: flex-start;
}
.popout-cd-title {
    font-family: var(--font-hand), monospace;
    font-size: 1.1rem;
    font-weight: 700;
    color: #0f172a;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    width: 100%;
    text-align: left;
}
.popout-cd-artist {
    font-family: var(--font-hand), monospace;
    font-size: 0.85rem;
    color: #475569;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    width: 100%;
    text-align: left;
}
.popout-cd-link {
    margin-top: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 6px 14px;
    background: #10b981;
    color: #ffffff;
    border-radius: 20px;
    font-family: var(--font-hand), monospace;
    font-size: 0.75rem;
    font-weight: 600;
    text-decoration: none;
    box-shadow: 0 2px 4px rgba(16, 185, 129, 0.2);
    transition: background-color 0.2s, transform 0.2s;
}
.popout-cd-link:hover {
    transform: translateY(-1px);
    opacity: 0.9;
}

/* Optimize drag performance for layer cards containing image previews */
.layer-palette-list.dragging-active .layer-item-card {
    transition: none !important;
}

/* Floating folder popout slideshow navigation buttons */
.popout-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    color: #475569;
    font-size: 1.8rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: all 0.2s ease;
    z-index: 505;
    padding: 0;
    line-height: 1;
}

.popout-nav-btn:hover {
    background: #f8fafc;
    color: #0f172a;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
    transform: translateY(-50%) scale(1.08);
}

.popout-nav-btn:active {
    transform: translateY(-50%) scale(0.95);
}

.popout-nav-btn.prev {
    left: -18px;
    padding-right: 2px; /* optical alignment for lsaquo */
}

.popout-nav-btn.next {
    right: -18px;
    padding-left: 2px; /* optical alignment for rsaquo */
}

.popout-nav-btn.hidden {
    display: none !important;
}

/* Style overrides for music (CD) items inside the folder preview slideshow */
.popout-cd-content .item-cd-wrap {
    width: 100%;
    max-width: 292px;
    padding: 0 20px;
    box-sizing: border-box;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.popout-cd-content .item-vinyl-player {
    width: min(38vw, 164px);
    height: min(38vw, 164px);
    margin: 0 auto;
    overflow: hidden;
    display: block;
}

.popout-cd-content .vinyl-record-container {
    overflow: hidden;
    border-radius: 50%;
}

.popout-cd-content .vinyl-art-center {
    top: 50%;
    left: 50%;
    width: 27%;
    height: 27%;
    transform: translate(-50%, -50%);
}

.popout-cd-content .item-cd-wrap .item-cd-song-title {
    font-size: clamp(0.95rem, 3.6vw, 1.25rem) !important;
    font-weight: 700 !important;
    color: #1e293b !important;
    max-width: 100% !important;
    text-align: center !important;
}
.popout-cd-content .item-cd-wrap .item-cd-song-artist {
    font-size: 0.72rem !important;
    color: #64748b !important;
    margin-top: 1px !important;
}
.popout-cd-content .item-cd-wrap a {
    font-size: 0.7rem !important;
    font-family: var(--font-hand), monospace !important;
    padding: 5px 12px !important;
    border-radius: 14px !important;
    display: flex !important;
    align-items: center;
    justify-content: center;
    gap: 4px;
    margin-top: 6px !important;
    width: 100% !important;
    max-width: 220px !important;
    box-sizing: border-box;
    text-decoration: none !important;
    font-weight: 700 !important;
    transition: all 0.2s ease !important;
}
.popout-cd-content .item-cd-wrap a:hover {
    transform: translateY(-1px) scale(1.05) !important;
    opacity: 0.95 !important;
}
.popout-cd-content .item-cd-wrap a svg {
    width: 10px !important;
    height: 10px !important;
    flex-shrink: 0;
}

/* Specific branding buttons inside popout */
.popout-cd-content .item-cd-wrap a[href*="spotify.com"] {
    background-color: #1ed760 !important;
    color: #ffffff !important;
    box-shadow: 0 3px 8px rgba(30, 215, 96, 0.25) !important;
}
.popout-cd-content .item-cd-wrap a[href*="spotify.com"] svg {
    fill: #ffffff !important;
}

.popout-cd-content .item-cd-wrap a[href*="youtube.com"],
.popout-cd-content .item-cd-wrap a[href*="youtu.be"] {
    background-color: #ef4444 !important;
    color: #ffffff !important;
    box-shadow: 0 3px 8px rgba(239, 68, 68, 0.25) !important;
}
.popout-cd-content .item-cd-wrap a[href*="youtube.com"] svg,
.popout-cd-content .item-cd-wrap a[href*="youtu.be"] svg {
    fill: #ffffff !important;
}

.popout-cd-content .item-cd-wrap a:not([href*="spotify.com"]):not([href*="youtube.com"]):not([href*="youtu.be"]) {
    background-color: #7c3aed !important;
    color: #ffffff !important;
    box-shadow: 0 3px 8px rgba(124, 58, 237, 0.25) !important;
}

/* Anonymous/public submission controls */
.sender-identity-toggle {
    display: flex;
    align-items: center;
    gap: 9px;
    width: 100%;
    margin: 0 0 14px;
    padding: 10px 12px;
    border: 1px solid #eeeeee;
    border-radius: 12px;
    background: #fafafa;
    color: var(--text-primary);
    font-family: var(--font-ui);
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
}

.sender-identity-toggle input,
.settings-radio-row input {
    accent-color: #7c3aed;
}

.sender-identity-toggle.enforced-public {
    background: #fdfcff;
    border-color: #eaddf3;
    opacity: 0.85;
    cursor: not-allowed;
}

.settings-section {
    width: 100%;
    margin-bottom: 18px;
    padding: 16px;
    border: 1px solid #eeeeee;
    border-radius: 16px;
    background: #fafafa;
    font-family: var(--font-ui);
    text-align: left;
}

.settings-section-title {
    margin: 0 0 5px;
    color: var(--text-primary);
    font-size: 0.95rem;
    font-weight: 700;
}

.settings-section-copy {
    margin: 0 0 12px;
    color: var(--text-secondary);
    font-size: 0.78rem;
    line-height: 1.4;
}

.settings-radio-row {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 10px 0;
    color: var(--text-primary);
    font-size: 0.86rem;
    font-weight: 600;
    cursor: pointer;
}

.music-player-selector {
    width: 100%;
    margin: 0 0 14px;
    text-align: left;
}

#pane-music {
    gap: 10px;
}

.music-link-label {
    margin: 0 0 -4px;
    color: #666666;
    font-size: 0.75rem;
    font-weight: 600;
}

#song-url-input {
    margin: 0 0 2px;
}

.music-receiver-preview {
    width: 100%;
    padding: 0;
    border: none;
    background: transparent;
}

.music-receiver-preview-label {
    margin: 0 0 8px;
    color: var(--text-muted);
    font-family: var(--font-ui);
    font-size: 0.72rem;
    font-weight: 600;
}

.music-receiver-preview-content {
    min-height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4px 0;
}

.music-receiver-preview-content .item-cd-wrap,
.music-receiver-preview-content .item-music-note {
    position: relative !important;
    left: auto !important;
    top: auto !important;
    transform: none !important;
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 14px !important;
    width: 100% !important;
    min-width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 12px 16px !important;
    min-height: 64px !important;
    border-radius: 14px !important;
    box-sizing: border-box !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08) !important;
}

.music-receiver-preview-content .item-vinyl-player {
    width: 56px !important;
    height: 56px !important;
    flex: 0 0 56px !important;
    min-width: 56px !important;
    max-width: 56px !important;
    aspect-ratio: 1 / 1 !important;
}

.music-receiver-preview-content .music-note-play {
    width: 56px !important;
    height: 56px !important;
    flex: 0 0 56px !important;
    min-width: 56px !important;
    max-width: 56px !important;
    border-radius: 12px !important;
    aspect-ratio: 1 / 1 !important;
}

.music-receiver-preview-content .music-note-play span {
    font-size: 1.6rem !important;
}

.music-receiver-preview-content .music-note-body {
    min-width: 0 !important;
    flex: 1 !important;
    overflow: hidden !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    gap: 4px !important;
    text-align: left !important;
}

.music-receiver-preview-content .music-note-title {
    font-size: 0.86rem !important;
    font-weight: 700 !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
}
.music-player-selector-label {
    margin: 0 0 8px;
    color: #666666;
    font-family: var(--font-ui);
    font-size: 0.75rem;
    font-weight: 600;
}

.premium-choice-note {
    width: 100%;
    margin: 0 0 10px;
    padding: 9px 12px;
    border: 1.5px solid #dac8e8;
    border-radius: 12px;
    background: #f6eefc;
    color: #8b5cf6;
    font-family: var(--font-ui);
    font-size: 0.82rem;
    font-weight: 800;
    line-height: 1.3;
    text-align: center;
    box-sizing: border-box;
    animation: premiumNoteIn 180ms ease-out both;
}

.premium-choice-note-spaced {
    margin: 0 0 10px;
}

#pane-decor #decor-subtabs {
    margin-bottom: 8px !important;
}

@keyframes premiumNoteIn {
    from {
        opacity: 0;
        transform: translateY(-4px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.music-player-options {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    justify-content: flex-start;
}

.music-player-option {
    position: relative;
    width: 48px;
    height: 48px;
    flex: 0 0 48px;
    aspect-ratio: auto;
    padding: 4px;
    border: 2px solid #eeeeee;
    border-radius: 10px;
    background: #ffffff;
    cursor: pointer;
    overflow: hidden;
    transition: all 0.18s ease;
}

.music-player-option:hover {
    transform: translateY(-1px);
    border-color: #ddd;
}

.music-player-option.active {
    border-color: #7c3aed;
    box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.12);
}

.music-player-option img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain;
    pointer-events: none;
}

.music-player-thumb {
    position: relative;
    width: 100%;
    height: 100%;
    display: block;
    --vinyl-left: 18%;
    --vinyl-top: 19%;
    --vinyl-size: 54%;
}

.music-player-thumb-img {
    position: relative;
    z-index: 1;
}

.music-player-thumb.player-variant-1 {
    --vinyl-left: 0;
    --vinyl-top: 0;
    --vinyl-size: 100%;
}

.music-player-thumb.player-variant-2 {
    --vinyl-left: 15%;
    --vinyl-top: 21%;
    --vinyl-size: 58%;
}

.music-player-thumb.player-variant-3 {
    --vinyl-left: 16%;
    --vinyl-top: 22%;
    --vinyl-size: 53%;
}

.music-player-thumb.player-variant-4 {
    --vinyl-left: 14%;
    --vinyl-top: 21%;
    --vinyl-size: 58%;
}

.premium-star-badge {
    position: absolute;
    right: 2px;
    bottom: 2px;
    z-index: 6;
    width: 15px;
    height: 15px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(192, 132, 252, 0.38);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.88);
    color: #a855f7;
    -webkit-text-stroke: 0.5px #7c3aed;
    font-size: 0.8rem;
    line-height: 1;
    text-shadow:
        0 0 2px #ffffff,
        0 1px 2px rgba(109, 40, 217, 0.18);
    box-shadow: 0 1px 3px rgba(124, 58, 237, 0.18);
    pointer-events: none;
}

.basic-music-option {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f3e8ff, #fce7f3);
    border-color: #e9d5ff;
}

.item-cd-reply-bubble,
.item-cd-sender-note {
    display: block;
    width: max-content;
    max-width: 100%;
    margin-top: 6px;
    padding: 5px 8px 6px;
    border: 1px solid #e7e1ee;
    border-radius: 9px 9px 9px 3px;
    background: #ffffff;
    color: #4b4454;
    font-family: var(--font-sans);
    font-size: 0.55rem;
    font-weight: 600;
    line-height: 1.22;
    text-align: left;
    white-space: normal;
    overflow: visible;
    overflow-wrap: anywhere;
}

.item-cd-sender-note {
    margin-left: 0;
    margin-right: auto;
    border-color: #e5e5e5;
    background: #f9f9f9;
    color: #333333;
    border-radius: 10px 10px 10px 2px;
}

.item-cd-reply-bubble {
    margin-left: auto;
    margin-right: 0;
    border-color: #dac8e8;
    background: #f8f5fb;
    color: #5b21b6;
    border-radius: 10px 10px 2px 10px;
}

.item-music-note {
    width: max-content;
    min-width: 220px;
    max-width: 280px;
    min-height: 48px;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px;
    border: 1px solid #ececec;
    border-radius: 12px;
    background: #ffffff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    font-family: var(--font-ui);
}

.music-note-body .item-cd-sender-note {
    width: fit-content !important;
    max-width: 90% !important;
    margin: 8px 0 0 0 !important;
    padding: 6px 10px !important;
    border: 1px solid #e5e5e5 !important;
    border-radius: 10px 10px 10px 2px !important;
    background: #f9f9f9 !important;
    color: #333333 !important;
    font-size: 0.72rem !important;
    font-weight: 500 !important;
    align-self: flex-start !important;
}

.music-note-body .item-cd-reply-bubble {
    width: fit-content !important;
    max-width: 90% !important;
    margin: 6px 0 0 0 !important;
    padding: 6px 10px !important;
    border: 1.5px solid #dac8e8 !important;
    border-radius: 10px 10px 2px 10px !important;
    background: #f8f5fb !important;
    color: #5b21b6 !important;
    font-size: 0.72rem !important;
    font-weight: 500 !important;
    align-self: flex-end !important;
}

.music-note-play {
    width: 24px;
    height: 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border-radius: 50%;
    color: #9ca3af;
    text-decoration: none;
    font-size: 0.82rem;
    line-height: 1;
}

.music-note-body {
    min-width: 0;
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    gap: 4px;
}


.music-note-waveform {
    height: 24px;
    display: flex;
    align-items: center;
    gap: 2px;
}

.music-note-waveform span {
    width: 2px;
    border-radius: 999px;
    background: #9ca3af;
}

.music-note-waveform span.played {
    background: #38bdf8;
}

.music-note-title {
    max-width: 100%;
    overflow: hidden;
    color: #1f2937;
    text-decoration: none;
    text-align: left;
    font-size: 0.82rem;
    font-weight: 800;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    white-space: normal;
}

.music-note-spotify-link {
    width: fit-content !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 4px !important;
    padding: 3px 8px !important;
    border-radius: 999px !important;
    background: #1ed760 !important;
    color: #ffffff !important;
    text-decoration: none !important;
    font-size: 0.62rem !important;
    font-weight: 800 !important;
    line-height: 1 !important;
    box-shadow: 0 2px 5px rgba(30, 215, 96, 0.22) !important;
    white-space: nowrap !important;
    word-break: normal !important;
    flex-shrink: 0 !important;
}

.music-note-spotify-link span {
    white-space: nowrap !important;
    word-break: normal !important;
    display: inline-block !important;
}

.music-note-spotify-link svg {
    flex-shrink: 0 !important;
}

.detail-qa-card,
#modal-inbox-detail .item-qa,
.inbox-detail-content .item-qa {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
}

.detail-basic-music,
.tl-basic-music-wrap .item-music-note {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 auto;
    min-height: 64px;
    padding: 12px 16px !important;
    box-sizing: border-box;
    gap: 14px !important;
}

.detail-basic-music .item-vinyl-player,
.tl-basic-music-wrap .item-vinyl-player {
    width: 96px !important;
    height: 96px !important;
}

.detail-basic-music .music-note-play,
.tl-basic-music-wrap .music-note-play {
    width: 54px !important;
    height: 54px !important;
    border-radius: 14px !important;
}

.detail-basic-music .music-note-play span,
.tl-basic-music-wrap .music-note-play span {
    font-size: 1.6rem !important;
}

.detail-basic-music .music-note-title,
.tl-basic-music-wrap .music-note-title {
    font-size: 0.95rem !important;
    font-weight: 700 !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 3 !important;
    -webkit-box-orient: vertical !important;
    white-space: normal !important;
}

.detail-basic-music .item-cd-sender-note,
.tl-basic-music-wrap .item-cd-sender-note {
    font-size: 0.8rem !important;
    padding: 5px 12px !important;
    max-width: 90% !important;
    align-self: flex-start !important;
}

.detail-basic-music .item-cd-reply-bubble,
.tl-basic-music-wrap .item-cd-reply-bubble {
    font-size: 0.8rem !important;
    padding: 5px 12px !important;
    max-width: 90% !important;
    align-self: flex-end !important;
}

.free-music-preview {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    border: 1px solid #ececec;
    border-radius: 14px;
    background: #ffffff;
}

.free-music-preview .music-note-title {
    margin: 0;
    font-size: 0.78rem;
}

.tl-basic-music-wrap {
    min-height: auto;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.collection-name-field {
    width: 100%;
    margin-bottom: 16px;
    text-align: left;
}

.collection-name-field label {
    display: block;
    margin-bottom: 6px;
    color: #666666;
    font-family: var(--font-ui);
    font-size: 0.75rem;
    font-weight: 600;
}

#folder-name-input::placeholder {
    color: var(--text-muted);
    opacity: 1;
}

.inbox-cd-art-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: inherit;
    text-decoration: none;
}

a.inbox-cd-art-link {
    cursor: pointer;
}

@media (max-width: 520px) {
    .qa-color-toggle {
        padding: 6px 10px !important;
        font-size: 0.7rem !important;
    }

    .qa-color-popover {
        right: 8px !important;
        top: 42px !important;
        padding: 9px 10px !important;
        gap: 6px !important;
    }

    .qa-color-popover > div {
        grid-template-columns: 58px 1fr !important;
        gap: 7px !important;
    }

    .qa-color-popover button {
        width: 21px !important;
        height: 21px !important;
        flex-basis: 21px !important;
    }
}

/* ─── Pagination / Load More Trigger ──────────────── */
.load-more-trigger {
    display: flex;
    justify-content: center;
    padding: 24px 0 36px;
    width: 100%;
}
.btn-load-more {
    background: #f3eff8;
    border: 1px solid #d6cde2;
    color: #4a3b5c;
    padding: 10px 24px;
    border-radius: 20px;
    font-family: var(--font-ui, sans-serif);
    font-size: 0.92rem;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
}
.btn-load-more:hover {
    background: #e6d8f6;
    border-color: #bfa8db;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

/* Keep global hidden state last so component display rules cannot override it. */
.hidden {
    display: none !important;
}

/* Custom Toggle Switch for Privacy Settings */
.custom-toggle {
    position: relative;
    display: inline-block;
    width: 40px;
    height: 24px;
}
.custom-toggle input {
    opacity: 0;
    width: 0;
    height: 0;
}
.custom-toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0; left: 0; right: 0; bottom: 0;
    background-color: #e5e7eb;
    transition: .3s;
    border-radius: 24px;
}
.custom-toggle-slider:before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 2px;
    bottom: 2px;
    background-color: white;
    transition: .3s;
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}
.custom-toggle input:checked + .custom-toggle-slider {
    background-color: #34c759;
}
.custom-toggle input:checked + .custom-toggle-slider:before {
    transform: translateX(16px);
}
