/* ============================================
   TURNTBL SPA - ALL VIEW STYLES
   ============================================ */

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif;
    color: #ffffff;F
    overflow-x: hidden;
}

/* Dark status bar background for all views */
body {
    background-color: #1a1a2e;
}

.view {
    background-color: #1a1a2e;
    min-height: 100vh;
}

/* Ensure status bar area is dark on iOS */
@supports (padding-top: env(safe-area-inset-top)) {
    body {
        padding-top: env(safe-area-inset-top);
        background-color: #1a1a2e;
    }
    
    /* ⭐ EXCEPTION: Remove padding for Discover view */
    #discover-view {
        margin-top: calc(-1 * env(safe-area-inset-top)); /* Negative margin to pull video up */
    }
}

/* View System */
.view {
    display: none;
    min-height: 100vh;
}

.view.active {
    display: block;
}


/* ============================================
   LIBRARY VIEW STYLES - UPDATED
   ============================================ */
#library-view {
    background: #1a1a2e;
}

.library-container {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    padding-bottom: 150px;
}

.main-content {
    flex: 1;
    overflow-y: auto;
}

.content-wrapper {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
}

/* Library Top Bar with Logo */
.library-top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.library-logo {
    display: flex;
    align-items: center;
    gap: 8px;
}

.library-fox-logo {
    width: 32px;
    height: 32px;
    object-fit: contain;
}

.library-logo-text {
    font-family: 'Archivo', sans-serif;
    font-size: 20px;
    font-weight: 700;
    color: #ffffff;
}

.library-logo-text .logo-dot {
    color: #E91E8C;
}

/* User info row */
.library-user-row {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 20px;
}

.library-user-avatar {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #30B3B8;
}

.library-avatar-link {
    display: block;
    flex-shrink: 0;
}

.library-user-info {
    flex: 1;
}

.library-user-name {
    font-size: 28px;
    font-weight: 800;
    margin: 0 0 4px 0;
}

.library-stats {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
    margin: 0;
}

.search-toggle-btn {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(48, 179, 184, 0.1);
    border: 1px solid rgba(48, 179, 184, 0.3);
    color: #30B3B8;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
}

.search-toggle-btn:hover {
    background: rgba(48, 179, 184, 0.2);
    transform: scale(1.05);
}

.library-avatar-btn {
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    margin-right: 10px;
    transition: transform 0.2s;
}

.library-avatar-btn:hover {
    transform: scale(1.05);
}

.library-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 2px solid #30B3B8;
    object-fit: cover;
}

/* Expandable search */
.search-container {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    animation: slideDown 0.3s ease;
}

/* Close modal button */
.close-modal-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.6);
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.close-modal-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

.logout-btn {
    background: transparent !important;
    border: 2px solid #F67854 !important;
    color: #F67854 !important;
}

.logout-btn:hover {
    background: rgba(246, 120, 84, 0.1) !important;
    border-color: #E91E8C !important;
    color: #E91E8C !important;
}

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

.search-input-new {
    flex: 1;
    padding: 14px 20px;
    font-size: 16px;
    border: 2px solid rgba(48, 179, 184, 0.3);
    border-radius: 25px;
    background: rgba(255, 255, 255, 0.05);
    color: #ffffff;
    outline: none;
}

.search-input-new:focus {
    border-color: #30B3B8;
    background: rgba(255, 255, 255, 0.08);
}

.search-close-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: rgba(255, 255, 255, 0.6);
    font-size: 20px;
    cursor: pointer;
}

/* Inline shuffle button */
.shuffle-btn-inline {
    padding: 10px 16px;
    background: linear-gradient(135deg, #F67854 0%, #E91E8C 100%);
    border: none;
    border-radius: 20px;
    color: white;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s;
    box-shadow: 0 2px 8px rgba(233, 30, 140, 0.3);
}

.shuffle-btn-inline:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(233, 30, 140, 0.4);
}

.shuffle-btn-inline:active {
    transform: translateY(0);
}

.shuffle-btn-inline svg {
    flex-shrink: 0;
}

/* Compact controls bar */
.controls-bar-compact {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    gap: 12px;
}

.controls-right {
    display: flex;
    align-items: center;
    gap: 10px;
}

.view-toggle-single {
    width: 44px;
    height: 44px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(48, 179, 184, 0.3);
    color: #30B3B8;
    font-size: 20px;
    cursor: pointer;
    transition: all 0.2s;
}

.view-toggle-single:hover {
    background: rgba(48, 179, 184, 0.1);
    border-color: #30B3B8;
}

.view-toggle-single:active {
    transform: scale(0.95);
}

/* Play button for song items (grid view) */
.song-play-btn {
    position: absolute;
    top: 10px;
    left: 10px;
    width: 32px;
    height: 32px;
    background: rgba(48, 179, 184, 0.9);
    backdrop-filter: blur(10px);
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 14px;
    cursor: pointer;
    opacity: 0;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

.song-item:hover .song-play-btn {
    opacity: 1;
}

.song-play-btn:hover {
    background: #30B3B8;
    transform: scale(1.1);
}

/* Remove button - pink circled X (grid view) */
.remove-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 32px; /* Same size as play button */
    height: 32px;
    background: rgba(233, 30, 140, 0.9); /* Pink background */
    backdrop-filter: blur(10px);
    border: none;
    border-radius: 50%;
    color: #ffffff;
    font-size: 18px;
    cursor: pointer;
    opacity: 0;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

.song-item:hover .remove-btn {
    opacity: 1;
}

.remove-btn:hover {
    background: #E91E8C;
    transform: scale(1.1);
}

/* List view buttons - keep existing pink style */
.list-play-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(48, 179, 184, 0.2);
    border: none;
    color: #30B3B8;
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    margin-left: 8px; /* Space between duration and play button */
    flex-shrink: 0;
}

.list-play-btn:hover {
    background: #30B3B8;
    color: white;
    transform: scale(1.1);
}

.list-remove-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(233, 30, 140, 0.1);
    border: 1px solid rgba(233, 30, 140, 0.3);
    color: #E91E8C;
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    margin-left: 8px; /* Space between play and remove button */
    flex-shrink: 0;
}

.list-remove-btn:hover {
    background: rgba(233, 30, 140, 0.3);
    border-color: #E91E8C;
    transform: scale(1.1);
}

.sort-select-compact {
    padding: 10px 15px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(48, 179, 184, 0.3);
    border-radius: 8px;
    color: #ffffff;
    font-size: 14px;
    cursor: pointer;
    outline: none;
}

.sort-select-compact:focus {
    border-color: #30B3B8;
}

.sort-select-compact option {
    background: #1a1a2e;
}

/* Keep existing grid/list styles */
.songs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 15px;
    margin-bottom: 40px;
    max-width: 100%; /* ⭐ Prevent overflow */
}
.song-cover {
    width: 100%;
    aspect-ratio: 1;
    border-radius: 6px;
    object-fit: cover;
    margin-bottom: 12px;
    background: rgba(48, 179, 184, 0.1); /* Fallback background */
    max-height: 180px; /* ⭐ Prevent oversized images */
}
.song-item {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    padding: 12px;
    cursor: pointer;
    transition: all 0.3s;
    position: relative;
    display: flex; /* ⭐ Add flexbox */
    flex-direction: column; /* ⭐ Stack vertically */
}

.song-item:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-4px);
}

.song-item.playing {
    background: rgba(48, 179, 184, 0.15);
    border: 2px solid #30B3B8;
    box-shadow: 0 0 20px rgba(48, 179, 184, 0.3);
}

/* Add equalizer to grid view */
.song-item.playing .song-cover::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    background: rgba(48, 179, 184, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.song-item.playing::before {
    content: '▶';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 24px;
    color: white;
    z-index: 10;
    pointer-events: none;
}

/* List view with equalizer */
.songs-list {
    display: none;
}

.songs-list.active {
    display: block;
}

.list-item {
    display: flex;
    align-items: center;
    padding: 12px;
    border-radius: 6px;
    margin-bottom: 4px;
    cursor: pointer;
    transition: background 0.2s;
}

.list-item:hover {
    background: rgba(255, 255, 255, 0.05);
}

.list-item.playing {
    background: rgba(48, 179, 184, 0.15);
    border-left: 3px solid #30B3B8;
}

.list-number {
    width: 40px;
    text-align: center;
    color: transparent;
    font-size: 14px;
}

/* Replace number with equalizer when playing */
.list-item.playing .list-number {
    color: #30B3B8;
}

.list-cover {
    width: 50px;
    height: 50px;
    border-radius: 4px;
    object-fit: cover;
    margin-right: 15px;
}

.list-info {
    flex: 1;
}

.list-title {
    font-size: 15px;
    font-weight: 500;
    color: #ffffff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.list-artist {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.6);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Library list items - no track number */
.library-list-item .list-cover {
    margin-left: 0;
}

.library-list-item .list-info {
    min-width: 0;
}

.list-duration {
    color: rgba(255, 255, 255, 0.4);
    font-size: 14px;
    margin: 0 15px;
}

.empty-library {
    text-align: center;
    padding: 100px 40px;
}

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

.empty-title {
    font-size: 24px;
    margin-bottom: 10px;
}

.empty-text {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 30px;
}

.discover-link {
    padding: 15px 40px;
    background: #E91E8C;
    color: #ffffff;
    text-decoration: none;
    border-radius: 25px;
    font-weight: 600;
    display: inline-block;
}

/* =============================================================================
   You're Supporting Card
   ============================================================================= */
.supporting-card {
    background: linear-gradient(135deg, rgba(48, 179, 184, 0.15), rgba(233, 30, 140, 0.1));
    border: 1px solid rgba(48, 179, 184, 0.3);
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 20px;
}

.supporting-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: opacity 0.2s;
}

.supporting-header:hover {
    opacity: 0.9;
}

.supporting-expand-icon {
    color: rgba(255, 255, 255, 0.5);
    transition: transform 0.3s ease;
}

.supporting-expand-icon.expanded {
    transform: rotate(180deg);
}

.supporting-details {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.supporting-artist-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.supporting-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #30B3B8;
}

.supporting-artist-details {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.supporting-label {
    font-size: 11px;
    color: #E91E8C;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 600;
}

.supporting-artist-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.supporting-artist-name {
    font-size: 16px;
    font-weight: 600;
    color: #ffffff;
}

.tier-badge {
    font-size: 10px;
    padding: 2px 8px;
    border-radius: 10px;
    text-transform: uppercase;
    font-weight: 600;
}

.tier-badge.founding {
    background: linear-gradient(135deg, #FFD700, #FFA500);
    color: #000;
}

.tier-badge.verified {
    background: linear-gradient(135deg, #30B3B8, #26a5aa);
    color: #fff;
}

.tier-badge.rising {
    background: linear-gradient(135deg, #E91E8C, #c71880);
    color: #fff;
}

.supporting-switch-btn {
    padding: 8px 16px;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 20px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.supporting-switch-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.5);
    color: #fff;
}

/* Milestone Header */
.milestone-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.milestone-title {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 1.5px;
    color: rgba(255, 255, 255, 0.6);
}

.milestone-days-remaining {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.5);
}

/* Milestone Container */
.milestone-container {
    margin-bottom: 24px;
}

/* Track wrapper - horizontal layout */
.milestone-track-wrapper {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
}

/* Track segments */
.milestone-track-segment {
    flex: 1;
    height: 4px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 2px;
    overflow: hidden;
    position: relative;
}

.milestone-track-segment.long {
    flex: 2.5;
}

.milestone-progress-fill {
    height: 100%;
    background: #30B3B8;
    border-radius: 2px;
    transition: width 0.5s ease;
}

/* Milestone nodes (circles) */
.milestone-node {
    flex-shrink: 0;
}

.milestone-circle {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.5);
    font-size: 13px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.milestone-circle.active {
    background: #30B3B8;
    border-color: #30B3B8;
    color: white;
}

.milestone-circle.reached {
    background: #30B3B8;
    border-color: #30B3B8;
    color: white;
}

.milestone-circle.dashed {
    border: 2px dashed rgba(255, 255, 255, 0.3);
    background: transparent;
}

.milestone-circle.dashed.reached {
    border-style: solid;
    background: #30B3B8;
    border-color: #30B3B8;
}

.milestone-number {
    display: block;
}

.milestone-check {
    display: none;
}

/* When reached, hide number and show checkmark */
.milestone-circle.reached .milestone-number {
    display: none;
}

.milestone-circle.reached .milestone-check {
    display: block;
    stroke: white;
    stroke: white;
}

.milestone-circle.reached span {
    display: none;
}

/* Milestone labels */
.milestone-labels {
    display: flex;
    justify-content: space-between;
    padding: 0 4px;
}

.milestone-label-group {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.milestone-label-group.center {
    text-align: center;
}

.milestone-label-group.end {
    text-align: right;
}

.milestone-day {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.8);
}

.milestone-points {
    color: #30B3B8;
    font-weight: 600;
}

.milestone-sublabel {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.4);
}

.streak-cards-row {
    display: flex;
    gap: 10px;
    margin-bottom: 16px;
}

.streak-card {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 14px 8px;
    background: rgba(0, 0, 0, 0.25);
    border-radius: 12px;
    text-align: center;
}

.streak-card-icon {
    width: 24px;
    height: 24px;
    margin-bottom: 8px;
}

.streak-card-number {
    font-size: 28px;
    font-weight: 700;
    color: #30B3B8;
    line-height: 1;
    margin-bottom: 4px;
}

.streak-card-label {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.5);
    font-weight: 500;
}

.supporting-info-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 100%;
    padding: 10px;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    color: rgba(255, 255, 255, 0.6);
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.supporting-info-btn:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.25);
    color: rgba(255, 255, 255, 0.8);
}

.supporting-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    padding: 20px;
}

.supporting-modal-content {
    background: linear-gradient(135deg, #1a1a2e, #16213e);
    border-radius: 20px;
    padding: 24px;
    max-width: 400px;
    width: 100%;
    position: relative;
    border: 1px solid rgba(48, 179, 184, 0.3);
}

.supporting-modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 32px;
    height: 32px;
    border: none;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: #fff;
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.supporting-modal-close:hover {
    background: rgba(255, 255, 255, 0.2);
}

.supporting-modal-content h3 {
    font-size: 20px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 20px;
    padding-right: 40px;
}

.supporting-modal-body {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.info-item {
    display: flex;
    gap: 14px;
    align-items: flex-start;
}

.info-icon {
    width: 28px;
    height: 28px;
    min-width: 28px;
    background: linear-gradient(135deg, #30B3B8, #26a5aa);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 700;
    color: #fff;
}

.info-item strong {
    display: block;
    font-size: 14px;
    color: #fff;
    margin-bottom: 4px;
}

.info-item p {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.4;
    margin: 0;
}

/* Following artists section */
.following-section {
    margin-bottom: 25px;
}

.following-label {
    font-size: 14px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.following-carousel {
    display: flex;
    gap: 15px;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding: 5px 0;
    scrollbar-width: none; /* Firefox */
}

.following-carousel::-webkit-scrollbar {
    display: none; /* Chrome/Safari */
}

.following-artist {
    flex: 0 0 calc(25% - 11.25px); /* Show 3.5 artists */
    min-width: 80px;
    scroll-snap-align: start;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: all 0.2s;
}

.following-artist:hover {
    transform: scale(1.05);
}

.following-avatar-wrapper {
    width: 68px;
    height: 68px;
    border-radius: 50%;
    padding: 3px;
    background: #30B3B8;
    flex-shrink: 0;
}

.following-avatar-wrapper.tier-frame-opener {
    background: #30B3B8;
}

.following-avatar-wrapper.tier-frame-rising {
    background: #F67854;
}

.following-avatar-wrapper.tier-frame-headliner {
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 50%, #FFD700 100%);
}

.following-avatar-wrapper.tier-frame-legend {
    background: linear-gradient(135deg, #8B5CF6 0%, #EC4899 100%);
}

.following-avatar-wrapper.tier-frame-icon {
    background: linear-gradient(135deg, #E91E8C 0%, #30B3B8 100%);
}

.following-avatar {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #1a1a2e;
}

.following-artist.active .following-avatar-wrapper {
    box-shadow: 0 0 0 2px #E91E8C;
}

.following-artist-name {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.8);
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    width: 100%;
}

/* Filtered header */
.filtered-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    background: rgba(48, 179, 184, 0.1);
    border: 1px solid rgba(48, 179, 184, 0.3);
    border-radius: 12px;
    margin-bottom: 20px;
}

.filtered-artist-info {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
    min-width: 0;
}

.filtered-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 2px solid #30B3B8;
    object-fit: cover;
    flex-shrink: 0;
}

.filtered-artist-details {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
    flex: 1;
}

.filtered-name {
    font-size: 16px;
    font-weight: 600;
    color: white;
}

.filtered-bio {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.6);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.filtered-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.filtered-btn {
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}

.filtered-btn.secondary {
    background: transparent;
    border: 1px solid #30B3B8;
    color: #30B3B8;
}

.filtered-btn.secondary:hover {
    background: rgba(48, 179, 184, 0.1);
}

.filtered-btn.primary {
    background: #E91E8C;
    border: none;
    color: white;
}

.filtered-btn.primary:hover {
    background: #F67854;
}

.filtered-close-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(233, 30, 140, 0.2);
    border: none;
    color: #E91E8C;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    flex-shrink: 0;
}

.filtered-close-btn:hover {
    background: #E91E8C;
    color: white;
}

/* No songs from artist state */
.no-songs-card {
    padding: 60px 20px;
    text-align: center;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
}

.no-songs-card h3 {
    font-size: 20px;
    margin-bottom: 10px;
}

.no-songs-card p {
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 20px;
}

/* ============================================
   LIBRARY TABS STYLES
   ============================================ */
.library-tabs-header {
    display: flex;
    gap: 8px;
    background: rgba(255, 255, 255, 0.03);
    padding: 8px;
    border-radius: 12px;
    margin: 20px 0;
}

.library-tab-btn {
    flex: 1;
    padding: 12px 16px;
    background: transparent;
    border: none;
    border-radius: 8px;
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.library-tab-btn:hover {
    color: #30B3B8;
    background: rgba(48, 179, 184, 0.05);
}

.library-tab-btn.active {
    background: linear-gradient(135deg, #30B3B8 0%, #E91E8C 100%);
    color: white;
}

.library-tabs-content {
    position: relative;
    min-height: 400px;
}

.library-tab-content {
    display: none;
}

.library-tab-content.active {
    display: block;
}

/* Saved Videos Grid */
.saved-videos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 16px;
    padding: 20px 0;
}

.saved-video-item {
    position: relative;
    aspect-ratio: 9/16;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.2s;
}

.saved-video-item:hover {
    transform: scale(1.02);
}

.saved-video-thumbnail {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.saved-video-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 12px;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
}

.saved-video-title {
    font-size: 13px;
    font-weight: 600;
    color: white;
    margin-bottom: 4px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.saved-video-artist {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.7);
}

.saved-video-remove {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.6);
    border: none;
    color: white;
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.2s;
}

.saved-video-item:hover .saved-video-remove {
    opacity: 1;
}

/* Saved Posts List */
.saved-posts-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 20px 0;
}

.saved-post-item {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(48, 179, 184, 0.2);
    border-radius: 12px;
    padding: 16px;
    cursor: pointer;
    transition: all 0.2s;
}

.saved-post-item:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(48, 179, 184, 0.4);
}

.saved-post-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.saved-post-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
}

.saved-post-meta {
    flex: 1;
}

.saved-post-artist {
    font-size: 14px;
    font-weight: 600;
    color: white;
    margin-bottom: 2px;
}

.saved-post-time {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.5);
}

.saved-post-remove {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(233, 30, 140, 0.1);
    border: 1px solid rgba(233, 30, 140, 0.3);
    color: #E91E8C;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.2s;
}

.saved-post-remove:hover {
    background: rgba(233, 30, 140, 0.2);
    border-color: #E91E8C;
}

.saved-post-body {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.5;
    margin-bottom: 12px;
}

.saved-post-media {
    width: 100%;
    max-height: 300px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 12px;
}

.saved-post-song {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: rgba(48, 179, 184, 0.1);
    border: 1px solid rgba(48, 179, 184, 0.2);
    border-radius: 8px;
    margin-bottom: 12px;
}

.saved-post-song-cover {
    width: 44px;
    height: 44px;
    border-radius: 6px;
    object-fit: cover;
}

.saved-post-song-info {
    flex: 1;
}

.saved-post-song-title {
    font-size: 13px;
    font-weight: 600;
    color: white;
    margin-bottom: 2px;
}

.saved-post-song-artist {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.6);
}

.saved-post-stats {
    display: flex;
    gap: 16px;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.6);
}

.saved-post-stat {
    display: flex;
    align-items: center;
    gap: 4px;
}


/* Responsive */
@media (max-width: 768px) {
    .saved-videos-grid {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
        gap: 12px;
    }
}
/* Saved Video Modal */
.saved-video-modal-content {
    position: relative;
    width: 100%;
    max-width: 500px;
    height: 100vh;
    display: flex;
    flex-direction: column;
    background: #000;
}

.close-saved-video-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    font-size: 20px;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.close-saved-video-btn:hover {
    background: rgba(0, 0, 0, 0.8);
    transform: scale(1.05);
}

.saved-video-player {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #000;
}

.saved-video-info-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9), transparent);
}

.saved-video-song-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.saved-video-song-cover-modal {
    width: 60px;
    height: 60px;
    border-radius: 8px;
    object-fit: cover;
}

.saved-video-song-details {
    flex: 1;
}

.saved-video-song-title-modal {
    font-size: 16px;
    font-weight: 700;
    color: white;
    margin-bottom: 4px;
}

.saved-video-artist-name-modal {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
}

.btn-play-song-modal {
    padding: 10px 20px;
    background: #30B3B8;
    border: none;
    border-radius: 20px;
    color: white;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s;
}

.btn-play-song-modal:hover {
    background: #2a9fa3;
    transform: translateY(-1px);
}

@media (max-width: 768px) {
    .saved-video-modal-content {
        max-width: 100%;
    }
}

/* ============================================
   STUDIO VIEW STYLES (Artist Dashboard)
   ============================================ */
#studio-view {
    background: #121212;
}

.dashboard-container {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    padding: 20px;
    padding-bottom: 150px;
    max-width: 100%;
    overflow-x: hidden;
}

.page-header {
    margin-bottom: 30px;
}

.page-title {
    font-size: 32px;
    font-weight: 900;
    margin-bottom: 8px;
}

.page-subtitle {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
}

/* Stats Grid - 2 cards per row on mobile */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* Always 2 columns */
    gap: 15px;
    margin-bottom: 40px;
}

.stat-card {
    background: linear-gradient(135deg, rgba(48, 179, 184, 0.1) 0%, rgba(233, 30, 140, 0.05) 100%);
    border: 1px solid rgba(48, 179, 184, 0.3);
    border-radius: 16px;
    padding: 20px;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #30B3B8, #E91E8C);
}

.stat-card:hover {
    transform: translateY(-2px);
    border-color: #30B3B8;
    box-shadow: 0 8px 24px rgba(48, 179, 184, 0.2);
}

.stat-icon {
    font-size: 28px;
    margin-bottom: 10px;
    opacity: 0.8;
}

.stat-value {
    font-size: 32px;
    font-weight: 900;
    color: #30B3B8;
    margin-bottom: 6px;
    letter-spacing: -1px;
}

.stat-label {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Section Headers */
.section-header {
    margin-bottom: 15px;
}

.section-title {
    font-size: 22px;
    font-weight: 700;
    color: #ffffff;
}

/* Top Songs List - Full width, no scrolling */
.top-songs-list {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 40px;
}

.song-row {
    display: flex;
    align-items: center;
    padding: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: background 0.2s;
    cursor: pointer;
    gap: 12px;
}

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

.song-row:hover {
    background: rgba(48, 179, 184, 0.05);
}

.song-rank {
    font-size: 20px;
    font-weight: 900;
    color: #E91E8C;
    width: 30px;
    text-align: center;
    flex-shrink: 0;
}

.song-cover-small {
    width: 50px;
    height: 50px;
    border-radius: 8px;
    object-fit: cover;
    background: #1a1a2e;
    flex-shrink: 0;
}

.song-details {
    flex: 1;
    min-width: 0;
}

.song-title-small {
    font-size: 14px;
    font-weight: 600;
    color: white;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.song-stats {
    display: flex;
    gap: 15px;
    font-size: 12px;
    flex-wrap: wrap;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 4px;
    color: rgba(255, 255, 255, 0.6);
}

.stat-item .number {
    font-weight: 700;
    color: #30B3B8;
    font-size: 13px;
}

/* Top Posts List - Full width, no scrolling */
.top-posts-list {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    overflow: hidden;
}

.post-row {
    display: flex;
    align-items: center;
    padding: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: background 0.2s;
    cursor: pointer;
    gap: 12px;
}

.post-row:last-child {
    border-bottom: none;
}

.post-row:hover {
    background: rgba(48, 179, 184, 0.05);
}

.post-rank {
    font-size: 20px;
    font-weight: 900;
    color: #E91E8C;
    width: 30px;
    text-align: center;
    flex-shrink: 0;
}

.post-thumbnail {
    width: 60px;
    height: 107px; /* 9:16 aspect ratio */
    border-radius: 8px;
    object-fit: cover;
    background: #000;
    flex-shrink: 0;
}

.post-details {
    flex: 1;
    min-width: 0;
}

.post-linked-song {
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 4px;
    color: #ffffff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.post-song-name {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 6px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.post-stats {
    display: flex;
    gap: 12px;
    font-size: 11px;
    flex-wrap: wrap;
}

.post-stat-item {
    display: flex;
    align-items: center;
    gap: 4px;
    color: rgba(255, 255, 255, 0.6);
}

.post-stat-item .number {
    font-weight: 700;
    color: #E91E8C;
    font-size: 12px;
}

/* Desktop: 4 cards in one row */
@media (min-width: 769px) {
    .dashboard-container {
        padding: 40px;
    }
    
    .stats-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 20px;
    }
    
    .page-title {
        font-size: 48px;
    }
    
    .stat-card {
        padding: 30px;
    }
    
    .stat-icon {
        font-size: 36px;
    }
    
    .stat-value {
        font-size: 42px;
    }
    
    .stat-label {
        font-size: 14px;
    }
}
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.section-action-btn {
    padding: 8px 16px;
    background: #30B3B8;
    color: white;
    border: none;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}

.section-action-btn:hover {
    background: #E91E8C;
    transform: translateY(-1px);
}
.section-action-btn.secondary {
    background: transparent;
    border: 1px solid #30B3B8;
    color: #30B3B8;
}

.section-action-btn.secondary:hover {
    background: rgba(48, 179, 184, 0.1);
    border-color: #E91E8C;
    color: #E91E8C;
}

/* ============================================
   STUDIO DASHBOARD STYLES (Points-first Design)
   ============================================ */

/* Dashboard Container */
.studio-dashboard {
    background: linear-gradient(180deg, #1a1a2e 0%, #0f0f1e 100%);
    min-height: 100vh;
    padding: 0 22px 110px 22px;
}

/* Header: Logo + Tier Chip */
.studio-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 54px;
    margin-bottom: 32px;
}

.studio-logo-group {
    display: flex;
    align-items: center;
    gap: 10px;
}

.studio-logo {
    width: 30px;
    height: 30px;
    object-fit: contain;
}

.studio-logo-text {
    font-family: system-ui, sans-serif;
    font-size: 20px;
    font-weight: 700;
    color: #ffffff;
}

.studio-logo-dot {
    color: #30B3B8;
}

.studio-tier-chip {
    background: rgba(48, 179, 184, 0.15);
    border: 1px solid rgba(48, 179, 184, 0.4);
    color: #30B3B8;
    font-family: ui-monospace, 'SF Mono', Monaco, 'Courier New', monospace;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.5px;
    padding: 6px 14px;
    border-radius: 20px;
}

/* Points Hero Card */
.studio-points-card {
    background: rgba(26, 26, 46, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 20px;
}

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

.studio-points-eyebrow {
    font-family: ui-monospace, 'SF Mono', Monaco, 'Courier New', monospace;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 1.5px;
    color: #30B3B8;
}

.studio-points-week {
    font-family: ui-monospace, 'SF Mono', Monaco, 'Courier New', monospace;
    font-size: 12px;
    font-weight: 600;
    color: #30B3B8;
}

.studio-points-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.studio-points-number {
    font-family: 'Archivo', system-ui, sans-serif;
    font-size: 72px;
    font-weight: 900;
    color: #E91E8C;
    line-height: 1;
    letter-spacing: -2px;
}

.studio-rising-pill {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: rgba(233, 30, 140, 0.15);
    border: 1px solid rgba(233, 30, 140, 0.3);
    border-radius: 16px;
    padding: 6px 12px;
    font-family: system-ui, sans-serif;
    font-size: 13px;
    font-weight: 600;
    color: #E91E8C;
}

.studio-rising-pill svg {
    width: 10px;
    height: 10px;
}

.studio-points-caption {
    font-family: system-ui, sans-serif;
    font-size: 14px;
    color: #8b8ba3;
    margin: 0 0 20px 0;
    line-height: 1.5;
}

.studio-points-caption strong {
    color: #ffffff;
    font-weight: 600;
}

/* Legacy tier pill (for backward compatibility) */
.studio-tier-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(233, 30, 140, 0.1);
    border: 1px solid rgba(233, 30, 140, 0.3);
    border-radius: 20px;
    padding: 8px 16px;
}

.studio-tier-name {
    font-family: system-ui, sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: #E91E8C;
}

.studio-tier-next {
    font-family: system-ui, sans-serif;
    font-size: 14px;
    color: #8b8ba3;
}

/* The Climb (Progress Bar) */
.studio-climb {
    margin-bottom: 16px;
}

.studio-climb-track {
    position: relative;
    height: 10px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 5px;
    margin-bottom: 10px;
    overflow: visible;
}

.studio-climb-fill {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    background: linear-gradient(90deg, #30B3B8 0%, #E91E8C 100%);
    border-radius: 5px;
    transition: width 0.5s ease;
}

.studio-climb-dot {
    position: absolute;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 20px;
    height: 20px;
    background: #E91E8C;
    border: 3px solid #1a1a2e;
    border-radius: 50%;
    box-shadow: 0 0 12px rgba(233, 30, 140, 0.6);
    transition: left 0.5s ease;
}

.studio-climb-labels {
    display: flex;
    justify-content: space-between;
    font-family: ui-monospace, 'SF Mono', Monaco, 'Courier New', monospace;
    font-size: 9px;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.studio-climb-labels span {
    color: #4a4a5e;
}

.studio-climb-labels .passed {
    color: #30B3B8;
}

.studio-climb-labels .current {
    color: #30B3B8;
}

.studio-climb-labels .next {
    color: #6d6d85;
}

.studio-climb-labels .future {
    color: #4a4a5e;
}

.studio-climb-caption {
    font-family: system-ui, sans-serif;
    font-size: 13px;
    color: #6d6d85;
    text-align: center;
    margin: 0;
    line-height: 1.5;
}

/* Points Breakdown Expandable */
.studio-points-expand-btn {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 6px;
    background: none;
    border: none;
    color: #30B3B8;
    font-family: system-ui, sans-serif;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    padding: 0;
    width: 100%;
    transition: opacity 0.2s;
}

.studio-points-expand-btn:hover {
    opacity: 0.8;
}

.studio-points-expand-btn .expand-chevron {
    transition: transform 0.3s ease;
}

.studio-points-expand-btn.expanded .expand-chevron {
    transform: rotate(180deg);
}

.studio-points-breakdown {
    margin-top: 12px;
    overflow: hidden;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        max-height: 0;
    }
    to {
        opacity: 1;
        max-height: 400px;
    }
}

.points-breakdown-table {
    background: rgba(30, 30, 46, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 16px;
}

.points-breakdown-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
}

.breakdown-header-icon {
    color: #30B3B8;
    font-size: 14px;
    font-weight: 600;
}

.breakdown-header-title {
    font-family: system-ui, sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: #ffffff;
    flex: 1;
}

.breakdown-header-total {
    font-family: ui-monospace, 'SF Mono', Monaco, 'Courier New', monospace;
    font-size: 13px;
    font-weight: 600;
    color: #30B3B8;
}

.points-breakdown-columns {
    display: grid;
    grid-template-columns: 1fr 50px 50px 60px;
    gap: 8px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    margin-bottom: 4px;
}

.points-breakdown-columns .col-label {
    font-family: ui-monospace, 'SF Mono', Monaco, 'Courier New', monospace;
    font-size: 9px;
    font-weight: 500;
    letter-spacing: 0.5px;
    color: #6d6d85;
    text-align: right;
}

.points-breakdown-row {
    display: grid;
    grid-template-columns: 1fr 50px 50px 60px;
    gap: 8px;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.points-breakdown-row:last-child {
    border-bottom: none;
}

.breakdown-action {
    font-family: system-ui, sans-serif;
    font-size: 14px;
    color: #e0e0e8;
    display: flex;
    align-items: center;
    gap: 8px;
}

.breakdown-tag {
    font-family: ui-monospace, 'SF Mono', Monaco, 'Courier New', monospace;
    font-size: 9px;
    font-weight: 500;
    letter-spacing: 0.5px;
    padding: 2px 6px;
    border-radius: 4px;
    text-transform: lowercase;
}

.breakdown-tag.cap {
    background: rgba(109, 109, 133, 0.2);
    color: #6d6d85;
}

.breakdown-tag.bonus {
    background: rgba(48, 179, 184, 0.15);
    color: #30B3B8;
}

.breakdown-points {
    font-family: ui-monospace, 'SF Mono', Monaco, 'Courier New', monospace;
    font-size: 13px;
    color: #6d6d85;
    text-align: right;
}

.breakdown-week {
    font-family: ui-monospace, 'SF Mono', Monaco, 'Courier New', monospace;
    font-size: 13px;
    color: #6d6d85;
    text-align: right;
}

.breakdown-week.bonus-highlight {
    color: #30B3B8;
}

.breakdown-total {
    font-family: ui-monospace, 'SF Mono', Monaco, 'Courier New', monospace;
    font-size: 13px;
    font-weight: 600;
    color: #ffffff;
    text-align: right;
}

/* Deduction styling (negative points) */
.breakdown-points.deduction {
    color: #F67854;
}

.breakdown-total.deduction {
    color: #F67854;
}

.points-breakdown-row.deduction {
    opacity: 0.8;
}

/* Your Rate Card */
.studio-rate-card {
    background: rgba(26, 26, 46, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 20px;
}

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

.studio-rate-eyebrow {
    font-family: ui-monospace, 'SF Mono', Monaco, 'Courier New', monospace;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 1.5px;
    color: #30B3B8;
}

.studio-rate-driven-by {
    font-family: system-ui, sans-serif;
    font-size: 12px;
    color: #6d6d85;
}

.studio-rate-driven-by b {
    color: #ffffff;
    font-weight: 600;
}

.studio-rate-value-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.studio-rate-percent {
    font-family: 'Archivo', system-ui, sans-serif;
    font-size: 48px;
    font-weight: 900;
    color: #30B3B8;
    line-height: 1;
}

.studio-rate-trend {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-family: ui-monospace, 'SF Mono', Monaco, 'Courier New', monospace;
    font-size: 12px;
    font-weight: 600;
    padding: 6px 12px;
    border-radius: 12px;
}

.studio-rate-trend.rising {
    color: #30B3B8;
    background: rgba(48, 179, 184, 0.15);
}

.studio-rate-trend.steady {
    color: #8b8ba3;
    background: rgba(139, 139, 163, 0.2);
}

.studio-rate-trend.falling {
    color: #F67854;
    background: rgba(246, 120, 84, 0.15);
}

/* 90-day listener bar in Rate Card */
.studio-rate-90day {
    margin-bottom: 16px;
}

.studio-rate-90day-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.studio-rate-90day-label {
    font-family: ui-monospace, 'SF Mono', Monaco, 'Courier New', monospace;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.5px;
    color: #30B3B8;
}

.studio-rate-90day-driver {
    color: #6d6d85;
}

.studio-rate-90day-percent {
    font-family: 'Archivo', system-ui, sans-serif;
    font-size: 18px;
    font-weight: 700;
    color: #ffffff;
}

.studio-rate-90day-bar {
    height: 36px;
    background: rgba(48, 179, 184, 0.15);
    border-radius: 10px;
    overflow: hidden;
}

.studio-rate-90day-bar-fill {
    height: 100%;
    background: #30B3B8;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: width 0.5s ease;
    min-width: fit-content;
}

.studio-rate-90day-active {
    font-family: ui-monospace, 'SF Mono', Monaco, 'Courier New', monospace;
    font-size: 12px;
    font-weight: 600;
    color: #0f0f1e;
    padding: 0 12px;
    white-space: nowrap;
}

.studio-rate-note {
    font-family: system-ui, sans-serif;
    font-size: 14px;
    color: #8b8ba3;
    margin: 0 0 16px 0;
    line-height: 1.5;
}

/* Rate Expandable Section */
.studio-rate-expand-btn {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 6px;
    background: none;
    border: none;
    color: #30B3B8;
    font-family: system-ui, sans-serif;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    padding: 0;
    width: 100%;
    transition: opacity 0.2s;
}

.studio-rate-expand-btn:hover {
    opacity: 0.8;
}

.studio-rate-expand-btn .expand-chevron {
    transition: transform 0.3s ease;
}

.studio-rate-expand-btn.expanded .expand-chevron {
    transform: rotate(180deg);
}

.studio-rate-breakdown {
    margin-top: 12px;
    overflow: hidden;
    animation: slideDown 0.3s ease;
}

.studio-rate-breakdown-text {
    font-family: system-ui, sans-serif;
    font-size: 13px;
    color: #6d6d85;
    margin: 0;
    line-height: 1.5;
    padding: 12px;
    background: rgba(30, 30, 46, 0.6);
    border-radius: 8px;
}

/* Door Stats inside rate breakdown */
.studio-rate-breakdown .studio-door-stats {
    margin-bottom: 16px;
}

.studio-rate-breakdown .studio-pulse {
    margin-bottom: 0;
}

/* Door Stats: link clicks + accounts created */
.studio-door-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 16px;
}

.studio-door-stat {
    background: rgba(26, 26, 46, 0.8);
    border: 1px solid rgba(48, 179, 184, 0.15);
    border-radius: 14px;
    padding: 14px 16px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.studio-door-stat-label {
    font-family: ui-monospace, 'SF Mono', Monaco, 'Courier New', monospace;
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 1px;
    color: #6d6d85;
}

.studio-door-stat-value {
    font-family: 'Archivo', system-ui, sans-serif;
    font-size: 28px;
    font-weight: 900;
    color: #ffffff;
    line-height: 1;
}

/* Listener Pulse */
.studio-pulse {
    background: rgba(26, 26, 46, 0.8);
    border: 1px solid rgba(48, 179, 184, 0.15);
    border-radius: 14px;
    padding: 16px;
    margin-bottom: 28px;
}

.studio-pulse-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 16px;
}

.studio-pulse-label {
    font-family: ui-monospace, 'SF Mono', Monaco, 'Courier New', monospace;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 1px;
    color: #ffffff;
}

.studio-pulse-total {
    font-family: ui-monospace, 'SF Mono', Monaco, 'Courier New', monospace;
    font-size: 10px;
    color: #6d6d85;
    text-align: right;
}

.studio-pulse-main {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.studio-pulse-main-label {
    font-family: ui-monospace, 'SF Mono', Monaco, 'Courier New', monospace;
    font-size: 11px;
    color: #30B3B8;
}

.studio-pulse-driver {
    color: #6d6d85;
}

.studio-pulse-main-value {
    font-family: 'Archivo', system-ui, sans-serif;
    font-size: 18px;
    font-weight: 700;
    color: #ffffff;
}

.studio-pulse-bar {
    height: 32px;
    background: rgba(48, 179, 184, 0.1);
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 12px;
    position: relative;
}

.studio-pulse-bar.main {
    height: 40px;
}

.studio-pulse-bar.small {
    height: 12px;
    flex: 1;
}

.studio-pulse-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #30B3B8 0%, #30B3B8 100%);
    border-radius: 8px;
    transition: width 0.5s ease;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding-right: 12px;
}

.studio-pulse-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
}

.studio-pulse-row-label {
    font-family: ui-monospace, 'SF Mono', Monaco, 'Courier New', monospace;
    font-size: 10px;
    color: #6d6d85;
    width: 50px;
    flex-shrink: 0;
}

.studio-pulse-row-value {
    font-family: ui-monospace, 'SF Mono', Monaco, 'Courier New', monospace;
    font-size: 12px;
    font-weight: 600;
    color: #ffffff;
    width: 40px;
    text-align: right;
    flex-shrink: 0;
}

.studio-pulse-explainer {
    font-family: system-ui, sans-serif;
    font-size: 13px;
    color: #6d6d85;
    margin: 16px 0 0 0;
    line-height: 1.5;
}

.studio-pulse-explainer span {
    color: #30B3B8;
    font-weight: 600;
}

/* Section Styles */
.studio-section {
    margin-bottom: 28px;
}

.studio-section-title {
    font-family: system-ui, sans-serif;
    font-size: 18px;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 6px 0;
}

.studio-section-subtitle {
    font-family: system-ui, sans-serif;
    font-size: 14px;
    color: #6d6d85;
    margin: 0 0 16px 0;
}

/* Share Your Door */
.studio-door-row {
    display: flex;
    gap: 10px;
    margin-bottom: 12px;
}

.studio-door-link {
    flex: 1;
    padding: 14px 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    font-family: ui-monospace, 'SF Mono', Monaco, 'Courier New', monospace;
    font-size: 13px;
    color: #ffffff;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.studio-copy-btn {
    padding: 14px 20px;
    background: rgba(48, 179, 184, 0.15);
    border: 1px solid rgba(48, 179, 184, 0.3);
    border-radius: 12px;
    font-family: system-ui, sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: #30B3B8;
    cursor: pointer;
    transition: all 0.2s ease;
}

.studio-copy-btn:hover {
    background: rgba(48, 179, 184, 0.25);
}

.studio-copy-btn:active {
    transform: scale(0.98);
}

.studio-share-btn {
    width: 100%;
    padding: 16px 24px;
    background: linear-gradient(135deg, #E91E8C 0%, #F67854 100%);
    border: none;
    border-radius: 14px;
    font-family: system-ui, sans-serif;
    font-size: 16px;
    font-weight: 600;
    color: #ffffff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.2s ease;
}

.studio-share-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 20px rgba(233, 30, 140, 0.3);
}

.studio-share-btn:active {
    transform: scale(0.98);
}

/* Activity Feed */
.studio-activity-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.studio-activity-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
}

.studio-activity-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #30B3B8 0%, #E91E8C 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: system-ui, sans-serif;
    font-size: 16px;
    font-weight: 600;
    color: #ffffff;
    flex-shrink: 0;
}

.studio-activity-avatar.door {
    background: linear-gradient(135deg, #E91E8C 0%, #F67854 100%);
}

.studio-activity-content {
    flex: 1;
    min-width: 0;
}

.studio-activity-text {
    font-family: system-ui, sans-serif;
    font-size: 14px;
    color: #ffffff;
    margin: 0;
}

.studio-activity-text .name {
    font-weight: 600;
}

.studio-activity-text .action {
    color: #8b8ba3;
}

.studio-activity-text .target {
    color: #30B3B8;
}

.studio-activity-points {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    padding: 4px 10px;
    background: rgba(48, 179, 184, 0.15);
    border-radius: 12px;
    font-family: ui-monospace, 'SF Mono', Monaco, 'Courier New', monospace;
    font-size: 12px;
    font-weight: 600;
    color: #30B3B8;
    flex-shrink: 0;
}

.studio-activity-time {
    font-family: ui-monospace, 'SF Mono', Monaco, 'Courier New', monospace;
    font-size: 11px;
    color: #6d6d85;
    flex-shrink: 0;
}

/* Leaderboard */
.studio-leaderboard-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 12px;
}

.studio-leaderboard-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid transparent;
    border-radius: 14px;
}

.studio-leaderboard-card.self {
    background: rgba(233, 30, 140, 0.08);
    border-color: rgba(233, 30, 140, 0.3);
}

.studio-leaderboard-rank {
    font-family: ui-monospace, 'SF Mono', Monaco, 'Courier New', monospace;
    font-size: 13px;
    font-weight: 600;
    color: #6d6d85;
    width: 24px;
    text-align: center;
}

.studio-leaderboard-card.self .studio-leaderboard-rank {
    color: #E91E8C;
}

.studio-leaderboard-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, #30B3B8 0%, #E91E8C 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: system-ui, sans-serif;
    font-size: 18px;
    font-weight: 600;
    color: #ffffff;
    flex-shrink: 0;
}

.studio-leaderboard-info {
    flex: 1;
    min-width: 0;
}

.studio-leaderboard-name {
    font-family: system-ui, sans-serif;
    font-size: 15px;
    font-weight: 600;
    color: #ffffff;
    margin: 0 0 4px 0;
}

.studio-leaderboard-tier {
    font-family: ui-monospace, 'SF Mono', Monaco, 'Courier New', monospace;
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 0.5px;
    color: #8b8ba3;
}

.studio-leaderboard-stats {
    text-align: right;
}

.studio-leaderboard-points {
    font-family: 'Archivo', system-ui, sans-serif;
    font-size: 18px;
    font-weight: 700;
    color: #ffffff;
}

.studio-leaderboard-rate {
    font-family: ui-monospace, 'SF Mono', Monaco, 'Courier New', monospace;
    font-size: 11px;
    color: #30B3B8;
}

.studio-leaderboard-caption {
    font-family: system-ui, sans-serif;
    font-size: 13px;
    color: #6d6d85;
    text-align: center;
    margin: 0;
}

.studio-leaderboard-separator {
    text-align: center;
    color: #6d6d85;
    font-size: 16px;
    letter-spacing: 4px;
    padding: 8px 0;
}

/* Bottom Spacer */
.studio-bottom-spacer {
    height: 20px;
}

/* Mobile Responsive */
@media (max-width: 390px) {
    .studio-dashboard {
        padding: 0 16px 110px 16px;
    }

    .studio-points-number {
        font-size: 72px;
    }

    .studio-climb-labels {
        font-size: 8px;
    }
}

/* ============================================
   ARTIST PROFILE VIEW STYLES
   ============================================ */
#profile-view {
    background: linear-gradient(135deg, #1a1a2e 0%, #0f0f1e 100%);
}

/* Remove ALL spacing from sections in profile view */
#profile-view .section {
  margin: 0 !important;
  padding: 0 !important;
}

/* Only the About section should have spacing */
#profile-view .section:has(.bio-text) {
  margin: 20px 0 !important;
  padding: 0 !important;
}

/* Tabs should have no extra spacing */
#profile-tabs-container {
  margin: 0 !important;
  padding: 0 0 100px 0 !important;
}

.profile-header {
    position: relative;
    width: 100%;
    height: 200px;
    background: linear-gradient(135deg, #30B3B8 0%, #1a7f84 100%);
    z-index: 1;
}

.profile-header.has-banner {
    background-size: cover;
    background-position: center;
}

.profile-pic-container {
    position: absolute;
    bottom: -50px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 100;
}

.profile-pic-large {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 4px solid #1a1a2e;
    object-fit: cover;
    background: #2a2a3e;
}

.profile-content {
    padding: 60px 20px 150px;
    max-width: 800px;
    margin: 0 auto;
}

.profile-name {
    text-align: center;
    margin-bottom: 5px;
}

.profile-name h1 {
    font-size: 28px;
    margin: 0 0 5px 0;
    color: white;
}

.profile-location {
    text-align: center;
    color: #888;
    font-size: 14px;
    margin-bottom: 20px;
}

.stats-row {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin: 20px 0 30px;
    padding: 20px;
    background: #252538;
    border-radius: 12px;
}

.stat-item {
    text-align: center;
}

.stat-value {
    font-size: 24px;
    font-weight: bold;
    color: white;
    display: block;
}

.stat-label {
    font-size: 12px;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.action-buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 20px;
}

.btn-follow,
.btn-logout {
    width: 100%;
    padding: 14px;
    border-radius: 100px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-follow {
    background: linear-gradient(135deg, #E91E8C, #F67854);
    color: white;
    border: none;
}

.btn-follow.following {
    background: transparent;
    border: 2px solid #E91E8C;
    color: #E91E8C;
}

.btn-support {
    padding: 12px 24px;
    background: linear-gradient(135deg, #30B3B8, #26a5aa);
    color: white;
    border: none;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-support:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(48, 179, 184, 0.4);
}

.btn-support.supporting {
    background: transparent;
    border: 2px solid #30B3B8;
    color: #30B3B8;
}

.btn-support:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Profile buttons row - Follow and Support on same line */
.profile-buttons-row {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 20px;
    width: 100%;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

.profile-buttons-row .public-profile-cta-primary {
    flex: 1.5;
    min-width: 0;
}

.profile-buttons-row .btn-support {
    flex: 1;
    min-width: 0;
}

/* Locked support button - clickable but visually subdued */
.btn-support.locked {
    opacity: 0.5;
    cursor: pointer;
    position: relative;
}

.btn-support.locked:hover {
    opacity: 0.65;
    transform: none;
    box-shadow: none;
}

/* Support locked tooltip */
.support-locked-tooltip {
    position: fixed;
    z-index: 10000;
    pointer-events: none;
    animation: tooltipFadeIn 0.2s ease-out;
    transform: translateX(-50%);
}

.support-locked-content {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(0, 0, 0, 0.9);
    border: 1px solid rgba(48, 179, 184, 0.3);
    border-radius: 12px;
    padding: 12px 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.support-locked-icon {
    font-size: 16px;
}

.support-locked-text {
    color: #fff;
    font-size: 14px;
    white-space: nowrap;
}

.support-locked-text strong {
    color: #30B3B8;
}

@keyframes tooltipFadeIn {
    from {
        opacity: 0;
        transform: translateY(5px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes tooltipFadeOut {
    from {
        opacity: 1;
        transform: translateY(0);
    }
    to {
        opacity: 0;
        transform: translateY(5px);
    }
}

.btn-share {
    padding: 12px 24px;
    background: transparent;
    border: 2px solid #30B3B8;
    color: #30B3B8;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-share:hover {
    background: rgba(48, 179, 184, 0.1);
}

.btn-logout {
    padding: 12px 24px;
    background: transparent;
    border: 2px solid #F67854;
    color: #F67854;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-logout:hover {
    background: rgba(246, 120, 84, 0.1);
    border-color: #E91E8C;
    color: #E91E8C;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 30px;
}

.social-link {
    width: 44px; /* ⭐ Slightly larger */
    height: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(48, 179, 184, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #30B3B8; /* ⭐ Teal stroke */
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-link:hover {
    background: rgba(48, 179, 184, 0.15);
    border-color: #30B3B8;
    transform: translateY(-3px);
}

.social-link svg {
    stroke: currentColor;
}

/* Horizontal scrollable genre tags */
/* Horizontal scrollable genre tags */
.genre-tags {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 4px 0;
    margin-bottom: 20px;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none; /* Firefox */
}

.genre-tags::-webkit-scrollbar {
    display: none; /* Chrome, Safari */
}

.genre-tag {
    flex: 0 0 auto; /* Don't shrink, don't grow */
    scroll-snap-align: start;
    white-space: nowrap;
    /* ADD THESE STYLES: */
    background: #E91E8C;
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
}

.meta-info {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 30px;
    font-size: 13px;
    color: #888;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 5px;
}

.section {
    margin: 40px 0;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.section-title {
    font-size: 20px;
    font-weight: bold;
    color: white;
}

.view-all-link {
    color: #30B3B8;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
}

.view-all-link:hover {
    color: #E91E8C;
}

.bio-text {
    color: #ccc;
    line-height: 1.6;
    margin-bottom: 20px;
}

.bio-text.collapsed {
    max-height: 4.8em;
    overflow: hidden;
    position: relative;
}

.bio-text.collapsed::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2em;
    background: linear-gradient(transparent, #1a1a2e);
}

.read-more-btn {
    color: #30B3B8;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    padding: 0;
}

.read-more-btn:hover {
    color: #E91E8C;
}

.albums-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.album-card {
    cursor: pointer;
    transition: transform 0.3s ease;
}

.album-card:hover {
    transform: translateY(-5px);
}

.album-cover {
    width: 100%;
    aspect-ratio: 1;
    border-radius: 12px;
    object-fit: cover;
    margin-bottom: 10px;
    background: #252538;
}

.album-title {
    font-size: 14px;
    font-weight: 600;
    color: white;
    margin-bottom: 3px;
}

.album-year {
    font-size: 12px;
    color: #888;
}

.top-songs-list {
    background: #252538;
    border-radius: 12px;
    overflow: hidden;
}

.song-item-profile {
    display: flex;
    align-items: center;
    padding: 15px;
    border-bottom: 1px solid #1a1a2e;
    transition: background 0.2s ease;
    cursor: pointer;
}

.song-item-profile:hover {
    background: #2a2a3e;
}

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

.song-rank {
    font-size: 18px;
    font-weight: bold;
    color: #888;
    width: 30px;
    text-align: center;
}

.song-cover-small {
    width: 50px;
    height: 50px;
    border-radius: 8px;
    object-fit: cover;
    margin: 0 15px;
    background: #1a1a2e;
}

.song-info {
    flex: 1;
}

.song-title-small {
    font-size: 15px;
    font-weight: 600;
    color: white;
    margin-bottom: 3px;
}

.song-plays {
    font-size: 12px;
    color: #888;
}

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

.btn-play-small,
.btn-save-small {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.btn-play-small {
    background: #E91E8C;
    color: white;
}

.btn-play-small:hover {
    background: #d01a7c;
    transform: scale(1.1);
}

.btn-save-small {
    background: transparent;
    border: 2px solid #30B3B8;
    color: #30B3B8;
}

.btn-save-small:hover {
    background: rgba(48, 179, 184, 0.1);
}

.btn-save-small.saved {
    background: #30B3B8;
    color: white;
}
.btn-studio {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px 32px;
    background: linear-gradient(135deg, #30B3B8 0%, #E91E8C 100%);
    color: white;
    border: none;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    font-size: 16px;
}

.btn-studio:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(48, 179, 184, 0.4);
}

/* ============================================
   ALBUM VIEW STYLES  
   ============================================ */
#album-view {
    background: #000000;
    padding-bottom: 150px;
}

.album-header {
    padding: 30px 20px;
    display: flex;
    gap: 20px;
    align-items: flex-start;
    background: linear-gradient(180deg, rgba(48, 179, 184, 0.1) 0%, rgba(0, 0, 0, 0) 100%);
}

.album-art {
    width: 140px;
    height: 140px;
    border-radius: 8px;
    object-fit: cover;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
    flex-shrink: 0;
}

.album-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.artist-name {
    font-size: 16px;
    color: #30B3B8;
    margin-bottom: 12px;
    cursor: pointer;
}

.artist-name:hover {
    text-decoration: underline;
}

.album-meta {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.6);
}

.album-tag {
    display: inline-block;
    padding: 4px 10px;
    background: rgba(48, 179, 184, 0.15);
    border-radius: 12px;
    font-size: 12px;
    color: #30B3B8;
    margin-top: 8px;
}

.tracklist-container {
    padding: 0 20px 20px;
}

.tracklist-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.tracklist-title {
    font-size: 18px;
    font-weight: 600;
}

.track-count {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
}

.track-row {
    display: flex;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: background 0.2s;
    cursor: pointer;
}

.track-row:hover {
    background: rgba(255, 255, 255, 0.03);
}

.track-row.playing {
    background: rgba(48, 179, 184, 0.1);
}

.track-number {
    width: 40px;
    text-align: center;
    font-size: 15px;
    color: rgba(255, 255, 255, 0.5);
}

.track-row.playing .track-number {
    color: #30B3B8;
}

.track-info {
    flex: 1;
    min-width: 0;
}

.track-title {
    font-size: 15px;
    font-weight: 500;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.track-row.playing .track-title {
    color: #30B3B8;
}

.track-meta {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.5);
}

.track-duration {
    width: 60px;
    text-align: right;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.5);
    margin-right: 12px;
}

.track-actions {
    display: flex;
    gap: 8px;
}

.btn-play-album,
.btn-save-album {
    width: 35px;
    height: 35px;
    min-width: 35px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    font-size: 14px;
    flex-shrink: 0;
}

.btn-play-album {
    background: #E91E8C;
    border: none;
    color: white;
}

.btn-play-album:hover {
    background: #d01a7c;
    transform: scale(1.1);
}

.btn-save-album {
    background: transparent;
    border: 2px solid #30B3B8;
    color: #30B3B8;
}

.btn-save-album:hover {
    background: rgba(48, 179, 184, 0.1);
}

.btn-save-album.saved {
    background: #30B3B8;
    color: white;
}
/* Playing state for tracks */
.track-row.playing {
    background: rgba(48, 179, 184, 0.15) !important;
    border-left: 3px solid #30B3B8;
}

.track-row.playing .track-title {
    color: #30B3B8;
    font-weight: 600;
}

.track-row.playing .track-number {
    color: #30B3B8;
}

/* Animated Equalizer */
.equalizer {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: 2px;
    height: 16px;
    width: 20px;
}

.equalizer span {
    width: 3px;
    height: 100%;
    background: #30B3B8;
    border-radius: 2px;
    animation: equalize 0.8s ease-in-out infinite;
}

.equalizer span:nth-child(1) {
    animation-delay: 0s;
}

.equalizer span:nth-child(2) {
    animation-delay: 0.2s;
}

.equalizer span:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes equalize {
    0%, 100% { height: 30%; }
    50% { height: 100%; }
}

/* Pause equalizer animation when track is paused */
.track-row.playing.paused .equalizer span {
    animation-play-state: paused;
    height: 30%;
}

/* ============================================
   EDIT PROFILE VIEW STYLES
   ============================================ */
#edit-profile-view {
    background: linear-gradient(135deg, #1a1a2e 0%, #0f0f1e 100%);
    min-height: 100vh;
    padding-bottom: 150px;
}

.edit-container {
    max-width: 600px;
    margin: 40px auto;
    padding: 0 20px;
}

.card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(48, 179, 184, 0.2);
    border-radius: 16px;
    padding: 40px;
}

.title {
    font-size: 32px;
    color: #ffffff;
    text-align: center;
    margin-bottom: 40px;
}

.avatar-row {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 30px;
    padding-bottom: 30px;
    border-bottom: 1px solid rgba(48, 179, 184, 0.2);
}

.avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    border: 3px solid #30B3B8;
    object-fit: cover;
    flex-shrink: 0;
}

.avatar-btn {
    padding: 10px 20px;
    background: #30B3B8;
    color: #ffffff;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    font-size: 14px;
    transition: background 0.3s;
}

.avatar-btn:hover {
    background: #E91E8C;
}

.banner-preview-container {
    margin-bottom: 15px;
}

.banner-preview {
    width: 100%;
    height: 150px;
    border-radius: 12px;
    background: linear-gradient(135deg, #30B3B8 0%, #1a7f84 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
}

.banner-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.banner-placeholder {
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
}

.field {
    margin-bottom: 25px;
}

.label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    color: #30B3B8 !important; /* Force teal color */
    font-weight: 500;
}

.input {
    width: 100%;
    padding: 12px 16px;
    font-size: 16px;
    border: 2px solid rgba(48, 179, 184, 0.3);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
    color: #ffffff !important; /* Force white text */
    font-family: inherit;
}

.input::placeholder {
    color: rgba(255, 255, 255, 0.4) !important; /* Gray placeholder */
}

.textarea {
    width: 100%;
    padding: 12px 16px;
    font-size: 16px;
    border: 2px solid rgba(48, 179, 184, 0.3);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
    color: #ffffff !important; /* Force white text */
    font-family: inherit;
    resize: vertical;
    min-height: 100px;
}

.textarea:focus {
    outline: none;
    border-color: #E91E8C;
    background: rgba(255, 255, 255, 0.08);
}

.textarea::placeholder {
    color: rgba(255, 255, 255, 0.4) !important;
}

.hint {
    display: block;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.6) !important; /* Lighter gray for hint */
    margin-top: 5px;
}

.counter {
    text-align: right;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.4);
    margin-top: 5px;
}

.button-row {
    display: flex;
    gap: 10px;
    margin-top: 30px;
}

.save, .cancel {
    flex: 1;
    padding: 15px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.save {
    background: #E91E8C;
    color: #ffffff;
}

.save:hover:not(:disabled) {
    background: #F67854;
    transform: translateY(-2px);
}

.save:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.cancel {
    background: transparent;
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: rgba(255, 255, 255, 0.8);
}

.cancel:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: #30B3B8;
    color: #30B3B8;
}

.message {
    text-align: center;
    margin-top: 15px;
    font-size: 14px;
    min-height: 20px;
}

.message.success {
    color: #30B3B8;
}

.message.error {
    color: #F67854;
}

/* ============================================
   LISTENER EDIT VIEW STYLES
   ============================================ */
#listener-edit-view {
    background: linear-gradient(135deg, #1a1a2e 0%, #0f0f1e 100%);
    min-height: 100vh;
    padding-bottom: 150px;
}

#listener-edit-view .input {
    color: #ffffff !important;
    background: rgba(255, 255, 255, 0.05) !important;
    border: 2px solid rgba(48, 179, 184, 0.3) !important;
}

#listener-edit-view .input::placeholder {
    color: rgba(255, 255, 255, 0.4) !important;
}

#listener-edit-view .label {
    color: #30B3B8 !important;
}

#listener-edit-view .hint {
    color: rgba(255, 255, 255, 0.6) !important;
}

/* ============================================
   TAP TO START OVERLAY - ADD TO views.css
   ============================================ */

.tap-to-start-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(10px);
    z-index: 9999; /* ⭐ ABOVE EVERYTHING */
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.tap-to-start-content {
    text-align: center;
    color: white;
}

.tap-icon {
    font-size: 80px;
    margin-bottom: 20px;
    animation: bounce 1.5s ease-in-out infinite;
}

.tap-title {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 8px;
    color: #30B3B8;
}

.tap-subtitle {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.7);
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

/* ============================================
   STAGES VIEW STYLES
   Theatrical stage design for artist discovery
   ============================================ */

/* Main Container */
#discover-view {
    background: #000000;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    overflow: hidden;
    z-index: 1;
}

/* ============================================
   STAGE HEADER - Logo + Create Button
   ============================================ */
/* ============================================
   STAGE HEADER ROW - Logo, Toggle, Create Button
   ============================================ */
.stage-header-row {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    padding-top: env(safe-area-inset-top, 0);
    background: linear-gradient(to bottom,
        rgba(0, 0, 0, 0.9) 0%,
        rgba(0, 0, 0, 0.6) 60%,
        transparent 100%
    );
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    padding-top: calc(16px + env(safe-area-inset-top, 0));
    gap: 16px;
    z-index: 100;
}

.stage-header-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.stage-logo-img {
    width: 32px;
    height: 32px;
    object-fit: contain;
}

.stage-logo-text {
    font-family: 'Archivo', sans-serif;
    font-size: 20px;
    font-weight: 700;
    color: #ffffff;
}

.stage-logo-dot {
    color: #E91E8C;
}

/* All/Following Toggle - TealRoom Style */
.stage-feed-toggle {
    position: relative;
    display: flex;
    background: rgba(48, 179, 184, 0.1);
    border-radius: 25px;
    padding: 4px;
    gap: 4px;
    flex-shrink: 0;
}

.stage-toggle-pill {
    position: relative;
    padding: 8px 20px;
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    border-radius: 20px;
    transition: color 0.3s ease;
    z-index: 2;
    white-space: nowrap;
}

.stage-toggle-pill.active {
    color: white;
}

.stage-toggle-slider {
    position: absolute;
    top: 4px;
    left: 4px;
    height: calc(100% - 8px);
    width: calc(50% - 6px);
    background: #30B3B8;
    border-radius: 20px;
    transition: transform 0.3s ease;
    z-index: 1;
}

.stage-feed-toggle[data-active="following"] .stage-toggle-slider {
    transform: translateX(100%);
}

/* Header Actions - Create Button */
.stage-header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.stage-header-icon-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.stage-header-icon-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: scale(1.05);
}

.stage-header-icon-btn:active {
    transform: scale(0.95);
}

.stage-create-icon {
    background: linear-gradient(135deg, #30B3B8 0%, #E91E8C 100%);
    border: none;
}

.stage-create-icon:hover {
    transform: scale(1.1);
    box-shadow: 0 0 16px rgba(48, 179, 184, 0.5);
}

.stage-create-icon svg {
    stroke: white;
}

/* ============================================
   STAGE HINT OVERLAY - "next artist" first visit hint
   ============================================ */
.stage-hint-overlay {
    position: fixed;
    bottom: 200px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 98;
    pointer-events: none;
    animation: fadeInHint 0.5s ease forwards;
}

@keyframes fadeInHint {
    from { opacity: 0; transform: translateX(-50%) translateY(10px); }
    to { opacity: 1; transform: translateX(-50%) translateY(0); }
}

.stage-hint-text {
    color: #ffffff;
    font-size: 14px;
    font-weight: 600;
    text-transform: lowercase;
    letter-spacing: 0.5px;
}

.stage-hint-underline {
    width: 80px;
    height: 2px;
    background: #E91E8C;
    margin-top: 4px;
    border-radius: 2px;
}

.stage-hint-arrow {
    margin-top: 8px;
    animation: bounceDown 1s ease-in-out infinite;
}

@keyframes bounceDown {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(8px); }
}

/* ============================================
   RIGHT RAIL - Vertical action buttons
   ============================================ */
.stage-right-rail {
    position: fixed;
    right: 12px;
    bottom: 160px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 18px;
    z-index: 95;
}

/* Profile container with follow badge and tier frame */
.rail-profile-container {
    position: relative;
    margin-bottom: 4px;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    padding: 2px;
    background: #30B3B8; /* Default teal */
}

/* Tier frames for Stage rail profile */
.rail-profile-container.tier-frame-opener {
    background: #30B3B8 !important;
}

.rail-profile-container.tier-frame-rising {
    background: #F67854 !important;
}

.rail-profile-container.tier-frame-headliner {
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 50%, #FFD700 100%) !important;
}

.rail-profile-container.tier-frame-legend {
    background: linear-gradient(135deg, #8B5CF6 0%, #EC4899 100%) !important;
}

.rail-profile-container.tier-frame-icon {
    background: linear-gradient(135deg, #E91E8C 0%, #30B3B8 100%) !important;
}

.rail-profile-pic {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: none;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.rail-profile-pic:active {
    transform: scale(0.95);
}

.rail-follow-badge {
    position: absolute;
    bottom: -6px;
    left: 50%;
    transform: translateX(-50%);
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #E91E8C;
    border: 2px solid #000;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.rail-follow-badge[data-following="true"] {
    background: #30B3B8;
}

.rail-follow-badge[data-following="true"] .follow-plus {
    display: none;
}

.rail-follow-badge[data-following="true"] .follow-check {
    display: block !important;
}

.rail-follow-badge:active {
    transform: translateX(-50%) scale(0.9);
}

/* Rail action buttons */
.rail-action-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    transition: transform 0.2s ease;
}

.rail-action-btn:active {
    transform: scale(0.9);
}

.rail-action-btn svg {
    width: 32px;
    height: 32px;
    fill: rgba(255, 255, 255, 0.95);
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.5));
    transition: all 0.2s ease;
}

.rail-action-label {
    font-size: 12px;
    font-weight: 600;
    color: white;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.7);
}

/* Like button active state */
#stage-like-btn[data-liked="true"] svg {
    fill: #E91E8C;
    animation: likePopIn 0.3s ease;
}

@keyframes likePopIn {
    0% { transform: scale(1); }
    50% { transform: scale(1.3); }
    100% { transform: scale(1); }
}

/* Save button active state */
#stage-save-btn[data-saved="true"] svg {
    fill: #30B3B8;
}

/* Rail Vinyl - Always spinning */
.rail-vinyl-container {
    width: 48px;
    height: 48px;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.rail-vinyl-container:active {
    transform: scale(0.95);
}

.rail-vinyl {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    position: relative;
    background: #1a1a1a;
    border: 2px solid rgba(255, 255, 255, 0.3);
    overflow: hidden;
    animation: spin 4s linear infinite;
}

.rail-vinyl-cover {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.rail-vinyl-grooves {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background:
        radial-gradient(circle at center,
            transparent 20%,
            rgba(0,0,0,0.2) 20%,
            rgba(0,0,0,0.2) 22%,
            transparent 22%,
            transparent 35%,
            rgba(0,0,0,0.2) 35%,
            rgba(0,0,0,0.2) 37%,
            transparent 37%
        );
    pointer-events: none;
}

.rail-vinyl-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #30B3B8;
    border: 2px solid #fff;
}
/* ============================================
   ARTIST OVERLAY - Left side of video
   ============================================ */
.stage-artist-overlay {
    position: fixed;
    bottom: 160px;
    left: 16px;
    right: 80px;
    z-index: 94;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.artist-overlay-name {
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
}

.artist-name-text {
    color: #ffffff;
    font-size: 20px;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
}

.artist-overlay-name:active .artist-name-text {
    color: #30B3B8;
}

.verified-badge {
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.5));
}

/* Stage tier badge - next to artist name */
.artist-tier-badge {
    display: inline-flex;
    align-items: center;
}

.artist-tier-badge .tier-badge {
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.5));
}

.artist-tier-badge .tier-badge svg {
    width: 18px;
    height: 18px;
}

/* Caption within artist overlay */
.stage-caption {
    cursor: pointer;
}

.stage-caption-text {
    color: #ffffff;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.4;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: all 0.3s ease;
    margin: 0;
}

.stage-caption.expanded .stage-caption-text {
    -webkit-line-clamp: unset;
    display: block;
    max-height: 200px;
    overflow-y: auto;
}

.stage-caption-more {
    color: rgba(255, 255, 255, 0.7);
    font-size: 13px;
    font-weight: 600;
    display: none;
}

.stage-caption.truncated .stage-caption-more {
    display: inline;
}

.stage-caption.expanded .stage-caption-more {
    display: none;
}

/* Clips indicator */
.stage-clips-indicator {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 4px;
}

.clips-count {
    color: rgba(255, 255, 255, 0.8);
    font-size: 13px;
    font-weight: 500;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.6);
}

.clips-pills {
    display: flex;
    gap: 4px;
}

.clips-pill {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    transition: all 0.3s ease;
}

.clips-pill.active {
    background: #E91E8C;
    width: 16px;
    border-radius: 3px;
}

.clips-swipe-hint {
    color: rgba(255, 255, 255, 0.6);
    font-size: 12px;
    font-weight: 500;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.6);
}

.stage-clips-indicator.single .clips-swipe-hint {
    display: none;
}

/* Feed Toggle - Following | All */
.stages-feed-toggle {
    display: flex;
    align-items: center;
}

.stages-toggle-pill {
    padding: 6px 12px;
    border: none;
    background: transparent;
    color: rgba(255, 255, 255, 0.5);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: color 0.3s ease;
}

.stages-toggle-pill.active {
    color: #ffffff;
}

.stages-toggle-pill:active {
    transform: scale(0.95);
}

.stages-create-btn {
    background: linear-gradient(135deg, #E91E8C 0%, #F67854 100%);
    color: white;
    border: none;
    border-radius: 20px;
    padding: 8px 16px;
    font-size: 13px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 4px;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(233, 30, 140, 0.3);
    transition: all 0.2s ease;
    white-space: nowrap;
}

.stages-create-btn:active {
    transform: scale(0.95);
}

.create-btn-icon {
    font-size: 16px;
    font-weight: 700;
}

/* ============================================
   STAGES CONTAINER - Vertical Scroll
   ============================================ */
.stages-container {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    overflow-y: scroll;
    scroll-snap-type: y mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.stages-container::-webkit-scrollbar {
    display: none;
}

/* Loading State */
.stages-loading {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: rgba(255, 255, 255, 0.7);
}

.stages-loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(48, 179, 184, 0.3);
    border-top-color: #30B3B8;
    border-radius: 50%;
    margin: 0 auto 16px;
    animation: spin 1s linear infinite;
}

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

/* Empty State */
.stages-empty {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: rgba(255, 255, 255, 0.7);
    padding: 20px;
}

.stages-empty-icon {
    font-size: 64px;
    margin-bottom: 16px;
}

.stages-empty h2 {
    font-size: 22px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 8px;
}

.stages-empty p {
    font-size: 15px;
    line-height: 1.5;
}

/* ============================================
   INDIVIDUAL STAGE (One per Artist)
   ============================================ */
.stage {
    height: 100vh;
    height: 100dvh;
    width: 100%;
    scroll-snap-align: start;
    position: relative;
    overflow: hidden;
    /* Account for bottom nav only - song dock floats over video */
    padding-bottom: 80px;
}

/* Horizontal Video Wrapper */
.stage-videos-wrapper {
    display: flex;
    width: 100%;
    height: 100%;
    overflow-x: scroll;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -ms-overflow-style: none;
    -webkit-overflow-scrolling: touch;
}

.stage-videos-wrapper::-webkit-scrollbar {
    display: none;
}

/* Video slide states */
.stage-video {
    flex: 0 0 100%;
    width: 100%;
    height: 100%;
    scroll-snap-align: start;
    position: relative;
    background: #000;
    overflow: hidden;
}

/* Poster/Cover art background */
.stage-video-poster {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 1;
    filter: blur(20px);
    transform: scale(1.1);
    opacity: 0.5;
}

/* When video is loaded, hide poster */
.stage-video.loaded .stage-video-poster {
    opacity: 0;
    transition: opacity 0.3s ease;
}

.stage-video-player {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 2;
    opacity: 0;
    transition: opacity 0.3s ease;
}

/* Show video when loaded */
.stage-video.loaded .stage-video-player {
    opacity: 1;
}

/* Loading spinner */
.stage-video-spinner {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.stage-video.loading .stage-video-spinner {
    opacity: 1;
}

.spinner-circle {
    width: 48px;
    height: 48px;
    border: 3px solid rgba(255, 255, 255, 0.2);
    border-top-color: #30B3B8;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* Mute indicator */
.stage-mute-indicator {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 15;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.stage-mute-indicator svg {
    filter: drop-shadow(0 2px 8px rgba(0,0,0,0.5));
}

.stage-mute-indicator span {
    color: white;
    font-size: 14px;
    font-weight: 600;
    text-shadow: 0 2px 8px rgba(0,0,0,0.5);
    background: rgba(0, 0, 0, 0.6);
    padding: 6px 14px;
    border-radius: 20px;
}

/* Show mute indicator when muted and video is playing */
.stage-video.muted.loaded .stage-mute-indicator {
    opacity: 1;
}

/* Hide mute indicator after 3 seconds */
.stage-video.muted.loaded .stage-mute-indicator {
    animation: fadeOutMute 3s forwards;
}

@keyframes fadeOutMute {
    0%, 70% { opacity: 1; }
    100% { opacity: 0; }
}

/* Tap to play/pause overlay */
.stage-video::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 120px; /* Don't cover stage floor */
    z-index: 5;
}

/* Play/Pause indicator */
.stage-play-indicator {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    width: 80px;
    height: 80px;
    background: rgba(0, 0, 0, 0.6);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    z-index: 10;
    transition: transform 0.2s ease;
}

.stage-play-indicator.show {
    transform: translate(-50%, -50%) scale(1);
}

.stage-play-indicator svg {
    width: 32px;
    height: 32px;
    fill: #ffffff;
}

/* Pause state - play overlay shown via JS, no CSS pseudo-elements */
/* Error state */
.stage-video.error .stage-video-poster {
    filter: blur(5px);
    opacity: 0.8;
}

.stage-video.error::after {
    content: 'Video unavailable';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 16px;
    font-weight: 500;
    background: rgba(0, 0, 0, 0.7);
    padding: 12px 24px;
    border-radius: 25px;
    z-index: 10;
}

/* ============================================
   VIDEO POSITION DOTS
   ============================================ */
/* Video position dots - positioned above stage floor */
.stage-video-dots {
    position: fixed;
    bottom: 185px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 95;
    background: rgba(0, 0, 0, 0.5);
    padding: 10px 16px;
    border-radius: 20px;
    backdrop-filter: blur(10px);
}

.stage-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    transition: all 0.3s ease;
    cursor: pointer;
}

.stage-dot.active {
    background: #30B3B8;
    width: 24px;
    border-radius: 4px;
}

.stage-video-dots.single {
    display: none;
}

/* Hide the old floating dots */
.stage-video-dots {
    display: none !important;
}

/* ============================================
   VIDEO COUNT & NAV (integrated in stage floor)
   ============================================ */

/* Video count in parentheses after song title */
.stage-floor-video-count {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.5);
    font-weight: 400;
    margin-left: 6px;
}

.stage-floor-video-count.single {
    display: none;
}

/* Nav buttons container in bottom row */
.stage-floor-nav {
    display: flex;
    gap: 8px;
    margin-left: auto;
}

.stage-floor-nav.single {
    display: none;
}

/* Nav arrow buttons - larger and more tappable */
.stage-nav-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: none;
    background: rgba(48, 179, 184, 0.2);
    color: #30B3B8;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.stage-nav-btn:hover {
    background: rgba(48, 179, 184, 0.3);
}

.stage-nav-btn:active {
    transform: scale(0.95);
    background: rgba(48, 179, 184, 0.4);
}

.stage-nav-btn:disabled {
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.3);
    cursor: default;
}

.stage-nav-btn:disabled:active {
    transform: none;
}

/* ============================================
   PLAY OVERLAY - Center play button when paused
   ============================================ */
.stage-play-overlay {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    background: rgba(0, 0, 0, 0.6);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 96;
    pointer-events: none;
    animation: fadeIn 0.2s ease;
}

.stage-play-overlay svg {
    margin-left: 4px;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translate(-50%, -50%) scale(0.8); }
    to { opacity: 1; transform: translate(-50%, -50%) scale(1); }
}

/* ============================================
   WELCOME STAGE - For unauthenticated users
   ============================================ */
.welcome-stage {
    position: relative;
}

.welcome-stage-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.welcome-unmute-btn {
    position: absolute;
    top: 80px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 20px;
    padding: 8px 16px;
    color: white;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    z-index: 20;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transition: all 0.2s ease;
}

.welcome-unmute-btn:hover {
    background: rgba(0, 0, 0, 0.8);
    border-color: rgba(255, 255, 255, 0.5);
}

.welcome-unmute-btn svg {
    flex-shrink: 0;
}

.unmute-label {
    white-space: nowrap;
}

.welcome-stage-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        rgba(18, 19, 42, 0.3) 0%,
        rgba(18, 19, 42, 0.1) 30%,
        rgba(18, 19, 42, 0.1) 50%,
        rgba(18, 19, 42, 0.6) 80%,
        rgba(18, 19, 42, 0.95) 100%
    );
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding-bottom: calc(100px + env(safe-area-inset-bottom, 0));
    z-index: 10;
}

.welcome-stage-content {
    text-align: center;
    padding: 0 24px;
    max-width: 320px;
}

.welcome-stage-title {
    font-size: 28px;
    font-weight: 800;
    color: white;
    margin: 0 0 8px 0;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

.welcome-stage-subtitle {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.85);
    margin: 0 0 24px 0;
    line-height: 1.5;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
}

.welcome-stage-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.welcome-btn-signup {
    width: 100%;
    padding: 16px 24px;
    font-size: 16px;
    font-weight: 700;
    border: none;
    border-radius: 30px;
    background: linear-gradient(135deg, #30B3B8 0%, #2BC8C0 100%);
    color: white;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 4px 15px rgba(48, 179, 184, 0.4);
}

.welcome-btn-signup:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(48, 179, 184, 0.5);
}

.welcome-btn-signup:active {
    transform: translateY(0);
}

.welcome-btn-login {
    width: 100%;
    padding: 14px 24px;
    font-size: 15px;
    font-weight: 600;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 30px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    cursor: pointer;
    transition: all 0.2s ease;
    backdrop-filter: blur(10px);
}

.welcome-btn-login:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
}

.welcome-stage-hint {
    margin-top: 20px;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.welcome-stage-hint::before {
    content: '↑';
    font-size: 16px;
    animation: bounceUp 1.5s ease-in-out infinite;
}

@keyframes bounceUp {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-4px); }
}

/* ============================================
   SONG DOCK - Floating card over video
   ============================================ */
.stage-song-dock {
    position: fixed;
    bottom: calc(90px + env(safe-area-inset-bottom, 0));
    left: 16px;
    right: 12px;
    background: rgba(37, 37, 66, 0.95);
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 999;
    border-radius: 14px;
    border: 1px solid rgba(48, 179, 184, 0.3);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

/* Play button - circular teal */
.song-dock-play-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #30B3B8;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(48, 179, 184, 0.4);
}

.song-dock-play-btn svg {
    width: 20px;
    height: 20px;
}

.song-dock-play-btn:active {
    transform: scale(0.95);
}

.song-dock-play-btn .play-icon {
    margin-left: 3px;
}

.song-dock-play-btn.playing .play-icon {
    display: none;
}

.song-dock-play-btn.playing .pause-icon {
    display: block !important;
}

/* Song info */
.song-dock-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.song-dock-label {
    color: rgba(255, 255, 255, 0.5);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.song-dock-title {
    color: #ffffff;
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Add to library button (+/checkmark) */
.song-dock-add-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    cursor: pointer;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.song-dock-add-btn:active {
    transform: scale(0.95);
}

.song-dock-add-btn[data-saved="true"] {
    background: rgba(48, 179, 184, 0.2);
    border-color: #30B3B8;
}

.song-dock-add-btn[data-saved="true"] .add-icon {
    display: none;
}

.song-dock-add-btn[data-saved="true"] .check-icon {
    display: block !important;
}

/* Spinning vinyl in song dock */
.song-dock-vinyl {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    position: relative;
    cursor: pointer;
    flex-shrink: 0;
    overflow: hidden;
    border: 2px solid rgba(255, 255, 255, 0.3);
    animation: spin 4s linear infinite;
}

.song-dock-vinyl:active {
    transform: scale(0.95);
}

.song-dock-vinyl-cover {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.song-dock-vinyl-grooves {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background:
        radial-gradient(circle at center,
            transparent 20%,
            rgba(0,0,0,0.2) 20%,
            rgba(0,0,0,0.2) 22%,
            transparent 22%,
            transparent 35%,
            rgba(0,0,0,0.2) 35%,
            rgba(0,0,0,0.2) 37%,
            transparent 37%
        );
    pointer-events: none;
}

.song-dock-vinyl-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #30B3B8;
    border: 1px solid #fff;
}

/* Hide song dock when no song */
.stage-song-dock.hidden {
    display: none;
}

/* ============================================
   TOAST NOTIFICATION
   ============================================ */
.stages-toast {
    position: fixed;
    bottom: 200px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.8);
    color: #ffffff;
    padding: 10px 20px;
    border-radius: 20px;
    font-size: 14px;
    z-index: 200;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.stages-toast.show {
    opacity: 1;
}

/* ============================================
   RESPONSIVE ADJUSTMENTS
   ============================================ */
@media (min-width: 768px) {
    .stage-right-rail {
        right: calc(50% - 320px);
    }

    .stage-artist-overlay {
        left: calc(50% - 280px);
        right: calc(50% - 200px);
    }
}

@media (min-width: 351px) and (max-width: 768px) {
    .stage-right-rail {
        right: 12px;
        bottom: 160px;
    }

    .stage-artist-overlay {
        bottom: 160px;
    }
}

/* Landscape mode adjustments */
@media (orientation: landscape) and (max-height: 500px) {
    .stage-song-dock {
        padding: 8px 10px;
        bottom: calc(65px + env(safe-area-inset-bottom, 0));
    }

    .song-dock-play-btn {
        width: 34px;
        height: 34px;
    }

    .stage-right-rail {
        bottom: 140px;
        gap: 14px;
    }

    .rail-action-btn svg {
        width: 26px;
        height: 26px;
    }

    .rail-profile-pic {
        width: 40px;
        height: 40px;
    }

    .rail-vinyl {
        width: 40px;
        height: 40px;
    }

    .stage-artist-overlay {
        bottom: 140px;
    }

    .song-dock-add-btn {
        width: 34px;
        height: 34px;
    }

    .song-dock-vinyl {
        width: 38px;
        height: 38px;
    }
}

/* Very small screens */
@media (max-width: 350px) {
    .stage-logo-text {
        font-size: 16px;
    }

    .stage-logo-img {
        width: 26px;
        height: 26px;
    }

    .stages-toggle-pill {
        padding: 4px 8px;
        font-size: 13px;
    }

    .stages-create-btn {
        padding: 6px 12px;
        font-size: 12px;
        gap: 3px;
    }

    .create-btn-icon {
        font-size: 14px;
    }

    .rail-profile-pic {
        width: 42px;
        height: 42px;
    }

    .rail-action-btn svg {
        width: 28px;
        height: 28px;
    }

    .stage-artist-overlay {
        right: 70px;
    }

    .song-dock-add-btn {
        width: 32px;
        height: 32px;
    }

    .song-dock-add-btn svg {
        width: 18px;
        height: 18px;
    }

    .song-dock-vinyl {
        width: 36px;
        height: 36px;
    }

    .song-dock-vinyl-center {
        width: 6px;
        height: 6px;
    }
}
   
   

/* ============================================
   CENTERED SPINNING VINYL RECORD
   Replace .action-song styles in views.css
   ============================================ */

/* Larger Song Button - CENTERED with other buttons */
.action-song {
    width: 64px !important;
    height: 64px !important;
    border-radius: 50%;
    border: 3px solid rgba(255, 255, 255, 0.9) !important;
    background: #000 !important;
    padding: 0 !important;
    overflow: visible;
    position: relative;
    box-shadow: 
        0 0 0 2px rgba(48, 179, 184, 0.3),
        0 6px 16px rgba(0, 0, 0, 0.6);
    transition: all 0.3s ease;
    margin-left: -7px; /* ⭐ CENTER: Shift left by (64-50)/2 = 7px */
}

/* Vinyl grooves overlay */
.vinyl-grooves {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: 
        radial-gradient(circle at center,
            transparent 25%,
            rgba(0,0,0,0.15) 25%,
            rgba(0,0,0,0.15) 27%,
            transparent 27%,
            transparent 40%,
            rgba(0,0,0,0.15) 40%,
            rgba(0,0,0,0.15) 42%,
            transparent 42%,
            transparent 55%,
            rgba(0,0,0,0.15) 55%,
            rgba(0,0,0,0.15) 57%,
            transparent 57%
        );
    pointer-events: none;
    z-index: 2;
    animation: vinylShine 4s linear infinite;
}

/* Rotating shine effect */
@keyframes vinylShine {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Spinning cover art */
.spinning-cover {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    animation: spin 8s linear infinite;
    filter: brightness(1.1) contrast(1.05);
    position: relative;
    z-index: 1;
}

/* Vinyl spin animation */
@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Active state - GLOW */
.action-song:active {
    border-color: #30B3B8 !important;
    box-shadow: 
        0 0 0 3px rgba(48, 179, 184, 0.4),
        0 0 25px rgba(48, 179, 184, 0.8),
        0 6px 20px rgba(0, 0, 0, 0.7);
    transform: scale(1.08);
}

/* Subtle pulse animation */
.action-song::before {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(48, 179, 184, 0.3) 0%, transparent 70%);
    animation: recordPulse 3s ease-in-out infinite;
    z-index: 0;
}

@keyframes recordPulse {
    0%, 100% { opacity: 0.5; transform: scale(1); }
    50% { opacity: 0.8; transform: scale(1.05); }
}

/* Pause animations on video pause (optional enhancement) */
.video-player.paused .spinning-cover {
    animation-play-state: paused;
}

.video-player.paused .vinyl-grooves {
    animation-play-state: paused;
}

/* Slower elegant spin */
@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Vinyl shine effect */
@keyframes vinylShine {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Pause animation on tap */
.action-song:active .spinning-cover {
    animation-play-state: paused;
}

/* Glow when hovering/active */
.action-song:active {
    border-color: #30B3B8 !important;
    box-shadow: 0 0 20px rgba(48, 179, 184, 0.6), 0 4px 12px rgba(0, 0, 0, 0.5);
    transform: scale(1.05);
}

/* Song Link Pill */
.video-song-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(10px);
    padding: 10px 16px;
    border-radius: 20px;
    text-decoration: none;
    color: #30B3B8;
    font-weight: 600;
    font-size: 15px;
    align-self: flex-start;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    max-width: 85%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.video-song-link:active {
    transform: scale(0.95);
    background: rgba(0, 0, 0, 0.85);
}
/* ============================================
   VIDEO SONG LINK - ADD TO views.css
   ============================================ */

.video-song-link {
    position: absolute;
    bottom: 100px; /* Above video info */
    left: 16px;
    right: 60px; /* Leave room for action rail */
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(10px);
    padding: 10px 16px;
    border-radius: 20px;
    color: white;
    font-size: 14px;
    font-weight: 600;
    border: 1px solid rgba(48, 179, 184, 0.3);
    cursor: pointer;
    transition: all 0.2s;
    max-width: 280px;
}

.video-song-link:hover {
    background: rgba(48, 179, 184, 0.9);
    border-color: #30B3B8;
    transform: translateY(-2px);
}

.video-song-link .music-icon {
    font-size: 18px;
    flex-shrink: 0;
}

.video-song-link .music-text {
    color: white;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.song-icon {
    font-size: 18px;
    flex-shrink: 0;
}

.song-title {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Artist Name */
.video-artist-name {
    color: white;
    font-weight: 700;
    font-size: 16px;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.8); /* ⭐ Stronger shadow */
}

/* Caption */
.video-caption {
    color: rgba(255, 255, 255, 0.9);
    font-size: 14px;
    line-height: 1.4;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.8); /* ⭐ Stronger shadow */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Tap to Start Overlay (First Time Only) */
.tap-to-start-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 60px;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(20px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 200;
    cursor: pointer;
}

.tap-to-start-content {
    text-align: center;
    padding: 40px;
}

.tap-icon {
    font-size: 80px;
    margin-bottom: 20px;
    animation: tapPulse 2s infinite;
}

@keyframes tapPulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.1); opacity: 0.8; }
}

.tap-title {
    font-size: 28px;
    font-weight: 700;
    color: white;
    margin-bottom: 10px;
}

.tap-subtitle {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.7);
}

/* Toast Notification */
.toast {
    position: fixed;
    bottom: 80px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(48, 179, 184, 0.95);
    color: white;
    padding: 12px 24px;
    border-radius: 25px;
    font-weight: 600;
    font-size: 14px;
    z-index: 1000;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    animation: toastSlideUp 0.3s ease;
}

@keyframes toastSlideUp {
    from {
        transform: translateX(-50%) translateY(20px);
        opacity: 0;
    }
    to {
        transform: translateX(-50%) translateY(0);
        opacity: 1;
    }
}

/* Responsive */
@media (max-width: 768px) {
    .video-info-overlay {
        left: 12px;
        right: 70px;
        bottom: 100px;
    }

    .video-actions-rail {
        right: 8px;
        gap: 16px;
        bottom: 200px;
    }

    .video-actions-rail button {
        width: 46px;
        height: 46px;
    }
}

/* ============================================
   DISCOVER VIEW - CREATE BUTTON FIX
   ============================================ */

/* ⭐ Position button below tabs, above content */
#discover-create-btn {
    position: fixed;
    top: calc(env(safe-area-inset-top, 0px) + 76px); /* Below toggle (60px) + margin (16px) */
    left: 16px;
    right: 16px;
    z-index: 101; /* Above toggle (100) and video feed */
    max-width: 768px;
    margin: 0 auto;
}

/* Adjust video feed container to account for button */
#video-feed-container {
    padding-top: 70px; /* Space for the Create Post button */
}

/* ============================================
   MANAGE POSTS VIEW STYLES
   ============================================ */
#manage-posts-view {
    background: #121212;
    min-height: 100vh;
}

.manage-posts-container {
    padding: 20px;
    padding-bottom: 150px;
    max-width: 1200px;
    margin: 0 auto;
}

.manage-header {
    margin-bottom: 30px;
}

.back-btn-simple {
    background: transparent;
    border: 1px solid rgba(48, 179, 184, 0.3);
    color: #30B3B8;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 14px;
    cursor: pointer;
    margin-bottom: 15px;
    display: inline-block;
}

.back-btn-simple:hover {
    background: rgba(48, 179, 184, 0.1);
    border-color: #30B3B8;
}

.manage-title {
    font-size: 36px;
    font-weight: 900;
    margin-bottom: 10px;
}

.manage-stats {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
}

.manage-stats span {
    color: #30B3B8;
    font-weight: 700;
    font-size: 18px;
}

.posts-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.post-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(48, 179, 184, 0.2);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s;
}

.post-card:hover {
    border-color: #30B3B8;
    transform: translateY(-2px);
}

.post-video-preview {
    width: 100%;
    aspect-ratio: 9/16;
    object-fit: cover;
    cursor: pointer;
    background: #000;
}

.post-card-info {
    padding: 12px;
}

.post-card-song {
    font-size: 13px;
    font-weight: 600;
    color: #30B3B8;
    margin-bottom: 5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.post-card-caption {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 10px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.post-card-stats {
    display: flex;
    justify-content: space-between;
    font-size: 11px;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 10px;
}

.post-card-stat {
    display: flex;
    align-items: center;
    gap: 4px;
}

.delete-post-btn {
    width: 100%;
    padding: 10px;
    background: transparent;
    border: 1px solid rgba(233, 30, 140, 0.5);
    color: #E91E8C;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    transition: all 0.2s;
}

.delete-post-btn:hover {
    background: rgba(233, 30, 140, 0.1);
    border-color: #E91E8C;
}

@media (min-width: 769px) {
    .posts-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* ============================================
   MANAGE SONGS VIEW STYLES
   ============================================ */
#manage-songs-view {
    background: #121212;
    min-height: 100vh;
}

.manage-songs-container {
    padding: 20px;
    padding-bottom: 150px;
    max-width: 1200px;
    margin: 0 auto;
}

.manage-songs-list {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    overflow: hidden;
}

.manage-song-item {
    display: flex;
    align-items: center;
    padding: 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: background 0.2s;
    gap: 16px;
}

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

.manage-song-item:hover {
    background: rgba(255, 255, 255, 0.05);
}

.manage-song-cover {
    width: 60px;
    height: 60px;
    border-radius: 6px;
    object-fit: cover;
    flex-shrink: 0;
}

.manage-song-info {
    flex: 1;
    min-width: 0;
}

.manage-song-title {
    font-size: 16px;
    font-weight: 600;
    color: white;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.manage-song-meta {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.6);
    display: flex;
    gap: 8px;
}

.manage-song-actions {
    display: flex;
    gap: 8px;
}

.btn-edit-song {
    padding: 8px 16px;
    background: #30B3B8;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-edit-song:hover {
    background: #2a9fa3;
}

.btn-delete-song {
    padding: 8px 16px;
    background: transparent;
    border: 1px solid rgba(233, 30, 140, 0.5);
    color: #E91E8C;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-delete-song:hover {
    background: rgba(233, 30, 140, 0.1);
    border-color: #E91E8C;
}

/* ============================================
   EDIT SONG VIEW STYLES
   ============================================ */
#edit-song-view {
    background: linear-gradient(135deg, #1a1a2e 0%, #0f0f1e 100%);
    min-height: 100vh;
    padding-bottom: 150px;
}

#edit-song-view .card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(48, 179, 184, 0.2);
}

#edit-song-view .input,
#edit-song-view .select {
    color: #ffffff !important;
    background: rgba(255, 255, 255, 0.05) !important;
    border: 2px solid rgba(48, 179, 184, 0.3) !important;
}

#edit-song-view .input::placeholder {
    color: rgba(255, 255, 255, 0.4) !important;
}

#edit-song-view .label {
    color: #30B3B8 !important;
}

#edit-song-view .hint {
    color: rgba(255, 255, 255, 0.6) !important;
}

#edit-song-view .title {
    color: #ffffff !important;
}

/* ============================================
   ARTISTS VIEW STYLES (For Listeners)
   ============================================ */
#artists-view {
    background: #121212;
    min-height: 100vh;
    padding-bottom: 150px;
}

.artists-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.artists-header {
    margin-bottom: 30px;
}

.artists-title {
    font-size: 36px;
    font-weight: 900;
    color: #ffffff;
}

.artists-section {
    margin-bottom: 40px;
}

/* ============================================
   VINYL CRATE CAROUSEL - Founding Artists
   ============================================ */
.vinyl-crate-section {
    padding: 20px 16px 10px;
}

.crate-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.crate-title {
    font-size: 14px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.7);
    font-style: italic;
}

.vinyl-crate-container {
    position: relative;
    overflow: hidden;
    padding: 20px 0;
}

.vinyl-crate-track {
    display: flex;
    gap: 0;
    overflow-x: auto;
    overflow-y: visible;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding: 10px 40px 10px 20px;
    scrollbar-width: none;
    cursor: grab;
}

.vinyl-crate-track::-webkit-scrollbar {
    display: none;
}

.vinyl-crate-track:active {
    cursor: grabbing;
}

/* Individual vinyl sleeve */
.vinyl-sleeve {
    position: relative;
    flex: 0 0 120px;
    height: 160px;
    margin-left: -10px;
    scroll-snap-align: start;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    transform-style: preserve-3d;
    z-index: 1;
}

.vinyl-sleeve:first-child {
    margin-left: 0;
}

.vinyl-sleeve:hover:not(.selected) {
    transform: translateY(-10px) rotate(-2deg);
    z-index: 10;
}

.vinyl-sleeve:hover:not(.selected) ~ .vinyl-sleeve {
    transform: translateX(15px);
}

/* Selected state - card lifts up and keeps tilt */
.vinyl-sleeve.selected {
    transform: translateY(-20px) rotate(-2deg);
    z-index: 100;
}

/* The sleeve cover - full profile pic */
.sleeve-cover {
    position: relative;
    width: 120px;
    height: 140px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
}

.vinyl-sleeve.selected .sleeve-cover {
    box-shadow: 0 8px 30px rgba(48, 179, 184, 0.4);
}

/* Profile pic as full cover */
.sleeve-cover-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Gradient overlay for text readability */
.sleeve-cover-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60%;
    background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, transparent 100%);
    pointer-events: none;
}

/* Vinyl record peeking out */
.vinyl-peek {
    position: absolute;
    top: 15px;
    right: -10px;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(145deg, #1a1a1a 0%, #0a0a0a 100%);
    box-shadow:
        0 2px 10px rgba(0, 0, 0, 0.5),
        inset 0 0 20px rgba(255, 255, 255, 0.05);
    z-index: -1;
    transition: all 0.4s ease;
}

.vinyl-sleeve.selected .vinyl-peek {
    right: -20px;
    top: 10px;
}

.vinyl-peek::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 25px;
    height: 25px;
    border-radius: 50%;
    background: linear-gradient(145deg, #2a2a2a, #1a1a1a);
    border: 2px solid rgba(255, 255, 255, 0.1);
}

.vinyl-peek::after {
    content: '';
    position: absolute;
    top: 5px;
    left: 5px;
    right: 5px;
    bottom: 5px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

/* Artist name on sleeve */
.sleeve-artist-name {
    position: absolute;
    bottom: 12px;
    left: 10px;
    right: 10px;
    font-size: 13px;
    font-weight: 700;
    color: white;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    z-index: 2;
}

/* Info panel below the carousel */
.crate-info-panel {
    display: none;
    background: rgba(26, 26, 46, 0.98);
    border-radius: 12px;
    padding: 16px;
    margin: 16px 16px 0;
    border: 1px solid rgba(48, 179, 184, 0.2);
    animation: slideDown 0.3s ease-out;
}

.crate-info-panel.active {
    display: block;
}

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

.crate-info-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.crate-info-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(48, 179, 184, 0.5);
}

.crate-info-title {
    flex: 1;
}

.crate-info-name {
    font-size: 16px;
    font-weight: 700;
    color: white;
    margin: 0 0 4px;
}

.crate-info-meta {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.crate-info-chip {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 8px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    font-size: 11px;
    color: rgba(255, 255, 255, 0.7);
}

.crate-info-chip svg {
    width: 11px;
    height: 11px;
    opacity: 0.7;
}

.crate-info-close {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: white;
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.crate-info-close:hover {
    background: rgba(255, 255, 255, 0.2);
}

.crate-info-bio {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.5;
    margin-bottom: 12px;
}

.crate-info-bio.truncated {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.crate-info-bio-toggle {
    color: #30B3B8;
    font-size: 12px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    margin-bottom: 12px;
}

.crate-info-bio-toggle:hover {
    text-decoration: underline;
}

/* Featured song preview */
.crate-featured-song {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    margin-bottom: 12px;
}

.crate-featured-cover {
    width: 40px;
    height: 40px;
    border-radius: 4px;
    object-fit: cover;
}

.crate-featured-info {
    flex: 1;
    min-width: 0;
}

.crate-featured-label {
    font-size: 10px;
    color: #30B3B8;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.crate-featured-title {
    font-size: 13px;
    font-weight: 600;
    color: white;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.crate-featured-play {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #30B3B8;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
}

.crate-featured-play svg {
    width: 14px;
    height: 14px;
    fill: white;
    margin-left: 2px;
}

/* View profile button */
.crate-btn-profile {
    width: 100%;
    padding: 12px 16px;
    background: linear-gradient(135deg, #E91E8C, #F67854);
    border: none;
    border-radius: 20px;
    color: white;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.crate-btn-profile:hover {
    transform: scale(1.02);
}

/* Legacy - keep for compatibility */
.sleeve-btn-close {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: white;
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease;
}

.sleeve-btn-close:hover {
    background: rgba(255, 255, 255, 0.2);
}

.crate-hint-arrow {
    font-size: 14px;
    animation: hintPulse 2s ease-in-out infinite;
}

.crate-hint-arrow:first-child {
    animation-delay: 0.5s;
}

@keyframes hintPulse {
    0%, 100% { opacity: 0.4; }
    50% { opacity: 0.8; }
}

/* Gradient presets for vinyl sleeves */
.sleeve-gradient-1 { background: linear-gradient(135deg, #d4a5a5 0%, #a06060 100%); }
.sleeve-gradient-2 { background: linear-gradient(135deg, #1a1a2e 0%, #2d2d4a 100%); }
.sleeve-gradient-3 { background: linear-gradient(135deg, #8e6b9e 0%, #c97878 100%); }
.sleeve-gradient-4 { background: linear-gradient(135deg, #e8a54b 0%, #c87030 100%); }
.sleeve-gradient-5 { background: linear-gradient(135deg, #5b8a72 0%, #3d6b55 100%); }
.sleeve-gradient-6 { background: linear-gradient(135deg, #6b8ab0 0%, #4a6b8a 100%); }
.sleeve-gradient-7 { background: linear-gradient(135deg, #b06b8a 0%, #8a4a6b 100%); }
.sleeve-gradient-8 { background: linear-gradient(135deg, #8ab06b 0%, #6b8a4a 100%); }

/* ============================================
   MOCKUP OPTION 1: Vinyl Sleeve Cards
   Square sleeves with vinyl peeking out right
   ============================================ */
.vinyl-sleeve-cards-container {
    overflow-x: auto;
    overflow-y: visible;
    padding: 20px 16px 30px;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}

.vinyl-sleeve-cards-container::-webkit-scrollbar {
    display: none;
}

.vinyl-sleeve-cards-track {
    display: flex;
    gap: 16px;
}

.vinyl-sleeve-card {
    position: relative;
    flex: 0 0 140px;
    height: 140px;
    cursor: pointer;
    transition: transform 0.3s cubic-bezier(0.2, 0, 0, 1);
}

.vinyl-sleeve-card:hover:not(.selected) {
    transform: translateY(-8px) rotate(-2deg);
}

.vinyl-sleeve-card.selected {
    transform: translateY(-16px) rotate(-3deg);
}

/* The vinyl record behind */
.sleeve-card-vinyl {
    position: absolute;
    top: 10px;
    right: -20px;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background:
        radial-gradient(circle at 50% 50%, #1a1a1a 0%, #1a1a1a 15%, transparent 15.5%),
        radial-gradient(circle at 50% 50%, #0d0d0d 20%, transparent 20.5%),
        repeating-radial-gradient(circle at 50% 50%,
            #1a1a1a 0px, #1a1a1a 2px,
            #0f0f0f 2px, #0f0f0f 4px
        );
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.6);
    z-index: 0;
    transition: transform 0.4s cubic-bezier(0.2, 0, 0, 1);
}

/* Vinyl center label - artist color */
.sleeve-card-vinyl::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #30B3B8, #1a8a8f);
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.3);
}

/* Spindle hole */
.sleeve-card-vinyl::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #12132A;
}

.vinyl-sleeve-card:hover .sleeve-card-vinyl {
    transform: translateX(10px) rotate(15deg);
}

.vinyl-sleeve-card.selected .sleeve-card-vinyl {
    transform: translateX(20px) rotate(30deg);
}

/* The sleeve cover */
.sleeve-card-cover {
    position: relative;
    width: 140px;
    height: 140px;
    border-radius: 4px;
    overflow: hidden;
    box-shadow:
        0 8px 25px rgba(0, 0, 0, 0.5),
        inset 0 0 0 1px rgba(255, 255, 255, 0.1);
    z-index: 1;
}

.sleeve-card-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Gradient overlay */
.sleeve-card-cover::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 70%;
    background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, transparent 100%);
    pointer-events: none;
}

/* Artist name */
.sleeve-card-name {
    position: absolute;
    bottom: 10px;
    left: 10px;
    right: 10px;
    font-size: 13px;
    font-weight: 700;
    color: white;
    text-shadow: 0 2px 4px rgba(0,0,0,0.8);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    z-index: 2;
}

/* Genre tag */
.sleeve-card-genre {
    position: absolute;
    bottom: 28px;
    left: 10px;
    font-size: 10px;
    font-weight: 600;
    color: rgba(255,255,255,0.7);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 2;
}

/* Selected outline */
.vinyl-sleeve-card.selected .sleeve-card-cover {
    box-shadow:
        0 12px 35px rgba(48, 179, 184, 0.4),
        0 0 0 2px #30B3B8,
        inset 0 0 0 1px rgba(255, 255, 255, 0.1);
}


/* ============================================
   MOCKUP OPTION 6: Mini Cover Flow
   3D carousel - center forward, sides angled
   ============================================ */
.cover-flow-container {
    perspective: 800px;
    perspective-origin: 50% 50%;
    padding: 30px 0 40px;
    overflow: hidden;
}

.cover-flow-track {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 180px;
    position: relative;
}

.cover-flow-item {
    position: absolute;
    width: 140px;
    height: 140px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.2, 0, 0, 1);
    transform-style: preserve-3d;
}

/* Center item - full front */
.cover-flow-item.center {
    transform: translateZ(80px) scale(1.1);
    z-index: 10;
}

/* Left neighbors */
.cover-flow-item.left-1 {
    transform: translateX(-120px) translateZ(0px) rotateY(45deg) scale(0.9);
    z-index: 5;
}

.cover-flow-item.left-2 {
    transform: translateX(-200px) translateZ(-40px) rotateY(45deg) scale(0.8);
    z-index: 4;
    opacity: 0.7;
}

.cover-flow-item.left-3 {
    transform: translateX(-260px) translateZ(-80px) rotateY(45deg) scale(0.7);
    z-index: 3;
    opacity: 0.4;
}

/* Right neighbors */
.cover-flow-item.right-1 {
    transform: translateX(120px) translateZ(0px) rotateY(-45deg) scale(0.9);
    z-index: 5;
}

.cover-flow-item.right-2 {
    transform: translateX(200px) translateZ(-40px) rotateY(-45deg) scale(0.8);
    z-index: 4;
    opacity: 0.7;
}

.cover-flow-item.right-3 {
    transform: translateX(260px) translateZ(-80px) rotateY(-45deg) scale(0.7);
    z-index: 3;
    opacity: 0.4;
}

/* Hidden items */
.cover-flow-item.hidden {
    opacity: 0;
    pointer-events: none;
}

/* Album cover */
.cover-flow-album {
    width: 100%;
    height: 100%;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    position: relative;
}

.cover-flow-album img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Reflection effect */
.cover-flow-album::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60%;
    background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, transparent 100%);
    pointer-events: none;
}

/* Center item glow */
.cover-flow-item.center .cover-flow-album {
    box-shadow:
        0 15px 40px rgba(48, 179, 184, 0.3),
        0 0 0 2px rgba(48, 179, 184, 0.5);
}

/* Artist name below center album */
.cover-flow-name {
    position: absolute;
    bottom: -25px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 13px;
    font-weight: 700;
    color: white;
    white-space: nowrap;
    text-shadow: 0 2px 4px rgba(0,0,0,0.8);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.cover-flow-item.center .cover-flow-name {
    opacity: 1;
}

/* Navigation arrows */
.cover-flow-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 20;
    transition: all 0.2s ease;
}

.cover-flow-nav:hover {
    background: rgba(48, 179, 184, 0.3);
    border-color: #30B3B8;
}

.cover-flow-nav.prev {
    left: 10px;
}

.cover-flow-nav.next {
    right: 10px;
}

.section-label-artists {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 16px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.trending-badge {
    font-size: 12px;
    padding: 4px 12px;
    background: linear-gradient(135deg, #E91E8C 0%, #F67854 100%);
    border-radius: 12px;
    text-transform: none;
    letter-spacing: 0;
}

/* Big carousel for Recently Viewed & Trending */
.artists-carousel-big {
    display: flex;
    gap: 15px;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding: 10px 0;
    scrollbar-width: none;
}

.artists-carousel-big::-webkit-scrollbar {
    display: none;
}

.artist-card {
    position: relative;
    flex: 0 0 140px;
    text-align: center;
    cursor: pointer;
    scroll-snap-align: start;
    padding: 16px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 14px; /* Slightly larger to ensure gradient border is rounded */
    border: 2px solid transparent;
    background-image: 
        linear-gradient(#1a1a2e, #1a1a2e),
        linear-gradient(135deg, #E91E8C, #F67854);
    background-origin: border-box;
    background-clip: padding-box, border-box;
    transition: all 0.3s ease;
    overflow: hidden; /* This ensures the gradient respects border-radius */
}

.artist-card:hover {
    transform: translateY(-4px);
    border-radius: 14px; /* Match the default state */
    box-shadow: 0 8px 24px rgba(233, 30, 140, 0.3);
}

.artist-card-big {
    flex: 0 0 calc(28.5% - 11.25px); /* Show 3.5 artists */
    min-width: 100px;
    scroll-snap-align: start;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(48, 179, 184, 0.2);
    border-radius: 12px;
    padding: 15px;
    cursor: pointer;
    transition: all 0.3s;
    position: relative;
}

.artist-card-big:hover {
    transform: translateY(-4px);
    border-color: #30B3B8;
    background: rgba(48, 179, 184, 0.1);
}

.artist-avatar-big {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 2px solid #30B3B8;
    object-fit: cover;
    margin: 0 auto 10px;
    display: block;
}

.follow-badge {
    position: absolute;
    bottom: 45px;
    right: calc(50% - 35px);
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: linear-gradient(135deg, #30B3B8 0%, #E91E8C 100%);
    border: 2px solid #1a1a2e;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: 700;
    color: white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.follow-badge.not-following {
    background: linear-gradient(135deg, #E91E8C 0%, #F67854 100%); /* ⭐ Pink to Coral - reversed */
    color: white;
}

.artist-name-big {
    font-size: 14px;
    font-weight: 600;
    color: white;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 4px;
}

.artist-meta {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.5);
    text-align: center;
}

/* Small carousel for Following */
.artists-carousel-small {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding: 10px 0;
    scrollbar-width: none;
}

.artists-carousel-small::-webkit-scrollbar {
    display: none;
}

.artist-card-small {
    flex: 0 0 calc(20% - 9.6px); /* Show 5 artists */
    min-width: 80px;
    scroll-snap-align: start;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: all 0.2s;
}

.artist-card-small:hover {
    transform: scale(1.05);
}

.artist-avatar-small-card {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    border: 2px solid #30B3B8;
    object-fit: cover;
}

.artist-name-small-card {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.8);
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    width: 100%;
}

.artist-song-count {
    font-size: 10px;
    color: rgba(255, 255, 255, 0.5);
}

.carousel-empty {
    padding: 40px;
    text-align: center;
    color: rgba(255, 255, 255, 0.4);
    background: rgba(255, 255, 255, 0.02);
    border-radius: 8px;
}

.carousel-empty p {
    margin: 0;
}

/* ============================================
   LOADING STATES
   ============================================ */
.loading {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 100px;
    font-size: 18px;
    color: #30B3B8;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid rgba(48, 179, 184, 0.3);
    border-top-color: #30B3B8;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 16px;
}

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

/* ============================================
   MOBILE RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
    .content-wrapper {
        padding: 20px;
    }

    .library-title {
        font-size: 32px;
    }

    .songs-grid {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    }

    .controls-bar {
        flex-direction: column;
        gap: 15px;
    }

    .stats-row {
        gap: 20px;
    }

    .stat-value {
        font-size: 20px;
    }

    .albums-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .action-buttons {
        flex-direction: column;
    }

    .btn-follow,
    .btn-share {
        width: 100%;
    }

    .profile-content {
        padding-bottom: 150px;
    }

    .card {
        padding: 30px 20px;
    }

    .title {
        font-size: 24px;
    }

    .avatar-row {
        flex-direction: column;
        text-align: center;
    }

    .button-row {
        flex-direction: column-reverse;
    }

    .save, .cancel {
        width: 100%;
    }
}

/* ============================================
   PERSISTENT PLAYER BAR
   ============================================ */
.player-bar {
    position: fixed !important;
    bottom: 85px !important;
    left: 0 !important;
    background: rgba(246, 120, 84, 0.9) !important;
    backdrop-filter: blur(20px);
    border: 1px solid rgba(246, 120, 84, 0.5);
    border-radius: 0 50px 50px 0;
    padding: 12px 20px;
    display: none !important;
    align-items: center;
    gap: 15px;
    z-index: 998 !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
    max-width: 90%;
    transition: all 0.3s ease-in-out; /* Animate all changes */
    transform: translateX(0);
}

.player-bar.active {
    display: flex !important;
}

/* Hidden on Stage view - song dock replaces it */
.player-bar.stage-hidden {
    display: none !important;
}

/* Minimized state - compact circular indicator */
.player-bar.minimized {
    transform: translateX(calc(-100% + 50px)); /* Show just 50px */
    padding: 8px 12px;
    border-radius: 0 30px 30px 0;
    cursor: pointer;
    max-width: fit-content;
    height: 70px;
    bottom: 80px;
}

.player-bar.minimized:hover {
    transform: translateX(calc(-100% + 65px));
    box-shadow: 0 4px 24px rgba(246, 120, 84, 0.6);
}

/* Hide info, play button, and add button when minimized */
.player-bar.minimized .np-info,
.player-bar.minimized .play-pause-btn,
.player-bar.minimized #player-add-btn {
    display: none !important;
}

/* Make cover smaller and circular when minimized */
.player-bar.minimized .np-cover {
    width: 38px;
    height: 38px;
    border-radius: 50%;
}

/* Default sizes */
.np-cover {
    width: 45px;
    height: 45px;
    border-radius: 8px;
    object-fit: cover;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.np-info { 
    flex: 1; 
    min-width: 0; 
}

.np-title {
    font-size: 14px;
    font-weight: 600;
    color: white;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 3px;
}

.np-time {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.9);
    font-variant-numeric: tabular-nums;
}

.play-pause-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #30B3B8;
    border: none;
    color: white;
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.2s ease;
}

.play-pause-btn:hover {
    background: #2a9fa3;
    transform: scale(1.05);
}

@media (max-width: 768px) {
    .video-info-overlay {
        left: 12px;
        right: 70px;
        bottom: 110px; /* ⭐ Keep consistent with desktop */
    }

    .video-actions-rail {
        right: 8px;
        gap: 16px;
        bottom: 240px; /* ⭐ Keep consistent with desktop */
    }

    .video-actions-rail button {
        width: 46px;
        height: 46px;
    }
}

/* ============================================
   EXPANDED PLAYER
   ============================================ */

.expanded-player {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: linear-gradient(to bottom, #0f0f1e 0%, #1a1a2e 100%);
    z-index: 9999;
    transform: translateY(100%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow-y: auto;
    padding-bottom: 100px;
}

.expanded-player.active {
    transform: translateY(0);
}

.expanded-player-content {
    max-width: 600px;
    margin: 0 auto;
    padding: 20px;
}

/* Header */
.expanded-player-header {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
}

.minimize-btn {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.6);
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    transition: all 0.2s ease;
}

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

/* Artwork */
.expanded-artwork-container {
    position: relative;
    width: 100%;
    aspect-ratio: 1;
    max-width: 400px;
    margin: 0 auto 32px auto;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

.artwork-blur-bg {
    position: absolute;
    top: -20px;
    left: -20px;
    right: -20px;
    bottom: -20px;
    background-size: cover;
    background-position: center;
    filter: blur(40px);
    opacity: 0.3;
    z-index: 0;
}

.expanded-artwork {
    position: relative;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

.expanded-artwork-fallback {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: none;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 80px;
    color: white;
    text-shadow: 0 4px 8px rgba(0,0,0,0.3);
    z-index: 1;
    border-radius: 12px;
}

.expanded-artwork-fallback.active {
    display: flex;
}

/* Song Info */
.expanded-song-info {
    text-align: center;
    margin-bottom: 24px;
}

.expanded-song-title {
    font-size: 24px;
    font-weight: 700;
    color: white;
    margin: 0 0 8px 0;
}

.expanded-artist-name {
    background: none;
    border: none;
    color: #30B3B8;
    font-size: 18px;
    font-weight: 500;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.expanded-artist-name:hover {
    background: rgba(48, 179, 184, 0.1);
}

/* Reaction Bar */
.reaction-bar {
    display: flex;
    justify-content: center;
    gap: 12px;
    padding: 16px;
    background: rgba(26, 26, 46, 0.5);
    border-radius: 20px;
    margin-bottom: 24px;
    border: 1px solid rgba(48, 179, 184, 0.2);
}

.reaction-btn {
    width: 44px;
    height: 44px;
    border: none;
    background: rgba(48, 179, 184, 0.1);
    border-radius: 50%;
    font-size: 24px; /* Larger emoji */
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.reaction-btn:hover {
    transform: scale(1.15);
    background: rgba(48, 179, 184, 0.2);
}

.reaction-btn:active {
    transform: scale(0.95);
}

/* Add glow on hover */
.reaction-btn:hover {
    filter: drop-shadow(0 0 12px rgba(48, 179, 184, 0.6));
}

@keyframes reactionPop {
    0% {
        transform: translate(-50%, -50%) scale(0);
        opacity: 0;
    }
    50% {
        transform: translate(-50%, -50%) scale(1.2);
        opacity: 1;
    }
    100% {
        transform: translate(-50%, -50%) scale(1) translateY(-100px);
        opacity: 0;
    }
}

/* Heat Map Canvas */
.heat-map-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 80px;
    pointer-events: none;
    border-radius: 8px;
}

.expanded-progress-container {
    position: relative;
    margin-bottom: 32px;
    height: 80px;
}

.progress-bar-overlay {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    transform: translateY(-50%);
    z-index: 10;
}

/* Progress Bar */
.expanded-progress-container {
    margin-bottom: 32px;
}

.expanded-progress-bar {
    width: 100%;
    height: 6px;
    -webkit-appearance: none;
    appearance: none;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    outline: none;
    cursor: pointer;
}

.expanded-progress-bar::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 16px;
    height: 16px;
    background: white;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.expanded-progress-bar::-moz-range-thumb {
    width: 16px;
    height: 16px;
    background: white;
    border-radius: 50%;
    cursor: pointer;
    border: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.expanded-time-display {
    display: flex;
    justify-content: space-between;
    margin-top: 8px;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.6);
    font-variant-numeric: tabular-nums;
}

/* Controls */
.expanded-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-bottom: 40px;
}

.control-btn {
    width: 48px;
    height: 48px;
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.6);
    cursor: pointer;
    border-radius: 50%;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

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

.control-btn.active {
    color: #30B3B8;
}

.control-btn-large {
    width: 56px;
    height: 56px;
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    border-radius: 50%;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.control-btn-large:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: scale(1.05);
}

.control-btn-play {
    width: 72px;
    height: 72px;
    background: #30B3B8;
    border: none;
    color: white;
    cursor: pointer;
    border-radius: 50%;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 16px rgba(48, 179, 184, 0.4);
}

.control-btn-play:hover {
    background: #2a9fa3;
    transform: scale(1.05);
}

.control-btn-play:active {
    transform: scale(0.95);
}

/* Queue Sections */
.queue-sections {
    margin-bottom: 32px;
}

.queue-section {
    margin-bottom: 32px;
}

.queue-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.queue-section-title {
    font-size: 16px;
    font-weight: 600;
    color: white;
    margin: 0;
}

.queue-count {
    background: rgba(48, 179, 184, 0.2);
    color: #30B3B8;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}

.queue-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.queue-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: rgba(26, 26, 46, 0.5);
    border-radius: 8px;
    border: 1px solid rgba(48, 179, 184, 0.1);
    cursor: pointer;
    transition: all 0.2s ease;
}

.queue-item:hover {
    background: rgba(26, 26, 46, 0.8);
    border-color: rgba(48, 179, 184, 0.3);
    transform: translateX(4px);
}

.queue-item-cover {
    width: 48px;
    height: 48px;
    border-radius: 6px;
    object-fit: cover;
    flex-shrink: 0;
}

.queue-item-info {
    flex: 1;
    min-width: 0;
}

.queue-item-title {
    font-size: 14px;
    font-weight: 600;
    color: white;
    margin: 0 0 4px 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.queue-item-artist {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.6);
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.queue-item-duration {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.5);
    font-variant-numeric: tabular-nums;
}

.queue-empty {
    text-align: center;
    padding: 32px;
    color: rgba(255, 255, 255, 0.4);
    font-size: 14px;
}

/* Add to Library Button */
.expanded-add-library-btn {
    width: 100%;
    padding: 16px;
    background: rgba(48, 179, 184, 0.1);
    border: 2px solid #30B3B8;
    border-radius: 12px;
    color: #30B3B8;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.expanded-add-library-btn:hover {
    background: rgba(48, 179, 184, 0.2);
}

.expanded-add-library-btn.in-library {
    background: rgba(48, 179, 184, 0.2);
    cursor: default;
}

.expanded-add-library-btn.in-library .add-icon {
    display: none;
}

.expanded-add-library-btn.in-library .check-icon {
    display: block;
}

/* Mobile Optimizations */
@media (max-width: 768px) {
    .expanded-player-content {
        padding: 16px;
    }
    
    .expanded-artwork-container {
        max-width: 90%;
    }
    
    .expanded-song-title {
        font-size: 20px;
    }
    
    .expanded-artist-name {
        font-size: 16px;
    }
    
    .reaction-bar {
        gap: 8px;
        padding: 12px;
    }
    
    .reaction-btn {
        width: 40px;
        height: 40px;
        font-size: 20px;
    }
    
    .expanded-controls {
        gap: 16px;
    }
    
    .control-btn {
        width: 44px;
        height: 44px;
    }
    
    .control-btn-large {
        width: 52px;
        height: 52px;
    }
    
    .control-btn-play {
        width: 68px;
        height: 68px;
    }
}

/* ============================================
   UPLOAD VIEW STYLES
   ============================================ */
#upload-view {
    background: linear-gradient(135deg, #1a1a2e 0%, #0f0f1e 100%);
    min-height: 100vh;
}

.upload-container {
    padding: 20px;
    padding-bottom: 150px;
    max-width: 900px;
    margin: 0 auto;
}

.upload-zone {
    border: 2px dashed rgba(48, 179, 184, 0.5);
    border-radius: 12px;
    padding: 40px;
    text-align: center;
    margin-bottom: 30px;
    cursor: pointer;
    transition: all 0.3s;
}

.upload-zone:hover {
    border-color: #E91E8C;
    background: rgba(48, 179, 184, 0.05);
}

.upload-zone.has-file {
    border-color: #30B3B8;
    background: rgba(48, 179, 184, 0.1);
}

.upload-icon {
    font-size: 48px;
    margin-bottom: 15px;
}

.upload-text {
    font-size: 16px;
    color: #30B3B8;
    margin-bottom: 5px;
}

.upload-hint {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.4);
}

.file-name {
    font-size: 14px;
    color: #ffffff;
    margin-top: 10px;
    font-weight: 600;
}

.cover-preview {
    width: 150px;
    height: 150px;
    border-radius: 8px;
    margin: 15px auto 0;
    object-fit: cover;
    border: 2px solid #30B3B8;
    display: block;
}

.album-info {
    background: rgba(48, 179, 184, 0.05);
    border: 1px solid rgba(48, 179, 184, 0.2);
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 30px;
}

.album-info-title {
    font-size: 18px;
    color: #30B3B8;
    margin-bottom: 20px;
    font-weight: 600;
}

.field-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.help-text {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.5);
    margin-top: 5px;
}

.select {
    width: 100%;
    padding: 12px 16px;
    font-size: 16px;
    border: 2px solid rgba(48, 179, 184, 0.3);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
    color: #ffffff;
    font-family: inherit;
}

.select:focus {
    outline: none;
    border-color: #E91E8C;
    background: rgba(255, 255, 255, 0.08);
}

.select option {
    background: #1a1a2e;
    color: #ffffff;
}

.song-list {
    margin-top: 30px;
    max-height: 500px;
    overflow-y: auto;
}

.song-item {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(48, 179, 184, 0.2);
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 15px;
}

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

.song-number {
    font-size: 14px;
    color: #30B3B8;
    font-weight: 600;
}

.remove-btn {
    background: transparent;
    border: 1px solid rgba(233, 30, 140, 0.5);
    color: #E91E8C;
    padding: 5px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
}

.remove-btn:hover {
    background: rgba(233, 30, 140, 0.2);
}

.song-title-input {
    width: 100%;
    padding: 10px 14px;
    font-size: 15px;
    border: 1px solid rgba(48, 179, 184, 0.3);
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.05);
    color: #ffffff;
    margin-bottom: 12px;
}

.song-title-input:focus {
    outline: none;
    border-color: #E91E8C;
}

.song-filename {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 8px;
}

.song-genre {
    width: 100%;
    padding: 10px 14px;
    font-size: 14px;
    border: 1px solid rgba(48, 179, 184, 0.3);
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.05);
    color: #ffffff;
}

.song-genre option {
    background: #1a1a2e;
}

.progress-section {
    margin: 30px 0;
}

.progress-bar-upload {
    width: 100%;
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    overflow: hidden;
}

.progress-fill-upload {
    height: 100%;
    background: linear-gradient(90deg, #30B3B8, #E91E8C);
    width: 0%;
    transition: width 0.3s;
}

.progress-text-upload {
    text-align: center;
    margin-top: 10px;
    font-size: 14px;
    color: #30B3B8;
}

.submit {
    width: 100%;
    padding: 15px;
    background: #E91E8C;
    color: #ffffff;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 30px;
    transition: all 0.3s;
}

.submit:hover:not(:disabled) {
    background: #F67854;
    transform: translateY(-2px);
}

.submit:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.back-link-btn {
    display: inline-block;
    margin-top: 20px;
    padding: 12px 24px;
    color: #30B3B8;
    background: transparent;
    border: 1px solid rgba(48, 179, 184, 0.3);
    border-radius: 8px;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s;
}

.back-link-btn:hover {
    background: rgba(48, 179, 184, 0.1);
    border-color: #30B3B8;
}

@media (max-width: 600px) {
    .upload-zone {
        padding: 30px 20px;
    }
    .field-row {
        grid-template-columns: 1fr;
    }
}

/* ============================================
   CREATE POST VIEW - FIXED POSITIONING
   ============================================ */

.recording-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: black;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.camera-preview {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

#camera-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Top Controls */
.recording-top-controls {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 60px 20px 20px; /* ⭐ Added top padding for notch/status bar */
    background: linear-gradient(to bottom, rgba(0,0,0,0.6) 0%, rgba(0,0,0,0.3) 50%, transparent 100%);
    z-index: 10;
}

.icon-btn-recording {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(10px);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.icon-btn-recording:active {
    transform: scale(0.9);
    background: rgba(0, 0, 0, 0.8);
}

.recording-indicator {
    display: none;
    align-items: center;
    gap: 8px;
    background: rgba(220, 38, 38, 0.95);
    padding: 8px 16px;
    border-radius: 20px;
    backdrop-filter: blur(10px);
}

.recording-indicator.active {
    display: flex;
}

.recording-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: white;
    animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(0.8); }
}

.recording-time {
    color: white;
    font-size: 14px;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
}

/* Bottom Controls - UPDATED */
.recording-bottom-controls {
    position: absolute;
    bottom: 120px; /* ⭐ Changed from 40px to clear bottom nav (85px + padding) */
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 40px;
    z-index: 10;
}

.spacer {
    width: 48px; /* ⭐ Match icon button width */
}

/* Record Button */
.record-btn {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: white;
    border: 5px solid rgba(255, 255, 255, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3); /* ⭐ Added shadow */
}

.record-btn:active {
    transform: scale(0.95);
}

.record-btn-inner {
    width: 60px;
    height: 60px;
    background: #dc2626;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.record-btn.recording .record-btn-inner {
    width: 32px;
    height: 32px;
    border-radius: 6px;
    background: #ef4444;
}

.upload-tip {
    position: absolute;
    bottom: 200px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.7);
    color: rgba(255, 255, 255, 0.8);
    font-size: 12px;
    padding: 8px 32px 8px 16px;  /* ⬅️ Extra padding on right for X */
    border-radius: 20px;
    text-align: center;
    max-width: 280px;
    line-height: 1.4;
    backdrop-filter: blur(4px);
    z-index: 10;
}

.upload-tip-close {
    position: absolute;
    top: 50%;
    right: 8px;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
    cursor: pointer;
    padding: 4px;
    line-height: 1;
}

.upload-tip-close:hover {
    color: white;
}

/* Upload button styling - match other icons */
#upload-video-btn {
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

/* Preview Container (unchanged) */
.preview-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #1a1a2e;
    z-index: 1001;
    display: none;
    flex-direction: column;
}

.preview-container.active {
    display: flex;
}

.preview-video-wrapper {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background: black;
    padding: 20px;
    overflow: hidden;
}

#preview-video {
    max-width: 100%;
    max-height: calc(100vh - 200px); /* ⭐ KEY FIX - leave room for buttons */
    width: auto;
    height: auto;
    object-fit: contain;
}

.preview-controls {
    flex-shrink: 0; /* ⭐ Don't let buttons shrink */
    display: flex;
    gap: 12px;
    padding: 20px;
    padding-bottom: 120px; /* Clear bottom nav */
    background: #1a1a2e;
}

.preview-btn {
    flex: 1;
    padding: 16px;
    border-radius: 12px;
    border: none;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.preview-btn.secondary {
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

.preview-btn.primary {
    background: #30B3B8;
    color: white;
}

.preview-btn:active {
    transform: scale(0.98);
}

/* Link Song Container */
.link-song-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #1a1a2e;
    z-index: 1002;
    display: none;
    flex-direction: column;
    overflow-y: auto;
}

.link-song-container.active {
    display: flex;
}

.link-song-header {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 60px 20px 20px; /* ⭐ Added top padding for status bar */
    background: rgba(26, 26, 46, 0.98);
    border-bottom: 1px solid rgba(48, 179, 184, 0.2);
}

.back-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: white;
    font-size: 20px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.back-btn:active {
    transform: scale(0.9);
    background: rgba(255, 255, 255, 0.15);
}

.link-song-content {
    flex: 1;
    padding: 20px;
    padding-bottom: 140px; /* ⭐ More padding to clear bottom nav */
}

.info-box {
    background: rgba(48, 179, 184, 0.1);
    border: 1px solid rgba(48, 179, 184, 0.3);
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 24px;
    color: #94a3b8;
}

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

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: white;
    margin-bottom: 8px;
}

.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(48, 179, 184, 0.2);
    border-radius: 8px;
    color: white;
    font-size: 16px;
    font-family: inherit;
}

.form-group textarea {
    min-height: 100px;
    resize: vertical;
}

.post-btn {
    width: 100%;
    padding: 16px;
    background: #30B3B8;
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.post-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.post-btn:not(:disabled):active {
    transform: scale(0.98);
}

/* Loading Overlay */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 2000;
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 20px;
}

.loading-overlay.active {
    display: flex;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(48, 179, 184, 0.2);
    border-top-color: #30B3B8;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

.loading-text {
    color: white;
    font-size: 16px;
    font-weight: 500;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .timer-display {
        font-size: 48px;
    }
    
    .recording-bottom-controls {
        padding: 0 30px;
    }
}

/* ============================================
   DISCOGRAPHY VIEW
   ============================================ */

#discography-view {
    background: #121212; /* ⭐ ADD THIS LINE */
    min-height: 100vh; /* ⭐ ADD THIS LINE */
}

.discography-container {
    padding-bottom: 150px;
}

.disco-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: linear-gradient(180deg, #1a1a2e 0%, rgba(26, 26, 46, 0.95) 100%);
    backdrop-filter: blur(20px);
    padding: 15px 30px; /* Reduced from 20px 40px */
    border-bottom: 1px solid rgba(48, 179, 184, 0.2);
    display: flex;
    align-items: center;
    gap: 20px; /* Reduced from 30px */
}

.disco-back-btn {
    padding: 10px 20px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    color: white;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
}

.disco-back-btn:hover {
    background: rgba(255, 255, 255, 0.1);
}

.disco-artist-info {
    display: flex;
    align-items: center;
    gap: 20px;
    flex: 1;
}

.disco-artist-avatar {
    width: 60px; /* Reduced from 80px */
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
}

.disco-artist-details {
    flex: 1;
}

.disco-artist-label {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 5px;
}

.disco-artist-name {
    font-size: 24px; /* Reduced from 32px */
    font-weight: 900;
    margin-bottom: 5px; /* Reduced from 8px */
}

.disco-artist-stats {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
    display: flex;
    gap: 10px;
}

.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    background: #121212; /* ⭐ ADD THIS LINE */
}

.empty-icon {
    font-size: 80px;
    margin-bottom: 20px;
    opacity: 0.5;
}

.empty-text {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.6);
}

.disco-play-all-btn {
    padding: 15px 30px;
    background: linear-gradient(135deg, #E91E8C, #F67854);
    border: none;
    border-radius: 30px;
    color: white;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s;
}

.disco-play-all-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(233, 30, 140, 0.3);
}

.disco-songs-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px 40px 40px 40px; /* Top: 20px, Right: 40px, Bottom: 40px, Left: 40px */
}

.disco-songs-header {
    display: flex; /* Changed from grid to flex */
    align-items: center;
    padding: 12px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: rgba(255, 255, 255, 0.4);
    margin-bottom: 5px;
    gap: 15px;
}

.disco-header-rank {
    width: 40px;
    text-align: center;
    flex-shrink: 0;
}

.disco-header-title {
    flex: 1;
    margin-left: 65px; /* Offset for cover image */
}

.disco-header-duration {
    width: 50px;
    text-align: right;
    margin-right: 10px;
    flex-shrink: 0;
}

.disco-song-row {
    display: flex; /* Changed from grid to flex for better control */
    align-items: center;
    padding: 12px 20px;
    border-radius: 8px;
    gap: 15px;
    transition: all 0.2s;
    cursor: pointer;
}

.disco-song-row:hover {
    background: rgba(255, 255, 255, 0.05);
}

.disco-song-row.playing {
    background: rgba(233, 30, 140, 0.1);
}

.disco-song-rank {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.6);
    text-align: center;
    width: 40px;
    flex-shrink: 0;
}

.disco-song-cover {
    width: 50px;
    height: 50px;
    border-radius: 4px;
    object-fit: cover;
    flex-shrink: 0;
}

.disco-song-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.disco-song-title {
    font-size: 15px;
    font-weight: 600;
    color: white;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.disco-song-meta {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.6);
    display: flex;
    gap: 6px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.disco-song-duration {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
    width: 50px;
    text-align: right;
    flex-shrink: 0;
    margin-right: 10px;
}

.disco-song-actions {
    display: flex;
    gap: 8px;
    flex-shrink: 0; /* ⭐ Prevent buttons from shrinking */
}

.disco-play-btn,
.disco-save-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    background: rgba(48, 179, 184, 0.2);
    color: #30B3B8;
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    flex-shrink: 0;
}

.disco-play-btn:hover {
    background: #30B3B8;
    color: white;
    transform: scale(1.1);
}

.disco-save-btn:hover {
    background: #E91E8C;
    color: white;
    transform: scale(1.1);
}

.disco-save-btn.saved {
    background: #30B3B8;
    color: white;
}

@media (max-width: 768px) {
    .disco-header {
        flex-direction: column;
        align-items: flex-start;
        padding: 15px 20px;
    }
    
    .disco-artist-name {
        font-size: 20px;
    }
    
    .disco-songs-header {
        padding: 8px 15px;
    }
    
    .disco-header-title {
        margin-left: 50px; /* Smaller offset on mobile */
    }
    
    .disco-song-row {
        padding: 10px 15px;
        gap: 10px;
    }
    
    .disco-song-duration {
        display: none; /* Hide duration on mobile to save space */
    }
    
    .disco-song-actions {
        gap: 6px;
    }
    
    .disco-play-btn,
    .disco-save-btn {
        width: 32px;
        height: 32px;
        font-size: 14px;
    }
}

/* ============================================
   SEARCH VIEW STYLES
   ============================================ */

/* Add dark background to search view */
#search-view {
    background: #1a1a2e;
    min-height: 100vh;
}

/* Search Header */
.search-header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px 8px;
    background: #1a1a2e;
}

.search-header-logo {
    display: flex;
    align-items: center;
    gap: 8px;
}

.search-logo-img,
.search-fox-logo {
    width: 32px;
    height: 32px;
    object-fit: contain;
}

.search-logo-text {
    font-family: 'Archivo', sans-serif;
    font-size: 24px;
    font-weight: 700;
    color: white;
}

.search-logo-dot {
    color: #30B3B8;
}

.search-header-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: #30B3B8;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s ease;
}

.search-header-icon:hover {
    background: rgba(48, 179, 184, 0.2);
}

/* Search Bar */
.search-bar-container {
    padding: 12px 16px 16px 16px;
    background: #1a1a2e;
    position: sticky;
    top: 0;
    z-index: 10;
}

.search-bar-search {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    padding: 12px 20px;
    gap: 12px;
}

.search-icon-search {
    color: #30B3B8;
    flex-shrink: 0;
}

/* Search Results Container */
.search-results {
    padding: 20px 16px;
    padding-bottom: 100px;
}

.search-results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.search-results-title {
    font-size: 24px;
    font-weight: 700;
    color: white;
    margin: 0;
}

.clear-search-btn {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: rgba(255, 255, 255, 0.7);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.clear-search-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    color: white;
}

.search-section {
    margin-bottom: 32px;
}

.search-section-title {
    font-size: 18px;
    font-weight: 700;
    color: white;
    margin: 0 0 16px 0;
}

.search-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* Search Result Items */
.search-song-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.search-song-item:hover {
    background: rgba(255, 255, 255, 0.1);
}

.search-song-item:active {
    transform: scale(0.98);
}

.search-song-cover {
    width: 60px;
    height: 60px;
    border-radius: 8px;
    object-fit: cover;
    flex-shrink: 0;
}

.search-song-info {
    flex: 1;
    min-width: 0;
}

.search-song-title {
    font-size: 16px;
    font-weight: 600;
    color: white;
    margin-bottom: 4px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.search-song-artist {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.search-artist-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.search-artist-item:hover {
    background: rgba(255, 255, 255, 0.1);
}

.search-artist-item:active {
    transform: scale(0.98);
}

.search-artist-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.search-artist-info {
    flex: 1;
    min-width: 0;
}

.search-artist-name {
    font-size: 16px;
    font-weight: 600;
    color: white;
    margin-bottom: 4px;
}

.search-artist-meta {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
}

.search-no-results {
    text-align: center;
    padding: 60px 20px;
    color: rgba(255, 255, 255, 0.5);
}

.search-no-results .empty-icon {
    font-size: 60px;
    margin-bottom: 16px;
}

#searchInputMain {
    flex: 1;
    background: none;
    border: none;
    color: white;
    font-size: 16px;
    outline: none;
}

#searchInputMain::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

/* Play Random Hero */
.play-random-hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 40px 20px 32px 20px;
    background: #1a1a2e; /* ⭐ ADDED */
}

.vinyl-button {
    width: 200px;
    height: 200px;
    background: none;
    border: none;
    cursor: pointer;
    transition: transform 0.2s ease;
    padding: 0;
}

.vinyl-button:active {
    transform: scale(0.95);
}

.vinyl-outer {
    width: 100%;
    height: 100%;
    background: #30B3B8;
    border-radius: 50%;
    box-shadow: 0 12px 32px rgba(48, 179, 184, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.vinyl-inner {
    width: 85%;
    height: 85%;
    background: linear-gradient(135deg, #1a9a9e, #30B3B8);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.vinyl-grooves {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: 
        radial-gradient(circle at center,
            transparent 30%,
            rgba(0,0,0,0.1) 30%,
            rgba(0,0,0,0.1) 32%,
            transparent 32%,
            transparent 45%,
            rgba(0,0,0,0.1) 45%,
            rgba(0,0,0,0.1) 47%,
            transparent 47%,
            transparent 60%,
            rgba(0,0,0,0.1) 60%,
            rgba(0,0,0,0.1) 62%,
            transparent 62%
        );
}

.vinyl-center {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #2aa2a7, #30B3B8);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: inset 0 2px 8px rgba(0,0,0,0.2);
    z-index: 1;
}

.play-icon-vinyl {
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
}

.random-label {
    margin-top: 20px;
    font-size: 18px;
    font-weight: 700;
    color: white;
    text-align: center;
}

.random-sublabel {
    margin-top: 8px;
    font-size: 14px;
    color: #30B3B8;
    text-align: center;
}

/* Genre Chips Section */
.genre-chips-section {
    padding: 0 16px 20px 16px;
    background: #1a1a2e; /* ⭐ ADDED */
}

.section-title-search {
    font-size: 20px;
    font-weight: 700;
    color: white;
    margin: 0 0 16px 0;
}

.genre-chips-container {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 4px;
}

.genre-chips-container::-webkit-scrollbar {
    display: none;
}

.genre-chip {
    flex-shrink: 0;
    padding: 10px 20px;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid transparent;
    border-radius: 24px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.genre-chip:hover {
    background: rgba(255, 255, 255, 0.15);
}

.genre-chip.active {
    background: #30B3B8;
    color: white;
    border-color: #30B3B8;
}

/* Browse Sections */
.browse-sections {
    padding: 0 0 100px 0;
    background: #1a1a2e; /* ⭐ ADDED */
}

.browse-section {
    margin-bottom: 32px;
    background: #1a1a2e; /* ⭐ ADDED */
}

.browse-section .section-title-search {
    padding: 0 16px;
    margin-bottom: 16px;
    color: white; /* ⭐ ADDED */
}

.horizontal-scroll {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding: 0 16px 8px 16px;
}

.horizontal-scroll::-webkit-scrollbar {
    display: none;
}

/* Loading text on dark background */
.loading-text {
    color: rgba(255, 255, 255, 0.5);
    font-size: 14px;
    padding: 20px;
}

/* Song Card (for horizontal scroll) */
.song-card {
    flex-shrink: 0;
    width: 140px;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.song-card:active {
    transform: scale(0.95);
}

.song-card-cover {
    width: 140px;
    height: 140px;
    border-radius: 8px;
    object-fit: cover;
    background: rgba(255, 255, 255, 0.1);
    margin-bottom: 8px;
}

/* Song Card text colors for dark background */
.song-card-title {
    font-size: 14px;
    font-weight: 600;
    color: white; /* ⭐ CHANGED from default */
    margin-bottom: 4px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.song-card-artist {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.6); /* ⭐ CHANGED from default */
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Artist Card (for horizontal scroll) */
.artist-card-search {
    flex-shrink: 0;
    width: 120px;
    cursor: pointer;
    text-align: center;
}

.artist-card-search:active {
    transform: scale(0.95);
}

.artist-card-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    background: rgba(255, 255, 255, 0.1);
    margin-bottom: 8px;
}

/* Artist Card text colors for dark background */
.artist-card-name {
    font-size: 14px;
    font-weight: 600;
    color: white; /* ⭐ CHANGED from default */
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.artist-card-meta {
    font-size: 12px;
    color: #30B3B8;
    margin-top: 4px;
}

.empty-message-search {
    padding: 40px 20px;
    text-align: center;
    color: rgba(255, 255, 255, 0.5);
    font-size: 14px;
}

/* Responsive Adjustments */
@media (max-width: 375px) {
    .vinyl-record {
        width: 160px;
        height: 160px;
    }
    
    .petal {
        width: 120px;
        height: 60px;
        font-size: 12px;
    }
    
    .flower-container {
        height: calc(100vh - 220px);
    }
}

/* ============================================
   DELETION COUNTDOWN VIEW STYLES
   ============================================ */
#deletion-countdown-view {
    background: linear-gradient(135deg, #1a1a2e 0%, #0f0f1e 100%);
    min-height: 100vh;
    display: none;
    align-items: center;
    justify-content: center;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 100;
    overflow-y: auto;  /* ⭐ ADD THIS - Allow scrolling */
    -webkit-overflow-scrolling: touch;  /* ⭐ ADD THIS - Smooth iOS scrolling */
}

/* ⭐ Show when active */
#deletion-countdown-view.active {
    display: flex;
}

.countdown-container {
    max-width: 600px;
    width: 100%;
    padding: 40px 20px;
    padding-bottom: 120px;  /* ⭐ ADD EXTRA BOTTOM PADDING to clear bottom nav */
    text-align: center;
    margin: auto;  /* ⭐ ADD THIS - Center vertically when scrolling */
}

.countdown-icon {
    font-size: 80px;
    margin-bottom: 24px;
}

.countdown-title {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 16px;
    line-height: 1.3;
    color: white;
}

.countdown-days {
    font-size: 48px;
    font-weight: 700;
    color: #E91E8C;
    margin: 32px 0;
}

.countdown-info {
    background: rgba(48, 179, 184, 0.1);
    border: 1px solid rgba(48, 179, 184, 0.3);
    border-radius: 12px;
    padding: 24px;
    margin: 24px 0;
    text-align: left;
}

.countdown-info p {
    margin: 0 0 12px 0;
    color: #94a3b8;
    line-height: 1.6;
}

.countdown-info p:last-child {
    margin-bottom: 0;
}

.countdown-info strong {
    color: white;
}

.action-buttons-countdown {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 32px;
}

.btn-export-countdown,
.btn-recover-countdown {
    padding: 16px 32px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-export-countdown {
    background: rgba(48, 179, 184, 0.1);
    color: #30B3B8;
    border: 2px solid #30B3B8;
}

.btn-export-countdown:hover {
    background: rgba(48, 179, 184, 0.2);
}

.btn-recover-countdown {
    background: #30B3B8;
    color: white;
}

.btn-recover-countdown:hover {
    background: #2a9fa3;
}

.help-text-countdown {
    margin-top: 24px;
    color: #64748b;
    font-size: 14px;
    line-height: 1.6;
}

@media (max-width: 640px) {
    .countdown-title {
        font-size: 24px;
    }
    
    .countdown-days {
        font-size: 36px;
    }
    
    .countdown-container {
        padding-bottom: 150px;  /* ⭐ Even more padding on mobile */
    }
}

/* ============================================
   ADMIN DASHBOARD STYLES
   ============================================ */
#admin-view {
    background: #f5f7fa;
    min-height: 100vh;
    padding-bottom: 100px;
}

.admin-container {
    max-width: 1200px;
    margin: 0 auto;
}

.admin-header {
    background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
    color: white;
    padding: 24px 32px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.admin-header h1 {
    margin: 0;
    font-size: 24px;
    font-weight: 700;
}

.admin-logout-btn {
    padding: 10px 20px;
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.2s;
}

.admin-logout-btn:hover {
    background: rgba(255, 255, 255, 0.3);
}

.admin-tabs {
    background: white;
    border-bottom: 1px solid #e5e7eb;
    display: flex;
    gap: 0;
    padding: 0 32px;
}

.admin-tab-btn {
    padding: 16px 24px;
    background: none;
    border: none;
    border-bottom: 3px solid transparent;
    color: #64748b;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
}

.admin-tab-btn:hover {
    color: #3b82f6;
}

.admin-tab-btn.active {
    color: #1e3a8a;
    border-bottom-color: #3b82f6;
}

.admin-badge {
    background: #ef4444;
    color: white;
    font-size: 11px;
    padding: 2px 8px;
    border-radius: 10px;
    font-weight: 700;
}

.admin-content {
    padding: 32px;
}

.admin-tab-content {
    display: none;
}

.admin-tab-content.active {
    display: block;
}

.admin-loading {
    text-align: center;
    padding: 60px;
    color: #64748b;
    font-size: 16px;
}

.admin-empty {
    text-align: center;
    padding: 80px 20px;
    color: #94a3b8;
}

.admin-empty-icon {
    font-size: 60px;
    margin-bottom: 16px;
    opacity: 0.5;
}

.admin-empty p {
    margin: 0;
    font-size: 16px;
}

/* Deletion Card */
.deletion-card {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 20px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.deletion-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid #f3f4f6;
}

.deletion-user-info h3 {
    margin: 0 0 8px 0;
    font-size: 18px;
    color: #1e293b;
}

.deletion-user-meta {
    display: flex;
    gap: 12px;
    font-size: 13px;
    color: #64748b;
}

.deletion-type-badge {
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}

.deletion-type-badge.artist {
    background: #dbeafe;
    color: #1e40af;
}

.deletion-type-badge.listener {
    background: #d1fae5;
    color: #065f46;
}

.deletion-days-badge {
    padding: 6px 16px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 14px;
}

.deletion-days-badge.urgent {
    background: #fee2e2;
    color: #dc2626;
}

.deletion-days-badge.warning {
    background: #fef3c7;
    color: #d97706;
}

.deletion-days-badge.normal {
    background: #e0f2fe;
    color: #0284c7;
}

.deletion-impact {
    background: #f8fafc;
    padding: 16px;
    border-radius: 8px;
    margin-bottom: 16px;
}

.deletion-impact h4 {
    margin: 0 0 12px 0;
    font-size: 14px;
    color: #475569;
    font-weight: 600;
}

.deletion-impact ul {
    margin: 0;
    padding-left: 20px;
    color: #64748b;
    font-size: 14px;
    line-height: 1.8;
}

.deletion-email-status {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.email-status-indicator {
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
}

.email-status-indicator.sent {
    background: #d1fae5;
    color: #065f46;
}

.email-status-indicator.not-sent {
    background: #fee2e2;
    color: #dc2626;
}

.admin-btn {
    padding: 8px 16px;
    border: none;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.admin-btn-small {
    padding: 6px 12px;
    font-size: 12px;
}

.admin-btn-primary {
    background: #3b82f6;
    color: white;
}

.admin-btn-primary:hover {
    background: #2563eb;
}

.admin-btn-secondary {
    background: #f3f4f6;
    color: #475569;
    border: 1px solid #e5e7eb;
}

.admin-btn-secondary:hover {
    background: #e5e7eb;
}

.admin-btn-danger {
    background: #fee2e2;
    color: #dc2626;
    border: 1px solid #fecaca;
}

.admin-btn-danger:hover {
    background: #fecaca;
}

.deletion-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid #f3f4f6;
}

.deletion-dates {
    font-size: 13px;
    color: #64748b;
    margin-bottom: 8px;
}

.deletion-dates strong {
    color: #1e293b;
}

/* History Card */
.history-card {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 16px;
}

.history-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.history-status-badge {
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}

.history-status-badge.completed {
    background: #d1fae5;
    color: #065f46;
}

.history-status-badge.recovered {
    background: #dbeafe;
    color: #1e40af;
}

.history-status-badge.expedited {
    background: #fef3c7;
    color: #d97706;
}

.history-status-badge.cancelled {
    background: #f3f4f6;
    color: #64748b;
}

.history-details {
    font-size: 13px;
    color: #64748b;
    line-height: 1.6;
}

.history-admin-action {
    background: #fef3c7;
    padding: 12px;
    border-radius: 6px;
    margin-top: 12px;
    font-size: 13px;
}

.history-admin-action strong {
    color: #92400e;
}

@media (max-width: 768px) {
    .admin-header {
        padding: 20px 16px;
    }
    
    .admin-header h1 {
        font-size: 20px;
    }
    
    .admin-tabs {
        padding: 0 16px;
    }
    
    .admin-content {
        padding: 20px 16px;
    }
    
    .deletion-card {
        padding: 20px 16px;
    }
    
    .deletion-actions {
        flex-direction: column;
    }
    
    .admin-btn {
        width: 100%;
    }
}
/* ============================================
   TEAL ROOM VIEW STYLES
   ============================================ */
#tealroom-view {
    background: #1a1a2e;
    min-height: 100vh;
    padding-bottom: 150px;
}

.tealroom-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0;
}

/* TealRoom Header Row - Updated for 3-column layout */
.tealroom-header-row {
    position: sticky;
    top: 0;
    z-index: 100;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    padding-top: calc(16px + env(safe-area-inset-top, 0));
    gap: 16px;
    background: linear-gradient(to bottom,
        rgba(26, 26, 46, 0.95) 0%,
        rgba(26, 26, 46, 0.85) 60%,
        rgba(26, 26, 46, 0) 100%
    );
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.tealroom-header-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.tealroom-logo-img {
    width: 32px;
    height: 32px;
    object-fit: contain;
}

.tealroom-logo-text {
    font-family: 'Archivo', sans-serif;
    font-size: 20px;
    font-weight: 700;
    color: #ffffff;
}

.tealroom-logo-dot {
    color: #E91E8C;
}

.tealroom-header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-left: auto;
    flex-shrink: 0;
}

.tealroom-header-icon-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    position: relative;
}

.tealroom-header-icon-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: scale(1.05);
}

.tealroom-header-icon-btn:active {
    transform: scale(0.95);
}
/* Create Post Icon - Gradient border on hover */
.create-post-icon {
    background: linear-gradient(135deg, #30B3B8 0%, #E91E8C 100%);
    border: none;
}

.create-post-icon:hover {
    transform: scale(1.1);
    box-shadow: 0 0 16px rgba(48, 179, 184, 0.5);
}
.create-post-icon svg {
    stroke: white;
}

/* Notifications Icon */
.notifications-icon {
    border: 1px solid rgba(246, 120, 84, 0.3);
}

.notifications-icon:hover {
    border-color: #F67854;
    box-shadow: 0 0 12px rgba(246, 120, 84, 0.3);
}

/* Notification Badge */
.notification-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    background: #E91E8C;
    border-radius: 9px;
    font-size: 11px;
    font-weight: 700;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: pulseBadge 2s infinite;
}

@keyframes pulseBadge {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.8; transform: scale(1.05); }
}

/* TealRoom Feed Toggle - Slider Style (matches Stages) */
.tealroom-feed-toggle {
    position: relative;
    display: flex;
    background: rgba(48, 179, 184, 0.1);
    border-radius: 25px;
    padding: 4px;
    gap: 4px;
    flex-shrink: 0;
}

.tealroom-toggle-pill {
    position: relative;
    padding: 8px 20px;
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    border-radius: 20px;
    transition: color 0.3s ease;
    z-index: 2;
    white-space: nowrap;
}

.tealroom-toggle-pill.active {
    color: white;
}

.tealroom-toggle-slider {
    position: absolute;
    top: 4px;
    left: 4px;
    height: calc(100% - 8px);
    width: calc(50% - 6px);
    background: linear-gradient(135deg, #30B3B8 0%, #26a0a5 100%);
    border-radius: 20px;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1;
    box-shadow: 0 2px 8px rgba(48, 179, 184, 0.3);
}

/* Move slider when second pill is active */
.tealroom-feed-toggle:has(.tealroom-toggle-pill:nth-child(2).active) .tealroom-toggle-slider {
    transform: translateX(calc(100% + 8px));
}

.tealroom-toggle-btn {
    flex: 1;
    padding: 12px 20px;
    background: transparent;
    border: none;
    border-radius: 21px;
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.tealroom-toggle-btn:hover {
    color: rgba(255, 255, 255, 0.8);
}

.tealroom-toggle-btn.active {
    background: linear-gradient(135deg, #30B3B8 0%, #E91E8C 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(48, 179, 184, 0.3);
}

/* Mobile responsiveness */
@media (max-width: 600px) {
    .tealroom-header-row {
        padding: 16px 16px 12px 16px;
        gap: 12px;
    }

    .tealroom-toggle-pill {
        padding: 6px 16px;
        font-size: 13px;
    }
}

/* Feed Tabs */
.tealroom-tabs {
    display: flex;
    background: rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(48, 179, 184, 0.2);
    position: sticky;
    top: 0;
    z-index: 50;
    backdrop-filter: blur(10px);
}

.tealroom-tab-btn {
    flex: 1;
    padding: 16px;
    background: transparent;
    border: none;
    border-bottom: 3px solid transparent;
    color: rgba(255, 255, 255, 0.6);
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.tealroom-tab-btn:hover {
    color: #30B3B8;
}

.tealroom-tab-btn.active {
    color: #30B3B8;
    border-bottom-color: #30B3B8;
}

/* Feed Container - Keep existing */
.tealroom-feed-container {
    padding: 0 16px 40px;
}

.tealroom-feed {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* Empty State - Keep existing */
.tealroom-empty {
    text-align: center;
    padding: 80px 20px;
}

.tealroom-empty .empty-icon {
    font-size: 60px;
    margin-bottom: 16px;
    opacity: 0.5;
}

.tealroom-empty .empty-title {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 8px;
}

.tealroom-empty .empty-text {
    font-size: 15px;
    color: rgba(255, 255, 255, 0.6);
}

/* Post Card */
.tealroom-post-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(48, 179, 184, 0.2);
    border-radius: 12px;
    padding: 16px;
    transition: all 0.2s;
}

.tealroom-post-card:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(48, 179, 184, 0.4);
}

/* Post Header */
.post-header-tealroom {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.post-artist-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 2px solid #30B3B8;
    object-fit: cover;
    cursor: pointer;
    flex-shrink: 0;
}

.post-artist-avatar:hover {
    border-color: #E91E8C;
}

.post-meta-tealroom {
    flex: 1;
    min-width: 0;
}

.post-artist-name {
    font-size: 15px;
    font-weight: 600;
    color: white;
    cursor: pointer;
    margin-bottom: 2px;
}

.post-artist-name:hover {
    color: #30B3B8;
}

.post-time-tealroom {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.5);
}

.post-options-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.5);
    font-size: 20px;
    cursor: pointer;
    transition: all 0.2s;
}

.post-options-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

/* Post Body */
.post-body-tealroom {
    margin-bottom: 12px;
}

.post-title-tealroom {
    font-size: 18px;
    font-weight: 700;
    color: white;
    margin-bottom: 8px;
}

.post-text-tealroom {
    font-size: 15px;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.5;
    white-space: pre-wrap;
    word-wrap: break-word;
}

.post-text-tealroom.truncated {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.post-read-more-btn {
    background: none;
    border: none;
    color: #30B3B8;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    padding: 4px 0;
    margin-top: 4px;
}

.post-read-more-btn:hover {
    text-decoration: underline;
}

/* Verified Badge in Post */
.post-artist-name .verified-badge {
    margin-left: 4px;
    vertical-align: middle;
}

/* ============================================
   TIER BADGE SYSTEM
   ============================================ */

/* Avatar Frame Wrapper - wraps profile pics for gradient borders */
.post-artist-avatar-wrapper {
    position: relative;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    padding: 2px;
    background: #30B3B8; /* Default - teal */
    flex-shrink: 0;
}

.post-artist-avatar-wrapper .post-artist-avatar {
    width: 100% !important;
    height: 100% !important;
    border: none !important; /* Remove old border since wrapper handles it */
}

.post-artist-avatar-wrapper img {
    width: 100% !important;
    height: 100% !important;
    border-radius: 50%;
    object-fit: cover;
}

.post-artist-avatar-wrapper .avatar-initials {
    width: 100% !important;
    height: 100% !important;
}

/* Tier Frame Colors */
.tier-frame-opener {
    background: #30B3B8 !important; /* Teal */
}

.tier-frame-rising {
    background: #F67854 !important; /* Orange */
}

.tier-frame-headliner {
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 50%, #FFD700 100%) !important; /* Gold gradient */
}

.tier-frame-legend {
    background: linear-gradient(135deg, #8B5CF6 0%, #EC4899 100%) !important; /* Purple to pink gradient */
}

.tier-frame-icon {
    background: linear-gradient(135deg, #E91E8C 0%, #30B3B8 100%) !important; /* Pink to teal gradient */
}

/* Tier Badge Icons - next to artist names */
.tier-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    margin-left: 4px;
    vertical-align: middle;
}

.tier-badge svg {
    width: 14px;
    height: 14px;
}

/* Tier badge colors */
.tier-badge-opener {
    background: #30B3B8;
    border-radius: 50%;
    padding: 3px;
}

.tier-badge-opener svg {
    fill: white !important;
    width: 10px;
    height: 10px;
}

.tier-badge-rising {
    background: #F67854;
    border-radius: 50%;
    padding: 3px;
}

.tier-badge-rising svg {
    fill: white !important;
    width: 10px;
    height: 10px;
}

/* Headliner: gold gradient circle with white star */
.tier-badge-headliner {
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
    border-radius: 50%;
    padding: 3px;
}

.tier-badge-headliner svg {
    fill: white !important;
    width: 10px;
    height: 10px;
}

/* Legend: purple-pink gradient circle with white crown */
.tier-badge-legend {
    background: linear-gradient(135deg, #8B5CF6 0%, #EC4899 100%);
    border-radius: 50%;
    padding: 3px;
}

.tier-badge-legend svg {
    fill: white !important;
    width: 10px;
    height: 10px;
}

/* Icon: pink-teal gradient circle with white diamond */
.tier-badge-icon {
    background: linear-gradient(135deg, #E91E8C 0%, #30B3B8 100%);
    border-radius: 50%;
    padding: 3px;
}

.tier-badge-icon svg {
    fill: white !important;
    width: 10px;
    height: 10px;
}

.tier-badge-icon svg path {
    fill: white !important;
}

/* Inline Reply Section */
.post-reply-section {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 0 0 0;
    margin-top: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.post-reply-input {
    flex: 1;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 24px;
    padding: 10px 16px;
    color: white;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s ease;
}

.post-reply-input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.post-reply-input:focus {
    border-color: #30B3B8;
}

.post-reply-send {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #30B3B8;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.2s ease;
}

.post-reply-send:hover {
    background: #28a0a5;
    transform: scale(1.05);
}

.post-reply-send svg {
    stroke: white;
}

/* Follow to Reply Prompt */
.post-follow-to-reply {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 14px;
    margin-top: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(48, 179, 184, 0.1);
    border-radius: 24px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.post-follow-to-reply span {
    color: #30B3B8;
    font-size: 14px;
    font-weight: 600;
}

.post-follow-to-reply:hover {
    background: rgba(48, 179, 184, 0.2);
}

/* Post Media */
.post-media-tealroom {
    margin-bottom: 12px;
    border-radius: 8px;
    overflow: hidden;
}

.post-image-tealroom {
    width: 100%;
    max-height: 400px;
    object-fit: cover;
    cursor: pointer;
}

/* Post Song Attachment */
.post-song-attachment {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: rgba(48, 179, 184, 0.1);
    border: 1px solid rgba(48, 179, 184, 0.3);
    border-radius: 8px;
    margin-bottom: 12px;
    cursor: pointer;
    transition: all 0.2s;
}

.post-song-attachment:hover {
    background: rgba(48, 179, 184, 0.15);
    border-color: #30B3B8;
}

.post-song-cover {
    width: 48px;
    height: 48px;
    border-radius: 6px;
    object-fit: cover;
    flex-shrink: 0;
}

.post-song-info {
    flex: 1;
    min-width: 0;
}

.post-song-title {
    font-size: 14px;
    font-weight: 600;
    color: white;
    margin-bottom: 2px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.post-song-artist {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.6);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.post-song-play-icon {
    font-size: 24px;
    color: #30B3B8;
    flex-shrink: 0;
}

/* Post Actions - UPDATED */
.post-actions-tealroom {
    display: flex;
    align-items: center;
    gap: 20px;
    padding-top: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.action-btn-tealroom {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s;
    padding: 6px 12px;
    border-radius: 20px;
}

.action-btn-tealroom:hover {
    background: rgba(255, 255, 255, 0.05);
    color: white;
}

.action-btn-tealroom.active {
    color: #E91E8C;
}

.action-btn-tealroom.active svg {
    stroke: #E91E8C;
    fill: #E91E8C; /* ⭐ Fill when active (like/save) */
}

.action-btn-tealroom .icon {
    flex-shrink: 0;
    stroke: currentColor;
}

.action-btn-tealroom .count {
    font-weight: 600;
}

/* Comments Section */
.post-comments-section {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.comment-input-container {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
}

.comment-textarea {
    flex: 1;
    padding: 10px 14px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(48, 179, 184, 0.3);
    border-radius: 20px;
    color: white;
    font-size: 14px;
    resize: none;
    min-height: 40px;
    max-height: 120px;
    font-family: inherit;
}

.comment-textarea::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.comment-textarea:focus {
    outline: none;
    border-color: #30B3B8;
    background: rgba(255, 255, 255, 0.08);
}

.btn-post-comment {
    padding: 10px 20px;
    background: #30B3B8;
    border: none;
    border-radius: 20px;
    color: white;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}

.btn-post-comment:hover {
    background: #2a9fa3;
}

.btn-post-comment:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Comment Item */
.comment-item {
    display: flex;
    gap: 10px;
    margin-bottom: 12px;
    padding-left: 0;
}

.comment-item.reply {
    padding-left: 40px;
}

.comment-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.comment-content {
    flex: 1;
    min-width: 0;
}

.comment-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 4px;
}

.comment-author {
    font-size: 14px;
    font-weight: 600;
    color: white;
}

.artist-badge {
    font-size: 10px;
    padding: 2px 6px;
    background: linear-gradient(135deg, #30B3B8, #E91E8C);
    border-radius: 4px;
    color: white;
    font-weight: 700;
}

.comment-time {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.4);
}

.comment-text {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.4;
    margin-bottom: 6px;
    word-wrap: break-word;
}

.comment-reply-btn {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.5);
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    padding: 0;
}

.comment-reply-btn:hover {
    color: #30B3B8;
}

/* Follow to Reply Gate (Explore feed) */
.follow-to-reply-gate {
    padding: 20px;
    text-align: center;
    background: rgba(48, 179, 184, 0.05);
    border: 1px dashed rgba(48, 179, 184, 0.3);
    border-radius: 8px;
    margin-top: 16px;
}

.follow-gate-text {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 12px;
}

.btn-follow-to-reply {
    padding: 10px 24px;
    background: #E91E8C;
    border: none;
    border-radius: 20px;
    color: white;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-follow-to-reply:hover {
    background: #d01a7c;
}

/* Create Post Modal */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    padding: 20px;
}

.modal-content {
    background: #1a1a2e;
    border: 1px solid rgba(48, 179, 184, 0.3);
    border-radius: 16px;
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.tealroom-modal .modal-header {
    padding: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.tealroom-modal .modal-header h2 {
    margin: 0;
    font-size: 22px;
    color: white;
}

.tealroom-modal .modal-body {
    padding: 20px;
}

.tealroom-modal .modal-footer {
    padding: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Post Textarea */
.post-textarea {
    width: 100%;
    min-height: 120px;
    padding: 14px;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(48, 179, 184, 0.3);
    border-radius: 8px;
    color: white;
    font-size: 16px;
    font-family: inherit;
    resize: vertical;
    margin-bottom: 8px;
}

.post-textarea::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.post-textarea:focus {
    outline: none;
    border-color: #30B3B8;
    background: rgba(255, 255, 255, 0.08);
}

.char-count {
    text-align: right;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 16px;
}

/* Upload Sections */
.upload-section-tealroom,
.song-attach-section {
    margin-bottom: 16px;
}

.upload-btn-tealroom {
    width: 100%;
    padding: 12px;
    background: rgba(48, 179, 184, 0.1);
    border: 1px dashed rgba(48, 179, 184, 0.5);
    border-radius: 8px;
    color: #30B3B8;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.upload-btn-tealroom:hover {
    background: rgba(48, 179, 184, 0.15);
    border-color: #30B3B8;
}

/* Photo Preview */
.photo-preview-container {
    position: relative;
    margin-top: 12px;
    border-radius: 8px;
    overflow: hidden;
}

.photo-preview-container img {
    width: 100%;
    max-height: 300px;
    object-fit: cover;
    display: block;
}

.remove-photo-btn,
.remove-song-btn {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(233, 30, 140, 0.9);
    border: none;
    color: white;
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.remove-photo-btn:hover,
.remove-song-btn:hover {
    background: #E91E8C;
    transform: scale(1.1);
}

/* Song Preview */
.song-preview-container {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: rgba(48, 179, 184, 0.1);
    border: 1px solid rgba(48, 179, 184, 0.3);
    border-radius: 8px;
    margin-top: 12px;
    position: relative;
}

.song-preview-cover {
    width: 48px;
    height: 48px;
    border-radius: 6px;
    object-fit: cover;
    flex-shrink: 0;
}

.song-preview-info {
    flex: 1;
    min-width: 0;
}

.song-preview-title {
    font-size: 14px;
    font-weight: 600;
    color: white;
    display: block;
    margin-bottom: 2px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.song-preview-label {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.5);
}

.remove-song-btn {
    position: static;
}

/* ===== VIDEO ATTACHMENT STYLES ===== */

/* Video Attach Section */
.video-attach-section {
    margin-top: 12px;
}

/* Video URL Input */
.video-url-input-container {
    margin-top: 12px;
    padding: 12px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
}

.video-url-input {
    width: 100%;
    padding: 10px 12px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(48, 179, 184, 0.3);
    border-radius: 6px;
    color: white;
    font-size: 14px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.video-url-input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.video-url-input:focus {
    outline: none;
    border-color: #30B3B8;
}

/* Video URL Actions */
.video-url-actions {
    display: flex;
    gap: 8px;
    margin-top: 8px;
}

.btn-add-video,
.btn-cancel-video {
    flex: 1;
    padding: 8px 16px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-add-video {
    background: #30B3B8;
    color: white;
}

.btn-add-video:hover {
    background: #2a9fa3;
}

.btn-cancel-video {
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

.btn-cancel-video:hover {
    background: rgba(255, 255, 255, 0.15);
}

/* Video URL Error */
.video-url-error {
    margin-top: 8px;
    padding: 8px 12px;
    background: rgba(255, 59, 48, 0.1);
    border: 1px solid rgba(255, 59, 48, 0.3);
    border-radius: 6px;
    color: #ff3b30;
    font-size: 13px;
}

/* Video Preview Container */
.video-preview-container {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 12px;
    padding: 12px;
    background: rgba(48, 179, 184, 0.1);
    border: 1px solid rgba(48, 179, 184, 0.3);
    border-radius: 8px;
}

.video-preview-thumbnail {
    position: relative;
    width: 80px;
    height: 45px;
    border-radius: 4px;
    overflow: hidden;
    flex-shrink: 0;
}

.video-preview-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-play-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 24px;
    height: 24px;
    background: rgba(0, 0, 0, 0.7);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 10px;
    padding-left: 2px;
}

.video-preview-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.video-preview-label {
    font-size: 13px;
    color: #30B3B8;
    font-weight: 500;
}

.remove-video-btn {
    width: 28px;
    height: 28px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.2s;
}

.remove-video-btn:hover {
    background: rgba(255, 59, 48, 0.3);
}

/* Video Embed in Feed */
.post-youtube-embed {
    margin-top: 12px;
    width: 100%;
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    background: #000;
    aspect-ratio: 16 / 9;
}

.post-youtube-embed iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* Publish Button */
.btn-publish-post {
    width: 100%;
    padding: 14px;
    background: #E91E8C;
    border: none;
    border-radius: 8px;
    color: white;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-publish-post:hover:not(:disabled) {
    background: #F67854;
}

.btn-publish-post:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Song Picker Modal */
.song-picker-modal .modal-body {
    max-height: 60vh;
    overflow-y: auto;
}

.song-picker-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.song-picker-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
}

.song-picker-item:hover {
    background: rgba(255, 255, 255, 0.1);
}

.song-picker-cover {
    width: 48px;
    height: 48px;
    border-radius: 6px;
    object-fit: cover;
    flex-shrink: 0;
}

.song-picker-info {
    flex: 1;
    min-width: 0;
}

.song-picker-title {
    font-size: 15px;
    font-weight: 600;
    color: white;
    margin-bottom: 2px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.song-picker-album {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.6);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Post Detail Modal */
.post-detail-modal {
    max-width: 800px;
}

.back-btn-modal {
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    color: white;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
}

.back-btn-modal:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* Animate count changes */
.action-btn-tealroom .count {
    display: inline-block;
    transition: transform 0.2s ease;
}

/* Responsive */
@media (max-width: 768px) {
    .tealroom-container {
        padding: 0;
    }
    
    .modal-content {
        max-height: 95vh;
    }
}
/* Pull to Refresh Indicator */
.pull-to-refresh-indicator {
    position: absolute;
    top: -60px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: top 0.3s ease;
}

.pull-to-refresh-indicator.pulling {
    top: 20px;
}

.pull-to-refresh-spinner {
    width: 30px;
    height: 30px;
    border: 3px solid rgba(48, 179, 184, 0.3);
    border-top-color: #30B3B8;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}
/* Storage Cleanup Styles */
.cleanup-log {
    white-space: pre-wrap;
    word-wrap: break-word;
}

.cleanup-results-box h4 {
    color: #30B3B8;
    font-size: 16px;
}

.cleanup-results-box p {
    color: #94a3b8;
    margin: 8px 0;
    line-height: 1.6;
}

.admin-btn {
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
}

.admin-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.admin-btn-primary {
    background: #30B3B8;
    color: white;
}

.admin-btn-primary:hover:not(:disabled) {
    background: #2a9fa3;
}

.admin-btn-danger {
    background: #dc2626;
    color: white;
}

.admin-btn-danger:hover:not(:disabled) {
    background: #b91c1c;
}

/* ============================================
   UPDATES VIEW STYLES
   ============================================ */

#updates-view {
    background: #1a1a2e;
    min-height: 100vh;
    padding-bottom: 150px;
}

.updates-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 16px;
}

.updates-header {
    padding: 20px 0 30px;
    border-bottom: 1px solid rgba(48, 179, 184, 0.2);
    margin-bottom: 20px;
}

.updates-title-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.updates-title {
    font-size: 36px;
    font-weight: 900;
    display: flex;
    align-items: center;
    gap: 12px;
}

.unread-badge {
    width: 12px;
    height: 12px;
    background: #E91E8C;
    border-radius: 50%;
    animation: pulseBadge 2s infinite;
}

@keyframes pulseBadge {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.6; transform: scale(1.1); }
}

.mark-all-read {
    padding: 8px 16px;
    background: rgba(48, 179, 184, 0.1);
    border: 1px solid rgba(48, 179, 184, 0.3);
    border-radius: 20px;
    color: #30B3B8;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.mark-all-read:hover {
    background: rgba(48, 179, 184, 0.2);
}

.updates-subtitle {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
}

.updates-feed {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.time-divider {
    font-size: 12px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.4);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 30px 0 16px 0;
    padding-left: 4px;
}

.activity-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(48, 179, 184, 0.2);
    border-radius: 12px;
    padding: 16px;
    cursor: pointer;
    transition: all 0.2s;
}

.activity-card:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(48, 179, 184, 0.4);
    transform: translateY(-2px);
}

.activity-card.unread {
    border-left: 4px solid #E91E8C;
}

.activity-type-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    background: rgba(48, 179, 184, 0.1);
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    color: #30B3B8;
    margin-bottom: 12px;
}

.activity-type-badge.video {
    background: rgba(233, 30, 140, 0.1);
    color: #E91E8C;
}

.activity-type-badge.post {
    background: rgba(246, 120, 84, 0.1);
    color: #F67854;
}

.activity-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.artist-avatar-updates {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 2px solid #30B3B8;
    object-fit: cover;
    flex-shrink: 0;
}

.activity-meta {
    flex: 1;
    min-width: 0;
}

.artist-name-updates {
    font-size: 15px;
    font-weight: 600;
    color: white;
    margin-bottom: 2px;
}

.activity-description {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
}

.activity-timestamp {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.5);
    flex-shrink: 0;
}

.song-preview-updates {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: rgba(48, 179, 184, 0.05);
    border-radius: 8px;
    margin-top: 12px;
}

.song-cover-updates {
    width: 60px;
    height: 60px;
    border-radius: 6px;
    object-fit: cover;
    flex-shrink: 0;
}

.song-info-updates {
    flex: 1;
    min-width: 0;
}

.song-title-updates {
    font-size: 15px;
    font-weight: 600;
    color: white;
    margin-bottom: 4px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.song-album-updates {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.6);
}

.play-icon-updates {
    color: #30B3B8;
    flex-shrink: 0;
}

.video-preview-updates {
    margin-top: 12px;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
    aspect-ratio: 16/9;
    max-height: 200px;
}

.video-thumbnail-updates {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-overlay-updates {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background: rgba(48, 179, 184, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: white;
}

.post-preview-updates {
    margin-top: 12px;
    padding: 12px;
    background: rgba(246, 120, 84, 0.05);
    border-left: 3px solid #F67854;
    border-radius: 4px;
}

.post-text-preview {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.updates-empty {
    text-align: center;
    padding: 100px 20px;
}

.empty-icon-updates {
    font-size: 80px;
    margin-bottom: 20px;
    opacity: 0.5;
}

.empty-title-updates {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 10px;
}

.empty-text-updates {
    font-size: 15px;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 30px;
    line-height: 1.6;
}

.btn-discover-artists {
    padding: 14px 32px;
    background: linear-gradient(135deg, #30B3B8, #E91E8C);
    border: none;
    border-radius: 25px;
    color: white;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-discover-artists:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(48, 179, 184, 0.4);
}

/* Profile 3-Tab Interface */
.profile-tabs-container {
    margin-top: 20px;
}

.library-tabs {
    position: sticky;
    top: 0;
    background: #1a1a2e;
    z-index: 100;
}

.profile-tab-btn {
    transition: all 0.3s ease;
    cursor: pointer;
}

.profile-tab-btn:active {
    transform: scale(0.95);
}

.profile-songs-list .song-item {
    transition: transform 0.2s ease, background 0.2s ease;
}

.profile-songs-list .song-item:active {
    transform: scale(0.98);
    background: rgba(255,255,255,0.1) !important;
}

.play-song-btn, .add-to-library-btn {
    transition: transform 0.2s ease;
    cursor: pointer;
}

.play-song-btn:active, .add-to-library-btn:active {
    transform: scale(0.9);
}

.add-to-library-btn.saved {
    color: #30B3B8 !important;
    border-color: #30B3B8 !important;
}

.videos-grid .video-thumbnail {
    transition: transform 0.2s ease;
}

.videos-grid .video-thumbnail:active {
    transform: scale(0.95);
}

#profile-video-viewer {
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.profile-posts-list {
    animation: slideIn 0.4s ease;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
/* ============================================
   TEALROOM NOTIFICATIONS STYLES
   ============================================ */

/* Notification Badge on Bell Icon */
.notification-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    background: #E91E8C;
    border-radius: 9px;
    font-size: 11px;
    font-weight: 700;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: pulseBadge 2s infinite;
}

.notification-badge.hidden {
    display: none;
}

@keyframes pulseBadge {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.8; transform: scale(1.05); }
}

/* Notification Panel Dropdown */
.notifications-panel {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    width: 340px;
    max-height: 400px;
    background: #1a1a2e;
    border: 1px solid rgba(246, 120, 84, 0.3);
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    z-index: 1000;
    overflow: hidden;
    display: none;
    animation: slideDown 0.2s ease;
}

.notifications-panel.active {
    display: block;
}

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

/* Panel Header */
.notifications-panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(246, 120, 84, 0.05);
}

.notifications-panel-title {
    font-size: 16px;
    font-weight: 700;
    color: white;
}

.notifications-mark-all {
    background: none;
    border: none;
    color: #F67854;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 4px;
    transition: all 0.2s;
}

.notifications-mark-all:hover {
    background: rgba(246, 120, 84, 0.1);
}

/* Notifications List */
.notifications-list {
    max-height: 320px;
    overflow-y: auto;
}

.notifications-list::-webkit-scrollbar {
    width: 6px;
}

.notifications-list::-webkit-scrollbar-track {
    background: transparent;
}

.notifications-list::-webkit-scrollbar-thumb {
    background: rgba(246, 120, 84, 0.3);
    border-radius: 3px;
}

/* Individual Notification Item */
.notification-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 16px;
    cursor: pointer;
    transition: all 0.2s;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.notification-item:hover {
    background: rgba(246, 120, 84, 0.08);
}

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

.notification-item.unread {
    background: rgba(246, 120, 84, 0.05);
    border-left: 3px solid #F67854;
}

.notification-item.unread:hover {
    background: rgba(246, 120, 84, 0.12);
}

/* Notification Avatar */
.notification-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    border: 2px solid rgba(246, 120, 84, 0.3);
}

/* Notification Content */
.notification-content {
    flex: 1;
    min-width: 0;
}

.notification-text {
    font-size: 14px;
    color: white;
    line-height: 1.4;
    margin-bottom: 4px;
}

.notification-text .sender-name {
    font-weight: 600;
    color: #F67854;
}

.notification-preview {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.6);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    margin-bottom: 4px;
}

.notification-time {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.4);
}

/* Empty State */
.notifications-empty {
    text-align: center;
    padding: 40px 20px;
    color: rgba(255, 255, 255, 0.5);
}

.notifications-empty-icon {
    font-size: 40px;
    margin-bottom: 12px;
    opacity: 0.5;
}

.notifications-empty-text {
    font-size: 14px;
}

/* Mobile Responsiveness */
@media (max-width: 400px) {
    .notifications-panel {
        width: calc(100vw - 32px);
        right: -50px;
    }
}

/* Overlay to close panel when clicking outside */
.notifications-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 999;
    display: none;
    pointer-events: none;
}

.notifications-overlay.active {
    display: block;
}

/* ============================================ */
/* MUSIC SUB-TABS */
/* ============================================ */

.music-subtabs-header {
    display: flex;
    gap: 12px;
    margin-bottom: 24px;
    padding: 0 20px;
}

.music-subtab-btn {
    padding: 12px 24px;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid transparent;
    border-radius: 8px;
    color: rgba(255, 255, 255, 0.6);
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.music-subtab-btn:hover {
    background: rgba(48, 179, 184, 0.1);
    color: rgba(255, 255, 255, 0.8);
}

.music-subtab-btn.active {
    background: linear-gradient(135deg, #30B3B8 0%, #E91E8C 100%);
    color: white;
    border-color: transparent;
}

.music-subtab-content {
    display: none;
}

.music-subtab-content.active {
    display: block;
}

/* ============================================ */
/* ALBUM ITEMS */
/* ============================================ */

.album-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    transition: all 0.2s ease;
}

.album-item:hover {
    background: rgba(255, 255, 255, 0.06);
    transform: translateY(-2px);
}

.album-item-thumbnail {
    width: 80px;
    height: 80px;
    border-radius: 8px;
    object-fit: cover;
    flex-shrink: 0;
}

.album-item-info {
    flex: 1;
    min-width: 0;
}

.album-item-title {
    font-size: 18px;
    font-weight: 700;
    color: white;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.album-item-meta {
    display: flex;
    gap: 8px;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
    flex-wrap: wrap;
}

.album-item-stats {
    display: flex;
    gap: 24px;
    padding-right: 16px;
}

.album-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.6);
}

.album-stat-value {
    font-size: 18px;
    font-weight: 700;
    color: white;
}

.album-item-actions {
    display: flex;
    gap: 8px;
}

/* ============================================ */
/* ALBUM EDITOR MODAL */
/* ============================================ */

.album-editor-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    padding: 20px;
    overflow-y: auto;
}

.album-editor-content {
    background: #1a1a2e;
    border-radius: 16px;
    max-width: 800px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    color: white;
}

.album-editor-header {
    padding: 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.album-editor-header h2 {
    margin: 0;
    font-size: 24px;
    font-weight: 700;
}

.album-editor-close {
    background: none;
    border: none;
    color: white;
    font-size: 28px;
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.album-editor-body {
    padding: 24px;
}

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

.album-form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
}

.album-form-input,
.album-form-textarea,
.album-form-select {
    width: 100%;
    padding: 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: white;
    font-size: 16px;
    font-family: inherit;
    transition: border-color 0.2s ease;
    box-sizing: border-box;
}

.album-form-input:focus,
.album-form-textarea:focus,
.album-form-select:focus {
    outline: none;
    border-color: #30B3B8;
}

.album-form-textarea {
    min-height: 100px;
    resize: vertical;
}

.album-cover-preview {
    width: 200px;
    height: 200px;
    border-radius: 12px;
    object-fit: cover;
    margin-top: 12px;
    border: 2px solid rgba(255, 255, 255, 0.1);
}

.album-songs-section {
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.album-songs-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.album-songs-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
}

.available-songs-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: 300px;
    overflow-y: auto;
    margin-bottom: 16px;
}

.available-song-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 8px;
    transition: background 0.2s ease;
}

.available-song-item:hover {
    background: rgba(255, 255, 255, 0.06);
}

.available-song-checkbox {
    width: 20px;
    height: 20px;
    cursor: pointer;
}

.available-song-cover {
    width: 40px;
    height: 40px;
    border-radius: 4px;
    object-fit: cover;
}

.available-song-info {
    flex: 1;
}

.available-song-title {
    font-weight: 600;
    color: white;
    margin-bottom: 2px;
}

.available-song-meta {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.6);
}

.album-editor-footer {
    padding: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    gap: 12px;
    justify-content: flex-end;
}

.btn-secondary {
    padding: 12px 24px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 8px;
    color: white;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.15);
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .music-subtabs-header {
        padding: 0 16px;
    }
    
    .album-item {
        flex-wrap: wrap;
    }
    
    .album-item-stats {
        width: 100%;
        justify-content: space-around;
        padding-right: 0;
        padding-top: 12px;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .album-item-actions {
        width: 100%;
        justify-content: stretch;
    }
    
    .album-item-actions button {
        flex: 1;
    }
    
    .album-editor-content {
        margin: 0;
        border-radius: 0;
        max-height: 100vh;
    }
}

/* ============================================ */
/* SEGMENTED CONTROL */
/* ============================================ */

.music-segment-control {
    display: flex;
    gap: 0;
    background: rgba(255, 255, 255, 0.05);
    padding: 4px;
    border-radius: 12px;
    margin-bottom: 20px;
}

.music-segment-btn {
    flex: 1;
    padding: 12px;
    border: none;
    border-radius: 10px;
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.2s ease;
    background: transparent;
    color: rgba(255, 255, 255, 0.6);
}

.music-segment-btn:hover {
    color: rgba(255, 255, 255, 0.8);
}

.music-segment-btn.active {
    background: linear-gradient(135deg, #30B3B8 0%, #E91E8C 100%);
    color: white;
}

/* Remove old music sub-tabs styles if they exist */
.music-subtabs-header {
    display: none;
}

.music-subtab-btn {
    display: none;
}

/* Keep the content visibility */
.music-subtab-content {
    display: none;
}

.music-subtab-content.active {
    display: block;
}
.btn-coral {
    padding: 12px 24px;
    background: #F67854;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-coral:hover {
    background: #e66543;
    transform: translateY(-1px);
}

.btn-coral:active {
    transform: translateY(0);
}

/* Album songs list (new design) */
.album-songs-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: 300px;
    overflow-y: auto;
    padding: 4px;
}

.album-song-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 8px;
    cursor: grab;
    transition: all 0.2s ease;
}

.album-song-item:active {
    cursor: grabbing;
}

.album-song-number {
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
    font-weight: 600;
    min-width: 24px;
    text-align: center;
}

.album-song-cover {
    width: 44px;
    height: 44px;
    border-radius: 6px;
    object-fit: cover;
}

.album-song-info {
    flex: 1;
    min-width: 0;
}

.album-song-title {
    color: white;
    font-weight: 500;
    font-size: 14px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.album-song-meta {
    color: rgba(255, 255, 255, 0.6);
    font-size: 12px;
    margin-top: 2px;
}

.album-song-remove {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.4);
    font-size: 24px;
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    border-radius: 50%;
}

.album-song-remove:hover {
    background: rgba(246, 120, 84, 0.2);
    color: #F67854;
}

.drag-placeholder {
    height: 2px;
    background: #30B3B8;
    margin: 4px 0;
    border-radius: 1px;
}

/* ============================================
   AUTH GATE MODAL - For unauthenticated users
   ============================================ */

.auth-gate-modal {
    max-width: 400px;
    text-align: center;
    padding: 40px 30px;
    background: linear-gradient(135deg, #1a1a2e 0%, #16162a 100%);
    border: 1px solid rgba(48, 179, 184, 0.3);
}

.auth-gate-icon {
    font-size: 48px;
    margin-bottom: 20px;
}

.auth-gate-modal h2 {
    color: white;
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 12px;
}

.auth-gate-modal p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 16px;
    line-height: 1.5;
    margin-bottom: 30px;
}

.auth-gate-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.auth-gate-modal .btn-primary,
.auth-gate-modal .btn-secondary {
    width: 100%;
    padding: 14px 24px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

.auth-gate-modal .btn-primary {
    background: linear-gradient(135deg, #30B3B8 0%, #2a9fa3 100%);
    color: white;
}

.auth-gate-modal .btn-primary:hover {
    background: linear-gradient(135deg, #2a9fa3 0%, #258a8e 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(48, 179, 184, 0.3);
}

.auth-gate-modal .btn-secondary {
    background: rgba(48, 179, 184, 0.1);
    color: #30B3B8;
    border: 1px solid rgba(48, 179, 184, 0.3);
}

.auth-gate-modal .btn-secondary:hover {
    background: rgba(48, 179, 184, 0.2);
    border-color: rgba(48, 179, 184, 0.5);
}

.auth-gate-modal .close-modal-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.6);
    font-size: 24px;
    cursor: pointer;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.auth-gate-modal .close-modal-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

/* ============================================
   GUEST BOTTOM NAV - CTA styling
   ============================================ */

.nav-item-cta {
    background: linear-gradient(135deg, #30B3B8 0%, #2a9fa3 100%);
    border-radius: 12px;
    margin: 0 8px;
    font-weight: 600;
}

.nav-item-cta:hover {
    background: linear-gradient(135deg, #2a9fa3 0%, #258a8e 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(48, 179, 184, 0.3);
}

.nav-item-cta span {
    color: white !important;
}

.nav-item-cta svg {
    stroke: white !important;
}

/* ============================================
   ADMIN ANALYTICS DASHBOARD
   ============================================ */

.dashboard-header {
    margin-bottom: 32px;
}

/* Metrics Grid */
.metrics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
    margin-bottom: 32px;
}

.metric-card {
    background: white;
    border-radius: 12px;
    padding: 24px;
    border: 1px solid #e5e7eb;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    transition: all 0.2s ease;
}

.metric-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.metric-icon {
    font-size: 32px;
    margin-bottom: 12px;
}

.metric-label {
    font-size: 13px;
    color: #64748b;
    font-weight: 500;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.metric-value {
    font-size: 36px;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 8px;
}

.metric-change {
    font-size: 13px;
    font-weight: 600;
}

.metric-change.positive {
    color: #10b981;
}

.metric-change.negative {
    color: #ef4444;
}

.metric-breakdown {
    font-size: 12px;
    color: #64748b;
    margin-top: 8px;
}

/* Charts */
.chart-card {
    background: white;
    border-radius: 12px;
    padding: 24px;
    border: 1px solid #e5e7eb;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

#chart-daily-visitors,
#chart-signups {
    width: 100%;
    height: 200px;
    position: relative;
}

/* Stats Cards */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.stat-card {
    background: white;
    border-radius: 12px;
    padding: 24px;
    border: 1px solid #e5e7eb;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.stat-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #f3f4f6;
}

.stat-row:last-child {
    border-bottom: none;
}

.stat-label {
    font-size: 14px;
    color: #64748b;
    font-weight: 500;
}

.stat-value {
    font-size: 18px;
    font-weight: 700;
    color: #1e293b;
}

/* Privacy Notice */
.privacy-notice {
    margin-top: 32px;
    padding: 16px;
    background: rgba(48, 179, 184, 0.1);
    border-radius: 8px;
    border: 1px solid rgba(48, 179, 184, 0.3);
}

.privacy-notice p {
    margin: 0;
    color: rgba(255, 255, 255, 0.8);
    font-size: 13px;
}

/* Simple Chart Styles */
.simple-chart {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    height: 200px;
    padding: 20px 10px 40px;
    gap: 8px;
}

.chart-bar {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    height: 100%;
}

.bar-fill {
    width: 100%;
    background: linear-gradient(180deg, #30B3B8 0%, #2a9fa3 100%);
    border-radius: 4px 4px 0 0;
    margin-top: auto;
    min-height: 4px;
    transition: height 0.3s ease;
}

.bar-label {
    font-size: 11px;
    color: #64748b;
    margin-top: 8px;
    font-weight: 500;
}

.bar-value {
    font-size: 12px;
    color: #1e293b;
    font-weight: 700;
    position: absolute;
    bottom: 100%;
    margin-bottom: 4px;
}

/* ============================================
   PUBLIC PROFILE VIEW STYLES
   Shareable artist profile for logged-out users
   ============================================ */

#public-profile-view {
    background: #1a1a2e;
    min-height: 100vh;
    padding-bottom: 100px;
}

.public-profile-container {
    max-width: 500px;
    margin: 0 auto;
    padding: 20px;
}

/* Header Row */
.public-profile-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.public-profile-logo {
    display: flex;
    align-items: center;
    gap: 8px;
}

.public-profile-logo-img {
    width: 32px;
    height: 32px;
    object-fit: contain;
}

.public-profile-logo-text {
    font-family: 'Archivo', sans-serif;
    font-size: 20px;
    font-weight: 700;
    color: #ffffff;
}

.public-profile-logo-dot {
    color: #E91E8C;
}

.public-profile-share-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: rgba(48, 179, 184, 0.1);
    border: 1px solid rgba(48, 179, 184, 0.3);
    border-radius: 20px;
    color: #30B3B8;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.public-profile-share-btn:hover {
    background: rgba(48, 179, 184, 0.2);
}

.public-profile-share-btn:active {
    transform: scale(0.95);
}

/* Hero Row: Avatar + Name */
.public-profile-hero-row {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
}

/* Profile Avatar Wrapper with Tier Frame */
.profile-avatar-wrapper {
    width: 86px;
    height: 86px;
    border-radius: 50%;
    padding: 3px;
    background: #30B3B8;
    box-shadow: 0 4px 20px rgba(48, 179, 184, 0.3);
    flex-shrink: 0;
}

/* Tier frame colors for profile */
.profile-avatar-wrapper.tier-frame-opener {
    background: #30B3B8 !important;
    box-shadow: 0 4px 20px rgba(48, 179, 184, 0.3);
}

.profile-avatar-wrapper.tier-frame-rising {
    background: #F67854 !important;
    box-shadow: 0 4px 20px rgba(246, 120, 84, 0.3);
}

.profile-avatar-wrapper.tier-frame-headliner {
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 50%, #FFD700 100%) !important;
    box-shadow: 0 4px 20px rgba(255, 215, 0, 0.3);
}

.profile-avatar-wrapper.tier-frame-legend {
    background: linear-gradient(135deg, #8B5CF6 0%, #EC4899 100%) !important;
    box-shadow: 0 4px 20px rgba(139, 92, 246, 0.3);
}

.profile-avatar-wrapper.tier-frame-icon {
    background: linear-gradient(135deg, #E91E8C 0%, #30B3B8 100%) !important;
    box-shadow: 0 4px 20px rgba(233, 30, 140, 0.3);
}

.public-profile-avatar-inline {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: none;
}

.public-profile-hero-info {
    flex: 1;
    min-width: 0;
}

/* Profile name row with tier badge */
.profile-name-row {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.public-profile-name-inline {
    font-family: 'Archivo', sans-serif;
    font-size: clamp(24px, 7vw, 36px);
    font-weight: 900;
    color: #ffffff;
    margin: 0;
    line-height: 1.1;
}

/* Profile tier badge - larger than in posts */
.profile-tier-badge .tier-badge {
    width: 24px;
    height: 24px;
}

.profile-tier-badge .tier-badge svg {
    width: 22px;
    height: 22px;
}

/* Profile tier title */
.profile-tier-title {
    font-size: 14px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.7);
    margin-top: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Intro Video Pill */
.intro-video-pill {
    position: absolute;
    top: 12px;
    left: 12px;
    background: #30B3B8;
    color: white;
    font-size: 11px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 10;
}

/* Intro Video Section */
.public-profile-intro-video {
    margin-bottom: 20px;
}

.public-profile-video-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    background: rgba(255, 255, 255, 0.03);
    border: 2px dashed rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    text-align: center;
    aspect-ratio: 16/9;
}

/* Bio Block: Location, Bio, Genre Tags */
.public-profile-bio-block {
    margin-bottom: 24px;
}

.public-profile-bio-wrapper {
    margin: 8px 0 16px 0;
}

.public-profile-bio {
    font-size: 15px;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.5;
    margin: 0;
}

.public-profile-bio.collapsed {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.public-profile-read-more {
    background: none;
    border: none;
    color: #30B3B8;
    font-size: 14px;
    font-weight: 600;
    padding: 4px 0;
    cursor: pointer;
    margin-top: 4px;
}

.public-profile-read-more:hover {
    text-decoration: underline;
}

/* Featured Track Row - Highlighted */
.public-profile-featured-row {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    background: linear-gradient(135deg, rgba(48, 179, 184, 0.15) 0%, rgba(233, 30, 140, 0.1) 100%);
    border: 1px solid rgba(48, 179, 184, 0.3);
    border-radius: 16px;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
    overflow: hidden;
}

.public-profile-featured-row::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, #30B3B8, #E91E8C, #F67854);
}

.public-profile-featured-row:hover {
    background: linear-gradient(135deg, rgba(48, 179, 184, 0.2) 0%, rgba(233, 30, 140, 0.15) 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(48, 179, 184, 0.2);
}

.public-profile-featured-cover {
    width: 72px;
    height: 72px;
    border-radius: 10px;
    object-fit: cover;
    background: linear-gradient(135deg, #30B3B8 0%, #1a1a2e 100%);
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.public-profile-featured-row .public-profile-featured-info {
    flex: 1;
    min-width: 0;
    padding: 0;
}

.public-profile-featured-row .public-profile-featured-title {
    font-family: 'Archivo', sans-serif;
    font-size: 18px;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 4px 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.public-profile-featured-row .public-profile-featured-meta {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
    margin: 0;
}

.public-profile-featured-play {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: linear-gradient(135deg, #E91E8C 0%, #F67854 100%);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
    transition: all 0.2s ease;
    box-shadow: 0 4px 15px rgba(233, 30, 140, 0.4);
}

.public-profile-featured-play:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(233, 30, 140, 0.5);
}

.public-profile-featured-play svg {
    margin-left: 3px;
    width: 22px;
    height: 22px;
}

/* Legacy Avatar (for public-profile-view) */
.public-profile-avatar-container {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
}

.public-profile-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #30B3B8;
    box-shadow: 0 4px 20px rgba(48, 179, 184, 0.3);
}

/* Name Block */
.public-profile-name-block {
    text-align: center;
    margin-bottom: 30px;
}

.public-profile-location {
    font-size: 13px;
    color: #30B3B8;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
}

.public-profile-name {
    font-family: 'Archivo', sans-serif;
    font-size: clamp(28px, 8vw, 48px);
    font-weight: 900;
    color: #ffffff;
    margin: 0 0 12px 0;
    line-height: 1.1;
}

.public-profile-tagline {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.8);
    margin: 0 0 16px 0;
    line-height: 1.4;
}

.public-profile-genre-tags {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
}

.public-profile-genre-tag {
    padding: 6px 14px;
    background: rgba(48, 179, 184, 0.15);
    border-radius: 20px;
    color: #30B3B8;
    font-size: 13px;
    font-weight: 500;
}

/* CTA Block */
.public-profile-cta-block {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 40px;
}

.public-profile-cta-primary {
    width: 100%;
    padding: 16px 24px;
    background: linear-gradient(135deg, #E91E8C 0%, #F67854 100%);
    border: none;
    border-radius: 30px;
    color: #ffffff;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 4px 15px rgba(233, 30, 140, 0.3);
}

.public-profile-cta-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(233, 30, 140, 0.4);
}

.public-profile-cta-primary:active {
    transform: scale(0.98);
}

.public-profile-cta-row {
    display: flex;
    gap: 12px;
}

.public-profile-cta-secondary {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 20px;
    background: rgba(48, 179, 184, 0.1);
    border: 2px solid #30B3B8;
    border-radius: 25px;
    color: #30B3B8;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.public-profile-cta-secondary:hover {
    background: rgba(48, 179, 184, 0.2);
}

.public-profile-cta-secondary:active {
    transform: scale(0.98);
}

/* Profile Social Links */
.profile-social-links {
    display: flex;
    justify-content: center;
    gap: 16px;
    padding: 8px 0;
}

.profile-social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
    transition: all 0.2s ease;
}

.profile-social-link:hover {
    background: rgba(48, 179, 184, 0.3);
    color: #30B3B8;
    transform: scale(1.1);
}

.profile-social-link svg {
    width: 22px;
    height: 22px;
}

/* ========== ON STAGE SECTION ========== */

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

.profile-stage-header .public-profile-section-title {
    margin-bottom: 0;
}

.profile-stage-watch-all {
    color: #30B3B8;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
}

.profile-stage-watch-all:hover {
    text-decoration: underline;
}

.profile-stage-subtitle {
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
    margin: 0 0 16px 0;
}

/* Stage Video Cards Row */
.profile-stage-videos {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding-bottom: 8px;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
}

.profile-stage-videos::-webkit-scrollbar {
    display: none;
}

.profile-stage-video-card {
    flex: 0 0 160px;
    scroll-snap-align: start;
    cursor: pointer;
}

.profile-stage-video-thumb {
    position: relative;
    width: 160px;
    height: 200px;
    border-radius: 12px;
    overflow: hidden;
    /* Gradient fallback for iOS where video thumbnail may not load */
    background: linear-gradient(145deg, #2d1f3d 0%, #1a1a2e 50%, #1f2937 100%);
}

.profile-stage-video-thumb video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* Start hidden, fade in when loaded */
    opacity: 0;
    transition: opacity 0.3s ease;
}

.profile-stage-video-new {
    position: absolute;
    top: 10px;
    left: 10px;
    background: #ff4d6d;
    color: #ffffff;
    font-size: 11px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 12px;
    text-transform: uppercase;
    z-index: 2;
}

.profile-stage-video-badge {
    position: absolute;
    bottom: 10px;
    left: 10px;
    display: flex;
    align-items: center;
    gap: 4px;
    background: rgba(0, 0, 0, 0.75);
    color: #ffffff;
    font-size: 10px;
    font-weight: 700;
    padding: 4px 8px;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 2;
}

.profile-stage-video-thumb::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        transparent 50%,
        rgba(0, 0, 0, 0.6) 100%
    );
    pointer-events: none;
}

.profile-stage-video-play {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: rgba(48, 179, 184, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    transition: background 0.2s ease, transform 0.2s ease;
    z-index: 3;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
}

.profile-stage-video-play svg {
    margin-left: 3px;
}

.profile-stage-video-card:hover .profile-stage-video-play {
    background: rgba(48, 179, 184, 1);
    transform: translate(-50%, -50%) scale(1.1);
}

.profile-stage-video-title {
    font-size: 14px;
    font-weight: 600;
    color: #ffffff;
    margin: 10px 0 4px 0;
    line-height: 1.3;
}

.profile-stage-video-views {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.5);
    margin: 0;
}

/* Event Cards */
.profile-events-list {
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.profile-event-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    background: linear-gradient(135deg, rgba(48, 179, 184, 0.15) 0%, rgba(48, 179, 184, 0.05) 100%);
    border: 1px solid rgba(48, 179, 184, 0.2);
    border-radius: 12px;
}

.profile-event-date {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 48px;
}

.profile-event-day {
    font-size: 28px;
    font-weight: 700;
    color: #30B3B8;
    line-height: 1;
}

.profile-event-month {
    font-size: 13px;
    font-weight: 600;
    color: #30B3B8;
    text-transform: uppercase;
}

.profile-event-info {
    flex: 1;
    min-width: 0;
}

.profile-event-title {
    font-size: 16px;
    font-weight: 600;
    color: #ffffff;
    margin: 0 0 4px 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.profile-event-location {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.6);
    margin: 0;
}

.profile-event-tickets {
    background: transparent;
    border: 2px solid #30B3B8;
    color: #30B3B8;
    font-size: 14px;
    font-weight: 600;
    padding: 8px 16px;
    border-radius: 20px;
    text-decoration: none;
    white-space: nowrap;
    transition: all 0.2s ease;
}

.profile-event-tickets:hover {
    background: rgba(48, 179, 184, 0.2);
}

/* Add Event Button */
.profile-add-event-btn {
    width: 100%;
    margin-top: 16px;
    padding: 14px;
    background: rgba(255, 255, 255, 0.05);
    border: 2px dashed rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.profile-add-event-btn:hover {
    background: rgba(48, 179, 184, 0.1);
    border-color: rgba(48, 179, 184, 0.3);
    color: #30B3B8;
}

/* Section Header Row with Add Button */
.profile-section-header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.profile-section-header-row .public-profile-section-title {
    margin-bottom: 0;
}

.profile-section-add-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    background: rgba(48, 179, 184, 0.15);
    border: 1px solid rgba(48, 179, 184, 0.3);
    border-radius: 20px;
    color: #30B3B8;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.profile-section-add-btn:hover {
    background: rgba(48, 179, 184, 0.25);
    border-color: rgba(48, 179, 184, 0.5);
}

.profile-section-add-btn svg {
    flex-shrink: 0;
}

/* Stage Video Modal */
.stage-video-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.stage-video-modal.active {
    opacity: 1;
    visibility: visible;
}

.stage-video-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.95);
}

.stage-video-modal-content {
    position: relative;
    width: 100%;
    max-width: 100vw;
    max-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.stage-video-modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: #ffffff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: background 0.2s ease;
}

.stage-video-modal-close:hover {
    background: rgba(255, 255, 255, 0.2);
}

#stage-video-player {
    max-width: 100%;
    max-height: 90vh;
    border-radius: 12px;
}

/* Section Styles */
.public-profile-section {
    margin-bottom: 35px;
}

/* Reduce margin for featured section in music container */
.profile-music-section #profile-featured-section {
    margin-bottom: 0;
}

.public-profile-section-title {
    font-family: 'Archivo', sans-serif;
    font-size: 20px;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 16px 0;
}

/* Featured Card */
.public-profile-featured-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.public-profile-featured-card:hover {
    transform: scale(1.02);
}

.public-profile-featured-art {
    position: relative;
    width: 100%;
    aspect-ratio: 1;
    background: linear-gradient(135deg, #30B3B8 0%, #1a1a2e 100%);
    background-size: cover;
    background-position: center;
}

.public-profile-featured-play-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.3);
    opacity: 0;
    transition: opacity 0.2s ease;
}

.public-profile-featured-card:hover .public-profile-featured-play-overlay {
    opacity: 1;
}

.public-profile-featured-info {
    padding: 16px;
}

.public-profile-featured-title {
    font-size: 18px;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 4px 0;
}

.public-profile-featured-meta {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
    margin: 0;
}

.public-profile-waveform {
    height: 40px;
    padding: 0 16px 16px;
    display: flex;
    align-items: flex-end;
    gap: 2px;
}

.public-profile-waveform-bar {
    flex: 1;
    background: #30B3B8;
    border-radius: 2px;
    min-height: 4px;
    max-height: 100%;
    opacity: 0.6;
}

/* Listen Row - Horizontal Scroll */
.public-profile-listen-row {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding-bottom: 10px;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
}

.public-profile-listen-row::-webkit-scrollbar {
    height: 4px;
}

.public-profile-listen-row::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
}

.public-profile-listen-row::-webkit-scrollbar-thumb {
    background: rgba(48, 179, 184, 0.5);
    border-radius: 2px;
}

.public-profile-track-tile {
    flex-shrink: 0;
    width: 140px;
    scroll-snap-align: start;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.public-profile-track-tile:hover {
    transform: scale(1.05);
}

.public-profile-track-art {
    width: 140px;
    height: 140px;
    border-radius: 12px;
    object-fit: cover;
    background: linear-gradient(135deg, #30B3B8 0%, #1a1a2e 100%);
    margin-bottom: 8px;
}

.public-profile-track-title {
    font-size: 14px;
    font-weight: 600;
    color: #ffffff;
    margin: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.public-profile-track-meta {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.5);
    margin: 4px 0 0 0;
}

/* ============================================
   PROFILE MUSIC SECTION - REDESIGNED
   ============================================ */

.profile-music-section {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

/* Section Header with action button */
.profile-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.profile-section-header .public-profile-section-title {
    margin-bottom: 0;
}

/* Change Featured Button */
.profile-change-featured-btn {
    background: rgba(48, 179, 184, 0.15);
    border: 1px solid rgba(48, 179, 184, 0.3);
    color: #30B3B8;
    padding: 6px 12px;
    border-radius: 16px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.profile-change-featured-btn:hover {
    background: rgba(48, 179, 184, 0.25);
    border-color: #30B3B8;
}

/* Standalone Upload Music Button */
.profile-upload-music-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 14px 20px;
    margin-top: 16px;
    background: linear-gradient(135deg, rgba(233, 30, 140, 0.15), rgba(246, 120, 84, 0.15));
    border: 2px dashed rgba(233, 30, 140, 0.4);
    border-radius: 12px;
    color: #E91E8C;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.profile-upload-music-btn:hover {
    background: linear-gradient(135deg, rgba(233, 30, 140, 0.25), rgba(246, 120, 84, 0.25));
    border-color: #E91E8C;
    transform: translateY(-1px);
}

.profile-upload-music-btn svg {
    flex-shrink: 0;
}

/* Featured Song Dropdown */
.profile-featured-dropdown {
    display: flex;
    gap: 8px;
    align-items: center;
    margin-top: 12px;
    padding: 12px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 12px;
}

.profile-featured-select {
    flex: 1;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #ffffff;
    padding: 10px 12px;
    border-radius: 8px;
    font-size: 14px;
    cursor: pointer;
}

.profile-featured-select option {
    background: #1a1a2e;
    color: #ffffff;
}

.profile-featured-save-btn {
    background: linear-gradient(135deg, #30B3B8 0%, #2a9a9f 100%);
    border: none;
    color: #ffffff;
    padding: 10px 16px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.profile-featured-save-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(48, 179, 184, 0.3);
}

.profile-featured-cancel-btn {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: rgba(255, 255, 255, 0.7);
    padding: 10px 16px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.profile-featured-cancel-btn:hover {
    border-color: rgba(255, 255, 255, 0.5);
    color: #ffffff;
}

/* Albums Row - Horizontal Scroll */
.profile-albums-row {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding-bottom: 10px;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
}

.profile-albums-row::-webkit-scrollbar {
    height: 4px;
}

.profile-albums-row::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
}

.profile-albums-row::-webkit-scrollbar-thumb {
    background: rgba(48, 179, 184, 0.5);
    border-radius: 2px;
}

/* Album Card in Albums Row */
.profile-album-card {
    flex-shrink: 0;
    width: 120px;
    cursor: pointer;
    scroll-snap-align: start;
    transition: transform 0.2s ease;
}

.profile-album-card:hover {
    transform: scale(1.05);
}

.profile-album-card-cover {
    width: 120px;
    height: 120px;
    border-radius: 8px;
    object-fit: cover;
    background: linear-gradient(135deg, #30B3B8 0%, #1a1a2e 100%);
    margin-bottom: 8px;
}

.profile-album-card-title {
    font-size: 13px;
    font-weight: 600;
    color: #ffffff;
    margin: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.profile-album-edit-btn {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.7);
    border: none;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.2s;
}

.profile-album-card:hover .profile-album-edit-btn {
    opacity: 1;
}

.profile-album-edit-btn:hover {
    background: #E91E8C;
}

.profile-album-card {
    position: relative;
}

/* Albums Header with Browse All */
.profile-albums-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.profile-albums-header .public-profile-section-title {
    margin-bottom: 0;
}

.profile-albums-browse {
    background: none;
    border: none;
    color: #30B3B8;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    padding: 0;
}

.profile-albums-browse:hover {
    text-decoration: underline;
}

/* Album Filter - Expanded Single Album Card */
.profile-album-filter {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 16px;
    background: linear-gradient(135deg, rgba(48, 179, 184, 0.08) 0%, rgba(233, 30, 140, 0.04) 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
}

.profile-album-filter-top {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.profile-album-filter-cover {
    width: 120px;
    height: 120px;
    border-radius: 12px;
    object-fit: cover;
    background: linear-gradient(135deg, #30B3B8 0%, #1a1a2e 100%);
    flex-shrink: 0;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}

.profile-album-filter-info {
    flex: 1;
    min-width: 0;
    padding-top: 4px;
}

.profile-album-filter-type {
    font-size: 11px;
    font-weight: 600;
    color: #30B3B8;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 0 0 6px 0;
}

.profile-album-filter-title {
    font-size: 22px;
    font-weight: 800;
    color: #ffffff;
    margin: 0 0 6px 0;
    line-height: 1.2;
}

.profile-album-filter-stats {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.5);
    margin: 0;
}

.profile-album-filter-close {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
    color: rgba(255, 255, 255, 0.6);
    transition: all 0.2s ease;
}

.profile-album-filter-close:hover {
    background: rgba(255, 255, 255, 0.2);
    color: #ffffff;
}

/* Album filter action buttons */
.profile-album-filter-actions {
    display: flex;
    gap: 12px;
}

.profile-album-play-all {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 20px;
    background: linear-gradient(135deg, #E91E8C 0%, #F67854 100%);
    border: none;
    border-radius: 50px;
    color: #ffffff;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
}

.profile-album-play-all:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(233, 30, 140, 0.4);
}

.profile-album-shuffle {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 20px;
    background: transparent;
    border: 1.5px solid rgba(255, 255, 255, 0.3);
    border-radius: 50px;
    color: #ffffff;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.profile-album-shuffle:hover {
    border-color: rgba(255, 255, 255, 0.5);
    background: rgba(255, 255, 255, 0.05);
}

.profile-album-edit {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 20px;
    background: rgba(48, 179, 184, 0.15);
    border: 1.5px solid rgba(48, 179, 184, 0.4);
    border-radius: 50px;
    color: #30B3B8;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.profile-album-edit:hover {
    border-color: #30B3B8;
    background: rgba(48, 179, 184, 0.25);
}

/* No Songs Empty State */
.profile-no-songs {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 32px 16px;
    text-align: center;
}

/* ============================================
   LISTEN SECTION - PAGINATED LIST STYLE
   ============================================ */

/* Listen section header with nav controls */
.profile-listen-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.profile-listen-header .public-profile-section-title {
    margin-bottom: 0;
}

/* Navigation group (arrows + page indicator) */
.profile-listen-nav-group {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Page indicator text */
.profile-listen-page-indicator {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.5);
    min-width: 36px;
    text-align: center;
    font-weight: 500;
}

/* Navigation arrows */
.profile-listen-nav {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
    color: rgba(255, 255, 255, 0.6);
    transition: all 0.2s ease;
}

.profile-listen-nav:hover {
    background: rgba(48, 179, 184, 0.3);
    color: #ffffff;
}

.profile-listen-nav:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.profile-listen-nav:disabled:hover {
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.6);
}

/* Vertical scroll container for songs */
.profile-listen-scroll-container {
    position: relative;
    background: rgba(20, 20, 35, 0.6);
    border-radius: 16px;
    padding: 8px;
}

.profile-listen-list {
    max-height: 360px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 4px;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.2) transparent;
}

.profile-listen-list::-webkit-scrollbar {
    width: 6px;
}

.profile-listen-list::-webkit-scrollbar-track {
    background: transparent;
}

.profile-listen-list::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 3px;
}

.profile-listen-list::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* Scroll hint at bottom */
.profile-listen-scroll-hint {
    text-align: center;
    padding: 12px 0 4px 0;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.4);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    margin-top: 8px;
}

.profile-listen-scroll-hint .scroll-arrow {
    display: inline-block;
    animation: bounceDown 1.5s ease-in-out infinite;
}

@keyframes bounceDown {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(4px); }
}

/* Individual song row */
.profile-song-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    transition: background 0.2s ease;
}

/* Song row number */
.profile-song-number {
    width: 24px;
    font-size: 14px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.4);
    text-align: center;
    flex-shrink: 0;
}

.profile-song-row:hover {
    background: rgba(255, 255, 255, 0.08);
}

.profile-song-row:active {
    background: rgba(48, 179, 184, 0.1);
}

/* Playing state */
.profile-song-row.playing {
    background: rgba(48, 179, 184, 0.15);
    border: 1px solid rgba(48, 179, 184, 0.3);
}

.profile-song-row.playing .profile-song-number {
    color: #30B3B8;
}

.profile-song-row.playing .profile-song-title {
    color: #30B3B8;
}

.profile-song-row.playing .profile-song-play {
    background: #30B3B8;
    color: white;
}

/* Song cover art */
.profile-song-cover {
    width: 56px;
    height: 56px;
    border-radius: 8px;
    object-fit: cover;
    background: linear-gradient(135deg, #30B3B8 0%, #1a1a2e 100%);
    flex-shrink: 0;
}

/* Song info (title + artist) */
.profile-song-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.profile-song-title {
    font-size: 15px;
    font-weight: 600;
    color: #ffffff;
    margin: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.profile-song-artist {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.5);
    margin: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Song duration */
.profile-song-duration {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.5);
    flex-shrink: 0;
    min-width: 40px;
    text-align: right;
}

/* Add to library button (plus/check) */
.profile-song-add {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: transparent;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
    color: rgba(255, 255, 255, 0.4);
    transition: all 0.2s ease;
}

.profile-song-add:hover {
    color: rgba(255, 255, 255, 0.7);
    background: rgba(255, 255, 255, 0.1);
}

.profile-song-add.saved {
    color: #30B3B8;
}

.profile-song-add.saved:hover {
    background: rgba(48, 179, 184, 0.15);
}

.profile-song-add svg {
    width: 20px;
    height: 20px;
}

.profile-song-add .icon-check {
    display: none;
}

.profile-song-add .icon-plus {
    display: block;
}

.profile-song-add.saved .icon-check {
    display: block;
}

.profile-song-add.saved .icon-plus {
    display: none;
}

/* Play button */
.profile-song-play {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
    color: #ffffff;
    transition: all 0.2s ease;
}

.profile-song-play:hover {
    background: rgba(48, 179, 184, 0.3);
    transform: scale(1.05);
}

.profile-song-play svg {
    width: 18px;
    height: 18px;
    margin-left: 2px;
}

/* Delete button (owner only) */
.profile-song-delete {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: transparent;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
    color: rgba(255, 255, 255, 0.3);
    transition: all 0.2s ease;
}

.profile-song-delete:hover {
    color: #E91E8C;
    background: rgba(233, 30, 140, 0.1);
}

.profile-song-delete svg {
    width: 16px;
    height: 16px;
}

/* Album filter description */
.profile-album-filter-desc {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.6);
    margin: 6px 0 0 0;
    line-height: 1.5;
}

.profile-album-filter-desc.collapsed {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Read more button */
.profile-album-filter-readmore {
    background: none;
    border: none;
    color: #30B3B8;
    font-size: 12px;
    font-weight: 600;
    padding: 4px 0;
    cursor: pointer;
    margin-top: 4px;
}

.profile-album-filter-readmore:hover {
    text-decoration: underline;
}

/* TealRoom Lite */
.public-profile-tealroom {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.public-profile-tealroom-post {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 16px;
}

.public-profile-tealroom-post-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.public-profile-tealroom-post-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.public-profile-tealroom-post-name {
    font-size: 15px;
    font-weight: 600;
    color: #ffffff;
}

.public-profile-tealroom-post-date {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.5);
}

.public-profile-tealroom-post-body {
    font-size: 15px;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.5;
    margin: 0;
}

.public-profile-tealroom-post-body.collapsed {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.public-profile-post-read-more {
    background: none;
    border: none;
    color: #30B3B8;
    font-size: 14px;
    font-weight: 600;
    padding: 6px 0;
    cursor: pointer;
    display: block;
}

.public-profile-post-read-more:hover {
    text-decoration: underline;
}

.public-profile-tealroom-post-image {
    width: 100%;
    border-radius: 8px;
    margin-top: 12px;
}

.public-profile-tealroom-locked {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 16px;
    background: rgba(246, 120, 84, 0.1);
    border: 1px dashed rgba(246, 120, 84, 0.3);
    border-radius: 12px;
    color: #F67854;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.public-profile-tealroom-locked:hover {
    background: rgba(246, 120, 84, 0.2);
}

/* Empty State */
.public-profile-empty {
    text-align: center;
    padding: 30px 20px;
    color: rgba(255, 255, 255, 0.5);
}

.public-profile-empty-icon {
    font-size: 40px;
    margin-bottom: 10px;
}

/* Spacer for player bar */
.public-profile-spacer {
    height: 80px;
}

/* Responsive - Larger screens */
@media (min-width: 600px) {
    .public-profile-container {
        padding: 40px;
    }

    .public-profile-avatar {
        width: 150px;
        height: 150px;
    }

    .public-profile-name {
        font-size: 52px;
    }

    .public-profile-track-tile {
        width: 160px;
    }

    .public-profile-track-art {
        width: 160px;
        height: 160px;
    }
}

/* Placeholder Sections */
.public-profile-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    background: rgba(255, 255, 255, 0.03);
    border: 2px dashed rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    text-align: center;
}

.public-profile-placeholder-icon {
    font-size: 48px;
    margin-bottom: 12px;
    opacity: 0.6;
}

.public-profile-placeholder-text {
    font-size: 15px;
    color: rgba(255, 255, 255, 0.5);
    margin: 0 0 16px 0;
}

.public-profile-placeholder-btn {
    padding: 10px 20px;
    background: rgba(48, 179, 184, 0.1);
    border: 1px solid rgba(48, 179, 184, 0.3);
    border-radius: 20px;
    color: #30B3B8;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.public-profile-placeholder-btn:hover {
    background: rgba(48, 179, 184, 0.2);
}

/* Owner Action Buttons */
.profile-owner-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.profile-owner-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 24px;
    border-radius: 25px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
}

.profile-owner-btn-primary {
    background: linear-gradient(135deg, #30B3B8 0%, #2a9fa3 100%);
    border: none;
    color: #ffffff;
}

.profile-owner-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(48, 179, 184, 0.3);
}

.profile-owner-btn-secondary {
    background: rgba(246, 120, 84, 0.1);
    border: 2px solid #F67854;
    color: #F67854;
}

.profile-owner-btn-secondary:hover {
    background: rgba(246, 120, 84, 0.2);
}

.profile-owner-btn-row {
    display: flex;
    gap: 12px;
}

.profile-owner-btn-row .profile-owner-btn {
    flex: 1;
}

/* ============================================
   CLAIM YOUR LINK SECTION (Edit Profile)
   ============================================ */

.claim-link-section {
    background: rgba(48, 179, 184, 0.08);
    border: 1px solid rgba(48, 179, 184, 0.2);
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 0;
}

.claim-link-title {
    font-family: 'Archivo', sans-serif;
    font-size: 20px;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 8px 0;
}

.claim-link-subtitle {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
    margin: 0 0 16px 0;
}

.claim-link-input-wrapper {
    display: flex;
    align-items: center;
    background: rgba(26, 26, 46, 0.8);
    border: 2px solid rgba(48, 179, 184, 0.3);
    border-radius: 12px;
    padding: 0;
    overflow: hidden;
    transition: border-color 0.2s ease;
}

.claim-link-input-wrapper:focus-within {
    border-color: #30B3B8;
}

.claim-link-prefix {
    padding: 14px 0 14px 16px;
    color: rgba(255, 255, 255, 0.5);
    font-size: 16px;
    font-family: monospace;
    white-space: nowrap;
}

.claim-link-input {
    flex: 1;
    background: transparent;
    border: none;
    padding: 14px 16px 14px 0;
    color: #ffffff;
    font-size: 16px;
    font-weight: 600;
    font-family: monospace;
    outline: none;
}

.claim-link-input::placeholder {
    color: rgba(255, 255, 255, 0.3);
    font-weight: 400;
}

.claim-link-input:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.claim-link-hint {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.5);
    margin: 10px 0 0 0;
}

.claim-link-error {
    font-size: 13px;
    color: #ef4444;
    margin: 10px 0 0 0;
}

.claim-link-success {
    font-size: 13px;
    color: #22c55e;
    margin: 10px 0 0 0;
}

.claim-link-lock-notice {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 16px;
    padding: 12px 16px;
    background: rgba(246, 120, 84, 0.1);
    border: 1px solid rgba(246, 120, 84, 0.3);
    border-radius: 10px;
    color: #F67854;
    font-size: 13px;
}

.claim-link-lock-notice svg {
    flex-shrink: 0;
}

.claim-link-lock-notice strong {
    color: #ffffff;
}

/* ========================================
   INTRO VIDEO RECORDING MODAL
   ======================================== */

.intro-video-modal-content {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #0a0a14;
    z-index: 10000;
    display: flex;
    flex-direction: column;
}

.intro-video-screen {
    display: none;
    flex-direction: column;
    height: 100%;
}

.intro-video-screen.active {
    display: flex;
}

.intro-video-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    background: rgba(10, 10, 20, 0.95);
    border-bottom: 1px solid rgba(48, 179, 184, 0.2);
}

.intro-video-title {
    font-size: 18px;
    font-weight: 600;
    color: #ffffff;
}

.intro-video-close-btn,
.intro-video-flip-btn {
    width: 44px;
    height: 44px;
    border: none;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s;
}

.intro-video-close-btn:hover,
.intro-video-flip-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

.intro-video-back-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    border: none;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    color: #ffffff;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s;
}

.intro-video-back-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

.intro-video-camera-container {
    flex: 1;
    position: relative;
    background: #000;
    overflow: hidden;
}

.intro-video-camera-container video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.intro-video-timer {
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.7);
    padding: 8px 20px;
    border-radius: 20px;
    color: #ffffff;
    font-size: 16px;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
}

.intro-video-recording-indicator {
    position: absolute;
    top: 20px;
    left: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(233, 30, 60, 0.9);
    padding: 6px 14px;
    border-radius: 16px;
    color: #ffffff;
    font-size: 13px;
    font-weight: 600;
}

.recording-dot {
    width: 8px;
    height: 8px;
    background: #ffffff;
    border-radius: 50%;
    animation: pulse-recording 1s infinite;
}

@keyframes pulse-recording {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

.intro-video-controls {
    padding: 24px 20px 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    background: rgba(10, 10, 20, 0.95);
}

.intro-video-hint {
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
    text-align: center;
}

.intro-video-record-btn {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 4px solid #ffffff;
    background: transparent;
    padding: 6px;
    cursor: pointer;
    transition: all 0.2s;
}

.intro-video-record-btn:hover {
    transform: scale(1.05);
}

.intro-video-record-btn .record-btn-inner {
    display: block;
    width: 100%;
    height: 100%;
    background: #E91E3C;
    border-radius: 50%;
    transition: all 0.2s;
}

.intro-video-record-btn.recording .record-btn-inner {
    border-radius: 8px;
    width: 32px;
    height: 32px;
    margin: auto;
}

.intro-video-preview-container {
    flex: 1;
    position: relative;
    background: #000;
    overflow: hidden;
}

.intro-video-preview-container video {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.intro-video-save-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    max-width: 300px;
    padding: 16px 24px;
    background: linear-gradient(135deg, #30B3B8, #28A0A5);
    border: none;
    border-radius: 12px;
    color: #ffffff;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.intro-video-save-btn:hover {
    background: linear-gradient(135deg, #38C4C9, #30B3B8);
    transform: translateY(-2px);
}

.intro-video-save-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.intro-video-uploading {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(10, 10, 20, 0.95);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 20px;
    z-index: 100;
}

.intro-video-upload-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(48, 179, 184, 0.3);
    border-top-color: #30B3B8;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

.intro-video-uploading p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 16px;
}

/* Intro Video Player on Profile */
/* Legacy - kept for backwards compatibility */
.public-profile-intro-video-player {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 16px;
}

.public-profile-intro-video {
    position: relative;
}

.intro-video-change-btn {
    position: absolute;
    bottom: 12px;
    right: 12px;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    color: #ffffff;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    z-index: 15;
}

.intro-video-change-btn:hover {
    background: rgba(48, 179, 184, 0.8);
    border-color: rgba(48, 179, 184, 0.5);
}

/* Name above intro video */
.intro-video-name-above {
    font-family: 'Archivo', sans-serif;
    font-size: 32px;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 12px 0;
    padding: 0 20px;
    text-align: left;
}

/* Intro Video Container - Fixed 16:9 with blur backdrop */
.intro-video-container {
    position: relative;
    width: 100%;
    aspect-ratio: 16/9;
    border-radius: 16px;
    overflow: hidden;
    background: #0a0a0a;
}

/* Blurred backdrop image */
.intro-video-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: blur(0);
    transform: scale(1);
    transition: filter 0.4s ease, transform 0.4s ease;
    z-index: 1;
}

.intro-video-container.playing .intro-video-backdrop {
    filter: blur(20px);
    transform: scale(1.1);
}

/* Video player - centered, natural aspect ratio */
.intro-video-player {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    z-index: 2;
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 8px;
}

.intro-video-container.playing .intro-video-player {
    opacity: 1;
}

/* Custom play button */
.intro-video-play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: rgba(48, 179, 184, 0.9);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 5;
    transition: transform 0.2s ease, opacity 0.3s ease, background 0.2s ease;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.intro-video-play-btn:hover {
    transform: translate(-50%, -50%) scale(1.1);
    background: rgba(48, 179, 184, 1);
}

.intro-video-play-btn svg {
    margin-left: 4px; /* Visual centering for play icon */
    color: #ffffff;
}

.intro-video-container.playing .intro-video-play-btn {
    opacity: 0;
    pointer-events: none;
}

/* Intro Video Overlay - Avatar + Pill */
.intro-video-overlay {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 10;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: opacity 0.3s ease;
}

.intro-video-overlay-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 2px solid #30B3B8;
    object-fit: cover;
    flex-shrink: 0;
}

.intro-video-overlay-pill {
    display: inline-block;
    padding: 6px 14px;
    background: rgba(48, 179, 184, 0.9);
    border-radius: 14px;
    font-size: 12px;
    font-weight: 600;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ============================================
   UPLOAD MUSIC MODALS
   ============================================ */

/* Upload Music Selection Modal */
.upload-music-modal-content {
    background: #1a1a2e;
    border: 1px solid rgba(48, 179, 184, 0.3);
    border-radius: 20px;
    padding: 24px;
    max-width: 400px;
    width: 100%;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.upload-music-close-btn {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.6);
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.upload-music-close-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

.upload-music-title {
    font-size: 20px;
    font-weight: 700;
    color: white;
    text-align: center;
    margin-bottom: 24px;
    padding-top: 8px;
}

.upload-music-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.upload-music-option {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 20px;
    background: rgba(255, 255, 255, 0.03);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s;
    text-align: left;
}

.upload-music-option:hover {
    background: rgba(48, 179, 184, 0.1);
    border-color: rgba(48, 179, 184, 0.4);
}

.upload-music-option-icon {
    font-size: 28px;
    flex-shrink: 0;
}

.upload-music-option-label {
    font-size: 16px;
    font-weight: 600;
    color: white;
    margin-bottom: 2px;
}

.upload-music-option-desc {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.5);
}

/* Songs Upload Modal */
.songs-upload-modal-content {
    background: #1a1a2e;
    border: 1px solid rgba(48, 179, 184, 0.3);
    border-radius: 20px;
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.songs-upload-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.songs-upload-back-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    border: none;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.songs-upload-back-btn:hover {
    background: rgba(255, 255, 255, 0.1);
}

.songs-upload-title {
    font-size: 18px;
    font-weight: 700;
    color: white;
}

.songs-upload-body {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
}

/* Dropzone */
.songs-upload-dropzone {
    border: 2px dashed rgba(48, 179, 184, 0.4);
    border-radius: 12px;
    padding: 40px 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
    background: rgba(48, 179, 184, 0.03);
}

.songs-upload-dropzone:hover,
.songs-upload-dropzone.dragover {
    border-color: #30B3B8;
    background: rgba(48, 179, 184, 0.08);
}

.songs-dropzone-icon {
    color: #30B3B8;
    margin-bottom: 12px;
}

.songs-dropzone-text {
    font-size: 16px;
    color: white;
    margin-bottom: 8px;
}

.songs-dropzone-hint {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.5);
}

/* Songs List */
.songs-list-container {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 20px;
}

.song-upload-item {
    display: flex;
    gap: 16px;
    padding: 16px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
}

.song-upload-cover {
    flex-shrink: 0;
    cursor: pointer;
}

.song-upload-cover-preview {
    width: 80px;
    height: 80px;
    border-radius: 8px;
    object-fit: cover;
    display: none;
}

.song-upload-cover-placeholder {
    width: 80px;
    height: 80px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
    border: 2px dashed rgba(255, 255, 255, 0.2);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    color: rgba(255, 255, 255, 0.4);
    transition: all 0.2s;
}

.song-upload-cover-placeholder span {
    font-size: 10px;
}

.song-upload-cover:hover .song-upload-cover-placeholder {
    border-color: #30B3B8;
    color: #30B3B8;
}

.song-upload-cover-fixed {
    cursor: default;
}

.song-upload-album-badge {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: #30B3B8;
    padding: 6px 10px;
    background: rgba(48, 179, 184, 0.1);
    border-radius: 6px;
    width: fit-content;
}

.song-upload-album-badge svg {
    stroke: #30B3B8;
}

.song-upload-details {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.song-upload-input {
    padding: 10px 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    color: white;
    font-size: 14px;
    transition: all 0.2s;
}

.song-upload-input:focus {
    outline: none;
    border-color: #30B3B8;
    background: rgba(255, 255, 255, 0.08);
}

.song-upload-input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.song-upload-filename {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.5);
    display: flex;
    align-items: center;
    gap: 6px;
}

.song-upload-remove {
    background: none;
    border: none;
    color: rgba(233, 30, 140, 0.7);
    cursor: pointer;
    font-size: 12px;
    margin-left: auto;
    transition: color 0.2s;
}

.song-upload-remove:hover {
    color: #E91E8C;
}

/* Song genre dropdown */
.song-upload-genre {
    padding: 8px 10px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 6px;
    color: white;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='rgba(255,255,255,0.5)' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    padding-right: 30px;
}

.song-upload-genre:focus {
    outline: none;
    border-color: #30B3B8;
}

.song-upload-genre option {
    background: #1a1a2e;
    color: white;
}

/* Add more songs button */
.songs-add-more-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px;
    background: transparent;
    border: 2px dashed rgba(48, 179, 184, 0.3);
    border-radius: 8px;
    color: #30B3B8;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.songs-add-more-btn:hover {
    background: rgba(48, 179, 184, 0.05);
    border-color: #30B3B8;
}

/* Footer / Progress */
.songs-upload-footer {
    padding: 16px 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.songs-upload-progress {
    margin-bottom: 12px;
    display: none;
}

.songs-upload-progress.active {
    display: block;
}

.songs-progress-bar {
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    overflow: hidden;
    margin-bottom: 8px;
}

.songs-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #30B3B8, #E91E8C);
    border-radius: 2px;
    transition: width 0.3s ease;
    width: 0%;
}

.songs-progress-text {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.6);
    text-align: center;
}

.songs-upload-submit {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #E91E8C, #F67854);
    border: none;
    border-radius: 10px;
    color: white;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.songs-upload-submit:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(233, 30, 140, 0.4);
}

.songs-upload-submit:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Album Upload Modal */
.album-upload-modal-content {
    background: #1a1a2e;
    border: 1px solid rgba(48, 179, 184, 0.3);
    border-radius: 20px;
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.album-upload-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.album-upload-back-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    border: none;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.album-upload-back-btn:hover {
    background: rgba(255, 255, 255, 0.1);
}

.album-upload-title {
    font-size: 18px;
    font-weight: 700;
    color: white;
}

.album-upload-body {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
}

/* Album Cover + Info Row */
.album-upload-info-section {
    display: flex;
    gap: 20px;
    margin-bottom: 24px;
}

.album-cover-upload {
    flex-shrink: 0;
    width: 140px;
    height: 140px;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    position: relative;
}

.album-cover-preview {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.album-cover-placeholder {
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.03);
    border: 2px dashed rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.4);
    transition: all 0.2s;
}

.album-cover-upload:hover .album-cover-placeholder {
    border-color: #30B3B8;
    color: #30B3B8;
}

.album-cover-placeholder span {
    font-size: 12px;
}

.album-info-fields {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.album-name-input {
    padding: 12px 14px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    color: white;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.2s;
}

.album-name-input:focus {
    outline: none;
    border-color: #30B3B8;
}

.album-name-input::placeholder {
    color: rgba(255, 255, 255, 0.4);
    font-weight: 400;
}

.album-info-row {
    display: flex;
    gap: 12px;
}

.album-year-input,
.album-genre-input {
    flex: 1;
    padding: 10px 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    color: white;
    font-size: 14px;
    transition: all 0.2s;
}

.album-year-input:focus,
.album-genre-input:focus {
    outline: none;
    border-color: #30B3B8;
}

.album-genre-input {
    appearance: none;
    cursor: pointer;
}

/* Album Description */
.album-description-input {
    width: 100%;
    padding: 10px 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    color: white;
    font-size: 14px;
    font-family: inherit;
    resize: vertical;
    min-height: 60px;
    transition: all 0.2s;
}

.album-description-input:focus {
    outline: none;
    border-color: #30B3B8;
    background: rgba(255, 255, 255, 0.08);
}

.album-description-input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

/* Album Tracks Section */
.album-tracks-section {
    margin-bottom: 20px;
}

.album-tracks-label {
    font-size: 14px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 12px;
}

.album-tracks-dropzone {
    border: 2px dashed rgba(48, 179, 184, 0.4);
    border-radius: 12px;
    padding: 30px 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
    background: rgba(48, 179, 184, 0.03);
    margin-bottom: 16px;
}

.album-tracks-dropzone:hover,
.album-tracks-dropzone.dragover {
    border-color: #30B3B8;
    background: rgba(48, 179, 184, 0.08);
}

.album-dropzone-text {
    color: #30B3B8;
    font-size: 14px;
    font-weight: 600;
}

/* Album Tracks List */
.album-tracks-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.album-track-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
}

.album-track-number {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(48, 179, 184, 0.2);
    color: #30B3B8;
    font-size: 12px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.album-track-input {
    flex: 1;
    padding: 8px 10px;
    background: transparent;
    border: 1px solid transparent;
    border-radius: 6px;
    color: white;
    font-size: 14px;
    transition: all 0.2s;
}

.album-track-input:focus {
    outline: none;
    border-color: rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.03);
}

.album-track-input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.album-track-duration {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.4);
    flex-shrink: 0;
}

.album-track-remove {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    padding: 4px;
    transition: color 0.2s;
}

.album-track-remove:hover {
    color: #E91E8C;
}

/* Album Track Reorder Buttons */
.album-track-reorder {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.album-track-move-btn {
    background: rgba(255, 255, 255, 0.05);
    border: none;
    border-radius: 4px;
    color: rgba(255, 255, 255, 0.5);
    padding: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.album-track-move-btn:hover:not(:disabled) {
    background: rgba(48, 179, 184, 0.2);
    color: #30B3B8;
}

.album-track-move-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

/* Album Upload Footer */
.album-upload-footer {
    padding: 16px 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.album-upload-progress {
    margin-bottom: 12px;
    display: none;
}

.album-upload-progress.active {
    display: block;
}

.album-progress-bar {
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    overflow: hidden;
    margin-bottom: 8px;
}

.album-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #30B3B8, #E91E8C);
    border-radius: 2px;
    transition: width 0.3s ease;
    width: 0%;
}

.album-progress-text {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.6);
    text-align: center;
}

.album-upload-submit,
.album-upload-submit-btn {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #E91E8C, #F67854);
    border: none;
    border-radius: 10px;
    color: white;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.album-upload-submit:hover:not(:disabled),
.album-upload-submit-btn:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(233, 30, 140, 0.4);
}

.album-upload-submit:disabled,
.album-upload-submit-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Album Tracks Header */
.album-tracks-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.album-tracks-header h3 {
    font-size: 14px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
}

.album-add-tracks-btn {
    padding: 8px 14px;
    background: rgba(48, 179, 184, 0.1);
    border: 1px solid rgba(48, 179, 184, 0.3);
    border-radius: 6px;
    color: #30B3B8;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.album-add-tracks-btn:hover {
    background: rgba(48, 179, 184, 0.2);
    border-color: #30B3B8;
}

/* Album Tracks Empty State */
.album-tracks-empty {
    text-align: center;
    padding: 40px 20px;
    color: rgba(255, 255, 255, 0.4);
}

.album-tracks-empty p {
    margin: 0;
}

.album-tracks-empty-hint {
    font-size: 12px;
    margin-top: 6px !important;
}

/* Songs Upload Submit Button */
.songs-upload-submit-btn {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #E91E8C, #F67854);
    border: none;
    border-radius: 10px;
    color: white;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.songs-upload-submit-btn:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(233, 30, 140, 0.4);
}

.songs-upload-submit-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* ============================================
   EDIT ALBUM MODAL
   ============================================ */

.edit-album-modal-content {
    background: #1a1a2e;
    border: 1px solid rgba(48, 179, 184, 0.3);
    border-radius: 20px;
    max-width: 450px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.edit-album-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.edit-album-title {
    font-size: 18px;
    font-weight: 700;
    color: white;
    margin: 0;
}

.edit-album-close-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    border: none;
    color: rgba(255, 255, 255, 0.6);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.edit-album-close-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

.edit-album-body {
    padding: 20px;
}

.edit-album-cover-section {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
}

.edit-album-cover-upload {
    width: 160px;
    height: 160px;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    position: relative;
}

.edit-album-cover-preview {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.edit-album-cover-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    color: white;
    font-size: 12px;
    font-weight: 600;
    opacity: 0;
    transition: opacity 0.2s;
}

.edit-album-cover-upload:hover .edit-album-cover-overlay {
    opacity: 1;
}

.edit-album-info {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.edit-album-input,
.edit-album-select,
.edit-album-textarea {
    width: 100%;
    padding: 12px 14px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    color: white;
    font-size: 14px;
    transition: all 0.2s;
}

.edit-album-input:focus,
.edit-album-select:focus,
.edit-album-textarea:focus {
    outline: none;
    border-color: #30B3B8;
    background: rgba(255, 255, 255, 0.08);
}

.edit-album-input::placeholder,
.edit-album-textarea::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.edit-album-select {
    appearance: none;
    cursor: pointer;
}

.edit-album-textarea {
    font-family: inherit;
    resize: vertical;
    min-height: 60px;
}

.edit-album-row {
    display: flex;
    gap: 12px;
}

.edit-album-row .edit-album-input,
.edit-album-row .edit-album-select {
    flex: 1;
}

.edit-album-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.edit-album-delete-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 16px;
    background: transparent;
    border: 1px solid rgba(220, 38, 38, 0.5);
    border-radius: 8px;
    color: #dc2626;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.edit-album-delete-btn:hover {
    background: rgba(220, 38, 38, 0.1);
    border-color: #dc2626;
}

.edit-album-save-btn {
    padding: 10px 20px;
    background: linear-gradient(135deg, #30B3B8, #2a9a9f);
    border: none;
    border-radius: 8px;
    color: white;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.edit-album-save-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(48, 179, 184, 0.4);
}

/* Album Songs Management */
.edit-album-songs-section {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.edit-album-songs-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.edit-album-songs-header h3 {
    font-size: 14px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.8);
    margin: 0;
}

.edit-album-add-songs-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    background: rgba(48, 179, 184, 0.15);
    border: 1px solid rgba(48, 179, 184, 0.3);
    border-radius: 6px;
    color: #30B3B8;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.edit-album-add-songs-btn:hover {
    background: rgba(48, 179, 184, 0.25);
    border-color: #30B3B8;
}

.add-songs-dropdown {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    margin-bottom: 12px;
    max-height: 200px;
    overflow: hidden;
}

.add-songs-search {
    padding: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.add-songs-search input {
    width: 100%;
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 6px;
    color: white;
    font-size: 13px;
}

.add-songs-search input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.available-songs-list {
    max-height: 150px;
    overflow-y: auto;
}

.available-song-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    cursor: pointer;
    transition: background 0.2s;
}

.available-song-item:hover {
    background: rgba(255, 255, 255, 0.05);
}

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

.available-song-info {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
    min-width: 0;
}

.available-song-cover {
    width: 36px;
    height: 36px;
    border-radius: 4px;
    object-fit: cover;
    background: rgba(255, 255, 255, 0.1);
}

.available-song-title {
    font-size: 13px;
    color: white;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.available-song-add-btn {
    padding: 4px 10px;
    background: #30B3B8;
    border: none;
    border-radius: 4px;
    color: white;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.available-song-add-btn:hover {
    background: #28a0a5;
}

.available-songs-empty {
    padding: 20px;
    text-align: center;
    color: rgba(255, 255, 255, 0.4);
    font-size: 13px;
}

.album-songs-list {
    max-height: 200px;
    overflow-y: auto;
}

.album-song-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 12px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 8px;
    margin-bottom: 8px;
}

.album-song-item:last-child {
    margin-bottom: 0;
}

.album-song-info {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
    min-width: 0;
}

.album-song-number {
    width: 24px;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.4);
    text-align: center;
}

.album-song-cover {
    width: 40px;
    height: 40px;
    border-radius: 4px;
    object-fit: cover;
    background: rgba(255, 255, 255, 0.1);
}

.album-song-details {
    flex: 1;
    min-width: 0;
}

.album-song-title {
    font-size: 14px;
    color: white;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.album-song-duration {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.4);
}

.album-song-remove-btn {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(220, 38, 38, 0.15);
    border: none;
    border-radius: 50%;
    color: #dc2626;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.2s;
    opacity: 0.7;
}

.album-song-remove-btn:hover {
    background: rgba(220, 38, 38, 0.3);
    opacity: 1;
}

.album-song-reorder {
    display: flex;
    flex-direction: column;
    gap: 2px;
    margin-right: 8px;
}

.album-song-reorder-btn {
    width: 22px;
    height: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.08);
    border: none;
    border-radius: 4px;
    color: rgba(255, 255, 255, 0.6);
    cursor: pointer;
    transition: all 0.2s;
    padding: 0;
}

.album-song-reorder-btn:hover:not(.disabled) {
    background: rgba(48, 179, 184, 0.2);
    color: #30B3B8;
}

.album-song-reorder-btn.disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.album-song-reorder-btn svg {
    width: 12px;
    height: 12px;
}

.album-songs-empty {
    padding: 30px 20px;
    text-align: center;
    color: rgba(255, 255, 255, 0.4);
    font-size: 13px;
}
