@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=Outfit:wght@500;700;800&display=swap');

:root {
    --bg-base: #ffffff;
    --bg-surface: #ffffff;
    --bg-elevated: #ffffff;
    --text-base: #000000;
    --text-subdued: #4b5563;
    --primary: #ef4444;
    --primary-hover: #dc2626;
    --accent: #f87171;
    --border-light: rgba(0, 0, 0, 0.05);
    --border-color: rgba(0, 0, 0, 0.1);
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-glow: 0 0 20px rgba(239, 68, 68, 0.15);
    --shadow-focus: 0 0 0 4px rgba(239, 68, 68, 0.2);
    --glass-blur: blur(20px);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
    -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
.tab-btn,
.submit-btn,
.upload-btn {
    font-family: 'Outfit', sans-serif;
}

body {
    background-color: var(--bg-base);
    color: var(--text-base);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

/* Animations */
@keyframes slideDownFade {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideUpFade {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes popIn {
    0% {
        opacity: 0;
        transform: scale(0.9) translateY(10px);
    }

    50% {
        transform: scale(1.02);
    }

    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

@keyframes pulseGlow {
    0% {
        box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.4);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(239, 68, 68, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(239, 68, 68, 0);
    }
}

/* Navbar */
.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 48px;
    background-color: #E6F0FF;
    border-bottom: none;
    animation: slideDownFade 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.logo {
    display: flex;
    align-items: center;
    cursor: pointer;
}

.nav-logo-img {
    height: 150px;
    width: auto;
    object-fit: contain;
    transform: scale(1.35);
    transform-origin: left center;
    mix-blend-mode: multiply;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 24px;
}

.search-bar {
    display: flex;
    align-items: center;
    background-color: #f3f4f6;
    padding: 12px 20px;
    border-radius: 500px;
    width: 320px;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    border: 1px solid transparent;
}

.search-bar:focus-within {
    border-color: var(--primary);
    box-shadow: var(--shadow-focus);
    background-color: #ffffff;
    transform: translateY(-1px);
    width: 340px;
}

.search-bar i {
    color: var(--text-subdued);
    font-size: 20px;
    margin-right: 12px;
    transition: color 0.3s;
}

.search-bar:focus-within i {
    color: var(--primary);
}

.search-bar input {
    background: transparent;
    border: none;
    color: var(--text-base);
    font-size: 15px;
    width: 100%;
    outline: none;
    font-weight: 500;
}

.search-bar input::placeholder {
    color: var(--text-subdued);
    font-weight: 400;
}

.upload-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 500px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 4px 15px rgba(239, 68, 68, 0.3);
}

.upload-btn:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 8px 25px rgba(248, 113, 113, 0.4);
}

.upload-btn:active {
    transform: translateY(1px);
}

.upload-btn i {
    font-size: 18px;
}

.user-profile img {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    cursor: pointer;
    object-fit: cover;
    border: 2px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.user-profile img:hover {
    transform: scale(1.1);
    border-color: var(--primary);
    box-shadow: var(--shadow-glow);
}

/* Content */
.content {
    flex: 1;
    padding: 48px;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    animation: slideUpFade 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.tabs-container {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 48px;
    background: #f9fafb;
    padding: 8px;
    border-radius: 500px;
    width: fit-content;
    border: 1px solid var(--border-color);
}

.tab-btn {
    background-color: transparent;
    color: var(--text-subdued);
    border: none;
    padding: 10px 24px;
    border-radius: 500px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
}

.tab-btn:hover {
    color: var(--text-base);
    background-color: rgba(0, 0, 0, 0.05);
}

.tab-btn.active {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.15), rgba(248, 113, 113, 0.15));
    color: white;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.tab-btn.active::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 500px;
    padding: 1px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
}

.section-header {
    margin-bottom: 32px;
    display: flex;
    align-items: center;
}

.section-header h2 {
    font-size: 32px;
    font-weight: 800;
    color: var(--text-base);
    letter-spacing: -0.5px;
}

/* Song List Grid View */
.song-list {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 32px;
}

.song-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding: 24px;
    border-radius: 20px;
    background: #ffffff;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    overflow: hidden;
    animation: popIn 0.6s cubic-bezier(0.16, 1, 0.3, 1) both;
}

/* Stagger song animations */
.song-item:nth-child(1) {
    animation-delay: 0.05s;
}

.song-item:nth-child(2) {
    animation-delay: 0.1s;
}

.song-item:nth-child(3) {
    animation-delay: 0.15s;
}

.song-item:nth-child(4) {
    animation-delay: 0.2s;
}

.song-item:nth-child(5) {
    animation-delay: 0.25s;
}

.song-item:nth-child(6) {
    animation-delay: 0.3s;
}

.song-item:nth-child(7) {
    animation-delay: 0.35s;
}

.song-item:nth-child(8) {
    animation-delay: 0.4s;
}

.song-item:nth-child(9) {
    animation-delay: 0.45s;
}

.song-item:nth-child(10) {
    animation-delay: 0.5s;
}

.song-item::after {
    display: none;
}

.song-item:hover {
    box-shadow: var(--shadow-lg);
    border-color: var(--primary);
    transform: translateY(-4px);
}

.song-item:hover::after {
    left: 200%;
}

.song-item-left {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 20px;
    width: 100%;
    overflow: hidden;
}

.song-cover {
    width: 160px;
    height: 160px;
    border-radius: 16px;
    object-fit: cover;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5);
    transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.song-item:hover .song-cover {
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.6), 0 0 15px rgba(248, 113, 113, 0.2);
}

.song-info {
    width: 100%;
}

.song-info h4 {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-base);
    margin-bottom: 6px;
    letter-spacing: -0.2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: color 0.3s;
}

.song-item:hover .song-info h4 {
    color: var(--primary);
}

.song-info p {
    font-size: 14px;
    color: var(--text-subdued);
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.song-stats {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-top: 10px;
}

.song-stats span {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 13px;
    color: var(--text-subdued);
    font-weight: 600;
}

.song-stats span i {
    font-size: 16px;
    color: var(--primary);
}

.song-item-right {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    opacity: 0;
    margin-top: 20px;
    width: 100%;
    height: 48px;
}

.song-item:hover .song-item-right {
    opacity: 1;
}

.icon-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    color: var(--text-base);
    font-size: 20px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    border-radius: 50%;
}

.icon-btn:hover {
    background-color: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
}

.icon-btn.play-btn {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: white;
    border: none;
    box-shadow: 0 4px 15px rgba(239, 68, 68, 0.4);
    width: 52px;
    height: 52px;
    font-size: 24px;
}

.icon-btn.play-btn:hover {
    box-shadow: 0 8px 25px rgba(248, 113, 113, 0.5);
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    z-index: 1000;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.modal.active {
    display: flex;
    animation: fadeIn 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.modal.active .modal-content {
    animation: popIn 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.modal-content {
    background: linear-gradient(145deg, rgba(39, 39, 42, 0.9), rgba(24, 24, 27, 0.95));
    padding: 40px;
    border-radius: 28px;
    width: 440px;
    max-width: 90%;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
}

.modal-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
}

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

.modal-header h3 {
    font-size: 24px;
    font-weight: 800;
    color: var(--text-base);
    letter-spacing: -0.5px;
}

.close-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    color: var(--text-subdued);
    font-size: 20px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.close-btn:hover {
    color: white;
    background-color: rgba(239, 68, 68, 0.2);
    border-color: rgba(239, 68, 68, 0.5);
    transform: rotate(90deg) scale(1.1);
}

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

.form-group label {
    display: block;
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text-subdued);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-group input {
    width: 100%;
    background-color: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-base);
    padding: 14px 16px;
    border-radius: 12px;
    font-size: 15px;
    transition: all 0.3s ease;
    box-sizing: border-box;
    font-weight: 500;
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary);
    background-color: rgba(0, 0, 0, 0.4);
    box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.15);
}

.submit-btn {
    width: 100%;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: white;
    border: none;
    padding: 16px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    margin-top: 16px;
    box-shadow: 0 4px 15px rgba(239, 68, 68, 0.3);
}

.submit-btn:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 8px 25px rgba(248, 113, 113, 0.4);
}

.submit-btn:active {
    transform: translateY(1px) scale(0.98);
}

/* Footer */
.site-footer {
    background-color: var(--bg-surface);
    border-top: 1px solid var(--border-color);
    padding: 64px 48px 32px;
    margin-top: auto;
    animation: slideUpFade 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.footer-content {
    display: grid;
    grid-template-columns: 2.5fr 1fr 1fr;
    gap: 64px;
    max-width: 1200px;
    margin: 0 auto 64px auto;
}

.footer-section h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 24px;
    color: var(--text-base);
    letter-spacing: -0.2px;
}

.footer-section.about p {
    color: var(--text-subdued);
    font-size: 15px;
    line-height: 1.7;
    text-align: justify;
}

.footer-section ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.footer-section ul li a,
.footer-section ul li p {
    color: var(--text-subdued);
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    transition: color 0.3s ease, transform 0.2s ease;
    display: inline-block;
}

.footer-section ul li a:hover {
    color: var(--primary);
    transform: translateX(4px);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding-top: 32px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--text-subdued);
    font-size: 14px;
}

.footer-bottom strong {
    color: var(--text-base);
    font-size: 15px;
}

@media (max-width: 860px) {
    .navbar {
        flex-direction: column;
        padding: 16px;
        gap: 16px;
    }

    .nav-logo-img {
        height: 140px;
        transform: scale(1.4);
        transform-origin: center center;
    }

    .nav-actions {
        width: 100%;
        flex-direction: column;
        gap: 12px;
    }

    .search-bar {
        width: 100%;
    }

    .search-bar:focus-within {
        width: 100%;
    }

    .upload-btn {
        width: 100%;
        justify-content: center;
    }

    .content {
        padding: 24px 16px;
    }

    .tabs-container {
        flex-wrap: wrap;
        justify-content: center;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
}
