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

:root {
    --primary-color: #1db954;
    --background-color: #121212;
    --secondary-bg: #181818;
    --tertiary-bg: #282828;
    --text-primary: #ffffff;
    --text-secondary: #b3b3b3;
    --hover-bg: #2a2a2a;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--background-color);
    color: var(--text-primary);
    height: 100vh;
    overflow: hidden;
}

.container {
    display: flex;
    height: calc(100vh - 90px);
}

/* Sidebar Styles */
.sidebar {
    width: 280px;
    background-color: #000000;
    padding: 24px;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 32px;
}

.logo i {
    font-size: 32px;
    color: var(--primary-color);
}

.logo h1 {
    font-size: 24px;
    font-weight: 700;
}

.nav-menu ul {
    list-style: none;
}

.nav-menu li {
    padding: 12px 16px;
    margin-bottom: 8px;
    cursor: pointer;
    border-radius: 4px;
    transition: background-color 0.3s;
    display: flex;
    align-items: center;
    gap: 16px;
    font-weight: 600;
    color: var(--text-secondary);
}

.nav-menu li:hover,
.nav-menu li.active {
    background-color: var(--tertiary-bg);
    color: var(--text-primary);
}

.nav-menu i {
    font-size: 20px;
}

.playlist-section {
    margin-top: 32px;
    flex: 1;
}

.playlist-section h3 {
    margin-bottom: 16px;
    font-size: 14px;
    text-transform: uppercase;
    color: var(--text-secondary);
    letter-spacing: 1px;
}

.folder-input-section {
    margin-bottom: 16px;
}

.folder-input-section input {
    width: 100%;
    padding: 12px;
    background-color: var(--tertiary-bg);
    border: 1px solid var(--hover-bg);
    border-radius: 4px;
    color: var(--text-primary);
    font-size: 14px;
    margin-bottom: 12px;
}

.folder-input-section input:focus {
    outline: none;
    border-color: var(--primary-color);
}

.folder-input-section button {
    width: 100%;
    padding: 12px;
    background-color: var(--primary-color);
    color: #000;
    border: none;
    border-radius: 20px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.folder-input-section button:hover {
    background-color: #1ed760;
    transform: scale(1.04);
}

.loading {
    text-align: center;
    color: var(--text-secondary);
    padding: 20px;
}

.loading i {
    font-size: 24px;
    color: var(--primary-color);
}

/* Main Content Styles */
.main-content {
    flex: 1;
    background: linear-gradient(to bottom, var(--secondary-bg) 0%, var(--background-color) 100%);
    overflow-y: auto;
    padding: 24px;
}

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

.header h2 {
    font-size: 32px;
    font-weight: 700;
}

.user-profile i {
    font-size: 32px;
    color: var(--text-secondary);
    cursor: pointer;
    transition: color 0.3s;
}

.user-profile i:hover {
    color: var(--text-primary);
}

.content-area {
    background-color: var(--secondary-bg);
    border-radius: 8px;
    padding: 24px;
    min-height: 500px;
}

.playlist-header {
    margin-bottom: 24px;
}

.playlist-header h3 {
    font-size: 24px;
    margin-bottom: 8px;
}

.playlist-header p {
    color: var(--text-secondary);
    font-size: 14px;
}

.song-list {
    width: 100%;
}

.empty-state {
    text-align: center;
    padding: 80px 20px;
    color: var(--text-secondary);
}

.empty-state i {
    font-size: 64px;
    margin-bottom: 24px;
    opacity: 0.5;
}

.empty-state p {
    font-size: 18px;
    margin-bottom: 12px;
}

.empty-state .hint {
    font-size: 14px;
    opacity: 0.7;
}

.song-item {
    display: grid;
    grid-template-columns: 50px 1fr 200px 100px;
    align-items: center;
    padding: 12px;
    border-radius: 4px;
    transition: background-color 0.3s;
    cursor: pointer;
    gap: 16px;
}

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

.song-item.playing {
    background-color: var(--tertiary-bg);
}

.song-number {
    text-align: center;
    color: var(--text-secondary);
    font-size: 14px;
}

.song-item:hover .song-number {
    display: none;
}

.song-item .play-icon {
    display: none;
    text-align: center;
    color: var(--text-primary);
    font-size: 16px;
}

.song-item:hover .play-icon {
    display: block;
}

.song-item.playing .play-icon {
    display: block;
    color: var(--primary-color);
}

.song-item.playing .song-number {
    display: none;
}

.song-details {
    display: flex;
    flex-direction: column;
}

.song-name {
    font-size: 16px;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 4px;
    overflow: hidden;
    position: relative;
    max-width: 100%;
}

.song-name-text {
    display: inline-block;
    white-space: nowrap;
    animation: scroll-text 20s linear infinite;
    padding-right: 50px;
}

.song-name:hover .song-name-text {
    animation-play-state: running;
}

@keyframes scroll-text {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

/* Only apply scroll animation when text overflows */
.song-name-text.no-scroll {
    animation: none;
    padding-right: 0;
}

.song-artist {
    font-size: 14px;
    color: var(--text-secondary);
}

.song-album {
    color: var(--text-secondary);
    font-size: 14px;
}

.song-duration {
    color: var(--text-secondary);
    font-size: 14px;
    text-align: right;
}

/* Player Footer Styles */
.player-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 90px;
    background-color: var(--secondary-bg);
    border-top: 1px solid var(--background-color);
    display: flex;
    align-items: center;
    padding: 0 16px;
}

.player-container {
    display: grid;
    grid-template-columns: 30% 40% 30%;
    width: 100%;
    align-items: center;
    gap: 16px;
}

/* Now Playing Info */
.now-playing {
    display: flex;
    align-items: center;
    gap: 16px;
    max-width: 100%;
}

.song-thumbnail {
    width: 56px;
    height: 56px;
    background-color: var(--tertiary-bg);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.song-thumbnail i {
    font-size: 24px;
    color: var(--text-secondary);
}

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

.song-title {
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 4px;
    color: var(--text-primary);
    overflow: hidden;
    position: relative;
}

.song-title-text {
    display: inline-block;
    white-space: nowrap;
    animation: scroll-title 20s linear infinite;
    padding-right: 50px;
}

.song-title-text.no-scroll {
    animation: none;
    padding-right: 0;
}

@keyframes scroll-title {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

.song-artist {
    font-size: 12px;
    color: var(--text-secondary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.like-btn {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 18px;
    cursor: pointer;
    transition: color 0.3s;
    margin-right: 10px;
}

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

.like-btn.liked {
    color: var(--primary-color);
}

/* Player Controls */
.player-controls {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.control-buttons {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
}

.control-btn {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s;
    padding: 8px;
}

.control-btn:hover {
    /* color: var(--text-primary); */
    transform: scale(1.1);
}

.control-btn.active {
    color: var(--primary-color);
}

.play-btn {
    background-color: var(--text-primary);
    color: #000;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

.play-btn:hover {
    transform: scale(1.08);
    background-color: var(--text-primary);
}

.progress-container {
    display: flex;
    align-items: center;
    gap: 12px;
}

.time {
    font-size: 12px;
    color: var(--text-secondary);
    min-width: 40px;
    text-align: center;
}

.progress-bar {
    flex: 1;
    height: 12px;
    position: relative;
    cursor: pointer;
}

.progress {
    position: absolute;
    height: 4px;
    background-color: var(--text-secondary);
    border-radius: 2px;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
}

.progress::before {
    content: '';
    position: absolute;
    height: 4px;
    background-color: var(--primary-color);
    border-radius: 2px;
    width: 0%;
    transition: width 0.1s linear;
}

.seek-slider {
    position: absolute;
    width: 100%;
    height: 4px;
    top: 50%;
    transform: translateY(-50%);
    -webkit-appearance: none;
    background: transparent;
    cursor: pointer;
}

.seek-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--text-primary);
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.3s;
}

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

.seek-slider::-moz-range-thumb {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--text-primary);
    cursor: pointer;
    border: none;
    opacity: 0;
    transition: opacity 0.3s;
}

.seek-slider:hover::-moz-range-thumb {
    opacity: 1;
}

/* Volume Controls */
.volume-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.volume-slider {
    width: 100px;
    height: 4px;
    -webkit-appearance: none;
    background: var(--text-secondary);
    border-radius: 2px;
    cursor: pointer;
}

.volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--text-primary);
    cursor: pointer;
}

.volume-slider::-moz-range-thumb {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--text-primary);
    cursor: pointer;
    border: none;
}

/* Scrollbar Styles */
::-webkit-scrollbar {
    width: 12px;
}

::-webkit-scrollbar-track {
    background: var(--background-color);
}

::-webkit-scrollbar-thumb {
    background: var(--tertiary-bg);
    border-radius: 6px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--hover-bg);
}

/* Modal Styles */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 10000;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
}

.modal-container {
    background-color: var(--secondary-bg);
    border-radius: 8px;
    min-width: 400px;
    max-width: 600px;
    max-height: 80vh;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.modal-overlay.active .modal-container {
    transform: scale(1);
}

.modal-header {
    padding: 20px 24px;
    border-bottom: 1px solid var(--hover-bg);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-title {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
}

.modal-close {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 28px;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: all 0.3s;
}

.modal-close:hover {
    background-color: var(--hover-bg);
    color: var(--text-primary);
}

.modal-body {
    padding: 24px;
    max-height: 60vh;
    overflow-y: auto;
    color: var(--text-primary);
}

.modal-body p {
    margin: 0 0 16px 0;
    line-height: 1.6;
}

.modal-input {
    width: 100%;
    padding: 12px;
    background-color: var(--tertiary-bg);
    border: 1px solid var(--hover-bg);
    border-radius: 4px;
    color: var(--text-primary);
    font-size: 14px;
    margin-top: 12px;
}

.modal-input:focus {
    outline: none;
    border-color: var(--primary-color);
}

.modal-footer {
    padding: 16px 24px;
    border-top: 1px solid var(--hover-bg);
    display: flex;
    justify-content: flex-end;
    gap: 12px;
}

.modal-btn {
    padding: 10px 24px;
    border: none;
    border-radius: 20px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 14px;
}

.modal-btn.btn-primary {
    background-color: var(--primary-color);
    color: #000;
}

.modal-btn.btn-primary:hover {
    background-color: #1ed760;
    transform: scale(1.04);
}

.modal-btn.btn-secondary {
    background-color: transparent;
    color: var(--text-primary);
    border: 1px solid var(--hover-bg);
}

.modal-btn.btn-secondary:hover {
    background-color: var(--hover-bg);
}

.modal-select-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 16px;
}

.modal-select-item {
    padding: 16px;
    background-color: var(--tertiary-bg);
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s;
}

.modal-select-item:hover {
    background-color: var(--hover-bg);
    transform: translateX(4px);
}

.select-item-title {
    font-weight: 600;
    margin-bottom: 4px;
}

.select-item-subtitle {
    font-size: 12px;
    color: var(--text-secondary);
}

.modal-loading {
    text-align: center;
    padding: 20px;
}

.spinner {
    width: 50px;
    height: 50px;
    margin: 0 auto 20px;
    border: 3px solid var(--hover-bg);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

.sync-icon-spinning {
    animation: spin 1s linear infinite;
}

.modal-info-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.info-item {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid var(--hover-bg);
}

.info-label {
    font-weight: 600;
    color: var(--text-secondary);
}

.info-value {
    color: var(--text-primary);
}

/* Song Action Buttons */
.song-actions {
    display: flex;
    gap: 8px;
    opacity: 0;
    transition: opacity 0.3s;
}

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

.song-action-btn {
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 4px;
    transition: all 0.3s;
    font-size: 14px;
}

.song-action-btn:hover {
    background-color: var(--hover-bg);
    color: var(--text-primary);
}

.song-action-btn.delete:hover {
    color: #f44336;
}

.song-action-btn.like.liked {
    color: var(--primary-color);
}

/* Sync Button */
.sync-btn {
    background: none;
    border: 1px solid var(--hover-bg);
    color: var(--text-secondary);
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 12px;
    width: 100%;
    justify-content: center;
}

.sync-btn:hover {
    background-color: var(--hover-bg);
    color: var(--text-primary);
    border-color: var(--primary-color);
}

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

.sync-btn .spinner {
    width: 16px;
    height: 16px;
    margin: 0;
    border-width: 2px;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    position: fixed;
    top: 16px;
    left: 16px;
    z-index: 1001;
    background-color: var(--tertiary-bg);
    border: none;
    color: var(--text-primary);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 20px;
    transition: all 0.3s;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.mobile-menu-toggle:hover {
    background-color: var(--hover-bg);
    transform: scale(1.05);
}

.sidebar-close {
    display: none;
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 24px;
    cursor: pointer;
    padding: 8px;
    border-radius: 4px;
    transition: all 0.3s;
    z-index: 10;
}

.sidebar-close:hover {
    background-color: var(--hover-bg);
    color: var(--text-primary);
}

/* Responsive Design - Tablets */
@media (max-width: 1024px) {
    .sidebar {
        width: 240px;
    }

    .header h2 {
        font-size: 28px;
    }

    .song-item {
        grid-template-columns: 50px 1fr 50px 80px;
        gap: 12px;
    }

    .song-details {
        max-width: 350px;
    }
}

/* Responsive Design - Mobile */
@media (max-width: 768px) {
    body {
        padding-top: 0;
    }

    .mobile-menu-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .container {
        height: calc(100vh - 180px);
    }

    .sidebar {
        position: fixed;
        top: 0;
        left: -280px;
        height: 100vh;
        width: 280px;
        z-index: 1000;
        transition: left 0.3s ease;
        box-shadow: 2px 0 10px rgba(0, 0, 0, 0.5);
    }

    .sidebar.active {
        left: 0;
    }

    .sidebar-close {
        display: block;
    }

    .main-content {
        width: 100%;
        padding: 16px;
        padding-top: 70px;
    }

    .header {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
        margin-bottom: 24px;
    }

    .header h2 {
        font-size: 24px;
    }

    .user-profile {
        position: absolute;
        top: 16px;
        right: 16px;
    }

    .content-area {
        padding: 16px;
        min-height: 300px;
    }

    .playlist-header h3 {
        font-size: 20px;
    }

    .song-item {
        grid-template-columns: 40px 1fr 60px;
        gap: 8px;
        padding: 10px 8px;
    }

    .song-album {
        display: none;
    }

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

    .song-name {
        font-size: 14px;
        overflow: hidden;
        max-width: 100%;
    }
    
    .song-name-text {
        animation-duration: 20s;
    }

    .song-artist {
        font-size: 12px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .song-duration {
        font-size: 12px;
    }

    .song-actions {
        opacity: 1;
    }

    /* Player Footer Mobile */
    .player-footer {
        height: 180px;
        padding: 16px 12px;
    }

    .player-container {
        grid-template-columns: 1fr;
        gap: 16px;
        height: 100%;
    }

    .now-playing {
        justify-content: space-between;
        gap: 12px;
    }

    .song-thumbnail {
        width: 52px;
        height: 52px;
    }

    .song-thumbnail i {
        font-size: 22px;
    }

    .song-info {
        flex: 1;
        min-width: 0;
        max-width: 210px;
    }

    .song-title {
        font-size: 14px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .song-artist {
        font-size: 12px;
    }

    .like-btn {
        font-size: 20px;
        padding: 8px;
    }

    .player-controls {
        gap: 12px;
    }

    .control-buttons {
        gap: 20px;
    }

    .control-btn {
        font-size: 22px;
        padding: 10px;
        width: 44px;
        height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .play-btn {
        width: 52px;
        height: 52px;
        font-size: 24px;
    }

    .progress-container {
        gap: 10px;
    }

    .time {
        font-size: 12px;
        min-width: 40px;
    }

    .progress-bar {
        height: 16px;
    }

    .progress {
        height: 6px;
    }

    .progress::before {
        height: 6px;
    }

    .seek-slider {
        height: 6px;
    }

    .seek-slider::-webkit-slider-thumb {
        width: 16px;
        height: 16px;
    }

    .seek-slider::-moz-range-thumb {
        width: 16px;
        height: 16px;
    }

    .volume-controls {
        display: none;
    }

    /* Modal Mobile */
    .modal-container {
        min-width: 95%;
        max-width: 95%;
        margin: 20px;
        max-height: 90vh;
    }

    .modal-header {
        padding: 16px;
    }

    .modal-title {
        font-size: 18px;
    }

    .modal-body {
        padding: 16px;
        max-height: calc(90vh - 140px);
    }

    .modal-footer {
        padding: 12px 16px;
        flex-direction: column-reverse;
    }

    .modal-btn {
        width: 100%;
    }

    /* Auth Modal Mobile */
    .auth-modal-content {
        margin: 10% auto;
        padding: 24px;
        width: 95%;
        max-width: 95%;
    }

    .auth-form h2 {
        font-size: 24px;
    }

    /* Settings Mobile */
    .settings-tabs {
        flex-wrap: wrap;
        gap: 8px;
    }

    .settings-tab {
        padding: 10px 16px;
        font-size: 13px;
    }

    .source-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .source-info {
        width: 100%;
    }

    .source-actions {
        width: 100%;
        justify-content: flex-end;
    }

    /* Empty State Mobile */
    .empty-state {
        padding: 40px 16px;
    }

    .empty-state i {
        font-size: 48px;
    }

    .empty-state p {
        font-size: 16px;
    }

    .empty-state .hint {
        font-size: 13px;
    }
}

/* Responsive Design - Small Mobile */
@media (max-width: 480px) {
    .mobile-menu-toggle {
        width: 40px;
        height: 40px;
        font-size: 18px;
    }

    .sidebar {
        width: 260px;
        left: -260px;
    }

    .main-content {
        padding: 12px;
        padding-top: 60px;
    }

    .header h2 {
        font-size: 20px;
    }

    .content-area {
        padding: 12px;
    }

    .song-item {
        grid-template-columns: 35px 1fr 50px;
        gap: 6px;
        padding: 8px 6px;
    }

    .song-name {
        font-size: 13px;
        overflow: hidden;
    }
    
    .song-name-text {
        animation-duration: 20s;
    }

    .song-artist {
        font-size: 11px;
    }

    .song-duration {
        font-size: 11px;
    }

    .player-footer {
        height: 180px;
        padding: 8px;
    }

    .control-buttons {
        gap: 8px;
    }

    .control-btn {
        font-size: 12px;
        padding: 4px;
    }

    .play-btn {
        width: 28px;
        height: 28px;
        font-size: 14px;
    }

    .now-playing {
        gap: 8px;
    }

    .song-thumbnail {
        width: 40px;
        height: 40px;
    }

    .song-thumbnail i {
        font-size: 18px;
    }

    .modal-header {
        padding: 12px;
    }

    .modal-title {
        font-size: 16px;
    }

    .modal-body {
        padding: 12px;
    }

    .auth-modal-content {
        padding: 20px;
    }

    .auth-form h2 {
        font-size: 20px;
    }

    .form-group input,
    .form-group select {
        padding: 12px;
        font-size: 13px;
    }

    .auth-btn {
        padding: 12px;
        font-size: 14px;
    }

    .settings-tab {
        padding: 8px 12px;
        font-size: 12px;
    }
}

/* Landscape Mobile */
@media (max-width: 768px) and (orientation: landscape) {
    .container {
        height: calc(100vh - 100px);
    }

    .player-footer {
        height: 100px;
    }

    .main-content {
        padding-top: 60px;
    }
}

/* Authentication Modal Styles */
.auth-modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
}

.auth-modal-content {
    position: relative;
    background-color: var(--secondary-bg);
    margin: 5% auto;
    padding: 40px;
    width: 90%;
    max-width: 450px;
    max-height: 90vh;
    border-radius: 12px;
    box-shadow: 0 10px 50px rgba(0, 0, 0, 0.5);
    animation: slideDown 0.3s ease-out;
    overflow-y: auto;
}

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

.auth-close {
    position: absolute;
    right: 20px;
    top: 20px;
    color: var(--text-secondary);
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s;
}

.auth-close:hover {
    color: var(--text-primary);
}

.auth-form {
    display: none;
}

.auth-form.active {
    display: block;
    animation: fadeIn 0.3s ease-in;
}

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

.auth-form h2 {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.auth-subtitle {
    color: var(--text-secondary);
    margin-bottom: 32px;
    font-size: 14px;
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-primary);
    font-weight: 600;
    font-size: 14px;
}

.form-group input {
    width: 100%;
    padding: 14px;
    background-color: var(--tertiary-bg);
    border: 2px solid var(--hover-bg);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 14px;
    transition: border-color 0.3s;
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary-color);
}

.form-group input::placeholder {
    color: var(--text-secondary);
}

.auth-btn {
    width: 100%;
    padding: 14px;
    background-color: var(--primary-color);
    color: #000;
    border: none;
    border-radius: 30px;
    font-weight: 700;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s;
    margin-top: 8px;
    position: relative;
}

.auth-btn:hover:not(:disabled) {
    background-color: #1ed760;
    transform: scale(1.02);
}

.auth-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.auth-error {
    display: none;
    margin-top: 16px;
    padding: 12px;
    background-color: rgba(244, 67, 54, 0.1);
    border: 1px solid rgba(244, 67, 54, 0.3);
    border-radius: 8px;
    color: #f44336;
    font-size: 14px;
}

.auth-switch {
    margin-top: 24px;
    text-align: center;
    color: var(--text-secondary);
    font-size: 14px;
}

.auth-switch a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s;
}

.auth-switch a:hover {
    color: #1ed760;
    text-decoration: underline;
}

/* User Menu Styles */
.user-menu-trigger {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    padding: 8px 16px;
    border-radius: 20px;
    transition: background-color 0.3s;
}

.user-menu-trigger:hover {
    background-color: var(--hover-bg);
}

.user-name {
    font-weight: 600;
    font-size: 14px;
}

.user-menu-trigger i {
    font-size: 32px;
}

.user-dropdown-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background-color: var(--tertiary-bg);
    border-radius: 8px;
    padding: 8px;
    min-width: 200px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
    z-index: 1000;
    animation: slideDown 0.2s ease-out;
}

.user-info {
    padding: 12px;
    border-bottom: 1px solid var(--hover-bg);
    margin-bottom: 8px;
}

.user-info strong {
    display: block;
    margin-bottom: 4px;
    font-size: 14px;
}

.user-info small {
    color: var(--text-secondary);
    font-size: 12px;
}

.user-dropdown-menu hr {
    border: none;
    border-top: 1px solid var(--hover-bg);
    margin: 8px 0;
}

.dropdown-item {
    width: 100%;
    padding: 12px;
    background: none;
    border: none;
    color: var(--text-primary);
    cursor: pointer;
    border-radius: 4px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    text-align: left;
    transition: background-color 0.3s;
}

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

.dropdown-item i {
    font-size: 16px;
}

.user-profile {
    position: relative;
}

/* Settings Modal Styles */
.settings-container {
    padding: 20px 0;
}

.settings-tabs {
    display: flex;
    gap: 16px;
    margin-bottom: 24px;
    border-bottom: 2px solid var(--hover-bg);
}

.settings-tab {
    background: none;
    border: none;
    color: var(--text-secondary);
    padding: 12px 24px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
}

.settings-tab:hover {
    color: var(--text-primary);
}

.settings-tab.active {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
}

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

.settings-tab-content.active {
    display: block;
    animation: fadeIn 0.3s ease-in;
}

.sources-list {
    max-height: 400px;
    overflow-y: auto;
}

.source-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px;
    background-color: var(--tertiary-bg);
    border-radius: 8px;
    margin-bottom: 12px;
    transition: all 0.3s;
}

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

.source-info {
    display: flex;
    align-items: center;
    gap: 16px;
    flex: 1;
}

.source-icon {
    width: 48px;
    height: 48px;
    background-color: var(--secondary-bg);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: var(--primary-color);
}

.source-details h4 {
    font-size: 16px;
    margin-bottom: 4px;
    color: var(--text-primary);
}

.source-details p {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 4px;
}

.source-details small {
    font-size: 12px;
    color: var(--text-secondary);
    opacity: 0.7;
}

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

.source-btn {
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 8px 12px;
    border-radius: 4px;
    transition: all 0.3s;
    font-size: 16px;
}

.source-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

/* Chat Selection Styles */
.chats-list {
    margin-top: 15px;
}

.chats-list label {
    display: block;
    margin-bottom: 10px;
    color: var(--text-primary);
    font-weight: 500;
}

#chatsContainer {
    max-height: 300px;
    overflow-y: auto;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 5px;
}

.chat-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 15px;
    margin-bottom: 5px;
    background: var(--card-bg);
    border-radius: 6px;
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

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

.chat-item.selected {
    border-color: var(--primary-color);
    background: rgba(30, 215, 96, 0.1);
}

.chat-info {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
}

.chat-info i {
    font-size: 20px;
    color: var(--primary-color);
}

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

.chat-details strong {
    color: var(--text-primary);
    font-size: 14px;
}

.chat-details small {
    color: var(--text-secondary);
    font-size: 12px;
}

.chat-select-btn {
    padding: 6px 16px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 20px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.chat-select-btn:hover {
    background: var(--primary-hover);
    transform: scale(1.05);
}

.no-chats-message {
    text-align: center;
    padding: 30px 20px;
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.6;
}

.loading-sources,
.empty-sources,
.error-sources {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-secondary);
}

.loading-sources i,
.empty-sources i,
.error-sources i {
    font-size: 48px;
    margin-bottom: 16px;
    opacity: 0.5;
}

.form-group select {
    width: 100%;
    padding: 14px;
    background-color: var(--tertiary-bg);
    border: 2px solid var(--hover-bg);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 14px;
    transition: border-color 0.3s;
    cursor: pointer;
}

.form-group select:focus {
    outline: none;
    border-color: var(--primary-color);
}

.form-group small {
    display: block;
    margin-top: 6px;
    font-size: 12px;
    color: var(--text-secondary);
}

.conditional-fields {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--hover-bg);
}

.btn-loader {
    display: inline-block;
}
