/* MY RAD SET - Core UI & Layout Styles */
/* ====================================== */

body {
    margin: 0;
    padding: 0;
    background: #0a0a0a;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #ffffff;
    overflow-x: hidden;
        overscroll-behavior: none;
}

body,
html {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

/* ============ SETS VIEW ============ */

#setsView {
    padding: 20px;
    padding: 90px 20px 20px 20px;
}

.sets-list {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 15px 80px 15px;
    column-count: 2;
    column-gap: 20px;
 
}

.set-card {
    background: #1a1a1a;
    padding: 15px 25px;
    border-radius: 8px;
    border: 2px solid #333;
    cursor: pointer;
    transition: border-color 0.2s ease;
    gap: 20px;
    align-items: flex-start;
    position: relative;
        margin-bottom: 10px;
            break-inside: avoid;
    page-break-inside: avoid;
}

.set-card:hover {
    border-color: #00d9ff;
}

.set-number {
    position: absolute;
    top: 15px;
    left: 15px;
    background: #f37c28;
    color: #000;
    font-weight: 700;
    font-size: 14px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    flex-shrink: 0;
}

.set-drag-handle {
    position: absolute;
    top: 52px;
    left: 15px;
    font-size: 30px;
    color: #666;
    cursor: grab;
    user-select: none;
    padding: 5px;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 11;
}

.set-drag-handle:active {
    cursor: grabbing;
}

.set-drag-handle:hover {
    color: #00d9ff;
}

.set-content {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding-left: 45px;
}

.set-header {
    margin-bottom: 5px;
}

.set-title {
    font-size: 20px;
    font-weight: 600;
    color: #f37c28;
    margin: 0;
    text-transform: uppercase;
}

.set-info {
    font-size: 14px;
    color: #888;
}

.set-actions {
    display: flex;
    gap: 8px;
    flex-wrap: nowrap;
}

.set-card-placeholder {
    pointer-events: none;
    opacity: 0.3;
    border-style: dashed;
}

/* Add to Set Button */
.add-to-set-btn {
    position: absolute;
    top: -32px;
    right: 0;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #f37c28;
    border: 2px solid #f37c28;
    color: #fff;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    z-index: 5;
}

.add-to-set-btn:hover {
    background: #ff8c3a;
    transform: scale(1.1);
}

/* Song Selection Mode */
.song-item.selectable {
    cursor: pointer;
    position: relative;
}

.song-item.selectable::before {
    content: '';
    position: absolute;
    inset: 0;
    border: 3px dashed #00d9ff;
    border-radius: 8px;
    opacity: 0.5;
    pointer-events: none;
    animation: pulse-border 2s ease-in-out infinite;
}

.song-item.selected {
    border-color: #00d9ff;
    background: rgba(0, 217, 255, 0.1);
}

.song-item.selected::after {
    content: '✓';
    position: absolute;
    top: 10px;
    right: 20px;
    width: 38px;
    height: 38px;
    background: #00d9ff;
    color: #000;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: bold;
    z-index: 10;
}

@keyframes pulse-border {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 0.7; }
}

/* Create Set Modal */
.create-set-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.9);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.create-set-modal-content {
    background: #1a1a1a;
    border: 2px solid #00d9ff;
    border-radius: 12px;
    padding: 30px;
    max-width: 500px;
    width: 90%;
}

.create-set-modal h2 {
    color: #00d9ff;
    margin-bottom: 20px;
    text-align: center;
}

.create-set-modal input {
    width: 100%;
    background: #2a2a2a;
    color: #ffffff;
    border: 2px solid #333;
    padding: 12px;
    border-radius: 6px;
    font-size: 16px;
    margin-bottom: 20px;
    box-sizing: border-box;
}

.create-set-modal input:focus {
    outline: none;
    border-color: #00d9ff;
}

.create-set-modal-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

.create-set-instructions {
    text-align: center;
    color: #888;
    font-size: 14px;
    margin-bottom: 20px;
    padding: 15px;
    background: rgba(0, 217, 255, 0.1);
    border-radius: 6px;
}

/* Set Edit Song List */
#setEditSongList {
    max-width: 1400px;
    margin: 0 auto;
    display: block;
    column-count: 2;
    column-gap: 20px;
    padding: 0 15px 80px 15px;
}

#setEditSongList .song-item {
    break-inside: avoid;
    margin-bottom: 10px;
}

.empty-state {
    grid-column: 1 / -1;
}

/* Set Edit View */
#setEditView {
    padding: 90px 20px 20px 20px;
}

#setEditView > div {
    max-width: 1400px;
    margin: 0 auto;
}

#setEditView > div > div:first-child {
    padding: 0;
}

/* Set Edit View Header Layout - Responsive button arrangement */
#setEditView > div > div:first-child {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 20px;
}

/* Title section with back button and share */
#setEditView > div > div:first-child > div:first-child {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

#setEditView > div > div:first-child > div:first-child > div {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

/* All action buttons in one row */
#setEditView > div > div:first-child > div:last-child {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: flex-start;
}

/* Desktop: side-by-side layout */
@media (min-width: 769px) {
    #setEditView > div > div:first-child {
        flex-direction: row;
        justify-content: space-between;
        align-items: flex-start;
    }
    
    /* Buttons stay in single row on desktop */
    #setEditView > div > div:first-child > div:last-child {
        flex-wrap: nowrap;
    }
}


/* ============ TICKER SECTION ============ */

.ticker-wrap {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    overflow: hidden;
    background: rgba(0, 0, 0, 0.8);
    padding: 10px 0;
    z-index: 10001;
    border-bottom: 1px solid #333;
}

.ticker {
    display: flex;
    white-space: nowrap;
}

.ticker-item {
    color: #00d9ff;
    font-size: 14px;
    font-weight: 600;
    padding: 0 40px;
    letter-spacing: 1px;
    text-transform: uppercase;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* ============ AUTH SECTION ============ */

.auth-container {
    opacity: 0;
    transition: opacity 0.3s ease;
}

.auth-container.visible {
    opacity: 1;
}

.auth-container {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    backdrop-filter: blur(10px);
}

@media (min-width: 769px) {
    #authContainer img {
        transform: translateX(-25px);
    }
}
        
.auth-container.hidden {
    display: none;
}

.auth-box {
    background: #1a1a1a;
    padding: 40px;
    border-radius: 12px;
    border: 2px solid #333;
    max-width: 400px;
    width: 90%;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
}

/* ============ USER MENU & DROPDOWNS ============ */

.user-menu {
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
}

.user-button {
    background: none;
    color: #ffffff;
    border: none;
    padding: 4px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: opacity 0.3s ease;
    display: flex;
    align-items: center;
    gap: 12px;
}

.user-button:hover {
    opacity: 0.8;
}

.user-icon {
    width: 38px;  /* was ~35px, now 40% bigger */
    height: 38px;
    border-radius: 50%;
    background: linear-gradient(135deg, #00d9ff, #f37c28);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 20px;
    color: #000;
    flex-shrink: 0;
}
.user-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 10px;
    background: #1a1a1a;
    border: 2px solid #333;
    border-radius: 6px;
    min-width: 200px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.5);
    display: none;
    z-index: 20001;
}

.user-dropdown.show {
    display: block;
}

.user-dropdown-item {
    padding: 12px 16px;
    color: #ffffff;
    cursor: pointer;
    transition: background 0.2s ease;
    display: flex;
    align-items: center;
    gap: 10px;
    border-bottom: 1px solid #333;
}

.user-dropdown-item:last-child {
    border-bottom: none;
}

.user-dropdown-item:hover {
    background: #2a2a2a;
}

.user-dropdown-item.logout {
    color: #ff6666;
}

/* ============ NAVIGATION ============ */

.nav > div:first-child {
    display: flex !important;
    align-items: center !important;
    gap: 15px !important;
    min-width: 120px !important;
}

.nav > div:first-child img {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    height: 35px !important;
    width: auto !important;
    min-height: 35px !important;
}

.nav {
    background: #1a1a1a;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid #333;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}

.nav h1 {
    font-size: 20px;
    font-weight: 600;
    letter-spacing: 1px;
}

.nav-buttons {
    display: flex;
    gap: 8px;
    flex-wrap: nowrap;
    align-items: center;
    overflow: hidden;
}

.nav-buttons .btn {
    flex-shrink: 1;
    min-width: 0;
    white-space: nowrap;
    padding: 8px 12px;
    font-size: 13px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.nav-buttons .btn-add {
    flex-shrink: 1;
    min-width: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.create-set-modal-content {
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 0 20px rgba(0,217,255,0.4);
}


.song-placeholder {
    height: 60px;
    background: rgba(255,255,255,0.1);
    border: 2px dashed rgba(255,255,255,0.2);
    border-radius: 10px;
    margin-bottom: 10px;
}



/* ============ BUTTONS ============ */

/* Keep buttons neat and compact */
.song-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: nowrap;
}

.song-actions .btn {
  font-size: 13px;
  padding: 6px 11px;
  white-space: nowrap;
}

/* Responsive scaling — shrink slightly on smaller viewports */
@media (max-width: 768px) {
  .song-actions {
    gap: 3px;
    flex-wrap: nowrap;
    overflow-x: auto; /* Allow horizontal scroll if needed */
  }

  .song-actions .btn {
    font-size: 11px;
    min-width: auto;
    white-space: nowrap;
  }
}




/* 🌈 PULSING COLOR SWATCH BUTTON */
.pulse-swatch {
  position: relative;
  overflow: hidden;
  border: 2px solid #555;
  background: #111;
  width: 36px;
  height: 36px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 0 8px rgba(255, 255, 255, 0.1);
}

.pulse-swatch .pulse-gradient {
  position: absolute;
  inset: 0;
  border-radius: 6px;
  background: linear-gradient(
    90deg,
    #ff4d4d,
    #ffa94d,
    #fff94d,
    #4dff88,
    #4dc3ff,
    #b14dff,
    #ff4dd2
  );
  background-size: 400% 400%;
  animation: pulseGradient 3s ease infinite;
  filter: brightness(1.3) drop-shadow(0 0 6px rgba(255,255,255,0.3));
}

@keyframes pulseGradient {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* 🔥 Animated text color (pulsing rainbow but still selectable) */
.rainbow-animated {
  background: linear-gradient(270deg, #ff0000, #ff7f00, #ffff00, #00ff00, #00ffff, #0000ff, #8b00ff, #ff0000);
  background-size: 800% 800%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: rainbowFlow 3s linear infinite;
  filter: brightness(1.3);
}

@keyframes rainbowText {
  0%   { color: #ff5555; }   /* red */
  16%  { color: #ffae00; }   /* orange */
  33%  { color: #ffee00; }   /* yellow */
  50%  { color: #00ff6e; }   /* green */
  66%  { color: #00cfff; }   /* blue */
  83%  { color: #b366ff; }   /* purple */
  100% { color: #ff5555; }   /* back to red */
}


@keyframes rainbowFlow {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* scrollable lyrics container only */
.lyrics-editor-container {
  position: relative;
  max-height: 70vh; /* adjust to fit screen layout */
  overflow-y: auto;
  border: 2px solid #333;
  border-radius: 10px;
  background: rgba(10, 10, 10, 0.9);
}

#formatToolbar {
  position: fixed;
  top: 70px;
  left: 0;
  right: 0;
  z-index: 99;
  background: rgba(15, 15, 15, 0.98);
  padding: 10px 12px;
  border-bottom: 1px solid #333;
  backdrop-filter: blur(6px);
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  opacity: 0;             /* hidden by default */
  pointer-events: none;   /* not clickable */
  transition: opacity 0.3s ease;
}

#formatToolbar.active {
  opacity: 1;             /* visible in edit mode */
  pointer-events: auto;
}


/* lyrics styling */
.lyrics-content {
  padding: 90px 20px 20px; /* 👈 add top padding so text isn’t under toolbar */
  line-height: 1.5;
  font-size: 16px;
  color: #fff;
  white-space: pre-wrap;
  overflow-wrap: break-word;
}

/* 🎵 LYRICS CONTENT AREA (restored original theme tone) */
#perfLyrics {
  background: #1a1a1a;       /* your standard dark gray background */
  color: #ffffff;            /* text visible */
  padding: 20px 28px;        /* comfortable breathing room */
  line-height: 1.6;
  text-align: left;
  border-radius: 8px;
  min-height: 300px;
  box-sizing: border-box;
}

/* ✏️ When editing */
#perfLyrics[contenteditable="true"] {
  background: #1a1a1a;       /* keep same bg while editing */
  border: 2px solid #00d9ff; /* glowing border stays */
}


.btn {
    background: #2a2a2a;
    color: #ffffff;
    border: 2px solid #333;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn:hover {
    border-color: #00d9ff;
    background: #333;
}

.btn.active {
    background: #00d9ff;
    border-color: #00d9ff;
    color: #000;
}

.btn-add {
    background: #f37c28;
    border-color: #f37c28;
    color: #fff;
}

.btn-add:hover {
    background: #f37c28;
    border-color: #f37c28;
}

.btn-small {
    padding: 6px 12px;
    font-size: 12px;
    white-space: nowrap;
}

/* Mobile adjustments */
@media (max-width: 768px) {
    .song-actions {
        gap: 4px;
    }
    
    .btn-small {
        padding: 5px 8px;
        font-size: 11px;
    }
}

/* Make card buttons 20% bigger on desktop */
@media (min-width: 769px) {
    .btn-small {
        padding: 8px 12px;
        font-size: 13px;
    }
}

.btn-delete {
    background: #cc0000;
    border-color: #cc0000;
}

.btn-delete:hover {
    background: #ff0000;
    border-color: #ff0000;
}

.btn-view {
    background: #f37c28;
    border-color: #f37c28;
}

.btn-view:hover {
    background: #f37c28;
    border-color: #f37c28;
}

.btn-edit {
    background: #555;
    border-color: #555;
    color: #fff;
}

.btn-edit:hover {
    background: #666;
    border-color: #666;
}

/* ============ VIEWS & LAYOUT ============ */

.view {
    display: none;
    padding-top: 70px;
}

.view.active {
    display: block;
}

/* ============ SONG LIST ============ */

#songsView {
    padding: 20px;
    padding: 90px 20px 20px 20px; 
}

/* Two-column vertical flow (DESKTOP) */
.song-list {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 15px 80px 15px;
    
    column-count: 2;
    column-gap: 20px;
}

/* Prevent breaking cards */
.song-item {
    break-inside: avoid;
    background: #1a1a1a;
    padding: 15px 25px;
    border-radius: 8px;
    border: 2px solid #333;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    gap: 15px;
    align-items: center;
    position: relative;

    /* spacing between items */
    margin-bottom: 10px;
}


.song-number {
    position: absolute;
    top: 15px;
    left: 15px;
    background: #f37c28;
    color: #000;
    font-weight: 700;
    font-size: 14px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

.drag-handle {
    position: absolute;
    top: 52px;
    left: 15px;
    font-size: 30px;
    color: #666;
    cursor: grab;
    user-select: none;
    padding: 5px;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 11;
}

.song-item:hover {
    border-color: #00d9ff;
    transform: translateY(-2px);
}

.song-item.dragging {
    opacity: 0.5;
    cursor: grabbing;
}

.song-item.drag-over {
    border-color: #f37c28;
    border-style: dashed;
}

.drag-handle:hover {
    color: #00d9ff;
}

.drag-handle:active {
    cursor: grabbing;
}

.song-content {
    flex: 1;
    min-width: 0;
    padding-left: 45px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 0;
}

.song-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
    gap: 15px;
}

.song-title {
    font-size: 20px;
    font-weight: 600;
    color: #00d9ff;
    flex: 1;
    min-width: 0;
}

.song-key {
    font-size: 16px;
    color: #f37c28;
    font-weight: 600;
    line-height: 1.2;
    white-space: nowrap;
    flex-shrink: 0;
}

.song-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;    
}

.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #666;
}

.empty-state-icon {
    font-size: 48px;
    margin-bottom: 20px;
}

/* ============ FORMS ============ */

.song-form {
    max-width: 600px;
    margin: 0 auto;
    background: #1a1a1a;
    padding: 30px;
    border-radius: 12px;
    border: 2px solid #333;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 600;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    background: #2a2a2a;
    color: #ffffff;
    border: 2px solid #333;
    padding: 12px;
    border-radius: 6px;
    font-size: 16px;
    font-family: inherit;
    box-sizing: border-box; /* ADD THIS - prevents overflow */
}

.form-group textarea {
    min-height: 200px;
    resize: vertical;
    font-family: 'Courier New', monospace;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #00d9ff;
}

.form-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    margin-top: 30px;
}

/* ============ PERFORMANCE VIEW ============ */

.performance-view {
    max-width: 1400px;
    margin: 0 auto;
    padding-bottom: 100px;
    padding: 20px 0 100px 0;
}

.song-info {
    background: #1a1a1a;
    padding: 0px 20px 20px 20px;
    border-radius: 12px;
    border: 2px solid #333;
    margin-bottom: 0px;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
}

.song-info.collapsed {
    position: absolute;
    top: 0;
    right: 0;
    left: auto;
    bottom: auto;
    transform: none;
    padding: 8px 12px;
    margin: 0;
    width: auto;
    min-width: auto;
    max-width: none;
    white-space: nowrap;
    z-index: 100;
    background: rgba(26, 26, 26, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
    border-radius: 0 0 0 12px;
    border: 2px solid #333;
    border-top: none;
    border-right: none;
}

.song-info.collapsed .song-info-content {
    display: none;
}

.song-info.collapsed .nav-arrow {
    display: none;
}

.song-info.collapsed .key-info {
    margin-bottom: 0 !important;
    font-size: 14px;
}

.song-info.collapsed h2 {
    font-size: 18px;
    margin-bottom: 5px !important;
}

.song-info.collapsed > div {
    margin-bottom: 0 !important;
}

.song-info h2 {
    font-size: 28px;
    color: #00d9ff;
    margin-bottom: 10px;
}

.song-info .key-info {
    font-size: 20px;
    color: #f37c28;
    font-weight: 600;
}

/* ============ LYRICS SECTION ============ */

.lyrics-section {
    background: #1a1a1a;
    padding: 20px;
    border-radius: 12px;
    border: 2px solid #333;
    margin-bottom: 20px;
    position: relative;
}

.lyrics-section h3 {
    font-size: 18px;
    color: #888;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.lyrics-content {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 18px;
    font-weight: 500;
    line-height: 1.8;
    white-space: pre-wrap;
    color: #ddd;
    transition: all 0.3s ease;
    column-count: 2;
    column-gap: 50px;
    column-rule: 1px solid #333;
}

.lyrics-content[contenteditable="true"] {
    background: #2a2a2a;
    outline: none;
    column-count: 2;
}

.lyrics-content[contenteditable="true"]:focus {
    background: #333;
    column-count: 2;
}

/* ============ NAVIGATION ARROWS ============ */

.nav-arrow {
    background: linear-gradient(135deg, #00d9ff, #0099cc);
    border: 2px solid #00d9ff;
    border-radius: 12px;
    color: #000;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 90px;
    height: 90px;
    padding: 18px;
    transition: all 0.2s ease;
    box-shadow: 0 4px 12px rgba(0, 217, 255, 0.4);
}

.nav-arrow:hover:not(:disabled) {
    transform: scale(1.1);
    box-shadow: 0 6px 16px rgba(0, 217, 255, 0.6);
}

.nav-arrow:active:not(:disabled) {
    transform: scale(0.95);
}

.nav-arrow:disabled {
    background: #333;
    border-color: #555;
    color: #666;
    cursor: not-allowed;
    box-shadow: none;
}

.nav-arrow svg {
    width: 100%;
    height: 100%;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* ============ CLERK AUTH OVERRIDES ============ */

#clerk-signin:has(input[name="code"]) .initial-auth-header,
#clerk-signin:has(input[name="code"]) #auth-header {
    display: none !important;
}

#clerk-signin iframe {
    min-height: 500px !important;
}

#clerk-signin [class*="warning"],
#clerk-signin [class*="cl-internal-"] div:has(> a[href*="clerk.com"]) {
    display: none !important;
}

#clerk-signin h1,
#clerk-signin [class*="headerTitle"],
#clerk-signin [class*="cl-headerTitle"],
#clerk-signin [class*="header"] h1 {
    display: none !important;
}

#clerk-signin input {
    margin-bottom: -6px !important;
}

#clerk-signin label {
    margin-bottom: -6px !important;
}

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

#clerk-signin input[type="text"],
#clerk-signin input[type="email"],
#clerk-signin input[type="password"] {
    min-height: 35px !important;
    padding: 5px 12px !important;
}

#clerk-signin button[type="submit"],
#clerk-signin .cl-formButtonPrimary {
    max-width: 70% !important;
    margin: 0 auto !important;
}

#clerk-signin > div {
    max-width: 100% !important;
}

#clerk-signin > div > div {
    padding: 20px 3px 30px 30px !important;
}

#clerk-signin [class*="cl-internal"] {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}

#clerk-signin [class*="cl-main"] {
    padding: 0 !important;
}

#clerk-signin [class*="cl-card"] {
    padding: 20px 30px 30px 30px !important;
}

#clerk-signin [class*="cl-footer"],
#clerk-signin [class*="cl-footerAction"],
#clerk-signin [data-localization-key*="signUp.start"],
#clerk-signin [data-localization-key*="signUp.continue"],
#clerk-signin [data-localization-key="footerActionLink__signUp"],
#clerk-signin [data-localization-key*="footer"],
#clerk-signin a[href*="clerk"],
#clerk-signin div:has(> a[href*="clerk"]) {
    display: none !important;
    visibility: hidden !important;
    height: 0 !important;
    overflow: hidden !important;
}

#clerk-signin > div > div:last-child {
    padding-bottom: 10px !important;
}

#clerk-signin div[class*="divider"] {
    margin: 2px 0 !important;
    padding: 0 !important;
}

#clerk-signin p:has(+ div[class*="divider"]),
#clerk-signin div:has(> div[class*="divider"]) {
    margin-top: -6px !important;
    margin-bottom: -13px !important;
}

#clerk-signin button[class*="socialButton"] {
    margin-top: 12px !important;
}

#clerk-signin:has(input[name="code"]) .initial-auth-header {
    display: none !important;
}

/* Apple logo white override - target the IMG tag */
#clerk-signin img.cl-socialButtonsProviderIcon__apple,
#clerk-signin img.cl-providerIcon__apple,
#clerk-signin img[src*="apple.svg"],
#clerk-signin img[alt*="Apple"] {
    filter: brightness(0) invert(1) !important;
}

/* ============ RESPONSIVE OVERRIDES ============ */

@media (max-width: 768px) {
    .progress-container {
        height: 8px !important;
        margin: 4px 0;
    }
    
    .progress-container:hover,
    .progress-container:active {
        height: 12px !important;
    }

    .nav {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 10px;
        padding: 10px;
    }
    
    .nav > div:first-child {
        order: 1;
        flex: 0 0 auto;
    }
    
    .nav > div:first-child img {
        height: 24px !important;
    }
    
    .user-menu {
        order: 2;
        margin-left: auto;
    }
    
    .user-button {
        padding: 6px 12px !important;
        font-size: 12px !important;
    }
    
    .user-icon {
        width: 18px !important;
        height: 18px !important;
        font-size: 11px !important;
    }
    
    .nav-buttons {
        order: 3;
        width: 100%;
        justify-content: center;
        flex: 1 1 100%;
    }
    
    .view {
        padding: 10px;
    }

    .lyrics-content {
        column-count: 1;
    }
    
    .nav-arrow {
        width: 70px;
        height: 70px;
    }
    
    .nav-arrow svg {
        width: 36px;
        height: 36px;
    }
    
/* Single column on mobile for all lists */
    .song-list {
        column-count: 1 !important;
        padding: 0 5px 80px 5px !important;
    }

    
    #setEditSongList {
        column-count: 1 !important;  /* ← Use column-count, not grid-template-columns */
        padding: 0 5px 80px 5px !important;
        max-width: 100%;
    }
    
.sets-list {
        columns: 1 !important;
        grid-template-columns: 1fr !important;
        padding: 0 5px 80px 5px !important;
        max-width: 100%;
    }
    
    #songsView,
    #setsView {
        padding: 125px 5px 20px 5px !important;
    }
    
    #setEditView {
        padding: 130px 5px 20px 5px !important;
    }
    
    .song-info.collapsed {
        top: 0;
        right: 0;
        max-width: none;
        white-space: nowrap;
        padding: 6px 10px;
    }
    
    /* Tighter card padding on mobile */
    .song-item,
    .set-card {
        padding: 12px 15px !important;
    }

    
    
    #clerk-signin {
        margin-left: 0px !important;
    }

    .btn {
        padding: 8px 12px;
        font-size: 12px;
    }

    /* ============ MOBILE PERFORMANCE HEADER - COMPACT SINGLE ROW ============ */
     
    #songInfoSection > div:first-child {
        flex-direction: row !important;
        align-items: center !important;
        gap: 8px !important;
        margin-bottom: 0 !important;
    }

    #songInfoSection > div:first-child > div:nth-child(2) {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        gap: 4px !important;
        flex: 1 !important;
        min-width: 0 !important;
    }

    #perfSongName {
        font-size: 14px !important;
        line-height: 1.2 !important;
        margin: 0 !important;
        margin-bottom: 0 !important;
        padding: 0 !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        max-width: 100% !important;
        text-align: center !important;
    }

    #perfKeyInfo {
        font-size: 12px !important;
        line-height: 1.2 !important;
        margin: 0 !important;
        margin-bottom: 0 !important;
        padding: 0 !important;
        white-space: nowrap !important;
    }

    .song-info-content {
        width: auto !important;
        display: inline-flex !important;
        justify-content: center !important;
    }

    .song-info-content > div {
        width: auto !important;
        flex: 0 0 auto !important;
        display: inline-flex !important;
        gap: 10px !important;
    }


    .nav-arrow {
        width: 44px !important;
        height: 44px !important;
        min-width: 44px !important;
        border-radius: 8px !important;
    }

    .nav-arrow svg {
        width: 24px !important;
        height: 24px !important;
    }

    #songInfoSection {
        padding: 8px 12px !important;
        margin-bottom: 10px !important;
    }

    .lyrics-section {
        padding: 12px !important;
    }
}

/* ============ LANDSCAPE PHONE/TABLET - UP TO 950PX ============ */

@media (max-width: 950px) and (orientation: landscape) {
    /* FORCE full width - override ALL centering */
    .sets-list,
    #setEditSongList,
    #setEditView > div,
    .song-list,
    .performance-view {
        max-width: 100% !important;
        margin: 0 !important;
    }
    
    /* Remove side padding in landscape for full width */
    .song-list {
        column-count: 1 !important;
        padding: 0 5px 80px 5px !important;
    }
    
    #setEditSongList,
    .sets-list {
        grid-template-columns: 1fr !important;
        padding: 0 5px 80px 5px !important;
    }
    
    #songsView,
    #setsView {
        padding: 90px 5px 20px 5px !important;
    }
    
    #setEditView {
        padding: 110px 5px 20px 5px !important;
    }
    
    .view {
        padding: 0 5px !important;
    }

    #songInfoSection > div:first-child {
        flex-direction: row !important;
        align-items: center !important;
        gap: 8px !important;
        margin-bottom: 0 !important;
    }

    #songInfoSection > div:first-child > div:nth-child(2) {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        gap: 4px !important;
        flex: 1 !important;
        min-width: 0 !important;
    }

    #perfSongName {
        font-size: 14px !important;
        line-height: 1.2 !important;
        margin: 0 !important;
        margin-bottom: 0 !important;
        padding: 0 !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        max-width: 100% !important;
        text-align: center !important;
    }

    #perfKeyInfo {
        font-size: 12px !important;
        line-height: 1.2 !important;
        margin: 0 !important;
        margin-bottom: 0 !important;
        padding: 0 !important;
        white-space: nowrap !important;
    }

    .song-info-content {
        width: auto !important;
        display: inline-flex !important;
        justify-content: center !important;
    }

    .song-info-content > div {
        width: auto !important;
        flex: 0 0 auto !important;
        display: inline-flex !important;
        gap: 10px !important;
    }

    .nav-arrow {
        width: 44px !important;
        height: 44px !important;
        min-width: 44px !important;
        border-radius: 8px !important;
    }

    .nav-arrow svg {
        width: 24px !important;
        height: 24px !important;
    }

    #songInfoSection {
        padding: 8px 12px !important;
        margin-bottom: 10px !important;
    }

    .lyrics-section {
        padding: 12px !important;
    }

    .btn {
        padding: 8px 12px;
        font-size: 12px;
    }
}

/* FORCE single column landscape - MOBILE/TABLET ONLY */
@media (orientation: landscape) and (max-width: 950px) {
    body #songsView .song-list,
    body #setEditView #setEditSongList {
        column-count: 1 !important;
        -webkit-column-count: 1 !important;
        -moz-column-count: 1 !important;
    }
}

@media (max-width: 768px) and (orientation: portrait) {
    #performanceView {
        padding-top: 75px !important;
    }
    
    .lyrics-section {
        margin-top: 20px !important;
    }

    .user-icon {
        width: 32px !important;
        height: 32px !important;
        font-size: 16px !important;
    }
    
    .user-button {
        font-size: 14px !important;
    }
}


@media (orientation: landscape) and (max-width: 950px) {
    body, html {
        overflow-x: hidden !important;
    }
    
    .view,
    .view.active,
    #songsView,
    #setsView,
    #setEditView {
        padding-left: 0 !important;
        padding-right: 0 !important;
        max-width: 100vw !important;
        margin: 0 !important;
        width: 100vw !important;
    }
    
    .song-list,
    .sets-list,
    #setEditSongList {
        max-width: 100vw !important;
        margin: 0 !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
        width: 100vw !important;
        box-sizing: border-box !important;
    }
}

/* Band context padding - DESKTOP */
body.has-band-context #songsView,
body.has-band-context #setsView {
    padding-top: 135px;
}

/* Band context padding - MOBILE */
@media (max-width: 768px) {
    body.has-band-context #songsView,
    body.has-band-context #setsView {
        padding-top: 187px !important;
    }
}

/* Band context padding - LANDSCAPE */
@media (max-width: 1000px) and (orientation: landscape) {
    body.has-band-context #songsView,
    body.has-band-context #setsView {
        padding-top: 135px !important;
    }
}

body.is-landscape.is-tablet .song-list,
body.is-landscape.is-tablet #setEditSongList {
    column-count: 1 !important;
}

/* Drag & Drop Visual Feedback */
.song-item.drag-target-before {
    border-top: 3px solid #00d9ff !important;
    box-shadow: 0 -2px 8px rgba(0, 217, 255, 0.5);
}

.song-item.drag-target-after {
    border-bottom: 3px solid #00d9ff !important;
    box-shadow: 0 2px 8px rgba(0, 217, 255, 0.5);
}

.set-card.drag-target-before {
    border-top: 3px solid #00d9ff !important;
    box-shadow: 0 -2px 8px rgba(0, 217, 255, 0.5);
}

.set-card.drag-target-after {
    border-bottom: 3px solid #00d9ff !important;
    box-shadow: 0 2px 8px rgba(0, 217, 255, 0.5);
}




/* BIG ARROWS */
.nav-arrow {
    background: linear-gradient(135deg, #00d9ff, #0099cc);
    border: 2px solid #00d9ff;
    border-radius: 12px;
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 90px;
    height: 90px;
    padding: 8px; /* Less padding = bigger arrow */
    transition: all 0.2s ease;
    box-shadow: 0 4px 12px rgba(0, 217, 255, 0.4);
}

.nav-arrow:hover:not(:disabled) {
    transform: scale(1.1);
    box-shadow: 0 6px 16px rgba(0, 217, 255, 0.6);
}

.nav-arrow:active:not(:disabled) {
    transform: scale(0.95);
}

.nav-arrow:disabled {
    background: #333;
    border-color: #555;
    color: #666;
    cursor: not-allowed;
    box-shadow: none;
}

.nav-arrow svg {
    width: 100% !important;
    height: 100% !important;
    display: block !important;
}

.nav-arrow svg polyline {
    fill: none !important;
    stroke: #fff !important;
    stroke-width: 2.5 !important;
    stroke-linecap: round !important;
    stroke-linejoin: round !important;
}

/* SMALL ARROWS (COLLAPSED) */
.nav-arrow-small {
    background: linear-gradient(135deg, #00d9ff, #0099cc) !important;
    border: 2px solid #00d9ff !important;
    border-radius: 8px !important;
    color: #fff !important;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    min-width: 50px;
    padding: 8px;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(0, 217, 255, 0.3) !important;
}

.nav-arrow-small:hover:not(:disabled) {
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(0, 217, 255, 0.5) !important;
}

.nav-arrow-small:active:not(:disabled) {
    transform: scale(0.95);
}

.nav-arrow-small:disabled {
    background: #333 !important;
    border-color: #555 !important;
    color: #666 !important;
    cursor: not-allowed;
    box-shadow: none !important;
}

.nav-arrow-small svg {
    width: 100% !important;
    height: 100% !important;
    display: block !important;
}

.nav-arrow-small svg polyline {
    fill: none !important;
    stroke: #fff !important;
    stroke-width: 2.5 !important;
    stroke-linecap: round !important;
    stroke-linejoin: round !important;
}

