/* CSS Variables for Theme System */
:root {
    --color-bg: #000;
    --color-bg-secondary: #121212;
    --color-bg-tertiary: #181818;
    --color-bg-hover: #282828;
    --color-text: white;
    --color-text-secondary: #b3b3b3;
    --color-accent: #1db954;
    --color-accent-hover: #1ed760;
    --color-border: rgba(255, 255, 255, 0.1);
    --color-card-bg: #181818;
    --color-card-hover: #282828;
    --color-sidebar-bg: #000;
    --color-nav-bg: rgba(18, 18, 18, 0.9);
    --color-player-bg: #181818;
    --color-icon: white;
    --color-button-bg: #282828;
    --color-button-hover: #3a3a3a;
    --color-button-text: white;
    --color-search-bg: rgba(255, 255, 255, 0.1);
}

[data-theme="light"] {
    --color-bg: #F2F2F2;
    --color-bg-secondary: #E8E8E8;
    --color-bg-tertiary: #DDDDDD;
    --color-bg-hover: #CCCCCC;
    --color-text: #333333;
    --color-text-secondary: #666666;
    --color-accent: #199c45;
    --color-accent-hover: #1ed760;
    --color-border: rgba(0, 0, 0, 0.15);
    --color-card-bg: #FFFFFF;
    --color-card-hover: #F5F5F5;
    --color-sidebar-bg: #E6E6E6;
    --color-nav-bg: rgba(230, 230, 230, 0.95);
    --color-player-bg: #FFFFFF;
    --color-icon: #333333;
    --color-button-bg: #CCCCCC;
    --color-button-hover: #BBBBBB;
    --color-button-text: #333333;
    --color-search-bg: #FFFFFF;
}

.search-results-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}
* {
    box-sizing: border-box;
}

body {
    font-family: "Montserrat", sans-serif;
    margin: 0;
    background-color: var(--color-bg);
    color: var(--color-text);
    overflow: hidden;
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* Hide audio element */
#audioPlayer {
    display: none;
}

.main{
    display: flex;
    height: 100vh;
    padding: 0.75rem;
    gap: 0.5rem;
}

.sidebar{
    background-color: var(--color-sidebar-bg);
    width: 340px;
    min-width: 240px;
    border-radius: 1rem;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: background-color 0.3s ease;
}

.main-content{
    background-color: var(--color-bg-secondary);
    flex: 1;
    border-radius: 1rem;
    overflow: auto;
    padding: 0 1.5rem 0 1.5rem;
    margin-bottom: 80px;
    transition: background-color 0.3s ease;
}

/* Custom Scrollbar */
.main-content::-webkit-scrollbar {
    width: 12px;
}

.main-content::-webkit-scrollbar-track {
    background: transparent;
}

.main-content::-webkit-scrollbar-thumb {
    background: #2a2a2a;
    border-radius: 6px;
}

.main-content::-webkit-scrollbar-thumb:hover {
    background: #3a3a3a;
}

.music-player{
    background-color: var(--color-player-bg);
    border-top: 1px solid var(--color-border);
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    height: 90px;
    z-index: 100;
    padding: 0 16px;
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

a{
    text-decoration: none;
    color: var(--color-text);
    transition: color 0.2s;
}

a:hover {
    color: var(--color-text);
}

/* Logo Container */
.logo-container {
    display: flex;
    align-items: center;
    padding: 1.5rem 1.5rem 1rem 1.5rem;
    gap: 0.75rem;
}

.logo-icon {
    font-size: 2rem;
    color: #1db954;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-text);
    transition: color 0.3s ease;
}

.nav{
    background-color: var(--color-bg-secondary);
    border-radius: 1rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 100px;
    padding: 0.5rem 0.75rem;
    margin: 0 0.75rem;
}

.nav-option{
    line-height: 2.5rem;
    opacity: 0.7;
    padding: 0.5rem 0.75rem;
    border-radius: 0.5rem;
    transition: all 0.2s;
    cursor: pointer;
    display: flex;
    align-items: center;
}

.nav-option:hover{
    opacity: 1;
    background-color: rgba(255, 255, 255, 0.1);
}

.nav-option.active {
    opacity: 1;
    background-color: rgba(255, 255, 255, 0.1);
}

.nav-option i{
    font-size: 1.25rem;
}

.nav-option a{
    font-size: 1rem;
    margin-left: 1rem;
}

.library{
    background-color: var(--color-bg-secondary);
    border-radius: 1rem;
    flex: 1;
    margin: 0.5rem 0.75rem;
    padding: 0.5rem 0.75rem;
    overflow-y: auto;
    overflow-x: hidden;
    transition: background-color 0.3s ease;
    scroll-behavior: smooth;
}

.library::-webkit-scrollbar {
    width: 8px;
}

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

.library::-webkit-scrollbar-thumb {
    background: #2a2a2a;
    border-radius: 4px;
}

.library::-webkit-scrollbar-thumb:hover {
    background: #3a3a3a;
}
.options{
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.lib-option img{
    height: 1.25rem;
    width: 1.25rem;
}
.icons{
    font-size: 1.25rem;
    display: flex;
    gap: 1rem;
}
.icons i{
    opacity: 0.7;
    cursor: pointer;
    transition: opacity 0.2s, transform 0.2s;
}

.icons i:hover{
    opacity: 1;
    transform: scale(1.1);
}

.icons i.hide {
    display: none;
}

.box{
    background-color: var(--color-bg-tertiary);
    height: 10rem;
    border-radius: 0.75rem;
    margin: 0.75rem 0 1rem 0;
    padding: 0.75rem 0.75rem;
    position: relative;
    transition: background-color 0.3s ease;
}

.box.card {
    background-color: #181818;
    border-radius: 0.5rem;
    transition: background-color 0.3s;
}

.box.card:hover {
    background-color: #282828;
}
.box-p1{
    font-size: 1rem;
    font-weight: 500;
}
.box-p2{
    font-size: 0.85rem;
    opacity: 0.9;
}
.badge{
    background-color: var(--color-button-bg);
    border: none;
    border-radius: 100px;
    padding: 0.25rem 1rem;
    margin-top: 1rem;
    height: 2rem;
    width: fit-content;
    font-weight: 600;
    font-size: 0.875rem;
    cursor: pointer;
    transition: transform 0.2s, background-color 0.3s ease;
    color: var(--color-button-text);
}

.badge:hover {
    transform: scale(1.05);
    background-color: var(--color-button-hover);
}

.box.card .badge {
    position: absolute;
    bottom: 0.75rem;
    right: 1rem;
    margin-top: 0;
}

.dark-badge{
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--color-text);
    border: 1px solid var(--color-border);
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

.dark-badge:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

.dark-badge i {
    margin-right: 5px;
}

.sticky-nav{
    position: sticky;
    top: 0;
    background: var(--color-nav-bg);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    z-index: 10;
    margin: 0 -1.5rem;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
    transition: background-color 0.3s ease;
}

.sticky-nav-icons {
    display: flex;
    align-items: center;
    flex: 1;
}

.quick-search-container {
    position: relative;
    width: 100%;
    max-width: 400px;
}

.quick-search-bar {
    width: 100%;
    padding: 0.75rem 1rem;
    background-color: var(--color-search-bg);
    border: 2px solid rgba(29, 185, 84, 0.3);
    border-radius: 2rem;
    color: var(--color-text);
    font-size: 0.9375rem;
    font-family: "Montserrat", sans-serif;
    outline: none;
    transition: all 0.3s ease;
    box-shadow: 0 0 0 rgba(29, 185, 84, 0);
}

.quick-search-bar::placeholder {
    color: var(--color-text-secondary);
}

.quick-search-bar:focus,
.quick-search-bar.focused {
    background-color: var(--color-bg-tertiary);
    border-color: var(--color-accent);
    box-shadow: 0 0 20px rgba(29, 185, 84, 0.5),
                0 0 40px rgba(29, 185, 84, 0.3),
                0 0 60px rgba(29, 185, 84, 0.2);
}

.quick-search-bar:hover {
    border-color: rgba(29, 185, 84, 0.5);
    box-shadow: 0 0 10px rgba(29, 185, 84, 0.3);
}

.nav-btn {
    background-color: rgba(0, 0, 0, 0.7);
    border: none;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 0.5rem;
    transition: background-color 0.2s;
}

.nav-btn:hover {
    background-color: rgba(0, 0, 0, 0.9);
}

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

.sticky-nav-options{
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
}

.greeting-message {
    display: flex;
    align-items: center;
    padding: 0.5rem 1rem;
    border-radius: 2rem;
    background-color: rgba(0, 0, 0, 0.7);
}

.greeting-text {
    font-size: 18.5px;
    font-weight: 600;
    background: linear-gradient(135deg, #1db954 0%, #1ed760 25%, #00d4ff 50%, #ff6b6b 75%, #ffa500 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    background-size: 200% 200%;
    animation: gradientShift 3s ease infinite;
}

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

#userDisplayName {
    background: linear-gradient(135deg, #ff6b6b 0%, #ffa500 25%, #1db954 50%, #00d4ff 75%, #9b59b6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    background-size: 200% 200%;
    animation: gradientShift 3s ease infinite;
    font-weight: 700;
}

.profile-dropdown-container {
    position: relative;
}

.user-profile {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.25rem 0.5rem;
    border-radius: 2rem;
    background-color: rgba(0, 0, 0, 0.7);
    cursor: pointer;
    transition: background-color 0.2s;
}

.user-profile:hover {
    background-color: rgba(0, 0, 0, 0.9);
}

.settings-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 0.5rem);
    right: 0;
    background-color: #282828;
    border-radius: 0.5rem;
    min-width: 200px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
    z-index: 1000;
    overflow: hidden;
    margin-top: 0.5rem;
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    color: var(--color-text);
    text-decoration: none;
    font-size: 0.9375rem;
    transition: background-color 0.2s, color 0.3s ease;
    border: none;
    background: none;
    width: 100%;
    cursor: pointer;
}

.dropdown-item:hover {
    background-color: var(--color-bg-hover);
}

.dropdown-item i {
    width: 20px;
    text-align: center;
    color: var(--color-text-secondary);
    transition: color 0.3s ease;
}

.dropdown-item:hover i {
    color: var(--color-text);
}

.nav-item{
    margin-right: 0;
}

/* Profile Modal Styles */
.profile-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    padding: 2rem;
}

.profile-modal-content {
    background-color: #282828;
    border-radius: 0.5rem;
    width: 100%;
    max-width: 500px;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.5);
    overflow: hidden;
}

.profile-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.profile-modal-header h2 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 700;
}

.profile-modal-body {
    padding: 1.5rem;
    overflow-y: auto;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: 0.5rem;
    transition: color 0.3s ease;
}

.form-group .required {
    color: #ff4444;
}

.form-group .optional {
    color: var(--color-text-secondary);
    font-weight: 400;
    font-size: 0.8125rem;
    transition: color 0.3s ease;
}

.form-group input {
    width: 100%;
    padding: 0.75rem 1rem;
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 0.25rem;
    color: white;
    font-size: 0.9375rem;
    font-family: "Montserrat", sans-serif;
    outline: none;
    transition: border-color 0.2s;
    box-sizing: border-box;
}

.form-group input:focus {
    border-color: #1db954;
}

.form-group input::placeholder {
    color: #b3b3b3;
}

.profile-modal-actions {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.submit-profile-btn {
    flex: 1;
    background-color: #1db954;
    border: none;
    color: #000;
    padding: 0.75rem 1.5rem;
    border-radius: 2rem;
    cursor: pointer;
    font-size: 0.9375rem;
    font-weight: 700;
    font-family: "Montserrat", sans-serif;
    transition: background-color 0.2s, transform 0.2s;
}

.submit-profile-btn:hover {
    background-color: #1ed760;
    transform: scale(1.05);
}

.logout-btn {
    flex: 1;
    background: transparent;
    border: 1px solid rgba(255, 68, 68, 0.5);
    color: #ff4444;
    padding: 0.75rem 1.5rem;
    border-radius: 2rem;
    cursor: pointer;
    font-size: 0.9375rem;
    font-weight: 600;
    font-family: "Montserrat", sans-serif;
    transition: border-color 0.2s, background-color 0.2s, transform 0.2s;
}

.logout-btn:hover {
    border-color: #ff4444;
    background-color: rgba(255, 68, 68, 0.1);
    transform: scale(1.05);
}
.section-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 1.5rem 0 1rem 0;
    color: var(--color-text);
    transition: color 0.3s ease;
}

/* Search Page Styles */
.search-content {
    padding: 1rem 0;
}

.search-container {
    width: 100%;
}

.search-box-wrapper {
    position: relative;
    width: 100%;
    max-width: 500px;
    margin: 2rem 0;
}

.search-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #b3b3b3;
    font-size: 1.25rem;
    pointer-events: none;
}

.search-input {
    width: 100%;
    padding: 0.875rem 1rem 0.875rem 3rem;
    background-color: #fff;
    border: none;
    border-radius: 2rem;
    font-size: 0.9375rem;
    color: #000;
    font-family: "Montserrat", sans-serif;
    outline: none;
    transition: box-shadow 0.2s;
}

.search-input:focus {
    box-shadow: 0 0 0 2px #1db954;
}

.search-input::placeholder {
    color: #6a6a6a;
}

.search-categories {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 1rem;
    margin-top: 1.5rem;
}

.category-card {
    aspect-ratio: 1;
    border-radius: 0.5rem;
    padding: 1.25rem;
    display: flex;
    align-items: flex-end;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    position: relative;
    overflow: hidden;
}

.category-card:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
}

.category-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-text);
    margin: 0;
    z-index: 1;
    position: relative;
    transition: color 0.3s ease;
}

/* Interactive Cards Styles */
.interactive-card {
    aspect-ratio: 1;
    border-radius: 0.5rem;
    padding: 1.25rem;
    display: flex;
    align-items: flex-end;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), 
                box-shadow 0.3s ease,
                width 0.4s cubic-bezier(0.34, 1.56, 0.64, 1),
                height 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.interactive-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

/* Pop out animation */
.interactive-card.popped {
    transform: scale(1.1) translateY(-8px);
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.4);
    z-index: 100;
}

/* Expanded state */
.interactive-card.expanded {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(1);
    width: 80vw;
    max-width: 800px;
    height: 70vh;
    max-height: 600px;
    aspect-ratio: auto;
    z-index: 1000;
    border-radius: 1rem;
    padding: 2rem;
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.5);
    overflow-y: auto;
}

.interactive-card.expanded .interactive-card-content {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.interactive-card-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
    margin: 0;
    z-index: 1;
    position: relative;
    transition: font-size 0.3s ease;
}

.interactive-card.expanded .interactive-card-title {
    font-size: 2rem;
    margin-bottom: 1.5rem;
}

.interactive-card-expanded {
    opacity: 0;
    animation: fadeInExpand 0.4s ease forwards;
    margin-top: 1.5rem;
}

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

.interactive-card-description {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1rem;
    margin-bottom: 1.5rem;
}

.interactive-card-songs {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: 1rem;
}

.interactive-card-song-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 0.5rem;
    transition: background-color 0.2s, transform 0.2s;
    cursor: pointer;
}

.interactive-card-song-item:hover {
    background-color: rgba(255, 255, 255, 0.2);
    transform: translateX(4px);
}

.song-item-number {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.875rem;
    font-weight: 600;
    min-width: 24px;
    text-align: center;
}

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

.song-item-title {
    color: var(--color-text);
    font-size: 0.9375rem;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: color 0.3s ease;
}

.song-item-artist {
    color: var(--color-text-secondary);
    font-size: 0.8125rem;
    margin-top: 0.25rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: color 0.3s ease;
}

.song-item-play-btn {
    background: transparent;
    border: none;
    color: var(--color-text);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    transition: color 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.2s, background-color 0.2s, transform 0.2s;
}

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

.song-item-play-btn:hover {
    background-color: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

.song-item-play-btn i {
    font-size: 0.75rem;
    margin-left: 2px;
}

/* Overlay for expanded card */
.interactive-card.expanded::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: -1;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Close button for expanded card */
.interactive-card-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 36px;
    height: 36px;
    border: none;
    background-color: rgba(0, 0, 0, 0.4);
    color: var(--color-text);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.3s ease, background-color 0.3s ease;
    z-index: 1001;
    transition: background-color 0.2s, transform 0.2s;
    opacity: 0;
    pointer-events: none;
}

.interactive-card.expanded .interactive-card-close {
    opacity: 1;
    pointer-events: all;
}

.interactive-card-close:hover {
    background-color: rgba(0, 0, 0, 0.6);
    transform: rotate(90deg) scale(1.1);
}

.interactive-card-close i {
    font-size: 1rem;
}
.search-results {
    margin-top: 1rem;
}

.search-hint {
    color: #b3b3b3;
    margin-top: 1rem;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .sidebar {
        width: 280px;
        min-width: 200px;
    }
    
    .card {
        width: 160px;
    }
}

@media (max-width: 1000px) {
    .hide {
        display: none;
    }
    
    .sidebar {
        width: 240px;
        min-width: 180px;
    }
    
    .logo-text {
        display: none;
    }
    
    .logo-container {
        justify-content: center;
        padding: 1rem;
    }
    
    .card {
        width: 150px;
        min-width: 140px;
    }
    
    .player {
        width: 50%;
    }
    
    .controls {
        width: 20%;
    }
    
    .volume-bar {
        width: 60px;
    }
}

@media (max-width: 768px) {
    .main {
        flex-direction: column;
        padding: 0.5rem;
    }
    
    .sidebar {
        width: 100%;
        height: auto;
        max-height: 200px;
        border-radius: 0.5rem;
        margin-bottom: 0.5rem;
    }
    
    .nav {
        flex-direction: row;
        height: auto;
        padding: 0.5rem;
    }
    
    .nav-option {
        flex: 1;
        justify-content: center;
    }
    
    .library {
        display: none;
    }
    
    .main-content {
        border-radius: 0.5rem;
        padding: 0 1rem;
    }
    
    .card {
        width: calc(50% - 0.5rem);
        min-width: 140px;
    }
    
    .music-player {
        height: 80px;
        padding: 0 8px;
    }
    
    .album {
        width: 40%;
        min-width: 150px;
    }
    
    .player {
        width: 60%;
    }
    
    .controls {
        width: 0;
        display: none;
    }
    
    .playback-bar {
        gap: 0.5rem;
    }
    
    .curr-time, .tot-time {
        font-size: 0.625rem;
        min-width: 30px;
    }
}

@media (max-width: 480px) {
    .main {
        padding: 0.25rem;
    }
    
    .card {
        width: 100%;
        margin-right: 0;
    }
    
    .cards-container {
        flex-direction: column;
    }
    
    .section-title {
        font-size: 1.25rem;
    }
    
    .album {
        width: 50%;
    }
    
    .player {
        width: 50%;
    }
    
    .player-controls {
        gap: 0.5rem;
    }
    
    .player-btn {
        padding: 0.25rem;
    }
    
    .play-pause-btn {
        width: 28px;
        height: 28px;
    }
}

.card{
    background-color: var(--color-card-bg);
    width: 180px;
    min-width: 150px;
    border-radius: 0.5rem;
    padding: 1rem;
    margin: 0 1rem 1rem 0;
    transition: background-color 0.3s ease;
    cursor: pointer;
    position: relative;
}

.card:hover {
    background-color: var(--color-card-hover);
}

.cards-container{
    display: flex;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}

.card-image-wrapper {
    position: relative;
    width: 100%;
    margin-bottom: 1rem;
    border-radius: 0.5rem;
    overflow: hidden;
}

.card img{
    width: 100%;
    border-radius: 0.5rem;
    display: block;
    transition: transform 0.3s;
}

.card:hover img {
    transform: scale(1.05);
}

.play-button-overlay {
    position: absolute;
    bottom: 8px;
    right: 8px;
    width: 48px;
    height: 48px;
    background-color: #1db954;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: translateY(8px);
    transition: all 0.3s;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
}

.card:hover .play-button-overlay {
    opacity: 1;
    transform: translateY(0);
}

.play-button-overlay i {
    color: #000;
    font-size: 1rem;
    margin-left: 2px;
}

.card-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    margin-top: 0;
    background-color: rgba(0, 0, 0, 0.7);
    color: var(--color-text);
    font-size: 0.75rem;
    padding: 0.25rem 0.75rem;
    height: auto;
    z-index: 2;
    transition: color 0.3s ease;
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
}

.card-badge:hover {
    background-color: rgba(0, 0, 0, 0.9);
    transform: scale(1.05);
}

.card-title{
    font-weight: 600;
    font-size: 1rem;
    margin: 0.5rem 0 0.25rem 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: var(--color-text);
    transition: color 0.3s ease;
}

.card-info{
    font-size: 0.875rem;
    opacity: 0.7;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    color: var(--color-text-secondary);
    transition: color 0.3s ease;
}

.footer{
    height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.line{
    width: 90%;
    height: 30%;
    border-top: 1px solid white;
    opacity: 0.4;
}

.album{
    display: flex;
    align-items: center;
    gap: 0.875rem;
    width: 30%;
    min-width: 180px;
    position: relative;
}

.album img{
    height: 56px;
    width: 56px;
    border-radius: 4px;
    object-fit: cover;
}

.album-info {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    flex: 1;
    min-width: 0;
}

.high{
    font-weight: 500;
    font-size: 0.875rem;
    color: var(--color-text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    cursor: pointer;
    transition: color 0.3s ease;
}

.high:hover {
    text-decoration: underline;
}

.high1{
    font-size: 0.75rem;
    opacity: 0.7;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    cursor: pointer;
    color: var(--color-text-secondary);
    transition: color 0.3s ease;
}

.high1:hover {
    opacity: 1;
    text-decoration: underline;
}

.album .fa-heart {
    color: #b3b3b3;
    font-size: 1rem;
    cursor: pointer;
    padding: 0.5rem;
    transition: color 0.2s;
}

.album .fa-heart:hover {
    color: #1db954;
}

.album .fa-heart.fa-solid {
    color: #1db954;
}

.music-player{
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.player{
    width: 40%;
    max-width: 722px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.player-controls{
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
}

.player-btn {
    background: transparent;
    border: none;
    color: var(--color-text-secondary);
    cursor: pointer;
    padding: 0.5rem;
    transition: color 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.player-btn:hover {
    color: var(--color-text);
}

.player-btn i {
    font-size: 1rem;
}

.play-pause-btn {
    background-color: white;
    color: #000;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    padding: 0;
}

.play-pause-btn:hover {
    background-color: white;
    transform: scale(1.1);
}

.play-pause-btn i {
    font-size: 0.875rem;
}

.playback-bar{
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.75rem;
    width: 100%;
}

.curr-time, .tot-time {
    font-size: 0.6875rem;
    color: #b3b3b3;
    min-width: 40px;
    text-align: center;
}

.progress-bar{
    flex: 1;
    appearance: none;
    background-color: transparent;
    cursor: pointer;
    height: 4px;
    --progress: 0%;
}

.progress-bar::-webkit-slider-runnable-track{
    background: linear-gradient(to right, #0066ff 0%, #0066ff var(--progress), #535353 var(--progress), #535353 100%);
    border-radius: 2px;
    height: 4px;
    transition: background 0.1s ease;
}

.progress-bar:hover::-webkit-slider-runnable-track{
    background: linear-gradient(to right, #0066ff 0%, #0066ff var(--progress), #727272 var(--progress), #727272 100%);
}

.progress-bar::-webkit-slider-thumb{
    appearance: none;
    height: 12px;
    width: 12px;
    background-color: white;
    border-radius: 50%;
    margin-top: -4px;
    opacity: 0;
    transition: opacity 0.2s;
}

.progress-bar:hover::-webkit-slider-thumb{
    opacity: 1;
}

.progress-bar::-moz-range-track {
    background: linear-gradient(to right, #0066ff 0%, #0066ff var(--progress), #535353 var(--progress), #535353 100%);
    border-radius: 2px;
    height: 4px;
    transition: background 0.1s ease;
}

.progress-bar::-moz-range-thumb {
    height: 12px;
    width: 12px;
    background-color: white;
    border: none;
    border-radius: 50%;
    opacity: 0;
    transition: opacity 0.2s;
}

.progress-bar:hover::-moz-range-thumb {
    opacity: 1;
}  

.controls{
    display: flex;
    justify-content: flex-end;
    align-items: center;
    width: 30%;
    gap: 0.5rem;
}

.control-btn {
    background: transparent;
    border: none;
    color: #b3b3b3;
    cursor: pointer;
    padding: 0.5rem;
    transition: color 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.control-btn:hover {
    color: white;
}

.control-btn i {
    font-size: 1rem;
}

.volume-bar {
    width: 93px;
    appearance: none;
    background-color: transparent;
    cursor: pointer;
    height: 4px;
    --volume: 50%;
}

.volume-bar::-webkit-slider-runnable-track{
    background-color: #535353;
    border-radius: 2px;
    height: 4px;
    transition: background 0.5s ease;
}

/* Volume bar hover - 0% grey, 0-50% blue, above 50% whole bar smoothly turns green */
.volume-bar:hover::-webkit-slider-runnable-track{
    transition: background 0.5s ease;
}

/* At 0% - grey */
.volume-bar.volume-0:hover::-webkit-slider-runnable-track {
    background: #535353;
}

/* For volumes 1-50% - blue filled portion */
.volume-bar.volume-under-50:hover::-webkit-slider-runnable-track {
    background: linear-gradient(to right, 
        #0066ff 0%, 
        #0066ff var(--volume), 
        #535353 var(--volume), 
        #535353 100%);
}

/* At exactly 50% - blue up to 50% */
.volume-bar.volume-50:hover::-webkit-slider-runnable-track {
    background: linear-gradient(to right, #0066ff 0%, #0066ff 50%, #535353 50%, #535353 100%);
}

/* For volumes above 50% - whole bar smoothly turns green based on volume percentage */
.volume-bar.volume-over-50:hover::-webkit-slider-runnable-track {
    /* Color will be set dynamically via JavaScript for smooth transition */
    background: var(--volume-color, #1db954);
    transition: background 0.3s ease;
}

.volume-bar::-webkit-slider-thumb{
    appearance: none;
    height: 12px;
    width: 12px;
    background-color: white;
    border-radius: 50%;
    margin-top: -4px;
    opacity: 0;
    transition: opacity 0.2s;
}

.volume-bar:hover::-webkit-slider-thumb{
    opacity: 1;
}

/* ==================== PLAYLIST STYLES ==================== */

.playlist-content {
    padding: 1rem 0;
}

.back-to-library-btn {
    background: transparent;
    border: none;
    color: #b3b3b3;
    cursor: pointer;
    padding: 0.5rem 0;
    margin-bottom: 1.5rem;
    font-size: 0.9375rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: color 0.2s;
}

.back-to-library-btn:hover {
    color: white;
}

.playlist-header {
    margin-bottom: 2rem;
}

.playlist-info {
    display: flex;
    gap: 1.5rem;
    align-items: flex-end;
}

.playlist-image {
    width: 232px;
    height: 232px;
    background: linear-gradient(135deg, #450af5, #c4efd9);
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
}

.playlist-image i {
    font-size: 5rem;
    color: rgba(255, 255, 255, 0.9);
}

.playlist-details {
    flex: 1;
}

.playlist-type {
    font-size: 0.875rem;
    color: #b3b3b3;
    margin: 0 0 0.5rem 0;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.playlist-title {
    font-size: 4rem;
    font-weight: 900;
    margin: 0 0 0.5rem 0;
    line-height: 1.1;
    letter-spacing: -2px;
}

.playlist-meta {
    font-size: 0.875rem;
    color: #b3b3b3;
    margin: 0;
}

.playlist-actions {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.playlist-play-btn {
    width: 56px;
    height: 56px;
    background-color: #1db954;
    border: none;
    border-radius: 50%;
    color: #000;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    transition: transform 0.2s, background-color 0.2s;
    box-shadow: 0 4px 12px rgba(29, 185, 84, 0.4);
}

.playlist-play-btn:hover {
    transform: scale(1.05);
    background-color: #1ed760;
}

.add-songs-btn {
    background: var(--color-button-bg);
    border: 1px solid var(--color-border);
    color: var(--color-button-text);
    transition: color 0.3s ease, border-color 0.3s ease, background-color 0.3s ease;
    padding: 0.5rem 1.5rem;
    border-radius: 2rem;
    cursor: pointer;
    font-size: 0.875rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: border-color 0.2s, transform 0.2s;
}

.add-songs-btn:hover {
    background-color: var(--color-button-hover);
    transform: scale(1.05);
}

.playlist-songs-container {
    margin-top: 1rem;
}

.empty-playlist {
    text-align: center;
    padding: 3rem 1rem;
    color: #b3b3b3;
}

.empty-playlist p {
    font-size: 1rem;
    margin: 0;
}

.playlist-song-item {
    display: grid;
    grid-template-columns: 40px 1fr auto 40px;
    gap: 1rem;
    align-items: center;
    padding: 0.5rem;
    border-radius: 0.25rem;
    cursor: pointer;
    transition: background-color 0.2s;
}

.playlist-song-item:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.song-number {
    color: #b3b3b3;
    font-size: 0.875rem;
    text-align: center;
}

.song-info {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    min-width: 0;
}

.song-title {
    font-size: 1rem;
    color: white;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.song-artist {
    font-size: 0.875rem;
    color: #b3b3b3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.song-duration {
    color: #b3b3b3;
    font-size: 0.875rem;
    text-align: right;
}

.remove-song-btn {
    background: transparent;
    border: none;
    color: #b3b3b3;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.2s, color 0.2s;
}

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

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

/* Add Songs Modal */
.add-songs-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    padding: 2rem;
}

.modal-content {
    background-color: #282828;
    border-radius: 0.5rem;
    width: 100%;
    max-width: 600px;
    max-height: 80vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.5);
}

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

.modal-header h2 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 700;
}

.modal-close-btn {
    background: transparent;
    border: none;
    color: #b3b3b3;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s, color 0.2s;
}

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

.modal-search {
    padding: 1rem 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.modal-search-input {
    width: 100%;
    padding: 0.75rem 1rem;
    background-color: var(--color-card-bg);
    border: 1px solid var(--color-border);
    border-radius: 0.25rem;
    color: var(--color-text);
    font-size: 0.9375rem;
    outline: none;
    transition: border-color 0.3s ease, color 0.3s ease, background-color 0.3s ease;
}

.modal-search-input:focus {
    border-color: #1db954;
}

.modal-search-input::placeholder {
    color: #b3b3b3;
}

.modal-songs-list {
    flex: 1;
    overflow-y: auto;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.modal-song-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem;
    border-radius: 0.5rem;
    transition: background-color 0.2s;
    cursor: pointer;
}

.modal-song-item:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.modal-song-item.in-playlist {
    opacity: 0.6;
}

.modal-song-image {
    width: 48px;
    height: 48px;
    border-radius: 0.25rem;
    object-fit: cover;
}

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

.modal-song-title {
    font-size: 0.9375rem;
    color: var(--color-text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: color 0.3s ease;
}

.modal-song-artist {
    font-size: 0.875rem;
    color: var(--color-text-secondary);
    white-space: nowrap;
    overflow: hidden;
    transition: color 0.3s ease;
    text-overflow: ellipsis;
}

.add-to-playlist-btn {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s, border-color 0.2s;
}

.add-to-playlist-btn:hover:not([disabled]) {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: white;
}

.add-to-playlist-btn[disabled] {
    opacity: 0.5;
    cursor: not-allowed;
}

/* ==================== PLAYLIST LIST IN LIBRARY ==================== */

.playlists-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin: 0.75rem 0;
}

.playlist-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem;
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 0.5rem;
    transition: background-color 0.2s;
    cursor: pointer;
}

.playlist-item:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.playlist-item-content {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex: 1;
    min-width: 0;
}

.playlist-item-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #450af5, #c4efd9);
    border-radius: 0.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.playlist-item-icon i {
    font-size: 1.5rem;
    color: rgba(255, 255, 255, 0.9);
}

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

.playlist-item-name {
    font-size: 1rem;
    font-weight: 500;
    color: var(--color-text);
    margin: 0 0 0.25rem 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: color 0.3s ease;
}

.playlist-item-count {
    font-size: 0.875rem;
    color: var(--color-text-secondary);
    margin: 0;
    transition: color 0.3s ease;
}

.delete-playlist-btn {
    background: transparent;
    border: none;
    color: #b3b3b3;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.2s, color 0.2s, background-color 0.2s;
    width: 32px;
    height: 32px;
}

.playlist-item:hover .delete-playlist-btn {
    opacity: 1;
}

.delete-playlist-btn:hover {
    color: #ff4444;
    background-color: rgba(255, 68, 68, 0.1);
}

.delete-playlist-btn i {
    font-size: 0.875rem;
}

/* Selected song in modal */
.modal-song-item.selected {
    background-color: rgba(29, 185, 84, 0.2);
    border: 1px solid rgba(29, 185, 84, 0.4);
}

.modal-song-item.selected .add-to-playlist-btn {
    background-color: rgba(29, 185, 84, 0.3);
    border-color: rgba(29, 185, 84, 0.6);
}

/* ==================== PODCAST STYLES ==================== */

.podcasts-content {
    padding: 1rem 0;
}

.podcasts-header {
    margin-bottom: 2rem;
}

.podcasts-page-title {
    font-size: 2rem;
    font-weight: 700;
    margin: 1rem 0;
}

.podcast-card {
    display: flex;
    gap: 2rem;
    margin-bottom: 3rem;
    padding: 2rem;
    background: linear-gradient(180deg, rgba(29, 185, 84, 0.1) 0%, transparent 100%);
    border-radius: 0.5rem;
}

.podcast-image {
    width: 232px;
    height: 232px;
    background: linear-gradient(135deg, #1db954, #0d7a3d);
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
    flex-shrink: 0;
}

.podcast-image i {
    font-size: 5rem;
    color: rgba(255, 255, 255, 0.9);
}

.podcast-info {
    flex: 1;
}

.podcast-type {
    font-size: 0.875rem;
    color: #b3b3b3;
    margin: 0 0 0.5rem 0;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.podcast-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin: 0 0 1rem 0;
    line-height: 1.2;
}

.podcast-meta {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    color: #b3b3b3;
    font-size: 0.875rem;
}

.podcast-description {
    color: #b3b3b3;
    font-size: 0.9375rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.podcast-actions {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.podcast-play-btn {
    background-color: #1db954;
    border: none;
    color: #000;
    padding: 0.75rem 2rem;
    border-radius: 2rem;
    cursor: pointer;
    font-size: 0.9375rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: transform 0.2s, background-color 0.2s;
}

.podcast-play-btn:hover {
    transform: scale(1.05);
    background-color: #1ed760;
}

.podcast-link-btn {
    background: var(--color-button-bg);
    border: 1px solid var(--color-border);
    color: var(--color-button-text);
    padding: 0.75rem 2rem;
    border-radius: 2rem;
    cursor: pointer;
    font-size: 0.9375rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    transition: color 0.3s ease, border-color 0.3s ease, background-color 0.3s ease;
    gap: 0.5rem;
    text-decoration: none;
    transition: border-color 0.2s, transform 0.2s;
}

.podcast-link-btn:hover {
    background-color: var(--color-button-hover);
    transform: scale(1.05);
}

.podcast-shows {
    margin-bottom: 1.5rem;
}

.podcast-shows h3 {
    font-size: 1rem;
    font-weight: 600;
    margin: 0 0 0.75rem 0;
    color: white;
}

.show-link {
    display: block;
    color: #1db954;
    text-decoration: none;
    margin-bottom: 0.5rem;
    font-size: 0.9375rem;
    transition: color 0.2s;
}

.show-link:hover {
    color: #1ed760;
    text-decoration: underline;
}

.podcast-contact {
    margin-top: 1.5rem;
}

.podcast-contact h3 {
    font-size: 1rem;
    font-weight: 600;
    margin: 0 0 0.75rem 0;
    color: var(--color-text);
    transition: color 0.3s ease;
}

.podcast-contact p {
    color: var(--color-text-secondary);
    font-size: 0.9375rem;
    margin: 0.5rem 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: color 0.3s ease;
}

.podcast-episodes {
    margin-top: 3rem;
}

.episode-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 1.5rem;
}

.episode-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 0.5rem;
    transition: background-color 0.2s;
    cursor: pointer;
}

.episode-item:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.episode-image {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #1db954, #0d7a3d);
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.episode-image i {
    font-size: 2rem;
    color: rgba(255, 255, 255, 0.9);
}

.episode-info {
    flex: 1;
}

.episode-info h3 {
    font-size: 1rem;
    font-weight: 600;
    margin: 0 0 0.25rem 0;
    color: var(--color-text);
    transition: color 0.3s ease;
}

.episode-meta {
    font-size: 0.875rem;
    color: var(--color-text-secondary);
    margin: 0;
    transition: color 0.3s ease;
}

/* Responsive styles for playlists and podcasts */
@media (max-width: 768px) {
    .playlist-info {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .playlist-image {
        width: 180px;
        height: 180px;
    }
    
    .playlist-title {
        font-size: 2.5rem;
    }
    
    .podcast-card {
        flex-direction: column;
    }
    
    .podcast-image {
        width: 180px;
        height: 180px;
    }
    
    .podcast-title {
        font-size: 1.75rem;
    }
    
    .modal-content {
        max-width: 95%;
        max-height: 90vh;
    }
}

/* ==================== SETTINGS PAGE STYLES ==================== */

.settings-content {
    padding: 2rem 0;
}

.settings-header {
    margin-bottom: 2rem;
}

.settings-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--color-text);
    margin: 0;
    transition: color 0.3s ease;
}

.settings-sections {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.settings-section {
    background-color: var(--color-card-bg);
    border-radius: 0.5rem;
    padding: 1.5rem;
    transition: background-color 0.3s ease;
}

.settings-section-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--color-text);
    margin: 0 0 1rem 0;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    transition: color 0.3s ease;
}

.settings-section-title i {
    color: #1db954;
}

.settings-options {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.settings-option {
    display: flex;
    align-items: center;
}

.settings-option label {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--color-text);
    font-size: 0.9375rem;
    cursor: pointer;
    transition: color 0.3s ease;
}

.settings-option input[type="radio"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: #1db954;
}

.toggle-switch {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    width: 100%;
}

.toggle-switch input[type="checkbox"] {
    position: relative;
    width: 44px;
    height: 24px;
    appearance: none;
    background-color: #727272;
    border-radius: 12px;
    cursor: pointer;
    transition: background-color 0.3s;
    margin: 0;
    padding: 0;
    flex-shrink: 0;
}

.toggle-switch input[type="checkbox"]:checked {
    background-color: #1db954;
}

.toggle-switch .slider {
    position: absolute;
    left: 2px;
    top: 2px;
    width: 20px;
    height: 20px;
    background-color: white;
    border-radius: 50%;
    transition: transform 0.3s ease;
    pointer-events: none;
}

.toggle-switch input[type="checkbox"]:checked + .slider {
    transform: translateX(20px);
}

.toggle-label {
    flex: 1;
}

.settings-info {
    color: var(--color-text-secondary);
    font-size: 0.875rem;
    margin: 0.5rem 0;
    transition: color 0.3s ease;
}

.storage-bar {
    width: 100%;
    height: 8px;
    background-color: #535353;
    border-radius: 4px;
    overflow: hidden;
    margin-top: 0.5rem;
}

.storage-fill {
    height: 100%;
    background: linear-gradient(90deg, #1db954, #1ed760);
    border-radius: 4px;
    transition: width 0.3s ease;
}

.settings-footer {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--color-border);
    transition: border-color 0.3s ease;
}

.back-to-home-btn {
    background: transparent;
    border: 1px solid var(--color-border);
    color: var(--color-text);
    transition: color 0.3s ease, border-color 0.3s ease;
    padding: 0.75rem 1.5rem;
    border-radius: 2rem;
    cursor: pointer;
    font-size: 0.9375rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: border-color 0.2s, transform 0.2s;
    font-family: "Montserrat", sans-serif;
}

.back-to-home-btn:hover {
    border-color: white;
    transform: scale(1.05);
}

.settings-select {
    width: 100%;
    max-width: 300px;
    padding: 0.75rem 1rem;
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 0.25rem;
    color: white;
    font-size: 0.9375rem;
    font-family: "Montserrat", sans-serif;
    outline: none;
    cursor: pointer;
    transition: border-color 0.2s, background-color 0.2s;
}

.settings-select:focus {
    border-color: #1db954;
    background-color: rgba(255, 255, 255, 0.15);
}

.settings-select option {
    background-color: #282828;
    color: white;
}

.clear-cache-btn {
    background-color: rgba(255, 68, 68, 0.2);
    border: 1px solid rgba(255, 68, 68, 0.5);
    color: #ff4444;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    cursor: pointer;
    font-size: 0.9375rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: background-color 0.2s, border-color 0.2s, transform 0.2s;
    font-family: "Montserrat", sans-serif;
}

.clear-cache-btn:hover {
    background-color: rgba(255, 68, 68, 0.3);
    border-color: #ff4444;
    transform: scale(1.05);
}

.clear-cache-btn i {
    font-size: 0.875rem;
}

/* Feedback Message Animations */
@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOutRight {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

/* Responsive Settings Page */
@media (max-width: 768px) {
    .settings-content {
        padding: 1rem 0;
    }
    
    .settings-title {
        font-size: 1.5rem;
    }
    
    .settings-section {
        padding: 1rem;
    }
    
    .settings-section-title {
        font-size: 1rem;
    }
    
    .settings-select {
        max-width: 100%;
    }
    
    .settings-options {
        gap: 0.75rem;
    }
    
    .back-to-home-btn {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .settings-header {
        margin-bottom: 1rem;
    }
    
    .settings-title {
        font-size: 1.25rem;
    }
    
    .settings-section {
        padding: 0.75rem;
    }
    
    .settings-section-title {
        font-size: 0.9375rem;
    }
    
    .settings-section-title i {
        font-size: 0.875rem;
    }
    
    .settings-option label {
        font-size: 0.875rem;
    }
    
    .toggle-switch {
        gap: 0.5rem;
    }
    
    .clear-cache-btn {
        width: 100%;
        justify-content: center;
    }
}

/* ==================== QUEUE AND DEVICE MODAL STYLES ==================== */

.queue-modal,
.device-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    padding: 2rem;
}

.queue-modal .modal-content,
.device-modal .modal-content {
    background-color: #282828;
    border-radius: 0.5rem;
    width: 100%;
    max-width: 500px;
    max-height: 80vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.5);
    overflow: hidden;
}

.queue-modal .modal-header,
.device-modal .modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.queue-modal .modal-header h2,
.device-modal .modal-header h2 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-text);
    transition: color 0.3s ease;
}

.queue-list,
.device-list {
    flex: 1;
    overflow-y: auto;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.queue-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem;
    border-radius: 0.5rem;
    transition: background-color 0.2s;
    cursor: pointer;
}

.queue-item:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.queue-item.current {
    background-color: rgba(29, 185, 84, 0.2);
}

.queue-item-number {
    color: #b3b3b3;
    font-size: 0.875rem;
    font-weight: 600;
    min-width: 24px;
    text-align: center;
}

.queue-item-image {
    width: 48px;
    height: 48px;
    border-radius: 0.25rem;
    object-fit: cover;
}

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

.queue-item-title {
    font-size: 0.9375rem;
    color: var(--color-text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: color 0.3s ease;
}

.queue-item-artist {
    font-size: 0.875rem;
    color: var(--color-text-secondary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-top: 0.25rem;
    transition: color 0.3s ease;
}

.queue-current-badge {
    background-color: #1db954;
    color: #000;
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
    font-size: 0.75rem;
    font-weight: 600;
}

.empty-queue {
    text-align: center;
    padding: 3rem 1rem;
    color: #b3b3b3;
}

.empty-queue p {
    font-size: 1rem;
    margin: 0;
}

.device-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    border-radius: 0.5rem;
    transition: background-color 0.2s;
    cursor: pointer;
}

.device-item:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.device-item.active {
    background-color: rgba(29, 185, 84, 0.2);
}

.device-item i:first-child {
    font-size: 1.5rem;
    color: var(--color-text);
    width: 32px;
    text-align: center;
    transition: color 0.3s ease;
}

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

.device-name {
    font-size: 0.9375rem;
    color: var(--color-text);
    font-weight: 500;
    transition: color 0.3s ease;
}

.device-status {
    font-size: 0.875rem;
    color: var(--color-text-secondary);
    margin-top: 0.25rem;
    transition: color 0.3s ease;
}

.device-active-icon {
    color: #1db954;
    font-size: 1rem;
}

.device-footer {
    padding: 1rem 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.device-hint {
    font-size: 0.875rem;
    color: var(--color-text-secondary);
    margin: 0;
    text-align: center;
    transition: color 0.3s ease;
}

/* ==================== SPLASH SCREEN STYLES ==================== */

#splash-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #000;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    z-index: 9999;
    opacity: 1;
}

#splash-screen.fade-out {
    opacity: 0;
    transition: opacity 1s ease-out;
}

#splash-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('bg_white.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    z-index: 0;
}

#splash-bg.visible {
    opacity: 1;
}

.splash-element {
    opacity: 0;
    transition: opacity 1s ease-in-out;
    position: relative;
    z-index: 1;
}

.splash-element.visible {
    opacity: 1;
}

#splash-logo {
    display: block;
}

#splash-logo img {
    width: 200px;
    height: auto;
    display: block;
}

#splash-text {
    font-family: "Montserrat", sans-serif;
    font-size: 4.5rem;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}




