* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #121212;
    color: #f5f5f5;
    -webkit-tap-highlight-color: transparent;
}

/* Landing page */
.landing {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 24px;
    text-align: center;
}

.landing h1 {
    font-size: 2.2rem;
    margin-bottom: 4px;
}

.subtitle {
    color: #aaa;
    margin-bottom: 32px;
}

.big-button {
    display: block;
    width: 100%;
    max-width: 320px;
    padding: 28px;
    margin: 12px 0;
    border-radius: 16px;
    text-decoration: none;
    color: #fff;
    font-size: 1.4rem;
    font-weight: 600;
    text-align: center;
}

.big-button.live {
    background: linear-gradient(135deg, #e63946, #d62839);
}

.big-button.video {
    background: linear-gradient(135deg, #1d3557, #457b9d);
}

/* Sticky header */
.sticky-wrap {
    position: sticky;
    top: 0;
    z-index: 10;
    background: #121212;
    border-bottom: 1px solid #2a2a2a;
}

.back-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px 4px;
}

.back-link {
    color: #aaa;
    text-decoration: none;
    font-size: 0.95rem;
}

.type-title {
    font-weight: 600;
    font-size: 1.1rem;
}

.tabs, .sort-toggle {
    display: flex;
    padding: 8px 12px;
    gap: 8px;
}

.tab, .sort-btn {
    flex: 1;
    padding: 10px;
    border: none;
    border-radius: 10px;
    background: #1e1e1e;
    color: #ccc;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
}

.tab.active {
    background: #e63946;
    color: #fff;
}

.sort-toggle {
    padding-top: 0;
}

.sort-btn {
    background: #1a1a1a;
    color: #999;
    font-size: 0.9rem;
}

.sort-btn.active {
    background: #457b9d;
    color: #fff;
}

/* Song list */
.song-list {
    list-style: none;
    padding: 12px;
    padding-bottom: 90px;
}

.song-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    margin-bottom: 8px;
    background: #1e1e1e;
    border-radius: 12px;
    cursor: pointer;
}

.song-item.picked {
    background: #2a2a1a;
    border: 1px solid #e6a93a;
}

.song-main {
    display: flex;
    flex-direction: column;
    gap: 2px;
    overflow: hidden;
}

.song-title {
    font-weight: 600;
    font-size: 1rem;
}

.song-artist {
    font-size: 0.85rem;
    color: #999;
}

.star {
    font-size: 1.3rem;
    margin-left: 12px;
    flex-shrink: 0;
}

/* Floating favorites button */
.fav-fab {
    position: fixed;
    bottom: 16px;
    right: 16px;
    background: #e6a93a;
    color: #1a1a1a;
    border: none;
    border-radius: 24px;
    padding: 12px 18px;
    font-size: 0.95rem;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(0,0,0,0.4);
    cursor: pointer;
    z-index: 20;
}

/* Favorites overlay */
.fav-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.6);
    display: none;
    align-items: flex-end;
    justify-content: center;
    z-index: 30;
}

.fav-overlay.open {
    display: flex;
}

.fav-sheet {
    background: #1a1a1a;
    width: 100%;
    max-width: 480px;
    max-height: 80vh;
    border-radius: 16px 16px 0 0;
    padding: 20px;
    overflow-y: auto;
}

.fav-sheet h2 {
    margin-bottom: 12px;
    font-size: 1.3rem;
}

.empty-msg {
    color: #999;
    text-align: center;
    padding: 20px 0;
}

.close-btn {
    width: 100%;
    padding: 14px;
    margin-top: 8px;
    border: none;
    border-radius: 10px;
    background: #2a2a2a;
    color: #fff;
    font-size: 1rem;
    cursor: pointer;
}

/* Color badge in header */
.color-badge {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 2px solid #444;
    cursor: pointer;
    flex-shrink: 0;
    background: #e63946;
}

/* Song action buttons */
.song-actions {
    display: flex;
    gap: 6px;
    align-items: center;
    flex-shrink: 0;
}

.action-btn {
    background: none;
    border: none;
    font-size: 1.3rem;
    cursor: pointer;
    padding: 4px;
    line-height: 1;
}

.mic-btn {
    opacity: 1;
}

.mic-btn:active {
    opacity: 1;
}

/* Request modal */
.request-song-title {
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: 16px;
    color: #e6a93a;
}

.request-label {
    display: block;
    font-size: 0.85rem;
    color: #aaa;
    margin-bottom: 6px;
}

.request-input {
    width: 100%;
    padding: 12px;
    border: 1px solid #333;
    border-radius: 10px;
    background: #2a2a2a;
    color: #fff;
    font-size: 1rem;
    margin-bottom: 10px;
}

.request-msg {
    font-size: 0.9rem;
    min-height: 20px;
    margin-bottom: 8px;
}

.request-msg.error   { color: #e63946; }
.request-msg.success { color: #2a9d8f; }

.success-toast {
    background: #2a9d8f;
}

.submit-btn {
    width: 100%;
    padding: 14px;
    margin-bottom: 8px;
    border: none;
    border-radius: 10px;
    background: #e63946;
    color: #fff;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
}

.lyrics-content {
    white-space: pre-wrap;
    font-family: inherit;
    font-size: 0.95rem;
    line-height: 1.7;
    color: #f0f0f0;
    margin-bottom: 16px;
}

.sheet-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 12px;
}

.sheet-header h2 {
    margin: 0;
    padding-right: 12px;
}

.sheet-close-x {
    background: none;
    border: none;
    color: #aaa;
    font-size: 1.2rem;
    cursor: pointer;
    flex-shrink: 0;
    padding: 0;
    line-height: 1;
}

.queued-toast {
    position: fixed;
    bottom: 80px;
    left: 50%;
    transform: translateX(-50%);
    background: #333;
    color: #fff;
    font-size: 0.9rem;
    padding: 10px 18px;
    border-radius: 20px;
    white-space: nowrap;
    z-index: 100;
    pointer-events: none;
    animation: fadeInOut 2.5s ease forwards;
}

@keyframes fadeInOut {
    0%   { opacity: 0; transform: translateX(-50%) translateY(8px); }
    15%  { opacity: 1; transform: translateX(-50%) translateY(0); }
    75%  { opacity: 1; }
    100% { opacity: 0; }
}

.star-btn {
    -webkit-text-stroke: 0.5px #fff;
}

.list-label {
    font-size: 0.85rem;
    color: #aaa;
}