.fav-content-grid {
    display: grid;
    grid-template-columns: 400px 1fr;
    gap: 2.5rem;
    flex: 1;
    width: 100%;
}

.fav-player-panel {
    display: flex;
    flex-direction: column;
    align-items: center;
    height: fit-content;
    position: sticky;
    top: 2rem;
}

.fav-list-panel {
    display: flex;
    flex-direction: column;
    height: calc(100vh - 200px);
}

.fav-list-header {
    margin-bottom: 1.5rem;
}

.fav-list-header h3 {
    font-size: 1.4rem;
    font-weight: 800;
    text-shadow: var(--text-shadow);
}

.fav-login-tip {
    text-align: center;
    padding: 3rem;
}

.fav-login-tip p {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.fav-login-btn {
    display: inline-block;
    padding: 0.8rem 2.5rem;
    background: var(--primary);
    color: #fff;
    text-decoration: none;
    border-radius: 20px;
    font-weight: 700;
    transition: all 0.3s;
}

.fav-login-btn:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(16,185,129,0.3);
}

.fav-item {
    display: flex;
    align-items: center;
    padding: 1rem 1.2rem;
    border-radius: 16px;
    margin-bottom: 0.8rem;
    cursor: pointer;
    background: var(--hover-bg);
    transition: all 0.2s;
    border: 1px solid transparent;
}

.fav-item:hover {
    transform: translateX(5px);
    background: rgba(150, 150, 150, 0.25);
}

.fav-item.active {
    background: rgba(150, 150, 150, 0.25);
    border-left: 5px solid var(--primary);
    border-radius: 12px;
}

.fav-item-index {
    width: 40px;
    font-family: ui-monospace, SFMono-Regular, monospace;
    color: var(--text-muted);
    font-size: 1rem;
    font-weight: 600;
    text-shadow: var(--text-shadow);
    flex-shrink: 0;
}

.fav-item.active .fav-item-index {
    color: var(--primary);
    text-shadow: none;
}

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

.fav-item-info h4 {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 0.3rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-shadow: var(--text-shadow);
}

.fav-item-info p {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 500;
    text-shadow: var(--text-shadow);
}

.fav-remove-btn {
    background: none;
    border: none;
    font-size: 1.4rem;
    color: #ef4444;
    cursor: pointer;
    padding: 0.3rem 0.5rem;
    transition: all 0.2s;
    opacity: 0.7;
    flex-shrink: 0;
}

.fav-remove-btn:hover {
    opacity: 1;
    transform: scale(1.2);
}

.fav-playing-icon {
    color: var(--primary);
    font-weight: 700;
    font-size: 1.2rem;
    margin-right: 0.5rem;
    flex-shrink: 0;
    display: none;
}

.fav-item.active .fav-playing-icon {
    display: inline;
}

@media (max-width: 900px) {
    .fav-content-grid {
        grid-template-columns: 1fr;
    }
    .fav-player-panel {
        position: relative;
        top: 0;
    }
    .fav-list-panel {
        height: 500px;
    }
}

@media (max-width: 480px) {
    .fav-list-panel {
        height: 400px;
    }
    .fav-list-header h3 {
        font-size: 1.1rem;
    }
    .fav-item {
        padding: 0.6rem 0.8rem;
        margin-bottom: 0.5rem;
        border-radius: 12px;
    }
    .fav-item-index {
        width: 30px;
        font-size: 0.85rem;
    }
    .fav-item-info h4 {
        font-size: 0.88rem;
    }
    .fav-item-info p {
        font-size: 0.78rem;
    }
    .fav-remove-btn {
        font-size: 1.2rem;
        padding: 0.2rem 0.3rem;
    }
}
