@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

:root {
    --bg-color: #FAFAFA;
    --canvas-color: #F2F2F2;
    --card-bg: #FFFFFF;
    --text-primary: #272424;
    --text-secondary: #9B9494;
    --accent-color: #FA4F4F;
    --accent-gradient: linear-gradient(135deg, #FA4F4F 0%, #FF8A8A 100%);
    --green-accent: #1ED760;
    --card-radius: 20px;
    --tab-radius: 12px;
    --btn-radius: 24px;
}

body {
    background-color: var(--bg-color);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    color: var(--text-primary);
    margin: 0;
    padding-bottom: 140px; /* Space for player and nav */
}

/* Typography */
h1, h2, h3, h4 {
    color: var(--text-primary);
    font-weight: 600;
}

.text-meta {
    color: var(--text-secondary);
    font-size: 12px;
}

.app-header {
    padding: 24px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: transparent;
}

.app-header h1 {
    font-size: 18px;
    font-weight: 700;
    margin: 0;
    letter-spacing: -0.5px;
}

.avatar-img {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

/* Search */
.search-container {
    padding: 0 20px;
    margin-bottom: 30px;
}

.search-input {
    background: #FFFFFF;
    border: none;
    border-radius: 16px;
    padding: 14px 24px;
    width: 100%;
    box-sizing: border-box;
    font-size: 15px;
    color: var(--text-secondary);
    box-shadow: 0 8px 24px rgba(0,0,0,0.04);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.search-input:active {
    transform: scale(0.98);
    box-shadow: 0 4px 12px rgba(0,0,0,0.04);
}

/* Just For You Section */
.section-title-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 14px;
    margin-bottom: 16px;
}

.section-title {
    font-size: 16px;
    margin: 0;
}

.learn-more {
    font-size: 12px;
    color: var(--text-primary);
    text-decoration: none;
}

.horizontal-scroll {
    display: flex;
    overflow-x: auto;
    padding: 0 14px;
    gap: 14px;
    scrollbar-width: none;
}

.horizontal-scroll::-webkit-scrollbar {
    display: none;
}

.song-card-horizontal {
    min-width: 160px;
    max-width: 160px;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.song-card-horizontal:active {
    transform: scale(0.95);
}

.song-card-horizontal img {
    width: 100%;
    height: 160px;
    border-radius: var(--card-radius);
    object-fit: cover;
    margin-bottom: 12px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
}

/* Tabs */
.tabs-container {
    display: flex;
    overflow-x: auto;
    padding: 24px 14px;
    gap: 12px;
    scrollbar-width: none;
}

.tab-item {
    padding: 10px 20px;
    background: transparent;
    border-radius: var(--tab-radius);
    color: var(--text-secondary);
    font-size: 12px;
    font-weight: 500;
    white-space: nowrap;
    cursor: pointer;
}

.tab-item.active {
    background: var(--accent-color);
    color: #FFFFFF;
}

/* List Items */
.song-list {
    padding: 0 14px;
}

.song-item {
    display: flex;
    align-items: center;
    padding: 10px;
    border-radius: 16px;
    margin-bottom: 4px;
    transition: background 0.2s ease;
    cursor: pointer;
}

.song-item:active {
    background: rgba(0,0,0,0.04);
}

.song-item-img {
    width: 54px;
    height: 54px;
    border-radius: 12px;
    margin-right: 14px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.06);
}

.song-item-info {
    flex: 1;
}

.song-item-title {
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 4px;
}

.song-item-artist {
    font-size: 12px;
    color: var(--text-secondary);
}

.song-item-duration {
    font-size: 12px;
    color: var(--text-secondary);
}

/* Player Bar */
.player-bar {
    position: fixed;
    bottom: 70px; /* Above Bottom Nav */
    left: 0;
    right: 0;
    background: #FFFFFF;
    padding: 10px 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.05);
    z-index: 1000;
}

.player-info {
    display: flex;
    align-items: center;
}

.player-info img {
    width: 50px;
    height: 50px;
    border-radius: 10px;
    margin-right: 12px;
}

.player-text {
    max-width: 180px;
}

.player-title {
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Bottom Nav */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 70px;
    background: #FFFFFF;
    display: flex;
    justify-content: space-around;
    align-items: center;
    border-top: 1px solid rgba(0,0,0,0.05);
    z-index: 1000;
}

.nav-item {
    color: var(--text-secondary);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    font-size: 10px;
}

.nav-item.active {
    color: var(--accent-color);
}

/* Artist Profile */
.artist-card {
    text-align: center;
    padding: 24px 14px;
}

.artist-avatar {
    width: 110px;
    height: 110px;
    border-radius: 50%;
    margin: 0 auto 16px;
    object-fit: cover;
}

.follow-btn {
    background: var(--accent-color);
    color: #FFFFFF;
    border: none;
    border-radius: var(--btn-radius);
    padding: 10px 40px;
    font-weight: 700;
    margin-top: 16px;
    cursor: pointer;
}

/* Progress Bar Customization */
progress.uk-progress {
    height: 4px;
    border-radius: 2px;
}
progress.uk-progress::-webkit-progress-value {
    background-color: var(--accent-color);
}
progress.uk-progress::-moz-progress-bar {
    background-color: var(--accent-color);
}
