* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;
}

input, textarea {
    user-select: text;
    -webkit-user-select: text;
    -moz-user-select: text;
    -ms-user-select: text;
}

:root {
    --bg-dark: #0a0a0f;
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --glass-shadow: rgba(0, 0, 0, 0.3);
    --text-primary: #ffffff;
    --text-secondary: #b4b4b4;
    --accent-primary: #1db954;
    --accent-secondary: #6366f1;
    --accent-pink: #ec4899;
    --accent-purple: #8b5cf6;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--bg-dark);
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
    line-height: 1.6;
}

::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.02);
}

::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.2);
}

::-webkit-scrollbar-button {
    display: none;
}

* {
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.1) rgba(255, 255, 255, 0.02);
}

.background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.gradient-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.4;
    animation: float 20s ease-in-out infinite;
    will-change: transform;
}

.orb-1 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, var(--accent-secondary), transparent);
    top: -250px;
    left: -250px;
    animation-delay: 0s;
}

.orb-2 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, var(--accent-pink), transparent);
    bottom: -200px;
    right: -200px;
    animation-delay: 5s;
}

.orb-3 {
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, var(--accent-purple), transparent);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation-delay: 10s;
}

@keyframes float {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    33% {
        transform: translate(30px, -50px) scale(1.1);
    }
    66% {
        transform: translate(-20px, 30px) scale(0.9);
    }
}

.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 40px 20px;
    position: relative;
    z-index: 1;
}

.glass {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    box-shadow: 0 8px 32px var(--glass-shadow);
}

.glass-inner {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
}

.player-card {
    padding: 32px;
    animation: fadeIn 0.6s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.player-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 16px;
}

.avatar-container {
    position: relative;
}

.user-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 2px solid var(--glass-border);
    object-fit: cover;
    position: relative;
}

.user-avatar-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    border-radius: 50%;
}

.avatar-placeholder {
    background: linear-gradient(135deg, var(--accent-secondary), var(--accent-purple));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: 700;
    color: white;
    text-transform: uppercase;
    z-index: 1;
}

.online-indicator {
    position: absolute;
    bottom: 2px;
    right: 2px;
    width: 14px;
    height: 14px;
    background: var(--accent-primary);
    border: 2px solid var(--bg-dark);
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
    z-index: 10;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.6;
        transform: scale(0.9);
    }
}

.user-details h2 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 2px;
}

.user-details p {
    color: var(--text-secondary);
    font-size: 14px;
}

.refresh-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--text-primary);
    transition: all 0.3s ease;
    touch-action: manipulation;
    min-height: 44px;
    min-width: 44px;
}

.refresh-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: rotate(180deg);
}

.refresh-btn:active {
    transform: rotate(180deg) scale(0.95);
}

.now-playing {
    display: flex;
    gap: 32px;
    margin-bottom: 32px;
    align-items: center;
}

.album-art-container {
    position: relative;
    flex-shrink: 0;
}

.album-art-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    border-radius: 16px;
    filter: blur(40px);
    opacity: 0.5;
    z-index: -1;
}

.album-art {
    width: 240px;
    height: 240px;
    border-radius: 16px;
    object-fit: cover;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    border: 1px solid var(--glass-border);
}

.playing-animation {
    position: absolute;
    bottom: 16px;
    right: 16px;
    display: flex;
    gap: 4px;
    align-items: flex-end;
    height: 24px;
    padding: 8px;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(10px);
    border-radius: 8px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.playing-animation.active {
    opacity: 1;
}

.playing-animation span {
    width: 3px;
    background: var(--accent-primary);
    border-radius: 3px;
    animation: soundwave 1s ease-in-out infinite;
    will-change: height;
}

.playing-animation span:nth-child(1) {
    animation-delay: 0s;
}

.playing-animation span:nth-child(2) {
    animation-delay: 0.2s;
}

.playing-animation span:nth-child(3) {
    animation-delay: 0.4s;
}

.playing-animation span:nth-child(4) {
    animation-delay: 0.6s;
}

@keyframes soundwave {
    0%, 100% {
        height: 4px;
    }
    50% {
        height: 16px;
    }
}

.track-info {
    flex: 1;
    min-width: 0;
}

.track-status {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent-primary);
    animation: pulse 2s ease-in-out infinite;
    will-change: opacity, transform;
}

.status-dot.inactive {
    background: var(--text-secondary);
    animation: none;
}

.track-info h1 {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 8px;
    line-height: 1.2;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
}

.track-info h3 {
    font-size: 20px;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 8px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.track-meta {
    color: var(--text-secondary);
    font-size: 14px;
    margin-bottom: 20px;
}





.track-stats {
    padding: 20px;
    margin-bottom: 32px;
    display: flex;
    gap: 24px;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
}

.stat-item svg {
    flex-shrink: 0;
    opacity: 0.7;
}

.stat-content {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.stat-label {
    font-size: 12px;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stat-value {
    font-size: 18px;
    font-weight: 600;
}

.recent-tracks-card {
    margin-top: 32px;
    padding: 24px;
    animation: fadeIn 0.6s ease-out 0.2s both;
}

.recent-tracks {
    margin-top: 0;
}

.recent-tracks-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.show-all-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    padding: 8px 16px;
    color: var(--text-primary);
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    touch-action: manipulation;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.show-all-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: scale(1.05);
}


.section-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 16px;
    color: var(--text-secondary);
}

.tracks-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.track-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 12px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    transition: all 0.3s ease;
    cursor: pointer;
    touch-action: manipulation;
    min-height: 60px;
}

.track-item:hover {
    background: rgba(255, 255, 255, 0.05);
    transform: translateX(4px);
}

.track-item-art {
    width: 50px;
    height: 50px;
    border-radius: 8px;
    object-fit: cover;
    flex-shrink: 0;
}

.track-item-info {
    flex: 1;
    min-width: 0;
}

.track-item-name {
    font-size: 15px;
    font-weight: 500;
    margin-bottom: 4px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.track-item-artist {
    font-size: 13px;
    color: var(--text-secondary);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.track-item-time {
    font-size: 12px;
    color: var(--text-secondary);
    flex-shrink: 0;
}

.footer {
    text-align: center;
    margin-top: 32px;
    color: var(--text-secondary);
    font-size: 14px;
}

.footer a {
    color: var(--accent-primary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer a:hover {
    color: var(--text-primary);
}

.loading {
    opacity: 0.5;
    pointer-events: none;
}

@media (max-width: 768px) {
    .container {
        padding: 16px 12px;
        max-width: 100%;
    }
    
    .gradient-orb {
        animation-duration: 30s;
        opacity: 0.2;
    }
    
    .glass {
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
    }
    
    .glass-inner {
        backdrop-filter: blur(5px);
        -webkit-backdrop-filter: blur(5px);
    }

    .player-card {
        padding: 20px 16px;
        border-radius: 20px;
    }

    .now-playing {
        flex-direction: column;
        text-align: center;
        gap: 20px;
        margin-bottom: 24px;
    }

    .album-art {
        width: 180px;
        height: 180px;
        margin: 0 auto;
    }

    .album-art-glow {
        width: 200px;
        height: 200px;
        margin: 0 auto;
    }

    .track-info {
        width: 100%;
        text-align: center;
    }

    .track-info h1 {
        font-size: 22px;
        line-height: 1.3;
        margin-bottom: 6px;
    }

    .track-info h3 {
        font-size: 16px;
        margin-bottom: 6px;
    }

    .track-meta {
        font-size: 13px;
        margin-bottom: 16px;
    }

    .track-stats {
        flex-direction: column;
        gap: 12px;
        padding: 16px;
        margin-bottom: 24px;
    }

    .stat-item {
        justify-content: center;
        text-align: center;
    }

    .user-details h2 {
        font-size: 18px;
    }

    .user-avatar {
        width: 50px;
        height: 50px;
    }

    .playing-animation {
        bottom: 12px;
        right: 12px;
        padding: 6px;
    }

    .audio-controls {
        flex-direction: column;
        gap: 12px;
        align-items: center;
    }

    .play-btn, .pause-btn {
        width: 44px;
        height: 44px;
    }

    .progress-container {
        width: 100%;
        max-width: 300px;
    }

    .recent-tracks-card {
        margin-top: 20px;
        padding: 16px;
    }

    .recent-tracks-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .show-all-btn {
        width: 100%;
        text-align: center;
        font-size: 13px;
        padding: 10px 16px;
    }


    .track-item {
        padding: 12px;
        gap: 12px;
    }

    .track-item-art {
        width: 48px;
        height: 48px;
    }

    .track-item-name {
        font-size: 14px;
    }

    .track-item-artist {
        font-size: 12px;
    }

    .track-item-time {
        font-size: 11px;
    }

    ::-webkit-scrollbar {
        width: 6px;
    }
    
    ::-webkit-scrollbar-thumb {
        background: rgba(255, 255, 255, 0.1);
        border-radius: 3px;
    }
    
    ::-webkit-scrollbar-button {
        display: none;
    }

    .orb-1, .orb-2, .orb-3 {
        display: none;
    }
}

@media (max-width: 480px) {
    body {
        font-size: 14px;
        line-height: 1.5;
    }
    
    .gradient-orb {
        display: none;
    }
    
    .glass {
        backdrop-filter: blur(5px);
        -webkit-backdrop-filter: blur(5px);
    }
    
    .glass-inner {
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        background: rgba(255, 255, 255, 0.08);
    }

    .container {
        padding: 12px 8px;
        max-width: 100%;
    }

    .player-card {
        padding: 16px 12px;
        border-radius: 16px;
        margin-bottom: 16px;
    }

    .player-header {
        margin-bottom: 20px;
        flex-direction: column;
        gap: 16px;
        align-items: center;
    }

    .user-info {
        gap: 12px;
        flex-direction: column;
        text-align: center;
    }

    .user-avatar {
        width: 50px;
        height: 50px;
    }

    .avatar-placeholder {
        font-size: 20px;
    }

    .user-details h2 {
        font-size: 18px;
        margin-bottom: 4px;
    }

    .user-details p {
        font-size: 13px;
    }

    .refresh-btn {
        width: 44px;
        height: 44px;
        position: absolute;
        top: 16px;
        right: 16px;
    }

    .refresh-btn svg {
        width: 20px;
        height: 20px;
    }

    .now-playing {
        gap: 16px;
        margin-bottom: 20px;
    }

    .album-art {
        width: 140px;
        height: 140px;
    }

    .album-art-glow {
        width: 160px;
        height: 160px;
    }

    .track-info h1 {
        font-size: 18px;
        line-height: 1.2;
        margin-bottom: 4px;
    }

    .track-info h3 {
        font-size: 14px;
        margin-bottom: 4px;
    }

    .track-status {
        font-size: 10px;
        padding: 4px 8px;
        margin-bottom: 12px;
    }

    .status-dot {
        width: 5px;
        height: 5px;
    }

    .track-meta {
        font-size: 12px;
        margin-bottom: 12px;
    }

    .track-stats {
        padding: 12px;
        gap: 12px;
        margin-bottom: 20px;
        flex-direction: row;
        justify-content: space-around;
    }

    .stat-item {
        flex-direction: column;
        text-align: center;
        gap: 4px;
    }

    .stat-item svg {
        width: 18px;
        height: 18px;
        margin: 0 auto;
    }

    .stat-label {
        font-size: 10px;
    }

    .stat-value {
        font-size: 14px;
    }

    .audio-controls {
        flex-direction: column;
        gap: 10px;
        align-items: center;
    }

    .play-btn, .pause-btn {
        width: 48px;
        height: 48px;
    }

    .progress-container {
        width: 100%;
        max-width: 280px;
    }

    .progress-bar {
        height: 4px;
    }

    .time-display {
        font-size: 10px;
    }

    .recent-tracks-card {
        margin-top: 16px;
        padding: 12px;
        border-radius: 16px;
    }

    .recent-tracks-header {
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
    }

    .show-all-btn {
        font-size: 12px;
        padding: 8px 12px;
        width: 100%;
    }

    .section-title {
        font-size: 16px;
        margin-bottom: 8px;
    }


    .track-item {
        padding: 8px;
        gap: 10px;
    }

    .track-item-art {
        width: 40px;
        height: 40px;
    }

    .track-item-name {
        font-size: 13px;
    }

    .track-item-artist {
        font-size: 11px;
    }

    .track-item-time {
        font-size: 10px;
    }

    .footer {
        margin-top: 20px;
        font-size: 11px;
        padding: 0 8px;
    }

    .footer a {
        font-size: 11px;
    }

    ::-webkit-scrollbar {
        width: 4px;
    }

    ::-webkit-scrollbar-thumb {
        background: rgba(255, 255, 255, 0.1);
        border-radius: 2px;
    }
    
    ::-webkit-scrollbar-button {
        display: none;
    }
}




@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}


@media (max-width: 360px) {
    .container {
        padding: 8px 4px;
    }

    .player-card {
        padding: 12px 8px;
        border-radius: 12px;
    }

    .player-header {
        margin-bottom: 16px;
        gap: 12px;
    }

    .user-avatar {
        width: 45px;
        height: 45px;
    }

    .user-details h2 {
        font-size: 16px;
    }

    .user-details p {
        font-size: 12px;
    }

    .refresh-btn {
        width: 40px;
        height: 40px;
        top: 12px;
        right: 12px;
    }

    .album-art {
        width: 120px;
        height: 120px;
    }

    .album-art-glow {
        width: 140px;
        height: 140px;
    }

    .track-info h1 {
        font-size: 16px;
        line-height: 1.1;
    }

    .track-info h3 {
        font-size: 13px;
    }

    .track-status {
        font-size: 9px;
        padding: 3px 6px;
    }

    .track-meta {
        font-size: 11px;
    }

    .track-stats {
        padding: 8px;
        gap: 8px;
        flex-direction: column;
    }

    .stat-item {
        flex-direction: row;
        justify-content: center;
        gap: 8px;
    }

    .stat-item svg {
        width: 16px;
        height: 16px;
    }

    .stat-label {
        font-size: 9px;
    }

    .stat-value {
        font-size: 12px;
    }

    .play-btn, .pause-btn {
        width: 44px;
        height: 44px;
    }

    .progress-container {
        max-width: 240px;
    }

    .time-display {
        font-size: 9px;
    }

    .recent-tracks-card {
        padding: 8px;
        margin-top: 12px;
    }

    .section-title {
        font-size: 14px;
    }

    .show-all-btn {
        font-size: 11px;
        padding: 6px 10px;
    }


    .track-item {
        padding: 6px;
        gap: 8px;
    }

    .track-item-art {
        width: 36px;
        height: 36px;
    }

    .track-item-name {
        font-size: 12px;
    }

    .track-item-artist {
        font-size: 10px;
    }

    .track-item-time {
        font-size: 9px;
    }

    .footer {
        font-size: 10px;
        margin-top: 16px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .gradient-orb,
    .playing-animation span,
    .status-dot {
        animation: none;
    }
    
    .gradient-orb {
        opacity: 0.2;
    }
}

@media (max-width: 320px) {
    .container {
        padding: 6px 2px;
    }

    .player-card {
        padding: 10px 6px;
    }

    .album-art {
        width: 100px;
        height: 100px;
    }

    .album-art-glow {
        width: 120px;
        height: 120px;
    }

    .track-info h1 {
        font-size: 14px;
    }

    .track-info h3 {
        font-size: 12px;
    }

    .track-stats {
        padding: 6px;
        gap: 6px;
    }

    .stat-item svg {
        width: 14px;
        height: 14px;
    }

    .stat-label {
        font-size: 8px;
    }

    .stat-value {
        font-size: 11px;
    }

    .play-btn, .pause-btn {
        width: 40px;
        height: 40px;
    }

    .progress-container {
        max-width: 200px;
    }

    .track-item {
        padding: 4px;
        gap: 6px;
    }

    .track-item-art {
        width: 32px;
        height: 32px;
    }

    .track-item-name {
        font-size: 11px;
    }

    .track-item-artist {
        font-size: 9px;
    }

    .track-item-time {
        font-size: 8px;
    }
}

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    padding: 16px;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    width: 100%;
    max-width: 600px;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(20px);
    transform: translateY(20px);
    transition: all 0.3s ease;
    overflow: hidden;
}

.modal-overlay.active .modal-content {
    opacity: 1;
    transform: translateY(0);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px;
    border-bottom: 1px solid var(--glass-border);
}

.modal-header h2 {
    font-size: 24px;
    font-weight: 600;
    margin: 0;
}

.modal-close {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--text-secondary);
    transition: all 0.3s ease;
    touch-action: manipulation;
    min-height: 44px;
    min-width: 44px;
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
    transform: scale(1.05);
}

.modal-body {
    padding: 24px;
    flex: 1;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.search-container {
    display: flex;
    gap: 12px;
    margin-bottom: 24px;
}

.search-input {
    flex: 1;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 12px 16px;
    color: var(--text-primary);
    font-size: 14px;
    transition: all 0.3s ease;
}

.search-input:focus {
    outline: none;
    border-color: var(--accent-primary);
    background: rgba(255, 255, 255, 0.08);
}

.search-input::placeholder {
    color: var(--text-secondary);
}

.search-btn {
    background: var(--accent-primary);
    border: none;
    border-radius: 12px;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: white;
    transition: all 0.3s ease;
    touch-action: manipulation;
    min-height: 48px;
    min-width: 48px;
}

.search-btn:hover {
    background: #1ed760;
    transform: scale(1.05);
}

.tracks-container {
    flex: 1;
    overflow-y: auto;
    margin-bottom: 24px;
}

.loading-spinner {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px;
    color: var(--text-secondary);
}

.spinner {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(255, 255, 255, 0.1);
    border-top: 3px solid var(--accent-primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 16px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.modal-track-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    margin-bottom: 12px;
    transition: all 0.3s ease;
    cursor: pointer;
    touch-action: manipulation;
    min-height: 70px;
}

.modal-track-item:hover {
    background: rgba(255, 255, 255, 0.05);
}

.modal-track-item-art {
    width: 60px;
    height: 60px;
    border-radius: 8px;
    object-fit: cover;
    flex-shrink: 0;
}

.modal-track-item-info {
    flex: 1;
    min-width: 0;
}

.modal-track-item-name {
    font-size: 16px;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 4px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.modal-track-item-artist {
    font-size: 14px;
    color: var(--text-secondary);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.modal-track-item-time {
    font-size: 12px;
    color: var(--text-secondary);
    flex-shrink: 0;
    text-align: right;
}

.pagination {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 0;
    border-top: 1px solid var(--glass-border);
}

.page-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    padding: 8px 16px;
    color: var(--text-primary);
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    touch-action: manipulation;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.page-btn:hover:not(:disabled) {
    background: rgba(255, 255, 255, 0.1);
}

.page-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.page-info {
    font-size: 14px;
    color: var(--text-secondary);
}

.error-message {
    text-align: center;
    padding: 40px;
    color: var(--text-secondary);
    font-size: 16px;
}

@media (max-width: 768px) {
    .modal-overlay {
        padding: 8px;
    }
    
    .modal-content {
        max-height: 98vh;
        margin: 0;
        border-radius: 16px;
        width: 100%;
    }
    
    .modal-header {
        padding: 16px;
        flex-direction: column;
        gap: 12px;
        align-items: center;
    }
    
    .modal-header h2 {
        font-size: 18px;
        text-align: center;
    }
    
    .modal-close {
        position: absolute;
        top: 12px;
        right: 12px;
        width: 36px;
        height: 36px;
    }
    
    .modal-body {
        padding: 16px;
    }
    
    .search-container {
        flex-direction: column;
        gap: 8px;
        margin-bottom: 16px;
    }
    
    .search-input {
        font-size: 16px;
        padding: 12px;
    }
    
    .search-btn {
        width: 100%;
        height: 48px;
        font-size: 16px;
    }
    
    .tracks-container {
        margin-bottom: 16px;
    }
    
    .modal-track-item {
        padding: 10px;
        gap: 10px;
        margin-bottom: 8px;
    }
    
    .modal-track-item-art {
        width: 45px;
        height: 45px;
    }
    
    .modal-track-item-name {
        font-size: 13px;
    }
    
    .modal-track-item-artist {
        font-size: 12px;
    }
    
    .modal-track-item-time {
        font-size: 10px;
    }
    
    .pagination {
        flex-direction: column;
        gap: 8px;
        padding: 12px 0;
    }
    
    .page-btn {
        width: 100%;
        padding: 10px;
        font-size: 14px;
    }
    
    .page-info {
        font-size: 12px;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .modal-overlay {
        padding: 4px;
    }
    
    .modal-content {
        max-height: 99vh;
        border-radius: 12px;
    }
    
    .modal-header {
        padding: 12px;
    }
    
    .modal-header h2 {
        font-size: 16px;
    }
    
    .modal-close {
        width: 32px;
        height: 32px;
        top: 8px;
        right: 8px;
    }
    
    .modal-body {
        padding: 12px;
    }
    
    .search-container {
        margin-bottom: 12px;
    }
    
    .search-input {
        font-size: 14px;
        padding: 10px;
    }
    
    .search-btn {
        height: 44px;
        font-size: 14px;
    }
    
    .modal-track-item {
        padding: 8px;
        gap: 8px;
        margin-bottom: 6px;
    }
    
    .modal-track-item-art {
        width: 40px;
        height: 40px;
    }
    
    .modal-track-item-name {
        font-size: 12px;
    }
    
    .modal-track-item-artist {
        font-size: 11px;
    }
    
    .modal-track-item-time {
        font-size: 9px;
    }
    
    .pagination {
        padding: 8px 0;
    }
    
    .page-btn {
        padding: 8px;
        font-size: 12px;
    }
    
    .page-info {
        font-size: 11px;
    }
}

.notification {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%) translateY(-100px);
    z-index: 2000;
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    pointer-events: none;
}

.notification.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
    pointer-events: auto;
}

.notification-content {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 16px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 300px;
    max-width: 90vw;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3), 0 2px 8px rgba(0, 0, 0, 0.2);
}

.notification-icon {
    width: 32px;
    height: 32px;
    background: var(--accent-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    flex-shrink: 0;
}

.notification-text {
    flex: 1;
    min-width: 0;
}

.notification-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 2px;
    line-height: 1.2;
}

.notification-subtitle {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.3;
}

.notification-close {
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 4px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.notification-close:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
}

@media (max-width: 768px) {
    .notification {
        top: 16px;
        left: 16px;
        right: 16px;
        transform: translateY(-100px);
    }
    
    .notification.show {
        transform: translateY(0);
    }
    
    .notification-content {
        min-width: auto;
        padding: 14px 16px;
        gap: 10px;
    }
    
    .notification-icon {
        width: 28px;
        height: 28px;
    }
    
    .notification-title {
        font-size: 15px;
    }
    
    .notification-subtitle {
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .notification {
        top: 12px;
        left: 12px;
        right: 12px;
    }
    
    .notification-content {
        padding: 12px 14px;
        gap: 8px;
    }
    
    .notification-icon {
        width: 24px;
        height: 24px;
    }
    
    .notification-title {
        font-size: 14px;
    }
    
    .notification-subtitle {
        font-size: 12px;
    }
}

